@vue-ui-kit/ant 2.5.1 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, h as d, mergeModels as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, openBlock as b, reactive as x, ref as S, renderList as C, renderSlot as w, resolveComponent as T, resolveDynamicComponent as E, toDisplayString as D, toRefs as O, toValue as k, unref as A, useAttrs as ee, useModel as j, useSlots as M, watch as N, watchEffect as te, withCtx as P } from "vue";
2
- import { AutoComplete as F, Button as I, Cascader as ne, Checkbox as L, CheckboxGroup as re, DatePicker as ie, Dropdown as ae, Form as oe, Input as se, InputNumber as ce, Mentions as le, Menu as R, MenuItem as ue, Modal as de, Pagination as fe, RadioGroup as z, RangePicker as pe, Rate as me, Row as he, Select as B, Slider as ge, Spin as _e, Switch as ve, TabPane as ye, Table as be, Tabs as xe, Textarea as V, TimePicker as Se, Tooltip as Ce, TreeSelect as H, TypographyParagraph as we, message as Te } from "ant-design-vue";
1
+ import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, h as d, mergeModels as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, openBlock as b, reactive as x, ref as S, renderList as C, renderSlot as w, resolveComponent as T, resolveDynamicComponent as E, toDisplayString as D, toRefs as ee, toValue as O, unref as k, useAttrs as te, useModel as A, useSlots as j, watch as M, watchEffect as ne, withCtx as N } from "vue";
2
+ import { AutoComplete as P, Button as F, Cascader as re, Checkbox as I, CheckboxGroup as L, DatePicker as ie, Dropdown as ae, Form as oe, Input as se, InputNumber as R, Mentions as ce, Menu as z, MenuItem as le, Modal as ue, Pagination as de, RadioGroup as fe, RangePicker as pe, Rate as me, Row as he, Select as B, Slider as ge, Spin as _e, Switch as ve, TabPane as ye, Table as be, Tabs as xe, Textarea as V, TimePicker as Se, Tooltip as Ce, TreeSelect as we, TypographyParagraph as Te, message as H } from "ant-design-vue";
3
3
  import * as Ee from "@ant-design/icons-vue";
4
4
  import { DownOutlined as De, InfoCircleOutlined as Oe, MoreOutlined as ke } from "@ant-design/icons-vue";
5
5
  //#region \0rolldown/runtime.js
@@ -12,7 +12,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
12
12
  }, Le = (e, t, n) => (n = e == null ? {} : Ae(Pe(e)), Ie(t || !e || !e.__esModule ? je(n, "default", {
13
13
  value: e,
14
14
  enumerable: !0
15
- }) : n, e)), Re = /* @__PURE__ */ U(((e, t) => {
15
+ }) : n, e)), W = /* @__PURE__ */ U(((e, t) => {
16
16
  t.exports = {
17
17
  keyId: 1,
18
18
  cookies: { path: "/" },
@@ -24,53 +24,53 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
24
24
  parseDateFormat: "yyyy-MM-dd HH:mm:ss",
25
25
  firstDayOfWeek: 1
26
26
  };
27
- })), ze = /* @__PURE__ */ U(((e, t) => {
27
+ })), Re = /* @__PURE__ */ U(((e, t) => {
28
28
  function n(e, t, n) {
29
29
  if (e) if (e.forEach) e.forEach(t, n);
30
30
  else for (var r = 0, i = e.length; r < i; r++) t.call(n, e[r], r, e);
31
31
  }
32
32
  t.exports = n;
33
- })), Be = /* @__PURE__ */ U(((e, t) => {
33
+ })), ze = /* @__PURE__ */ U(((e, t) => {
34
34
  t.exports = Object.prototype.toString;
35
- })), Ve = /* @__PURE__ */ U(((e, t) => {
36
- var n = Be();
35
+ })), Be = /* @__PURE__ */ U(((e, t) => {
36
+ var n = ze();
37
37
  function r(e) {
38
38
  return function(t) {
39
39
  return "[object " + e + "]" === n.call(t);
40
40
  };
41
41
  }
42
42
  t.exports = r;
43
- })), W = /* @__PURE__ */ U(((e, t) => {
44
- var n = Ve();
43
+ })), G = /* @__PURE__ */ U(((e, t) => {
44
+ var n = Be();
45
45
  t.exports = Array.isArray || n("Array");
46
- })), He = /* @__PURE__ */ U(((e, t) => {
46
+ })), Ve = /* @__PURE__ */ U(((e, t) => {
47
47
  function n(e, t) {
48
48
  return e && e.hasOwnProperty ? e.hasOwnProperty(t) : !1;
49
49
  }
50
50
  t.exports = n;
51
- })), Ue = /* @__PURE__ */ U(((e, t) => {
52
- var n = He();
51
+ })), He = /* @__PURE__ */ U(((e, t) => {
52
+ var n = Ve();
53
53
  function r(e, t, r) {
54
54
  if (e) for (var i in e) n(e, i) && t.call(r, e[i], i, e);
55
55
  }
56
56
  t.exports = r;
57
- })), G = /* @__PURE__ */ U(((e, t) => {
58
- var n = W(), r = ze(), i = Ue();
57
+ })), K = /* @__PURE__ */ U(((e, t) => {
58
+ var n = G(), r = Re(), i = He();
59
59
  function a(e, t, a) {
60
60
  return e && (n(e) ? r : i)(e, t, a);
61
61
  }
62
62
  t.exports = a;
63
- })), We = /* @__PURE__ */ U(((e, t) => {
63
+ })), Ue = /* @__PURE__ */ U(((e, t) => {
64
64
  function n(e) {
65
65
  return function(t) {
66
66
  return typeof t === e;
67
67
  };
68
68
  }
69
69
  t.exports = n;
70
- })), K = /* @__PURE__ */ U(((e, t) => {
71
- t.exports = We()("function");
72
70
  })), q = /* @__PURE__ */ U(((e, t) => {
73
- var n = G();
71
+ t.exports = Ue()("function");
72
+ })), We = /* @__PURE__ */ U(((e, t) => {
73
+ var n = K();
74
74
  function r(e, t) {
75
75
  var r = Object[e];
76
76
  return function(e) {
@@ -88,9 +88,9 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
88
88
  }
89
89
  t.exports = r;
90
90
  })), J = /* @__PURE__ */ U(((e, t) => {
91
- t.exports = q()("keys", 1);
92
- })), Ge = /* @__PURE__ */ U(((e, t) => {
93
- var n = Be(), r = Ue(), i = ze();
91
+ t.exports = We()("keys", 1);
92
+ })), Y = /* @__PURE__ */ U(((e, t) => {
93
+ var n = ze(), r = He(), i = Re();
94
94
  function a(e, t) {
95
95
  var n = e.__proto__.constructor;
96
96
  return t ? new n(t) : new n();
@@ -130,8 +130,8 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
130
130
  return e && s(e, t);
131
131
  }
132
132
  t.exports = c;
133
- })), Y = /* @__PURE__ */ U(((e, t) => {
134
- var n = ze(), r = J(), i = W(), a = Ge(), o = Object.assign;
133
+ })), X = /* @__PURE__ */ U(((e, t) => {
134
+ var n = Re(), r = J(), i = G(), a = Y(), o = Object.assign;
135
135
  function s(e, t, i) {
136
136
  for (var o = t.length, s, c = 1; c < o; c++) s = t[c], n(r(t[c]), i ? function(t) {
137
137
  e[t] = a(s[t], i);
@@ -149,8 +149,8 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
149
149
  }
150
150
  return e;
151
151
  };
152
- })), Ke = /* @__PURE__ */ U(((e, t) => {
153
- var n = Re(), r = ze(), i = G(), a = K(), o = Y(), s = function() {};
152
+ })), Ge = /* @__PURE__ */ U(((e, t) => {
153
+ var n = W(), r = Re(), i = K(), a = q(), o = X(), s = function() {};
154
154
  function c() {
155
155
  r(arguments, function(e) {
156
156
  i(e, function(e, t) {
@@ -169,34 +169,34 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
169
169
  }
170
170
  var d = "3.9.1";
171
171
  s.VERSION = d, s.version = d, s.mixin = c, s.setup = l, s.setConfig = l, s.getConfig = u, t.exports = s;
172
- })), X = /* @__PURE__ */ U(((e, t) => {
172
+ })), Z = /* @__PURE__ */ U(((e, t) => {
173
173
  function n(e, t, n) {
174
174
  for (var r = e.length - 1; r >= 0; r--) t.call(n, e[r], r, e);
175
175
  }
176
176
  t.exports = n;
177
- })), qe = /* @__PURE__ */ U(((e, t) => {
178
- var n = X(), r = J();
177
+ })), Ke = /* @__PURE__ */ U(((e, t) => {
178
+ var n = Z(), r = J();
179
179
  function i(e, t, i) {
180
180
  n(r(e), function(n) {
181
181
  t.call(i, e[n], n, e);
182
182
  });
183
183
  }
184
184
  t.exports = i;
185
- })), Je = /* @__PURE__ */ U(((e, t) => {
185
+ })), qe = /* @__PURE__ */ U(((e, t) => {
186
186
  function n(e) {
187
187
  return e === null;
188
188
  }
189
189
  t.exports = n;
190
- })), Ye = /* @__PURE__ */ U(((e, t) => {
191
- var n = Je();
190
+ })), Je = /* @__PURE__ */ U(((e, t) => {
191
+ var n = qe();
192
192
  function r(e, t) {
193
193
  return function(r) {
194
194
  return n(r) ? t : r[e];
195
195
  };
196
196
  }
197
197
  t.exports = r;
198
- })), Xe = /* @__PURE__ */ U(((e, t) => {
199
- var n = G(), r = K(), i = Ye();
198
+ })), Ye = /* @__PURE__ */ U(((e, t) => {
199
+ var n = K(), r = q(), i = Je();
200
200
  function a(e, t, a) {
201
201
  var o = {};
202
202
  if (e) if (t) r(t) || (t = i(t)), n(e, function(n, r) {
@@ -206,18 +206,18 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
206
206
  return o;
207
207
  }
208
208
  t.exports = a;
209
- })), Ze = /* @__PURE__ */ U(((e, t) => {
209
+ })), Xe = /* @__PURE__ */ U(((e, t) => {
210
210
  function n(e) {
211
211
  return e ? e.constructor === Object : !1;
212
212
  }
213
213
  t.exports = n;
214
- })), Z = /* @__PURE__ */ U(((e, t) => {
214
+ })), Ze = /* @__PURE__ */ U(((e, t) => {
215
215
  function n(e) {
216
216
  return e !== "__proto__" && e !== "constructor";
217
217
  }
218
218
  t.exports = n;
219
219
  })), Qe = /* @__PURE__ */ U(((e, t) => {
220
- var n = W(), r = Ze(), i = K(), a = G(), o = Z();
220
+ var n = G(), r = Xe(), i = q(), a = K(), o = Ze();
221
221
  function s(e, t) {
222
222
  return r(e) && r(t) || n(e) && n(t) ? (a(t, function(n, r) {
223
223
  o(r) && (e[r] = i(t) ? n : s(e[r], n));
@@ -229,7 +229,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
229
229
  return e;
230
230
  };
231
231
  })), $e = /* @__PURE__ */ U(((e, t) => {
232
- var n = G();
232
+ var n = K();
233
233
  function r(e, t, r) {
234
234
  var i = [];
235
235
  if (e && arguments.length > 1) {
@@ -242,7 +242,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
242
242
  }
243
243
  t.exports = r;
244
244
  })), et = /* @__PURE__ */ U(((e, t) => {
245
- var n = He(), r = W();
245
+ var n = Ve(), r = G();
246
246
  function i(e, t, i, a, o) {
247
247
  return function(s, c, l) {
248
248
  if (s && c) {
@@ -270,7 +270,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
270
270
  })), nt = /* @__PURE__ */ U(((e, t) => {
271
271
  t.exports = et()("every", 1, 1, !1, !0);
272
272
  })), rt = /* @__PURE__ */ U(((e, t) => {
273
- var n = He();
273
+ var n = Ve();
274
274
  function r(e, t) {
275
275
  if (e) {
276
276
  if (e.includes) return e.includes(t);
@@ -280,7 +280,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
280
280
  }
281
281
  t.exports = r;
282
282
  })), it = /* @__PURE__ */ U(((e, t) => {
283
- var n = W(), r = rt();
283
+ var n = G(), r = rt();
284
284
  function i(e, t) {
285
285
  var i, a = 0;
286
286
  if (n(e) && n(t)) {
@@ -291,7 +291,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
291
291
  }
292
292
  t.exports = i;
293
293
  })), at = /* @__PURE__ */ U(((e, t) => {
294
- var n = G(), r = rt(), i = K(), a = Ye();
294
+ var n = K(), r = rt(), i = q(), a = Je();
295
295
  function o(e, t, o) {
296
296
  var s = [];
297
297
  if (t) {
@@ -325,9 +325,9 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
325
325
  t.exports = "undefined";
326
326
  })), lt = /* @__PURE__ */ U(((e, t) => {
327
327
  var n = ct();
328
- t.exports = We()(n);
328
+ t.exports = Ue()(n);
329
329
  })), ut = /* @__PURE__ */ U(((e, t) => {
330
- var n = Je(), r = lt();
330
+ var n = qe(), r = lt();
331
331
  function i(e) {
332
332
  return n(e) || r(e);
333
333
  }
@@ -340,7 +340,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
340
340
  }
341
341
  t.exports = n;
342
342
  })), pt = /* @__PURE__ */ U(((e, t) => {
343
- var n = dt(), r = ft(), i = He(), a = lt(), o = ut();
343
+ var n = dt(), r = ft(), i = Ve(), a = lt(), o = ut();
344
344
  function s(e, t, n) {
345
345
  if (o(e)) return n;
346
346
  var r = l(e, t);
@@ -362,7 +362,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
362
362
  }
363
363
  t.exports = s;
364
364
  })), mt = /* @__PURE__ */ U(((e, t) => {
365
- var n = ze(), r = ot(), i = $e(), a = W(), o = K(), s = Ze(), c = lt(), l = Je(), u = ut(), d = pt(), f = Ye(), p = "asc", m = "desc";
365
+ var n = Re(), r = ot(), i = $e(), a = G(), o = q(), s = Xe(), c = lt(), l = qe(), u = ut(), d = pt(), f = Je(), p = "asc", m = "desc";
366
366
  function h(e, t) {
367
367
  return c(e) ? 1 : l(e) ? c(t) ? -1 : 1 : e && e.localeCompare ? e.localeCompare(t) : e > t ? 1 : -1;
368
368
  }
@@ -407,7 +407,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
407
407
  }
408
408
  t.exports = n;
409
409
  })), _t = /* @__PURE__ */ U(((e, t) => {
410
- t.exports = q()("values", 0);
410
+ t.exports = We()("values", 0);
411
411
  })), vt = /* @__PURE__ */ U(((e, t) => {
412
412
  var n = gt(), r = _t();
413
413
  function i(e) {
@@ -447,7 +447,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
447
447
  }
448
448
  t.exports = r;
449
449
  })), Ct = /* @__PURE__ */ U(((e, t) => {
450
- var n = G();
450
+ var n = K();
451
451
  function r(e, t, r) {
452
452
  var i = [];
453
453
  if (e && t) {
@@ -464,7 +464,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
464
464
  })), Tt = /* @__PURE__ */ U(((e, t) => {
465
465
  t.exports = et()("find", 1, 3, !0);
466
466
  })), Et = /* @__PURE__ */ U(((e, t) => {
467
- var n = W(), r = _t();
467
+ var n = G(), r = _t();
468
468
  function i(e, t, i) {
469
469
  if (e) {
470
470
  n(e) || (e = r(e));
@@ -486,7 +486,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
486
486
  }
487
487
  t.exports = r;
488
488
  })), Ot = /* @__PURE__ */ U(((e, t) => {
489
- var n = W();
489
+ var n = G();
490
490
  function r(e, t, r, i) {
491
491
  if (n(e) && e.copyWithin) return e.copyWithin(t, r, i);
492
492
  var a, o, s = t >> 0, c = r >> 0, l = e.length, u = arguments.length > 3 ? i >> 0 : l;
@@ -495,7 +495,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
495
495
  }
496
496
  t.exports = r;
497
497
  })), kt = /* @__PURE__ */ U(((e, t) => {
498
- var n = W();
498
+ var n = G();
499
499
  function r(e, t) {
500
500
  var r, i = [], a = t >> 0 || 1;
501
501
  if (n(e)) if (a >= 0 && e.length > a) for (r = 0; r < e.length;) i.push(e.slice(r, r + a)), r += a;
@@ -504,13 +504,13 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
504
504
  }
505
505
  t.exports = r;
506
506
  })), At = /* @__PURE__ */ U(((e, t) => {
507
- var n = $e(), r = Ye();
507
+ var n = $e(), r = Je();
508
508
  function i(e, t) {
509
509
  return n(e, r(t));
510
510
  }
511
511
  t.exports = i;
512
512
  })), jt = /* @__PURE__ */ U(((e, t) => {
513
- var n = K(), r = ut(), i = pt(), a = ze();
513
+ var n = q(), r = ut(), i = pt(), a = Re();
514
514
  function o(e) {
515
515
  return function(t, o) {
516
516
  if (t && t.length) {
@@ -544,7 +544,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
544
544
  }
545
545
  t.exports = r;
546
546
  })), Ft = /* @__PURE__ */ U(((e, t) => {
547
- var n = _t(), r = G();
547
+ var n = _t(), r = K();
548
548
  function i(e, t) {
549
549
  var i = {};
550
550
  return t ||= [], r(n(e), function(e, n) {
@@ -553,7 +553,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
553
553
  }
554
554
  t.exports = i;
555
555
  })), It = /* @__PURE__ */ U(((e, t) => {
556
- var n = W(), r = ze();
556
+ var n = G(), r = Re();
557
557
  function i(e, t) {
558
558
  var a = [];
559
559
  return r(e, function(e) {
@@ -565,7 +565,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
565
565
  }
566
566
  t.exports = a;
567
567
  })), Lt = /* @__PURE__ */ U(((e, t) => {
568
- var n = $e(), r = W();
568
+ var n = $e(), r = G();
569
569
  function i(e, t) {
570
570
  for (var n = 0, r = t.length; e && n < r;) e = e[t[n++]];
571
571
  return r && e ? e : 0;
@@ -596,15 +596,15 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
596
596
  }
597
597
  t.exports = n;
598
598
  })), Bt = /* @__PURE__ */ U(((e, t) => {
599
- var n = W(), r = X(), i = qe();
599
+ var n = G(), r = Z(), i = Ke();
600
600
  function a(e, t, a) {
601
601
  return e && (n(e) ? r : i)(e, t, a);
602
602
  }
603
603
  t.exports = a;
604
604
  })), Vt = /* @__PURE__ */ U(((e, t) => {
605
- t.exports = We()("object");
605
+ t.exports = Ue()("object");
606
606
  })), Ht = /* @__PURE__ */ U(((e, t) => {
607
- var n = zt(), r = Ze(), i = Vt(), a = W(), o = Je(), s = Y(), c = Ue();
607
+ var n = zt(), r = Xe(), i = Vt(), a = G(), o = qe(), s = X(), c = He();
608
608
  function l(e, t, l) {
609
609
  if (e) {
610
610
  var u, d = arguments.length > 1 && (o(t) || !i(t)), f = d ? l : t;
@@ -623,7 +623,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
623
623
  }
624
624
  t.exports = l;
625
625
  })), Ut = /* @__PURE__ */ U(((e, t) => {
626
- var n = zt(), r = K(), i = W(), a = G(), o = ze(), s = Bt(), c = Ht(), l = ut();
626
+ var n = zt(), r = q(), i = G(), a = K(), o = Re(), s = Bt(), c = Ht(), l = ut();
627
627
  function u(e) {
628
628
  return function(t, n) {
629
629
  return n === e;
@@ -647,7 +647,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
647
647
  }
648
648
  t.exports = d;
649
649
  })), Wt = /* @__PURE__ */ U(((e, t) => {
650
- var n = Re(), r = Rt(), i = mt(), a = Ge(), o = ut(), s = G(), c = Ut(), l = Y();
650
+ var n = W(), r = Rt(), i = mt(), a = Y(), o = ut(), s = K(), c = Ut(), l = X();
651
651
  function u(e, t) {
652
652
  s(e, function(e) {
653
653
  e[t] && !e[t].length && c(e, t);
@@ -663,7 +663,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
663
663
  }
664
664
  t.exports = d;
665
665
  })), Gt = /* @__PURE__ */ U(((e, t) => {
666
- var n = Re(), r = ze(), i = Y();
666
+ var n = W(), r = Re(), i = X();
667
667
  function a(e, t, n, i) {
668
668
  var o = i.key, s = i.parentKey, c = i.children, l = i.data, u = i.updated, d = i.clear;
669
669
  return r(n, function(n) {
@@ -703,7 +703,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
703
703
  }
704
704
  t.exports = n(r);
705
705
  })), Jt = /* @__PURE__ */ U(((e, t) => {
706
- var n = Kt(), r = G();
706
+ var n = Kt(), r = K();
707
707
  function i(e, t, n, a, o, s, c, l) {
708
708
  var u, d;
709
709
  r(t, function(r, f) {
@@ -730,7 +730,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
730
730
  }
731
731
  t.exports = r;
732
732
  })), Zt = /* @__PURE__ */ U(((e, t) => {
733
- var n = Kt(), r = ze(), i = Y();
733
+ var n = Kt(), r = Re(), i = X();
734
734
  function a(e, t, n, o, s, c, l, u, d) {
735
735
  var f, p, m, h, g, _ = [], v = d.original, y = d.data, b = d.mapChildren || u, x = d.isEvery;
736
736
  return r(n, function(r, S) {
@@ -754,7 +754,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
754
754
  }
755
755
  t.exports = n;
756
756
  })), en = /* @__PURE__ */ U(((e, t) => {
757
- t.exports = We()("number");
757
+ t.exports = Ue()("number");
758
758
  })), tn = /* @__PURE__ */ U(((e, t) => {
759
759
  var n = en();
760
760
  function r(e) {
@@ -762,9 +762,9 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
762
762
  }
763
763
  t.exports = r;
764
764
  })), nn = /* @__PURE__ */ U(((e, t) => {
765
- t.exports = We()("string");
765
+ t.exports = Ue()("string");
766
766
  })), rn = /* @__PURE__ */ U(((e, t) => {
767
- t.exports = Ve()("Date");
767
+ t.exports = Be()("Date");
768
768
  })), an = /* @__PURE__ */ U(((e, t) => {
769
769
  t.exports = parseInt;
770
770
  })), on = /* @__PURE__ */ U(((e, t) => {
@@ -828,15 +828,15 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
828
828
  var E = C[x];
829
829
  w[E[0]] = E[1] + "?", T.push(E[0]);
830
830
  }
831
- var D = new RegExp(T.join("|"), "g"), O = {};
832
- function k(e, t) {
833
- var n = O[t];
831
+ var D = new RegExp(T.join("|"), "g"), ee = {};
832
+ function O(e, t) {
833
+ var n = ee[t];
834
834
  if (!n) {
835
835
  var r = [], i = t.replace(/([$(){}*+.?\\^|])/g, "\\$1").replace(D, function(e, t) {
836
836
  var n = e.charAt(0);
837
837
  return n === "[" ? t : (r.push(n), w[e]);
838
838
  });
839
- n = O[t] = {
839
+ n = ee[t] = {
840
840
  _i: r,
841
841
  _r: new RegExp(i)
842
842
  };
@@ -848,23 +848,23 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
848
848
  }
849
849
  return a;
850
850
  }
851
- function A(e) {
851
+ function k(e) {
852
852
  if (/^[zZ]/.test(e.Z)) return new Date(r(e));
853
853
  var t = e.Z.match(/([-+])(\d{2}):?(\d{2})/);
854
854
  return t ? /* @__PURE__ */ new Date(r(e) - (t[1] === "-" ? -1 : 1) * n(t[2]) * 36e5 + n(t[3]) * 6e4) : /* @__PURE__ */ new Date("");
855
855
  }
856
- function ee(e, t) {
856
+ function te(e, t) {
857
857
  if (e) {
858
858
  var r = o(e);
859
859
  if (r || !t && /^[0-9]{11,15}$/.test(e)) return new Date(r ? i(e) : n(e));
860
860
  if (a(e)) {
861
- var s = t ? k(e, t) : S(e);
862
- if (s.y) return s.M &&= l(s.M) - 1, s.S &&= c(l(s.S.substring(0, 3))), s.Z ? A(s) : new Date(s.y, s.M || 0, s.d || 1, s.H || 0, s.m || 0, s.s || 0, s.S || 0);
861
+ var s = t ? O(e, t) : S(e);
862
+ if (s.y) return s.M &&= l(s.M) - 1, s.S &&= c(l(s.S.substring(0, 3))), s.Z ? k(s) : new Date(s.y, s.M || 0, s.d || 1, s.H || 0, s.m || 0, s.s || 0, s.S || 0);
863
863
  }
864
864
  }
865
865
  return /* @__PURE__ */ new Date("");
866
866
  }
867
- t.exports = ee;
867
+ t.exports = te;
868
868
  })), ln = /* @__PURE__ */ U(((e, t) => {
869
869
  function n() {
870
870
  return /* @__PURE__ */ new Date();
@@ -878,7 +878,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
878
878
  }
879
879
  t.exports = a;
880
880
  })), dn = /* @__PURE__ */ U(((e, t) => {
881
- var n = W(), r = He();
881
+ var n = G(), r = Ve();
882
882
  function i(e, t, i) {
883
883
  if (e) {
884
884
  if (n(e)) for (var a = 0, o = e.length; a < o && t.call(i, e[a], a, e) !== !1; a++);
@@ -887,7 +887,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
887
887
  }
888
888
  t.exports = i;
889
889
  })), fn = /* @__PURE__ */ U(((e, t) => {
890
- var n = W(), r = He();
890
+ var n = G(), r = Ve();
891
891
  function i(e, t, i) {
892
892
  if (e) {
893
893
  var a, o;
@@ -897,7 +897,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
897
897
  }
898
898
  t.exports = i;
899
899
  })), pn = /* @__PURE__ */ U(((e, t) => {
900
- var n = W(), r = nn(), i = He();
900
+ var n = G(), r = nn(), i = Ve();
901
901
  function a(e, t) {
902
902
  return function(a, o) {
903
903
  if (a) {
@@ -914,7 +914,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
914
914
  })), hn = /* @__PURE__ */ U(((e, t) => {
915
915
  t.exports = pn()("lastIndexOf", $t());
916
916
  })), gn = /* @__PURE__ */ U(((e, t) => {
917
- var n = W(), r = nn(), i = G();
917
+ var n = G(), r = nn(), i = K();
918
918
  function a(e) {
919
919
  var t = 0;
920
920
  return r(e) || n(e) ? e.length : (i(e, function() {
@@ -929,22 +929,22 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
929
929
  }
930
930
  t.exports = r;
931
931
  })), vn = /* @__PURE__ */ U(((e, t) => {
932
- var n = W(), r = Je();
932
+ var n = G(), r = qe();
933
933
  t.exports = function(e) {
934
934
  return !r(e) && !isNaN(e) && !n(e) && e % 1 == 0;
935
935
  };
936
936
  })), yn = /* @__PURE__ */ U(((e, t) => {
937
- var n = W(), r = vn(), i = Je();
937
+ var n = G(), r = vn(), i = qe();
938
938
  function a(e) {
939
939
  return !i(e) && !isNaN(e) && !n(e) && !r(e);
940
940
  }
941
941
  t.exports = a;
942
942
  })), bn = /* @__PURE__ */ U(((e, t) => {
943
- t.exports = We()("boolean");
943
+ t.exports = Ue()("boolean");
944
944
  })), xn = /* @__PURE__ */ U(((e, t) => {
945
- t.exports = Ve()("RegExp");
945
+ t.exports = Be()("RegExp");
946
946
  })), Sn = /* @__PURE__ */ U(((e, t) => {
947
- t.exports = Ve()("Error");
947
+ t.exports = Be()("Error");
948
948
  })), Cn = /* @__PURE__ */ U(((e, t) => {
949
949
  function n(e) {
950
950
  return e ? e.constructor === TypeError : !1;
@@ -963,7 +963,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
963
963
  }
964
964
  t.exports = i;
965
965
  })), En = /* @__PURE__ */ U(((e, t) => {
966
- t.exports = Ve()("Arguments");
966
+ t.exports = Be()("Arguments");
967
967
  })), Dn = /* @__PURE__ */ U(((e, t) => {
968
968
  var n = nn(), r = en();
969
969
  function i(e) {
@@ -1019,7 +1019,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1019
1019
  }
1020
1020
  t.exports = i;
1021
1021
  })), Ln = /* @__PURE__ */ U(((e, t) => {
1022
- var n = K(), r = nn(), i = W(), a = He();
1022
+ var n = q(), r = nn(), i = G(), a = Ve();
1023
1023
  function o(e) {
1024
1024
  return function(t, o, s) {
1025
1025
  if (t && n(o)) {
@@ -1036,7 +1036,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1036
1036
  return -1;
1037
1037
  });
1038
1038
  })), zn = /* @__PURE__ */ U(((e, t) => {
1039
- var n = en(), r = W(), i = nn(), a = xn(), o = rn(), s = bn(), c = lt(), l = J(), u = nt();
1039
+ var n = en(), r = G(), i = nn(), a = xn(), o = rn(), s = bn(), c = lt(), l = J(), u = nt();
1040
1040
  function d(e, t, f, p, m, h, g) {
1041
1041
  if (e === t) return !0;
1042
1042
  if (e && t && !n(e) && !n(t) && !i(e) && !i(t)) {
@@ -1076,7 +1076,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1076
1076
  }
1077
1077
  t.exports = s;
1078
1078
  })), Un = /* @__PURE__ */ U(((e, t) => {
1079
- var n = zn(), r = Bn(), i = K(), a = lt();
1079
+ var n = zn(), r = Bn(), i = q(), a = lt();
1080
1080
  function o(e, t, o) {
1081
1081
  return i(o) ? n(e, t, function(e, t, n, i, s) {
1082
1082
  var c = o(e, t, n, i, s);
@@ -1085,13 +1085,13 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1085
1085
  }
1086
1086
  t.exports = o;
1087
1087
  })), Wn = /* @__PURE__ */ U(((e, t) => {
1088
- var n = Tn(), r = rn(), i = W(), a = xn(), o = Sn(), s = Je();
1088
+ var n = Tn(), r = rn(), i = G(), a = xn(), o = Sn(), s = qe();
1089
1089
  function c(e) {
1090
1090
  return s(e) ? "null" : n(e) ? "symbol" : r(e) ? "date" : i(e) ? "array" : a(e) ? "regexp" : o(e) ? "error" : typeof e;
1091
1091
  }
1092
1092
  t.exports = c;
1093
1093
  })), Gn = /* @__PURE__ */ U(((e, t) => {
1094
- var n = Re(), r = ut();
1094
+ var n = W(), r = ut();
1095
1095
  function i(e) {
1096
1096
  return "" + (r(e) ? "" : e) + n.keyId++;
1097
1097
  }
@@ -1102,7 +1102,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1102
1102
  return -1;
1103
1103
  });
1104
1104
  })), qn = /* @__PURE__ */ U(((e, t) => {
1105
- var n = Ze(), r = nn();
1105
+ var n = Xe(), r = nn();
1106
1106
  function i(e) {
1107
1107
  if (n(e)) return e;
1108
1108
  if (r(e)) try {
@@ -1118,9 +1118,9 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1118
1118
  }
1119
1119
  t.exports = r;
1120
1120
  })), Yn = /* @__PURE__ */ U(((e, t) => {
1121
- t.exports = q()("entries", 2);
1121
+ t.exports = We()("entries", 2);
1122
1122
  })), Xn = /* @__PURE__ */ U(((e, t) => {
1123
- var n = K(), r = W(), i = G(), a = Rn();
1123
+ var n = q(), r = G(), i = K(), a = Rn();
1124
1124
  function o(e, t) {
1125
1125
  return function(o, s) {
1126
1126
  var c, l, u = {}, d = [], f = this, p = arguments, m = p.length;
@@ -1154,7 +1154,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1154
1154
  }
1155
1155
  t.exports = r;
1156
1156
  })), tr = /* @__PURE__ */ U(((e, t) => {
1157
- var n = dt(), r = ft(), i = He();
1157
+ var n = dt(), r = ft(), i = Ve();
1158
1158
  function a(e, t) {
1159
1159
  if (e) {
1160
1160
  if (i(e, t)) return !0;
@@ -1165,7 +1165,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1165
1165
  }
1166
1166
  t.exports = a;
1167
1167
  })), nr = /* @__PURE__ */ U(((e, t) => {
1168
- var n = an(), r = ft(), i = Z(), a = He(), o = /(.+)?\[(\d+)\]$/;
1168
+ var n = an(), r = ft(), i = Ze(), a = Ve(), o = /(.+)?\[(\d+)\]$/;
1169
1169
  function s(e, t, r, i, a) {
1170
1170
  if (e[t]) r && (e[t] = a);
1171
1171
  else {
@@ -1194,7 +1194,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1194
1194
  }
1195
1195
  t.exports = c;
1196
1196
  })), rr = /* @__PURE__ */ U(((e, t) => {
1197
- var n = wn(), r = Vt(), i = K(), a = Ye(), o = G();
1197
+ var n = wn(), r = Vt(), i = q(), a = Je(), o = K();
1198
1198
  function s(e) {
1199
1199
  return function() {
1200
1200
  return n(e);
@@ -1208,7 +1208,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1208
1208
  }
1209
1209
  t.exports = c;
1210
1210
  })), ir = /* @__PURE__ */ U(((e, t) => {
1211
- var n = rr(), r = Ue();
1211
+ var n = rr(), r = He();
1212
1212
  function i(e, t, i) {
1213
1213
  var a = n(e, t, i || this);
1214
1214
  return r(a, function(e, t) {
@@ -1224,7 +1224,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1224
1224
  }
1225
1225
  t.exports = n;
1226
1226
  })), or = /* @__PURE__ */ U(((e, t) => {
1227
- var n = J(), r = St(), i = rt(), a = ze(), o = Y();
1227
+ var n = J(), r = St(), i = rt(), a = Re(), o = X();
1228
1228
  function s(e, t) {
1229
1229
  if (e && t) {
1230
1230
  var s = o.apply(this, [{}].concat(r(arguments, 1))), c = n(s);
@@ -1314,7 +1314,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1314
1314
  }
1315
1315
  t.exports = o;
1316
1316
  })), yr = /* @__PURE__ */ U(((e, t) => {
1317
- var n = Re(), r = mr(), i = hr(), a = gr(), o = en(), s = _r(), c = vr(), l = dr(), u = Y();
1317
+ var n = W(), r = mr(), i = hr(), a = gr(), o = en(), s = _r(), c = vr(), l = dr(), u = X();
1318
1318
  function d(e, t) {
1319
1319
  var d = u({}, n.commafyOptions, t), f = d.digits, p = o(e), m, h, g, _, v;
1320
1320
  return p ? (m = (d.ceil ? i : d.floor ? a : r)(e, f), h = l(f ? c(m, f) : m).split("."), _ = h[0], v = h[1], g = _ && m < 0, g && (_ = _.substring(1, _.length))) : (m = s(e).replace(/,/g, ""), h = m ? [m] : [], _ = h[0]), h.length ? (g ? "-" : "") + _.replace(RegExp("(?=(?!(\\b))(.{" + (d.spaceNumber || 3) + "})+$)", "g"), d.separator || ",") + (v ? "." + v : "") : m;
@@ -1363,7 +1363,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1363
1363
  }
1364
1364
  t.exports = i;
1365
1365
  })), Dr = /* @__PURE__ */ U(((e, t) => {
1366
- var n = Sr(), r = K(), i = W(), a = G(), o = pt();
1366
+ var n = Sr(), r = q(), i = G(), a = K(), o = pt();
1367
1367
  function s(e, t, s) {
1368
1368
  var c = 0;
1369
1369
  return a(e && e.length > 2 && i(e) ? e.sort() : e, t ? r(t) ? function() {
@@ -1444,7 +1444,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1444
1444
  })), Rr = /* @__PURE__ */ U(((e, t) => {
1445
1445
  t.exports = Mr() * 7;
1446
1446
  })), zr = /* @__PURE__ */ U(((e, t) => {
1447
- var n = Re(), r = Mr(), i = Rr(), a = sn(), o = cn(), s = Pr(), c = en();
1447
+ var n = W(), r = Mr(), i = Rr(), a = sn(), o = cn(), s = Pr(), c = en();
1448
1448
  function l(e, t, l, u) {
1449
1449
  if (e = o(e), s(e)) {
1450
1450
  var d = c(l), f = c(u), p = a(e);
@@ -1506,7 +1506,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1506
1506
  }
1507
1507
  t.exports = n;
1508
1508
  })), Gr = /* @__PURE__ */ U(((e, t) => {
1509
- var n = Re(), r = Mr(), i = Rr(), a = en(), o = rt(), s = cn(), c = Pr(), l = zr(), u = ar(), d = $e(), f = sn(), p = d(u(0, 7), function(e) {
1509
+ var n = W(), r = Mr(), i = Rr(), a = en(), o = rt(), s = cn(), c = Pr(), l = zr(), u = ar(), d = $e(), f = sn(), p = d(u(0, 7), function(e) {
1510
1510
  return [
1511
1511
  (e + 1) % 7,
1512
1512
  (e + 2) % 7,
@@ -1571,7 +1571,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1571
1571
  }
1572
1572
  t.exports = a;
1573
1573
  })), Zr = /* @__PURE__ */ U(((e, t) => {
1574
- var n = Re(), r = Wr(), i = jr(), a = Nr(), o = cn(), s = Kr(), c = Yr(), l = Y(), u = Pr(), d = K(), f = ut(), p = Xr();
1574
+ var n = W(), r = Wr(), i = jr(), a = Nr(), o = cn(), s = Kr(), c = Yr(), l = X(), u = Pr(), d = q(), f = ut(), p = Xr();
1575
1575
  function m(e, t, n, r) {
1576
1576
  var i = t[n];
1577
1577
  return i ? d(i) ? i(r, n, e) : i[r] : r;
@@ -1594,16 +1594,16 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1594
1594
  return p(e.getMinutes(), n, "0");
1595
1595
  }, D = function(t, n) {
1596
1596
  return p(e.getSeconds(), n, "0");
1597
- }, O = function(t, n) {
1597
+ }, ee = function(t, n) {
1598
1598
  return p(e.getMilliseconds(), n, "0");
1599
- }, k = function(t, n) {
1599
+ }, O = function(t, n) {
1600
1600
  var r = e.getTimezoneOffset() / 60 * -1;
1601
1601
  return m(e, b, t, (r >= 0 ? "+" : "-") + p(r, 2, "0") + (n === 1 ? ":" : "") + "00");
1602
- }, A = function(t, r) {
1602
+ }, k = function(t, r) {
1603
1603
  return p(m(e, b, t, s(e, f(g.firstDay) ? n.firstDayOfWeek : g.firstDay)), r, "0");
1604
- }, ee = function(t, n) {
1604
+ }, te = function(t, n) {
1605
1605
  return p(m(e, b, t, c(e)), n, "0");
1606
- }, j = {
1606
+ }, A = {
1607
1607
  yyyy: x,
1608
1608
  yy: x,
1609
1609
  MM: S,
@@ -1618,14 +1618,14 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1618
1618
  m: E,
1619
1619
  ss: D,
1620
1620
  s: D,
1621
- SSS: O,
1622
- S: O,
1623
- ZZ: k,
1624
- Z: k,
1625
- WW: A,
1626
- W: A,
1627
- DDD: ee,
1628
- D: ee,
1621
+ SSS: ee,
1622
+ S: ee,
1623
+ ZZ: O,
1624
+ Z: O,
1625
+ WW: k,
1626
+ W: k,
1627
+ DDD: te,
1628
+ D: te,
1629
1629
  a: function(t) {
1630
1630
  return m(e, b, t, y);
1631
1631
  },
@@ -1643,7 +1643,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1643
1643
  }
1644
1644
  };
1645
1645
  return _.replace(h, function(e, t) {
1646
- return t || (j[e] ? j[e](e, e.length) : e);
1646
+ return t || (A[e] ? A[e](e, e.length) : e);
1647
1647
  });
1648
1648
  }
1649
1649
  return "Invalid Date";
@@ -1764,7 +1764,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1764
1764
  var n = ui();
1765
1765
  t.exports = di()(n);
1766
1766
  })), pi = /* @__PURE__ */ U(((e, t) => {
1767
- var n = ui(), r = di(), i = G(), a = {};
1767
+ var n = ui(), r = di(), i = K(), a = {};
1768
1768
  i(n, function(e, t) {
1769
1769
  a[n[t]] = t;
1770
1770
  }), t.exports = r(a);
@@ -1828,7 +1828,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1828
1828
  }
1829
1829
  t.exports = r;
1830
1830
  })), bi = /* @__PURE__ */ U(((e, t) => {
1831
- var n = Re(), r = _r(), i = li(), a = pt();
1831
+ var n = W(), r = _r(), i = li(), a = pt();
1832
1832
  function o(e, t, o) {
1833
1833
  return r(e).replace((o || n).tmplRE || /\{{2}([.\w[\]\s]+)\}{2}/g, function(e, n) {
1834
1834
  return a(t, i(n));
@@ -1883,7 +1883,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1883
1883
  }
1884
1884
  t.exports = r;
1885
1885
  })), Di = /* @__PURE__ */ U(((e, t) => {
1886
- var n = Y();
1886
+ var n = X();
1887
1887
  function r(e, t, r) {
1888
1888
  var i = null, a = null, o = !1, s = null, c = n({
1889
1889
  leading: !0,
@@ -1916,7 +1916,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1916
1916
  }
1917
1917
  t.exports = r;
1918
1918
  })), Oi = /* @__PURE__ */ U(((e, t) => {
1919
- var n = Y();
1919
+ var n = X();
1920
1920
  function r(e, t, r) {
1921
1921
  var i = null, a = null, o = typeof r == "boolean" ? {
1922
1922
  leading: r,
@@ -1959,7 +1959,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1959
1959
  })), Ai = /* @__PURE__ */ U(((e, t) => {
1960
1960
  t.exports = decodeURIComponent;
1961
1961
  })), ji = /* @__PURE__ */ U(((e, t) => {
1962
- var n = Ai(), r = ze(), i = nn();
1962
+ var n = Ai(), r = Re(), i = nn();
1963
1963
  function a(e) {
1964
1964
  var t, a = {};
1965
1965
  return e && i(e) && r(e.split("&"), function(e) {
@@ -1970,7 +1970,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
1970
1970
  })), Mi = /* @__PURE__ */ U(((e, t) => {
1971
1971
  t.exports = encodeURIComponent;
1972
1972
  })), Ni = /* @__PURE__ */ U(((e, t) => {
1973
- var n = Mi(), r = G(), i = W(), a = Je(), o = lt(), s = Ze();
1973
+ var n = Mi(), r = K(), i = G(), a = qe(), o = lt(), s = Xe();
1974
1974
  function c(e, t, o) {
1975
1975
  var l, u = [];
1976
1976
  return r(e, function(e, r) {
@@ -2034,7 +2034,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
2034
2034
  }
2035
2035
  t.exports = i;
2036
2036
  })), zi = /* @__PURE__ */ U(((e, t) => {
2037
- var n = Re(), r = On(), i = Ai(), a = Mi(), o = W(), s = Vt(), c = rn(), l = lt(), u = rt(), d = J(), f = Y(), p = ze(), m = ln(), h = sn(), g = Ir(), _ = Fr(), v = Br();
2037
+ var n = W(), r = On(), i = Ai(), a = Mi(), o = G(), s = Vt(), c = rn(), l = lt(), u = rt(), d = J(), f = X(), p = Re(), m = ln(), h = sn(), g = Ir(), _ = Fr(), v = Br();
2038
2038
  function y(e, t) {
2039
2039
  var n = parseFloat(t), r = m(), i = h(r);
2040
2040
  switch (e) {
@@ -2104,7 +2104,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
2104
2104
  getJSON: D
2105
2105
  }), t.exports = x;
2106
2106
  })), Bi = /* @__PURE__ */ U(((e, t) => {
2107
- var n = ct(), r = On(), i = An(), a = Y(), o = ze();
2107
+ var n = ct(), r = On(), i = An(), a = X(), o = Re();
2108
2108
  function s(e) {
2109
2109
  try {
2110
2110
  var t = "__xe_t";
@@ -2155,7 +2155,7 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
2155
2155
  }
2156
2156
  t.exports = l;
2157
2157
  })), Vi = /* @__PURE__ */ U(((e, t) => {
2158
- var n = Ke(), r = Y(), i = Ue(), a = qe(), o = Xe(), s = Qe(), c = $e(), l = tt(), u = nt(), d = it(), f = ze(), p = X(), m = at(), h = st(), g = ot(), _ = ht(), v = mt(), y = vt(), b = yt(), x = St(), S = Ct(), C = wt(), w = rt(), T = Tt(), E = Et(), D = Dt(), O = Ot(), k = kt(), A = Pt(), ee = Nt(), j = Ft(), M = It(), N = At(), te = Lt(), P = Wt(), F = Gt(), I = qt(), ne = Jt(), L = Yt(), re = Xt(), ie = Zt(), ae = Qt(), oe = $t(), se = He(), ce = W(), le = Je(), R = tn(), ue = lt(), de = K(), fe = Vt(), z = nn(), pe = Ze(), me = un(), he = rn(), B = ut(), ge = G(), _e = dn(), ve = fn(), ye = mn(), be = hn(), xe = J(), V = _t(), Se = Ge(), Ce = gn(), H = Bt(), we = Ut(), Te = Ht(), Ee = _n(), De = yn(), Oe = vn(), ke = bn(), Ae = en(), je = xn(), Me = Sn(), Ne = Cn(), Pe = wn(), Fe = Tn(), U = En(), Ie = Dn(), Le = kn(), Re = jn(), Be = Mn(), Ve = Nn(), We = Pn(), q = Fn(), Z = In(), et = Hn(), ct = Vn(), dt = Un(), ft = Wn(), bt = Gn(), jt = Rn(), Rt = Kn(), zt = qn(), Kt = Jn(), an = Yn(), on = Zn(), sn = Qn(), ln = $n(), pn = er(), On = tr(), An = pt(), Ln = nr(), zn = rr(), Bn = ir(), Xn = ar(), cr = or(), lr = gt(), ur = Mt(), fr = sr(), pr = yr(), Sr = mr(), Tr = hr(), kr = gr(), Ar = vr(), jr = br(), Mr = xt(), Nr = dr(), Rr = Cr(), Wr = wr(), Gr = xr(), qr = Er(), Jr = Dr(), ui = Or(), di = Ir(), mi = Lr(), hi = Fr(), Ai = zr(), Mi = Br(), Pi = Vr(), Fi = Hr(), Vi = Ur(), Hi = cn(), Ui = Zr(), Wi = Qr(), Gi = $r(), Ki = Pr(), qi = ei(), Ji = Yr(), Q = Kr(), Yi = ti(), $ = ni(), Xi = ri(), Zi = ii(), Qi = ai(), $i = Xr(), ea = oi(), ta = li(), na = si(), ra = ci(), ia = fi(), aa = pi(), oa = gi(), sa = _i(), ca = vi(), la = yi(), ua = bi(), da = xi(), fa = _r(), pa = Si(), ma = Ye(), ha = Ci(), ga = wi(), _a = Ti(), va = Ei(), ya = Di(), ba = Oi(), xa = ki(), Sa = ji(), Ca = Ni(), wa = Ii(), Ta = Li(), Ea = Ri(), Da = zi();
2158
+ var n = Ge(), r = X(), i = He(), a = Ke(), o = Ye(), s = Qe(), c = $e(), l = tt(), u = nt(), d = it(), f = Re(), p = Z(), m = at(), h = st(), g = ot(), _ = ht(), v = mt(), y = vt(), b = yt(), x = St(), S = Ct(), C = wt(), w = rt(), T = Tt(), E = Et(), D = Dt(), ee = Ot(), O = kt(), k = Pt(), te = Nt(), A = Ft(), j = It(), M = At(), ne = Lt(), N = Wt(), P = Gt(), F = qt(), re = Jt(), I = Yt(), L = Xt(), ie = Zt(), ae = Qt(), oe = $t(), se = Ve(), R = G(), ce = qe(), z = tn(), le = lt(), ue = q(), de = Vt(), fe = nn(), pe = Xe(), me = un(), he = rn(), B = ut(), ge = K(), _e = dn(), ve = fn(), ye = mn(), be = hn(), xe = J(), V = _t(), Se = Y(), Ce = gn(), we = Bt(), Te = Ut(), H = Ht(), Ee = _n(), De = yn(), Oe = vn(), ke = bn(), Ae = en(), je = xn(), Me = Sn(), Ne = Cn(), Pe = wn(), Fe = Tn(), U = En(), Ie = Dn(), Le = kn(), W = jn(), ze = Mn(), Be = Nn(), Ue = Pn(), We = Fn(), Ze = In(), et = Hn(), ct = Vn(), dt = Un(), ft = Wn(), bt = Gn(), jt = Rn(), Rt = Kn(), zt = qn(), Kt = Jn(), an = Yn(), on = Zn(), sn = Qn(), ln = $n(), pn = er(), On = tr(), An = pt(), Ln = nr(), zn = rr(), Bn = ir(), Xn = ar(), cr = or(), lr = gt(), ur = Mt(), fr = sr(), pr = yr(), Sr = mr(), Tr = hr(), kr = gr(), Ar = vr(), jr = br(), Mr = xt(), Nr = dr(), Rr = Cr(), Wr = wr(), Gr = xr(), qr = Er(), Jr = Dr(), ui = Or(), di = Ir(), mi = Lr(), hi = Fr(), Ai = zr(), Mi = Br(), Pi = Vr(), Fi = Hr(), Vi = Ur(), Hi = cn(), Ui = Zr(), Wi = Qr(), Gi = $r(), Ki = Pr(), qi = ei(), Ji = Yr(), Q = Kr(), Yi = ti(), $ = ni(), Xi = ri(), Zi = ii(), Qi = ai(), $i = Xr(), ea = oi(), ta = li(), na = si(), ra = ci(), ia = fi(), aa = pi(), oa = gi(), sa = _i(), ca = vi(), la = yi(), ua = bi(), da = xi(), fa = _r(), pa = Si(), ma = Je(), ha = Ci(), ga = wi(), _a = Ti(), va = Ei(), ya = Di(), ba = Oi(), xa = ki(), Sa = ji(), Ca = Ni(), wa = Ii(), Ta = Li(), Ea = Ri(), Da = zi();
2159
2159
  r(n, {
2160
2160
  assign: r,
2161
2161
  objectEach: i,
@@ -2180,55 +2180,55 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
2180
2180
  arrayLastIndexOf: oe,
2181
2181
  map: c,
2182
2182
  reduce: D,
2183
- copyWithin: O,
2184
- chunk: k,
2185
- zip: A,
2186
- unzip: ee,
2187
- zipObject: j,
2188
- flatten: M,
2183
+ copyWithin: ee,
2184
+ chunk: O,
2185
+ zip: k,
2186
+ unzip: te,
2187
+ zipObject: A,
2188
+ flatten: j,
2189
2189
  toArray: g,
2190
2190
  includeArrays: d,
2191
- pluck: N,
2192
- invoke: te,
2191
+ pluck: M,
2192
+ invoke: ne,
2193
2193
  arrayEach: f,
2194
2194
  lastArrayEach: p,
2195
- toArrayTree: P,
2196
- toTreeArray: F,
2197
- findTree: I,
2198
- eachTree: ne,
2199
- mapTree: L,
2200
- filterTree: re,
2195
+ toArrayTree: N,
2196
+ toTreeArray: P,
2197
+ findTree: F,
2198
+ eachTree: re,
2199
+ mapTree: I,
2200
+ filterTree: L,
2201
2201
  searchTree: ie,
2202
2202
  hasOwnProp: se,
2203
2203
  eqNull: B,
2204
- isNaN: R,
2204
+ isNaN: z,
2205
2205
  isFinite: Ee,
2206
- isUndefined: ue,
2207
- isArray: ce,
2206
+ isUndefined: le,
2207
+ isArray: R,
2208
2208
  isFloat: De,
2209
2209
  isInteger: Oe,
2210
- isFunction: de,
2210
+ isFunction: ue,
2211
2211
  isBoolean: ke,
2212
- isString: z,
2212
+ isString: fe,
2213
2213
  isNumber: Ae,
2214
2214
  isRegExp: je,
2215
- isObject: fe,
2215
+ isObject: de,
2216
2216
  isPlainObject: pe,
2217
2217
  isDate: he,
2218
2218
  isError: Me,
2219
2219
  isTypeError: Ne,
2220
2220
  isEmpty: Pe,
2221
- isNull: le,
2221
+ isNull: ce,
2222
2222
  isSymbol: Fe,
2223
2223
  isArguments: U,
2224
2224
  isElement: Ie,
2225
2225
  isDocument: Le,
2226
- isWindow: Re,
2227
- isFormData: Be,
2228
- isMap: Ve,
2229
- isWeakMap: We,
2230
- isSet: q,
2231
- isWeakSet: Z,
2226
+ isWindow: W,
2227
+ isFormData: ze,
2228
+ isMap: Be,
2229
+ isWeakMap: Ue,
2230
+ isSet: We,
2231
+ isWeakSet: Ze,
2232
2232
  isLeapYear: me,
2233
2233
  isMatch: et,
2234
2234
  isEqual: ct,
@@ -2252,15 +2252,15 @@ var Ae = Object.create, je = Object.defineProperty, Me = Object.getOwnPropertyDe
2252
2252
  each: ge,
2253
2253
  forOf: _e,
2254
2254
  lastForOf: ve,
2255
- lastEach: H,
2255
+ lastEach: we,
2256
2256
  has: On,
2257
2257
  get: An,
2258
2258
  set: Ln,
2259
2259
  groupBy: zn,
2260
2260
  countBy: Bn,
2261
2261
  clone: Se,
2262
- clear: Te,
2263
- remove: we,
2262
+ clear: H,
2263
+ remove: Te,
2264
2264
  range: Xn,
2265
2265
  destructuring: cr,
2266
2266
  random: lr,
@@ -2554,10 +2554,10 @@ var ua = (e) => ({
2554
2554
  return (0, Q.zipObject)(ha, ha.map((e) => t.every((t) => $(t[e])) ? ma(t.map((t) => t[e])) : 24));
2555
2555
  };
2556
2556
  function _a(e, t, n) {
2557
- let r = k(e);
2558
- if (typeof r != "object" || !r) return N(e, t, n);
2557
+ let r = O(e);
2558
+ if (typeof r != "object" || !r) return M(e, t, n);
2559
2559
  let i = (0, Q.clone)(r, !0);
2560
- return N(e, (e, n, r) => {
2560
+ return M(e, (e, n, r) => {
2561
2561
  t(e, i, r), i = (0, Q.clone)(e, !0);
2562
2562
  }, n);
2563
2563
  }
@@ -2667,7 +2667,7 @@ var va = "-", ya = {
2667
2667
  size: "small",
2668
2668
  pagination: !1
2669
2669
  };
2670
- N(() => u.modelValue, () => {
2670
+ M(() => u.modelValue, () => {
2671
2671
  m("trigger");
2672
2672
  }, { deep: !0 });
2673
2673
  let f = t(() => (0, Q.merge)({}, d, u.tableConfig)), m = l, h = t({
@@ -2698,10 +2698,10 @@ var va = "-", ya = {
2698
2698
  });
2699
2699
  return (e, t) => {
2700
2700
  let l = T("a-form-item-rest"), u = T("a-table"), d = T("a-button");
2701
- return b(), i("div", null, [c(u, p({ "data-source": h.value }, f.value, { columns: g.value.map((e) => A(ua)(e)) }), o({ _: 2 }, [y.value.length > 0 ? {
2701
+ return b(), i("div", null, [c(u, p({ "data-source": h.value }, f.value, { columns: g.value.map((e) => k(ua)(e)) }), o({ _: 2 }, [y.value.length > 0 ? {
2702
2702
  name: "bodyCell",
2703
- fn: P(({ column: e, record: t, index: i }) => [c(l, null, {
2704
- default: P(() => [y.value.some((t) => e.key && t.field === e.key) ? (b(), n(A(Ca), {
2703
+ fn: N(({ column: e, record: t, index: i }) => [c(l, null, {
2704
+ default: N(() => [y.value.some((t) => e.key && t.field === e.key) ? (b(), n(k(Ca), {
2705
2705
  key: i,
2706
2706
  "row-index": i,
2707
2707
  "default-handler": {},
@@ -2721,7 +2721,7 @@ var va = "-", ya = {
2721
2721
  type: "primary",
2722
2722
  onClick: _
2723
2723
  }, {
2724
- default: P(() => [...t[0] ||= [s("+添加", -1)]]),
2724
+ default: N(() => [...t[0] ||= [s("+添加", -1)]]),
2725
2725
  _: 1
2726
2726
  })])]);
2727
2727
  };
@@ -2791,24 +2791,24 @@ var va = "-", ya = {
2791
2791
  AInput: se,
2792
2792
  $textarea: V,
2793
2793
  Textarea: V,
2794
- $number: ce,
2795
- AInputNumber: ce,
2794
+ $number: R,
2795
+ AInputNumber: R,
2796
2796
  $select: B,
2797
2797
  ASelect: B,
2798
2798
  $date: ie,
2799
2799
  ADatePicker: ie,
2800
2800
  $range: pe,
2801
2801
  ARangePicker: pe,
2802
- AAutoComplete: F,
2803
- $Cascader: ne,
2804
- ACascader: ne,
2805
- ACheckbox: L,
2806
- AMentions: le,
2802
+ AAutoComplete: P,
2803
+ $Cascader: re,
2804
+ ACascader: re,
2805
+ ACheckbox: I,
2806
+ AMentions: ce,
2807
2807
  ARate: me,
2808
2808
  ASlider: ge,
2809
2809
  $time: Se,
2810
2810
  ATimePicker: Se,
2811
- ATreeSelect: H
2811
+ ATreeSelect: we
2812
2812
  }, Aa = (e) => {
2813
2813
  let t = ka[e];
2814
2814
  return {
@@ -2855,7 +2855,7 @@ var va = "-", ya = {
2855
2855
  }
2856
2856
  };
2857
2857
  }, ja = (e, t, n) => e.dropdowns && e.dropdowns.length > 0 && e.dropdowns.filter((e) => !e.hiddenIf?.(t)).length > 0 ? c(ae, { getPopupContainer: n ?? (() => document.querySelector(".p-wrapper")) }, {
2858
- default: () => c(I, p((0, Q.omit)(e, [
2858
+ default: () => c(F, p((0, Q.omit)(e, [
2859
2859
  "dynamicClassName",
2860
2860
  "content",
2861
2861
  "getContent",
@@ -2865,7 +2865,7 @@ var va = "-", ya = {
2865
2865
  "getProps"
2866
2866
  ]), { icon: e.icon ? c(Ea, { icon: e.icon }, null) : c(Ea, { icon: "DownOutlined" }, null) }, e.getProps?.(t) ?? {}), { default: () => [e.content || (e?.getContent?.(t) ?? "")] }),
2867
2867
  overlay: () => c("div", { class: `dropdown-wrapper ${e?.dynamicClassName?.(t) ?? ""}` }, [e.dropdowns.filter((e) => !e.hiddenIf?.(t)).map((e) => ja(e, t, n))])
2868
- }) : c(I, p({ class: e?.dynamicClassName?.(t) || "" }, (0, Q.omit)(e, [
2868
+ }) : c(F, p({ class: e?.dynamicClassName?.(t) || "" }, (0, Q.omit)(e, [
2869
2869
  "dynamicClassName",
2870
2870
  "content",
2871
2871
  "getContent",
@@ -2882,7 +2882,7 @@ var va = "-", ya = {
2882
2882
  ...Object.fromEntries(Object.keys(ka).map((e) => [e, Aa(e)])),
2883
2883
  $button: {
2884
2884
  renderItemContent({ props: e = {}, events: t = {} }, { data: n, field: r }, i) {
2885
- return c(I, p((0, Q.omit)(e, ["content"]), {
2885
+ return c(F, p((0, Q.omit)(e, ["content"]), {
2886
2886
  icon: e.icon ? c(Ea, { icon: e.icon }, null) : null,
2887
2887
  onClick: () => {
2888
2888
  t.click?.({
@@ -2910,7 +2910,7 @@ var va = "-", ya = {
2910
2910
  }) ?? null] });
2911
2911
  },
2912
2912
  renderDefault({ props: e = {}, events: t = {} }, { row: n, field: r }, i) {
2913
- return c(I, p((0, Q.omit)(e, ["content"]), {
2913
+ return c(F, p((0, Q.omit)(e, ["content"]), {
2914
2914
  icon: e.icon ? c(Ea, { icon: e.icon }, null) : null,
2915
2915
  onClick: () => {
2916
2916
  t.click?.({
@@ -2955,7 +2955,7 @@ var va = "-", ya = {
2955
2955
  },
2956
2956
  $buttons: {
2957
2957
  renderItemContent({ props: e = {}, children: t = [] }, { data: n, field: r }, i) {
2958
- return c("span", { class: "align-gap-box w-fit" }, [t.map((t) => c(I, p((0, Q.omit)(Object.assign({}, e, t.props), ["content"]), {
2958
+ return c("span", { class: "align-gap-box w-fit" }, [t.map((t) => c(F, p((0, Q.omit)(Object.assign({}, e, t.props), ["content"]), {
2959
2959
  icon: t.props.icon ? c(Ea, { icon: t.props.icon }, null) : null,
2960
2960
  onClick: () => {
2961
2961
  t.events?.click?.({
@@ -2998,7 +2998,7 @@ var va = "-", ya = {
2998
2998
  data: n,
2999
2999
  row: r,
3000
3000
  field: i
3001
- })).map((t) => c(I, p((0, Q.omit)(Object.assign({}, e, t.props), ["content", "hiddenIf"]), {
3001
+ })).map((t) => c(F, p((0, Q.omit)(Object.assign({}, e, t.props), ["content", "hiddenIf"]), {
3002
3002
  icon: t.props.icon ? c(Ea, { icon: t.props.icon }, null) : null,
3003
3003
  onClick: () => {
3004
3004
  t.events?.click?.({
@@ -3051,7 +3051,7 @@ var va = "-", ya = {
3051
3051
  } },
3052
3052
  $radio: {
3053
3053
  renderItemContent({ props: e = {}, events: t = {}, options: n, defaultValue: r }, { data: i, field: a }) {
3054
- return Zi(r) && $(a) && Xi(i[a]) && (i[a] = r), $(a) ? c(z, p({
3054
+ return Zi(r) && $(a) && Xi(i[a]) && (i[a] = r), $(a) ? c(fe, p({
3055
3055
  value: i[a],
3056
3056
  "onUpdate:value": (e) => i[a] = e
3057
3057
  }, e, {
@@ -3066,20 +3066,20 @@ var va = "-", ya = {
3066
3066
  }), null) : null;
3067
3067
  },
3068
3068
  renderDefault({ props: e = {}, options: t }, { row: n, field: r }) {
3069
- return $(r) ? c(z, p({
3069
+ return $(r) ? c(fe, p({
3070
3070
  value: n[r],
3071
3071
  "onUpdate:value": (e) => n[r] = e
3072
3072
  }, e, { options: e.options ?? t ?? [] }), null) : null;
3073
3073
  },
3074
3074
  renderReadonly({ props: e = {}, options: t }, { data: n, field: r }) {
3075
- return $(r) ? c(z, p({
3075
+ return $(r) ? c(fe, p({
3076
3076
  value: n[r],
3077
3077
  "onUpdate:value": (e) => n[r] = e
3078
3078
  }, (0, Q.merge)({}, { disabled: !0 }, e), { options: e.options ?? t ?? [] }), null) : null;
3079
3079
  }
3080
3080
  },
3081
3081
  $autoComplete: { renderItemContent({ props: e = {}, events: t = {} }, { data: n, field: r }) {
3082
- return $(r) ? c(F, p({
3082
+ return $(r) ? c(P, p({
3083
3083
  value: n[r],
3084
3084
  "onUpdate:value": (e) => n[r] = e
3085
3085
  }, Object.assign({}, { filterOption: Oa.autoComplete.filterOption }, e), { onChange: (...e) => {
@@ -3110,7 +3110,7 @@ var va = "-", ya = {
3110
3110
  },
3111
3111
  $checkbox: {
3112
3112
  renderItemContent({ props: e = {}, options: t, events: n = {}, defaultValue: r }, { data: i, field: a }) {
3113
- return Zi(r) && $(a) && Xi(i[a]) && (i[a] = r), $(a) ? c(re, p({
3113
+ return Zi(r) && $(a) && Xi(i[a]) && (i[a] = r), $(a) ? c(L, p({
3114
3114
  value: i[a],
3115
3115
  "onUpdate:value": (e) => i[a] = e
3116
3116
  }, e, {
@@ -3124,13 +3124,13 @@ var va = "-", ya = {
3124
3124
  }), null) : null;
3125
3125
  },
3126
3126
  renderDefault({ props: e = {}, options: t }, { row: n, field: r }) {
3127
- return $(r) ? c(re, p({
3127
+ return $(r) ? c(L, p({
3128
3128
  value: n[r],
3129
3129
  "onUpdate:value": (e) => n[r] = e
3130
3130
  }, e, { options: e.options ?? t ?? [] }), null) : null;
3131
3131
  },
3132
3132
  renderReadonly({ props: e = {}, options: t }, { data: n, field: r }) {
3133
- return $(r) ? c(re, p({
3133
+ return $(r) ? c(L, p({
3134
3134
  value: n[r],
3135
3135
  "onUpdate:value": (e) => n[r] = e
3136
3136
  }, (0, Q.merge)({}, { disabled: !0 }, e), { options: e.options ?? t ?? [] }), null) : null;
@@ -3144,7 +3144,7 @@ var va = "-", ya = {
3144
3144
  row: t,
3145
3145
  field: n
3146
3146
  }) ?? ($(n) ? t[n] : "");
3147
- return $(n) ? c(we, p((0, Q.merge)({}, r, (0, Q.omit)(e, ["content", "getContent"])), { content: i }), null) : null;
3147
+ return $(n) ? c(Te, p((0, Q.merge)({}, r, (0, Q.omit)(e, ["content", "getContent"])), { content: i }), null) : null;
3148
3148
  } },
3149
3149
  $tableInput: { renderItemContent({ props: e = {}, handleTrigger: t }, { data: n, field: r }) {
3150
3150
  return $(r) ? c(Ta, {
@@ -3192,13 +3192,13 @@ var va = "-", ya = {
3192
3192
  },
3193
3193
  TreeSelect: {
3194
3194
  renderItemContent({ props: e = {} }, { data: t, field: n }) {
3195
- return $(n) ? c(H, p({
3195
+ return $(n) ? c(we, p({
3196
3196
  value: t[n],
3197
3197
  "onUpdate:value": (e) => t[n] = e
3198
3198
  }, e), null) : null;
3199
3199
  },
3200
3200
  renderDefault({ props: e = {} }, { row: t, field: n }) {
3201
- return $(n) ? c(H, p({
3201
+ return $(n) ? c(we, p({
3202
3202
  value: t[n],
3203
3203
  "onUpdate:value": (e) => t[n] = e
3204
3204
  }, e), null) : null;
@@ -3215,7 +3215,7 @@ var va = "-", ya = {
3215
3215
  renders: Ma,
3216
3216
  addRender: Na
3217
3217
  }, Fa = /* @__PURE__ */ l((e, { emit: t }) => {
3218
- let { itemRender: n, defaultHandler: r } = e, { renderFormParams: i } = O(e), a = (e) => {
3218
+ let { itemRender: n, defaultHandler: r } = e, { renderFormParams: i } = ee(e), a = (e) => {
3219
3219
  t("trigger", e);
3220
3220
  }, o = (e, n) => {
3221
3221
  t("delayTrigger", e, n);
@@ -3243,7 +3243,7 @@ var va = "-", ya = {
3243
3243
  },
3244
3244
  emits: ["trigger", "delayTrigger"]
3245
3245
  }), Ia = /* @__PURE__ */ l((e) => {
3246
- let { formData: t } = O(e);
3246
+ let { formData: t } = ee(e);
3247
3247
  return () => e.item.slots?.default?.({
3248
3248
  data: t.value,
3249
3249
  field: e.item.field
@@ -3287,15 +3287,15 @@ var va = "-", ya = {
3287
3287
  (0, Q.isEqual)(e, t) || h();
3288
3288
  }, { deep: !0 }), (t, r) => {
3289
3289
  let a = T("a-form-item"), s = T("a-col");
3290
- return b(), n(s, p({ key: `_col_${l.value}` }, e.item.col ?? (e.item.span ? { span: e.item.span } : A(da))), {
3291
- default: P(() => [(b(), n(a, p({
3290
+ return b(), n(s, p({ key: `_col_${l.value}` }, e.item.col ?? (e.item.span ? { span: e.item.span } : k(da))), {
3291
+ default: N(() => [(b(), n(a, p({
3292
3292
  key: `_item_${l.value}`,
3293
3293
  class: [`p-content-align-${e.item.align ?? "left"} ${e.item.forceRequired ? "p-required" : ""}`, { "p-error-hang-out": c.value }],
3294
3294
  colon: "",
3295
3295
  label: e.item.title,
3296
3296
  name: e.item.field,
3297
3297
  "wrapper-col": e.item.wrapperCol ?? (e.item.title ? void 0 : { span: 24 })
3298
- }, A(Q.omit)(e.item, [
3298
+ }, k(Q.omit)(e.item, [
3299
3299
  "field",
3300
3300
  "title",
3301
3301
  "span",
@@ -3305,13 +3305,13 @@ var va = "-", ya = {
3305
3305
  "forceRequired",
3306
3306
  "tooltip"
3307
3307
  ])), o({
3308
- default: P(() => [e.item.slots?.default ? (b(), n(A(Ia), {
3308
+ default: N(() => [e.item.slots?.default ? (b(), n(k(Ia), {
3309
3309
  key: `_sl_${e.item.field ?? "_"}_${l.value}`,
3310
3310
  "form-data": e.formData,
3311
3311
  item: e.item,
3312
3312
  "pass-delay-trigger": u,
3313
3313
  "pass-trigger": f
3314
- }, null, 8, ["form-data", "item"])) : e.item.itemRender?.name ? (b(), n(A(Fa), {
3314
+ }, null, 8, ["form-data", "item"])) : e.item.itemRender?.name ? (b(), n(k(Fa), {
3315
3315
  key: `_re_${e.item.field ?? "_"}_${l.value}`,
3316
3316
  "default-handler": { reset: m },
3317
3317
  "item-render": e.item.itemRender,
@@ -3329,11 +3329,11 @@ var va = "-", ya = {
3329
3329
  _: 2
3330
3330
  }, [e.item.slots?.title ? {
3331
3331
  name: "label",
3332
- fn: P(() => [(b(), n(E(e.item.slots.title)))]),
3332
+ fn: N(() => [(b(), n(E(e.item.slots.title)))]),
3333
3333
  key: "0"
3334
3334
  } : void 0, g.value ? {
3335
3335
  name: "tooltip",
3336
- fn: P(() => [(b(), n(E(g.value)))]),
3336
+ fn: N(() => [(b(), n(E(g.value)))]),
3337
3337
  key: "1"
3338
3338
  } : void 0]), 1040, [
3339
3339
  "class",
@@ -3381,7 +3381,7 @@ var va = "-", ya = {
3381
3381
  },
3382
3382
  emits: ["apply", "reset"],
3383
3383
  setup(a, { expose: o, emit: s }) {
3384
- let l = a, u = s, { items: d, data: f } = O(l);
3384
+ let l = a, u = s, { items: d, data: f } = ee(l);
3385
3385
  function m() {
3386
3386
  u("apply", f.value);
3387
3387
  }
@@ -3414,17 +3414,17 @@ var va = "-", ya = {
3414
3414
  return o({
3415
3415
  reset: _,
3416
3416
  $form: t(() => h.value)
3417
- }), (t, o) => A(d).some((e) => e.field && e.itemRender || e.slots?.default) ? (b(), i("div", za, [(b(), n(A(oe), p({
3417
+ }), (t, o) => k(d).some((e) => e.field && e.itemRender || e.slots?.default) ? (b(), i("div", za, [(b(), n(k(oe), p({
3418
3418
  name: a.name,
3419
3419
  key: g.value,
3420
3420
  ref_key: "formEl",
3421
3421
  ref: h,
3422
- model: A(f)
3422
+ model: k(f)
3423
3423
  }, y.value, { onSubmit: m }), {
3424
- default: P(() => [c(A(he), { gutter: [6, 12] }, {
3425
- default: P(() => [(b(!0), i(e, null, C(A(d), (e, t) => (b(), n(Ra, {
3424
+ default: N(() => [c(k(he), { gutter: [6, 12] }, {
3425
+ default: N(() => [(b(!0), i(e, null, C(k(d), (e, t) => (b(), n(Ra, {
3426
3426
  key: `_col_${e.field || t}`,
3427
- "form-data": A(f),
3427
+ "form-data": k(f),
3428
3428
  item: e,
3429
3429
  onReset: v,
3430
3430
  onTrigger: w
@@ -3441,7 +3441,7 @@ var va = "-", ya = {
3441
3441
  name: "RenderAntTitle",
3442
3442
  props: ["column"]
3443
3443
  }), Ha = ({ title: e, content: t }) => new Promise((n, r) => {
3444
- de.confirm({
3444
+ ue.confirm({
3445
3445
  title: e,
3446
3446
  content: t,
3447
3447
  onOk: () => {
@@ -3451,9 +3451,9 @@ var va = "-", ya = {
3451
3451
  r();
3452
3452
  }
3453
3453
  });
3454
- }), Ua = Te.success, Wa = Te.error;
3455
- Te.info;
3456
- var Ga = Te.warning;
3454
+ }), Ua = H.success, Wa = H.error;
3455
+ H.info;
3456
+ var Ga = H.warning;
3457
3457
  //#endregion
3458
3458
  //#region src/packages/utils/autoViewportBox.ts
3459
3459
  function Ka(e) {
@@ -3579,38 +3579,38 @@ var Qa = { key: 0 }, $a = {
3579
3579
  "resetQuery"
3580
3580
  ],
3581
3581
  setup(l, { expose: u, emit: d }) {
3582
- let f = l, { formConfig: g, pageConfig: _, columns: w, toolbarConfig: k, proxyConfig: j, tableConfig: M, selectConfig: te, scrollMode: F } = O(f), ne = t(() => f.autoBoxSizeOffset ?? sa().autoBoxSizeOffset), L = x({
3582
+ let f = l, { formConfig: g, pageConfig: _, columns: w, toolbarConfig: O, proxyConfig: A, tableConfig: j, selectConfig: ne, scrollMode: P } = ee(f), re = t(() => f.autoBoxSizeOffset ?? sa().autoBoxSizeOffset), I = x({
3583
3583
  table: !1,
3584
3584
  toolbar: !1,
3585
3585
  form: !1
3586
- }), re = (e) => {
3586
+ }), L = (e) => {
3587
3587
  (0, Q.isObject)(e) ? Object.keys(e).forEach((t) => {
3588
- L[t] = e[t];
3589
- }) : (0, Q.isBoolean)(e) && (L.form = e, L.table = e, L.toolbar = e);
3590
- }, ie = S(), ae = S(), se = S(), ce = S(), le = S(500), R = S([]), ue = S([]), de = (e) => {
3591
- let { ajax: t } = j.value;
3588
+ I[t] = e[t];
3589
+ }) : (0, Q.isBoolean)(e) && (I.form = e, I.table = e, I.toolbar = e);
3590
+ }, ie = S(), ae = S(), se = S(), R = S(), ce = S(500), z = S([]), le = S([]), ue = (e) => {
3591
+ let { ajax: t } = A.value;
3592
3592
  switch (e) {
3593
3593
  case "multiDelete":
3594
- t.multiDelete && (R.value.length > 0 ? Ha({
3594
+ t.multiDelete && (z.value.length > 0 ? Ha({
3595
3595
  title: "警告",
3596
3596
  content: "确认删除选中的数据吗?"
3597
3597
  }).then(() => {
3598
- L.table = !0, L.toolbar = !0, t.multiDelete(R.value).then(() => {
3599
- Te.success("删除成功"), Re();
3598
+ I.table = !0, I.toolbar = !0, t.multiDelete(z.value).then(() => {
3599
+ H.success("删除成功"), W();
3600
3600
  }).catch(() => {
3601
- Te.error("删除失败");
3601
+ H.error("删除失败");
3602
3602
  }).finally(() => {
3603
- L.table = !1, L.toolbar = !1, ge.multiDelete = !1;
3603
+ I.table = !1, I.toolbar = !1, ge.multiDelete = !1;
3604
3604
  });
3605
- }) : Te.warn("请选择要删除的数据"));
3605
+ }) : H.warn("请选择要删除的数据"));
3606
3606
  break;
3607
3607
  }
3608
- }, fe = t(() => {
3608
+ }, de = t(() => {
3609
3609
  let e = [];
3610
3610
  return ea(w.value ?? [], (t) => {
3611
3611
  t.slots && t.slots.title && (t.field ||= "__holder__" + e.length, e.push(t));
3612
3612
  }), e;
3613
- }), z = S(), pe = S(), me = S(Ji()), B = S(Ji()), ge = x([...(f.toolbarConfig?.buttons?.map((e) => e.code) ?? []).filter((e) => e), ...(f.toolbarConfig?.tools?.map((e) => e.code) ?? []).filter((e) => e)].reduce((e, t) => (e[t] = !1, e), {})), ve = (e, t) => {
3613
+ }), fe = S(), pe = S(), me = S(Ji()), B = S(Ji()), ge = x([...(f.toolbarConfig?.buttons?.map((e) => e.code) ?? []).filter((e) => e), ...(f.toolbarConfig?.tools?.map((e) => e.code) ?? []).filter((e) => e)].reduce((e, t) => (e[t] = !1, e), {})), ve = (e, t) => {
3614
3614
  ge[e] = t;
3615
3615
  }, ye = (0, Q.debounce)(() => {
3616
3616
  B.value = Ji();
@@ -3622,20 +3622,20 @@ var Qa = { key: 0 }, $a = {
3622
3622
  }), V = x({
3623
3623
  page: 1,
3624
3624
  size: _.value?.pageSize ?? 10
3625
- }), Se = S(0), Ce = S(0), H = S([]), we = t(() => j.value && j.value.ajax ? _.value ? "pagination" : "list" : "bad"), Ee = t(() => !!te.value?.showCount), Oe = ee(), ke = d, Ae = t(() => ue.value.filter((e) => R.value.includes(e[f.rowKey ?? "id"]))), je = (0, Q.debounce)((e) => {
3625
+ }), Se = S(0), Ce = S(0), we = S([]), Te = t(() => A.value && A.value.ajax ? _.value ? "pagination" : "list" : "bad"), Ee = t(() => !!ne.value?.showCount), Oe = te(), ke = d, Ae = t(() => le.value.filter((e) => z.value.includes(e[f.rowKey ?? "id"]))), je = (0, Q.debounce)((e) => {
3626
3626
  ke("toolbarButtonClick", {
3627
- data: H.value,
3627
+ data: we.value,
3628
3628
  code: e,
3629
- selectedKeys: R.value,
3629
+ selectedKeys: z.value,
3630
3630
  records: Ae.value
3631
- }), de(e);
3631
+ }), ue(e);
3632
3632
  }, 100), Me = ({ key: e }) => je(e), Ne = (0, Q.debounce)((e) => {
3633
3633
  ke("toolbarToolClick", {
3634
- data: H.value,
3634
+ data: we.value,
3635
3635
  code: e,
3636
- selectedKeys: R.value,
3636
+ selectedKeys: z.value,
3637
3637
  records: Ae.value
3638
- }), de(e);
3638
+ }), ue(e);
3639
3639
  }, 100), Pe = S({}), Fe = ({ row: e, field: t }) => {
3640
3640
  ke("pick", {
3641
3641
  row: e,
@@ -3652,159 +3652,159 @@ var Qa = { key: 0 }, $a = {
3652
3652
  }
3653
3653
  ke("resetQuery");
3654
3654
  }
3655
- V.page = 1, e || Ve();
3655
+ V.page = 1, e || Be();
3656
3656
  }, Ie = (e, t) => t ? {
3657
3657
  list: (0, Q.isString)(t.list) ? (0, Q.get)(e, t.list) : (0, Q.isFunction)(t.list) ? t.list(e) : void 0,
3658
3658
  total: (0, Q.isString)(t.total) ? (0, Q.get)(e, t.total) : (0, Q.isFunction)(t.total) ? t.total(e) : void 0,
3659
3659
  result: (0, Q.isString)(t.result) ? (0, Q.get)(e, t.result) : (0, Q.isFunction)(t.result) ? t.result(e) : void 0,
3660
3660
  message: (0, Q.isString)(t.message) ? (0, Q.get)(e, t.message) : (0, Q.isFunction)(t.message) ? t.message(e) : void 0
3661
- } : { list: e }, Le = () => (ue.value = [], R.value = [], U()), Re = () => (V.page = 1, ue.value = [], R.value = [], Be()), ze = (e, t) => (V.page = e, V.size = t, Be()), Be = () => new Promise((e) => {
3662
- if (we.value !== "bad") {
3663
- L.form = !0, L.table = !0;
3664
- let { ajax: t } = j.value;
3661
+ } : { list: e }, Le = () => (le.value = [], z.value = [], U()), W = () => (V.page = 1, le.value = [], z.value = [], ze()), Re = (e, t) => (V.page = e, V.size = t, ze()), ze = () => new Promise((e) => {
3662
+ if (Te.value !== "bad") {
3663
+ I.form = !0, I.table = !0;
3664
+ let { ajax: t } = A.value;
3665
3665
  t.query({
3666
3666
  form: Pe.value,
3667
3667
  page: V
3668
3668
  }).then((t) => {
3669
- let { list: n, total: r, result: i, message: a } = Ie(t, j.value.response);
3670
- n ? (H.value = n, Se.value++) : i ? (H.value = i, Ce.value = r ?? i.length, Se.value++) : (H.value = [], Se.value++, a && Te.warn(a)), e(H.value);
3669
+ let { list: n, total: r, result: i, message: a } = Ie(t, A.value.response);
3670
+ n ? (we.value = n, Se.value++) : i ? (we.value = i, Ce.value = r ?? i.length, Se.value++) : (we.value = [], Se.value++, a && H.warn(a)), e(we.value);
3671
3671
  }).catch((t) => {
3672
3672
  console.error("fetchData error", t), e([]);
3673
3673
  }).finally(() => {
3674
- L.form = !1, L.table = !1;
3674
+ I.form = !1, I.table = !1;
3675
3675
  });
3676
3676
  }
3677
- }), Ve = (0, Q.debounce)(Be, 160), W = (e, t) => (Object.assign(Pe.value, e), V.page = 1, t ? Promise.resolve() : Ve()), He = (e, t) => (Pe.value = e, V.page = 1, t ? Promise.resolve() : Ve()), Ue = {
3677
+ }), Be = (0, Q.debounce)(ze, 160), G = (e, t) => (Object.assign(Pe.value, e), V.page = 1, t ? Promise.resolve() : Be()), Ve = (e, t) => (Pe.value = e, V.page = 1, t ? Promise.resolve() : Be()), He = {
3678
3678
  size: "small",
3679
3679
  sticky: !0,
3680
3680
  transformCellText: ({ text: e }) => (0, Q.isArray)(e) && e.length === 0 ? "-" : e
3681
- }, G = t(() => (0, Q.merge)({}, Ue, M?.value ?? {}, te.value ? { rowSelection: {
3682
- type: te.value.multiple ? "checkbox" : "radio",
3681
+ }, K = t(() => (0, Q.merge)({}, He, j?.value ?? {}, ne.value ? { rowSelection: {
3682
+ type: ne.value.multiple ? "checkbox" : "radio",
3683
3683
  preserveSelectedRowKeys: !0,
3684
- selectedRowKeys: R.value,
3684
+ selectedRowKeys: z.value,
3685
3685
  onChange: (e) => {
3686
- R.value = e;
3687
- let t = f.rowKey ?? "id", n = ue.value.map((e) => e[t]), r = e.filter((e) => !n.includes(e)).map((e) => H.value.find((n) => n[t] === e)).filter((e) => !!e);
3688
- ue.value = [...ue.value, ...r];
3686
+ z.value = e;
3687
+ let t = f.rowKey ?? "id", n = le.value.map((e) => e[t]), r = e.filter((e) => !n.includes(e)).map((e) => we.value.find((n) => n[t] === e)).filter((e) => !!e);
3688
+ le.value = [...le.value, ...r];
3689
3689
  },
3690
- getCheckboxProps: te.value.getCheckboxProps
3691
- } } : {})), We = t(() => (0, Q.omit)({
3690
+ getCheckboxProps: ne.value.getCheckboxProps
3691
+ } } : {})), Ue = t(() => (0, Q.omit)({
3692
3692
  labelCol: fa,
3693
3693
  ...g.value
3694
- }, ["items"])), K = () => {
3695
- Re();
3694
+ }, ["items"])), q = () => {
3695
+ W();
3696
3696
  };
3697
- N(() => [
3697
+ M(() => [
3698
3698
  w.value,
3699
- j.value,
3700
- k.value
3699
+ A.value,
3700
+ O.value
3701
3701
  ], () => {
3702
3702
  ye();
3703
- }, { deep: !0 }), N(() => [
3703
+ }, { deep: !0 }), M(() => [
3704
3704
  B.value,
3705
3705
  Se.value,
3706
- we.value,
3706
+ Te.value,
3707
3707
  Ee.value
3708
- ], () => m(() => X()), { flush: "post" });
3709
- let q = null, J = () => {
3710
- q?.destroy(), q = null;
3711
- }, Ge = () => {
3712
- J(), !(!f.autoBoxSize || !ie.value) && (q = Za(() => ie.value ?? void 0, () => qa(ne.value), { onLayout: () => {
3713
- m(() => X());
3714
- } }), q.attach());
3708
+ ], () => m(() => Z()), { flush: "post" });
3709
+ let We = null, J = () => {
3710
+ We?.destroy(), We = null;
3711
+ }, Y = () => {
3712
+ J(), !(!f.autoBoxSize || !ie.value) && (We = Za(() => ie.value ?? void 0, () => qa(re.value), { onLayout: () => {
3713
+ m(() => Z());
3714
+ } }), We.attach());
3715
3715
  };
3716
- N(() => f.autoBoxSize, (e) => {
3717
- e ? m(() => Ge()) : J();
3718
- }), N(ne, () => {
3719
- f.autoBoxSize && q?.update();
3716
+ M(() => f.autoBoxSize, (e) => {
3717
+ e ? m(() => Y()) : J();
3718
+ }), M(re, () => {
3719
+ f.autoBoxSize && We?.update();
3720
3720
  }, { deep: !0 });
3721
- let Y = null, Ke = (e) => {
3721
+ let X = null, Ge = (e) => {
3722
3722
  let t = e.querySelector(".ant-table-wrapper");
3723
3723
  return t ? t.querySelector(".ant-table-header") || t.querySelector(".ant-table-thead") : null;
3724
- }, X = () => {
3725
- Y && cancelAnimationFrame(Y), Y = requestAnimationFrame(() => {
3726
- if (Y = null, !se.value) return;
3724
+ }, Z = () => {
3725
+ X && cancelAnimationFrame(X), X = requestAnimationFrame(() => {
3726
+ if (X = null, !se.value) return;
3727
3727
  if (Zi(f.renderY)) {
3728
- le.value = f.renderY;
3728
+ ce.value = f.renderY;
3729
3729
  return;
3730
3730
  }
3731
3731
  if (f.fitContent) {
3732
3732
  let e = typeof window < "u" ? window.innerHeight : 800, t = f.fitHeight ?? 30;
3733
- le.value = Math.max(Math.floor(e * .6) - t, 160);
3733
+ ce.value = Math.max(Math.floor(e * .6) - t, 160);
3734
3734
  return;
3735
3735
  }
3736
- let e = se.value.clientHeight, t = ce.value?.offsetHeight ?? 0, n = Ke(se.value)?.getBoundingClientRect().height ?? 0, r = f.fitHeight ?? 30;
3737
- le.value = Math.max(e - t - n - r, 100);
3736
+ let e = se.value.clientHeight, t = R.value?.offsetHeight ?? 0, n = Ge(se.value)?.getBoundingClientRect().height ?? 0, r = f.fitHeight ?? 30;
3737
+ ce.value = Math.max(e - t - n - r, 100);
3738
3738
  });
3739
- }, qe = null;
3740
- N(ae, (e) => {
3741
- qe?.disconnect(), qe = null, e && (qe = new ResizeObserver(() => X()), qe.observe(e));
3739
+ }, Ke = null;
3740
+ M(ae, (e) => {
3741
+ Ke?.disconnect(), Ke = null, e && (Ke = new ResizeObserver(() => Z()), Ke.observe(e));
3742
3742
  }, { immediate: !0 }), u({
3743
3743
  commitProxy: {
3744
- query: Ve,
3744
+ query: Be,
3745
3745
  reload: Le,
3746
- reloadPage: Re,
3747
- passQuery: W,
3748
- forcePassQuery: He
3746
+ reloadPage: W,
3747
+ passQuery: G,
3748
+ forcePassQuery: Ve
3749
3749
  },
3750
3750
  $table: t(() => pe.value),
3751
- selectedRowKeys: t(() => R.value),
3751
+ selectedRowKeys: t(() => z.value),
3752
3752
  setBtnLoading: ve,
3753
3753
  selectedRecords: Ae,
3754
- $form: t(() => z.value),
3754
+ $form: t(() => fe.value),
3755
3755
  getFormData: () => Pe.value,
3756
- setLoadings: re,
3757
- resizeTable: X
3756
+ setLoadings: L,
3757
+ resizeTable: Z
3758
3758
  });
3759
- let Je, Ye = null, Xe = null, Ze = null;
3759
+ let qe, Je = null, Ye = null, Xe = null;
3760
3760
  y(() => {
3761
- if (X(), window.addEventListener("resize", X), Je = new MutationObserver((e) => {
3761
+ if (Z(), window.addEventListener("resize", Z), qe = new MutationObserver((e) => {
3762
3762
  e.forEach((e) => {
3763
3763
  if (e.type === "attributes" && e.attributeName === "style") {
3764
3764
  let t = e.target;
3765
- window.getComputedStyle(t).display !== "none" && X();
3765
+ window.getComputedStyle(t).display !== "none" && Z();
3766
3766
  }
3767
3767
  });
3768
3768
  }), ie.value) {
3769
- Je.observe(ie.value, {
3769
+ qe.observe(ie.value, {
3770
3770
  attributes: !0,
3771
3771
  attributeFilter: ["style"]
3772
- }), Ye = new ResizeObserver(() => X());
3772
+ }), Je = new ResizeObserver(() => Z());
3773
3773
  let e = ie.value.parentElement;
3774
- for (let t = 0; t < 5 && e && e !== document.body; t++) Ye.observe(e), e = e.parentElement;
3774
+ for (let t = 0; t < 5 && e && e !== document.body; t++) Je.observe(e), e = e.parentElement;
3775
3775
  }
3776
- Xe = new ResizeObserver(() => X()), se.value && Xe.observe(se.value), Ze = new ResizeObserver(() => X()), ce.value && Ze.observe(ce.value), U(f.manualFetch), m(() => {
3777
- f.autoBoxSize && Ge(), X();
3776
+ Ye = new ResizeObserver(() => Z()), se.value && Ye.observe(se.value), Xe = new ResizeObserver(() => Z()), R.value && Xe.observe(R.value), U(f.manualFetch), m(() => {
3777
+ f.autoBoxSize && Y(), Z();
3778
3778
  });
3779
3779
  });
3780
- let Z = (e) => (0, Q.isFunction)(e) ? e() : e, Qe = (e) => (0, Q.isString)(e), $e = ["align"], et = (e) => e.map((e) => ({
3780
+ let Ze = (e) => (0, Q.isFunction)(e) ? e() : e, Qe = (e) => (0, Q.isString)(e), $e = ["align"], et = (e) => e.map((e) => ({
3781
3781
  ...$e.reduce((e, t) => ({ [t]: f[t] }), {}),
3782
3782
  ...e
3783
3783
  }));
3784
3784
  return v(() => {
3785
- J(), Y && cancelAnimationFrame(Y), window.removeEventListener("resize", X), Je.disconnect(), qe?.disconnect(), Ye?.disconnect(), Xe?.disconnect(), Ze?.disconnect();
3785
+ J(), X && cancelAnimationFrame(X), window.removeEventListener("resize", Z), qe.disconnect(), Ke?.disconnect(), Je?.disconnect(), Ye?.disconnect(), Xe?.disconnect();
3786
3786
  }), (t, u) => {
3787
3787
  let d = T("a-menu-item"), m = T("a-menu"), _ = T("a-dropdown"), v = T("a-pagination");
3788
3788
  return b(), i("div", p({
3789
3789
  ref_key: "boxEl",
3790
3790
  ref: ie,
3791
3791
  class: ["p-wrapper flex flex-col gap-8px", l.fitContent ? "w-full h-auto" : l.autoBoxSize ? "overflow-y-auto min-h-0 min-w-0 flex-1 w-full" : "overflow-y-auto h-full"]
3792
- }, A(Oe)), [we.value === "bad" ? (b(), i("div", Qa, "请检查配置")) : (b(), i(e, { key: 1 }, [
3793
- A(g)?.items?.some((e) => e.field && e.itemRender) ? (b(), i("div", {
3792
+ }, k(Oe)), [Te.value === "bad" ? (b(), i("div", Qa, "请检查配置")) : (b(), i(e, { key: 1 }, [
3793
+ k(g)?.items?.some((e) => e.field && e.itemRender) ? (b(), i("div", {
3794
3794
  key: 0,
3795
3795
  class: "p-pane p-form-wrapper",
3796
3796
  ref_key: "pFormWrapper",
3797
3797
  ref: ae
3798
- }, [c(A(_e), { spinning: L.form }, {
3799
- default: P(() => [(b(), n(A(oe), p({
3800
- name: A(g)?.name,
3798
+ }, [c(k(_e), { spinning: I.form }, {
3799
+ default: N(() => [(b(), n(k(oe), p({
3800
+ name: k(g)?.name,
3801
3801
  key: me.value,
3802
3802
  ref_key: "formEl",
3803
- ref: z,
3803
+ ref: fe,
3804
3804
  model: Pe.value
3805
- }, We.value, { onSubmit: K }), {
3806
- default: P(() => [c(A(he), { gutter: [6, 12] }, {
3807
- default: P(() => [(b(!0), i(e, null, C(A(g).items, (e, t) => (b(), n(Ra, {
3805
+ }, Ue.value, { onSubmit: q }), {
3806
+ default: N(() => [c(k(he), { gutter: [6, 12] }, {
3807
+ default: N(() => [(b(!0), i(e, null, C(k(g).items, (e, t) => (b(), n(Ra, {
3808
3808
  key: `_col_${e.field || t}`,
3809
3809
  "form-data": Pe.value,
3810
3810
  item: e,
@@ -3816,31 +3816,31 @@ var Qa = { key: 0 }, $a = {
3816
3816
  }, 16, ["name", "model"]))]),
3817
3817
  _: 1
3818
3818
  }, 8, ["spinning"])], 512)) : r("", !0),
3819
- A(k) ? (b(), i("div", $a, [a("div", eo, [A(k).buttons && A(k).buttons.length > 0 ? (b(!0), i(e, { key: 0 }, C(A(k).buttons, (t, o) => (b(), i(e, { key: o }, [t.dropdowns && t.dropdowns.length ? (b(), n(_, { key: 0 }, {
3820
- overlay: P(() => [c(m, { onClick: Me }, {
3821
- default: P(() => [(b(!0), i(e, null, C(t.dropdowns, (t) => (b(), n(d, { key: t.code }, {
3822
- default: P(() => [t.content && Qe(Z(t.content)) ? (b(), i(e, { key: 0 }, [s(D(Z(t.content)), 1)], 64)) : t.content ? (b(), n(E(Z(t.content)), { key: 1 })) : r("", !0)]),
3819
+ k(O) ? (b(), i("div", $a, [a("div", eo, [k(O).buttons && k(O).buttons.length > 0 ? (b(!0), i(e, { key: 0 }, C(k(O).buttons, (t, o) => (b(), i(e, { key: o }, [t.dropdowns && t.dropdowns.length ? (b(), n(_, { key: 0 }, {
3820
+ overlay: N(() => [c(m, { onClick: Me }, {
3821
+ default: N(() => [(b(!0), i(e, null, C(t.dropdowns, (t) => (b(), n(d, { key: t.code }, {
3822
+ default: N(() => [t.content && Qe(Ze(t.content)) ? (b(), i(e, { key: 0 }, [s(D(Ze(t.content)), 1)], 64)) : t.content ? (b(), n(E(Ze(t.content)), { key: 1 })) : r("", !0)]),
3823
3823
  _: 2
3824
3824
  }, 1024))), 128))]),
3825
3825
  _: 2
3826
3826
  }, 1024)]),
3827
- default: P(() => [c(A(I), {
3827
+ default: N(() => [c(k(F), {
3828
3828
  type: t.type,
3829
3829
  size: t.size ?? "middle",
3830
- disabled: A(k).disabled || t.disabled,
3831
- loading: L.toolbar || !!t.code && ge[t.code],
3830
+ disabled: k(O).disabled || t.disabled,
3831
+ loading: I.toolbar || !!t.code && ge[t.code],
3832
3832
  danger: t.danger,
3833
3833
  shape: t.shape,
3834
3834
  ghost: t.ghost,
3835
3835
  block: t.block
3836
3836
  }, {
3837
- default: P(() => [a("div", to, [
3838
- t.icon ? (b(), n(A(Ea), {
3837
+ default: N(() => [a("div", to, [
3838
+ t.icon ? (b(), n(k(Ea), {
3839
3839
  key: 0,
3840
3840
  icon: t.icon
3841
3841
  }, null, 8, ["icon"])) : r("", !0),
3842
- t.content && Qe(Z(t.content)) ? (b(), i(e, { key: 1 }, [s(D(Z(t.content)), 1)], 64)) : t.content ? (b(), n(E(Z(t.content)), { key: 2 })) : r("", !0),
3843
- c(A(De))
3842
+ t.content && Qe(Ze(t.content)) ? (b(), i(e, { key: 1 }, [s(D(Ze(t.content)), 1)], 64)) : t.content ? (b(), n(E(Ze(t.content)), { key: 2 })) : r("", !0),
3843
+ c(k(De))
3844
3844
  ])]),
3845
3845
  _: 2
3846
3846
  }, 1032, [
@@ -3854,22 +3854,22 @@ var Qa = { key: 0 }, $a = {
3854
3854
  "block"
3855
3855
  ])]),
3856
3856
  _: 2
3857
- }, 1024)) : t.code ? (b(), n(A(I), {
3857
+ }, 1024)) : t.code ? (b(), n(k(F), {
3858
3858
  key: 1,
3859
3859
  type: t.type,
3860
3860
  size: t.size ?? "middle",
3861
- disabled: A(k).disabled || t.disabled,
3862
- loading: L.toolbar || !!t.code && ge[t.code],
3861
+ disabled: k(O).disabled || t.disabled,
3862
+ loading: I.toolbar || !!t.code && ge[t.code],
3863
3863
  danger: t.danger,
3864
3864
  shape: t.shape,
3865
3865
  ghost: t.ghost,
3866
3866
  block: t.block,
3867
- onClick: (e) => A(je)(t.code)
3867
+ onClick: (e) => k(je)(t.code)
3868
3868
  }, {
3869
- default: P(() => [a("div", no, [t.icon ? (b(), n(A(Ea), {
3869
+ default: N(() => [a("div", no, [t.icon ? (b(), n(k(Ea), {
3870
3870
  key: 0,
3871
3871
  icon: t.icon
3872
- }, null, 8, ["icon"])) : r("", !0), t.content && Qe(Z(t.content)) ? (b(), i(e, { key: 1 }, [s(D(Z(t.content)), 1)], 64)) : t.content ? (b(), n(E(Z(t.content)), { key: 2 })) : r("", !0)])]),
3872
+ }, null, 8, ["icon"])) : r("", !0), t.content && Qe(Ze(t.content)) ? (b(), i(e, { key: 1 }, [s(D(Ze(t.content)), 1)], 64)) : t.content ? (b(), n(E(Ze(t.content)), { key: 2 })) : r("", !0)])]),
3873
3873
  _: 2
3874
3874
  }, 1032, [
3875
3875
  "type",
@@ -3881,22 +3881,22 @@ var Qa = { key: 0 }, $a = {
3881
3881
  "ghost",
3882
3882
  "block",
3883
3883
  "onClick"
3884
- ])) : (b(), i("div", ro))], 64))), 128)) : r("", !0)]), a("span", io, [A(k).tools && A(k).tools.length > 0 ? (b(!0), i(e, { key: 0 }, C(A(k).tools, (t, o) => (b(), n(A(I), {
3884
+ ])) : (b(), i("div", ro))], 64))), 128)) : r("", !0)]), a("span", io, [k(O).tools && k(O).tools.length > 0 ? (b(!0), i(e, { key: 0 }, C(k(O).tools, (t, o) => (b(), n(k(F), {
3885
3885
  key: o,
3886
3886
  type: t.type,
3887
3887
  size: t.size ?? "middle",
3888
- disabled: A(k).disabled || t.disabled,
3888
+ disabled: k(O).disabled || t.disabled,
3889
3889
  danger: t.danger,
3890
3890
  shape: t.shape,
3891
3891
  ghost: t.ghost,
3892
3892
  block: t.block,
3893
- onClick: (e) => A(Ne)(t.code),
3894
- loading: L.toolbar || !!t.code && ge[t.code]
3893
+ onClick: (e) => k(Ne)(t.code),
3894
+ loading: I.toolbar || !!t.code && ge[t.code]
3895
3895
  }, {
3896
- default: P(() => [a("div", ao, [t.icon ? (b(), n(A(Ea), {
3896
+ default: N(() => [a("div", ao, [t.icon ? (b(), n(k(Ea), {
3897
3897
  key: 0,
3898
3898
  icon: t.icon
3899
- }, null, 8, ["icon"])) : r("", !0), t.content && Qe(Z(t.content)) ? (b(), i(e, { key: 1 }, [s(D(Z(t.content)), 1)], 64)) : t.content ? (b(), n(E(Z(t.content)), { key: 2 })) : r("", !0)])]),
3899
+ }, null, 8, ["icon"])) : r("", !0), t.content && Qe(Ze(t.content)) ? (b(), i(e, { key: 1 }, [s(D(Ze(t.content)), 1)], 64)) : t.content ? (b(), n(E(Ze(t.content)), { key: 2 })) : r("", !0)])]),
3900
3900
  _: 2
3901
3901
  }, 1032, [
3902
3902
  "type",
@@ -3912,39 +3912,39 @@ var Qa = { key: 0 }, $a = {
3912
3912
  a("div", {
3913
3913
  ref_key: "tableWrapperEl",
3914
3914
  ref: se,
3915
- class: h(l.fitContent ? "p-pane" : `p-pane flex-1 h-0 min-h-0 flex flex-col p-${A(F) ?? "inner"}-scroll`)
3916
- }, [a("div", { class: h(l.fitContent ? "p-grid-table-body" : "p-grid-table-body flex-1 min-h-0 overflow-hidden") }, [(b(), n(A(be), p({
3915
+ class: h(l.fitContent ? "p-pane" : `p-pane flex-1 h-0 min-h-0 flex flex-col p-${k(P) ?? "inner"}-scroll`)
3916
+ }, [a("div", { class: h(l.fitContent ? "p-grid-table-body" : "p-grid-table-body flex-1 min-h-0 overflow-hidden") }, [(b(), n(k(be), p({
3917
3917
  key: B.value + "_table",
3918
3918
  "row-key": l.rowKey ?? "id",
3919
3919
  ref_key: "tableEl",
3920
3920
  ref: pe,
3921
3921
  "row-class-name": l.striped ? (e, t) => t % 2 == 1 ? "p-grid-row-striped" : "" : "",
3922
- columns: et(A(w) ?? []).map((e) => A(ua)(e)),
3923
- "data-source": H.value,
3924
- loading: L.table,
3922
+ columns: et(k(w) ?? []).map((e) => k(ua)(e)),
3923
+ "data-source": we.value,
3924
+ loading: I.table,
3925
3925
  pagination: !1
3926
- }, G.value, { scroll: {
3926
+ }, K.value, { scroll: {
3927
3927
  x: "max-content",
3928
- y: le.value
3929
- } }), o({ _: 2 }, [fe.value.length > 0 ? {
3928
+ y: ce.value
3929
+ } }), o({ _: 2 }, [de.value.length > 0 ? {
3930
3930
  name: "headerCell",
3931
- fn: P(({ column: e }) => [fe.value.some((t) => e.key && t.field === e.key) ? (b(), n(A(Va), {
3931
+ fn: N(({ column: e }) => [de.value.some((t) => e.key && t.field === e.key) ? (b(), n(k(Va), {
3932
3932
  key: B.value + "_title_" + Se.value + "_slot_" + e.key,
3933
- column: fe.value.find((t) => e.key && t.field === e.key)
3933
+ column: de.value.find((t) => e.key && t.field === e.key)
3934
3934
  }, null, 8, ["column"])) : r("", !0)]),
3935
3935
  key: "0"
3936
3936
  } : void 0, xe.value.length > 0 ? {
3937
3937
  name: "bodyCell",
3938
- fn: P(({ column: e, record: t, index: i }) => [xe.value.some((t) => e.key && t.field === e.key) ? (b(), n(A(Ca), {
3938
+ fn: N(({ column: e, record: t, index: i }) => [xe.value.some((t) => e.key && t.field === e.key) ? (b(), n(k(Ca), {
3939
3939
  key: B.value + "_cell_" + Se.value + "_slot_" + e.key,
3940
3940
  column: xe.value.find((t) => e.key && t.field === e.key),
3941
3941
  "default-handler": {
3942
3942
  pick: Fe,
3943
- setLoadings: re
3943
+ setLoadings: L
3944
3944
  },
3945
3945
  row: t,
3946
3946
  "row-index": i,
3947
- "table-data": H.value
3947
+ "table-data": we.value
3948
3948
  }, null, 8, [
3949
3949
  "column",
3950
3950
  "default-handler",
@@ -3962,9 +3962,9 @@ var Qa = { key: 0 }, $a = {
3962
3962
  "scroll"
3963
3963
  ]))], 2), a("div", {
3964
3964
  ref_key: "tableFooterEl",
3965
- ref: ce,
3965
+ ref: R,
3966
3966
  class: "flex-shrink-0"
3967
- }, [we.value !== "pagination" && Ee.value ? (b(), i("div", oo, " 已选:" + D(R.value.length), 1)) : we.value === "pagination" ? (b(), i("div", so, [a("div", co, [Ee.value ? (b(), i(e, { key: 0 }, [s(" 已选:" + D(R.value.length), 1)], 64)) : r("", !0)]), c(v, {
3967
+ }, [Te.value !== "pagination" && Ee.value ? (b(), i("div", oo, " 已选:" + D(z.value.length), 1)) : Te.value === "pagination" ? (b(), i("div", so, [a("div", co, [Ee.value ? (b(), i(e, { key: 0 }, [s(" 已选:" + D(z.value.length), 1)], 64)) : r("", !0)]), c(v, {
3968
3968
  size: "small",
3969
3969
  responsive: !1,
3970
3970
  "show-size-changer": !0,
@@ -3972,7 +3972,7 @@ var Qa = { key: 0 }, $a = {
3972
3972
  current: V.page,
3973
3973
  "page-size": V.size,
3974
3974
  total: Ce.value,
3975
- onChange: ze
3975
+ onChange: Re
3976
3976
  }, null, 8, [
3977
3977
  "show-total",
3978
3978
  "current",
@@ -5873,7 +5873,7 @@ var Qa = { key: 0 }, $a = {
5873
5873
  this.changedDataMap.clear();
5874
5874
  }
5875
5875
  }
5876
- class O {
5876
+ class ee {
5877
5877
  constructor(e) {
5878
5878
  n(this, "ctx"), n(this, "history", []), n(this, "historyIndex", -1), this.ctx = e, this.init();
5879
5879
  }
@@ -5922,7 +5922,7 @@ var Qa = { key: 0 }, $a = {
5922
5922
  this.history = [], this.historyIndex = -1;
5923
5923
  }
5924
5924
  }
5925
- class k {
5925
+ class O {
5926
5926
  constructor(e) {
5927
5927
  n(this, "eventTasks", /* @__PURE__ */ new Set()), n(this, "ctx"), this.ctx = e, this.init();
5928
5928
  }
@@ -5950,7 +5950,7 @@ var Qa = { key: 0 }, $a = {
5950
5950
  this.clearDomSelection(), e.button === 0 && (this.ctx.mousedown = !0), this.ctx.emit("mousedown", e);
5951
5951
  }
5952
5952
  handleMousemove(e) {
5953
- let t = e, n = this.ctx.containerElement.getBoundingClientRect(), r = t.clientX - n.left, i = t.clientY - n.top;
5953
+ let t = e, n = this.ctx.containerElement.getBoundingClientRect(), r = this.ctx.zoomScale.toLogical(t.clientX - n.left), i = this.ctx.zoomScale.toLogical(t.clientY - n.top);
5954
5954
  this.ctx.mouseX = r, this.ctx.mouseY = i, this.ctx.emit("mousemove", e);
5955
5955
  }
5956
5956
  handleMouseUp(e) {
@@ -5964,6 +5964,13 @@ var Qa = { key: 0 }, $a = {
5964
5964
  t && this.ctx.isTarget(e) && (this.ctx.dragHeaderIng || this.ctx.emit("keydown", e));
5965
5965
  }
5966
5966
  handleWheel(e) {
5967
+ let t = e, { ENABLE_ZOOM_WHEEL: n } = this.ctx.config;
5968
+ if (n && (t.ctrlKey || t.metaKey)) {
5969
+ e.preventDefault();
5970
+ let n = t.deltaY > 0 ? -.1 : .1;
5971
+ this.ctx.setZoom(this.ctx.getZoom() + n);
5972
+ return;
5973
+ }
5967
5974
  this.ctx.emit("wheel", e);
5968
5975
  }
5969
5976
  handleTouchstart(e) {
@@ -6006,7 +6013,7 @@ var Qa = { key: 0 }, $a = {
6006
6013
  }
6007
6014
  }
6008
6015
  }
6009
- class A {
6016
+ class k {
6010
6017
  constructor() {
6011
6018
  n(this, "events", /* @__PURE__ */ new Map());
6012
6019
  }
@@ -6040,7 +6047,7 @@ var Qa = { key: 0 }, $a = {
6040
6047
  this.events.clear();
6041
6048
  }
6042
6049
  }
6043
- class ee {
6050
+ class te {
6044
6051
  constructor(e) {
6045
6052
  n(this, "ctx"), n(this, "textCacheMap", /* @__PURE__ */ new Map());
6046
6053
  let t = e.getContext("2d");
@@ -6053,8 +6060,8 @@ var Qa = { key: 0 }, $a = {
6053
6060
  clearTextCache() {
6054
6061
  this.textCacheMap.clear();
6055
6062
  }
6056
- scale(e) {
6057
- this.ctx.setTransform(1, 0, 0, 1, 0, 0), this.ctx.scale(e, e);
6063
+ scale(e, t = 1) {
6064
+ this.ctx.setTransform(1, 0, 0, 1, 0, 0), this.ctx.scale(e * t, e * t);
6058
6065
  }
6059
6066
  save() {
6060
6067
  this.ctx.save();
@@ -6386,9 +6393,9 @@ var Qa = { key: 0 }, $a = {
6386
6393
  };
6387
6394
  }
6388
6395
  }
6389
- class j {
6396
+ class A {
6390
6397
  constructor(e) {
6391
- n(this, "_config", {}), n(this, "CSS_PREFIX", "e-virt-table"), n(this, "ICONS", []), n(this, "ROW_KEY", ""), n(this, "DISABLED", !1), n(this, "HEADER_FONT", "12px normal Arial"), n(this, "BODY_FONT", "12px normal Arial"), n(this, "BORDER", !0), n(this, "STRIPE", !1), n(this, "STRIPE_COLOR", "#fafafa"), n(this, "BORDER_COLOR", "#e1e6eb"), n(this, "HEIGHT", 0), n(this, "PLACEHOLDER_COLOR", "#CDD0DC"), n(this, "EMPTY_BODY_HEIGHT", 120), n(this, "EMPTY_CUSTOM_STYLE", {}), n(this, "EMPTY_TEXT", ""), n(this, "LOADING_TEXT", ""), n(this, "MAX_HEIGHT", 1e3), n(this, "BORDER_RADIUS", 8), n(this, "ENABLE_OFFSET_HEIGHT", !1), n(this, "OFFSET_HEIGHT", 0), n(this, "HEADER_HEIGHT", 36), n(this, "ENABLE_HEADER_STICKY", !1), n(this, "HEADER_BG_COLOR", "#F8FAFF"), n(this, "BODY_BG_COLOR", "#FFF"), n(this, "HEADER_TEXT_COLOR", "#1D2129"), n(this, "REQUIRED_COLOR", "#F56C6C"), n(this, "BODY_TEXT_COLOR", "#4E5969"), n(this, "FOOTER_TEXT_COLOR", "#4E5969"), n(this, "LOADING_ICON_SVG", ""), n(this, "LOADING_ICON_COLOR", "#4E5969"), n(this, "EXPAND_ICON_SVG", ""), n(this, "SHRINK_ICON_SVG", ""), n(this, "EXPAND_ICON_COLOR", "#4E5969"), n(this, "SHRINK_ICON_COLOR", "#4E5969"), n(this, "ERROR_TIP_ICON_COLOR", "red"), n(this, "ERROR_TIP_ICON_SIZE", 6), n(this, "COLUMNS_ALIGN", "left"), n(this, "COLUMNS_VERTICAL_ALIGN", "middle"), n(this, "EXPAND_LAZY", !0), n(this, "DEFAULT_EXPAND_ALL", !1), n(this, "CELL_WIDTH", 100), n(this, "CELL_HEIGHT", 36), n(this, "CELL_PADDING", 8), n(this, "CELL_HOVER_ICON_SIZE", 14), n(this, "CELL_HOVER_ICON_BG_COLOR", "#fff"), n(this, "CELL_HOVER_ICON_BORDER_COLOR", "#DDE0EA"), n(this, "SCROLLER_TRACK_SIZE", 14), n(this, "SCROLLER_SIZE", 8), n(this, "SCROLLER_COLOR", "#dee0e3"), n(this, "SCROLLER_TRACK_COLOR", "#fff"), n(this, "SCROLLER_FOCUS_COLOR", "#bbbec4"), n(this, "SELECT_BORDER_COLOR", "rgb(82,146,247)"), n(this, "SELECT_AREA_COLOR", "rgba(82,146,247,0.1)"), n(this, "SELECT_ROW_COL_BG_COLOR", "transparent"), n(this, "AUTOFILL_POINT_BORDER_COLOR", "#fff"), n(this, "EDIT_BG_COLOR", "#fcf6ed"), n(this, "CHECKBOX_KEY", ""), n(this, "CHECKBOX_COLOR", "rgb(82,146,247)"), n(this, "FINDER_CELL_BG_COLOR", "rgb(255,229,144)"), n(this, "ENABLE_FINDER", !0), n(this, "CHECKBOX_SIZE", 20), n(this, "CHECKBOX_DISABLED_SVG", ""), n(this, "CHECKBOX_DISABLED_COLOR", "#F1F2F4"), n(this, "CHECKBOX_CHECK_SVG", ""), n(this, "CHECKBOX_UNCHECK_SVG", ""), n(this, "CHECKBOX_UNCHECK_COLOR", "#DDE0EA"), n(this, "CHECKBOX_INDETERMINATE_SVG", ""), n(this, "CHECKBOX_CHECK_DISABLED_SVG", ""), n(this, "CHECKBOX_CHECK_DISABLED_COLOR", "#DDE0EA"), n(this, "ICON_EDIT_SVG", ""), n(this, "ICON_EDIT_COLOR", "#4E5969"), n(this, "ICON_SELECT_SVG", ""), n(this, "ICON_SELECT_COLOR", "#4E5969"), n(this, "SORT_STRICTLY", !0), n(this, "SORT_ASC_ICON_SVG", ""), n(this, "SORT_DESC_ICON_SVG", ""), n(this, "SORTABLE_ICON_SVG", ""), n(this, "SORT_ICON_COLOR", "rgb(82,146,247)"), n(this, "READONLY_COLOR", "#fff"), n(this, "READONLY_TEXT_COLOR", "#4E5969"), n(this, "ERROR_TIP_COLOR", "#ED3F14"), n(this, "FOOTER_BG_COLOR", "#fafafa"), n(this, "FOOTER_FIXED", !0), n(this, "FOOTER_POSITION", "bottom"), n(this, "CELL_FOOTER_HEIGHT", 36), n(this, "ENABLE_SELECTOR", !0), n(this, "TREE_SELECT_MODE", "auto"), n(this, "TREE_CHILDREN_KEY", "children"), n(this, "TREE_INDENT", 20), n(this, "TREE_ICON_SIZE", 20), n(this, "TREE_LINE", !1), n(this, "TREE_LINE_COLOR", "#e1e6eb"), n(this, "ENABLE_EDIT_SINGLE_CLICK", !1), n(this, "ENABLE_EDIT_CLICK_SELECTOR", !0), n(this, "SELECTOR_AREA_MIN_X", 0), n(this, "SELECTOR_AREA_MAX_X_OFFSET", 0), n(this, "SELECTOR_AREA_MAX_X", 0), n(this, "SELECTOR_AREA_MIN_Y", 0), n(this, "SELECTOR_AREA_MAX_Y", 0), n(this, "SELECTOR_AREA_MAX_Y_OFFSET", 0), n(this, "SELECTOR_CELL_VALUE_TYPE", "value"), n(this, "ENABLE_AUTO_THEME", !0), n(this, "ENABLE_SELECTOR_SINGLE", !1), n(this, "ENABLE_SELECTOR_SPAN_COL", !0), n(this, "ENABLE_SELECTOR_SPAN_ROW", !0), n(this, "ENABLE_SELECTOR_ALL_ROWS", !0), n(this, "ENABLE_SELECTOR_ALL_COLS", !0), n(this, "ENABLE_MERGE_CELL_LINK", !1), n(this, "ENABLE_AUTOFILL", !1), n(this, "ENABLE_AUTOFILL_SPAN_COL", !0), n(this, "ENABLE_AUTOFILL_SPAN_ROW", !0), n(this, "ENABLE_CONTEXT_MENU", !1), n(this, "ENABLE_HEADER_CONTEXT_MENU", !1), n(this, "ENABLE_TEXT_SELECTION", !0), n(this, "ENABLE_COPY", !0), n(this, "ENABLE_PASTER", !0), n(this, "ENABLE_RESIZE_ROW", !0), n(this, "ENABLE_RESIZE_COLUMN", !0), n(this, "RESIZE_ROW_LINE_COLOR", "#e1e6eb"), n(this, "RESIZE_COLUMN_LINE_COLOR", "#e1e6eb"), n(this, "ENABLE_RESIZE_COLUMN_TEXT", !0), n(this, "RESIZE_COLUMN_TEXT_COLOR", "#fff"), n(this, "RESIZE_COLUMN_TEXT_BG_COLOR", "rgb(82,146,247)"), n(this, "RESIZE_ROW_MIN_HEIGHT", 36), n(this, "RESIZE_COLUMN_MIN_WIDTH", 40), n(this, "DRAG_TIP_BG_COLOR", "rgba(82,146,247,0.1)"), n(this, "DRAG_TIP_LINE_COLOR", "rgb(82,146,247)"), n(this, "ENABLE_KEYBOARD", !0), n(this, "ENABLE_HISTORY", !1), n(this, "ENABLE_VALIDATOR_IMMEDIATE", !0), n(this, "HISTORY_NUM", 50), n(this, "HIGHLIGHT_HOVER_ROW", !1), n(this, "HIGHLIGHT_HOVER_ROW_COLOR", "rgba(186,203,231,0.1)"), n(this, "HIGHLIGHT_SELECTED_ROW", !1), n(this, "HIGHLIGHT_SELECTED_ROW_COLOR", "rgba(82,146,247,0.1)"), n(this, "TOOLTIP_BG_COLOR", "#303133"), n(this, "TOOLTIP_TEXT_COLOR", "#fff"), n(this, "TOOLTIP_ZINDEX", 3e3), n(this, "TOOLTIP_CUSTOM_STYLE", {}), n(this, "CONTEXT_MENU", [
6398
+ n(this, "_config", {}), n(this, "CSS_PREFIX", "e-virt-table"), n(this, "ICONS", []), n(this, "ROW_KEY", ""), n(this, "DISABLED", !1), n(this, "HEADER_FONT", "12px normal Arial"), n(this, "BODY_FONT", "12px normal Arial"), n(this, "BORDER", !0), n(this, "STRIPE", !1), n(this, "STRIPE_COLOR", "#fafafa"), n(this, "BORDER_COLOR", "#e1e6eb"), n(this, "HEIGHT", 0), n(this, "PLACEHOLDER_COLOR", "#CDD0DC"), n(this, "EMPTY_BODY_HEIGHT", 120), n(this, "EMPTY_CUSTOM_STYLE", {}), n(this, "EMPTY_TEXT", ""), n(this, "LOADING_TEXT", ""), n(this, "MAX_HEIGHT", 1e3), n(this, "BORDER_RADIUS", 8), n(this, "ENABLE_OFFSET_HEIGHT", !1), n(this, "OFFSET_HEIGHT", 0), n(this, "HEADER_HEIGHT", 36), n(this, "ENABLE_HEADER_STICKY", !1), n(this, "HEADER_BG_COLOR", "#F8FAFF"), n(this, "BODY_BG_COLOR", "#FFF"), n(this, "HEADER_TEXT_COLOR", "#1D2129"), n(this, "REQUIRED_COLOR", "#F56C6C"), n(this, "BODY_TEXT_COLOR", "#4E5969"), n(this, "FOOTER_TEXT_COLOR", "#4E5969"), n(this, "LOADING_ICON_SVG", ""), n(this, "LOADING_ICON_COLOR", "#4E5969"), n(this, "EXPAND_ICON_SVG", ""), n(this, "SHRINK_ICON_SVG", ""), n(this, "EXPAND_ICON_COLOR", "#4E5969"), n(this, "SHRINK_ICON_COLOR", "#4E5969"), n(this, "ERROR_TIP_ICON_COLOR", "red"), n(this, "ERROR_TIP_ICON_SIZE", 6), n(this, "COLUMNS_ALIGN", "left"), n(this, "COLUMNS_VERTICAL_ALIGN", "middle"), n(this, "EXPAND_LAZY", !0), n(this, "DEFAULT_EXPAND_ALL", !1), n(this, "CELL_WIDTH", 100), n(this, "CELL_HEIGHT", 36), n(this, "CELL_PADDING", 8), n(this, "CELL_HOVER_ICON_SIZE", 14), n(this, "CELL_HOVER_ICON_BG_COLOR", "#fff"), n(this, "CELL_HOVER_ICON_BORDER_COLOR", "#DDE0EA"), n(this, "MIN_ZOOM", .5), n(this, "MAX_ZOOM", 2), n(this, "ENABLE_ZOOM_WHEEL", !0), n(this, "SCROLLER_TRACK_SIZE", 14), n(this, "SCROLLER_SIZE", 8), n(this, "SCROLLER_COLOR", "#dee0e3"), n(this, "SCROLLER_TRACK_COLOR", "#fff"), n(this, "SCROLLER_FOCUS_COLOR", "#bbbec4"), n(this, "SELECT_BORDER_COLOR", "rgb(82,146,247)"), n(this, "SELECT_AREA_COLOR", "rgba(82,146,247,0.1)"), n(this, "SELECT_ROW_COL_BG_COLOR", "transparent"), n(this, "AUTOFILL_POINT_BORDER_COLOR", "#fff"), n(this, "EDIT_BG_COLOR", "#fcf6ed"), n(this, "CHECKBOX_KEY", ""), n(this, "CHECKBOX_COLOR", "rgb(82,146,247)"), n(this, "FINDER_CELL_BG_COLOR", "rgb(255,229,144)"), n(this, "ENABLE_FINDER", !0), n(this, "CHECKBOX_SIZE", 20), n(this, "CHECKBOX_DISABLED_SVG", ""), n(this, "CHECKBOX_DISABLED_COLOR", "#F1F2F4"), n(this, "CHECKBOX_CHECK_SVG", ""), n(this, "CHECKBOX_UNCHECK_SVG", ""), n(this, "CHECKBOX_UNCHECK_COLOR", "#DDE0EA"), n(this, "CHECKBOX_INDETERMINATE_SVG", ""), n(this, "CHECKBOX_CHECK_DISABLED_SVG", ""), n(this, "CHECKBOX_CHECK_DISABLED_COLOR", "#DDE0EA"), n(this, "ICON_EDIT_SVG", ""), n(this, "ICON_EDIT_COLOR", "#4E5969"), n(this, "ICON_SELECT_SVG", ""), n(this, "ICON_SELECT_COLOR", "#4E5969"), n(this, "SORT_STRICTLY", !0), n(this, "SORT_ASC_ICON_SVG", ""), n(this, "SORT_DESC_ICON_SVG", ""), n(this, "SORTABLE_ICON_SVG", ""), n(this, "SORT_ICON_COLOR", "rgb(82,146,247)"), n(this, "READONLY_COLOR", "#fff"), n(this, "READONLY_TEXT_COLOR", "#4E5969"), n(this, "ERROR_TIP_COLOR", "#ED3F14"), n(this, "FOOTER_BG_COLOR", "#fafafa"), n(this, "FOOTER_FIXED", !0), n(this, "FOOTER_POSITION", "bottom"), n(this, "CELL_FOOTER_HEIGHT", 36), n(this, "ENABLE_SELECTOR", !0), n(this, "TREE_SELECT_MODE", "auto"), n(this, "TREE_CHILDREN_KEY", "children"), n(this, "TREE_INDENT", 20), n(this, "TREE_ICON_SIZE", 20), n(this, "TREE_LINE", !1), n(this, "TREE_LINE_COLOR", "#e1e6eb"), n(this, "ENABLE_EDIT_SINGLE_CLICK", !1), n(this, "ENABLE_EDIT_CLICK_SELECTOR", !0), n(this, "SELECTOR_AREA_MIN_X", 0), n(this, "SELECTOR_AREA_MAX_X_OFFSET", 0), n(this, "SELECTOR_AREA_MAX_X", 0), n(this, "SELECTOR_AREA_MIN_Y", 0), n(this, "SELECTOR_AREA_MAX_Y", 0), n(this, "SELECTOR_AREA_MAX_Y_OFFSET", 0), n(this, "SELECTOR_CELL_VALUE_TYPE", "value"), n(this, "ENABLE_AUTO_THEME", !0), n(this, "ENABLE_SELECTOR_SINGLE", !1), n(this, "ENABLE_SELECTOR_SPAN_COL", !0), n(this, "ENABLE_SELECTOR_SPAN_ROW", !0), n(this, "ENABLE_SELECTOR_ALL_ROWS", !0), n(this, "ENABLE_SELECTOR_ALL_COLS", !0), n(this, "ENABLE_MERGE_CELL_LINK", !1), n(this, "ENABLE_AUTOFILL", !1), n(this, "ENABLE_AUTOFILL_SPAN_COL", !0), n(this, "ENABLE_AUTOFILL_SPAN_ROW", !0), n(this, "ENABLE_CONTEXT_MENU", !1), n(this, "ENABLE_HEADER_CONTEXT_MENU", !1), n(this, "ENABLE_TEXT_SELECTION", !0), n(this, "ENABLE_COPY", !0), n(this, "ENABLE_PASTER", !0), n(this, "ENABLE_RESIZE_ROW", !0), n(this, "ENABLE_RESIZE_COLUMN", !0), n(this, "RESIZE_ROW_LINE_COLOR", "#e1e6eb"), n(this, "RESIZE_COLUMN_LINE_COLOR", "#e1e6eb"), n(this, "ENABLE_RESIZE_COLUMN_TEXT", !0), n(this, "RESIZE_COLUMN_TEXT_COLOR", "#fff"), n(this, "RESIZE_COLUMN_TEXT_BG_COLOR", "rgb(82,146,247)"), n(this, "RESIZE_ROW_MIN_HEIGHT", 36), n(this, "RESIZE_COLUMN_MIN_WIDTH", 40), n(this, "DRAG_TIP_BG_COLOR", "rgba(82,146,247,0.1)"), n(this, "DRAG_TIP_LINE_COLOR", "rgb(82,146,247)"), n(this, "ENABLE_KEYBOARD", !0), n(this, "ENABLE_HISTORY", !1), n(this, "ENABLE_VALIDATOR_IMMEDIATE", !0), n(this, "HISTORY_NUM", 50), n(this, "HIGHLIGHT_HOVER_ROW", !1), n(this, "HIGHLIGHT_HOVER_ROW_COLOR", "rgba(186,203,231,0.1)"), n(this, "HIGHLIGHT_SELECTED_ROW", !1), n(this, "HIGHLIGHT_SELECTED_ROW_COLOR", "rgba(82,146,247,0.1)"), n(this, "TOOLTIP_BG_COLOR", "#303133"), n(this, "TOOLTIP_TEXT_COLOR", "#fff"), n(this, "TOOLTIP_ZINDEX", 3e3), n(this, "TOOLTIP_CUSTOM_STYLE", {}), n(this, "CONTEXT_MENU", [
6392
6399
  { value: "copy" },
6393
6400
  { value: "cut" },
6394
6401
  { value: "paste" },
@@ -6415,8 +6422,8 @@ var Qa = { key: 0 }, $a = {
6415
6422
  }), Object.assign(this, e, this._config);
6416
6423
  }
6417
6424
  }
6418
- let M = "<svg t=\"1724122015492\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"4237\" width=\"32\" height=\"32\"><path d=\"M401.472 316.992l159.04 217.664L591.488 512l-30.976-22.656-159.04 217.728q-2.24 3.008-3.84 6.464-1.6 3.456-2.496 7.104-0.896 3.648-1.024 7.424-0.192 3.84 0.384 7.552 0.64 3.712 1.92 7.296 1.28 3.52 3.2 6.784 1.984 3.2 4.544 6.016 2.56 2.752 5.632 4.992 3.072 2.24 6.464 3.84 3.456 1.6 7.168 2.496 3.648 0.896 7.424 1.024 3.776 0.192 7.488-0.448 3.776-0.576 7.296-1.856 3.584-1.28 6.784-3.264 3.2-1.92 6.016-4.48 2.816-2.56 5.056-5.632l159.04-217.728q3.584-4.928 5.504-10.752 1.92-5.76 1.92-11.904 0-6.08-1.92-11.904-1.92-5.76-5.504-10.752L463.488 271.68q-2.24-3.072-5.056-5.632-2.752-2.56-6.016-4.48-3.2-1.984-6.784-3.328-3.52-1.28-7.296-1.856-3.712-0.576-7.488-0.448-3.84 0.192-7.424 1.088-3.712 0.896-7.168 2.496-3.392 1.6-6.4 3.84-3.136 2.176-5.696 4.992-2.56 2.752-4.48 6.016-1.984 3.2-3.264 6.784-1.28 3.52-1.92 7.296-0.576 3.712-0.384 7.488 0.128 3.84 1.024 7.488 0.896 3.648 2.496 7.04 1.6 3.456 3.84 6.528z m30.976-61.056q-3.776 0-7.488 0.704-3.712 0.768-7.168 2.24-3.52 1.408-6.656 3.52-3.2 2.112-5.824 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.52 6.656-1.472 3.52-2.176 7.232-0.768 3.712-0.768 7.488 0 3.776 0.768 7.488 0.704 3.712 2.176 7.232 1.408 3.456 3.52 6.592 2.112 3.2 4.8 5.824 2.688 2.688 5.76 4.8 3.2 2.112 6.72 3.52 3.456 1.472 7.168 2.176 3.712 0.768 7.488 0.768 3.84 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.408 6.592-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.112-3.2 3.52-6.656 1.472-3.52 2.24-7.232 0.704-3.712 0.704-7.488 0-3.84-0.704-7.488-0.768-3.712-2.24-7.232-1.408-3.456-3.52-6.592-2.112-3.2-4.8-5.824-2.624-2.688-5.76-4.8-3.2-2.112-6.656-3.52-3.52-1.472-7.232-2.24Q436.224 256 432.448 256z m0 435.392q-3.776 0-7.488 0.704-3.712 0.768-7.168 2.176-3.52 1.472-6.656 3.584-3.2 2.112-5.824 4.736-2.688 2.688-4.8 5.824-2.112 3.2-3.52 6.656-1.472 3.52-2.176 7.232-0.768 3.712-0.768 7.488 0 3.776 0.768 7.488 0.704 3.712 2.176 7.168 1.408 3.52 3.52 6.656 2.112 3.2 4.8 5.76 2.688 2.752 5.76 4.8 3.2 2.112 6.72 3.584 3.456 1.472 7.168 2.176 3.712 0.768 7.488 0.768 3.84 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.472 6.592-3.584 3.2-2.048 5.824-4.736 2.688-2.688 4.8-5.824 2.112-3.2 3.52-6.656 1.472-3.456 2.24-7.168 0.704-3.712 0.704-7.488 0-3.84-0.704-7.488-0.768-3.712-2.24-7.232-1.408-3.52-3.52-6.656-2.112-3.136-4.8-5.76-2.624-2.688-5.76-4.8-3.2-2.112-6.656-3.584-3.52-1.408-7.232-2.176-3.712-0.704-7.488-0.704z\" p-id=\"4238\"></path></svg>\r\n", N = "<svg t=\"1722595535853\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"4551\" width=\"32\" height=\"32\"><path d=\"M640 128H384c-170.496 0-256 85.504-256 256v256c0 170.496 85.504 256 256 256h256c170.496 0 256-85.504 256-256V384c0-170.496-85.504-256-256-256z m67.584 302.592c-2.048 4.608-4.608 8.704-8.192 12.288L506.88 634.88c-3.584 3.584-7.68 6.144-12.288 8.192-4.608 2.048-9.728 3.072-14.848 3.072s-10.24-1.024-14.848-3.072c-4.608-2.048-8.704-4.608-12.288-8.192l-96.256-96.256c-3.584-3.584-6.144-7.68-8.192-12.288-2.048-4.608-3.072-9.728-3.072-14.848 0-2.56 0-5.12 1.024-7.68 0.512-2.56 1.024-5.12 2.048-7.168 1.024-2.56 2.048-4.608 3.584-6.656 1.536-2.048 3.072-4.096 4.608-5.632 1.536-2.048 3.584-3.584 5.632-4.608 2.048-1.536 4.096-2.56 6.656-3.584 2.56-1.024 4.608-1.536 7.168-2.048 2.56-0.512 5.12-0.512 7.68-0.512 5.12 0 10.24 1.024 14.848 3.072 4.608 2.048 8.704 4.608 12.288 8.192l69.12 68.608L645.12 389.12c3.584-3.584 7.68-6.144 12.288-8.192 4.608-2.048 9.728-3.072 14.848-3.072 2.56 0 5.12 0 7.68 0.512s5.12 1.024 7.168 2.048c2.56 1.024 4.608 2.048 6.656 3.584 2.048 1.536 4.096 3.072 5.632 4.608 1.536 1.536 3.584 3.584 4.608 5.632 1.536 2.048 2.56 4.096 3.584 6.656 1.024 2.56 1.536 4.608 2.048 7.168 0.512 2.56 1.024 5.12 1.024 7.68 0 5.12-1.024 10.24-3.072 14.848z\" p-id=\"4552\"></path></svg>\n", te = "<svg t=\"1724122044148\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"4551\" width=\"32\" height=\"32\"><path d=\"M707.648 401.28L489.28 560.704l22.656 30.976 22.656-30.976L316.16 401.216q-3.072-2.24-6.464-3.84-3.456-1.536-7.104-2.432-3.712-0.896-7.488-1.088-3.776-0.128-7.488 0.448-3.776 0.64-7.296 1.92-3.584 1.28-6.784 3.2-3.2 1.984-6.016 4.544-2.816 2.56-5.056 5.632-2.176 3.072-3.84 6.464-1.536 3.456-2.432 7.104-0.896 3.712-1.088 7.488-0.128 3.776 0.448 7.488 0.64 3.776 1.92 7.296 1.28 3.584 3.2 6.784 1.984 3.2 4.544 6.016 2.56 2.752 5.632 4.992l218.368 159.552q4.928 3.584 10.752 5.504 5.76 1.92 11.904 1.92 6.08 0 11.904-1.92 5.76-1.92 10.752-5.504l218.368-159.552q3.008-2.24 5.568-4.992 2.56-2.816 4.544-6.016 1.92-3.2 3.264-6.784 1.28-3.52 1.92-7.296 0.576-3.712 0.384-7.488-0.128-3.84-1.024-7.488-0.896-3.648-2.496-7.04-1.6-3.456-3.84-6.528-2.24-3.072-4.992-5.632-2.816-2.56-6.016-4.48-3.2-1.984-6.784-3.328-3.584-1.28-7.296-1.856-3.712-0.64-7.488-0.448-3.84 0.192-7.488 1.088-3.648 0.896-7.04 2.496-3.456 1.536-6.528 3.84z m61.056 30.976q0-3.84-0.768-7.488-0.704-3.712-2.176-7.232-1.472-3.456-3.52-6.656-2.112-3.136-4.8-5.76-2.688-2.688-5.76-4.8-3.2-2.112-6.72-3.584-3.456-1.408-7.168-2.176-3.712-0.704-7.488-0.704-3.84 0-7.488 0.704-3.712 0.768-7.232 2.176-3.456 1.472-6.656 3.584-3.136 2.112-5.76 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.584 6.656-1.408 3.52-2.176 7.232-0.704 3.712-0.704 7.488 0 3.776 0.704 7.488 0.768 3.712 2.176 7.168 1.472 3.52 3.584 6.656 2.112 3.2 4.8 5.824 2.624 2.688 5.76 4.8 3.2 2.112 6.656 3.52 3.52 1.472 7.232 2.176 3.712 0.768 7.488 0.768 3.776 0 7.488-0.768 3.712-0.704 7.168-2.176 3.52-1.408 6.656-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.048-3.2 3.52-6.72 1.472-3.456 2.176-7.168 0.768-3.712 0.768-7.488z m-436.736 0q0-3.84-0.768-7.488-0.704-3.712-2.176-7.232-1.408-3.456-3.52-6.656-2.112-3.136-4.8-5.76-2.688-2.688-5.76-4.8-3.2-2.112-6.656-3.584-3.52-1.408-7.232-2.176-3.712-0.704-7.488-0.704-3.84 0-7.488 0.704-3.712 0.768-7.232 2.176-3.456 1.472-6.592 3.584-3.2 2.112-5.824 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.52 6.656-1.472 3.52-2.24 7.232-0.704 3.712-0.704 7.488 0 3.776 0.704 7.488 0.768 3.712 2.24 7.168 1.408 3.52 3.52 6.656 2.112 3.2 4.8 5.824 2.624 2.688 5.76 4.8 3.2 2.112 6.656 3.52 3.52 1.472 7.232 2.176 3.712 0.768 7.488 0.768 3.776 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.408 6.592-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.112-3.2 3.52-6.72 1.472-3.456 2.176-7.168 0.768-3.712 0.768-7.488z\" p-id=\"4552\"></path></svg>\n", P = "<svg t=\"1755138507987\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"5079\" width=\"200\" height=\"200\"><path d=\"M512 938.688a42.688 42.688 0 0 1-35.072-18.432l-192-277.312A42.56 42.56 0 0 1 320 576h384a42.752 42.752 0 0 1 35.072 66.944l-192 277.312a42.688 42.688 0 0 1-35.072 18.432\" fill=\"currentColor\" p-id=\"2016\"></path><path d=\"M704 448H320a42.752 42.752 0 0 1-35.072-66.944l192-277.312c16-23.04 54.208-23.04 70.144 0l192 277.312A42.56 42.56 0 0 1 704 448\" fill=\"currentColor\" p-id=\"2015\"></path></svg>\n", F = P.replace("fill=\"currentColor\" p-id=\"2016\"", "fill=\"#bec4c7\" p-id=\"2016\""), I = P.replace("fill=\"currentColor\" p-id=\"2015\"", "fill=\"#bec4c7\" p-id=\"2015\"");
6419
- class ne {
6425
+ let j = "<svg t=\"1724122015492\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"4237\" width=\"32\" height=\"32\"><path d=\"M401.472 316.992l159.04 217.664L591.488 512l-30.976-22.656-159.04 217.728q-2.24 3.008-3.84 6.464-1.6 3.456-2.496 7.104-0.896 3.648-1.024 7.424-0.192 3.84 0.384 7.552 0.64 3.712 1.92 7.296 1.28 3.52 3.2 6.784 1.984 3.2 4.544 6.016 2.56 2.752 5.632 4.992 3.072 2.24 6.464 3.84 3.456 1.6 7.168 2.496 3.648 0.896 7.424 1.024 3.776 0.192 7.488-0.448 3.776-0.576 7.296-1.856 3.584-1.28 6.784-3.264 3.2-1.92 6.016-4.48 2.816-2.56 5.056-5.632l159.04-217.728q3.584-4.928 5.504-10.752 1.92-5.76 1.92-11.904 0-6.08-1.92-11.904-1.92-5.76-5.504-10.752L463.488 271.68q-2.24-3.072-5.056-5.632-2.752-2.56-6.016-4.48-3.2-1.984-6.784-3.328-3.52-1.28-7.296-1.856-3.712-0.576-7.488-0.448-3.84 0.192-7.424 1.088-3.712 0.896-7.168 2.496-3.392 1.6-6.4 3.84-3.136 2.176-5.696 4.992-2.56 2.752-4.48 6.016-1.984 3.2-3.264 6.784-1.28 3.52-1.92 7.296-0.576 3.712-0.384 7.488 0.128 3.84 1.024 7.488 0.896 3.648 2.496 7.04 1.6 3.456 3.84 6.528z m30.976-61.056q-3.776 0-7.488 0.704-3.712 0.768-7.168 2.24-3.52 1.408-6.656 3.52-3.2 2.112-5.824 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.52 6.656-1.472 3.52-2.176 7.232-0.768 3.712-0.768 7.488 0 3.776 0.768 7.488 0.704 3.712 2.176 7.232 1.408 3.456 3.52 6.592 2.112 3.2 4.8 5.824 2.688 2.688 5.76 4.8 3.2 2.112 6.72 3.52 3.456 1.472 7.168 2.176 3.712 0.768 7.488 0.768 3.84 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.408 6.592-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.112-3.2 3.52-6.656 1.472-3.52 2.24-7.232 0.704-3.712 0.704-7.488 0-3.84-0.704-7.488-0.768-3.712-2.24-7.232-1.408-3.456-3.52-6.592-2.112-3.2-4.8-5.824-2.624-2.688-5.76-4.8-3.2-2.112-6.656-3.52-3.52-1.472-7.232-2.24Q436.224 256 432.448 256z m0 435.392q-3.776 0-7.488 0.704-3.712 0.768-7.168 2.176-3.52 1.472-6.656 3.584-3.2 2.112-5.824 4.736-2.688 2.688-4.8 5.824-2.112 3.2-3.52 6.656-1.472 3.52-2.176 7.232-0.768 3.712-0.768 7.488 0 3.776 0.768 7.488 0.704 3.712 2.176 7.168 1.408 3.52 3.52 6.656 2.112 3.2 4.8 5.76 2.688 2.752 5.76 4.8 3.2 2.112 6.72 3.584 3.456 1.472 7.168 2.176 3.712 0.768 7.488 0.768 3.84 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.472 6.592-3.584 3.2-2.048 5.824-4.736 2.688-2.688 4.8-5.824 2.112-3.2 3.52-6.656 1.472-3.456 2.24-7.168 0.704-3.712 0.704-7.488 0-3.84-0.704-7.488-0.768-3.712-2.24-7.232-1.408-3.52-3.52-6.656-2.112-3.136-4.8-5.76-2.624-2.688-5.76-4.8-3.2-2.112-6.656-3.584-3.52-1.408-7.232-2.176-3.712-0.704-7.488-0.704z\" p-id=\"4238\"></path></svg>\r\n", M = "<svg t=\"1722595535853\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"4551\" width=\"32\" height=\"32\"><path d=\"M640 128H384c-170.496 0-256 85.504-256 256v256c0 170.496 85.504 256 256 256h256c170.496 0 256-85.504 256-256V384c0-170.496-85.504-256-256-256z m67.584 302.592c-2.048 4.608-4.608 8.704-8.192 12.288L506.88 634.88c-3.584 3.584-7.68 6.144-12.288 8.192-4.608 2.048-9.728 3.072-14.848 3.072s-10.24-1.024-14.848-3.072c-4.608-2.048-8.704-4.608-12.288-8.192l-96.256-96.256c-3.584-3.584-6.144-7.68-8.192-12.288-2.048-4.608-3.072-9.728-3.072-14.848 0-2.56 0-5.12 1.024-7.68 0.512-2.56 1.024-5.12 2.048-7.168 1.024-2.56 2.048-4.608 3.584-6.656 1.536-2.048 3.072-4.096 4.608-5.632 1.536-2.048 3.584-3.584 5.632-4.608 2.048-1.536 4.096-2.56 6.656-3.584 2.56-1.024 4.608-1.536 7.168-2.048 2.56-0.512 5.12-0.512 7.68-0.512 5.12 0 10.24 1.024 14.848 3.072 4.608 2.048 8.704 4.608 12.288 8.192l69.12 68.608L645.12 389.12c3.584-3.584 7.68-6.144 12.288-8.192 4.608-2.048 9.728-3.072 14.848-3.072 2.56 0 5.12 0 7.68 0.512s5.12 1.024 7.168 2.048c2.56 1.024 4.608 2.048 6.656 3.584 2.048 1.536 4.096 3.072 5.632 4.608 1.536 1.536 3.584 3.584 4.608 5.632 1.536 2.048 2.56 4.096 3.584 6.656 1.024 2.56 1.536 4.608 2.048 7.168 0.512 2.56 1.024 5.12 1.024 7.68 0 5.12-1.024 10.24-3.072 14.848z\" p-id=\"4552\"></path></svg>\n", ne = "<svg t=\"1724122044148\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"4551\" width=\"32\" height=\"32\"><path d=\"M707.648 401.28L489.28 560.704l22.656 30.976 22.656-30.976L316.16 401.216q-3.072-2.24-6.464-3.84-3.456-1.536-7.104-2.432-3.712-0.896-7.488-1.088-3.776-0.128-7.488 0.448-3.776 0.64-7.296 1.92-3.584 1.28-6.784 3.2-3.2 1.984-6.016 4.544-2.816 2.56-5.056 5.632-2.176 3.072-3.84 6.464-1.536 3.456-2.432 7.104-0.896 3.712-1.088 7.488-0.128 3.776 0.448 7.488 0.64 3.776 1.92 7.296 1.28 3.584 3.2 6.784 1.984 3.2 4.544 6.016 2.56 2.752 5.632 4.992l218.368 159.552q4.928 3.584 10.752 5.504 5.76 1.92 11.904 1.92 6.08 0 11.904-1.92 5.76-1.92 10.752-5.504l218.368-159.552q3.008-2.24 5.568-4.992 2.56-2.816 4.544-6.016 1.92-3.2 3.264-6.784 1.28-3.52 1.92-7.296 0.576-3.712 0.384-7.488-0.128-3.84-1.024-7.488-0.896-3.648-2.496-7.04-1.6-3.456-3.84-6.528-2.24-3.072-4.992-5.632-2.816-2.56-6.016-4.48-3.2-1.984-6.784-3.328-3.584-1.28-7.296-1.856-3.712-0.64-7.488-0.448-3.84 0.192-7.488 1.088-3.648 0.896-7.04 2.496-3.456 1.536-6.528 3.84z m61.056 30.976q0-3.84-0.768-7.488-0.704-3.712-2.176-7.232-1.472-3.456-3.52-6.656-2.112-3.136-4.8-5.76-2.688-2.688-5.76-4.8-3.2-2.112-6.72-3.584-3.456-1.408-7.168-2.176-3.712-0.704-7.488-0.704-3.84 0-7.488 0.704-3.712 0.768-7.232 2.176-3.456 1.472-6.656 3.584-3.136 2.112-5.76 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.584 6.656-1.408 3.52-2.176 7.232-0.704 3.712-0.704 7.488 0 3.776 0.704 7.488 0.768 3.712 2.176 7.168 1.472 3.52 3.584 6.656 2.112 3.2 4.8 5.824 2.624 2.688 5.76 4.8 3.2 2.112 6.656 3.52 3.52 1.472 7.232 2.176 3.712 0.768 7.488 0.768 3.776 0 7.488-0.768 3.712-0.704 7.168-2.176 3.52-1.408 6.656-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.048-3.2 3.52-6.72 1.472-3.456 2.176-7.168 0.768-3.712 0.768-7.488z m-436.736 0q0-3.84-0.768-7.488-0.704-3.712-2.176-7.232-1.408-3.456-3.52-6.656-2.112-3.136-4.8-5.76-2.688-2.688-5.76-4.8-3.2-2.112-6.656-3.584-3.52-1.408-7.232-2.176-3.712-0.704-7.488-0.704-3.84 0-7.488 0.704-3.712 0.768-7.232 2.176-3.456 1.472-6.592 3.584-3.2 2.112-5.824 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.52 6.656-1.472 3.52-2.24 7.232-0.704 3.712-0.704 7.488 0 3.776 0.704 7.488 0.768 3.712 2.24 7.168 1.408 3.52 3.52 6.656 2.112 3.2 4.8 5.824 2.624 2.688 5.76 4.8 3.2 2.112 6.656 3.52 3.52 1.472 7.232 2.176 3.712 0.768 7.488 0.768 3.776 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.408 6.592-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.112-3.2 3.52-6.72 1.472-3.456 2.176-7.168 0.768-3.712 0.768-7.488z\" p-id=\"4552\"></path></svg>\n", N = "<svg t=\"1755138507987\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"5079\" width=\"200\" height=\"200\"><path d=\"M512 938.688a42.688 42.688 0 0 1-35.072-18.432l-192-277.312A42.56 42.56 0 0 1 320 576h384a42.752 42.752 0 0 1 35.072 66.944l-192 277.312a42.688 42.688 0 0 1-35.072 18.432\" fill=\"currentColor\" p-id=\"2016\"></path><path d=\"M704 448H320a42.752 42.752 0 0 1-35.072-66.944l192-277.312c16-23.04 54.208-23.04 70.144 0l192 277.312A42.56 42.56 0 0 1 704 448\" fill=\"currentColor\" p-id=\"2015\"></path></svg>\n", P = N.replace("fill=\"currentColor\" p-id=\"2016\"", "fill=\"#bec4c7\" p-id=\"2016\""), F = N.replace("fill=\"currentColor\" p-id=\"2015\"", "fill=\"#bec4c7\" p-id=\"2015\"");
6426
+ class re {
6420
6427
  constructor(e) {
6421
6428
  n(this, "ctx"), n(this, "list", [
6422
6429
  {
@@ -6430,14 +6437,14 @@ var Qa = { key: 0 }, $a = {
6430
6437
  name: "expand",
6431
6438
  configName: "EXPAND_ICON_SVG",
6432
6439
  configColorName: "EXPAND_ICON_COLOR",
6433
- svg: M,
6440
+ svg: j,
6434
6441
  color: "#4E5969"
6435
6442
  },
6436
6443
  {
6437
6444
  name: "shrink",
6438
6445
  configName: "SHRINK_ICON_SVG",
6439
6446
  configColorName: "SHRINK_ICON_COLOR",
6440
- svg: te,
6447
+ svg: ne,
6441
6448
  color: "#4E5969"
6442
6449
  },
6443
6450
  {
@@ -6451,7 +6458,7 @@ var Qa = { key: 0 }, $a = {
6451
6458
  name: "checkbox-check",
6452
6459
  configName: "CHECKBOX_CHECK_SVG",
6453
6460
  configColorName: "CHECKBOX_COLOR",
6454
- svg: N,
6461
+ svg: M,
6455
6462
  color: "rgb(82,146,247)"
6456
6463
  },
6457
6464
  {
@@ -6464,7 +6471,7 @@ var Qa = { key: 0 }, $a = {
6464
6471
  {
6465
6472
  name: "checkbox-check-disabled",
6466
6473
  configName: "CHECKBOX_CHECK_DISABLED_SVG",
6467
- svg: N,
6474
+ svg: M,
6468
6475
  color: "#DDE0EA"
6469
6476
  },
6470
6477
  {
@@ -6485,27 +6492,27 @@ var Qa = { key: 0 }, $a = {
6485
6492
  name: "icon-select",
6486
6493
  configName: "ICON_SELECT_SVG",
6487
6494
  configColorName: "ICON_SELECT_COLOR",
6488
- svg: te,
6495
+ svg: ne,
6489
6496
  color: "#4E5969"
6490
6497
  },
6491
6498
  {
6492
6499
  name: "sort-asc",
6493
6500
  configName: "SORT_ASC_ICON_SVG",
6494
6501
  configColorName: "SORT_ICON_COLOR",
6495
- svg: F,
6502
+ svg: P,
6496
6503
  color: "rgb(82,146,247)"
6497
6504
  },
6498
6505
  {
6499
6506
  name: "sort-desc",
6500
6507
  configName: "SORT_DESC_ICON_SVG",
6501
6508
  configColorName: "SORT_ICON_COLOR",
6502
- svg: I,
6509
+ svg: F,
6503
6510
  color: "rgb(82,146,247)"
6504
6511
  },
6505
6512
  {
6506
6513
  name: "sort-default",
6507
6514
  configName: "SORTABLE_ICON_SVG",
6508
- svg: P,
6515
+ svg: N,
6509
6516
  color: "#bec4c7"
6510
6517
  },
6511
6518
  {
@@ -6565,7 +6572,7 @@ var Qa = { key: 0 }, $a = {
6565
6572
  return this.list.find((t) => t.name === e);
6566
6573
  }
6567
6574
  }
6568
- class L {
6575
+ class I {
6569
6576
  constructor(e) {
6570
6577
  n(this, "ctx"), n(this, "visibleHoverCell"), n(this, "resizeObserver"), n(this, "mutationObserver"), this.ctx = e, this.init();
6571
6578
  }
@@ -6681,7 +6688,7 @@ var Qa = { key: 0 }, $a = {
6681
6688
  this.resizeObserver.unobserve(this.ctx.stageElement), this.mutationObserver.disconnect();
6682
6689
  }
6683
6690
  }
6684
- let re = {
6691
+ let L = {
6685
6692
  numberErrorTip: "只允许输入数字",
6686
6693
  emptyText: "暂无数据",
6687
6694
  loadingText: "加载中...",
@@ -6713,15 +6720,97 @@ var Qa = { key: 0 }, $a = {
6713
6720
  this.langConfig = e;
6714
6721
  }
6715
6722
  getText(e, t) {
6716
- let n = { ...re };
6717
- Object.assign(n, $t.locale, this.langConfig);
6723
+ let n = { ...L };
6724
+ Object.assign(n, nn.locale, this.langConfig);
6718
6725
  let r = n[e];
6719
6726
  return r ? r.replace(/{(\w+)}/g, (e, n) => t?.[n] || e) : "";
6720
6727
  }
6721
6728
  }
6722
- class ae {
6729
+ let ae = /^-?\d*\.?\d+px$/;
6730
+ class oe {
6731
+ constructor() {
6732
+ n(this, "value", 1);
6733
+ }
6734
+ get isDefault() {
6735
+ return this.value === 1;
6736
+ }
6737
+ clamp(e, t, n) {
6738
+ return Math.min(n, Math.max(t, e));
6739
+ }
6740
+ set(e, t, n) {
6741
+ let r = this.clamp(e, t, n);
6742
+ return Math.abs(r - this.value) < 1e-4 ? !1 : (this.value = r, !0);
6743
+ }
6744
+ toVisual(e) {
6745
+ return e * this.value;
6746
+ }
6747
+ toLogical(e) {
6748
+ return e / this.value;
6749
+ }
6750
+ toPx(e) {
6751
+ return `${this.toVisual(e)}px`;
6752
+ }
6753
+ domHeightToLogical(e) {
6754
+ return Math.round(e / this.value);
6755
+ }
6756
+ contentToPhysical(e) {
6757
+ return e * this.value;
6758
+ }
6759
+ scaleStyle(e) {
6760
+ if (this.isDefault) return e;
6761
+ let t = { ...e };
6762
+ for (let e of Object.keys(t)) {
6763
+ let n = t[e];
6764
+ typeof n == "string" && ae.test(n) && (t[e] = `${parseFloat(n) * this.value}px`);
6765
+ }
6766
+ return t;
6767
+ }
6768
+ assignScaledStyle(e, t) {
6769
+ Object.assign(e.style, this.scaleStyle(t));
6770
+ }
6771
+ containerWidth(e) {
6772
+ return Math.floor(e / this.value);
6773
+ }
6774
+ resolveStageWidth(e) {
6775
+ let t = this.containerWidth(e.containerPhysicalWidth), n = e.fillContainer ? t : Math.min(Math.floor(e.contentWidth + e.scrollerTrackSize), t);
6776
+ return {
6777
+ stageWidth: n,
6778
+ stagePhysicalWidth: Math.min(Math.round(this.toVisual(n)), Math.floor(e.containerPhysicalWidth))
6779
+ };
6780
+ }
6781
+ applyStageHeight(e, t) {
6782
+ let n = Math.floor(t), r = Math.floor(n / this.value);
6783
+ return e.style.height = `${n}px`, {
6784
+ stageHeight: r,
6785
+ stagePhysicalHeight: n
6786
+ };
6787
+ }
6788
+ getViewportRect(e, t) {
6789
+ let n = this.toVisual(e.x) + t.x, r = this.toVisual(e.y) + t.y, i = this.toVisual(e.width), a = this.toVisual(e.height);
6790
+ return {
6791
+ x: n,
6792
+ y: r,
6793
+ left: n,
6794
+ top: r,
6795
+ right: n + i,
6796
+ bottom: r + a,
6797
+ width: i,
6798
+ height: a
6799
+ };
6800
+ }
6801
+ createOverlayerCellElement(e, t) {
6802
+ let n = document.createElement("div");
6803
+ if (this.assignScaledStyle(n, e.style), Object.keys(e.domDataset || {}).forEach((t) => {
6804
+ n.setAttribute(t, e.domDataset[t]);
6805
+ }), typeof e.render != "function") return n;
6806
+ if (this.isDefault) return e.render(n, e), n;
6807
+ let r = "visibleWidth" in e ? e.visibleWidth : e.width, i = "visibleHeight" in e ? e.visibleHeight : e.height, a = "autoRowHeight" in e && e.autoRowHeight && "renderType" in e && e.renderType === "default", o = document.createElement("div");
6808
+ return o.className = `${t}-overlayer-cell-content`, o.style.width = `${r}px`, o.style.boxSizing = "border-box", a ? (o.style.height = "auto", o.style.minHeight = `${i}px`, n.style.height = "auto") : (o.style.height = `${i}px`, n.style.height = this.toPx(i)), o.style.zoom = String(this.value), n.style.width = this.toPx(r), n.appendChild(o), e.render(o, e), n;
6809
+ }
6810
+ }
6811
+ class se {
6723
6812
  constructor(e, t) {
6724
- n(this, "eventBus"), n(this, "eventBrowser"), n(this, "eventTable"), n(this, "locale", new ie()), n(this, "containerElement"), n(this, "stageElement"), n(this, "canvasElement"), n(this, "overlayerElement"), n(this, "editorElement"), n(this, "emptyElement"), n(this, "contextMenuElement"), n(this, "loadingElement"), n(this, "stageWidth", 0), n(this, "stageHeight", 0), n(this, "paint"), n(this, "icons"), n(this, "domSelectionStr", ""), n(this, "textSelectionStr", ""), n(this, "textSelecting", !1), n(this, "isMouseoverTargetContainer", !1), n(this, "mousedown", !1), n(this, "isEmpty", !1), n(this, "rowResizing", !1), n(this, "columnResizing", !1), n(this, "scrollerMove", !1), n(this, "scrollerFocus", !1), n(this, "autofillMove", !1), n(this, "selectorMove", !1), n(this, "disableHoverIconClick", !1), n(this, "selectColsIng", !1), n(this, "selectRowsIng", !1), n(this, "dragHeaderIng", !1), n(this, "dragRowIng", !1), n(this, "finding", !1), n(this, "contextMenuIng", !1), n(this, "editing", !1), n(this, "loading", !1), n(this, "onlyMergeCell", !1), n(this, "selectOnlyOne", !1), n(this, "hasSelection", !1), n(this, "hasTree", !1), n(this, "scrollY", 0), n(this, "scrollX", 0), n(this, "fixedLeftWidth", 0), n(this, "fixedRightWidth", 0), n(this, "lastCenterColIndex", 0), n(this, "maxColIndex", 0), n(this, "maxRowIndex", 0), n(this, "hoverRow"), n(this, "clickCell"), n(this, "focusCell"), n(this, "currentCell"), n(this, "hoverCell"), n(this, "clickCellHeader"), n(this, "focusCellHeader"), n(this, "hoverCellHeader"), n(this, "mouseX", 0), n(this, "mouseY", 0), n(this, "body", {
6813
+ n(this, "eventBus"), n(this, "eventBrowser"), n(this, "eventTable"), n(this, "locale", new ie()), n(this, "containerElement"), n(this, "stageElement"), n(this, "canvasElement"), n(this, "overlayerElement"), n(this, "editorElement"), n(this, "emptyElement"), n(this, "contextMenuElement"), n(this, "loadingElement"), n(this, "stageWidth", 0), n(this, "stageHeight", 0), n(this, "stagePhysicalWidth", 0), n(this, "stagePhysicalHeight", 0), n(this, "zoomScale"), n(this, "paint"), n(this, "icons"), n(this, "domSelectionStr", ""), n(this, "textSelectionStr", ""), n(this, "textSelecting", !1), n(this, "isMouseoverTargetContainer", !1), n(this, "mousedown", !1), n(this, "isEmpty", !1), n(this, "rowResizing", !1), n(this, "columnResizing", !1), n(this, "scrollerMove", !1), n(this, "scrollerFocus", !1), n(this, "autofillMove", !1), n(this, "selectorMove", !1), n(this, "disableHoverIconClick", !1), n(this, "selectColsIng", !1), n(this, "selectRowsIng", !1), n(this, "dragHeaderIng", !1), n(this, "dragRowIng", !1), n(this, "finding", !1), n(this, "contextMenuIng", !1), n(this, "editing", !1), n(this, "loading", !1), n(this, "onlyMergeCell", !1), n(this, "selectOnlyOne", !1), n(this, "hasSelection", !1), n(this, "hasTree", !1), n(this, "scrollY", 0), n(this, "scrollX", 0), n(this, "fixedLeftWidth", 0), n(this, "fixedRightWidth", 0), n(this, "lastCenterColIndex", 0), n(this, "maxColIndex", 0), n(this, "maxRowIndex", 0), n(this, "hoverRow"), n(this, "clickCell"), n(this, "focusCell"), n(this, "currentCell"), n(this, "hoverCell"), n(this, "clickCellHeader"), n(this, "focusCellHeader"), n(this, "hoverCellHeader"), n(this, "mouseX", 0), n(this, "mouseY", 0), n(this, "body", {
6725
6814
  x: 0,
6726
6815
  y: 0,
6727
6816
  width: 0,
@@ -6773,10 +6862,13 @@ var Qa = { key: 0 }, $a = {
6773
6862
  type: "body"
6774
6863
  }), n(this, "database"), n(this, "history"), n(this, "config");
6775
6864
  let { containerElement: r, stageElement: i, canvasElement: a, overlayerElement: o, editorElement: s, emptyElement: c, loadingElement: l, contextMenuElement: u } = e;
6776
- this.containerElement = r, i.tabIndex = 0, this.stageElement = i, this.canvasElement = a, this.overlayerElement = o, this.editorElement = s, this.emptyElement = c, this.loadingElement = l, this.contextMenuElement = u, this.config = new j(t.config || {}), this.eventBus = new A(), this.eventBrowser = new k(this), this.eventTable = new L(this), this.paint = new ee(this.canvasElement), this.database = new D(this, t), this.history = new O(this), this.icons = new ne(this);
6865
+ this.containerElement = r, i.tabIndex = 0, this.stageElement = i, this.canvasElement = a, this.overlayerElement = o, this.editorElement = s, this.emptyElement = c, this.loadingElement = l, this.contextMenuElement = u, this.config = new A(t.config || {}), this.eventBus = new k(), this.eventBrowser = new O(this), this.eventTable = new I(this), this.paint = new te(this.canvasElement), this.database = new D(this, t), this.history = new ee(this), this.icons = new re(this), this.zoomScale = new oe();
6866
+ }
6867
+ get zoom() {
6868
+ return this.zoomScale.value;
6777
6869
  }
6778
6870
  setConfig(e) {
6779
- this.config = new j(e);
6871
+ this.config = new A(e);
6780
6872
  }
6781
6873
  setItemValueByEditor(e, t, n, r = !0, i = !0, a = !0) {
6782
6874
  if (this.config.ENABLE_MERGE_CELL_LINK) {
@@ -6881,10 +6973,29 @@ var Qa = { key: 0 }, $a = {
6881
6973
  getOffset(e) {
6882
6974
  let { left: t, top: n } = this.containerElement.getBoundingClientRect();
6883
6975
  return {
6884
- offsetX: e.clientX - t,
6885
- offsetY: e.clientY - n
6976
+ offsetX: this.zoomScale.toLogical(e.clientX - t),
6977
+ offsetY: this.zoomScale.toLogical(e.clientY - n)
6886
6978
  };
6887
6979
  }
6980
+ toVisual(e) {
6981
+ return this.zoomScale.toVisual(e);
6982
+ }
6983
+ toLogical(e) {
6984
+ return this.zoomScale.toLogical(e);
6985
+ }
6986
+ toVisualPx(e) {
6987
+ return this.zoomScale.toPx(e);
6988
+ }
6989
+ scaleStyle(e) {
6990
+ return this.zoomScale.scaleStyle(e);
6991
+ }
6992
+ setZoom(e) {
6993
+ let { MIN_ZOOM: t, MAX_ZOOM: n } = this.config;
6994
+ this.zoomScale.set(e, t, n) && (this.emit("zoomChange", this.zoomScale.value), this.emit("resetHeader"));
6995
+ }
6996
+ getZoom() {
6997
+ return this.zoomScale.value;
6998
+ }
6888
6999
  hasEvent(e) {
6889
7000
  return this.eventBus.has(e);
6890
7001
  }
@@ -6904,7 +7015,7 @@ var Qa = { key: 0 }, $a = {
6904
7015
  this.eventTable.destroy(), this.eventBrowser.destroy(), this.eventBus.destroy();
6905
7016
  }
6906
7017
  }
6907
- class oe {
7018
+ class R {
6908
7019
  constructor(e, t) {
6909
7020
  n(this, "ctx"), n(this, "type"), n(this, "isFocus", !1), n(this, "trackX", 0), n(this, "trackY", 0), n(this, "trackWidth", 0), n(this, "trackHeight", 0), n(this, "splitPoints", []), n(this, "barX", 0), n(this, "barY", 0), n(this, "barWidth", 0), n(this, "barHeight", 0), n(this, "distance", 0), n(this, "visibleDistance", 0), n(this, "clientX", 0), n(this, "clientY", 0), n(this, "dragStart", 0), n(this, "isDragging", !1), n(this, "scroll", 0), this.ctx = e, this.type = t, this.type === "vertical" ? this.scroll = this.ctx.scrollY : this.scroll = this.ctx.scrollX;
6910
7021
  }
@@ -6912,7 +7023,7 @@ var Qa = { key: 0 }, $a = {
6912
7023
  this.updateScroll(e);
6913
7024
  }
6914
7025
  onTouchmove(e) {
6915
- let { clientY: t, clientX: n } = e.touches[0], r = t - this.clientY, i = n - this.clientX, a = 0;
7026
+ let { clientY: t, clientX: n } = e.touches[0], r = this.ctx.zoomScale.toLogical(t - this.clientY), i = this.ctx.zoomScale.toLogical(n - this.clientX), a = 0;
6916
7027
  this.type === "vertical" ? (a = Math.max(0, Math.min(this.dragStart - r, this.distance)), this.hasScrollbar() && !(a === 0 && r > 0 || a === this.distance && r < 0) && e.preventDefault()) : this.type === "horizontal" && (a = Math.max(0, Math.min(this.dragStart - i, this.distance))), this.scroll = a;
6917
7028
  }
6918
7029
  onTouchstart(e) {
@@ -6922,12 +7033,12 @@ var Qa = { key: 0 }, $a = {
6922
7033
  onMouseDown(e) {
6923
7034
  if (!(e.target instanceof Element) || !this.ctx.isTarget(e)) return;
6924
7035
  if (this.ctx.stageElement.style.cursor === "row-resize" || this.ctx.stageElement.style.cursor === "col-resize") return !0;
6925
- let { offsetX: t, offsetY: n, clientX: r, clientY: i } = e;
6926
- if (!(r == this.clientX && i == this.clientY)) {
6927
- if (this.isOnScrollbar(t, n)) this.clientX = r, this.clientY = i, this.isDragging = !0, this.ctx.scrollerMove = !0, this.isFocus = !0, this.dragStart = this.scroll, e.preventDefault();
6928
- else if (this.isOnTrack(t, n)) {
7036
+ let { clientX: t, clientY: n } = e, r = this.ctx.zoomScale.toLogical(e.offsetX), i = this.ctx.zoomScale.toLogical(e.offsetY);
7037
+ if (!(t == this.clientX && n == this.clientY)) {
7038
+ if (this.isOnScrollbar(r, i)) this.clientX = t, this.clientY = n, this.isDragging = !0, this.ctx.scrollerMove = !0, this.isFocus = !0, this.dragStart = this.scroll, e.preventDefault();
7039
+ else if (this.isOnTrack(r, i)) {
6929
7040
  let e = 0;
6930
- e = this.type === "vertical" ? (n - this.ctx.header.height - this.barHeight / 2) / (this.visibleDistance - this.barHeight) * this.distance : (t - this.barWidth / 2) / (this.visibleDistance - this.barWidth) * this.distance, this.scroll = Math.max(0, Math.min(e, this.distance));
7041
+ e = this.type === "vertical" ? (i - this.ctx.header.height - this.barHeight / 2) / (this.visibleDistance - this.barHeight) * this.distance : (r - this.barWidth / 2) / (this.visibleDistance - this.barWidth) * this.distance, this.scroll = Math.max(0, Math.min(e, this.distance));
6931
7042
  }
6932
7043
  }
6933
7044
  }
@@ -6935,10 +7046,10 @@ var Qa = { key: 0 }, $a = {
6935
7046
  this.isDragging = !1, this.isFocus = !1, this.clientX = 0, this.clientY = 0;
6936
7047
  }
6937
7048
  onMouseMove(e) {
6938
- let { offsetX: t, offsetY: n, clientX: r, clientY: i, buttons: a } = e;
6939
- if (this.isOnScrollbar(t, n) && e.target === this.ctx.canvasElement ? this.isFocus = !0 : this.isFocus = !1, a === 0 || r == this.clientX && i == this.clientY) return;
7049
+ let { clientX: t, clientY: n, buttons: r } = e, i = this.ctx.zoomScale.toLogical(e.offsetX), a = this.ctx.zoomScale.toLogical(e.offsetY);
7050
+ if (this.isOnScrollbar(i, a) && e.target === this.ctx.canvasElement ? this.isFocus = !0 : this.isFocus = !1, r === 0 || t == this.clientX && n == this.clientY) return;
6940
7051
  let o = 0;
6941
- if (o = this.type === "horizontal" ? r - this.clientX : i - this.clientY, this.isDragging && o !== 0) {
7052
+ if (o = this.type === "horizontal" ? t - this.clientX : n - this.clientY, o = this.ctx.zoomScale.toLogical(o), this.isDragging && o !== 0) {
6942
7053
  let e = 0;
6943
7054
  e = this.type === "vertical" ? this.dragStart + o / (this.visibleDistance - this.barHeight) * this.distance : this.dragStart + o / (this.visibleDistance - this.barWidth) * this.distance, this.scroll = Math.max(0, Math.min(e, this.distance));
6944
7055
  }
@@ -6999,9 +7110,9 @@ var Qa = { key: 0 }, $a = {
6999
7110
  }), this.ctx.scrollerFocus = this.isFocus;
7000
7111
  }
7001
7112
  }
7002
- class se {
7113
+ class ce {
7003
7114
  constructor(e) {
7004
- n(this, "ctx"), n(this, "verticalScrollbar"), n(this, "horizontalScrollbar"), n(this, "mousedownHeader", !1), n(this, "adjustPositionX", ""), n(this, "adjustPositionY", ""), n(this, "timerX", 0), n(this, "timerY", 0), this.ctx = e, this.verticalScrollbar = new oe(e, "vertical"), this.horizontalScrollbar = new oe(e, "horizontal"), this.ctx.on("wheel", (e) => this.onWheel(e)), this.ctx.on("mousedown", (e) => this.onMouseDown(e)), this.ctx.on("mousemove", (e) => this.onMouseMove(e)), this.ctx.on("mouseup", () => this.onMouseUp()), this.ctx.on("touchmove", (e) => this.onTouchmove(e)), this.ctx.on("touchstart", (e) => {
7115
+ n(this, "ctx"), n(this, "verticalScrollbar"), n(this, "horizontalScrollbar"), n(this, "mousedownHeader", !1), n(this, "adjustPositionX", ""), n(this, "adjustPositionY", ""), n(this, "timerX", 0), n(this, "timerY", 0), this.ctx = e, this.verticalScrollbar = new R(e, "vertical"), this.horizontalScrollbar = new R(e, "horizontal"), this.ctx.on("wheel", (e) => this.onWheel(e)), this.ctx.on("mousedown", (e) => this.onMouseDown(e)), this.ctx.on("mousemove", (e) => this.onMouseMove(e)), this.ctx.on("mouseup", () => this.onMouseUp()), this.ctx.on("touchmove", (e) => this.onTouchmove(e)), this.ctx.on("touchstart", (e) => {
7005
7116
  this.onTouchstart(e);
7006
7117
  }), this.ctx.on("setScroll", (e, t) => {
7007
7118
  this.setScroll(e, t);
@@ -7097,7 +7208,7 @@ var Qa = { key: 0 }, $a = {
7097
7208
  e && (this.adjustPositionX = "", this.timerX &&= (clearInterval(this.timerX), 0)), t && (this.adjustPositionY = "", this.timerY &&= (clearInterval(this.timerY), 0));
7098
7209
  }
7099
7210
  }
7100
- class ce extends w {
7211
+ class z extends w {
7101
7212
  constructor(e, t, r, a, o, s, c) {
7102
7213
  super(e, r, a, o, s, "header", c.fixed), n(this, "align"), n(this, "hideHeaderSelection", !1), n(this, "verticalAlign", "middle"), n(this, "fixed"), n(this, "minWidth"), n(this, "maxWidth"), n(this, "widthFillDisable"), n(this, "type"), n(this, "operation", !1), n(this, "editorType"), n(this, "level"), n(this, "text"), n(this, "hide", !1), n(this, "displayText", ""), n(this, "colspan"), n(this, "rowspan"), n(this, "row"), n(this, "key"), n(this, "required", !1), n(this, "readonly", !1), n(this, "ellipsis", !1), n(this, "overflowTooltipShow", !0), n(this, "children", []), n(this, "column"), n(this, "colIndex"), n(this, "rowKey"), n(this, "rules"), n(this, "hasChildren"), n(this, "render"), n(this, "style", {}), n(this, "drawX", 0), n(this, "drawY", 0), n(this, "sortIconName", "sort-default"), n(this, "sortAscIconName", "sort-asc"), n(this, "sortDescIconName", "sort-desc"), n(this, "visibleWidth", 0), n(this, "visibleHeight", 0), n(this, "maxLineClampHeader", "auto"), n(this, "domDataset", {}), n(this, "textOffsetRight", 0), n(this, "textOffsetLeft", 0), n(this, "textInfo"), n(this, "drawTextX", 0), n(this, "drawTextY", 0), n(this, "drawTextWidth", 0), n(this, "drawTextHeight", 0), n(this, "drawCellBgColor", ""), n(this, "drawTextColor", ""), n(this, "drawTextFont", ""), n(this, "drawSelectionImageX", 0), n(this, "drawSelectionImageY", 0), n(this, "drawSelectionImageWidth", 0), n(this, "drawSelectionImageHeight", 0), n(this, "drawSelectionImageName", ""), n(this, "drawSelectionImageSource"), n(this, "drawSortImageX", 0), n(this, "drawSortImageY", 0), n(this, "drawSortImageWidth", 0), n(this, "drawSortImageHeight", 0), n(this, "drawSortImageName", ""), n(this, "drawSortImageSource"), n(this, "renderHeaderType", "default"), this.ctx = e, this.x = r, this.y = a, this.width = o, this.height = s, this.visibleWidth = o, this.visibleHeight = s, this.colIndex = t, this.key = c.key, this.minWidth = c.minWidth, this.maxWidth = c.maxWidth, this.hide = (typeof c.hide == "function" ? c.hide(c) : c.hide) || !1, this.type = c.type || "", this.editorType = c.editorType || "text", this.hideHeaderSelection = c.hideHeaderSelection || !1, this.align = c.headerAlign || c.align || this.ctx.config.COLUMNS_ALIGN, this.verticalAlign = c.headerVerticalAlign || c.verticalAlign || this.ctx.config.COLUMNS_VERTICAL_ALIGN, this.fixed = c.fixed || "", this.level = c.level || 0, this.operation = c.operation || !1, this.text = c.title, this.column = c, this.colspan = c.colspan || 1, this.widthFillDisable = c.widthFillDisable || !1, this.rowspan = c.rowspan || 1, this.rules = c.rules, this.readonly = c.readonly || !1, this.required = c.required || !1, this.sortIconName = c.sortIconName || "sort-default", this.sortAscIconName = c.sortAscIconName || "sort-asc", this.sortDescIconName = c.sortDescIconName || "sort-desc", this.rowKey = i(), this.overflowTooltipShow = c.overflowTooltipHeaderShow !== !1, this.hasChildren = c.children && c.children.length > 0 || !1, this.render = c.renderHeader, this.maxLineClampHeader = c.maxLineClampHeader || "auto", this.renderHeaderType = c.renderHeaderType || "default";
7103
7214
  }
@@ -7274,7 +7385,7 @@ var Qa = { key: 0 }, $a = {
7274
7385
  return !1;
7275
7386
  }
7276
7387
  }
7277
- class R {
7388
+ class ue {
7278
7389
  constructor(e) {
7279
7390
  n(this, "ctx"), n(this, "x", 0), n(this, "y", 0), n(this, "width", 0), n(this, "height", 0), n(this, "resizeTarget", null), n(this, "dragTarget", null), n(this, "dragingCell"), n(this, "dragCellDiff", 0), n(this, "resizeNum", 0), n(this, "isResizing", !1), n(this, "clientX", 0), n(this, "resizeDiff", 0), n(this, "columnIndex", 0), n(this, "isMouseDown", !1), n(this, "columns"), n(this, "visibleColumns"), n(this, "visibleLeafColumns", []), n(this, "visibleHeight", 0), n(this, "visibleWidth", 0), n(this, "allCellHeaders", []), n(this, "leafCellHeaders", []), n(this, "renderLeafCellHeaders", []), n(this, "fixedLeftCellHeaders", []), n(this, "centerCellHeaders", []), n(this, "fixedRightCellHeaders", []), n(this, "renderCenterCellHeaders", []), n(this, "renderFixedCellHeaders", []), this.ctx = e, this.ctx.on("resetHeader", a(() => {
7280
7391
  this.init(), this.ctx.clearSelector(), this.ctx.emit("draw");
@@ -7294,17 +7405,22 @@ var Qa = { key: 0 }, $a = {
7294
7405
  }, 0), this.columnIndex = 0, this.resizeNum = 0;
7295
7406
  let a = s(c(this.visibleColumns, r));
7296
7407
  this.render(a, 0), this.ctx.database.updateColIndexKeyMap(this.leafCellHeaders);
7297
- let d = this.ctx.containerElement.getBoundingClientRect();
7298
- this.resizeNum > 0 ? this.ctx.stageWidth = Math.floor(d.width) : this.ctx.stageWidth = Math.min(Math.floor(this.width + n), Math.floor(d.width)), this.ctx.stageElement.style.width = this.ctx.stageWidth + "px", this.visibleWidth = this.ctx.stageWidth - n;
7299
- let f = this.visibleWidth - this.width;
7300
- if (this.resizeNum && f > 0) {
7301
- let e = Math.floor(f / this.resizeNum * 100) / 100;
7408
+ let d = this.ctx.containerElement.getBoundingClientRect(), { stageWidth: f, stagePhysicalWidth: p } = this.ctx.zoomScale.resolveStageWidth({
7409
+ containerPhysicalWidth: d.width,
7410
+ contentWidth: this.width,
7411
+ scrollerTrackSize: n,
7412
+ fillContainer: this.resizeNum > 0
7413
+ });
7414
+ this.ctx.stageWidth = f, this.ctx.stagePhysicalWidth = p, this.ctx.stageElement.style.width = `${p}px`, this.visibleWidth = this.ctx.stageWidth - n;
7415
+ let m = this.visibleWidth - this.width;
7416
+ if (this.resizeNum && m > 0) {
7417
+ let e = Math.floor(m / this.resizeNum * 100) / 100;
7302
7418
  this.resizeAllColumn(e);
7303
7419
  }
7304
- let p = this.fixedLeftCellHeaders.filter((e) => !e.hasChildren);
7305
- this.ctx.fixedLeftWidth = p.reduce((e, t) => e + t.width, 0);
7306
- let m = this.fixedRightCellHeaders.filter((e) => !e.hasChildren);
7307
- this.ctx.fixedRightWidth = m.reduce((e, t) => e + t.width, n), this.ctx.maxColIndex = this.leafCellHeaders.length - 1, this.ctx.header.x = this.x, this.ctx.header.y = this.y, this.ctx.header.width = this.width, this.ctx.header.height = this.height, this.ctx.header.allCellHeaders = this.allCellHeaders, this.ctx.header.visibleWidth = this.visibleWidth, this.ctx.header.visibleHeight = this.visibleHeight;
7420
+ let h = this.fixedLeftCellHeaders.filter((e) => !e.hasChildren);
7421
+ this.ctx.fixedLeftWidth = h.reduce((e, t) => e + t.width, 0);
7422
+ let g = this.fixedRightCellHeaders.filter((e) => !e.hasChildren);
7423
+ this.ctx.fixedRightWidth = g.reduce((e, t) => e + t.width, n), this.ctx.maxColIndex = this.leafCellHeaders.length - 1, this.ctx.header.x = this.x, this.ctx.header.y = this.y, this.ctx.header.width = this.width, this.ctx.header.height = this.height, this.ctx.header.allCellHeaders = this.allCellHeaders, this.ctx.header.visibleWidth = this.visibleWidth, this.ctx.header.visibleHeight = this.visibleHeight;
7308
7424
  }
7309
7425
  initSort() {
7310
7426
  this.ctx.on("cellHeaderClick", (e, t) => {
@@ -7333,18 +7449,19 @@ var Qa = { key: 0 }, $a = {
7333
7449
  a + t < n && (a = -(t - n)), r && a + t < r && (a = -(t - r)), i && a + t > i && (a = i - t), this.resizeDiff = a, this.ctx.emit("draw");
7334
7450
  } else {
7335
7451
  if (this.resizeTarget = null, this.isMouseDown) return;
7336
- if (e.offsetX < 0 || e.offsetX > this.visibleWidth) {
7452
+ let { offsetX: n } = this.ctx.getOffset(e);
7453
+ if (n < 0 || n > this.visibleWidth) {
7337
7454
  this.ctx.stageElement.style.cursor === "col-resize" && (this.ctx.stageElement.style.cursor = "default");
7338
7455
  return;
7339
7456
  }
7340
7457
  this.ctx.stageElement.style.cursor === "col-resize" && (this.ctx.stageElement.style.cursor = "default");
7341
- let n = [...this.renderFixedCellHeaders, ...this.renderCenterCellHeaders];
7342
- for (let r of n) {
7343
- let { offsetX: n, offsetY: i } = this.ctx.getOffset(e), a = n, o = i, s = r.getDrawX(), c = r.getDrawY();
7344
- if (a > s + r.width - 5 && a < s + r.width + 4 && a < t - 4 && o > c) {
7345
- let t = r.colIndex + r.colspan - 1, n = this.leafCellHeaders.find((e) => e.colIndex === t);
7346
- if (!n || !n.fixed && this.ctx.stageWidth - this.ctx.fixedRightWidth < s + r.width) return;
7347
- this.ctx.isTarget(e) && i <= this.height && (this.ctx.stageElement.style.cursor = "col-resize", this.resizeTarget = n);
7458
+ let r = [...this.renderFixedCellHeaders, ...this.renderCenterCellHeaders];
7459
+ for (let n of r) {
7460
+ let { offsetX: r, offsetY: i } = this.ctx.getOffset(e), a = r, o = i, s = n.getDrawX(), c = n.getDrawY();
7461
+ if (a > s + n.width - 5 && a < s + n.width + 4 && a < t - 4 && o > c) {
7462
+ let t = n.colIndex + n.colspan - 1, r = this.leafCellHeaders.find((e) => e.colIndex === t);
7463
+ if (!r || !r.fixed && this.ctx.stageWidth - this.ctx.fixedRightWidth < s + n.width) return;
7464
+ this.ctx.isTarget(e) && i <= this.height && (this.ctx.stageElement.style.cursor = "col-resize", this.resizeTarget = r);
7348
7465
  }
7349
7466
  }
7350
7467
  }
@@ -7446,7 +7563,7 @@ var Qa = { key: 0 }, $a = {
7446
7563
  for (let t = 0; t < n; t++) {
7447
7564
  let n = e[t], a = i * (n.rowspan || 0), o = i * (n.level || 0), { minWidth: s, maxWidth: c } = n, u = n.width || 100;
7448
7565
  s && u < s && (u = s), c && u > c && (u = c), n.children && (u = l(n.children).reduce((e, t) => e + (t?.width || 100), 0));
7449
- let d = new ce(this.ctx, this.columnIndex, r, o, u, a, n);
7566
+ let d = new z(this.ctx, this.columnIndex, r, o, u, a, n);
7450
7567
  this.ctx.database.setHeader(n.key, d), this.allCellHeaders.push(d), n.children || (this.leafCellHeaders.push(d), d.column.widthFillDisable || this.resizeNum++), n.fixed === "left" ? this.fixedLeftCellHeaders.push(d) : n.fixed === "right" ? this.fixedRightCellHeaders.push(d) : this.centerCellHeaders.push(d), !n.children && this.columnIndex++, n.children && this.render(n.children, r), r += u;
7451
7568
  }
7452
7569
  }
@@ -7562,7 +7679,7 @@ var Qa = { key: 0 }, $a = {
7562
7679
  }), this.drawBottomLine(), this.drawTipLine(), this.drawDragTip();
7563
7680
  }
7564
7681
  }
7565
- class ue {
7682
+ class de {
7566
7683
  constructor(e, t, r = 0, i = 0, a = 0, o = 0, s, c = "body") {
7567
7684
  n(this, "ctx"), n(this, "x", 0), n(this, "y", 0), n(this, "width", 0), n(this, "height"), n(this, "cells", []), n(this, "fixedCells", []), n(this, "noFixedCells", []), n(this, "calculatedHeightCells", []), n(this, "rowIndex", 0), n(this, "rowKey", ""), n(this, "rowType", "body"), n(this, "data"), n(this, "calculatedHeight", -1), this.ctx = e, this.x = r, this.y = i, this.width = a, this.height = o, this.rowIndex = t, this.rowKey = e.database.getRowKeyForRowIndex(t) || "", this.rowType = c, this.data = s, this.update();
7568
7685
  }
@@ -7601,7 +7718,7 @@ var Qa = { key: 0 }, $a = {
7601
7718
  });
7602
7719
  }
7603
7720
  }
7604
- class de {
7721
+ class fe {
7605
7722
  constructor(e) {
7606
7723
  n(this, "resizeTarget", null), n(this, "dragSource", null), n(this, "dragTarget", null), n(this, "dragRowDiff", 0), n(this, "dragPosition", "none"), n(this, "isMouseDown", !1), n(this, "resizeDiff", 0), n(this, "clientY", 0), n(this, "ctx"), n(this, "x", 0), n(this, "y", 0), n(this, "width", 0), n(this, "height", 0), n(this, "headIndex", 0), n(this, "tailIndex", 0), n(this, "isResizing", !1), n(this, "renderRows", []), n(this, "visibleRows", []), n(this, "visibleHeight", 0), n(this, "visibleWidth", 0), n(this, "containerRect"), n(this, "data", []), this.ctx = e, this.init(), this.initTree(), this.initSelection(), this.initResizeRow(), this.initDragRow();
7607
7724
  }
@@ -7613,30 +7730,33 @@ var Qa = { key: 0 }, $a = {
7613
7730
  this.height = p, this.data = f, this.width = t.width, this.visibleWidth = this.ctx.stageWidth - a;
7614
7731
  let m = this.ctx.footer.height;
7615
7732
  this.ctx.isEmpty = !this.data.length, !this.data.length && !o ? this.height = s : !this.data.length && o && (this.height = o - t.height - m - a);
7616
- let h = this.height + t.height + a;
7617
- h += m;
7618
- let g = h, _ = window.innerHeight, { top: v } = this.containerRect || this.ctx.containerElement.getBoundingClientRect();
7619
- if (_ > v && l && !o) {
7620
- let e = _ - v - u;
7621
- e > t.height + a ? g = e : h > c && (g = c);
7622
- } else this.data.length && o ? g = o : this.data.length && c && h > c && (g = c);
7623
- g > 0 && (this.ctx.stageHeight = Math.floor(g), this.ctx.stageElement.style.height = `${this.ctx.stageHeight}px`);
7624
- let y = this.ctx.stageHeight - t.height - a;
7625
- i ? this.visibleHeight = y - m : this.visibleHeight = y, this.data.length || (this.height = this.visibleHeight), this.ctx.body.x = this.x, this.ctx.body.y = this.y, this.ctx.body.width = this.width, this.ctx.body.height = this.height, this.ctx.body.visibleWidth = this.visibleWidth, this.ctx.body.visibleHeight = this.visibleHeight, this.ctx.body.data = f;
7626
- let b = window.devicePixelRatio || 1, x = this.ctx.stageWidth * b, S = this.ctx.stageHeight * b;
7627
- e.width = Math.round(x), e.height = Math.round(S);
7628
- let C = this.data.length ? "not-empty" : "empty";
7733
+ let { zoomScale: h } = this.ctx, g = this.height + t.height + a;
7734
+ g += m;
7735
+ let _ = h.contentToPhysical(g), v = window.innerHeight, { top: y } = this.containerRect || this.ctx.containerElement.getBoundingClientRect();
7736
+ if (v > y && l && !o) {
7737
+ let e = v - y - u;
7738
+ e > h.contentToPhysical(t.height + a) ? _ = e : h.contentToPhysical(g) > c && (_ = c);
7739
+ } else this.data.length && o ? _ = o : this.data.length && c && h.contentToPhysical(g) > c && (_ = c);
7740
+ if (_ > 0) {
7741
+ let { stageHeight: e, stagePhysicalHeight: t } = h.applyStageHeight(this.ctx.stageElement, _);
7742
+ this.ctx.stageHeight = e, this.ctx.stagePhysicalHeight = t;
7743
+ }
7744
+ let b = this.ctx.stageHeight - t.height - a;
7745
+ i ? this.visibleHeight = b - m : this.visibleHeight = b, this.data.length || (this.height = this.visibleHeight), this.ctx.body.x = this.x, this.ctx.body.y = this.y, this.ctx.body.width = this.width, this.ctx.body.height = this.height, this.ctx.body.visibleWidth = this.visibleWidth, this.ctx.body.visibleHeight = this.visibleHeight, this.ctx.body.data = f;
7746
+ let x = window.devicePixelRatio || 1, S = this.ctx.stagePhysicalWidth * x, C = this.ctx.stagePhysicalHeight * x;
7747
+ e.width = Math.round(S), e.height = Math.round(C);
7748
+ let w = this.data.length ? "not-empty" : "empty";
7629
7749
  this.ctx.emit("emptyChange", {
7630
- isEmpty: C,
7631
- type: C,
7750
+ isEmpty: w,
7751
+ type: w,
7632
7752
  headerHeight: t.height,
7633
7753
  bodyHeight: this.height,
7634
7754
  footerHeight: m,
7635
7755
  width: this.width,
7636
7756
  height: this.data.length ? 0 : s + m
7637
7757
  });
7638
- let w = Math.round(e.width / b * 1e4) / 1e4, T = Math.round(e.height / b * 1e4) / 1e4;
7639
- this.ctx.canvasElement.setAttribute("style", `height:${T}px;width:${w}px;`), this.ctx.paint.scale(b);
7758
+ let T = Math.round(e.width / x * 1e4) / 1e4, E = Math.round(e.height / x * 1e4) / 1e4;
7759
+ this.ctx.canvasElement.setAttribute("style", `height:${E}px;width:${T}px;`), this.ctx.paint.scale(x, this.ctx.zoomScale.value);
7640
7760
  }
7641
7761
  initTree() {
7642
7762
  this.ctx.on("cellClick", (e, t) => {
@@ -7850,7 +7970,7 @@ var Qa = { key: 0 }, $a = {
7850
7970
  this.headIndex = Math.max(0, s), this.tailIndex = Math.min(this.ctx.maxRowIndex, c + 1), this.visibleRows = a.slice(this.headIndex, this.tailIndex + 1), this.ctx.body.headIndex = this.headIndex, this.ctx.body.tailIndex = this.tailIndex, this.ctx.body.visibleRows = this.visibleRows;
7851
7971
  let l = [];
7852
7972
  for (let t = 0; t < this.visibleRows.length; t++) {
7853
- let n = this.headIndex + t, r = this.visibleRows[t], { height: i, top: a } = this.ctx.database.getPositionForRowIndex(n), o = new ue(this.ctx, n, 0, a + this.y, e.width, i, r);
7973
+ let n = this.headIndex + t, r = this.visibleRows[t], { height: i, top: a } = this.ctx.database.getPositionForRowIndex(n), o = new de(this.ctx, n, 0, a + this.y, e.width, i, r);
7854
7974
  l.push(o);
7855
7975
  }
7856
7976
  this.renderRows = l, this.ctx.body.renderRows = l;
@@ -7879,7 +7999,7 @@ var Qa = { key: 0 }, $a = {
7879
7999
  }), this.drawTipLine();
7880
8000
  }
7881
8001
  }
7882
- class fe {
8002
+ class pe {
7883
8003
  constructor(e) {
7884
8004
  n(this, "ctx"), n(this, "renderRows", []), n(this, "data", []), n(this, "x", 0), n(this, "y", 0), n(this, "width", 0), n(this, "height", 0), n(this, "visibleWidth", 0), n(this, "visibleHeight", 0), this.ctx = e, this.init();
7885
8005
  }
@@ -7911,7 +8031,7 @@ var Qa = { key: 0 }, $a = {
7911
8031
  this.init();
7912
8032
  let { CELL_FOOTER_HEIGHT: e } = this.ctx.config, t = this.y, n = [];
7913
8033
  this.data.forEach((r, i) => {
7914
- let a = new ue(this.ctx, i, 0, t, this.width, e, r, "footer");
8034
+ let a = new de(this.ctx, i, 0, t, this.width, e, r, "footer");
7915
8035
  t += e, n.push(a);
7916
8036
  }), this.renderRows = n, this.ctx.footer.renderRows = this.renderRows;
7917
8037
  }
@@ -7939,7 +8059,7 @@ var Qa = { key: 0 }, $a = {
7939
8059
  }), this.drawTopLine();
7940
8060
  }
7941
8061
  }
7942
- class z {
8062
+ class me {
7943
8063
  constructor(e) {
7944
8064
  n(this, "isCut", !1), n(this, "isMultipleRow", !1), n(this, "ctx"), this.ctx = e, this.init();
7945
8065
  }
@@ -8329,7 +8449,7 @@ var Qa = { key: 0 }, $a = {
8329
8449
  }
8330
8450
  destroy() {}
8331
8451
  }
8332
- class pe {
8452
+ class he {
8333
8453
  constructor(e) {
8334
8454
  n(this, "ctx"), n(this, "maxColRowCell"), this.ctx = e, this.init();
8335
8455
  }
@@ -8439,75 +8559,75 @@ var Qa = { key: 0 }, $a = {
8439
8559
  }
8440
8560
  destroy() {}
8441
8561
  }
8442
- let me = Math.min, he = Math.max, B = Math.round, ge = Math.floor, _e = (e) => ({
8562
+ let B = Math.min, ge = Math.max, _e = Math.round, ve = Math.floor, ye = (e) => ({
8443
8563
  x: e,
8444
8564
  y: e
8445
- }), ve = {
8565
+ }), be = {
8446
8566
  left: "right",
8447
8567
  right: "left",
8448
8568
  bottom: "top",
8449
8569
  top: "bottom"
8450
8570
  };
8451
- function ye(e, t, n) {
8452
- return he(e, me(t, n));
8571
+ function xe(e, t, n) {
8572
+ return ge(e, B(t, n));
8453
8573
  }
8454
- function be(e, t) {
8574
+ function V(e, t) {
8455
8575
  return typeof e == "function" ? e(t) : e;
8456
8576
  }
8457
- function xe(e) {
8577
+ function Se(e) {
8458
8578
  return e.split("-")[0];
8459
8579
  }
8460
- function V(e) {
8580
+ function Ce(e) {
8461
8581
  return e.split("-")[1];
8462
8582
  }
8463
- function Se(e) {
8583
+ function we(e) {
8464
8584
  return e === "x" ? "y" : "x";
8465
8585
  }
8466
- function Ce(e) {
8586
+ function Te(e) {
8467
8587
  return e === "y" ? "height" : "width";
8468
8588
  }
8469
8589
  function H(e) {
8470
8590
  let t = e[0];
8471
8591
  return t === "t" || t === "b" ? "y" : "x";
8472
8592
  }
8473
- function we(e) {
8474
- return Se(H(e));
8593
+ function Ee(e) {
8594
+ return we(H(e));
8475
8595
  }
8476
- function Te(e, t, n) {
8596
+ function De(e, t, n) {
8477
8597
  n === void 0 && (n = !1);
8478
- let r = V(e), i = we(e), a = Ce(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
8479
- return t.reference[a] > t.floating[a] && (o = Pe(o)), [o, Pe(o)];
8598
+ let r = Ce(e), i = Ee(e), a = Te(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
8599
+ return t.reference[a] > t.floating[a] && (o = U(o)), [o, U(o)];
8480
8600
  }
8481
- function Ee(e) {
8482
- let t = Pe(e);
8601
+ function Oe(e) {
8602
+ let t = U(e);
8483
8603
  return [
8484
- De(e),
8604
+ ke(e),
8485
8605
  t,
8486
- De(t)
8606
+ ke(t)
8487
8607
  ];
8488
8608
  }
8489
- function De(e) {
8609
+ function ke(e) {
8490
8610
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
8491
8611
  }
8492
- let Oe = ["left", "right"], ke = ["right", "left"], Ae = ["top", "bottom"], je = ["bottom", "top"];
8493
- function Me(e, t, n) {
8612
+ let Ae = ["left", "right"], je = ["right", "left"], Me = ["top", "bottom"], Ne = ["bottom", "top"];
8613
+ function Pe(e, t, n) {
8494
8614
  switch (e) {
8495
8615
  case "top":
8496
- case "bottom": return n ? t ? ke : Oe : t ? Oe : ke;
8616
+ case "bottom": return n ? t ? je : Ae : t ? Ae : je;
8497
8617
  case "left":
8498
- case "right": return t ? Ae : je;
8618
+ case "right": return t ? Me : Ne;
8499
8619
  default: return [];
8500
8620
  }
8501
8621
  }
8502
- function Ne(e, t, n, r) {
8503
- let i = V(e), a = Me(xe(e), n === "start", r);
8504
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(De)))), a;
8622
+ function Fe(e, t, n, r) {
8623
+ let i = Ce(e), a = Pe(Se(e), n === "start", r);
8624
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(ke)))), a;
8505
8625
  }
8506
- function Pe(e) {
8507
- let t = xe(e);
8508
- return ve[t] + e.slice(t.length);
8626
+ function U(e) {
8627
+ let t = Se(e);
8628
+ return be[t] + e.slice(t.length);
8509
8629
  }
8510
- function Fe(e) {
8630
+ function Ie(e) {
8511
8631
  return {
8512
8632
  top: 0,
8513
8633
  right: 0,
@@ -8516,15 +8636,15 @@ var Qa = { key: 0 }, $a = {
8516
8636
  ...e
8517
8637
  };
8518
8638
  }
8519
- function U(e) {
8639
+ function Le(e) {
8520
8640
  return typeof e == "number" ? {
8521
8641
  top: e,
8522
8642
  right: e,
8523
8643
  bottom: e,
8524
8644
  left: e
8525
- } : Fe(e);
8645
+ } : Ie(e);
8526
8646
  }
8527
- function Ie(e) {
8647
+ function W(e) {
8528
8648
  let { x: t, y: n, width: r, height: i } = e;
8529
8649
  return {
8530
8650
  width: r,
@@ -8537,8 +8657,8 @@ var Qa = { key: 0 }, $a = {
8537
8657
  y: n
8538
8658
  };
8539
8659
  }
8540
- function Le(e, t, n) {
8541
- let { reference: r, floating: i } = e, a = H(t), o = we(t), s = Ce(o), c = xe(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
8660
+ function Re(e, t, n) {
8661
+ let { reference: r, floating: i } = e, a = H(t), o = Ee(t), s = Te(o), c = Se(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
8542
8662
  switch (c) {
8543
8663
  case "top":
8544
8664
  p = {
@@ -8569,7 +8689,7 @@ var Qa = { key: 0 }, $a = {
8569
8689
  y: r.y
8570
8690
  };
8571
8691
  }
8572
- switch (V(t)) {
8692
+ switch (Ce(t)) {
8573
8693
  case "start":
8574
8694
  p[o] -= f * (n && l ? -1 : 1);
8575
8695
  break;
@@ -8579,10 +8699,10 @@ var Qa = { key: 0 }, $a = {
8579
8699
  }
8580
8700
  return p;
8581
8701
  }
8582
- async function Re(e, t) {
8702
+ async function ze(e, t) {
8583
8703
  var n;
8584
8704
  t === void 0 && (t = {});
8585
- let { x: r, y: i, platform: a, rects: o, elements: s, strategy: c } = e, { boundary: l = "clippingAncestors", rootBoundary: u = "viewport", elementContext: d = "floating", altBoundary: f = !1, padding: p = 0 } = be(t, e), m = U(p), h = s[f ? d === "floating" ? "reference" : "floating" : d], g = Ie(await a.getClippingRect({
8705
+ let { x: r, y: i, platform: a, rects: o, elements: s, strategy: c } = e, { boundary: l = "clippingAncestors", rootBoundary: u = "viewport", elementContext: d = "floating", altBoundary: f = !1, padding: p = 0 } = V(t, e), m = Le(p), h = s[f ? d === "floating" ? "reference" : "floating" : d], g = W(await a.getClippingRect({
8586
8706
  element: (n = await (a.isElement == null ? void 0 : a.isElement(h))) == null || n ? h : h.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
8587
8707
  boundary: l,
8588
8708
  rootBoundary: u,
@@ -8595,7 +8715,7 @@ var Qa = { key: 0 }, $a = {
8595
8715
  } : o.reference, v = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), y = await (a.isElement == null ? void 0 : a.isElement(v)) && await (a.getScale == null ? void 0 : a.getScale(v)) || {
8596
8716
  x: 1,
8597
8717
  y: 1
8598
- }, b = Ie(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
8718
+ }, b = W(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
8599
8719
  elements: s,
8600
8720
  rect: _,
8601
8721
  offsetParent: v,
@@ -8608,15 +8728,15 @@ var Qa = { key: 0 }, $a = {
8608
8728
  right: (b.right - g.right + m.right) / y.x
8609
8729
  };
8610
8730
  }
8611
- let ze = async (e, t, n) => {
8731
+ let Be = async (e, t, n) => {
8612
8732
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
8613
8733
  ...o,
8614
- detectOverflow: Re
8734
+ detectOverflow: ze
8615
8735
  }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
8616
8736
  reference: e,
8617
8737
  floating: t,
8618
8738
  strategy: i
8619
- }), { x: u, y: d } = Le(l, r, c), f = r, p = 0, m = {};
8739
+ }), { x: u, y: d } = Re(l, r, c), f = r, p = 0, m = {};
8620
8740
  for (let n = 0; n < a.length; n++) {
8621
8741
  let h = a[n];
8622
8742
  if (!h) continue;
@@ -8641,7 +8761,7 @@ var Qa = { key: 0 }, $a = {
8641
8761
  reference: e,
8642
8762
  floating: t,
8643
8763
  strategy: i
8644
- }) : x.rects), {x: u, y: d} = Le(l, f, c)), n = -1);
8764
+ }) : x.rects), {x: u, y: d} = Re(l, f, c)), n = -1);
8645
8765
  }
8646
8766
  return {
8647
8767
  x: u,
@@ -8650,26 +8770,26 @@ var Qa = { key: 0 }, $a = {
8650
8770
  strategy: i,
8651
8771
  middlewareData: m
8652
8772
  };
8653
- }, Be = (e) => ({
8773
+ }, G = (e) => ({
8654
8774
  name: "arrow",
8655
8775
  options: e,
8656
8776
  async fn(t) {
8657
- let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = be(e, t) || {};
8777
+ let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = V(e, t) || {};
8658
8778
  if (l == null) return {};
8659
- let d = U(u), f = {
8779
+ let d = Le(u), f = {
8660
8780
  x: n,
8661
8781
  y: r
8662
- }, p = we(i), m = Ce(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
8782
+ }, p = Ee(i), m = Te(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
8663
8783
  (!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
8664
- let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = me(d[_], T), D = me(d[v], T), O = E, k = C - h[m] - D, A = C / 2 - h[m] / 2 + w, ee = ye(O, A, k), j = !c.arrow && V(i) != null && A !== ee && a.reference[m] / 2 - (A < O ? E : D) - h[m] / 2 < 0, M = j ? A < O ? A - O : A - k : 0;
8784
+ let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = B(d[_], T), D = B(d[v], T), ee = E, O = C - h[m] - D, k = C / 2 - h[m] / 2 + w, te = xe(ee, k, O), A = !c.arrow && Ce(i) != null && k !== te && a.reference[m] / 2 - (k < ee ? E : D) - h[m] / 2 < 0, j = A ? k < ee ? k - ee : k - O : 0;
8665
8785
  return {
8666
- [p]: f[p] + M,
8786
+ [p]: f[p] + j,
8667
8787
  data: {
8668
- [p]: ee,
8669
- centerOffset: A - ee - M,
8670
- ...j && { alignmentOffset: M }
8788
+ [p]: te,
8789
+ centerOffset: k - te - j,
8790
+ ...A && { alignmentOffset: j }
8671
8791
  },
8672
- reset: j
8792
+ reset: A
8673
8793
  };
8674
8794
  }
8675
8795
  }), Ve = function(e) {
@@ -8678,13 +8798,13 @@ var Qa = { key: 0 }, $a = {
8678
8798
  options: e,
8679
8799
  async fn(t) {
8680
8800
  var n;
8681
- let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = be(e, t);
8801
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = V(e, t);
8682
8802
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
8683
- let g = xe(r), _ = H(o), v = xe(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Pe(o)] : Ee(o)), x = p !== "none";
8684
- !d && x && b.push(...Ne(o, m, p, y));
8803
+ let g = Se(r), _ = H(o), v = Se(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [U(o)] : Oe(o)), x = p !== "none";
8804
+ !d && x && b.push(...Fe(o, m, p, y));
8685
8805
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
8686
8806
  if (l && w.push(C[g]), u) {
8687
- let e = Te(r, a, y);
8807
+ let e = De(r, a, y);
8688
8808
  w.push(C[e[0]], C[e[1]]);
8689
8809
  }
8690
8810
  if (T = [...T, {
@@ -8721,9 +8841,9 @@ var Qa = { key: 0 }, $a = {
8721
8841
  return {};
8722
8842
  }
8723
8843
  };
8724
- }, W = /* @__PURE__ */ new Set(["left", "top"]);
8725
- async function He(e, t) {
8726
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = xe(n), s = V(n), c = H(n) === "y", l = W.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = be(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
8844
+ }, He = /* @__PURE__ */ new Set(["left", "top"]);
8845
+ async function K(e, t) {
8846
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Se(n), s = Ce(n), c = H(n) === "y", l = He.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = V(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
8727
8847
  mainAxis: d,
8728
8848
  crossAxis: 0,
8729
8849
  alignmentAxis: null
@@ -8746,7 +8866,7 @@ var Qa = { key: 0 }, $a = {
8746
8866
  options: e,
8747
8867
  async fn(t) {
8748
8868
  var n;
8749
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await He(t, e);
8869
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await K(t, e);
8750
8870
  return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
8751
8871
  x: r + s.x,
8752
8872
  y: i + s.y,
@@ -8757,7 +8877,7 @@ var Qa = { key: 0 }, $a = {
8757
8877
  };
8758
8878
  }
8759
8879
  };
8760
- }, G = function(e) {
8880
+ }, q = function(e) {
8761
8881
  return e === void 0 && (e = {}), {
8762
8882
  name: "shift",
8763
8883
  options: e,
@@ -8768,17 +8888,17 @@ var Qa = { key: 0 }, $a = {
8768
8888
  x: t,
8769
8889
  y: n
8770
8890
  };
8771
- } }, ...l } = be(e, t), u = {
8891
+ } }, ...l } = V(e, t), u = {
8772
8892
  x: n,
8773
8893
  y: r
8774
- }, d = await a.detectOverflow(t, l), f = H(xe(i)), p = Se(f), m = u[p], h = u[f];
8894
+ }, d = await a.detectOverflow(t, l), f = H(Se(i)), p = we(f), m = u[p], h = u[f];
8775
8895
  if (o) {
8776
8896
  let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
8777
- m = ye(n, m, r);
8897
+ m = xe(n, m, r);
8778
8898
  }
8779
8899
  if (s) {
8780
8900
  let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
8781
- h = ye(n, h, r);
8901
+ h = xe(n, h, r);
8782
8902
  }
8783
8903
  let g = c.fn({
8784
8904
  ...t,
@@ -8802,36 +8922,36 @@ var Qa = { key: 0 }, $a = {
8802
8922
  function We() {
8803
8923
  return typeof window < "u";
8804
8924
  }
8805
- function K(e) {
8925
+ function J(e) {
8806
8926
  return Ge(e) ? (e.nodeName || "").toLowerCase() : "#document";
8807
8927
  }
8808
- function q(e) {
8928
+ function Y(e) {
8809
8929
  var t;
8810
8930
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
8811
8931
  }
8812
- function J(e) {
8932
+ function X(e) {
8813
8933
  return ((Ge(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
8814
8934
  }
8815
8935
  function Ge(e) {
8816
- return We() ? e instanceof Node || e instanceof q(e).Node : !1;
8936
+ return We() ? e instanceof Node || e instanceof Y(e).Node : !1;
8817
8937
  }
8818
- function Y(e) {
8819
- return We() ? e instanceof Element || e instanceof q(e).Element : !1;
8938
+ function Z(e) {
8939
+ return We() ? e instanceof Element || e instanceof Y(e).Element : !1;
8820
8940
  }
8821
8941
  function Ke(e) {
8822
- return We() ? e instanceof HTMLElement || e instanceof q(e).HTMLElement : !1;
8823
- }
8824
- function X(e) {
8825
- return !We() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
8942
+ return We() ? e instanceof HTMLElement || e instanceof Y(e).HTMLElement : !1;
8826
8943
  }
8827
8944
  function qe(e) {
8828
- let { overflow: t, overflowX: n, overflowY: r, display: i } = rt(e);
8829
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
8945
+ return !We() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Y(e).ShadowRoot;
8830
8946
  }
8831
8947
  function Je(e) {
8832
- return /^(table|td|th)$/.test(K(e));
8948
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = at(e);
8949
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
8833
8950
  }
8834
8951
  function Ye(e) {
8952
+ return /^(table|td|th)$/.test(J(e));
8953
+ }
8954
+ function Xe(e) {
8835
8955
  try {
8836
8956
  if (e.matches(":popover-open")) return !0;
8837
8957
  } catch {}
@@ -8841,31 +8961,31 @@ var Qa = { key: 0 }, $a = {
8841
8961
  return !1;
8842
8962
  }
8843
8963
  }
8844
- let Xe = /transform|translate|scale|rotate|perspective|filter/, Ze = /paint|layout|strict|content/, Z = (e) => !!e && e !== "none", Qe;
8845
- function $e(e) {
8846
- let t = Y(e) ? rt(e) : e;
8847
- return Z(t.transform) || Z(t.translate) || Z(t.scale) || Z(t.rotate) || Z(t.perspective) || !tt() && (Z(t.backdropFilter) || Z(t.filter)) || Xe.test(t.willChange || "") || Ze.test(t.contain || "");
8964
+ let Ze = /transform|translate|scale|rotate|perspective|filter/, Qe = /paint|layout|strict|content/, $e = (e) => !!e && e !== "none", et;
8965
+ function tt(e) {
8966
+ let t = Z(e) ? at(e) : e;
8967
+ return $e(t.transform) || $e(t.translate) || $e(t.scale) || $e(t.rotate) || $e(t.perspective) || !rt() && ($e(t.backdropFilter) || $e(t.filter)) || Ze.test(t.willChange || "") || Qe.test(t.contain || "");
8848
8968
  }
8849
- function et(e) {
8850
- let t = at(e);
8851
- for (; Ke(t) && !nt(t);) {
8852
- if ($e(t)) return t;
8853
- if (Ye(t)) return null;
8854
- t = at(t);
8969
+ function nt(e) {
8970
+ let t = st(e);
8971
+ for (; Ke(t) && !it(t);) {
8972
+ if (tt(t)) return t;
8973
+ if (Xe(t)) return null;
8974
+ t = st(t);
8855
8975
  }
8856
8976
  return null;
8857
8977
  }
8858
- function tt() {
8859
- return Qe ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Qe;
8978
+ function rt() {
8979
+ return et ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), et;
8860
8980
  }
8861
- function nt(e) {
8862
- return /^(html|body|#document)$/.test(K(e));
8981
+ function it(e) {
8982
+ return /^(html|body|#document)$/.test(J(e));
8863
8983
  }
8864
- function rt(e) {
8865
- return q(e).getComputedStyle(e);
8984
+ function at(e) {
8985
+ return Y(e).getComputedStyle(e);
8866
8986
  }
8867
- function it(e) {
8868
- return Y(e) ? {
8987
+ function ot(e) {
8988
+ return Z(e) ? {
8869
8989
  scrollLeft: e.scrollLeft,
8870
8990
  scrollTop: e.scrollTop
8871
8991
  } : {
@@ -8873,99 +8993,99 @@ var Qa = { key: 0 }, $a = {
8873
8993
  scrollTop: e.scrollY
8874
8994
  };
8875
8995
  }
8876
- function at(e) {
8877
- if (K(e) === "html") return e;
8878
- let t = e.assignedSlot || e.parentNode || X(e) && e.host || J(e);
8879
- return X(t) ? t.host : t;
8996
+ function st(e) {
8997
+ if (J(e) === "html") return e;
8998
+ let t = e.assignedSlot || e.parentNode || qe(e) && e.host || X(e);
8999
+ return qe(t) ? t.host : t;
8880
9000
  }
8881
- function ot(e) {
8882
- let t = at(e);
8883
- return nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ke(t) && qe(t) ? t : ot(t);
9001
+ function ct(e) {
9002
+ let t = st(e);
9003
+ return it(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ke(t) && Je(t) ? t : ct(t);
8884
9004
  }
8885
- function st(e, t, n) {
9005
+ function lt(e, t, n) {
8886
9006
  t === void 0 && (t = []), n === void 0 && (n = !0);
8887
- let r = ot(e), i = r === e.ownerDocument?.body, a = q(r);
9007
+ let r = ct(e), i = r === e.ownerDocument?.body, a = Y(r);
8888
9008
  if (i) {
8889
- let e = ct(a);
8890
- return t.concat(a, a.visualViewport || [], qe(r) ? r : [], e && n ? st(e) : []);
8891
- } else return t.concat(r, st(r, [], n));
9009
+ let e = ut(a);
9010
+ return t.concat(a, a.visualViewport || [], Je(r) ? r : [], e && n ? lt(e) : []);
9011
+ } else return t.concat(r, lt(r, [], n));
8892
9012
  }
8893
- function ct(e) {
9013
+ function ut(e) {
8894
9014
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
8895
9015
  }
8896
- function lt(e) {
8897
- let t = rt(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Ke(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = B(n) !== a || B(r) !== o;
9016
+ function dt(e) {
9017
+ let t = at(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Ke(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = _e(n) !== a || _e(r) !== o;
8898
9018
  return s && (n = a, r = o), {
8899
9019
  width: n,
8900
9020
  height: r,
8901
9021
  $: s
8902
9022
  };
8903
9023
  }
8904
- function ut(e) {
8905
- return Y(e) ? e : e.contextElement;
9024
+ function ft(e) {
9025
+ return Z(e) ? e : e.contextElement;
8906
9026
  }
8907
- function dt(e) {
8908
- let t = ut(e);
8909
- if (!Ke(t)) return _e(1);
8910
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = lt(t), o = (a ? B(n.width) : n.width) / r, s = (a ? B(n.height) : n.height) / i;
9027
+ function pt(e) {
9028
+ let t = ft(e);
9029
+ if (!Ke(t)) return ye(1);
9030
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = dt(t), o = (a ? _e(n.width) : n.width) / r, s = (a ? _e(n.height) : n.height) / i;
8911
9031
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
8912
9032
  x: o,
8913
9033
  y: s
8914
9034
  };
8915
9035
  }
8916
- let ft = _e(0);
8917
- function pt(e) {
8918
- let t = q(e);
8919
- return !tt() || !t.visualViewport ? ft : {
9036
+ let mt = ye(0);
9037
+ function ht(e) {
9038
+ let t = Y(e);
9039
+ return !rt() || !t.visualViewport ? mt : {
8920
9040
  x: t.visualViewport.offsetLeft,
8921
9041
  y: t.visualViewport.offsetTop
8922
9042
  };
8923
9043
  }
8924
- function mt(e, t, n) {
8925
- return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
9044
+ function gt(e, t, n) {
9045
+ return t === void 0 && (t = !1), !n || t && n !== Y(e) ? !1 : t;
8926
9046
  }
8927
- function ht(e, t, n, r) {
9047
+ function _t(e, t, n, r) {
8928
9048
  t === void 0 && (t = !1), n === void 0 && (n = !1);
8929
- let i = e.getBoundingClientRect(), a = ut(e), o = _e(1);
8930
- t && (r ? Y(r) && (o = dt(r)) : o = dt(e));
8931
- let s = mt(a, n, r) ? pt(a) : _e(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
9049
+ let i = e.getBoundingClientRect(), a = ft(e), o = ye(1);
9050
+ t && (r ? Z(r) && (o = pt(r)) : o = pt(e));
9051
+ let s = gt(a, n, r) ? ht(a) : ye(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
8932
9052
  if (a) {
8933
- let e = q(a), t = r && Y(r) ? q(r) : r, n = e, i = ct(n);
9053
+ let e = Y(a), t = r && Z(r) ? Y(r) : r, n = e, i = ut(n);
8934
9054
  for (; i && r && t !== n;) {
8935
- let e = dt(i), t = i.getBoundingClientRect(), r = rt(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
8936
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = q(i), i = ct(n);
9055
+ let e = pt(i), t = i.getBoundingClientRect(), r = at(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
9056
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Y(i), i = ut(n);
8937
9057
  }
8938
9058
  }
8939
- return Ie({
9059
+ return W({
8940
9060
  width: u,
8941
9061
  height: d,
8942
9062
  x: c,
8943
9063
  y: l
8944
9064
  });
8945
9065
  }
8946
- function gt(e, t) {
8947
- let n = it(e).scrollLeft;
8948
- return t ? t.left + n : ht(J(e)).left + n;
9066
+ function vt(e, t) {
9067
+ let n = ot(e).scrollLeft;
9068
+ return t ? t.left + n : _t(X(e)).left + n;
8949
9069
  }
8950
- function _t(e, t) {
9070
+ function yt(e, t) {
8951
9071
  let n = e.getBoundingClientRect();
8952
9072
  return {
8953
- x: n.left + t.scrollLeft - gt(e, n),
9073
+ x: n.left + t.scrollLeft - vt(e, n),
8954
9074
  y: n.top + t.scrollTop
8955
9075
  };
8956
9076
  }
8957
- function vt(e) {
8958
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = J(r), s = t ? Ye(t.floating) : !1;
9077
+ function bt(e) {
9078
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = X(r), s = t ? Xe(t.floating) : !1;
8959
9079
  if (r === o || s && a) return n;
8960
9080
  let c = {
8961
9081
  scrollLeft: 0,
8962
9082
  scrollTop: 0
8963
- }, l = _e(1), u = _e(0), d = Ke(r);
8964
- if ((d || !d && !a) && ((K(r) !== "body" || qe(o)) && (c = it(r)), d)) {
8965
- let e = ht(r);
8966
- l = dt(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
9083
+ }, l = ye(1), u = ye(0), d = Ke(r);
9084
+ if ((d || !d && !a) && ((J(r) !== "body" || Je(o)) && (c = ot(r)), d)) {
9085
+ let e = _t(r);
9086
+ l = pt(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
8967
9087
  }
8968
- let f = o && !d && !a ? _t(o, c) : _e(0);
9088
+ let f = o && !d && !a ? yt(o, c) : ye(0);
8969
9089
  return {
8970
9090
  width: n.width * l.x,
8971
9091
  height: n.height * l.y,
@@ -8973,26 +9093,26 @@ var Qa = { key: 0 }, $a = {
8973
9093
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
8974
9094
  };
8975
9095
  }
8976
- function yt(e) {
9096
+ function xt(e) {
8977
9097
  return Array.from(e.getClientRects());
8978
9098
  }
8979
- function bt(e) {
8980
- let t = J(e), n = it(e), r = e.ownerDocument.body, i = he(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = he(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + gt(e), s = -n.scrollTop;
8981
- return rt(r).direction === "rtl" && (o += he(t.clientWidth, r.clientWidth) - i), {
9099
+ function St(e) {
9100
+ let t = X(e), n = ot(e), r = e.ownerDocument.body, i = ge(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = ge(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + vt(e), s = -n.scrollTop;
9101
+ return at(r).direction === "rtl" && (o += ge(t.clientWidth, r.clientWidth) - i), {
8982
9102
  width: i,
8983
9103
  height: a,
8984
9104
  x: o,
8985
9105
  y: s
8986
9106
  };
8987
9107
  }
8988
- function xt(e, t) {
8989
- let n = q(e), r = J(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
9108
+ function Ct(e, t) {
9109
+ let n = Y(e), r = X(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
8990
9110
  if (i) {
8991
9111
  a = i.width, o = i.height;
8992
- let e = tt();
9112
+ let e = rt();
8993
9113
  (!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
8994
9114
  }
8995
- let l = gt(r);
9115
+ let l = vt(r);
8996
9116
  if (l <= 0) {
8997
9117
  let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
8998
9118
  o <= 25 && (a -= o);
@@ -9004,8 +9124,8 @@ var Qa = { key: 0 }, $a = {
9004
9124
  y: c
9005
9125
  };
9006
9126
  }
9007
- function St(e, t) {
9008
- let n = ht(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Ke(e) ? dt(e) : _e(1);
9127
+ function wt(e, t) {
9128
+ let n = _t(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Ke(e) ? pt(e) : ye(1);
9009
9129
  return {
9010
9130
  width: e.clientWidth * a.x,
9011
9131
  height: e.clientHeight * a.y,
@@ -9013,13 +9133,13 @@ var Qa = { key: 0 }, $a = {
9013
9133
  y: r * a.y
9014
9134
  };
9015
9135
  }
9016
- function Ct(e, t, n) {
9136
+ function Tt(e, t, n) {
9017
9137
  let r;
9018
- if (t === "viewport") r = xt(e, n);
9019
- else if (t === "document") r = bt(J(e));
9020
- else if (Y(t)) r = St(t, n);
9138
+ if (t === "viewport") r = Ct(e, n);
9139
+ else if (t === "document") r = St(X(e));
9140
+ else if (Z(t)) r = wt(t, n);
9021
9141
  else {
9022
- let n = pt(e);
9142
+ let n = ht(e);
9023
9143
  r = {
9024
9144
  x: t.x - n.x,
9025
9145
  y: t.y - n.y,
@@ -9027,27 +9147,27 @@ var Qa = { key: 0 }, $a = {
9027
9147
  height: t.height
9028
9148
  };
9029
9149
  }
9030
- return Ie(r);
9150
+ return W(r);
9031
9151
  }
9032
- function wt(e, t) {
9033
- let n = at(e);
9034
- return n === t || !Y(n) || nt(n) ? !1 : rt(n).position === "fixed" || wt(n, t);
9152
+ function Et(e, t) {
9153
+ let n = st(e);
9154
+ return n === t || !Z(n) || it(n) ? !1 : at(n).position === "fixed" || Et(n, t);
9035
9155
  }
9036
- function Tt(e, t) {
9156
+ function Dt(e, t) {
9037
9157
  let n = t.get(e);
9038
9158
  if (n) return n;
9039
- let r = st(e, [], !1).filter((e) => Y(e) && K(e) !== "body"), i = null, a = rt(e).position === "fixed", o = a ? at(e) : e;
9040
- for (; Y(o) && !nt(o);) {
9041
- let t = rt(o), n = $e(o);
9042
- !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || qe(o) && !n && wt(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = at(o);
9159
+ let r = lt(e, [], !1).filter((e) => Z(e) && J(e) !== "body"), i = null, a = at(e).position === "fixed", o = a ? st(e) : e;
9160
+ for (; Z(o) && !it(o);) {
9161
+ let t = at(o), n = tt(o);
9162
+ !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || Je(o) && !n && Et(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = st(o);
9043
9163
  }
9044
9164
  return t.set(e, r), r;
9045
9165
  }
9046
- function Et(e) {
9047
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Ye(t) ? [] : Tt(t, this._c) : [].concat(n), r], o = Ct(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
9166
+ function Ot(e) {
9167
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Xe(t) ? [] : Dt(t, this._c) : [].concat(n), r], o = Tt(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
9048
9168
  for (let e = 1; e < a.length; e++) {
9049
- let n = Ct(t, a[e], i);
9050
- s = he(n.top, s), c = me(n.right, c), l = me(n.bottom, l), u = he(n.left, u);
9169
+ let n = Tt(t, a[e], i);
9170
+ s = ge(n.top, s), c = B(n.right, c), l = B(n.bottom, l), u = ge(n.left, u);
9051
9171
  }
9052
9172
  return {
9053
9173
  width: c - u,
@@ -9056,27 +9176,27 @@ var Qa = { key: 0 }, $a = {
9056
9176
  y: s
9057
9177
  };
9058
9178
  }
9059
- function Dt(e) {
9060
- let { width: t, height: n } = lt(e);
9179
+ function kt(e) {
9180
+ let { width: t, height: n } = dt(e);
9061
9181
  return {
9062
9182
  width: t,
9063
9183
  height: n
9064
9184
  };
9065
9185
  }
9066
- function Ot(e, t, n) {
9067
- let r = Ke(t), i = J(t), a = n === "fixed", o = ht(e, !0, a, t), s = {
9186
+ function At(e, t, n) {
9187
+ let r = Ke(t), i = X(t), a = n === "fixed", o = _t(e, !0, a, t), s = {
9068
9188
  scrollLeft: 0,
9069
9189
  scrollTop: 0
9070
- }, c = _e(0);
9190
+ }, c = ye(0);
9071
9191
  function l() {
9072
- c.x = gt(i);
9192
+ c.x = vt(i);
9073
9193
  }
9074
- if (r || !r && !a) if ((K(t) !== "body" || qe(i)) && (s = it(t)), r) {
9075
- let e = ht(t, !0, a, t);
9194
+ if (r || !r && !a) if ((J(t) !== "body" || Je(i)) && (s = ot(t)), r) {
9195
+ let e = _t(t, !0, a, t);
9076
9196
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
9077
9197
  } else i && l();
9078
9198
  a && !r && i && l();
9079
- let u = i && !r && !a ? _t(i, s) : _e(0);
9199
+ let u = i && !r && !a ? yt(i, s) : ye(0);
9080
9200
  return {
9081
9201
  x: o.left + s.scrollLeft - c.x - u.x,
9082
9202
  y: o.top + s.scrollTop - c.y - u.y,
@@ -9084,34 +9204,34 @@ var Qa = { key: 0 }, $a = {
9084
9204
  height: o.height
9085
9205
  };
9086
9206
  }
9087
- function kt(e) {
9088
- return rt(e).position === "static";
9207
+ function jt(e) {
9208
+ return at(e).position === "static";
9089
9209
  }
9090
- function At(e, t) {
9091
- if (!Ke(e) || rt(e).position === "fixed") return null;
9210
+ function Mt(e, t) {
9211
+ if (!Ke(e) || at(e).position === "fixed") return null;
9092
9212
  if (t) return t(e);
9093
9213
  let n = e.offsetParent;
9094
- return J(e) === n && (n = n.ownerDocument.body), n;
9214
+ return X(e) === n && (n = n.ownerDocument.body), n;
9095
9215
  }
9096
- function jt(e, t) {
9097
- let n = q(e);
9098
- if (Ye(e)) return n;
9216
+ function Nt(e, t) {
9217
+ let n = Y(e);
9218
+ if (Xe(e)) return n;
9099
9219
  if (!Ke(e)) {
9100
- let t = at(e);
9101
- for (; t && !nt(t);) {
9102
- if (Y(t) && !kt(t)) return t;
9103
- t = at(t);
9220
+ let t = st(e);
9221
+ for (; t && !it(t);) {
9222
+ if (Z(t) && !jt(t)) return t;
9223
+ t = st(t);
9104
9224
  }
9105
9225
  return n;
9106
9226
  }
9107
- let r = At(e, t);
9108
- for (; r && Je(r) && kt(r);) r = At(r, t);
9109
- return r && nt(r) && kt(r) && !$e(r) ? n : r || et(e) || n;
9227
+ let r = Mt(e, t);
9228
+ for (; r && Ye(r) && jt(r);) r = Mt(r, t);
9229
+ return r && it(r) && jt(r) && !tt(r) ? n : r || nt(e) || n;
9110
9230
  }
9111
- let Mt = async function(e) {
9112
- let t = this.getOffsetParent || jt, n = this.getDimensions, r = await n(e.floating);
9231
+ let Pt = async function(e) {
9232
+ let t = this.getOffsetParent || Nt, n = this.getDimensions, r = await n(e.floating);
9113
9233
  return {
9114
- reference: Ot(e.reference, await t(e.floating), e.strategy),
9234
+ reference: At(e.reference, await t(e.floating), e.strategy),
9115
9235
  floating: {
9116
9236
  x: 0,
9117
9237
  y: 0,
@@ -9120,26 +9240,26 @@ var Qa = { key: 0 }, $a = {
9120
9240
  }
9121
9241
  };
9122
9242
  };
9123
- function Nt(e) {
9124
- return rt(e).direction === "rtl";
9125
- }
9126
- let Pt = {
9127
- convertOffsetParentRelativeRectToViewportRelativeRect: vt,
9128
- getDocumentElement: J,
9129
- getClippingRect: Et,
9130
- getOffsetParent: jt,
9131
- getElementRects: Mt,
9132
- getClientRects: yt,
9133
- getDimensions: Dt,
9134
- getScale: dt,
9135
- isElement: Y,
9136
- isRTL: Nt
9243
+ function Ft(e) {
9244
+ return at(e).direction === "rtl";
9245
+ }
9246
+ let It = {
9247
+ convertOffsetParentRelativeRectToViewportRelativeRect: bt,
9248
+ getDocumentElement: X,
9249
+ getClippingRect: Ot,
9250
+ getOffsetParent: Nt,
9251
+ getElementRects: Pt,
9252
+ getClientRects: xt,
9253
+ getDimensions: kt,
9254
+ getScale: pt,
9255
+ isElement: Z,
9256
+ isRTL: Ft
9137
9257
  };
9138
- function Ft(e, t) {
9258
+ function Lt(e, t) {
9139
9259
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
9140
9260
  }
9141
- function It(e, t) {
9142
- let n = null, r, i = J(e);
9261
+ function Rt(e, t) {
9262
+ let n = null, r, i = X(e);
9143
9263
  function a() {
9144
9264
  var e;
9145
9265
  clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
@@ -9148,9 +9268,9 @@ var Qa = { key: 0 }, $a = {
9148
9268
  s === void 0 && (s = !1), c === void 0 && (c = 1), a();
9149
9269
  let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
9150
9270
  if (s || t(), !f || !p) return;
9151
- let m = ge(d), h = ge(i.clientWidth - (u + f)), g = ge(i.clientHeight - (d + p)), _ = ge(u), v = {
9271
+ let m = ve(d), h = ve(i.clientWidth - (u + f)), g = ve(i.clientHeight - (d + p)), _ = ve(u), v = {
9152
9272
  rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
9153
- threshold: he(0, me(1, c)) || 1
9273
+ threshold: ge(0, B(1, c)) || 1
9154
9274
  }, y = !0;
9155
9275
  function b(t) {
9156
9276
  let n = t[0].intersectionRatio;
@@ -9160,7 +9280,7 @@ var Qa = { key: 0 }, $a = {
9160
9280
  o(!1, 1e-7);
9161
9281
  }, 1e3);
9162
9282
  }
9163
- n === 1 && !Ft(l, e.getBoundingClientRect()) && o(), y = !1;
9283
+ n === 1 && !Lt(l, e.getBoundingClientRect()) && o(), y = !1;
9164
9284
  }
9165
9285
  try {
9166
9286
  n = new IntersectionObserver(b, {
@@ -9174,13 +9294,13 @@ var Qa = { key: 0 }, $a = {
9174
9294
  }
9175
9295
  return o(!0), a;
9176
9296
  }
9177
- function Lt(e, t, n, r) {
9297
+ function zt(e, t, n, r) {
9178
9298
  r === void 0 && (r = {});
9179
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = ut(e), u = i || a ? [...l ? st(l) : [], ...t ? st(t) : []] : [];
9299
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = ft(e), u = i || a ? [...l ? lt(l) : [], ...t ? lt(t) : []] : [];
9180
9300
  u.forEach((e) => {
9181
9301
  i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
9182
9302
  });
9183
- let d = l && s ? It(l, n) : null, f = -1, p = null;
9303
+ let d = l && s ? Rt(l, n) : null, f = -1, p = null;
9184
9304
  o && (p = new ResizeObserver((e) => {
9185
9305
  let [r] = e;
9186
9306
  r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
@@ -9188,11 +9308,11 @@ var Qa = { key: 0 }, $a = {
9188
9308
  (e = p) == null || e.observe(t);
9189
9309
  })), n();
9190
9310
  }), l && !c && p.observe(l), t && p.observe(t));
9191
- let m, h = c ? ht(e) : null;
9311
+ let m, h = c ? _t(e) : null;
9192
9312
  c && g();
9193
9313
  function g() {
9194
- let t = ht(e);
9195
- h && !Ft(h, t) && n(), h = t, m = requestAnimationFrame(g);
9314
+ let t = _t(e);
9315
+ h && !Lt(h, t) && n(), h = t, m = requestAnimationFrame(g);
9196
9316
  }
9197
9317
  return n(), () => {
9198
9318
  var e;
@@ -9201,19 +9321,19 @@ var Qa = { key: 0 }, $a = {
9201
9321
  }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
9202
9322
  };
9203
9323
  }
9204
- let Rt = Ue, zt = G, Bt = Ve, Vt = Be, Ht = (e, t, n) => {
9324
+ let Bt = Ue, Vt = q, Ht = Ve, Ut = G, Wt = (e, t, n) => {
9205
9325
  let r = /* @__PURE__ */ new Map(), i = {
9206
- platform: Pt,
9326
+ platform: It,
9207
9327
  ...n
9208
9328
  }, a = {
9209
9329
  ...i.platform,
9210
9330
  _c: r
9211
9331
  };
9212
- return ze(e, t, {
9332
+ return Be(e, t, {
9213
9333
  ...i,
9214
9334
  platform: a
9215
9335
  });
9216
- }, Ut = class {
9336
+ }, Gt = class {
9217
9337
  constructor(e) {
9218
9338
  n(this, "ctx"), n(this, "enable", !1), n(this, "contentEl"), n(this, "floatingEl"), n(this, "arrowEl"), this.ctx = e;
9219
9339
  let { TOOLTIP_BG_COLOR: t, TOOLTIP_TEXT_COLOR: r, TOOLTIP_ZINDEX: i, TOOLTIP_CUSTOM_STYLE: a, CSS_PREFIX: o } = this.ctx.config;
@@ -9275,25 +9395,21 @@ var Qa = { key: 0 }, $a = {
9275
9395
  let r = this.ctx.containerElement.getBoundingClientRect();
9276
9396
  if (!r) return;
9277
9397
  this.enable = !0, this.contentEl.style.maxWidth = `${e.overflowTooltipMaxWidth || 500}px`, this.contentEl.style.minWidth = "100px", this.contentEl.style.width = "100%", this.contentEl.style.display = "inline-block", this.contentEl.style.wordBreak = "break-all", this.contentEl.style.lineHeight = "1.5", this.contentEl.innerText = n;
9278
- let i = e.drawX + r.x, a = e.drawY + r.y;
9279
- Ht({ getBoundingClientRect() {
9280
- return {
9281
- width: e.visibleWidth,
9282
- height: e.visibleHeight,
9283
- x: i,
9284
- y: a,
9285
- left: i,
9286
- right: i + e.visibleWidth,
9287
- top: a,
9288
- bottom: a + e.visibleHeight
9289
- };
9398
+ let i = this.ctx.zoomScale.getViewportRect({
9399
+ x: e.drawX,
9400
+ y: e.drawY,
9401
+ width: e.visibleWidth,
9402
+ height: e.visibleHeight
9403
+ }, r);
9404
+ Wt({ getBoundingClientRect() {
9405
+ return i;
9290
9406
  } }, this.floatingEl, {
9291
9407
  placement: e.overflowTooltipPlacement,
9292
9408
  middleware: [
9293
- zt(),
9294
- Bt(),
9295
- Rt(6),
9296
- Vt({ element: this.arrowEl })
9409
+ Vt(),
9410
+ Ht(),
9411
+ Bt(6),
9412
+ Ut({ element: this.arrowEl })
9297
9413
  ]
9298
9414
  }).then((e) => {
9299
9415
  let { x: t, y: n, placement: r, middlewareData: i } = e;
@@ -9349,7 +9465,7 @@ var Qa = { key: 0 }, $a = {
9349
9465
  this.contentEl.remove(), this.arrowEl.remove(), this.floatingEl.remove();
9350
9466
  }
9351
9467
  };
9352
- class Wt {
9468
+ class Kt {
9353
9469
  constructor(e) {
9354
9470
  n(this, "editorEl"), n(this, "inputEl"), n(this, "enable", !1), n(this, "cellTarget", null), n(this, "selectorArrStr", ""), n(this, "ctx"), n(this, "drawY", 0), n(this, "drawX", 0), n(this, "cancel", !1), this.ctx = e, this.initTextEditor(), this.init();
9355
9471
  }
@@ -9447,10 +9563,10 @@ var Qa = { key: 0 }, $a = {
9447
9563
  this.ctx.emit("cellShowTooltip", this.cellTarget, e);
9448
9564
  }
9449
9565
  this.inputEl.style.height = "auto";
9450
- let t = this.inputEl.scrollHeight, n = this.ctx.body.visibleHeight;
9451
- t > n && (t = n);
9452
- let { stageHeight: r, footer: i, header: a, config: { SCROLLER_TRACK_SIZE: o } } = this.ctx, s = r - i.height - o;
9453
- this.editorEl.style.bottom = "auto", this.drawY < a.height && (this.editorEl.style.top = `${a.height - 1}px`), this.drawY + t > s && (this.editorEl.style.left = `${this.drawX - 1}px`, this.editorEl.style.top = "auto", this.editorEl.style.bottom = `${r - s}px`), this.inputEl.style.height = `${t}px`;
9566
+ let t = this.inputEl.scrollHeight, n = this.ctx.toLogical(t), r = this.ctx.body.visibleHeight;
9567
+ n > r && (t = this.ctx.toVisual(r));
9568
+ let { stageHeight: i, footer: a, header: o, config: { SCROLLER_TRACK_SIZE: s } } = this.ctx, c = i - a.height - s;
9569
+ this.editorEl.style.bottom = "auto", this.drawY < o.height && (this.editorEl.style.top = this.ctx.toVisualPx(o.height - 1)), this.drawY + this.ctx.toLogical(t) > c && (this.editorEl.style.left = this.ctx.toVisualPx(this.drawX - 1), this.editorEl.style.top = "auto", this.editorEl.style.bottom = this.ctx.toVisualPx(i - c)), this.inputEl.style.height = `${t}px`;
9454
9570
  }
9455
9571
  startEditByInput(e, t = !1) {
9456
9572
  let n = t ? null : e.getValue(), { editorType: r } = e;
@@ -9459,7 +9575,9 @@ var Qa = { key: 0 }, $a = {
9459
9575
  let { height: i, width: a, drawY: o, drawX: s } = e;
9460
9576
  this.drawX = s, this.drawY = o;
9461
9577
  let { config: { CELL_PADDING: c }, header: l } = this.ctx, u = this.ctx.body.visibleHeight;
9462
- i > u && (i = u), this.editorEl.style.zIndex = "100", this.editorEl.style.left = `${this.drawX - 1}px`, this.editorEl.style.top = `${this.drawY}px`, this.editorEl.style.bottom = "auto", this.editorEl.style.maxWidth = "none", this.editorEl.style.maxHeight = `${u}px`, ["text"].includes(r) ? (this.inputEl.style.opacity = "1", this.inputEl.style.position = "relative", this.inputEl.style.minWidth = `${a - 1}px`, this.inputEl.style.minHeight = `${i - 1}px`, this.inputEl.style.maxHeight = `${u}px`, this.inputEl.style.width = `${a}px`, this.inputEl.style.height = "auto", this.inputEl.style.padding = `${c}px`, this.inputEl.value = "", n !== null && (this.inputEl.value = n), (this.inputEl.scrollHeight > i || this.drawY < l.height) && this.autoSize()) : (this.inputEl.style.opacity = "0", this.inputEl.style.width = "1px", this.inputEl.style.height = "1px", this.inputEl.style.position = "absolute", this.inputEl.style.left = "0px", this.inputEl.style.top = "0px");
9578
+ i > u && (i = u);
9579
+ let d = this.ctx.toVisual(u);
9580
+ this.editorEl.style.zIndex = "100", this.editorEl.style.left = this.ctx.toVisualPx(this.drawX - 1), this.editorEl.style.top = this.ctx.toVisualPx(this.drawY), this.editorEl.style.bottom = "auto", this.editorEl.style.maxWidth = "none", this.editorEl.style.maxHeight = `${d}px`, ["text"].includes(r) ? (this.inputEl.style.opacity = "1", this.inputEl.style.position = "relative", this.inputEl.style.minWidth = this.ctx.toVisualPx(a - 1), this.inputEl.style.minHeight = this.ctx.toVisualPx(i - 1), this.inputEl.style.maxHeight = `${d}px`, this.inputEl.style.width = this.ctx.toVisualPx(a), this.inputEl.style.height = "auto", this.inputEl.style.padding = this.ctx.toVisualPx(c), this.inputEl.value = "", n !== null && (this.inputEl.value = n), (this.ctx.toLogical(this.inputEl.scrollHeight) > i || this.drawY < l.height) && this.autoSize()) : (this.inputEl.style.opacity = "0", this.inputEl.style.width = "1px", this.inputEl.style.height = "1px", this.inputEl.style.position = "absolute", this.inputEl.style.left = "0px", this.inputEl.style.top = "0px");
9463
9581
  }
9464
9582
  doneEditByInput() {
9465
9583
  if (this.cellTarget && this.cellTarget.editorType === "text") {
@@ -9500,7 +9618,7 @@ var Qa = { key: 0 }, $a = {
9500
9618
  }
9501
9619
  resetEditorStyle() {
9502
9620
  let e = this.cellTarget;
9503
- e && (this.editorEl.style.left = `${e.drawX}px`, this.editorEl.style.top = `${e.drawY}px`, this.editorEl.style.maxWidth = "1px", this.editorEl.style.maxHeight = "1px", this.editorEl.style.zIndex = "-1");
9621
+ e && (this.editorEl.style.left = this.ctx.toVisualPx(e.drawX), this.editorEl.style.top = this.ctx.toVisualPx(e.drawY), this.editorEl.style.maxWidth = "1px", this.editorEl.style.maxHeight = "1px", this.editorEl.style.zIndex = "-1");
9504
9622
  }
9505
9623
  clearEditor() {
9506
9624
  this.doneEdit(), this.cellTarget = null, this.selectorArrStr = "", this.ctx.clearSelector(), this.ctx.focusCell = void 0, this.inputEl.blur(), this.ctx.emit("draw");
@@ -9510,14 +9628,14 @@ var Qa = { key: 0 }, $a = {
9510
9628
  (e = this.editorEl) == null || e.remove();
9511
9629
  }
9512
9630
  }
9513
- let Gt = class {
9631
+ let qt = class {
9514
9632
  constructor(e) {
9515
9633
  n(this, "ctx"), n(this, "emptyEl"), this.ctx = e;
9516
9634
  let { EMPTY_CUSTOM_STYLE: t } = this.ctx.config;
9517
9635
  this.ctx.emptyElement ? this.emptyEl = this.ctx.emptyElement : (this.emptyEl = document.createElement("div"), this.emptyEl.innerText = this.getText()), this.emptyEl.className = "e-virt-table-empty", this.emptyEl.style.display = "none", this.ctx.containerElement.appendChild(this.emptyEl), this.ctx.on("emptyChange", ({ type: e, headerHeight: n, bodyHeight: r, footerHeight: i }) => {
9518
9636
  let a = n + (r + i) / 2, o = {
9519
9637
  display: e === "empty" ? "block" : "none",
9520
- top: `${a}px`,
9638
+ top: this.ctx.toVisualPx(a),
9521
9639
  ...t
9522
9640
  };
9523
9641
  Object.assign(this.emptyEl.style, o);
@@ -9533,7 +9651,7 @@ var Qa = { key: 0 }, $a = {
9533
9651
  this.emptyEl.remove();
9534
9652
  }
9535
9653
  };
9536
- class Kt {
9654
+ class Jt {
9537
9655
  constructor(e) {
9538
9656
  n(this, "ctx"), n(this, "observer"), this.ctx = e, this.init();
9539
9657
  }
@@ -9549,7 +9667,7 @@ var Qa = { key: 0 }, $a = {
9549
9667
  let n = Number(e.getAttribute("data-row-index")), r = Number(e.getAttribute("data-col-index"));
9550
9668
  if (isNaN(n) || isNaN(r)) return;
9551
9669
  let i = e.getBoundingClientRect(), a = `${n}​_${r}`;
9552
- t.set(a, Math.round(i.height));
9670
+ t.set(a, this.ctx.zoomScale.domHeightToLogical(i.height));
9553
9671
  });
9554
9672
  let n = this.ctx.database.getOverlayerAutoHeightMap();
9555
9673
  if (!this.arerMapsEqual(n, t)) {
@@ -9565,13 +9683,11 @@ var Qa = { key: 0 }, $a = {
9565
9683
  let t = this.ctx.overlayerElement;
9566
9684
  t.replaceChildren(), Object.assign(t.style, e.style), e.views.forEach((e) => {
9567
9685
  let n = document.createElement("div");
9568
- n.className = e.class, Object.assign(n.style, e.style), e.views.forEach((e) => {
9686
+ n.className = e.class, this.ctx.zoomScale.assignScaledStyle(n, e.style), e.views.forEach((e) => {
9569
9687
  let t = document.createElement("div");
9570
- Object.assign(t.style, e.style), e.cells.forEach((e) => {
9571
- let n = document.createElement("div");
9572
- Object.assign(n.style, e.style), Object.keys(e.domDataset).forEach((t) => {
9573
- n.setAttribute(t, e.domDataset[t]);
9574
- }), typeof e.render == "function" && e.render(n, e), t.appendChild(n);
9688
+ this.ctx.zoomScale.assignScaledStyle(t, e.style), e.cells.forEach((e) => {
9689
+ let n = this.ctx.zoomScale.createOverlayerCellElement(e, this.ctx.config.CSS_PREFIX);
9690
+ t.appendChild(n);
9575
9691
  }), n.appendChild(t);
9576
9692
  }), t.appendChild(n);
9577
9693
  });
@@ -9769,7 +9885,7 @@ var Qa = { key: 0 }, $a = {
9769
9885
  };
9770
9886
  }
9771
9887
  }
9772
- class qt {
9888
+ class Yt {
9773
9889
  constructor(e, t = [], r = {}) {
9774
9890
  n(this, "container"), n(this, "menuData"), n(this, "onClick"), n(this, "activeSubmenus", /* @__PURE__ */ new Set()), n(this, "boundMouseEnterHandler"), n(this, "boundMouseLeaveHandler"), n(this, "boundClickHandler"), this.container = e, this.menuData = t, this.onClick = r.onClick, this.boundMouseEnterHandler = (e) => this.handleMouseEvent(e, "enter"), this.boundMouseLeaveHandler = (e) => this.handleMouseEvent(e, "leave"), this.boundClickHandler = (e) => this.handleClick(e), this.createMenu(), this.bindEvents();
9775
9891
  }
@@ -9792,7 +9908,7 @@ var Qa = { key: 0 }, $a = {
9792
9908
  let a = this.createElement("span", "e-virt-table-menu-item-text");
9793
9909
  if (a.textContent = e.label || "", i.appendChild(a), r.appendChild(i), (n = e.children) != null && n.length) {
9794
9910
  let t = this.createElement("span", "e-virt-table-menu-arrow");
9795
- t.innerHTML = M, r.appendChild(t);
9911
+ t.innerHTML = j, r.appendChild(t);
9796
9912
  let n = this.createSubmenu(e.children);
9797
9913
  r._submenu = n, this.container.appendChild(n);
9798
9914
  }
@@ -9841,10 +9957,10 @@ var Qa = { key: 0 }, $a = {
9841
9957
  });
9842
9958
  }
9843
9959
  async showSubmenu(e, t) {
9844
- this.activeSubmenus.has(t) || (this.activeSubmenus.add(t), t.classList.add("show"), t._cleanup = Lt(e, t, async () => {
9845
- let n = this.container.getBoundingClientRect(), r = window.innerWidth, i = t.offsetWidth || 200, a = r - n.right, o = n.left, { x: s, y: c } = await Ht(e, t, {
9960
+ this.activeSubmenus.has(t) || (this.activeSubmenus.add(t), t.classList.add("show"), t._cleanup = zt(e, t, async () => {
9961
+ let n = this.container.getBoundingClientRect(), r = window.innerWidth, i = t.offsetWidth || 200, a = r - n.right, o = n.left, { x: s, y: c } = await Wt(e, t, {
9846
9962
  placement: a >= i || a >= o ? "right-start" : "left-start",
9847
- middleware: [Rt(8), zt({ padding: 8 })]
9963
+ middleware: [Bt(8), Vt({ padding: 8 })]
9848
9964
  });
9849
9965
  Object.assign(t.style, {
9850
9966
  left: `${s}px`,
@@ -9908,13 +10024,13 @@ var Qa = { key: 0 }, $a = {
9908
10024
  }),
9909
10025
  contextElement: document.body
9910
10026
  };
9911
- Lt(t, this.container, () => {
9912
- Ht(t, this.container, {
10027
+ zt(t, this.container, () => {
10028
+ Wt(t, this.container, {
9913
10029
  placement: "right-start",
9914
10030
  middleware: [
9915
- Rt(),
9916
- zt(),
9917
- Bt()
10031
+ Bt(),
10032
+ Vt(),
10033
+ Ht()
9918
10034
  ]
9919
10035
  }).then(({ x: e, y: t }) => {
9920
10036
  this.container && Object.assign(this.container.style, {
@@ -9963,7 +10079,7 @@ var Qa = { key: 0 }, $a = {
9963
10079
  }), e.remove();
9964
10080
  }
9965
10081
  }
9966
- class Jt {
10082
+ class Xt {
9967
10083
  constructor(e) {
9968
10084
  n(this, "ctx"), n(this, "contextMenuEl"), n(this, "currentDOMTreeMenu"), n(this, "isCustom", !1), this.ctx = e, this.ctx.contextMenuElement ? (this.contextMenuEl = this.ctx.contextMenuElement, this.contextMenuEl.className = "e-virt-table-main-menu", this.isCustom = !0) : (this.contextMenuEl = document.createElement("div"), this.isCustom = !1), this.ctx.containerElement.appendChild(this.contextMenuEl), this.init();
9969
10085
  }
@@ -9986,7 +10102,7 @@ var Qa = { key: 0 }, $a = {
9986
10102
  })), !n || o.length === 0) return;
9987
10103
  t.preventDefault();
9988
10104
  let { xArr: s, yArr: c } = this.ctx.selector, [l, u] = s, [d, f] = c, { rowIndex: p, colIndex: m } = e;
9989
- p >= d && p <= f && m >= l && m <= u || this.ctx.emit("setSelectorCell", e, t), this.currentDOMTreeMenu && this.currentDOMTreeMenu.destroy(), this.ctx.contextMenuIng = !0, this.currentDOMTreeMenu = new qt(this.contextMenuEl, o, { onClick: (n, r) => {
10105
+ p >= d && p <= f && m >= l && m <= u || this.ctx.emit("setSelectorCell", e, t), this.currentDOMTreeMenu && this.currentDOMTreeMenu.destroy(), this.ctx.contextMenuIng = !0, this.currentDOMTreeMenu = new Yt(this.contextMenuEl, o, { onClick: (n, r) => {
9990
10106
  r === "copy" ? (this.ctx.emit("contextMenuCopy"), this.hide()) : r === "paste" ? (this.ctx.emit("contextMenuPaste"), this.hide()) : r === "cut" ? (this.ctx.emit("contextMenuCut"), this.hide()) : r === "clearSelected" ? (this.ctx.emit("contextMenuClearSelected"), this.hide()) : n.event && n.event(t, {
9991
10107
  hide: this.hide.bind(this),
9992
10108
  cell: e
@@ -10015,7 +10131,7 @@ var Qa = { key: 0 }, $a = {
10015
10131
  ...e,
10016
10132
  children: this.filterColumns(_)
10017
10133
  } : e);
10018
- this.ctx.contextMenuIng = !0, this.currentDOMTreeMenu = new qt(this.contextMenuEl, v, { onClick: (n, r) => {
10134
+ this.ctx.contextMenuIng = !0, this.currentDOMTreeMenu = new Yt(this.contextMenuEl, v, { onClick: (n, r) => {
10019
10135
  let { xArr: i } = this.ctx.selector, [a, o] = i;
10020
10136
  if (r === "fixedLeft" || r === "fixedRight" || r === "fixedNone") {
10021
10137
  let e = this.ctx.header.allCellHeaders.filter((e) => e.colIndex >= a && e.colIndex <= o).filter((e) => e.level === 0).filter((e) => !e.column.fixedDisabled).map((e) => e.key);
@@ -10053,13 +10169,13 @@ var Qa = { key: 0 }, $a = {
10053
10169
  }),
10054
10170
  contextElement: document.body
10055
10171
  };
10056
- Lt(t, this.contextMenuEl, () => {
10057
- Ht(t, this.contextMenuEl, {
10172
+ zt(t, this.contextMenuEl, () => {
10173
+ Wt(t, this.contextMenuEl, {
10058
10174
  placement: "right-start",
10059
10175
  middleware: [
10060
- Rt(),
10061
- zt(),
10062
- Bt()
10176
+ Bt(),
10177
+ Vt(),
10178
+ Ht()
10063
10179
  ]
10064
10180
  }).then(({ x: e, y: t }) => {
10065
10181
  this.contextMenuEl && Object.assign(this.contextMenuEl.style, {
@@ -10097,7 +10213,7 @@ var Qa = { key: 0 }, $a = {
10097
10213
  this.hide(), (e = this.contextMenuEl) == null || e.remove();
10098
10214
  }
10099
10215
  }
10100
- class Yt {
10216
+ class Zt {
10101
10217
  constructor(e) {
10102
10218
  if (n(this, "ctx"), n(this, "loadingEl"), n(this, "textEl", document.createElement("p")), this.ctx = e, this.ctx.loadingElement) this.loadingEl = this.ctx.loadingElement;
10103
10219
  else {
@@ -10129,7 +10245,7 @@ var Qa = { key: 0 }, $a = {
10129
10245
  this.loadingEl.remove();
10130
10246
  }
10131
10247
  }
10132
- class Xt {
10248
+ class Qt {
10133
10249
  constructor(e) {
10134
10250
  n(this, "ctx"), n(this, "container"), n(this, "input"), n(this, "prevBtn"), n(this, "nextBtn"), n(this, "closeBtn"), n(this, "countEl"), n(this, "loadingEl"), n(this, "isVisible", !1), n(this, "searchResults", []), n(this, "currentIndex", -1), n(this, "searchData", []), n(this, "isComposing", !1), this.ctx = e, this.container = this.createContainer(), this.ctx.containerElement.appendChild(this.container), this.bindEvents(), this.ctx.on("keydown", (e) => {
10135
10251
  if (this.ctx.config.ENABLE_FINDER && !this.ctx.editing) {
@@ -10190,7 +10306,7 @@ var Qa = { key: 0 }, $a = {
10190
10306
  let t = document.createElement("div");
10191
10307
  t.className = "e-virt-table-finder-bar-input-wrapper", this.input = document.createElement("input"), this.input.type = "text", this.input.className = "e-virt-table-finder-bar-input", this.input.placeholder = "", t.appendChild(this.input), this.loadingEl = document.createElement("div"), this.loadingEl.className = "e-virt-table-finder-bar-loading", this.loadingEl.innerHTML = "<svg t=\"1724133395728\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"2893\" width=\"32\" height=\"32\"><path d=\"M512 226.8476541a19.82487759 19.82487759 0 0 1 14.66497778 5.70304692c3.80203107 3.82918865 5.70304692 8.71751457 5.70304693 14.66497779v122.20814825a19.82487759 19.82487759 0 0 1-5.70304693 14.66497778 19.82487759 19.82487759 0 0 1-14.66497778 5.70304691 19.82487759 19.82487759 0 0 1-14.66497778-5.70304691 19.82487759 19.82487759 0 0 1-5.70304693-14.66497778v-122.20814825a19.82487759 19.82487759 0 0 1 5.70304693-14.66497779 19.82487759 19.82487759 0 0 1 14.66497778-5.70304692z m0 407.36049415a19.82487759 19.82487759 0 0 1 14.66497778 5.70304691c3.80203107 3.82918865 5.70304692 8.71751457 5.70304693 14.66497778v122.20814827a19.82487759 19.82487759 0 0 1-5.70304693 14.66497776 19.82487759 19.82487759 0 0 1-14.66497778 5.70304693 19.82487759 19.82487759 0 0 1-14.66497778-5.70304693 19.82487759 19.82487759 0 0 1-5.70304693-14.66497776v-122.20814827a19.82487759 19.82487759 0 0 1 5.70304693-14.66497778 19.82487759 19.82487759 0 0 1 14.66497778-5.70304691zM797.1523459 512a19.82487759 19.82487759 0 0 1-5.70304692 14.66497778 19.82487759 19.82487759 0 0 1-14.66497779 5.70304693h-122.20814825a19.82487759 19.82487759 0 0 1-14.66497778-5.70304693 19.82487759 19.82487759 0 0 1-5.70304691-14.66497778 19.82487759 19.82487759 0 0 1 5.70304691-14.66497778 19.82487759 19.82487759 0 0 1 14.66497778-5.70304693h122.20814825a19.82487759 19.82487759 0 0 1 14.66497779 5.70304693c3.80203107 3.82918865 5.70304692 8.71751457 5.70304692 14.66497778z m-407.36049415 0a19.82487759 19.82487759 0 0 1-5.70304691 14.66497778 19.82487759 19.82487759 0 0 1-14.66497778 5.70304693h-122.20814827a19.82487759 19.82487759 0 0 1-14.66497776-5.70304693 19.82487759 19.82487759 0 0 1-5.70304693-14.66497778 19.82487759 19.82487759 0 0 1 5.70304693-14.66497778 19.82487759 19.82487759 0 0 1 14.66497776-5.70304693h122.20814827a19.82487759 19.82487759 0 0 1 14.66497778 5.70304693c3.80203107 3.82918865 5.70304692 8.71751457 5.70304691 14.66497778zM310.22076878 310.22076878a21.29137537 21.29137537 0 0 1 14.66497779-5.70304693c5.51294514 0 10.18401235 1.90101585 14.01320099 5.70304693l86.55052591 86.57768347a20.91117183 20.91117183 0 0 1 5.73020449 14.31193182 19.28172983 19.28172983 0 0 1-6.05609289 14.013201 19.11878565 19.11878565 0 0 1-14.013201 6.05609289 20.96548698 20.96548698 0 0 1-14.31193182-5.70304692L310.22076878 338.87178998a19.06447114 19.06447114 0 0 1-5.70304693-14.01320099c0-5.54010272 1.90101585-10.42842865 5.70304693-14.66497778z m288.32975775 288.32975775a19.79772001 19.79772001 0 0 1 14.3390894-6.35482371c5.29568642 0 10.04822572 2.11827457 14.31193182 6.38198066l86.57768347 86.55052651c3.80203107 3.80203107 5.70304692 8.47309828 5.70304691 14.01320102a19.55330372 19.55330372 0 0 1-6.05609225 14.31193182 19.66193339 19.66193339 0 0 1-14.31193245 6.05609288 19.01015661 19.01015661 0 0 1-14.01320099-5.70304692l-86.55052591-86.57768347a19.79772001 19.79772001 0 0 1-6.38198129-14.31193245c0-5.29568642 2.11827457-10.07538268 6.38198129-14.33908939zM713.77923122 310.22076878c3.80203107 4.26370672 5.70304692 9.15203265 5.70304693 14.66497779s-1.90101585 10.18401235-5.70304693 14.01320099l-86.57768347 86.55052591a20.91117183 20.91117183 0 0 1-14.31193182 5.73020449 19.28172983 19.28172983 0 0 1-14.013201-6.05609289 19.11878565 19.11878565 0 0 1-6.05609289-14.013201c0-5.29568642 1.90101585-10.07538268 5.70304692-14.31193182l86.57768348-86.57768347c3.80203107-3.80203107 8.50025585-5.70304692 14.01320099-5.70304693 5.54010272 0 10.40127108 1.90101585 14.66497779 5.70304693zM425.44947347 598.57768347a19.79772001 19.79772001 0 0 1 6.35482371 14.33908939c0 5.29568642-2.11827457 10.04822572-6.38198066 14.31193245L338.89894756 713.77923122a19.06447114 19.06447114 0 0 1-14.01320099 5.70304693 19.55330372 19.55330372 0 0 1-14.31193245-6.05609227 19.68909035 19.68909035 0 0 1-6.05609227-14.31193245 19.01015661 19.01015661 0 0 1 5.70304693-14.01320099l86.57768347-86.55052591a19.79772001 19.79772001 0 0 1 14.31193182-6.38198129c5.29568642 0 10.07538268 2.11827457 14.3390894 6.38198129z\" fill=\"#000000\" fill-opacity=\".65\" p-id=\"2894\"></path></svg>\n", t.appendChild(this.loadingEl), this.countEl = document.createElement("span"), this.countEl.className = "e-virt-table-finder-bar-count";
10192
10308
  let n = document.createElement("div");
10193
- return n.className = "e-virt-table-finder-bar-nav", this.prevBtn = document.createElement("button"), this.prevBtn.className = "e-virt-table-finder-bar-nav-btn prev-btn", this.prevBtn.innerHTML = M, this.nextBtn = document.createElement("button"), this.nextBtn.className = "e-virt-table-finder-bar-nav-btn next-btn", this.nextBtn.innerHTML = M, n.appendChild(this.prevBtn), n.appendChild(this.nextBtn), this.closeBtn = document.createElement("button"), this.closeBtn.className = "e-virt-table-finder-bar-nav-btn close-btn", this.closeBtn.innerHTML = "×", e.appendChild(t), e.appendChild(this.countEl), e.appendChild(n), e.appendChild(this.closeBtn), e;
10309
+ return n.className = "e-virt-table-finder-bar-nav", this.prevBtn = document.createElement("button"), this.prevBtn.className = "e-virt-table-finder-bar-nav-btn prev-btn", this.prevBtn.innerHTML = j, this.nextBtn = document.createElement("button"), this.nextBtn.className = "e-virt-table-finder-bar-nav-btn next-btn", this.nextBtn.innerHTML = j, n.appendChild(this.prevBtn), n.appendChild(this.nextBtn), this.closeBtn = document.createElement("button"), this.closeBtn.className = "e-virt-table-finder-bar-nav-btn close-btn", this.closeBtn.innerHTML = "×", e.appendChild(t), e.appendChild(this.countEl), e.appendChild(n), e.appendChild(this.closeBtn), e;
10194
10310
  }
10195
10311
  bindEvents() {
10196
10312
  this.input.addEventListener("input", () => {
@@ -10268,14 +10384,67 @@ var Qa = { key: 0 }, $a = {
10268
10384
  this.hide(), this.container.remove();
10269
10385
  }
10270
10386
  }
10271
- class Zt {
10387
+ let $t = class e {
10272
10388
  constructor(e) {
10273
- n(this, "ctx"), n(this, "layouts", /* @__PURE__ */ new Map()), n(this, "activeCellKey", ""), n(this, "selectionStart", null), n(this, "selectionEnd", null), n(this, "dragging", !1), this.ctx = e, this.init();
10389
+ n(this, "ctx"), n(this, "layouts", /* @__PURE__ */ new Map()), n(this, "activeCellKey", ""), n(this, "selectionStart", null), n(this, "selectionEnd", null), n(this, "pending", null), this.ctx = e, this.ctx.on("registerTextLayout", (e, t) => this.layouts.set(e, t)), this.ctx.on("mousedown", (e) => this.onMouseDown(e)), this.ctx.on("mousemove", (e) => this.onMouseMove(e)), this.ctx.on("mouseup", () => this.onMouseUp()), this.ctx.on("cellHeaderHoverChange", (e) => this.yieldToColumnDrag(e)), this.ctx.on("cellHoverChange", () => this.yieldToColumnDrag()), this.ctx.on("keydown", (e) => this.onCopyKeydown(e)), this.ctx.on("outsideMousedown", () => this.resetSelection());
10274
10390
  }
10275
10391
  get canSelect() {
10276
10392
  return this.ctx.config.ENABLE_TEXT_SELECTION && !this.ctx.editing && !this.ctx.finding;
10277
10393
  }
10278
- hitTestLayouts(e) {
10394
+ yieldToColumnDrag(e) {
10395
+ let t = this.ctx.focusCellHeader;
10396
+ if (!(!this.ctx.textSelecting || !t)) {
10397
+ if (e) {
10398
+ let n = t.colIndex, r = t.colIndex + t.colspan - 1, i = e.colIndex, a = e.colIndex + e.colspan - 1;
10399
+ if (i >= n && a <= r) return;
10400
+ }
10401
+ this.resetSelection();
10402
+ }
10403
+ }
10404
+ onMouseDown(e) {
10405
+ if (!this.canSelect || !this.ctx.isTarget(e)) return;
10406
+ this.ctx.containerElement.contains(document.activeElement) || this.ctx.containerElement.focus({ preventScroll: !0 });
10407
+ let t = this.hitTest(e);
10408
+ if (!t) {
10409
+ this.resetSelection();
10410
+ return;
10411
+ }
10412
+ let { offsetX: n, offsetY: r } = this.ctx.getOffset(e);
10413
+ this.pending = {
10414
+ cellKey: t.cellKey,
10415
+ index: t.index,
10416
+ startX: n,
10417
+ startY: r
10418
+ };
10419
+ }
10420
+ onMouseMove(e) {
10421
+ if (!this.canSelect || (this.ctx.textSelecting || this.tryStartDrag(e), !this.ctx.textSelecting)) return;
10422
+ let t = this.layouts.get(this.activeCellKey);
10423
+ if (!t) return;
10424
+ let { offsetX: n, offsetY: r } = this.ctx.getOffset(e), i = this.hitTestText(t, n, r);
10425
+ i !== null && (this.selectionEnd = i, this.updateSelection());
10426
+ }
10427
+ tryStartDrag(t) {
10428
+ if (!this.pending || !this.ctx.mousedown) return;
10429
+ let { offsetX: n, offsetY: r } = this.ctx.getOffset(t), i = Math.abs(n - this.pending.startX), a = Math.abs(r - this.pending.startY);
10430
+ if (i < e.DRAG_THRESHOLD && a < e.DRAG_THRESHOLD) return;
10431
+ let o = this.hitTest(t);
10432
+ if (!o || o.cellKey !== this.pending.cellKey) {
10433
+ this.pending = null;
10434
+ return;
10435
+ }
10436
+ this.activeCellKey = this.pending.cellKey, this.selectionStart = this.pending.index, this.selectionEnd = o.index, this.pending = null, this.ctx.textSelecting = !0, this.updateSelection();
10437
+ }
10438
+ onMouseUp() {
10439
+ this.pending = null, this.ctx.textSelecting = !1, this.ctx.textSelectionStr = this.getSelectedText(), this.ctx.textSelectionStr && this.ctx.emit("drawView");
10440
+ }
10441
+ onCopyKeydown(e) {
10442
+ var t;
10443
+ if (!this.canSelect || !((e.ctrlKey || e.metaKey) && e.code === "KeyC")) return;
10444
+ let n = this.getSelectedText();
10445
+ n && (e.preventDefault(), (t = navigator.clipboard) == null || t.writeText(n).catch((e) => console.error("Copy Failure:", e)));
10446
+ }
10447
+ hitTest(e) {
10279
10448
  let { offsetX: t, offsetY: n } = this.ctx.getOffset(e), r = null;
10280
10449
  for (let [e, i] of this.layouts) {
10281
10450
  let a = this.hitTestText(i, t, n);
@@ -10286,58 +10455,30 @@ var Qa = { key: 0 }, $a = {
10286
10455
  }
10287
10456
  return r;
10288
10457
  }
10289
- syncSelection() {
10458
+ updateSelection() {
10290
10459
  this.ctx.textSelectionStr = this.getSelectedText(), this.ctx.emit("drawView");
10291
10460
  }
10292
- init() {
10293
- this.ctx.on("registerTextLayout", (e, t) => {
10294
- this.registerLayout(e, t);
10295
- }), this.ctx.on("mousedown", (e) => {
10296
- if (!this.canSelect || !this.ctx.isTarget(e)) return;
10297
- this.ctx.containerElement.contains(document.activeElement) || this.ctx.containerElement.focus({ preventScroll: !0 });
10298
- let t = this.hitTestLayouts(e);
10299
- if (!t) {
10300
- this.clearSelection();
10301
- return;
10302
- }
10303
- this.activeCellKey = t.cellKey, this.selectionStart = t.index, this.selectionEnd = t.index, this.dragging = !0, this.ctx.textSelecting = !0, this.syncSelection();
10304
- }), this.ctx.on("mousemove", (e) => {
10305
- if (!this.canSelect || !this.dragging) return;
10306
- let t = this.layouts.get(this.activeCellKey);
10307
- if (!t) return;
10308
- let { offsetX: n, offsetY: r } = this.ctx.getOffset(e), i = this.hitTestText(t, n, r);
10309
- i !== null && (this.selectionEnd = i, this.syncSelection());
10310
- }), this.ctx.on("mouseup", () => {
10311
- this.dragging = !1, this.ctx.textSelecting = !1, this.ctx.textSelectionStr = this.getSelectedText(), this.ctx.textSelectionStr && this.ctx.emit("drawView");
10312
- }), this.ctx.on("keydown", (e) => {
10313
- var t;
10314
- if (console.log("keydown"), !this.canSelect || !((e.ctrlKey || e.metaKey) && e.code === "KeyC")) return;
10315
- let n = this.getSelectedText();
10316
- n && (e.preventDefault(), (t = navigator.clipboard) == null || t.writeText(n).catch((e) => console.error("Copy Failure:", e)));
10317
- }), this.ctx.on("outsideMousedown", () => {
10318
- this.clearSelection();
10319
- });
10320
- }
10321
10461
  hitTestText(e, t, n) {
10322
- let { contentBox: r, lines: i, glyphs: a, contentY: o, lineHeight: s } = e;
10323
- if (t < r.x || t > r.x + r.width || n < r.y || n > r.y + r.height) return null;
10324
- let c = n - o, l = Math.max(0, Math.min(Math.floor(c / s), i.length - 1)), u = i[l], d = a.filter((e) => e.line === l);
10325
- if (!d.length) return u.caretIndex;
10326
- if (t <= d[0].x) return d[0].index;
10327
- for (let e of d) if (t < e.x + e.width / 2) return e.index;
10328
- return d[d.length - 1].index + 1;
10329
- }
10330
- registerLayout(e, t) {
10331
- this.layouts.set(e, t);
10462
+ let { glyphs: r, contentY: i, lineHeight: a, lines: o } = e;
10463
+ if (!r.length) return null;
10464
+ let s = Math.floor((n - i) / a);
10465
+ if (s < 0 || s >= o.length) return null;
10466
+ let c = r.filter((e) => e.line === s);
10467
+ if (!c.length) return null;
10468
+ let l = i + s * a;
10469
+ if (n < l - 2 || n >= l + a + 2) return null;
10470
+ let u = c[0], d = c[c.length - 1];
10471
+ if (t < u.x - 2 || t > d.x + d.width + 2) return null;
10472
+ if (t <= u.x) return u.index;
10473
+ for (let e of c) if (t < e.x + e.width / 2) return e.index;
10474
+ return d.index + 1;
10332
10475
  }
10333
10476
  clearLayouts() {
10334
10477
  this.layouts.clear();
10335
10478
  }
10336
10479
  draw() {
10337
10480
  if (!this.ctx.config.ENABLE_TEXT_SELECTION) return;
10338
- let e = this.getSelectionRange();
10339
- if (!e) return;
10340
- let t = this.layouts.get(this.activeCellKey);
10481
+ let e = this.getSelectionRange(), t = e && this.layouts.get(this.activeCellKey);
10341
10482
  t && this.drawTextSelection(t, e);
10342
10483
  }
10343
10484
  drawTextSelection(e, t, n = "#fff", r = "#3b82f6") {
@@ -10345,14 +10486,14 @@ var Qa = { key: 0 }, $a = {
10345
10486
  let i = /* @__PURE__ */ new Map();
10346
10487
  for (let n of e.glyphs) {
10347
10488
  if (n.index < t.start || n.index >= t.end) continue;
10348
- let e = i.get(n.line);
10349
- e ? e.push(n) : i.set(n.line, [n]);
10489
+ let e = i.get(n.line) ?? [];
10490
+ e.push(n), i.set(n.line, e);
10350
10491
  }
10351
10492
  if (!i.size) return;
10352
10493
  let a = this.ctx.paint.getCtx();
10353
10494
  a.save(), a.font = e.font, a.textBaseline = "top", a.textAlign = "left", i.forEach((e) => {
10354
10495
  let t = e[0], i = e[e.length - 1];
10355
- a.fillStyle = r, a.fillRect(t.x, t.y, i.x + i.width - t.x, t.height), a.fillStyle = n;
10496
+ a.fillStyle = r, a.fillRect(t.x, t.y - 1, i.x + i.width - t.x, t.height), a.fillStyle = n;
10356
10497
  for (let t of e) a.fillText(t.char, t.x, t.y);
10357
10498
  }), a.restore();
10358
10499
  }
@@ -10363,25 +10504,24 @@ var Qa = { key: 0 }, $a = {
10363
10504
  };
10364
10505
  }
10365
10506
  getSelectedText() {
10366
- let e = this.getSelectionRange();
10367
- if (!e || e.start >= e.end) return "";
10368
- let t = this.layouts.get(this.activeCellKey);
10369
- return t ? t.chars.slice(e.start, e.end).join("") : "";
10507
+ let e = this.getSelectionRange(), t = e && this.layouts.get(this.activeCellKey);
10508
+ return !t || e.start >= e.end ? "" : t.chars.slice(e.start, e.end).join("");
10370
10509
  }
10371
- clearSelection() {
10372
- this.activeCellKey = "", this.selectionStart = null, this.selectionEnd = null, this.dragging = !1, this.ctx.textSelectionStr = "";
10510
+ resetSelection() {
10511
+ this.activeCellKey = "", this.selectionStart = null, this.selectionEnd = null, this.pending = null, this.ctx.textSelecting = !1, this.ctx.textSelectionStr = "", this.ctx.emit("drawView");
10373
10512
  }
10374
10513
  destroy() {
10375
- this.layouts.clear(), this.clearSelection();
10514
+ this.layouts.clear(), this.resetSelection();
10376
10515
  }
10377
- }
10378
- let Qt = class e {
10516
+ };
10517
+ n($t, "DRAG_THRESHOLD", 4);
10518
+ let en = $t, tn = class e {
10379
10519
  constructor(e, t) {
10380
10520
  n(this, "options"), n(this, "scroller"), n(this, "header"), n(this, "body"), n(this, "footer"), n(this, "selector"), n(this, "autofill"), n(this, "tooltip"), n(this, "editor"), n(this, "empty"), n(this, "overlayer"), n(this, "contextMenu"), n(this, "loading"), n(this, "finderBar"), n(this, "textSelector"), n(this, "animationFrameId"), n(this, "ctx"), this.options = t;
10381
10521
  let { overlayerElement: r, editorElement: i, emptyElement: a, contextMenuElement: o } = this.options, s = this.createContainer(e, r, i, a, o);
10382
- this.ctx = new ae(s, this.options), this.header = new R(this.ctx), this.footer = new fe(this.ctx), this.body = new de(this.ctx), this.scroller = new se(this.ctx), this.selector = new z(this.ctx), this.autofill = new pe(this.ctx), this.tooltip = new Ut(this.ctx), this.empty = new Gt(this.ctx), this.editor = new Wt(this.ctx), this.overlayer = new Kt(this.ctx), this.contextMenu = new Jt(this.ctx), this.loading = new Yt(this.ctx), this.finderBar = new Xt(this.ctx), this.ctx.on("loadData", (e) => {
10522
+ this.ctx = new se(s, this.options), this.textSelector = new en(this.ctx), this.header = new ue(this.ctx), this.footer = new pe(this.ctx), this.body = new fe(this.ctx), this.scroller = new ce(this.ctx), this.selector = new me(this.ctx), this.autofill = new he(this.ctx), this.tooltip = new Gt(this.ctx), this.empty = new qt(this.ctx), this.editor = new Kt(this.ctx), this.overlayer = new Jt(this.ctx), this.contextMenu = new Xt(this.ctx), this.loading = new Zt(this.ctx), this.finderBar = new Qt(this.ctx), this.ctx.on("loadData", (e) => {
10383
10523
  this.loadData(e);
10384
- }), this.textSelector = new Zt(this.ctx), this.ctx.on("draw", () => {
10524
+ }), this.ctx.on("draw", () => {
10385
10525
  this.draw();
10386
10526
  }), this.ctx.on("drawView", () => {
10387
10527
  this.draw(!0);
@@ -10408,7 +10548,7 @@ var Qa = { key: 0 }, $a = {
10408
10548
  };
10409
10549
  }
10410
10550
  doDraw(e = !1) {
10411
- this.header.update(), this.footer.update(), this.body.update(), this.ctx.paint.clear(), this.textSelector.clearLayouts(), this.body.draw(), this.footer.draw(), this.header.draw(), this.textSelector.draw(), this.body.drawDragRowTip(), this.scroller.draw(), this.empty.draw(), this.loading.draw(), e || this.overlayer.draw();
10551
+ this.header.update(), this.body.update(), this.footer.update(), this.ctx.paint.clear(), this.textSelector.clearLayouts(), this.body.draw(), this.footer.draw(), this.header.draw(), this.textSelector.draw(), this.body.drawDragRowTip(), this.scroller.draw(), this.empty.draw(), this.loading.draw(), e || this.overlayer.draw();
10412
10552
  }
10413
10553
  draw(e = !1) {
10414
10554
  this.animationFrameId && cancelAnimationFrame(this.animationFrameId), this.animationFrameId = requestAnimationFrame(() => {
@@ -10476,6 +10616,12 @@ var Qa = { key: 0 }, $a = {
10476
10616
  doLayout() {
10477
10617
  this.ctx.emit("draw");
10478
10618
  }
10619
+ setZoom(e) {
10620
+ this.ctx.setZoom(e);
10621
+ }
10622
+ getZoom() {
10623
+ return this.ctx.getZoom();
10624
+ }
10479
10625
  getChangedData() {
10480
10626
  return this.ctx.database.getChangedData();
10481
10627
  }
@@ -10667,9 +10813,9 @@ var Qa = { key: 0 }, $a = {
10667
10813
  this.overlayer.destroy(), this.empty.destroy(), this.editor.destroy(), this.tooltip.destroy(), this.selector.destroy(), this.autofill.destroy(), this.contextMenu.destroy(), this.loading.destroy(), this.finderBar.destroy(), this.textSelector.destroy(), this.ctx.destroy(), this.ctx.containerElement.remove();
10668
10814
  }
10669
10815
  };
10670
- n(Qt, "locale");
10671
- let $t = Qt;
10672
- return $t;
10816
+ n(tn, "locale");
10817
+ let nn = tn;
10818
+ return nn;
10673
10819
  }));
10674
10820
  })))(), 1), fo = /* @__PURE__ */ l((e, { emit: t }) => {
10675
10821
  let { cellRender: n, renderTableParams: r } = e, { row: i, field: a } = r;
@@ -10704,13 +10850,13 @@ var Qa = { key: 0 }, $a = {
10704
10850
  ...m,
10705
10851
  ...f.config
10706
10852
  }
10707
- })), v = null, x = ee(), D = S(null), O = S(null), k = S(null), j = S(null), M = S(), te = S("text"), F = S(), I = {}, ne = {}, L = t(() => {
10708
- let e = M.value;
10853
+ })), v = null, x = te(), D = S(null), ee = S(null), O = S(null), A = S(null), j = S(), ne = S("text"), P = S(), F = {}, re = {}, I = t(() => {
10854
+ let e = j.value;
10709
10855
  return e ? {
10710
10856
  width: `${e.width}px`,
10711
10857
  height: `${e.height}px`
10712
10858
  } : {};
10713
- }), re = (e) => ya[e] || (({ cellValue: e }) => e), ie = (e) => Pa.renders[e]?.renderDefault, ae = (e, ...t) => ({ row: n, rowIndex: r, value: i }) => e({
10859
+ }), L = (e) => ya[e] || (({ cellValue: e }) => e), ie = (e) => Pa.renders[e]?.renderDefault, ae = (e, ...t) => ({ row: n, rowIndex: r, value: i }) => e({
10714
10860
  row: n,
10715
10861
  rowIndex: r,
10716
10862
  cellValue: i
@@ -10730,24 +10876,24 @@ var Qa = { key: 0 }, $a = {
10730
10876
  }, {});
10731
10877
  }, se = (e) => {
10732
10878
  if (e.slots?.title && (0, Q.isFunction)(e.slots?.title)) return (t) => e.slots?.title?.({ column: e });
10733
- }, ce = (e) => (e.slots?.edit && (e.field || e.key) && (0, Q.isFunction)(e.slots?.edit) ? I[`__slot:${e.field || e.key}`] = e : e.editRender?.name && (e.field || e.key) && (ne[e.field || e.key] = e.editRender), {
10879
+ }, R = (e) => (e.slots?.edit && (e.field || e.key) && (0, Q.isFunction)(e.slots?.edit) ? F[`__slot:${e.field || e.key}`] = e : e.editRender?.name && (e.field || e.key) && (re[e.field || e.key] = e.editRender), {
10734
10880
  ...(0, Q.omit)(e, ["formatter"]),
10735
10881
  key: e.key || e.field || Ji(),
10736
- formatter: (0, Q.isString)(e.formatter) ? ae(re(e.formatter)) : (0, Q.isArray)(e.formatter) && (0, Q.isString)(e.formatter[0]) ? ae(re(e.formatter[0]), ...e.formatter.slice(1)) : (0, Q.isFunction)(e.formatter) ? ae(e.formatter) : void 0,
10882
+ formatter: (0, Q.isString)(e.formatter) ? ae(L(e.formatter)) : (0, Q.isArray)(e.formatter) && (0, Q.isString)(e.formatter[0]) ? ae(L(e.formatter[0]), ...e.formatter.slice(1)) : (0, Q.isFunction)(e.formatter) ? ae(e.formatter) : void 0,
10737
10883
  editorType: e.editorType ?? (e.slots?.edit && (e.field || e.key) && (0, Q.isFunction)(e.slots?.edit) ? `__slot:${e.field || e.key}` : e.editRender?.name ? e.editRender.name : void 0),
10738
10884
  render: oe(e),
10739
10885
  renderHeader: se(e),
10740
- children: e.children?.map((e) => ce(e))
10886
+ children: e.children?.map((e) => R(e))
10741
10887
  });
10742
10888
  y(() => {
10743
10889
  D.value && (v = new uo.default(D.value, {
10744
10890
  config: g.value.config,
10745
- columns: f.columns.map((e) => ce(e)),
10891
+ columns: f.columns.map((e) => R(e)),
10746
10892
  data: f.data,
10747
10893
  footerData: f.footerData,
10748
- emptyElement: k.value || void 0,
10749
- overlayerElement: j.value || void 0,
10750
- editorElement: O.value || void 0
10894
+ emptyElement: O.value || void 0,
10895
+ overlayerElement: A.value || void 0,
10896
+ editorElement: ee.value || void 0
10751
10897
  }), Object.keys(x).forEach((e) => {
10752
10898
  let t = x[e];
10753
10899
  if (typeof t == "function" && e.startsWith("on")) {
@@ -10757,30 +10903,30 @@ var Qa = { key: 0 }, $a = {
10757
10903
  }), v.on("change", (e) => {
10758
10904
  u("change", e);
10759
10905
  }), v.on("overlayerChange", (e) => {
10760
- F.value = e, console.log("overlayerChange", e);
10906
+ P.value = e, console.log("overlayerChange", e);
10761
10907
  }), v.on("startEdit", (e) => {
10762
- M.value = e, te.value = e.editorType, te.value;
10908
+ j.value = e, ne.value = e.editorType, ne.value;
10763
10909
  }), v.on("doneEdit", () => {
10764
- te.value = "text";
10910
+ ne.value = "text";
10765
10911
  }), v.on("selectionChange", (e) => {
10766
10912
  d.value = e, u("selectionChange", e);
10767
10913
  }), u("ready", v));
10768
10914
  });
10769
- function le(e) {
10770
- if (!v || !M.value) return;
10771
- let { rowKey: t, key: n } = M.value;
10915
+ function ce(e) {
10916
+ if (!v || !j.value) return;
10917
+ let { rowKey: t, key: n } = j.value;
10772
10918
  v?.setItemValueByEditor(t, n, e);
10773
10919
  }
10774
- let R = () => document.body;
10775
- return N(() => f.data, (e) => {
10920
+ let z = () => document.body;
10921
+ return M(() => f.data, (e) => {
10776
10922
  v?.loadData(e);
10777
10923
  }, { deep: !0 }), _a(() => f.columns, (e, t) => {
10778
- (0, Q.isEqual)(e, t) || v?.loadColumns(e.map((e) => ce(e)));
10779
- }, { deep: !0 }), N(() => g.value.config, (e) => {
10924
+ (0, Q.isEqual)(e, t) || v?.loadColumns(e.map((e) => R(e)));
10925
+ }, { deep: !0 }), M(() => g.value.config, (e) => {
10780
10926
  v?.loadConfig(e);
10781
- }, { deep: !0 }), N(() => f.footerData, (e) => {
10927
+ }, { deep: !0 }), M(() => f.footerData, (e) => {
10782
10928
  v?.loadFooterData(e || []);
10783
- }, { deep: !0 }), N(() => f.loading, (e, t) => {
10929
+ }, { deep: !0 }), M(() => f.loading, (e, t) => {
10784
10930
  e !== t && v?.setLoading(e);
10785
10931
  }, { immediate: !0 }), s({
10786
10932
  $table: v,
@@ -10791,46 +10937,46 @@ var Qa = { key: 0 }, $a = {
10791
10937
  }), (t, s) => {
10792
10938
  let l = T("a-empty"), u = T("a-spin");
10793
10939
  return b(), n(u, { spinning: o.loading }, {
10794
- default: P(() => [a("div", {
10940
+ default: N(() => [a("div", {
10795
10941
  ref_key: "eVirtTableRef",
10796
10942
  ref: D
10797
10943
  }, [
10798
10944
  a("div", {
10799
10945
  ref_key: "eVirtTableEditorRef",
10800
- ref: O
10801
- }, [te.value.startsWith("__slot:") ? (b(), n(E(I[te.value].slots.edit({
10802
- row: M.value.row,
10803
- column: I[te.value],
10804
- rowIndex: M.value.rowIndex
10946
+ ref: ee
10947
+ }, [ne.value.startsWith("__slot:") ? (b(), n(E(F[ne.value].slots.edit({
10948
+ row: j.value.row,
10949
+ column: F[ne.value],
10950
+ rowIndex: j.value.rowIndex
10805
10951
  })), {
10806
10952
  key: 0,
10807
10953
  bordered: !1,
10808
- style: _(L.value),
10954
+ style: _(I.value),
10809
10955
  class: "ev-editor-wrapper",
10810
- "get-popup-container": R,
10811
- value: M.value.value,
10812
- "onUpdate:value": s[0] ||= (e) => M.value.value = e,
10813
- cell: M.value,
10814
- onBlur: le
10956
+ "get-popup-container": z,
10957
+ value: j.value.value,
10958
+ "onUpdate:value": s[0] ||= (e) => j.value.value = e,
10959
+ cell: j.value,
10960
+ onBlur: ce
10815
10961
  }, null, 40, [
10816
10962
  "style",
10817
10963
  "value",
10818
10964
  "cell"
10819
- ])) : A(Pa).renders[te.value]?.renderEdit ? (b(), n(A(fo), {
10965
+ ])) : k(Pa).renders[ne.value]?.renderEdit ? (b(), n(k(fo), {
10820
10966
  key: 1,
10821
- "cell-render": ne[M.value.key],
10967
+ "cell-render": re[j.value.key],
10822
10968
  class: "ev-editor-wrapper",
10823
- style: _(L.value),
10969
+ style: _(I.value),
10824
10970
  "render-table-params": {
10825
10971
  data: f.data,
10826
- row: M.value?.row,
10827
- rowIndex: M.value?.rowIndex ?? -1,
10828
- field: M.value?.key ?? "",
10829
- title: M.value?.column?.title ?? ""
10972
+ row: j.value?.row,
10973
+ rowIndex: j.value?.rowIndex ?? -1,
10974
+ field: j.value?.key ?? "",
10975
+ title: j.value?.column?.title ?? ""
10830
10976
  },
10831
10977
  bordered: !1,
10832
- "get-popup-container": R,
10833
- onBlur: le
10978
+ "get-popup-container": z,
10979
+ onBlur: ce
10834
10980
  }, null, 8, [
10835
10981
  "cell-render",
10836
10982
  "style",
@@ -10838,12 +10984,12 @@ var Qa = { key: 0 }, $a = {
10838
10984
  ])) : r("", !0)], 512),
10839
10985
  a("div", {
10840
10986
  ref_key: "eVirtTableEmptyRef",
10841
- ref: k
10987
+ ref: O
10842
10988
  }, [w(t.$slots, "empty", {}, () => [c(l, { description: "空数据" })])], 512),
10843
10989
  a("div", {
10844
10990
  ref_key: "eVirtTableOverlayerRef",
10845
- ref: j
10846
- }, [(b(!0), i(e, null, C(F.value?.views || [], (a) => (b(), i("div", {
10991
+ ref: A
10992
+ }, [(b(!0), i(e, null, C(P.value?.views || [], (a) => (b(), i("div", {
10847
10993
  class: h(a.class),
10848
10994
  style: _(a.style),
10849
10995
  key: a.type
@@ -10901,70 +11047,70 @@ var Qa = { key: 0 }, $a = {
10901
11047
  "resetQuery"
10902
11048
  ],
10903
11049
  setup(l, { expose: d, emit: f }) {
10904
- let h = l, _ = ee(), k = f, { formConfig: j, pageConfig: M, columns: te, toolbarConfig: F, proxyConfig: ne, config: L, staticConfig: re } = O(h), ie = ca(), ae = t(() => h.autoBoxSizeOffset ?? sa().autoBoxSizeOffset), se = S(Ji()), ce = S({}), le = t(() => ({
11050
+ let h = l, _ = te(), O = f, { formConfig: A, pageConfig: j, columns: ne, toolbarConfig: P, proxyConfig: re, config: I, staticConfig: L } = ee(h), ie = ca(), ae = t(() => h.autoBoxSizeOffset ?? sa().autoBoxSizeOffset), se = S(Ji()), R = S({}), ce = t(() => ({
10905
11051
  ...h,
10906
11052
  config: {
10907
11053
  ...ie,
10908
11054
  ...h.config
10909
11055
  }
10910
- })), R = t(() => ne.value && ne.value.ajax ? M.value ? "pagination" : "list" : "bad");
10911
- t(() => R.value === "pagination" ? {
10912
- current: z.page,
11056
+ })), z = t(() => re.value && re.value.ajax ? j.value ? "pagination" : "list" : "bad");
11057
+ t(() => z.value === "pagination" ? {
11058
+ current: fe.page,
10913
11059
  total: me.value,
10914
- pageSize: z.size,
11060
+ pageSize: fe.size,
10915
11061
  responsive: !1,
10916
11062
  showSizeChanger: !0,
10917
11063
  showTotal: (e) => `共${e}条数据`
10918
11064
  } : !1);
10919
- let ue = t(() => (0, Q.omit)({
11065
+ let le = t(() => (0, Q.omit)({
10920
11066
  labelCol: fa,
10921
- ...j.value
10922
- }, ["items"])), de = x({
11067
+ ...A.value
11068
+ }, ["items"])), ue = x({
10923
11069
  toolbar: !1,
10924
11070
  form: !1,
10925
11071
  table: !1
10926
- }), z = x({
11072
+ }), fe = x({
10927
11073
  page: 1,
10928
- size: M.value?.pageSize ?? 10
10929
- }), pe = S(0), me = S(0), B = S([]), ge = S(), ve = S(), ye = S(), be = S(), xe = S(), V = S(), Se = S(), Ce = S(500), H = S({}), we = (e) => {
10930
- H.value[z.page] = e;
10931
- }, Te = x([...(h.toolbarConfig?.buttons?.map((e) => e.code) ?? []).filter((e) => e), ...(h.toolbarConfig?.tools?.map((e) => e.code) ?? []).filter((e) => e)].reduce((e, t) => (e[t] = !1, e), {})), Ee = (e, t) => {
10932
- Te[e] = t;
11074
+ size: j.value?.pageSize ?? 10
11075
+ }), pe = S(0), me = S(0), B = S([]), ge = S(), ve = S(), ye = S(), be = S(), xe = S(), V = S(), Se = S(), Ce = S(500), we = S({}), Te = (e) => {
11076
+ we.value[fe.page] = e;
11077
+ }, H = x([...(h.toolbarConfig?.buttons?.map((e) => e.code) ?? []).filter((e) => e), ...(h.toolbarConfig?.tools?.map((e) => e.code) ?? []).filter((e) => e)].reduce((e, t) => (e[t] = !1, e), {})), Ee = (e, t) => {
11078
+ H[e] = t;
10933
11079
  }, Oe = (e) => {
10934
- (0, Q.isObject)(e) ? (Object.prototype.hasOwnProperty.call(e, "toolbar") && (de.toolbar = e.toolbar), Object.prototype.hasOwnProperty.call(e, "form") && (de.form = e.form), Object.prototype.hasOwnProperty.call(e, "table") && (de.table = e.table)) : (0, Q.isBoolean)(e) && (de.form = e, de.toolbar = e, de.table = e);
10935
- }, ke = t(() => (0, Q.uniq)(Object.values(H.value).flat(), (e) => e[le.value.config?.ROW_KEY ?? "id"])), Ae = () => {
11080
+ (0, Q.isObject)(e) ? (Object.prototype.hasOwnProperty.call(e, "toolbar") && (ue.toolbar = e.toolbar), Object.prototype.hasOwnProperty.call(e, "form") && (ue.form = e.form), Object.prototype.hasOwnProperty.call(e, "table") && (ue.table = e.table)) : (0, Q.isBoolean)(e) && (ue.form = e, ue.toolbar = e, ue.table = e);
11081
+ }, ke = t(() => (0, Q.uniq)(Object.values(we.value).flat(), (e) => e[ce.value.config?.ROW_KEY ?? "id"])), Ae = () => {
10936
11082
  Le();
10937
- }, je = t(() => ke.value.map((e) => e[le.value.config?.ROW_KEY ?? "id"])), Me = (e, t) => t ? {
11083
+ }, je = t(() => ke.value.map((e) => e[ce.value.config?.ROW_KEY ?? "id"])), Me = (e, t) => t ? {
10938
11084
  list: (0, Q.isString)(t.list) ? (0, Q.get)(e, t.list) : (0, Q.isFunction)(t.list) ? t.list(e) : void 0,
10939
11085
  total: (0, Q.isString)(t.total) ? (0, Q.get)(e, t.total) : (0, Q.isFunction)(t.total) ? t.total(e) : void 0,
10940
11086
  result: (0, Q.isString)(t.result) ? (0, Q.get)(e, t.result) : (0, Q.isFunction)(t.result) ? t.result(e) : void 0,
10941
11087
  message: (0, Q.isString)(t.message) ? (0, Q.get)(e, t.message) : (0, Q.isFunction)(t.message) ? t.message(e) : void 0
10942
11088
  } : { list: e }, Ne = (0, Q.debounce)((e) => {
10943
- k("toolbarButtonClick", {
11089
+ O("toolbarButtonClick", {
10944
11090
  data: B.value,
10945
11091
  code: e,
10946
11092
  selectedKeys: je.value,
10947
11093
  records: ke.value
10948
- }), Ve(e);
11094
+ }), Be(e);
10949
11095
  }, 100), Pe = ({ key: e }) => Ne(e), Fe = (0, Q.debounce)((e) => {
10950
- k("toolbarToolClick", {
11096
+ O("toolbarToolClick", {
10951
11097
  data: B.value,
10952
11098
  code: e,
10953
11099
  selectedKeys: je.value,
10954
11100
  records: ke.value
10955
- }), Ve(e);
11101
+ }), Be(e);
10956
11102
  }, 100), U = () => new Promise((e) => {
10957
- if (R.value !== "bad") {
11103
+ if (z.value !== "bad") {
10958
11104
  Oe({
10959
11105
  table: !0,
10960
11106
  form: !0
10961
11107
  });
10962
- let { ajax: t } = ne.value;
11108
+ let { ajax: t } = re.value;
10963
11109
  t.query({
10964
- form: ce.value,
10965
- page: z
11110
+ form: R.value,
11111
+ page: fe
10966
11112
  }).then((t) => {
10967
- let { list: n, total: r, result: i, message: a } = Me(t, ne.value.response);
11113
+ let { list: n, total: r, result: i, message: a } = Me(t, re.value.response);
10968
11114
  n ? (B.value = n, pe.value++) : i ? (B.value = i, me.value = r ?? i.length, pe.value++) : (B.value = [], pe.value++, a && Ga(a)), e(B.value);
10969
11115
  }).catch((t) => {
10970
11116
  console.error("fetchData error", t), e([]);
@@ -10975,8 +11121,8 @@ var Qa = { key: 0 }, $a = {
10975
11121
  });
10976
11122
  });
10977
11123
  }
10978
- }), Ie = (e, t) => (z.page = e, z.size = t, U()), Le = () => (z.page = 1, H.value = {}, U()), Re = (0, Q.debounce)(U, 160), ze = (e, t) => (Object.assign(ce.value, e), z.page = 1, t ? Promise.resolve() : Re()), Be = (e, t) => (ce.value = e, z.page = 1, t ? Promise.resolve() : Re()), Ve = (e) => {
10979
- let { ajax: t } = ne.value;
11124
+ }), Ie = (e, t) => (fe.page = e, fe.size = t, U()), Le = () => (fe.page = 1, we.value = {}, U()), W = (0, Q.debounce)(U, 160), Re = (e, t) => (Object.assign(R.value, e), fe.page = 1, t ? Promise.resolve() : W()), ze = (e, t) => (R.value = e, fe.page = 1, t ? Promise.resolve() : W()), Be = (e) => {
11125
+ let { ajax: t } = re.value;
10980
11126
  switch (e) {
10981
11127
  case "multiDelete":
10982
11128
  t.multiDelete && (je.value.length > 0 ? Ha({
@@ -10994,22 +11140,22 @@ var Qa = { key: 0 }, $a = {
10994
11140
  Oe({
10995
11141
  table: !1,
10996
11142
  toolbar: !1
10997
- }), Te.multiDelete = !1;
11143
+ }), H.multiDelete = !1;
10998
11144
  });
10999
11145
  }) : Ga("请选择要删除的数据"));
11000
11146
  break;
11001
11147
  }
11002
- }, W = t(() => !re.value || !re.value.selectable && !re.value.tree ? te.value : [re.value.selectable && re.value.tree ? {
11148
+ }, G = t(() => !L.value || !L.value.selectable && !L.value.tree ? ne.value : [L.value.selectable && L.value.tree ? {
11003
11149
  type: "selection-tree",
11004
11150
  width: 40,
11005
11151
  widthFillDisable: !0,
11006
11152
  title: ""
11007
- } : re.value.selectable ? {
11153
+ } : L.value.selectable ? {
11008
11154
  type: "selection",
11009
11155
  width: 40,
11010
11156
  widthFillDisable: !0,
11011
11157
  title: ""
11012
- } : re.value.tree ? {
11158
+ } : L.value.tree ? {
11013
11159
  type: "tree",
11014
11160
  width: 40,
11015
11161
  widthFillDisable: !0,
@@ -11019,103 +11165,103 @@ var Qa = { key: 0 }, $a = {
11019
11165
  width: 40,
11020
11166
  widthFillDisable: !0,
11021
11167
  title: ""
11022
- }, ...te.value]), He = (e) => {
11023
- if (j.value && j.value.items.length > 0) {
11024
- if (j.value.customReset) j.value.customReset();
11168
+ }, ...ne.value]), Ve = (e) => {
11169
+ if (A.value && A.value.items.length > 0) {
11170
+ if (A.value.customReset) A.value.customReset();
11025
11171
  else {
11026
11172
  let e = {};
11027
- ea(j.value.items, (t) => {
11173
+ ea(A.value.items, (t) => {
11028
11174
  t.field && t.itemRender ? Zi(t.itemRender.defaultValue) ? e[t.field] = t.itemRender.defaultValue : e[t.field] = void 0 : t.field && t.slots && (Zi(t.slots.defaultValue) ? e[t.field] = t.slots.defaultValue : e[t.field] = void 0);
11029
- }), ce.value = e;
11175
+ }), R.value = e;
11030
11176
  }
11031
- k("resetQuery");
11177
+ O("resetQuery");
11032
11178
  }
11033
- z.page = 1, e || Re();
11034
- }, Ue = () => (H.value = {}, He()), G = (e) => (0, Q.isFunction)(e) ? e() : e, We = (e) => (0, Q.isString)(e), K = null, q = () => {
11035
- K?.destroy(), K = null;
11179
+ fe.page = 1, e || W();
11180
+ }, He = () => (we.value = {}, Ve()), K = (e) => (0, Q.isFunction)(e) ? e() : e, Ue = (e) => (0, Q.isString)(e), q = null, We = () => {
11181
+ q?.destroy(), q = null;
11036
11182
  }, J = () => {
11037
- q(), !(!h.autoBoxSize || !ye.value) && (K = Za(() => ye.value ?? void 0, () => qa(ae.value), { onLayout: () => {
11038
- m(() => Y());
11039
- } }), K.attach());
11183
+ We(), !(!h.autoBoxSize || !ye.value) && (q = Za(() => ye.value ?? void 0, () => qa(ae.value), { onLayout: () => {
11184
+ m(() => X());
11185
+ } }), q.attach());
11040
11186
  };
11041
- N(() => h.autoBoxSize, (e) => {
11042
- e ? m(() => J()) : q();
11043
- }), N(ae, () => {
11044
- h.autoBoxSize && K?.update();
11187
+ M(() => h.autoBoxSize, (e) => {
11188
+ e ? m(() => J()) : We();
11189
+ }), M(ae, () => {
11190
+ h.autoBoxSize && q?.update();
11045
11191
  }, { deep: !0 });
11046
- let Ge = null, Y = () => {
11047
- Ge && cancelAnimationFrame(Ge), Ge = requestAnimationFrame(() => {
11048
- if (Ge = null, !V.value) return;
11192
+ let Y = null, X = () => {
11193
+ Y && cancelAnimationFrame(Y), Y = requestAnimationFrame(() => {
11194
+ if (Y = null, !V.value) return;
11049
11195
  let e = V.value.clientHeight, t = h.fitHeight ?? 0;
11050
11196
  Ce.value = Math.max(e - t, 100);
11051
11197
  });
11052
- }, Ke = null;
11053
- N(be, (e) => {
11054
- Ke?.disconnect(), Ke = null, e && (Ke = new ResizeObserver(() => Y()), Ke.observe(e));
11055
- }, { immediate: !0 }), N(R, () => m(() => Y()));
11056
- let X, qe = null, Je = null;
11198
+ }, Ge = null;
11199
+ M(be, (e) => {
11200
+ Ge?.disconnect(), Ge = null, e && (Ge = new ResizeObserver(() => X()), Ge.observe(e));
11201
+ }, { immediate: !0 }), M(z, () => m(() => X()));
11202
+ let Z, Ke = null, qe = null;
11057
11203
  return y(() => {
11058
- if (Y(), window.addEventListener("resize", Y), X = new MutationObserver((e) => {
11204
+ if (X(), window.addEventListener("resize", X), Z = new MutationObserver((e) => {
11059
11205
  e.forEach((e) => {
11060
11206
  if (e.type === "attributes" && e.attributeName === "style") {
11061
11207
  let t = e.target;
11062
- window.getComputedStyle(t).display !== "none" && Y();
11208
+ window.getComputedStyle(t).display !== "none" && X();
11063
11209
  }
11064
11210
  });
11065
11211
  }), ye.value) {
11066
- X.observe(ye.value, {
11212
+ Z.observe(ye.value, {
11067
11213
  attributes: !0,
11068
11214
  attributeFilter: ["style"]
11069
- }), qe = new ResizeObserver(() => Y());
11215
+ }), Ke = new ResizeObserver(() => X());
11070
11216
  let e = ye.value.parentElement;
11071
- for (let t = 0; t < 5 && e && e !== document.body; t++) qe.observe(e), e = e.parentElement;
11217
+ for (let t = 0; t < 5 && e && e !== document.body; t++) Ke.observe(e), e = e.parentElement;
11072
11218
  }
11073
- Je = new ResizeObserver(() => Y()), V.value && Je.observe(V.value), He(h.manualFetch), m(() => {
11074
- h.autoBoxSize && J(), Y();
11219
+ qe = new ResizeObserver(() => X()), V.value && qe.observe(V.value), Ve(h.manualFetch), m(() => {
11220
+ h.autoBoxSize && J(), X();
11075
11221
  });
11076
11222
  }), v(() => {
11077
- Ge && cancelAnimationFrame(Ge), window.removeEventListener("resize", Y), X.disconnect(), Ke?.disconnect(), qe?.disconnect(), Je?.disconnect(), q();
11223
+ Y && cancelAnimationFrame(Y), window.removeEventListener("resize", X), Z.disconnect(), Ge?.disconnect(), Ke?.disconnect(), qe?.disconnect(), We();
11078
11224
  }), d({
11079
11225
  commitProxy: {
11080
- query: Re,
11081
- reload: Ue,
11226
+ query: W,
11227
+ reload: He,
11082
11228
  reloadPage: Le,
11083
- passQuery: ze,
11084
- forcePassQuery: Be
11229
+ passQuery: Re,
11230
+ forcePassQuery: ze
11085
11231
  },
11086
11232
  $canvasTable: t(() => ve.value),
11087
11233
  selectedRowKeys: je,
11088
11234
  setBtnLoading: Ee,
11089
11235
  selectedRecords: ke,
11090
11236
  $form: t(() => ge.value),
11091
- getFormData: () => ce.value,
11237
+ getFormData: () => R.value,
11092
11238
  setLoadings: Oe,
11093
- resizeTable: Y
11239
+ resizeTable: X
11094
11240
  }), (t, d) => {
11095
11241
  let f = T("a-menu-item"), m = T("a-menu"), v = T("a-dropdown");
11096
11242
  return b(), i("div", p({
11097
11243
  ref_key: "boxEl",
11098
11244
  ref: ye,
11099
11245
  class: ["p-wrapper flex flex-col gap-8px overflow-y-auto", l.autoBoxSize ? "min-h-0 min-w-0 flex-1 w-full" : "h-full"]
11100
- }, A(_)), [R.value === "bad" ? (b(), i("div", mo, "请检查配置")) : (b(), i(e, { key: 1 }, [
11101
- A(j)?.items?.some((e) => e.field && e.itemRender) ? (b(), i("div", {
11246
+ }, k(_)), [z.value === "bad" ? (b(), i("div", mo, "请检查配置")) : (b(), i(e, { key: 1 }, [
11247
+ k(A)?.items?.some((e) => e.field && e.itemRender) ? (b(), i("div", {
11102
11248
  key: 0,
11103
11249
  class: "p-pane p-form-wrapper",
11104
11250
  ref_key: "pFormWrapper",
11105
11251
  ref: be
11106
- }, [c(A(_e), { spinning: de.form }, {
11107
- default: P(() => [(b(), n(A(oe), p({
11252
+ }, [c(k(_e), { spinning: ue.form }, {
11253
+ default: N(() => [(b(), n(k(oe), p({
11108
11254
  key: se.value,
11109
11255
  ref_key: "formEl",
11110
11256
  ref: ge,
11111
- model: ce.value
11112
- }, ue.value, { onSubmit: Ae }), {
11113
- default: P(() => [c(A(he), { gutter: [6, 12] }, {
11114
- default: P(() => [(b(!0), i(e, null, C(A(j).items, (e, t) => (b(), n(Ra, {
11257
+ model: R.value
11258
+ }, le.value, { onSubmit: Ae }), {
11259
+ default: N(() => [c(k(he), { gutter: [6, 12] }, {
11260
+ default: N(() => [(b(!0), i(e, null, C(k(A).items, (e, t) => (b(), n(Ra, {
11115
11261
  key: `_col_${e.field || t}`,
11116
- "form-data": ce.value,
11262
+ "form-data": R.value,
11117
11263
  item: e,
11118
- onReset: d[0] ||= (e) => He(h.lazyReset)
11264
+ onReset: d[0] ||= (e) => Ve(h.lazyReset)
11119
11265
  }, null, 8, ["form-data", "item"]))), 128))]),
11120
11266
  _: 1
11121
11267
  })]),
@@ -11123,31 +11269,31 @@ var Qa = { key: 0 }, $a = {
11123
11269
  }, 16, ["model"]))]),
11124
11270
  _: 1
11125
11271
  }, 8, ["spinning"])], 512)) : r("", !0),
11126
- A(F) ? (b(), i("div", ho, [a("div", go, [A(F).buttons && A(F).buttons.length > 0 ? (b(!0), i(e, { key: 0 }, C(A(F).buttons, (t, o) => (b(), i(e, { key: o }, [t.dropdowns && t.dropdowns.length ? (b(), n(v, { key: 0 }, {
11127
- overlay: P(() => [c(m, { onClick: Pe }, {
11128
- default: P(() => [(b(!0), i(e, null, C(t.dropdowns, (e) => (b(), n(f, { key: e.code }, {
11129
- default: P(() => [s(D(e.content), 1)]),
11272
+ k(P) ? (b(), i("div", ho, [a("div", go, [k(P).buttons && k(P).buttons.length > 0 ? (b(!0), i(e, { key: 0 }, C(k(P).buttons, (t, o) => (b(), i(e, { key: o }, [t.dropdowns && t.dropdowns.length ? (b(), n(v, { key: 0 }, {
11273
+ overlay: N(() => [c(m, { onClick: Pe }, {
11274
+ default: N(() => [(b(!0), i(e, null, C(t.dropdowns, (e) => (b(), n(f, { key: e.code }, {
11275
+ default: N(() => [s(D(e.content), 1)]),
11130
11276
  _: 2
11131
11277
  }, 1024))), 128))]),
11132
11278
  _: 2
11133
11279
  }, 1024)]),
11134
- default: P(() => [c(A(I), {
11280
+ default: N(() => [c(k(F), {
11135
11281
  type: t.type,
11136
11282
  size: t.size ?? "middle",
11137
- disabled: A(F).disabled || t.disabled,
11138
- loading: de.toolbar || !!t.code && Te[t.code],
11283
+ disabled: k(P).disabled || t.disabled,
11284
+ loading: ue.toolbar || !!t.code && H[t.code],
11139
11285
  danger: t.danger,
11140
11286
  shape: t.shape,
11141
11287
  ghost: t.ghost,
11142
11288
  block: t.block
11143
11289
  }, {
11144
- default: P(() => [a("div", _o, [
11145
- t.icon ? (b(), n(A(Ea), {
11290
+ default: N(() => [a("div", _o, [
11291
+ t.icon ? (b(), n(k(Ea), {
11146
11292
  key: 0,
11147
11293
  icon: t.icon
11148
11294
  }, null, 8, ["icon"])) : r("", !0),
11149
- t.content && We(G(t.content)) ? (b(), i(e, { key: 1 }, [s(D(G(t.content)), 1)], 64)) : t.content ? (b(), n(E(G(t.content)), { key: 2 })) : r("", !0),
11150
- c(A(De))
11295
+ t.content && Ue(K(t.content)) ? (b(), i(e, { key: 1 }, [s(D(K(t.content)), 1)], 64)) : t.content ? (b(), n(E(K(t.content)), { key: 2 })) : r("", !0),
11296
+ c(k(De))
11151
11297
  ])]),
11152
11298
  _: 2
11153
11299
  }, 1032, [
@@ -11161,22 +11307,22 @@ var Qa = { key: 0 }, $a = {
11161
11307
  "block"
11162
11308
  ])]),
11163
11309
  _: 2
11164
- }, 1024)) : t.code ? (b(), n(A(I), {
11310
+ }, 1024)) : t.code ? (b(), n(k(F), {
11165
11311
  key: 1,
11166
11312
  type: t.type,
11167
11313
  size: t.size ?? "middle",
11168
- disabled: A(F).disabled || t.disabled,
11169
- loading: de.toolbar || !!t.code && Te[t.code],
11314
+ disabled: k(P).disabled || t.disabled,
11315
+ loading: ue.toolbar || !!t.code && H[t.code],
11170
11316
  danger: t.danger,
11171
11317
  shape: t.shape,
11172
11318
  ghost: t.ghost,
11173
11319
  block: t.block,
11174
- onClick: (e) => A(Ne)(t.code)
11320
+ onClick: (e) => k(Ne)(t.code)
11175
11321
  }, {
11176
- default: P(() => [a("div", vo, [t.icon ? (b(), n(A(Ea), {
11322
+ default: N(() => [a("div", vo, [t.icon ? (b(), n(k(Ea), {
11177
11323
  key: 0,
11178
11324
  icon: t.icon
11179
- }, null, 8, ["icon"])) : r("", !0), t.content && We(G(t.content)) ? (b(), i(e, { key: 1 }, [s(D(G(t.content)), 1)], 64)) : t.content ? (b(), n(E(G(t.content)), { key: 2 })) : r("", !0)])]),
11325
+ }, null, 8, ["icon"])) : r("", !0), t.content && Ue(K(t.content)) ? (b(), i(e, { key: 1 }, [s(D(K(t.content)), 1)], 64)) : t.content ? (b(), n(E(K(t.content)), { key: 2 })) : r("", !0)])]),
11180
11326
  _: 2
11181
11327
  }, 1032, [
11182
11328
  "type",
@@ -11188,22 +11334,22 @@ var Qa = { key: 0 }, $a = {
11188
11334
  "ghost",
11189
11335
  "block",
11190
11336
  "onClick"
11191
- ])) : (b(), i("div", yo))], 64))), 128)) : r("", !0)]), a("span", bo, [A(F).tools && A(F).tools.length > 0 ? (b(!0), i(e, { key: 0 }, C(A(F).tools, (t, o) => (b(), n(A(I), {
11337
+ ])) : (b(), i("div", yo))], 64))), 128)) : r("", !0)]), a("span", bo, [k(P).tools && k(P).tools.length > 0 ? (b(!0), i(e, { key: 0 }, C(k(P).tools, (t, o) => (b(), n(k(F), {
11192
11338
  key: o,
11193
11339
  type: t.type,
11194
11340
  size: t.size ?? "middle",
11195
- disabled: A(F).disabled || t.disabled,
11341
+ disabled: k(P).disabled || t.disabled,
11196
11342
  danger: t.danger,
11197
11343
  shape: t.shape,
11198
11344
  ghost: t.ghost,
11199
11345
  block: t.block,
11200
- onClick: (e) => A(Fe)(t.code),
11201
- loading: de.toolbar || !!t.code && Te[t.code]
11346
+ onClick: (e) => k(Fe)(t.code),
11347
+ loading: ue.toolbar || !!t.code && H[t.code]
11202
11348
  }, {
11203
- default: P(() => [a("div", xo, [t.icon ? (b(), n(A(Ea), {
11349
+ default: N(() => [a("div", xo, [t.icon ? (b(), n(k(Ea), {
11204
11350
  key: 0,
11205
11351
  icon: t.icon
11206
- }, null, 8, ["icon"])) : r("", !0), t.content && We(G(t.content)) ? (b(), i(e, { key: 1 }, [s(D(G(t.content)), 1)], 64)) : t.content ? (b(), n(E(G(t.content)), { key: 2 })) : r("", !0)])]),
11352
+ }, null, 8, ["icon"])) : r("", !0), t.content && Ue(K(t.content)) ? (b(), i(e, { key: 1 }, [s(D(K(t.content)), 1)], 64)) : t.content ? (b(), n(E(K(t.content)), { key: 2 })) : r("", !0)])]),
11207
11353
  _: 2
11208
11354
  }, 1032, [
11209
11355
  "type",
@@ -11219,7 +11365,7 @@ var Qa = { key: 0 }, $a = {
11219
11365
  a("div", {
11220
11366
  ref_key: "tableWrapperEl",
11221
11367
  ref: xe,
11222
- class: "p-pane flex-1 h-0 min-h-0 flex flex-col p-inner-scroll"
11368
+ class: "flex-1 h-0 min-h-0 flex flex-col p-inner-scroll"
11223
11369
  }, [a("div", {
11224
11370
  ref_key: "tableBodyEl",
11225
11371
  ref: V,
@@ -11227,17 +11373,17 @@ var Qa = { key: 0 }, $a = {
11227
11373
  }, [c(po, {
11228
11374
  ref_key: "canvasTableRef",
11229
11375
  ref: ve,
11230
- columns: W.value,
11376
+ columns: G.value,
11231
11377
  config: {
11232
- ...le.value.config,
11378
+ ...ce.value.config,
11233
11379
  HEIGHT: Ce.value
11234
11380
  },
11235
11381
  data: B.value,
11236
- loading: de.table,
11237
- onSelectionChange: we
11382
+ loading: ue.table,
11383
+ onSelectionChange: Te
11238
11384
  }, o({ _: 2 }, [C(t.$slots, (e, n) => ({
11239
11385
  name: n,
11240
- fn: P((e) => [w(t.$slots, n, g(u(e)))])
11386
+ fn: N((e) => [w(t.$slots, n, g(u(e)))])
11241
11387
  }))]), 1032, [
11242
11388
  "columns",
11243
11389
  "config",
@@ -11247,12 +11393,12 @@ var Qa = { key: 0 }, $a = {
11247
11393
  ref_key: "tableFooterEl",
11248
11394
  ref: Se,
11249
11395
  class: "flex-shrink-0"
11250
- }, [A(re)?.selectable && A(re).showCount ? (b(), i("div", So, " 已选:" + D(je.value.length), 1)) : r("", !0), R.value === "pagination" ? (b(), n(A(fe), {
11396
+ }, [k(L)?.selectable && k(L).showCount ? (b(), i("div", So, " 已选:" + D(je.value.length), 1)) : r("", !0), z.value === "pagination" ? (b(), n(k(de), {
11251
11397
  key: 1,
11252
11398
  class: "p-canvas-pagination",
11253
11399
  size: "small",
11254
- current: z.page,
11255
- "page-size": z.size,
11400
+ current: fe.page,
11401
+ "page-size": fe.size,
11256
11402
  total: me.value,
11257
11403
  onChange: Ie
11258
11404
  }, null, 8, [
@@ -11271,12 +11417,12 @@ var Qa = { key: 0 }, $a = {
11271
11417
  source: {}
11272
11418
  },
11273
11419
  setup(e, { expose: r }) {
11274
- let i = e, a = S(), { source: o } = O(i), s = t(() => a.value?.$form), c = t(() => i.getFormSetting(o.value));
11420
+ let i = e, a = S(), { source: o } = ee(i), s = t(() => a.value?.$form), c = t(() => i.getFormSetting(o.value));
11275
11421
  return r({ $form: s }), (t, r) => (b(), n(Ba, p({
11276
11422
  name: e.name,
11277
11423
  ref_key: "formEl",
11278
11424
  ref: a
11279
- }, c.value, { data: A(o) }), null, 16, ["name", "data"]));
11425
+ }, c.value, { data: k(o) }), null, 16, ["name", "data"]));
11280
11426
  }
11281
11427
  }), To = /* @__PURE__ */ l({
11282
11428
  __name: "CollapseCard",
@@ -11308,13 +11454,13 @@ var Qa = { key: 0 }, $a = {
11308
11454
  "onUpdate:activeKey": i[0] ||= (e) => r.value = e,
11309
11455
  class: "collapsible-card"
11310
11456
  }, {
11311
- default: P(() => [c(a, {
11457
+ default: N(() => [c(a, {
11312
11458
  key: "content",
11313
11459
  "force-render": "",
11314
11460
  header: e.title
11315
11461
  }, o({ _: 2 }, [C(t.$slots, (e, n) => ({
11316
11462
  name: n,
11317
- fn: P(() => [w(t.$slots, n)])
11463
+ fn: N(() => [w(t.$slots, n)])
11318
11464
  }))]), 1032, ["header"])]),
11319
11465
  _: 3
11320
11466
  }, 8, ["active-key"])) : (b(), n(l, {
@@ -11323,7 +11469,7 @@ var Qa = { key: 0 }, $a = {
11323
11469
  title: e.title
11324
11470
  }, o({ _: 2 }, [C(t.$slots, (e, n) => ({
11325
11471
  name: n,
11326
- fn: P(() => [w(t.$slots, n)])
11472
+ fn: N(() => [w(t.$slots, n)])
11327
11473
  }))]), 1032, ["title"]));
11328
11474
  };
11329
11475
  }
@@ -11356,30 +11502,30 @@ var Qa = { key: 0 }, $a = {
11356
11502
  }),
11357
11503
  emits: ["update:modelValue"],
11358
11504
  setup(l, { expose: u }) {
11359
- let d = oe.useForm, f = S(), p = l, h = S(), g = j(l, "modelValue"), _ = S(0), v = S([]), y = S([]), x = (e) => {
11505
+ let d = oe.useForm, f = S(), p = l, h = S(), g = A(l, "modelValue"), _ = S(0), v = S([]), y = S([]), x = (e) => {
11360
11506
  _.value = e;
11361
- }, E = t(() => p.max ?? Infinity), O = (e) => {
11507
+ }, E = t(() => p.max ?? Infinity), ee = (e) => {
11362
11508
  (p.createItem ?? (() => Promise.resolve({})))({ list: g.value }).then((t) => {
11363
11509
  g.value = [...g.value, {
11364
11510
  ...t,
11365
11511
  __index: ((0, Q.max)(g.value, (e) => e.__index ?? -1)?.__index ?? -1) + 1
11366
11512
  }], _.value = e;
11367
11513
  });
11368
- }, k = p.itemMenus ?? [{
11514
+ }, O = p.itemMenus ?? [{
11369
11515
  content: "复制",
11370
11516
  code: "copy"
11371
11517
  }, {
11372
11518
  content: "删除",
11373
11519
  code: "delete"
11374
- }], ee = (e) => e?.parentElement?.parentElement?.parentElement?.parentElement?.parentElement?.parentElement ?? h.value?.$el ?? document.body, F = t(() => p.forceRender || g.value.length <= 5), ne = (e) => {
11520
+ }], te = (e) => e?.parentElement?.parentElement?.parentElement?.parentElement?.parentElement?.parentElement ?? h.value?.$el ?? document.body, P = t(() => p.forceRender || g.value.length <= 5), re = (e) => {
11375
11521
  let t = g.value.find((t, n) => n === e)?.__index;
11376
11522
  $(t) && (v.value = v.value.filter((e) => e !== t));
11377
- }, L = () => {
11523
+ }, I = () => {
11378
11524
  m().then(() => {
11379
- ne(_.value), y.value[_.value]?.$form?.validate();
11525
+ re(_.value), y.value[_.value]?.$form?.validate();
11380
11526
  });
11381
- }, re = (e, t) => p.getTabLabel?.(e, t) ?? `${p.tabLabel} ${p.keepSerial ? t + 1 : (e.__index ?? 0) + 1}`;
11382
- N(() => g.value, () => {
11527
+ }, L = (e, t) => p.getTabLabel?.(e, t) ?? `${p.tabLabel} ${p.keepSerial ? t + 1 : (e.__index ?? 0) + 1}`;
11528
+ M(() => g.value, () => {
11383
11529
  if (!p.keepSerial) {
11384
11530
  let e = g.value.filter((e) => !$(e.__index));
11385
11531
  e.length > 0 && e.forEach((e) => {
@@ -11411,11 +11557,11 @@ var Qa = { key: 0 }, $a = {
11411
11557
  break;
11412
11558
  }
11413
11559
  }, 100);
11414
- te(() => {
11560
+ ne(() => {
11415
11561
  g.value.length === 0 ? _.value = 0 : _.value >= g.value.length && (_.value = g.value.length - 1);
11416
11562
  });
11417
- let se = (0, Q.debounce)(ne, 50);
11418
- te(() => {
11563
+ let se = (0, Q.debounce)(re, 50);
11564
+ ne(() => {
11419
11565
  let e = g.value.map((e, t) => v.value.includes(e.__index) ? t : void 0).filter($), t = f.value?.$el;
11420
11566
  t && t.querySelectorAll(":scope >.ant-tabs-nav>.ant-tabs-nav-wrap>.ant-tabs-nav-list>.ant-tabs-tab>.ant-tabs-tab-btn").forEach((t, n) => {
11421
11567
  e.includes(n) ? t.classList.add("p-error-group-tab") : t.classList.remove("p-error-group-tab");
@@ -11430,7 +11576,7 @@ var Qa = { key: 0 }, $a = {
11430
11576
  activeKey: t(() => _.value),
11431
11577
  setActiveKey: x,
11432
11578
  validateAll: () => {
11433
- let e = F.value ? y.value.map((e) => e.$form?.validate()) : g.value.map((e) => d(e, p.getFormSetting(e).rules)?.validate() ?? Promise.resolve());
11579
+ let e = P.value ? y.value.map((e) => e.$form?.validate()) : g.value.map((e) => d(e, p.getFormSetting(e).rules)?.validate() ?? Promise.resolve());
11434
11580
  return Promise.allSettled(e).then((e) => {
11435
11581
  if (v.value = e.map((e, t) => e.status === "rejected" && typeof g.value[t]?.__index == "number" ? g.value[t].__index : void 0).filter((e) => typeof e == "number"), !p.lazyErrorMark && v.value.length) {
11436
11582
  let e = v.value[0], t = g.value.findIndex((t) => t.__index === e);
@@ -11445,7 +11591,7 @@ var Qa = { key: 0 }, $a = {
11445
11591
  validate: async (e, t) => {
11446
11592
  let n = g.value.findIndex((t) => t.__index === e);
11447
11593
  try {
11448
- return await (F.value ? y.value[n]?.$form?.validate() ?? Promise.resolve() : d(g.value[n], p.getFormSetting(g.value[n]).rules)?.validate() ?? Promise.resolve()), v.value = v.value.filter((t) => t !== e), Promise.resolve();
11594
+ return await (P.value ? y.value[n]?.$form?.validate() ?? Promise.resolve() : d(g.value[n], p.getFormSetting(g.value[n]).rules)?.validate() ?? Promise.resolve()), v.value = v.value.filter((t) => t !== e), Promise.resolve();
11449
11595
  } catch (n) {
11450
11596
  return !v.value.includes(e) && !t && (v.value = [...v.value, e]), Promise.reject(n);
11451
11597
  }
@@ -11453,13 +11599,13 @@ var Qa = { key: 0 }, $a = {
11453
11599
  validateFields: async (e, t, n) => {
11454
11600
  let r = g.value.findIndex((t) => t.__index === e), i = p.getFormSetting(g.value[r]).rules, a = d(g.value[r], i);
11455
11601
  try {
11456
- return await (F.value ? y.value[r]?.$form?.validateFields(t) ?? Promise.resolve() : Promise.allSettled(t.map((e) => a.validateField(e, g.value[r][e], i[e] ?? [])))), Promise.resolve();
11602
+ return await (P.value ? y.value[r]?.$form?.validateFields(t) ?? Promise.resolve() : Promise.allSettled(t.map((e) => a.validateField(e, g.value[r][e], i[e] ?? [])))), Promise.resolve();
11457
11603
  } catch (t) {
11458
11604
  return !v.value.includes(e) && !n && (v.value = [...v.value, e]), Promise.reject(t);
11459
11605
  }
11460
11606
  }
11461
11607
  });
11462
- let ce = M(), le = t(() => Object.keys(ce).filter((e) => e.startsWith("group-")).map((e) => ({
11608
+ let R = j(), ce = t(() => Object.keys(R).filter((e) => e.startsWith("group-")).map((e) => ({
11463
11609
  original: e,
11464
11610
  target: e.replace("group-", "")
11465
11611
  })));
@@ -11473,10 +11619,10 @@ var Qa = { key: 0 }, $a = {
11473
11619
  collapsible: l.collapsible,
11474
11620
  "default-collapsed": l.defaultCollapsed
11475
11621
  }, o({
11476
- default: P(() => [l.loading ? (b(), n(d, {
11622
+ default: N(() => [l.loading ? (b(), n(d, {
11477
11623
  key: 0,
11478
11624
  class: "w-full"
11479
- })) : (b(), n(A(xe), {
11625
+ })) : (b(), n(k(xe), {
11480
11626
  key: 1,
11481
11627
  ref_key: "tabsRef",
11482
11628
  ref: f,
@@ -11484,39 +11630,39 @@ var Qa = { key: 0 }, $a = {
11484
11630
  activeKey: _.value,
11485
11631
  "onUpdate:activeKey": u[1] ||= (e) => _.value = e,
11486
11632
  "hide-add": "",
11487
- onChange: L
11633
+ onChange: I
11488
11634
  }, {
11489
- rightExtra: P(() => [w(t.$slots, "rightExtra", {}, () => [l.showAdd && g.value.length < E.value ? (b(), n(A(I), {
11635
+ rightExtra: N(() => [w(t.$slots, "rightExtra", {}, () => [l.showAdd && g.value.length < E.value ? (b(), n(k(F), {
11490
11636
  key: 0,
11491
11637
  type: "link",
11492
- onClick: u[0] ||= (e) => O(g.value.length)
11638
+ onClick: u[0] ||= (e) => ee(g.value.length)
11493
11639
  }, {
11494
- default: P(() => [...u[2] ||= [s(" + 新增 ", -1)]]),
11640
+ default: N(() => [...u[2] ||= [s(" + 新增 ", -1)]]),
11495
11641
  _: 1
11496
11642
  })) : r("", !0)])]),
11497
- default: P(() => [(b(!0), i(e, null, C(g.value, (t, o) => (b(), n(A(ye), {
11643
+ default: N(() => [(b(!0), i(e, null, C(g.value, (t, o) => (b(), n(k(ye), {
11498
11644
  key: o,
11499
- tab: re(t, o),
11500
- "force-render": F.value
11645
+ tab: L(t, o),
11646
+ "force-render": P.value
11501
11647
  }, {
11502
- closeIcon: P(() => [l.editAble && A(k)?.length ? (b(), n(A(ae), {
11648
+ closeIcon: N(() => [l.editAble && k(O)?.length ? (b(), n(k(ae), {
11503
11649
  key: 0,
11504
- "get-popup-container": ee
11650
+ "get-popup-container": te
11505
11651
  }, {
11506
- overlay: P(() => [c(A(R), { onClick: (e) => A(ie)(e, t, o) }, {
11507
- default: P(() => [(b(!0), i(e, null, C(A(k).filter((e) => e.visibleMethod?.({
11652
+ overlay: N(() => [c(k(z), { onClick: (e) => k(ie)(e, t, o) }, {
11653
+ default: N(() => [(b(!0), i(e, null, C(k(O).filter((e) => e.visibleMethod?.({
11508
11654
  data: t,
11509
11655
  index: o
11510
- }) ?? !0), (e) => (b(), n(A(ue), { key: e.code }, {
11511
- default: P(() => [a("div", null, D(e.content), 1)]),
11656
+ }) ?? !0), (e) => (b(), n(k(le), { key: e.code }, {
11657
+ default: N(() => [a("div", null, D(e.content), 1)]),
11512
11658
  _: 2
11513
11659
  }, 1024))), 128))]),
11514
11660
  _: 2
11515
11661
  }, 1032, ["onClick"])]),
11516
- default: P(() => [c(A(ke))]),
11662
+ default: N(() => [c(k(ke))]),
11517
11663
  _: 2
11518
11664
  }, 1024)) : r("", !0)]),
11519
- default: P(() => [(b(), n(wo, {
11665
+ default: N(() => [(b(), n(wo, {
11520
11666
  ref_for: !0,
11521
11667
  ref_key: "blockInstance",
11522
11668
  ref: y,
@@ -11524,8 +11670,8 @@ var Qa = { key: 0 }, $a = {
11524
11670
  source: t,
11525
11671
  name: l.name ? `${l.name}_${o}` : void 0,
11526
11672
  "get-form-setting": l.getFormSetting,
11527
- onFocusCapture: (e) => A(se)(o),
11528
- onClickCapture: (e) => A(se)(o)
11673
+ onFocusCapture: (e) => k(se)(o),
11674
+ onClickCapture: (e) => k(se)(o)
11529
11675
  }, null, 8, [
11530
11676
  "source",
11531
11677
  "name",
@@ -11538,9 +11684,9 @@ var Qa = { key: 0 }, $a = {
11538
11684
  _: 3
11539
11685
  }, 8, ["activeKey"]))]),
11540
11686
  _: 2
11541
- }, [C(le.value, (e) => ({
11687
+ }, [C(ce.value, (e) => ({
11542
11688
  name: e.target,
11543
- fn: P(() => [w(t.$slots, e.original)])
11689
+ fn: N(() => [w(t.$slots, e.original)])
11544
11690
  }))]), 1032, [
11545
11691
  "title",
11546
11692
  "collapsible",
@@ -11602,7 +11748,7 @@ var Qa = { key: 0 }, $a = {
11602
11748
  hide: () => {
11603
11749
  _.modal = !1;
11604
11750
  }
11605
- }), (t, r) => (b(), n(A(de), {
11751
+ }), (t, r) => (b(), n(k(ue), {
11606
11752
  open: _.modal,
11607
11753
  "onUpdate:open": r[0] ||= (e) => _.modal = e,
11608
11754
  "destroy-on-close": "",
@@ -11612,7 +11758,7 @@ var Qa = { key: 0 }, $a = {
11612
11758
  onCancel: v,
11613
11759
  "body-style": e.bodyStyle
11614
11760
  }, o({
11615
- default: P(() => [a("div", { style: f }, [c(lo, p(d.value, {
11761
+ default: N(() => [a("div", { style: f }, [c(lo, p(d.value, {
11616
11762
  ref_key: "gridEl",
11617
11763
  ref: i,
11618
11764
  onPick: C
@@ -11620,17 +11766,17 @@ var Qa = { key: 0 }, $a = {
11620
11766
  _: 2
11621
11767
  }, [u.value ? {
11622
11768
  name: "footer",
11623
- fn: P(() => [a("div", Do, [a("span", null, [c(A(I), {
11769
+ fn: N(() => [a("div", Do, [a("span", null, [c(k(F), {
11624
11770
  class: "mr-4",
11625
11771
  onClick: y
11626
11772
  }, {
11627
- default: P(() => [...r[1] ||= [s(" 取消 ", -1)]]),
11773
+ default: N(() => [...r[1] ||= [s(" 取消 ", -1)]]),
11628
11774
  _: 1
11629
- }), c(A(I), {
11775
+ }), c(k(F), {
11630
11776
  type: "primary",
11631
11777
  onClick: w
11632
11778
  }, {
11633
- default: P(() => [...r[2] ||= [s(" 确定 ", -1)]]),
11779
+ default: N(() => [...r[2] ||= [s(" 确定 ", -1)]]),
11634
11780
  _: 1
11635
11781
  })])])]),
11636
11782
  key: "0"
@@ -11703,14 +11849,14 @@ var Qa = { key: 0 }, $a = {
11703
11849
  return (t, a) => {
11704
11850
  let u = T("a-descriptions-item"), d = T("a-descriptions");
11705
11851
  return b(), n(d, p(l.value, { class: "p-description" }), o({
11706
- default: P(() => [(b(!0), i(e, null, C(r.items, (e, t) => (b(), n(u, {
11852
+ default: N(() => [(b(!0), i(e, null, C(r.items, (e, t) => (b(), n(u, {
11707
11853
  key: `_desc_${e.field ?? t}`,
11708
11854
  label: e.label,
11709
11855
  span: e.span,
11710
11856
  "label-style": e.labelStyle,
11711
11857
  "content-style": e.contentStyle
11712
11858
  }, o({
11713
- default: P(() => [c(A(ko), {
11859
+ default: N(() => [c(k(ko), {
11714
11860
  item: e,
11715
11861
  data: r.data,
11716
11862
  "empty-text": r.emptyText || "-"
@@ -11722,7 +11868,7 @@ var Qa = { key: 0 }, $a = {
11722
11868
  _: 2
11723
11869
  }, [e.slots?.label ? {
11724
11870
  name: "label",
11725
- fn: P(() => [(b(), n(E(e.slots.label)))]),
11871
+ fn: N(() => [(b(), n(E(e.slots.label)))]),
11726
11872
  key: "0"
11727
11873
  } : void 0]), 1032, [
11728
11874
  "label",
@@ -11733,11 +11879,11 @@ var Qa = { key: 0 }, $a = {
11733
11879
  _: 2
11734
11880
  }, [t.$slots.title || r.title ? {
11735
11881
  name: "title",
11736
- fn: P(() => [w(t.$slots, "title", {}, () => [s(D(r.title), 1)])]),
11882
+ fn: N(() => [w(t.$slots, "title", {}, () => [s(D(r.title), 1)])]),
11737
11883
  key: "0"
11738
11884
  } : void 0, t.$slots.extra || r.extra ? {
11739
11885
  name: "extra",
11740
- fn: P(() => [w(t.$slots, "extra", {}, () => [s(D(r.extra), 1)])]),
11886
+ fn: N(() => [w(t.$slots, "extra", {}, () => [s(D(r.extra), 1)])]),
11741
11887
  key: "1"
11742
11888
  } : void 0]), 1040);
11743
11889
  };