operp-print-designer 1.1.5 → 1.1.7

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.
@@ -1,15 +1,15 @@
1
- import Ne, { useRef as Cr, useCallback as Ie, useMemo as Ue, useState as mt, useContext as ho, useEffect as Xt } from "react";
2
- import { Typography as bt, App as mr, Space as Ve, Input as Ke, Button as Ae, Card as Mt, Select as Ye, InputNumber as qe, Radio as or, List as ar, Tag as yr, Dropdown as go, Popconfirm as An, message as gt, Modal as Pr, Divider as Xe, Collapse as mo, QRCode as yo, Empty as Yr, ColorPicker as ot, Table as vo, Form as st, Switch as ir, ConfigProvider as bo, Splitter as At } from "antd";
3
- import { PlusOutlined as Or, SaveOutlined as $n, DownloadOutlined as xo, UploadOutlined as So, SettingOutlined as wo, DeleteOutlined as Rr, PrinterOutlined as _r, EyeOutlined as jo, FontSizeOutlined as Co, PictureOutlined as Po, TableOutlined as Oo, BarcodeOutlined as Ro, QrcodeOutlined as _o, MinusOutlined as Eo, DatabaseOutlined as In, MoreOutlined as Do, EditOutlined as To, CaretRightOutlined as zo } from "@ant-design/icons";
4
- import { useTranslation as Ge, I18nContext as ko, getI18n as Mo, I18nextProvider as Lo } from "react-i18next";
5
- import { useReactToPrint as Fn } from "react-to-print";
6
- import { create as No } from "zustand";
7
- import Ao, { createInstance as $o } from "i18next";
8
- import vr from "react-dom";
9
- function Io(e) {
1
+ import Ne, { useRef as Pr, useCallback as Ie, useMemo as Ue, useState as at, useContext as mo, useEffect as At } from "react";
2
+ import { Typography as bt, App as yr, Space as Ve, Input as Ke, Button as Ae, Card as Mt, Select as Ye, InputNumber as qe, Radio as or, List as ar, Tag as vr, Dropdown as yo, Popconfirm as In, message as mt, Modal as Or, Divider as Xe, Collapse as vo, QRCode as bo, Empty as Vr, ColorPicker as ot, Table as xo, Form as lt, Switch as ir, ConfigProvider as So, theme as Ur, Splitter as $t } from "antd";
3
+ import { PlusOutlined as Rr, SaveOutlined as Fn, DownloadOutlined as wo, UploadOutlined as jo, SettingOutlined as Co, DeleteOutlined as _r, PrinterOutlined as Er, EyeOutlined as Po, FontSizeOutlined as Oo, PictureOutlined as Ro, TableOutlined as _o, BarcodeOutlined as Eo, QrcodeOutlined as Do, MinusOutlined as To, DatabaseOutlined as qn, MoreOutlined as zo, EditOutlined as ko, CaretRightOutlined as Mo } from "@ant-design/icons";
4
+ import { useTranslation as Ge, I18nContext as Lo, getI18n as No, I18nextProvider as Ao } from "react-i18next";
5
+ import { useReactToPrint as Hn } from "react-to-print";
6
+ import { create as $o } from "zustand";
7
+ import Io, { createInstance as Fo } from "i18next";
8
+ import br from "react-dom";
9
+ function qo(e) {
10
10
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
11
11
  }
12
- function Fo(e) {
12
+ function Ho(e) {
13
13
  if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
14
14
  var n = e.default;
15
15
  if (typeof n == "function") {
@@ -28,7 +28,7 @@ function Fo(e) {
28
28
  });
29
29
  }), r;
30
30
  }
31
- var $t = { exports: {} }, wt = {};
31
+ var It = { exports: {} }, wt = {};
32
32
  /**
33
33
  * @license React
34
34
  * react-jsx-runtime.production.min.js
@@ -38,24 +38,24 @@ var $t = { exports: {} }, wt = {};
38
38
  * This source code is licensed under the MIT license found in the
39
39
  * LICENSE file in the root directory of this source tree.
40
40
  */
41
- var Vr;
42
- function qo() {
43
- if (Vr) return wt;
44
- Vr = 1;
41
+ var Gr;
42
+ function Wo() {
43
+ if (Gr) return wt;
44
+ Gr = 1;
45
45
  var e = Ne, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, h = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
46
- function d(E, j, O) {
47
- var x, _ = {}, L = null, R = null;
48
- O !== void 0 && (L = "" + O), j.key !== void 0 && (L = "" + j.key), j.ref !== void 0 && (R = j.ref);
49
- for (x in j) a.call(j, x) && !c.hasOwnProperty(x) && (_[x] = j[x]);
50
- if (E && E.defaultProps) for (x in j = E.defaultProps, j) _[x] === void 0 && (_[x] = j[x]);
51
- return { $$typeof: n, type: E, key: L, ref: R, props: _, _owner: h.current };
46
+ function d(_, w, O) {
47
+ var x, E = {}, L = null, R = null;
48
+ O !== void 0 && (L = "" + O), w.key !== void 0 && (L = "" + w.key), w.ref !== void 0 && (R = w.ref);
49
+ for (x in w) a.call(w, x) && !c.hasOwnProperty(x) && (E[x] = w[x]);
50
+ if (_ && _.defaultProps) for (x in w = _.defaultProps, w) E[x] === void 0 && (E[x] = w[x]);
51
+ return { $$typeof: n, type: _, key: L, ref: R, props: E, _owner: h.current };
52
52
  }
53
53
  return wt.Fragment = r, wt.jsx = d, wt.jsxs = d, wt;
54
54
  }
55
- var jt = {}, Ur;
56
- function Ho() {
57
- if (Ur) return jt;
58
- Ur = 1;
55
+ var jt = {}, Jr;
56
+ function Bo() {
57
+ if (Jr) return jt;
58
+ Jr = 1;
59
59
  var e = {};
60
60
  /**
61
61
  * @license React
@@ -67,7 +67,7 @@ function Ho() {
67
67
  * LICENSE file in the root directory of this source tree.
68
68
  */
69
69
  return e.NODE_ENV !== "production" && (function() {
70
- var n = Ne, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), j = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), m = Symbol.iterator, u = "@@iterator";
70
+ var n = Ne, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), w = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), m = Symbol.iterator, u = "@@iterator";
71
71
  function p(g) {
72
72
  if (g === null || typeof g != "object")
73
73
  return null;
@@ -95,7 +95,7 @@ function Ho() {
95
95
  var s = !1, b = !1, P = !1, S = !1, D = !1, M;
96
96
  M = Symbol.for("react.module.reference");
97
97
  function H(g) {
98
- return !!(typeof g == "string" || typeof g == "function" || g === h || g === d || D || g === c || g === x || g === _ || S || g === T || s || b || P || typeof g == "object" && g !== null && (g.$$typeof === R || g.$$typeof === L || g.$$typeof === E || g.$$typeof === j || g.$$typeof === O || // This needs to include all possible module reference object
98
+ return !!(typeof g == "string" || typeof g == "function" || g === h || g === d || D || g === c || g === x || g === E || S || g === T || s || b || P || typeof g == "object" && g !== null && (g.$$typeof === R || g.$$typeof === L || g.$$typeof === _ || g.$$typeof === w || g.$$typeof === O || // This needs to include all possible module reference object
99
99
  // types supported by any Flight configuration anywhere since
100
100
  // we don't know which Flight build this will end up being used
101
101
  // with.
@@ -129,15 +129,15 @@ function Ho() {
129
129
  return "StrictMode";
130
130
  case x:
131
131
  return "Suspense";
132
- case _:
132
+ case E:
133
133
  return "SuspenseList";
134
134
  }
135
135
  if (typeof g == "object")
136
136
  switch (g.$$typeof) {
137
- case j:
137
+ case w:
138
138
  var F = g;
139
139
  return Y(F) + ".Consumer";
140
- case E:
140
+ case _:
141
141
  var Z = g;
142
142
  return Y(Z._context) + ".Provider";
143
143
  case O:
@@ -305,8 +305,8 @@ function Ho() {
305
305
  } finally {
306
306
  Q = !1, le.current = Ee, fe(), Error.prepareStackTrace = Ce;
307
307
  }
308
- var ht = g ? g.displayName || g.name : "", it = ht ? B(ht) : "";
309
- return typeof g == "function" && K.set(g, it), it;
308
+ var gt = g ? g.displayName || g.name : "", st = gt ? B(gt) : "";
309
+ return typeof g == "function" && K.set(g, st), st;
310
310
  }
311
311
  function he(g, F, Z) {
312
312
  return $(g, !1);
@@ -325,7 +325,7 @@ function Ho() {
325
325
  switch (g) {
326
326
  case x:
327
327
  return B("Suspense");
328
- case _:
328
+ case E:
329
329
  return B("SuspenseList");
330
330
  }
331
331
  if (typeof g == "object")
@@ -395,7 +395,7 @@ function Ho() {
395
395
  if (ge(g))
396
396
  return i("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ae(g)), Se(g);
397
397
  }
398
- var w = t.ReactCurrentOwner, z = {
398
+ var j = t.ReactCurrentOwner, z = {
399
399
  key: !0,
400
400
  ref: !0,
401
401
  __self: !0,
@@ -418,7 +418,7 @@ function Ho() {
418
418
  return g.key !== void 0;
419
419
  }
420
420
  function _e(g, F) {
421
- typeof g.ref == "string" && w.current;
421
+ typeof g.ref == "string" && j.current;
422
422
  }
423
423
  function Te(g, F) {
424
424
  {
@@ -486,10 +486,10 @@ function Ho() {
486
486
  var Me = typeof g == "function" ? g.displayName || g.name || "Unknown" : g;
487
487
  ye && Te(be, Me), $e && Qe(be, Me);
488
488
  }
489
- return nt(g, ye, $e, Ce, ue, w.current, be);
489
+ return nt(g, ye, $e, Ce, ue, j.current, be);
490
490
  }
491
491
  }
492
- var ut = t.ReactCurrentOwner, tr = t.ReactDebugCurrentFrame;
492
+ var dt = t.ReactCurrentOwner, tr = t.ReactDebugCurrentFrame;
493
493
  function Ze(g) {
494
494
  if (g) {
495
495
  var F = g._owner, Z = ve(g.type, g._source, F ? F.type : null);
@@ -497,15 +497,15 @@ function Ho() {
497
497
  } else
498
498
  tr.setExtraStackFrame(null);
499
499
  }
500
- var dt;
501
- dt = !1;
502
- function pt(g) {
500
+ var pt;
501
+ pt = !1;
502
+ function ft(g) {
503
503
  return typeof g == "object" && g !== null && g.$$typeof === r;
504
504
  }
505
- function ft() {
505
+ function ht() {
506
506
  {
507
- if (ut.current) {
508
- var g = J(ut.current.type);
507
+ if (dt.current) {
508
+ var g = J(dt.current.type);
509
509
  if (g)
510
510
  return `
511
511
 
@@ -517,10 +517,10 @@ Check the render method of \`` + g + "`.";
517
517
  function rr(g) {
518
518
  return "";
519
519
  }
520
- var Fr = {};
521
- function oo(g) {
520
+ var qr = {};
521
+ function io(g) {
522
522
  {
523
- var F = ft();
523
+ var F = ht();
524
524
  if (!F) {
525
525
  var Z = typeof g == "string" ? g : g.displayName || g.name;
526
526
  Z && (F = `
@@ -530,39 +530,39 @@ Check the top-level render call using <` + Z + ">.");
530
530
  return F;
531
531
  }
532
532
  }
533
- function qr(g, F) {
533
+ function Hr(g, F) {
534
534
  {
535
535
  if (!g._store || g._store.validated || g.key != null)
536
536
  return;
537
537
  g._store.validated = !0;
538
- var Z = oo(F);
539
- if (Fr[Z])
538
+ var Z = io(F);
539
+ if (qr[Z])
540
540
  return;
541
- Fr[Z] = !0;
541
+ qr[Z] = !0;
542
542
  var ue = "";
543
- g && g._owner && g._owner !== ut.current && (ue = " It was passed a child from " + J(g._owner.type) + "."), Ze(g), i('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Z, ue), Ze(null);
543
+ g && g._owner && g._owner !== dt.current && (ue = " It was passed a child from " + J(g._owner.type) + "."), Ze(g), i('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Z, ue), Ze(null);
544
544
  }
545
545
  }
546
- function Hr(g, F) {
546
+ function Wr(g, F) {
547
547
  {
548
548
  if (typeof g != "object")
549
549
  return;
550
550
  if (X(g))
551
551
  for (var Z = 0; Z < g.length; Z++) {
552
552
  var ue = g[Z];
553
- pt(ue) && qr(ue, F);
553
+ ft(ue) && Hr(ue, F);
554
554
  }
555
- else if (pt(g))
555
+ else if (ft(g))
556
556
  g._store && (g._store.validated = !0);
557
557
  else if (g) {
558
558
  var Ce = p(g);
559
559
  if (typeof Ce == "function" && Ce !== g.entries)
560
560
  for (var Ee = Ce.call(g), be; !(be = Ee.next()).done; )
561
- pt(be.value) && qr(be.value, F);
561
+ ft(be.value) && Hr(be.value, F);
562
562
  }
563
563
  }
564
564
  }
565
- function ao(g) {
565
+ function so(g) {
566
566
  {
567
567
  var F = g.type;
568
568
  if (F == null || typeof F == "string")
@@ -579,15 +579,15 @@ Check the top-level render call using <` + Z + ">.");
579
579
  if (Z) {
580
580
  var ue = J(F);
581
581
  I(Z, g.props, "prop", ue, g);
582
- } else if (F.PropTypes !== void 0 && !dt) {
583
- dt = !0;
582
+ } else if (F.PropTypes !== void 0 && !pt) {
583
+ pt = !0;
584
584
  var Ce = J(F);
585
585
  i("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Ce || "Unknown");
586
586
  }
587
587
  typeof F.getDefaultProps == "function" && !F.getDefaultProps.isReactClassApproved && i("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
588
588
  }
589
589
  }
590
- function io(g) {
590
+ function lo(g) {
591
591
  {
592
592
  for (var F = Object.keys(g.props), Z = 0; Z < F.length; Z++) {
593
593
  var ue = F[Z];
@@ -599,15 +599,15 @@ Check the top-level render call using <` + Z + ">.");
599
599
  g.ref !== null && (Ze(g), i("Invalid attribute `ref` supplied to `React.Fragment`."), Ze(null));
600
600
  }
601
601
  }
602
- var Wr = {};
603
- function Br(g, F, Z, ue, Ce, Ee) {
602
+ var Br = {};
603
+ function Yr(g, F, Z, ue, Ce, Ee) {
604
604
  {
605
605
  var be = H(g);
606
606
  if (!be) {
607
607
  var ye = "";
608
608
  (g === void 0 || typeof g == "object" && g !== null && Object.keys(g).length === 0) && (ye += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
609
609
  var $e = rr();
610
- $e ? ye += $e : ye += ft();
610
+ $e ? ye += $e : ye += ht();
611
611
  var ze;
612
612
  g === null ? ze = "null" : X(g) ? ze = "array" : g !== void 0 && g.$$typeof === r ? (ze = "<" + (J(g.type) || "Unknown") + " />", ye = " Did you accidentally export a JSX literal instead of a component?") : ze = typeof g, i("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ze, ye);
613
613
  }
@@ -619,50 +619,50 @@ Check the top-level render call using <` + Z + ">.");
619
619
  if (Je !== void 0)
620
620
  if (ue)
621
621
  if (X(Je)) {
622
- for (var ht = 0; ht < Je.length; ht++)
623
- Hr(Je[ht], g);
622
+ for (var gt = 0; gt < Je.length; gt++)
623
+ Wr(Je[gt], g);
624
624
  Object.freeze && Object.freeze(Je);
625
625
  } else
626
626
  i("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
627
627
  else
628
- Hr(Je, g);
628
+ Wr(Je, g);
629
629
  }
630
630
  if (ke.call(F, "key")) {
631
- var it = J(g), Fe = Object.keys(F).filter(function(fo) {
632
- return fo !== "key";
631
+ var st = J(g), Fe = Object.keys(F).filter(function(go) {
632
+ return go !== "key";
633
633
  }), nr = Fe.length > 0 ? "{key: someKey, " + Fe.join(": ..., ") + ": ...}" : "{key: someKey}";
634
- if (!Wr[it + nr]) {
635
- var po = Fe.length > 0 ? "{" + Fe.join(": ..., ") + ": ...}" : "{}";
634
+ if (!Br[st + nr]) {
635
+ var ho = Fe.length > 0 ? "{" + Fe.join(": ..., ") + ": ...}" : "{}";
636
636
  i(`A props object containing a "key" prop is being spread into JSX:
637
637
  let props = %s;
638
638
  <%s {...props} />
639
639
  React keys must be passed directly to JSX without using spread:
640
640
  let props = %s;
641
- <%s key={someKey} {...props} />`, nr, it, po, it), Wr[it + nr] = !0;
641
+ <%s key={someKey} {...props} />`, nr, st, ho, st), Br[st + nr] = !0;
642
642
  }
643
643
  }
644
- return g === h ? io(Me) : ao(Me), Me;
644
+ return g === h ? lo(Me) : so(Me), Me;
645
645
  }
646
646
  }
647
- function so(g, F, Z) {
648
- return Br(g, F, Z, !0);
647
+ function co(g, F, Z) {
648
+ return Yr(g, F, Z, !0);
649
649
  }
650
- function lo(g, F, Z) {
651
- return Br(g, F, Z, !1);
650
+ function uo(g, F, Z) {
651
+ return Yr(g, F, Z, !1);
652
652
  }
653
- var co = lo, uo = so;
654
- jt.Fragment = h, jt.jsx = co, jt.jsxs = uo;
653
+ var po = uo, fo = co;
654
+ jt.Fragment = h, jt.jsx = po, jt.jsxs = fo;
655
655
  })(), jt;
656
656
  }
657
- var Gr;
658
- function Wo() {
659
- if (Gr) return $t.exports;
660
- Gr = 1;
657
+ var Xr;
658
+ function Yo() {
659
+ if (Xr) return It.exports;
660
+ Xr = 1;
661
661
  var e = {};
662
- return e.NODE_ENV === "production" ? $t.exports = qo() : $t.exports = Ho(), $t.exports;
662
+ return e.NODE_ENV === "production" ? It.exports = Wo() : It.exports = Bo(), It.exports;
663
663
  }
664
- var o = Wo();
665
- const Bo = {
664
+ var o = Yo();
665
+ const Vo = {
666
666
  // ===== 通用 =====
667
667
  "common.confirm": "确定",
668
668
  "common.cancel": "取消",
@@ -838,7 +838,7 @@ const Bo = {
838
838
  "seed.pageNumberFormat": "第 {page} 页",
839
839
  "seed.templateName": "未命名模板",
840
840
  "seed.importedTemplateName": "导入的模板"
841
- }, Yo = {
841
+ }, Uo = {
842
842
  // ===== Common =====
843
843
  "common.confirm": "OK",
844
844
  "common.cancel": "Cancel",
@@ -1014,7 +1014,7 @@ const Bo = {
1014
1014
  "seed.pageNumberFormat": "Page {page}",
1015
1015
  "seed.templateName": "Untitled Template",
1016
1016
  "seed.importedTemplateName": "Imported Template"
1017
- }, Vo = {
1017
+ }, Go = {
1018
1018
  // ===== 共通 =====
1019
1019
  "common.confirm": "OK",
1020
1020
  "common.cancel": "キャンセル",
@@ -1190,51 +1190,51 @@ const Bo = {
1190
1190
  "seed.pageNumberFormat": "{page}ページ",
1191
1191
  "seed.templateName": "無題のテンプレート",
1192
1192
  "seed.importedTemplateName": "インポートしたテンプレート"
1193
- }, Lt = "zh-CN", Er = ["zh-CN", "en-US", "ja-JP"], ji = {
1193
+ }, Lt = "zh-CN", Dr = ["zh-CN", "en-US", "ja-JP"], Ri = {
1194
1194
  "zh-CN": "简体中文",
1195
1195
  "en-US": "English",
1196
1196
  "ja-JP": "日本語"
1197
1197
  };
1198
- function Vt(e) {
1198
+ function Ut(e) {
1199
1199
  if (!e) return null;
1200
1200
  const n = e.toLowerCase().replace(/_/g, "-"), r = n.split("-")[0];
1201
- return Er.find(
1201
+ return Dr.find(
1202
1202
  (a) => a.toLowerCase() === n || a.toLowerCase().split("-")[0] === r
1203
1203
  ) || null;
1204
1204
  }
1205
- function qn(e) {
1206
- return Vt(e) || Lt;
1205
+ function Wn(e) {
1206
+ return Ut(e) || Lt;
1207
1207
  }
1208
- function Jr() {
1208
+ function Kr() {
1209
1209
  var e;
1210
1210
  if (typeof document < "u") {
1211
- const n = Vt((e = document.documentElement) == null ? void 0 : e.lang);
1211
+ const n = Ut((e = document.documentElement) == null ? void 0 : e.lang);
1212
1212
  if (n) return n;
1213
1213
  }
1214
1214
  if (typeof navigator < "u") {
1215
1215
  const n = [navigator.language, ...navigator.languages || []];
1216
1216
  for (const r of n) {
1217
- const a = Vt(r);
1217
+ const a = Ut(r);
1218
1218
  if (a) return a;
1219
1219
  }
1220
1220
  }
1221
1221
  return null;
1222
1222
  }
1223
- const Uo = {
1224
- "zh-CN": { translation: Bo },
1225
- "en-US": { translation: Yo },
1226
- "ja-JP": { translation: Vo }
1227
- }, Go = {
1223
+ const Jo = {
1224
+ "zh-CN": { translation: Vo },
1225
+ "en-US": { translation: Uo },
1226
+ "ja-JP": { translation: Go }
1227
+ }, Xo = {
1228
1228
  initAsync: !1,
1229
1229
  initImmediate: !1
1230
- }, ct = $o();
1231
- ct.init({
1230
+ }, ut = Fo();
1231
+ ut.init({
1232
1232
  // 内联资源同步初始化,确保首帧渲染即可拿到文案
1233
- ...Go,
1234
- resources: Uo,
1233
+ ...Xo,
1234
+ resources: Jo,
1235
1235
  lng: Lt,
1236
1236
  fallbackLng: Lt,
1237
- supportedLngs: Er,
1237
+ supportedLngs: Dr,
1238
1238
  // 语言包使用平铺键值对(如 'toolbar.new'),因此关闭层级分隔符
1239
1239
  keySeparator: !1,
1240
1240
  nsSeparator: !1,
@@ -1247,14 +1247,14 @@ ct.init({
1247
1247
  useSuspense: !1
1248
1248
  }
1249
1249
  });
1250
- const Le = ct.t.bind(ct), Kt = {
1250
+ const Le = ut.t.bind(ut), Kt = {
1251
1251
  A4: { width: 210, height: 297 },
1252
1252
  A3: { width: 297, height: 420 },
1253
1253
  A5: { width: 148, height: 210 },
1254
1254
  Letter: { width: 215.9, height: 279.4 },
1255
1255
  Legal: { width: 215.9, height: 355.6 }
1256
1256
  };
1257
- function Xr() {
1257
+ function Qr() {
1258
1258
  return {
1259
1259
  paperSize: "A4",
1260
1260
  customWidth: 210,
@@ -1272,15 +1272,15 @@ function Xr() {
1272
1272
  pageNumberFormat: Le("seed.pageNumberFormat")
1273
1273
  };
1274
1274
  }
1275
- const Re = 3, Ut = {
1275
+ const Re = 3, Gt = {
1276
1276
  cellSize: 1,
1277
1277
  cols: 100
1278
1278
  };
1279
- function Jo(e) {
1279
+ function Ko(e) {
1280
1280
  const n = `component.${e}`, r = Le(n);
1281
1281
  return r === n ? e : r;
1282
1282
  }
1283
- function Xo(e) {
1283
+ function Qo(e) {
1284
1284
  return { ...{
1285
1285
  text: {
1286
1286
  content: Le("component.defaultText"),
@@ -1327,32 +1327,32 @@ function Xo(e) {
1327
1327
  }
1328
1328
  }[e] };
1329
1329
  }
1330
- let br = 0, xr = 0;
1331
- function Kr() {
1332
- return `comp_${++br}`;
1330
+ let xr = 0, Sr = 0;
1331
+ function Zr() {
1332
+ return `comp_${++xr}`;
1333
1333
  }
1334
- function Qr() {
1335
- return `ds_${++xr}`;
1334
+ function en() {
1335
+ return `ds_${++Sr}`;
1336
1336
  }
1337
- function It(e, n) {
1338
- return e ? Er.some((r) => {
1339
- const a = ct.getResourceBundle(r, "translation");
1337
+ function Ft(e, n) {
1338
+ return e ? Dr.some((r) => {
1339
+ const a = ut.getResourceBundle(r, "translation");
1340
1340
  return (a == null ? void 0 : a[n]) === e;
1341
1341
  }) : !0;
1342
1342
  }
1343
- const pe = No((e, n) => ({
1343
+ const pe = $o((e, n) => ({
1344
1344
  components: [],
1345
1345
  selectedId: null,
1346
- pageSettings: Xr(),
1347
- gridSettings: { ...Ut },
1346
+ pageSettings: Qr(),
1347
+ gridSettings: { ...Gt },
1348
1348
  previewVisible: !1,
1349
1349
  templateName: Le("seed.templateName"),
1350
1350
  headerFooterVisible: !1,
1351
1351
  dataSources: [],
1352
1352
  activeDataSourceId: null,
1353
1353
  addComponent: (r, a, h, c) => {
1354
- const d = Kr(), E = c ?? Jo(r), j = Xo(r);
1355
- r === "text" && (j.content = E);
1354
+ const d = Zr(), _ = c ?? Ko(r), w = Qo(r);
1355
+ r === "text" && (w.content = _);
1356
1356
  const O = {
1357
1357
  id: d,
1358
1358
  type: r,
@@ -1360,7 +1360,7 @@ const pe = No((e, n) => ({
1360
1360
  y: h ?? 0,
1361
1361
  w: r === "line" ? 20 : r === "qrcode" ? 12 : 15,
1362
1362
  h: r === "line" ? 1 : r === "qrcode" ? 12 : 8,
1363
- props: j,
1363
+ props: w,
1364
1364
  ...r === "table" ? {
1365
1365
  tableColumns: [
1366
1366
  { title: Le("property.columnDefault", { index: 1 }) },
@@ -1410,14 +1410,14 @@ const pe = No((e, n) => ({
1410
1410
  // ========== 数据源管理 ==========
1411
1411
  addDataSource: (r, a, h) => {
1412
1412
  const d = {
1413
- id: Qr(),
1413
+ id: en(),
1414
1414
  name: r,
1415
1415
  type: a,
1416
1416
  data: h,
1417
1417
  createdAt: Date.now()
1418
1418
  };
1419
- e((E) => ({
1420
- dataSources: [...E.dataSources, d]
1419
+ e((_) => ({
1420
+ dataSources: [..._.dataSources, d]
1421
1421
  }));
1422
1422
  },
1423
1423
  updateDataSource: (r, a) => {
@@ -1459,13 +1459,13 @@ const pe = No((e, n) => ({
1459
1459
  const a = JSON.parse(r);
1460
1460
  if (!a.version || !a.pageSettings || !Array.isArray(a.components))
1461
1461
  return "error.invalidTemplate";
1462
- br = 0, xr = 0;
1462
+ xr = 0, Sr = 0;
1463
1463
  const h = a.components.map((d) => ({
1464
1464
  ...d,
1465
- id: Kr()
1465
+ id: Zr()
1466
1466
  })), c = (a.dataSources || []).map((d) => ({
1467
1467
  ...d,
1468
- id: Qr()
1468
+ id: en()
1469
1469
  }));
1470
1470
  return e({
1471
1471
  components: h,
@@ -1480,11 +1480,11 @@ const pe = No((e, n) => ({
1480
1480
  }
1481
1481
  },
1482
1482
  reset: () => {
1483
- br = 0, xr = 0, e({
1483
+ xr = 0, Sr = 0, e({
1484
1484
  components: [],
1485
1485
  selectedId: null,
1486
- pageSettings: Xr(),
1487
- gridSettings: { ...Ut },
1486
+ pageSettings: Qr(),
1487
+ gridSettings: { ...Gt },
1488
1488
  templateName: Le("seed.templateName"),
1489
1489
  headerFooterVisible: !1,
1490
1490
  previewVisible: !1,
@@ -1494,19 +1494,19 @@ const pe = No((e, n) => ({
1494
1494
  },
1495
1495
  reseedLocalizedDefaults: () => {
1496
1496
  const r = n(), a = {};
1497
- It(r.templateName, "seed.templateName") && (a.templateName = Le("seed.templateName"));
1497
+ Ft(r.templateName, "seed.templateName") && (a.templateName = Le("seed.templateName"));
1498
1498
  const h = {};
1499
- It(r.pageSettings.headerContent, "seed.headerContent") && (h.headerContent = Le("seed.headerContent")), It(r.pageSettings.footerContent, "seed.footerContent") && (h.footerContent = Le("seed.footerContent")), It(r.pageSettings.pageNumberFormat, "seed.pageNumberFormat") && (h.pageNumberFormat = Le("seed.pageNumberFormat")), Object.keys(h).length > 0 && (a.pageSettings = { ...r.pageSettings, ...h }), Object.keys(a).length > 0 && e(a);
1499
+ Ft(r.pageSettings.headerContent, "seed.headerContent") && (h.headerContent = Le("seed.headerContent")), Ft(r.pageSettings.footerContent, "seed.footerContent") && (h.footerContent = Le("seed.footerContent")), Ft(r.pageSettings.pageNumberFormat, "seed.pageNumberFormat") && (h.pageNumberFormat = Le("seed.pageNumberFormat")), Object.keys(h).length > 0 && (a.pageSettings = { ...r.pageSettings, ...h }), Object.keys(a).length > 0 && e(a);
1500
1500
  }
1501
- })), { Text: Ci } = bt, Ko = ({ onCustomSave: e, onCustomPrint: n }) => {
1502
- const r = pe((i) => i.templateName), a = pe((i) => i.setTemplateName), h = pe((i) => i.setPreviewVisible), c = pe((i) => i.setHeaderFooterVisible), d = pe((i) => i.selectedId), E = pe((i) => i.removeComponent), j = pe((i) => i.exportJSON), O = pe((i) => i.importJSON), x = pe((i) => i.reset), _ = Cr(null), { message: L } = mr.useApp(), { t: R } = Ge(), T = Ie(() => {
1503
- d && E(d);
1504
- }, [d, E]), m = Ie(() => {
1505
- const i = j(), l = new Blob([i], { type: "application/json" }), s = URL.createObjectURL(l), b = document.createElement("a");
1501
+ })), { Text: _i } = bt, Zo = ({ onCustomSave: e, onCustomPrint: n }) => {
1502
+ const r = pe((i) => i.templateName), a = pe((i) => i.setTemplateName), h = pe((i) => i.setPreviewVisible), c = pe((i) => i.setHeaderFooterVisible), d = pe((i) => i.selectedId), _ = pe((i) => i.removeComponent), w = pe((i) => i.exportJSON), O = pe((i) => i.importJSON), x = pe((i) => i.reset), E = Pr(null), { message: L } = yr.useApp(), { t: R } = Ge(), T = Ie(() => {
1503
+ d && _(d);
1504
+ }, [d, _]), m = Ie(() => {
1505
+ const i = w(), l = new Blob([i], { type: "application/json" }), s = URL.createObjectURL(l), b = document.createElement("a");
1506
1506
  b.href = s, b.download = `${r || R("toolbar.untitled")}.json`, b.click(), URL.revokeObjectURL(s), L.success(R("toolbar.exported"));
1507
- }, [j, r, L, R]), u = Ie(() => {
1507
+ }, [w, r, L, R]), u = Ie(() => {
1508
1508
  var i;
1509
- (i = _.current) == null || i.click();
1509
+ (i = E.current) == null || i.click();
1510
1510
  }, []), p = Ie(
1511
1511
  (i) => {
1512
1512
  var b;
@@ -1531,8 +1531,8 @@ const pe = No((e, n) => ({
1531
1531
  alignItems: "center",
1532
1532
  justifyContent: "space-between",
1533
1533
  padding: "0 16px",
1534
- borderBottom: "1px solid #e8e8e8",
1535
- background: "#fff"
1534
+ borderBottom: "1px solid var(--pd-chrome-border, #e8e8e8)",
1535
+ background: "var(--pd-chrome-bg, #fff)"
1536
1536
  },
1537
1537
  children: [
1538
1538
  /* @__PURE__ */ o.jsx(Ve, { children: /* @__PURE__ */ o.jsx(
@@ -1546,23 +1546,23 @@ const pe = No((e, n) => ({
1546
1546
  }
1547
1547
  ) }),
1548
1548
  /* @__PURE__ */ o.jsxs(Ve, { children: [
1549
- /* @__PURE__ */ o.jsx(Ae, { icon: /* @__PURE__ */ o.jsx(Or, {}), onClick: t, children: R("toolbar.new") }),
1549
+ /* @__PURE__ */ o.jsx(Ae, { icon: /* @__PURE__ */ o.jsx(Rr, {}), onClick: t, children: R("toolbar.new") }),
1550
1550
  /* @__PURE__ */ o.jsx(
1551
1551
  "input",
1552
1552
  {
1553
- ref: _,
1553
+ ref: E,
1554
1554
  type: "file",
1555
1555
  accept: ".json",
1556
1556
  style: { display: "none" },
1557
1557
  onChange: p
1558
1558
  }
1559
1559
  ),
1560
- e ? /* @__PURE__ */ o.jsx(Ae, { icon: /* @__PURE__ */ o.jsx($n, {}), onClick: e, type: "primary", children: R("toolbar.save") }) : /* @__PURE__ */ o.jsx(Ae, { icon: /* @__PURE__ */ o.jsx(xo, {}), onClick: m, children: R("toolbar.export") }),
1561
- /* @__PURE__ */ o.jsx(Ae, { icon: /* @__PURE__ */ o.jsx(So, {}), onClick: u, children: R("toolbar.import") }),
1560
+ e ? /* @__PURE__ */ o.jsx(Ae, { icon: /* @__PURE__ */ o.jsx(Fn, {}), onClick: e, type: "primary", children: R("toolbar.save") }) : /* @__PURE__ */ o.jsx(Ae, { icon: /* @__PURE__ */ o.jsx(wo, {}), onClick: m, children: R("toolbar.export") }),
1561
+ /* @__PURE__ */ o.jsx(Ae, { icon: /* @__PURE__ */ o.jsx(jo, {}), onClick: u, children: R("toolbar.import") }),
1562
1562
  /* @__PURE__ */ o.jsx(
1563
1563
  Ae,
1564
1564
  {
1565
- icon: /* @__PURE__ */ o.jsx(wo, {}),
1565
+ icon: /* @__PURE__ */ o.jsx(Co, {}),
1566
1566
  onClick: () => c(!0),
1567
1567
  children: R("toolbar.headerFooter")
1568
1568
  }
@@ -1571,7 +1571,7 @@ const pe = No((e, n) => ({
1571
1571
  Ae,
1572
1572
  {
1573
1573
  danger: !0,
1574
- icon: /* @__PURE__ */ o.jsx(Rr, {}),
1574
+ icon: /* @__PURE__ */ o.jsx(_r, {}),
1575
1575
  disabled: !d,
1576
1576
  onClick: T,
1577
1577
  children: R("common.delete")
@@ -1581,7 +1581,7 @@ const pe = No((e, n) => ({
1581
1581
  Ae,
1582
1582
  {
1583
1583
  type: "primary",
1584
- icon: /* @__PURE__ */ o.jsx(_r, {}),
1584
+ icon: /* @__PURE__ */ o.jsx(Er, {}),
1585
1585
  onClick: n,
1586
1586
  children: R("toolbar.print")
1587
1587
  }
@@ -1589,7 +1589,7 @@ const pe = No((e, n) => ({
1589
1589
  Ae,
1590
1590
  {
1591
1591
  type: "primary",
1592
- icon: /* @__PURE__ */ o.jsx(jo, {}),
1592
+ icon: /* @__PURE__ */ o.jsx(Po, {}),
1593
1593
  onClick: () => h(!0),
1594
1594
  children: R("toolbar.preview")
1595
1595
  }
@@ -1598,7 +1598,7 @@ const pe = No((e, n) => ({
1598
1598
  ]
1599
1599
  }
1600
1600
  );
1601
- }, { Text: et } = bt, Qo = () => {
1601
+ }, { Text: et } = bt, ea = () => {
1602
1602
  const { t: e } = Ge(), n = pe((d) => d.pageSettings), r = pe((d) => d.setPageSettings), a = n.paperSize === "custom", h = Ie(
1603
1603
  (d) => {
1604
1604
  r({ paperSize: d });
@@ -1742,15 +1742,15 @@ const pe = No((e, n) => ({
1742
1742
  ] })
1743
1743
  }
1744
1744
  );
1745
- }, { Text: Zo } = bt, ea = () => {
1745
+ }, { Text: ta } = bt, ra = () => {
1746
1746
  const { t: e } = Ge(), n = pe((c) => c.addComponent), r = Ue(
1747
1747
  () => [
1748
- { type: "text", icon: /* @__PURE__ */ o.jsx(Co, {}), label: e("component.text") },
1749
- { type: "image", icon: /* @__PURE__ */ o.jsx(Po, {}), label: e("component.image") },
1750
- { type: "table", icon: /* @__PURE__ */ o.jsx(Oo, {}), label: e("component.table") },
1751
- { type: "barcode", icon: /* @__PURE__ */ o.jsx(Ro, {}), label: e("component.barcode") },
1752
- { type: "qrcode", icon: /* @__PURE__ */ o.jsx(_o, {}), label: e("component.qrcode") },
1753
- { type: "line", icon: /* @__PURE__ */ o.jsx(Eo, {}), label: e("component.line") }
1748
+ { type: "text", icon: /* @__PURE__ */ o.jsx(Oo, {}), label: e("component.text") },
1749
+ { type: "image", icon: /* @__PURE__ */ o.jsx(Ro, {}), label: e("component.image") },
1750
+ { type: "table", icon: /* @__PURE__ */ o.jsx(_o, {}), label: e("component.table") },
1751
+ { type: "barcode", icon: /* @__PURE__ */ o.jsx(Eo, {}), label: e("component.barcode") },
1752
+ { type: "qrcode", icon: /* @__PURE__ */ o.jsx(Do, {}), label: e("component.qrcode") },
1753
+ { type: "line", icon: /* @__PURE__ */ o.jsx(To, {}), label: e("component.line") }
1754
1754
  ],
1755
1755
  [e]
1756
1756
  ), a = Ie(
@@ -1778,24 +1778,24 @@ const pe = No((e, n) => ({
1778
1778
  style: {
1779
1779
  cursor: "grab",
1780
1780
  padding: "8px 12px",
1781
- border: "1px solid #d9d9d9",
1781
+ border: "1px solid var(--pd-item-border, #d9d9d9)",
1782
1782
  borderRadius: 6,
1783
1783
  display: "flex",
1784
1784
  alignItems: "center",
1785
1785
  gap: 8,
1786
- background: "#fafafa",
1786
+ background: "var(--pd-item-bg, #fafafa)",
1787
1787
  userSelect: "none",
1788
1788
  transition: "all 0.2s"
1789
1789
  },
1790
1790
  onMouseEnter: (d) => {
1791
- d.currentTarget.style.background = "#e6f4ff", d.currentTarget.style.borderColor = "#1677ff";
1791
+ d.currentTarget.style.background = "var(--pd-item-hover-bg, #e6f4ff)", d.currentTarget.style.borderColor = "var(--pd-item-hover-border, #1677ff)";
1792
1792
  },
1793
1793
  onMouseLeave: (d) => {
1794
- d.currentTarget.style.background = "#fafafa", d.currentTarget.style.borderColor = "#d9d9d9";
1794
+ d.currentTarget.style.background = "var(--pd-item-bg, #fafafa)", d.currentTarget.style.borderColor = "var(--pd-item-border, #d9d9d9)";
1795
1795
  },
1796
1796
  children: [
1797
1797
  c.icon,
1798
- /* @__PURE__ */ o.jsx(Zo, { children: c.label })
1798
+ /* @__PURE__ */ o.jsx(ta, { children: c.label })
1799
1799
  ]
1800
1800
  },
1801
1801
  c.type
@@ -1813,21 +1813,21 @@ function Qt(e) {
1813
1813
  function zt(e, n, r) {
1814
1814
  const a = `${n}Binding`, h = e.props[a];
1815
1815
  if (h && h.dataSourceId && h.fieldPath) {
1816
- const d = r.find((E) => E.id === h.dataSourceId);
1816
+ const d = r.find((_) => _.id === h.dataSourceId);
1817
1817
  if (d) {
1818
- const E = Tr(d);
1819
- if (E) {
1820
- const j = Sr(E, h.fieldPath);
1821
- if (j)
1822
- return j;
1818
+ const _ = zr(d);
1819
+ if (_) {
1820
+ const w = wr(_, h.fieldPath);
1821
+ if (w)
1822
+ return w;
1823
1823
  }
1824
1824
  }
1825
1825
  }
1826
1826
  return e.props[n] || (h == null ? void 0 : h.staticValue) || "";
1827
1827
  }
1828
- function Dr(e, n) {
1828
+ function Tr(e, n) {
1829
1829
  if (!n || !e) return e;
1830
- const r = ta(e);
1830
+ const r = na(e);
1831
1831
  if (!r) return e;
1832
1832
  const a = (c, d = 2) => String(c).padStart(d, "0"), h = {
1833
1833
  yyyy: String(r.getFullYear()),
@@ -1845,21 +1845,21 @@ function Dr(e, n) {
1845
1845
  };
1846
1846
  return n.replace(/yyyy|yy|MM|M|dd|d|HH|H|mm|m|ss|s/g, (c) => h[c]);
1847
1847
  }
1848
- function ta(e) {
1848
+ function na(e) {
1849
1849
  const n = e.trim();
1850
1850
  if (!n) return null;
1851
1851
  if (/^\d{8}$/.test(n)) {
1852
1852
  const a = Number(n.slice(0, 4)), h = Number(n.slice(4, 6)), c = Number(n.slice(6, 8));
1853
- return ra(a, h, c);
1853
+ return oa(a, h, c);
1854
1854
  }
1855
1855
  const r = new Date(n);
1856
1856
  return Number.isNaN(r.getTime()) ? null : r;
1857
1857
  }
1858
- function ra(e, n, r) {
1858
+ function oa(e, n, r) {
1859
1859
  const a = new Date(e, n - 1, r);
1860
1860
  return a.getFullYear() !== e || a.getMonth() !== n - 1 || a.getDate() !== r ? null : a;
1861
1861
  }
1862
- function Sr(e, n) {
1862
+ function wr(e, n) {
1863
1863
  if (!e || !n) return "";
1864
1864
  try {
1865
1865
  const r = n.split(".");
@@ -1874,40 +1874,40 @@ function Sr(e, n) {
1874
1874
  return "";
1875
1875
  }
1876
1876
  }
1877
- function Tr(e) {
1877
+ function zr(e) {
1878
1878
  const n = Qt(e.data);
1879
1879
  return e.type === "object" && n && typeof n == "object" && !Array.isArray(n) ? n : null;
1880
1880
  }
1881
- function zr(e) {
1881
+ function kr(e) {
1882
1882
  const n = Qt(e.data);
1883
1883
  return e.type === "array" && Array.isArray(n) ? n : null;
1884
1884
  }
1885
- const { TextArea: na } = Ke, { Text: Ft, Title: Pi } = bt, Zr = () => JSON.stringify(Le("dataSource.sampleObject", { returnObjects: !0 }), null, 2), oa = () => JSON.stringify(Le("dataSource.sampleArray", { returnObjects: !0 }), null, 2), aa = () => {
1886
- const { t: e } = Ge(), n = pe((R) => R.dataSources), r = pe((R) => R.addDataSource), a = pe((R) => R.updateDataSource), h = pe((R) => R.removeDataSource), [c, d] = mt(!1), [E, j] = mt(null), [O, x] = mt({
1885
+ const { TextArea: aa } = Ke, { Text: qt, Title: Ei } = bt, tn = () => JSON.stringify(Le("dataSource.sampleObject", { returnObjects: !0 }), null, 2), ia = () => JSON.stringify(Le("dataSource.sampleArray", { returnObjects: !0 }), null, 2), sa = () => {
1886
+ const { t: e } = Ge(), n = pe((R) => R.dataSources), r = pe((R) => R.addDataSource), a = pe((R) => R.updateDataSource), h = pe((R) => R.removeDataSource), [c, d] = at(!1), [_, w] = at(null), [O, x] = at({
1887
1887
  name: "",
1888
1888
  type: "object",
1889
1889
  data: ""
1890
- }), _ = (R) => {
1891
- R ? (j(R.id), x({ name: R.name, type: R.type, data: R.data })) : (j(null), x({
1890
+ }), E = (R) => {
1891
+ R ? (w(R.id), x({ name: R.name, type: R.type, data: R.data })) : (w(null), x({
1892
1892
  name: e("dataSource.newName"),
1893
1893
  type: "object",
1894
- data: Zr()
1894
+ data: tn()
1895
1895
  })), d(!0);
1896
1896
  }, L = () => {
1897
1897
  const R = Qt(O.data);
1898
1898
  if (R === null) {
1899
- gt.error(e("dataSource.invalidJson"));
1899
+ mt.error(e("dataSource.invalidJson"));
1900
1900
  return;
1901
1901
  }
1902
1902
  if (O.type === "object" && (Array.isArray(R) || typeof R != "object")) {
1903
- gt.error(e("dataSource.objectFormatError"));
1903
+ mt.error(e("dataSource.objectFormatError"));
1904
1904
  return;
1905
1905
  }
1906
1906
  if (O.type === "array" && !Array.isArray(R)) {
1907
- gt.error(e("dataSource.arrayFormatError"));
1907
+ mt.error(e("dataSource.arrayFormatError"));
1908
1908
  return;
1909
1909
  }
1910
- E ? (a(E, O), gt.success(e("dataSource.updated"))) : (r(O.name, O.type, O.data), gt.success(e("dataSource.added"))), d(!1);
1910
+ _ ? (a(_, O), mt.success(e("dataSource.updated"))) : (r(O.name, O.type, O.data), mt.success(e("dataSource.added"))), d(!1);
1911
1911
  };
1912
1912
  return /* @__PURE__ */ o.jsxs(
1913
1913
  Mt,
@@ -1919,8 +1919,8 @@ const { TextArea: na } = Ke, { Text: Ft, Title: Pi } = bt, Zr = () => JSON.strin
1919
1919
  {
1920
1920
  type: "link",
1921
1921
  size: "small",
1922
- icon: /* @__PURE__ */ o.jsx(Or, {}),
1923
- onClick: () => _(),
1922
+ icon: /* @__PURE__ */ o.jsx(Rr, {}),
1923
+ onClick: () => E(),
1924
1924
  children: e("dataSource.add")
1925
1925
  }
1926
1926
  ),
@@ -1936,15 +1936,15 @@ const { TextArea: na } = Ke, { Text: Ft, Title: Pi } = bt, Zr = () => JSON.strin
1936
1936
  {
1937
1937
  actions: [
1938
1938
  /* @__PURE__ */ o.jsx(
1939
- go,
1939
+ yo,
1940
1940
  {
1941
1941
  menu: {
1942
1942
  items: [
1943
1943
  {
1944
1944
  key: "edit",
1945
1945
  label: e("common.edit"),
1946
- icon: /* @__PURE__ */ o.jsx(To, {}),
1947
- onClick: () => _(R)
1946
+ icon: /* @__PURE__ */ o.jsx(ko, {}),
1947
+ onClick: () => E(R)
1948
1948
  },
1949
1949
  {
1950
1950
  type: "divider"
@@ -1952,11 +1952,11 @@ const { TextArea: na } = Ke, { Text: Ft, Title: Pi } = bt, Zr = () => JSON.strin
1952
1952
  {
1953
1953
  key: "delete",
1954
1954
  label: /* @__PURE__ */ o.jsx(
1955
- An,
1955
+ In,
1956
1956
  {
1957
1957
  title: e("dataSource.deleteConfirm"),
1958
1958
  onConfirm: (T) => {
1959
- T == null || T.stopPropagation(), h(R.id), gt.success(e("dataSource.deleted"));
1959
+ T == null || T.stopPropagation(), h(R.id), mt.success(e("dataSource.deleted"));
1960
1960
  },
1961
1961
  okText: e("common.confirm"),
1962
1962
  cancelText: e("common.cancel"),
@@ -1964,21 +1964,21 @@ const { TextArea: na } = Ke, { Text: Ft, Title: Pi } = bt, Zr = () => JSON.strin
1964
1964
  children: /* @__PURE__ */ o.jsx("span", { style: { color: "#ff4d4f", cursor: "pointer" }, children: e("common.delete") })
1965
1965
  }
1966
1966
  ),
1967
- icon: /* @__PURE__ */ o.jsx(Rr, { style: { color: "#ff4d4f" } })
1967
+ icon: /* @__PURE__ */ o.jsx(_r, { style: { color: "#ff4d4f" } })
1968
1968
  }
1969
1969
  ]
1970
1970
  },
1971
1971
  placement: "bottomRight",
1972
- children: /* @__PURE__ */ o.jsx(Ae, { type: "text", size: "small", icon: /* @__PURE__ */ o.jsx(Do, {}) })
1972
+ children: /* @__PURE__ */ o.jsx(Ae, { type: "text", size: "small", icon: /* @__PURE__ */ o.jsx(zo, {}) })
1973
1973
  }
1974
1974
  )
1975
1975
  ],
1976
1976
  children: /* @__PURE__ */ o.jsx(
1977
1977
  ar.Item.Meta,
1978
1978
  {
1979
- avatar: /* @__PURE__ */ o.jsx(In, {}),
1980
- title: /* @__PURE__ */ o.jsx(Ft, { ellipsis: !0, strong: !0, children: R.name }),
1981
- description: /* @__PURE__ */ o.jsx(Ve, { size: 4, children: /* @__PURE__ */ o.jsx(yr, { color: R.type === "object" ? "blue" : "green", children: R.type === "object" ? e("dataSource.typeObject") : e("dataSource.typeArray") }) })
1979
+ avatar: /* @__PURE__ */ o.jsx(qn, {}),
1980
+ title: /* @__PURE__ */ o.jsx(qt, { ellipsis: !0, strong: !0, children: R.name }),
1981
+ description: /* @__PURE__ */ o.jsx(Ve, { size: 4, children: /* @__PURE__ */ o.jsx(vr, { color: R.type === "object" ? "blue" : "green", children: R.type === "object" ? e("dataSource.typeObject") : e("dataSource.typeArray") }) })
1982
1982
  }
1983
1983
  )
1984
1984
  }
@@ -1986,9 +1986,9 @@ const { TextArea: na } = Ke, { Text: Ft, Title: Pi } = bt, Zr = () => JSON.strin
1986
1986
  }
1987
1987
  ),
1988
1988
  /* @__PURE__ */ o.jsx(
1989
- Pr,
1989
+ Or,
1990
1990
  {
1991
- title: e(E ? "dataSource.editTitle" : "dataSource.addTitle"),
1991
+ title: e(_ ? "dataSource.editTitle" : "dataSource.addTitle"),
1992
1992
  open: c,
1993
1993
  onOk: L,
1994
1994
  onCancel: () => d(!1),
@@ -1996,7 +1996,7 @@ const { TextArea: na } = Ke, { Text: Ft, Title: Pi } = bt, Zr = () => JSON.strin
1996
1996
  cancelText: e("common.cancel"),
1997
1997
  children: /* @__PURE__ */ o.jsxs(Ve, { direction: "vertical", style: { width: "100%" }, size: "middle", children: [
1998
1998
  /* @__PURE__ */ o.jsxs("div", { children: [
1999
- /* @__PURE__ */ o.jsx(Ft, { strong: !0, style: { display: "block", marginBottom: 4 }, children: e("dataSource.name") }),
1999
+ /* @__PURE__ */ o.jsx(qt, { strong: !0, style: { display: "block", marginBottom: 4 }, children: e("dataSource.name") }),
2000
2000
  /* @__PURE__ */ o.jsx(
2001
2001
  Ke,
2002
2002
  {
@@ -2007,7 +2007,7 @@ const { TextArea: na } = Ke, { Text: Ft, Title: Pi } = bt, Zr = () => JSON.strin
2007
2007
  )
2008
2008
  ] }),
2009
2009
  /* @__PURE__ */ o.jsxs("div", { children: [
2010
- /* @__PURE__ */ o.jsx(Ft, { strong: !0, style: { display: "block", marginBottom: 4 }, children: e("dataSource.type") }),
2010
+ /* @__PURE__ */ o.jsx(qt, { strong: !0, style: { display: "block", marginBottom: 4 }, children: e("dataSource.type") }),
2011
2011
  /* @__PURE__ */ o.jsx(
2012
2012
  Ye,
2013
2013
  {
@@ -2021,7 +2021,7 @@ const { TextArea: na } = Ke, { Text: Ft, Title: Pi } = bt, Zr = () => JSON.strin
2021
2021
  x({
2022
2022
  ...O,
2023
2023
  type: R,
2024
- data: R === "object" ? Zr() : oa()
2024
+ data: R === "object" ? tn() : ia()
2025
2025
  });
2026
2026
  }
2027
2027
  }
@@ -2029,9 +2029,9 @@ const { TextArea: na } = Ke, { Text: Ft, Title: Pi } = bt, Zr = () => JSON.strin
2029
2029
  ] }),
2030
2030
  /* @__PURE__ */ o.jsx(Xe, { style: { margin: "8px 0" } }),
2031
2031
  /* @__PURE__ */ o.jsxs("div", { children: [
2032
- /* @__PURE__ */ o.jsx(Ft, { strong: !0, style: { display: "block", marginBottom: 4 }, children: e("dataSource.jsonData") }),
2032
+ /* @__PURE__ */ o.jsx(qt, { strong: !0, style: { display: "block", marginBottom: 4 }, children: e("dataSource.jsonData") }),
2033
2033
  /* @__PURE__ */ o.jsx(
2034
- na,
2034
+ aa,
2035
2035
  {
2036
2036
  rows: 12,
2037
2037
  placeholder: e("dataSource.jsonPlaceholder"),
@@ -2046,42 +2046,42 @@ const { TextArea: na } = Ke, { Text: Ft, Title: Pi } = bt, Zr = () => JSON.strin
2046
2046
  ]
2047
2047
  }
2048
2048
  );
2049
- }, ia = () => {
2049
+ }, la = () => {
2050
2050
  const { t: e } = Ge();
2051
2051
  return /* @__PURE__ */ o.jsx(
2052
- mo,
2052
+ vo,
2053
2053
  {
2054
2054
  bordered: !1,
2055
2055
  accordion: !0,
2056
2056
  defaultActiveKey: ["1"],
2057
- expandIcon: ({ isActive: n }) => /* @__PURE__ */ o.jsx(zo, { rotate: n ? 90 : 0 }),
2057
+ expandIcon: ({ isActive: n }) => /* @__PURE__ */ o.jsx(Mo, { rotate: n ? 90 : 0 }),
2058
2058
  style: { height: "100%", overflowY: "auto" },
2059
2059
  items: [
2060
2060
  {
2061
2061
  key: "1",
2062
2062
  label: e("panel.pageSettings"),
2063
- children: /* @__PURE__ */ o.jsx(Qo, {})
2063
+ children: /* @__PURE__ */ o.jsx(ea, {})
2064
2064
  },
2065
2065
  {
2066
2066
  key: "2",
2067
2067
  label: e("panel.components"),
2068
- children: /* @__PURE__ */ o.jsx(ea, {})
2068
+ children: /* @__PURE__ */ o.jsx(ra, {})
2069
2069
  },
2070
2070
  {
2071
2071
  key: "3",
2072
2072
  label: e("panel.dataSource"),
2073
- children: /* @__PURE__ */ o.jsx(aa, {})
2073
+ children: /* @__PURE__ */ o.jsx(sa, {})
2074
2074
  }
2075
2075
  ]
2076
2076
  }
2077
2077
  );
2078
2078
  };
2079
- var sr = { exports: {} }, Ct = {}, kt = { exports: {} }, sa = kt.exports, en;
2080
- function kr() {
2081
- return en || (en = 1, (function(e, n) {
2079
+ var sr = { exports: {} }, Ct = {}, kt = { exports: {} }, ca = kt.exports, rn;
2080
+ function Mr() {
2081
+ return rn || (rn = 1, (function(e, n) {
2082
2082
  (function(r, a) {
2083
2083
  a(n);
2084
- })(sa, (function(r) {
2084
+ })(ca, (function(r) {
2085
2085
  function a(N) {
2086
2086
  return function(Q, K, ie, $, he, De, ve) {
2087
2087
  return N(Q, K, ve);
@@ -2110,13 +2110,13 @@ function kr() {
2110
2110
  function d(N) {
2111
2111
  return N.constructor === Object || N.constructor == null;
2112
2112
  }
2113
- function E(N) {
2113
+ function _(N) {
2114
2114
  return typeof N.then == "function";
2115
2115
  }
2116
- function j(N, B) {
2116
+ function w(N, B) {
2117
2117
  return N === B || N !== N && B !== B;
2118
2118
  }
2119
- var O = "[object Arguments]", x = "[object Boolean]", _ = "[object Date]", L = "[object RegExp]", R = "[object Map]", T = "[object Number]", m = "[object Object]", u = "[object Set]", p = "[object String]", t = Object.prototype.toString;
2119
+ var O = "[object Arguments]", x = "[object Boolean]", E = "[object Date]", L = "[object RegExp]", R = "[object Map]", T = "[object Number]", m = "[object Object]", u = "[object Set]", p = "[object String]", t = Object.prototype.toString;
2120
2120
  function i(N) {
2121
2121
  var B = N.areArraysEqual, Q = N.areDatesEqual, K = N.areMapsEqual, ie = N.areObjectsEqual, $ = N.areRegExpsEqual, he = N.areSetsEqual, De = N.createIsNestedEqual, ve = De(ke);
2122
2122
  function ke(y, v, C) {
@@ -2130,7 +2130,7 @@ function kr() {
2130
2130
  if (I || te)
2131
2131
  return I === te && B(y, v, ve, C);
2132
2132
  var X = t.call(y);
2133
- return X !== t.call(v) ? !1 : X === _ ? Q(y, v, ve, C) : X === L ? $(y, v, ve, C) : X === R ? K(y, v, ve, C) : X === u ? he(y, v, ve, C) : X === m || X === O ? E(y) || E(v) ? !1 : ie(y, v, ve, C) : X === x || X === T || X === p ? j(y.valueOf(), v.valueOf()) : !1;
2133
+ return X !== t.call(v) ? !1 : X === E ? Q(y, v, ve, C) : X === L ? $(y, v, ve, C) : X === R ? K(y, v, ve, C) : X === u ? he(y, v, ve, C) : X === m || X === O ? _(y) || _(v) ? !1 : ie(y, v, ve, C) : X === x || X === T || X === p ? w(y.valueOf(), v.valueOf()) : !1;
2134
2134
  }
2135
2135
  return ke;
2136
2136
  }
@@ -2145,7 +2145,7 @@ function kr() {
2145
2145
  }
2146
2146
  var s = h(l);
2147
2147
  function b(N, B) {
2148
- return j(N.valueOf(), B.valueOf());
2148
+ return w(N.valueOf(), B.valueOf());
2149
2149
  }
2150
2150
  function P(N, B, Q, K) {
2151
2151
  var ie = N.size === B.size;
@@ -2220,7 +2220,7 @@ function kr() {
2220
2220
  return re(N, B, void 0);
2221
2221
  }
2222
2222
  var de = i(c(G, { createIsNestedEqual: function() {
2223
- return j;
2223
+ return w;
2224
2224
  } }));
2225
2225
  function k(N, B) {
2226
2226
  return de(N, B, void 0);
@@ -2231,7 +2231,7 @@ function kr() {
2231
2231
  }
2232
2232
  var oe = i(c(U, {
2233
2233
  createIsNestedEqual: function() {
2234
- return j;
2234
+ return w;
2235
2235
  }
2236
2236
  }));
2237
2237
  function se(N, B) {
@@ -2246,14 +2246,14 @@ function kr() {
2246
2246
  return ie === void 0 && (ie = /* @__PURE__ */ new WeakMap()), B(Q, K, ie);
2247
2247
  });
2248
2248
  }
2249
- r.circularDeepEqual = ne, r.circularShallowEqual = se, r.createCustomCircularEqual = le, r.createCustomEqual = fe, r.deepEqual = ce, r.sameValueZeroEqual = j, r.shallowEqual = k, Object.defineProperty(r, "__esModule", { value: !0 });
2249
+ r.circularDeepEqual = ne, r.circularShallowEqual = se, r.createCustomCircularEqual = le, r.createCustomEqual = fe, r.deepEqual = ce, r.sameValueZeroEqual = w, r.shallowEqual = k, Object.defineProperty(r, "__esModule", { value: !0 });
2250
2250
  }));
2251
2251
  })(kt, kt.exports)), kt.exports;
2252
2252
  }
2253
- var qt = { exports: {} }, tn;
2253
+ var Ht = { exports: {} }, nn;
2254
2254
  function Zt() {
2255
- if (tn) return qt.exports;
2256
- tn = 1;
2255
+ if (nn) return Ht.exports;
2256
+ nn = 1;
2257
2257
  function e(r) {
2258
2258
  var a, h, c = "";
2259
2259
  if (typeof r == "string" || typeof r == "number") c += r;
@@ -2267,23 +2267,23 @@ function Zt() {
2267
2267
  for (var r, a, h = 0, c = "", d = arguments.length; h < d; h++) (r = arguments[h]) && (a = e(r)) && (c && (c += " "), c += a);
2268
2268
  return c;
2269
2269
  }
2270
- return qt.exports = n, qt.exports.clsx = n, qt.exports;
2270
+ return Ht.exports = n, Ht.exports.clsx = n, Ht.exports;
2271
2271
  }
2272
- var xe = {}, lr, rn;
2273
- function la() {
2274
- return rn || (rn = 1, lr = function(n, r, a) {
2272
+ var xe = {}, lr, on;
2273
+ function ua() {
2274
+ return on || (on = 1, lr = function(n, r, a) {
2275
2275
  return n === r ? !0 : n.className === r.className && a(n.style, r.style) && n.width === r.width && n.autoSize === r.autoSize && n.cols === r.cols && n.draggableCancel === r.draggableCancel && n.draggableHandle === r.draggableHandle && a(n.verticalCompact, r.verticalCompact) && a(n.compactType, r.compactType) && a(n.layout, r.layout) && a(n.margin, r.margin) && a(n.containerPadding, r.containerPadding) && n.rowHeight === r.rowHeight && n.maxRows === r.maxRows && n.isBounded === r.isBounded && n.isDraggable === r.isDraggable && n.isResizable === r.isResizable && n.allowOverlap === r.allowOverlap && n.preventCollision === r.preventCollision && n.useCSSTransforms === r.useCSSTransforms && n.transformScale === r.transformScale && n.isDroppable === r.isDroppable && a(n.resizeHandles, r.resizeHandles) && a(n.resizeHandle, r.resizeHandle) && n.onLayoutChange === r.onLayoutChange && n.onDragStart === r.onDragStart && n.onDrag === r.onDrag && n.onDragStop === r.onDragStop && n.onResizeStart === r.onResizeStart && n.onResize === r.onResize && n.onResizeStop === r.onResizeStop && n.onDrop === r.onDrop && a(n.droppingItem, r.droppingItem) && a(n.innerRef, r.innerRef);
2276
2276
  }), lr;
2277
2277
  }
2278
- var nn;
2278
+ var an;
2279
2279
  function xt() {
2280
- if (nn) return xe;
2281
- nn = 1;
2280
+ if (an) return xe;
2281
+ an = 1;
2282
2282
  var e = {};
2283
2283
  Object.defineProperty(xe, "__esModule", {
2284
2284
  value: !0
2285
- }), xe.bottom = x, xe.childrenEqual = m, xe.cloneLayout = _, xe.cloneLayoutItem = T, xe.collides = p, xe.compact = t, xe.compactItem = s, xe.compactType = De, xe.correctBounds = b, xe.fastPositionEqual = u, xe.fastRGLPropsEqual = void 0, xe.getAllCollisions = D, xe.getFirstCollision = S, xe.getLayoutItem = P, xe.getStatics = M, xe.modifyLayout = L, xe.moveElement = H, xe.moveElementAwayFromCollision = q, xe.noop = void 0, xe.perc = Y, xe.resizeItemInDirection = le, xe.setTopLeft = B, xe.setTransform = N, xe.sortLayoutItems = Q, xe.sortLayoutItemsByColRow = ie, xe.sortLayoutItemsByRowCol = K, xe.synchronizeLayoutWithChildren = $, xe.validateLayout = he, xe.withLayoutItem = R;
2286
- var n = /* @__PURE__ */ kr(), r = a(Ne);
2285
+ }), xe.bottom = x, xe.childrenEqual = m, xe.cloneLayout = E, xe.cloneLayoutItem = T, xe.collides = p, xe.compact = t, xe.compactItem = s, xe.compactType = De, xe.correctBounds = b, xe.fastPositionEqual = u, xe.fastRGLPropsEqual = void 0, xe.getAllCollisions = D, xe.getFirstCollision = S, xe.getLayoutItem = P, xe.getStatics = M, xe.modifyLayout = L, xe.moveElement = H, xe.moveElementAwayFromCollision = q, xe.noop = void 0, xe.perc = Y, xe.resizeItemInDirection = le, xe.setTopLeft = B, xe.setTransform = N, xe.sortLayoutItems = Q, xe.sortLayoutItemsByColRow = ie, xe.sortLayoutItemsByRowCol = K, xe.synchronizeLayoutWithChildren = $, xe.validateLayout = he, xe.withLayoutItem = R;
2286
+ var n = /* @__PURE__ */ Mr(), r = a(Ne);
2287
2287
  function a(y) {
2288
2288
  return y && y.__esModule ? y : { default: y };
2289
2289
  }
@@ -2309,13 +2309,13 @@ function xt() {
2309
2309
  return y;
2310
2310
  }
2311
2311
  function d(y, v, C) {
2312
- return (v = E(v)) in y ? Object.defineProperty(y, v, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : y[v] = C, y;
2312
+ return (v = _(v)) in y ? Object.defineProperty(y, v, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : y[v] = C, y;
2313
2313
  }
2314
- function E(y) {
2315
- var v = j(y, "string");
2314
+ function _(y) {
2315
+ var v = w(y, "string");
2316
2316
  return typeof v == "symbol" ? v : v + "";
2317
2317
  }
2318
- function j(y, v) {
2318
+ function w(y, v) {
2319
2319
  if (typeof y != "object" || !y) return y;
2320
2320
  var C = y[Symbol.toPrimitive];
2321
2321
  if (C !== void 0) {
@@ -2332,7 +2332,7 @@ function xt() {
2332
2332
  C = y[I].y + y[I].h, C > v && (v = C);
2333
2333
  return v;
2334
2334
  }
2335
- function _(y) {
2335
+ function E(y) {
2336
2336
  const v = Array(y.length);
2337
2337
  for (let C = 0, I = y.length; C < I; C++)
2338
2338
  v[C] = T(y[C]);
@@ -2371,7 +2371,7 @@ function xt() {
2371
2371
  function m(y, v) {
2372
2372
  return (0, n.deepEqual)(r.default.Children.map(y, (C) => C == null ? void 0 : C.key), r.default.Children.map(v, (C) => C == null ? void 0 : C.key)) && (0, n.deepEqual)(r.default.Children.map(y, (C) => C == null ? void 0 : C.props["data-grid"]), r.default.Children.map(v, (C) => C == null ? void 0 : C.props["data-grid"]));
2373
2373
  }
2374
- xe.fastRGLPropsEqual = la();
2374
+ xe.fastRGLPropsEqual = ua();
2375
2375
  function u(y, v) {
2376
2376
  return y.left === v.left && y.top === v.top && y.width === v.width && y.height === v.height;
2377
2377
  }
@@ -2383,8 +2383,8 @@ function xt() {
2383
2383
  let X = x(te);
2384
2384
  const ae = Q(y, v), ge = Array(y.length);
2385
2385
  for (let Se = 0, f = ae.length; Se < f; Se++) {
2386
- let w = T(ae[Se]);
2387
- w.static || (w = s(te, w, v, C, ae, I, X), X = Math.max(X, w.y + w.h), te.push(w)), ge[y.indexOf(ae[Se])] = w, w.moved = !1;
2386
+ let j = T(ae[Se]);
2387
+ j.static || (j = s(te, j, v, C, ae, I, X), X = Math.max(X, j.y + j.h), te.push(j)), ge[y.indexOf(ae[Se])] = j, j.moved = !1;
2388
2388
  }
2389
2389
  return ge;
2390
2390
  }
@@ -2448,15 +2448,15 @@ function xt() {
2448
2448
  function H(y, v, C, I, te, X, ae, ge, Se) {
2449
2449
  if (v.static && v.isDraggable !== !0 || v.y === I && v.x === C) return y;
2450
2450
  "Moving element ".concat(v.i, " to [").concat(String(C), ",").concat(String(I), "] from [").concat(v.x, ",").concat(v.y, "]");
2451
- const f = v.x, w = v.y;
2451
+ const f = v.x, j = v.y;
2452
2452
  typeof C == "number" && (v.x = C), typeof I == "number" && (v.y = I), v.moved = !0;
2453
2453
  let z = Q(y, ae);
2454
- (ae === "vertical" && typeof I == "number" ? w >= I : ae === "horizontal" && typeof C == "number" ? f >= C : !1) && (z = z.reverse());
2454
+ (ae === "vertical" && typeof I == "number" ? j >= I : ae === "horizontal" && typeof C == "number" ? f >= C : !1) && (z = z.reverse());
2455
2455
  const V = D(z, v), je = V.length > 0;
2456
2456
  if (je && Se)
2457
- return _(y);
2457
+ return E(y);
2458
2458
  if (je && X)
2459
- return "Collision prevented on ".concat(v.i, ", reverting."), v.x = f, v.y = w, v.moved = !1, y;
2459
+ return "Collision prevented on ".concat(v.i, ", reverting."), v.x = f, v.y = j, v.moved = !1, y;
2460
2460
  for (let me = 0, _e = V.length; me < _e; me++) {
2461
2461
  const Te = V[me];
2462
2462
  "Resolving collision between ".concat(v.i, " at [").concat(v.x, ",").concat(v.y, "] and ").concat(Te.i, " at [").concat(Te.x, ",").concat(Te.y, "]"), !Te.moved && (Te.static ? y = q(y, Te, v, te, ae) : y = q(y, v, Te, te, ae));
@@ -2483,8 +2483,8 @@ function xt() {
2483
2483
  return H(y, v, C.x, void 0, I, Se, te);
2484
2484
  } else return "Doing reverse collision on ".concat(C.i, " up to [").concat(z.x, ",").concat(z.y, "]."), H(y, C, ae ? z.x : void 0, ge ? z.y : void 0, I, Se, te);
2485
2485
  }
2486
- const f = ae ? C.x + 1 : void 0, w = ge ? C.y + 1 : void 0;
2487
- return f == null && w == null ? y : H(y, C, ae ? C.x + 1 : void 0, ge ? C.y + 1 : void 0, I, Se, te);
2486
+ const f = ae ? C.x + 1 : void 0, j = ge ? C.y + 1 : void 0;
2487
+ return f == null && j == null ? y : H(y, C, ae ? C.x + 1 : void 0, ge ? C.y + 1 : void 0, I, Se, te);
2488
2488
  }
2489
2489
  function Y(y) {
2490
2490
  return y * 100 + "%";
@@ -2659,65 +2659,65 @@ function xt() {
2659
2659
  };
2660
2660
  return xe.noop = ke, xe;
2661
2661
  }
2662
- var tt = {}, on;
2663
- function Mr() {
2664
- if (on) return tt;
2665
- on = 1, Object.defineProperty(tt, "__esModule", {
2662
+ var tt = {}, sn;
2663
+ function Lr() {
2664
+ if (sn) return tt;
2665
+ sn = 1, Object.defineProperty(tt, "__esModule", {
2666
2666
  value: !0
2667
2667
  }), tt.calcGridColWidth = e, tt.calcGridItemPosition = r, tt.calcGridItemWHPx = n, tt.calcWH = h, tt.calcXY = a, tt.clamp = c;
2668
2668
  function e(d) {
2669
2669
  const {
2670
- margin: E,
2671
- containerPadding: j,
2670
+ margin: _,
2671
+ containerPadding: w,
2672
2672
  containerWidth: O,
2673
2673
  cols: x
2674
2674
  } = d;
2675
- return (O - E[0] * (x - 1) - j[0] * 2) / x;
2675
+ return (O - _[0] * (x - 1) - w[0] * 2) / x;
2676
2676
  }
2677
- function n(d, E, j) {
2678
- return Number.isFinite(d) ? Math.round(E * d + Math.max(0, d - 1) * j) : d;
2677
+ function n(d, _, w) {
2678
+ return Number.isFinite(d) ? Math.round(_ * d + Math.max(0, d - 1) * w) : d;
2679
2679
  }
2680
- function r(d, E, j, O, x, _) {
2680
+ function r(d, _, w, O, x, E) {
2681
2681
  const {
2682
2682
  margin: L,
2683
2683
  containerPadding: R,
2684
2684
  rowHeight: T
2685
2685
  } = d, m = e(d), u = {};
2686
- return _ && _.resizing ? (u.width = Math.round(_.resizing.width), u.height = Math.round(_.resizing.height)) : (u.width = n(O, m, L[0]), u.height = n(x, T, L[1])), _ && _.dragging ? (u.top = Math.round(_.dragging.top), u.left = Math.round(_.dragging.left)) : _ && _.resizing && typeof _.resizing.top == "number" && typeof _.resizing.left == "number" ? (u.top = Math.round(_.resizing.top), u.left = Math.round(_.resizing.left)) : (u.top = Math.round((T + L[1]) * j + R[1]), u.left = Math.round((m + L[0]) * E + R[0])), u;
2686
+ return E && E.resizing ? (u.width = Math.round(E.resizing.width), u.height = Math.round(E.resizing.height)) : (u.width = n(O, m, L[0]), u.height = n(x, T, L[1])), E && E.dragging ? (u.top = Math.round(E.dragging.top), u.left = Math.round(E.dragging.left)) : E && E.resizing && typeof E.resizing.top == "number" && typeof E.resizing.left == "number" ? (u.top = Math.round(E.resizing.top), u.left = Math.round(E.resizing.left)) : (u.top = Math.round((T + L[1]) * w + R[1]), u.left = Math.round((m + L[0]) * _ + R[0])), u;
2687
2687
  }
2688
- function a(d, E, j, O, x) {
2688
+ function a(d, _, w, O, x) {
2689
2689
  const {
2690
- margin: _,
2690
+ margin: E,
2691
2691
  containerPadding: L,
2692
2692
  cols: R,
2693
2693
  rowHeight: T,
2694
2694
  maxRows: m
2695
2695
  } = d, u = e(d);
2696
- let p = Math.round((j - L[0]) / (u + _[0])), t = Math.round((E - L[1]) / (T + _[1]));
2696
+ let p = Math.round((w - L[0]) / (u + E[0])), t = Math.round((_ - L[1]) / (T + E[1]));
2697
2697
  return p = c(p, 0, R - O), t = c(t, 0, m - x), {
2698
2698
  x: p,
2699
2699
  y: t
2700
2700
  };
2701
2701
  }
2702
- function h(d, E, j, O, x, _) {
2702
+ function h(d, _, w, O, x, E) {
2703
2703
  const {
2704
2704
  margin: L,
2705
2705
  maxRows: R,
2706
2706
  cols: T,
2707
2707
  rowHeight: m
2708
2708
  } = d, u = e(d);
2709
- let p = Math.round((E + L[0]) / (u + L[0])), t = Math.round((j + L[1]) / (m + L[1])), i = c(p, 0, T - O), l = c(t, 0, R - x);
2710
- return ["sw", "w", "nw"].indexOf(_) !== -1 && (i = c(p, 0, T)), ["nw", "n", "ne"].indexOf(_) !== -1 && (l = c(t, 0, R)), {
2709
+ let p = Math.round((_ + L[0]) / (u + L[0])), t = Math.round((w + L[1]) / (m + L[1])), i = c(p, 0, T - O), l = c(t, 0, R - x);
2710
+ return ["sw", "w", "nw"].indexOf(E) !== -1 && (i = c(p, 0, T)), ["nw", "n", "ne"].indexOf(E) !== -1 && (l = c(t, 0, R)), {
2711
2711
  w: i,
2712
2712
  h: l
2713
2713
  };
2714
2714
  }
2715
- function c(d, E, j) {
2716
- return Math.max(Math.min(d, j), E);
2715
+ function c(d, _, w) {
2716
+ return Math.max(Math.min(d, w), _);
2717
2717
  }
2718
2718
  return tt;
2719
2719
  }
2720
- var Pt = {}, Ht = { exports: {} }, Wt = { exports: {} }, Pe = {};
2720
+ var Pt = {}, Wt = { exports: {} }, Bt = { exports: {} }, Pe = {};
2721
2721
  /** @license React v16.13.1
2722
2722
  * react-is.production.min.js
2723
2723
  *
@@ -2726,27 +2726,27 @@ var Pt = {}, Ht = { exports: {} }, Wt = { exports: {} }, Pe = {};
2726
2726
  * This source code is licensed under the MIT license found in the
2727
2727
  * LICENSE file in the root directory of this source tree.
2728
2728
  */
2729
- var an;
2730
- function ca() {
2731
- if (an) return Pe;
2732
- an = 1;
2733
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, h = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, E = e ? Symbol.for("react.context") : 60110, j = e ? Symbol.for("react.async_mode") : 60111, O = e ? Symbol.for("react.concurrent_mode") : 60111, x = e ? Symbol.for("react.forward_ref") : 60112, _ = e ? Symbol.for("react.suspense") : 60113, L = e ? Symbol.for("react.suspense_list") : 60120, R = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, u = e ? Symbol.for("react.fundamental") : 60117, p = e ? Symbol.for("react.responder") : 60118, t = e ? Symbol.for("react.scope") : 60119;
2729
+ var ln;
2730
+ function da() {
2731
+ if (ln) return Pe;
2732
+ ln = 1;
2733
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, h = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, _ = e ? Symbol.for("react.context") : 60110, w = e ? Symbol.for("react.async_mode") : 60111, O = e ? Symbol.for("react.concurrent_mode") : 60111, x = e ? Symbol.for("react.forward_ref") : 60112, E = e ? Symbol.for("react.suspense") : 60113, L = e ? Symbol.for("react.suspense_list") : 60120, R = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, u = e ? Symbol.for("react.fundamental") : 60117, p = e ? Symbol.for("react.responder") : 60118, t = e ? Symbol.for("react.scope") : 60119;
2734
2734
  function i(s) {
2735
2735
  if (typeof s == "object" && s !== null) {
2736
2736
  var b = s.$$typeof;
2737
2737
  switch (b) {
2738
2738
  case n:
2739
2739
  switch (s = s.type, s) {
2740
- case j:
2740
+ case w:
2741
2741
  case O:
2742
2742
  case a:
2743
2743
  case c:
2744
2744
  case h:
2745
- case _:
2745
+ case E:
2746
2746
  return s;
2747
2747
  default:
2748
2748
  switch (s = s && s.$$typeof, s) {
2749
- case E:
2749
+ case _:
2750
2750
  case x:
2751
2751
  case T:
2752
2752
  case R:
@@ -2764,10 +2764,10 @@ function ca() {
2764
2764
  function l(s) {
2765
2765
  return i(s) === O;
2766
2766
  }
2767
- return Pe.AsyncMode = j, Pe.ConcurrentMode = O, Pe.ContextConsumer = E, Pe.ContextProvider = d, Pe.Element = n, Pe.ForwardRef = x, Pe.Fragment = a, Pe.Lazy = T, Pe.Memo = R, Pe.Portal = r, Pe.Profiler = c, Pe.StrictMode = h, Pe.Suspense = _, Pe.isAsyncMode = function(s) {
2768
- return l(s) || i(s) === j;
2767
+ return Pe.AsyncMode = w, Pe.ConcurrentMode = O, Pe.ContextConsumer = _, Pe.ContextProvider = d, Pe.Element = n, Pe.ForwardRef = x, Pe.Fragment = a, Pe.Lazy = T, Pe.Memo = R, Pe.Portal = r, Pe.Profiler = c, Pe.StrictMode = h, Pe.Suspense = E, Pe.isAsyncMode = function(s) {
2768
+ return l(s) || i(s) === w;
2769
2769
  }, Pe.isConcurrentMode = l, Pe.isContextConsumer = function(s) {
2770
- return i(s) === E;
2770
+ return i(s) === _;
2771
2771
  }, Pe.isContextProvider = function(s) {
2772
2772
  return i(s) === d;
2773
2773
  }, Pe.isElement = function(s) {
@@ -2787,15 +2787,15 @@ function ca() {
2787
2787
  }, Pe.isStrictMode = function(s) {
2788
2788
  return i(s) === h;
2789
2789
  }, Pe.isSuspense = function(s) {
2790
- return i(s) === _;
2790
+ return i(s) === E;
2791
2791
  }, Pe.isValidElementType = function(s) {
2792
- return typeof s == "string" || typeof s == "function" || s === a || s === O || s === c || s === h || s === _ || s === L || typeof s == "object" && s !== null && (s.$$typeof === T || s.$$typeof === R || s.$$typeof === d || s.$$typeof === E || s.$$typeof === x || s.$$typeof === u || s.$$typeof === p || s.$$typeof === t || s.$$typeof === m);
2792
+ return typeof s == "string" || typeof s == "function" || s === a || s === O || s === c || s === h || s === E || s === L || typeof s == "object" && s !== null && (s.$$typeof === T || s.$$typeof === R || s.$$typeof === d || s.$$typeof === _ || s.$$typeof === x || s.$$typeof === u || s.$$typeof === p || s.$$typeof === t || s.$$typeof === m);
2793
2793
  }, Pe.typeOf = i, Pe;
2794
2794
  }
2795
- var Oe = {}, sn;
2796
- function ua() {
2797
- if (sn) return Oe;
2798
- sn = 1;
2795
+ var Oe = {}, cn;
2796
+ function pa() {
2797
+ if (cn) return Oe;
2798
+ cn = 1;
2799
2799
  var e = {};
2800
2800
  /** @license React v16.13.1
2801
2801
  * react-is.development.js
@@ -2806,10 +2806,10 @@ function ua() {
2806
2806
  * LICENSE file in the root directory of this source tree.
2807
2807
  */
2808
2808
  return e.NODE_ENV !== "production" && (function() {
2809
- var n = typeof Symbol == "function" && Symbol.for, r = n ? Symbol.for("react.element") : 60103, a = n ? Symbol.for("react.portal") : 60106, h = n ? Symbol.for("react.fragment") : 60107, c = n ? Symbol.for("react.strict_mode") : 60108, d = n ? Symbol.for("react.profiler") : 60114, E = n ? Symbol.for("react.provider") : 60109, j = n ? Symbol.for("react.context") : 60110, O = n ? Symbol.for("react.async_mode") : 60111, x = n ? Symbol.for("react.concurrent_mode") : 60111, _ = n ? Symbol.for("react.forward_ref") : 60112, L = n ? Symbol.for("react.suspense") : 60113, R = n ? Symbol.for("react.suspense_list") : 60120, T = n ? Symbol.for("react.memo") : 60115, m = n ? Symbol.for("react.lazy") : 60116, u = n ? Symbol.for("react.block") : 60121, p = n ? Symbol.for("react.fundamental") : 60117, t = n ? Symbol.for("react.responder") : 60118, i = n ? Symbol.for("react.scope") : 60119;
2809
+ var n = typeof Symbol == "function" && Symbol.for, r = n ? Symbol.for("react.element") : 60103, a = n ? Symbol.for("react.portal") : 60106, h = n ? Symbol.for("react.fragment") : 60107, c = n ? Symbol.for("react.strict_mode") : 60108, d = n ? Symbol.for("react.profiler") : 60114, _ = n ? Symbol.for("react.provider") : 60109, w = n ? Symbol.for("react.context") : 60110, O = n ? Symbol.for("react.async_mode") : 60111, x = n ? Symbol.for("react.concurrent_mode") : 60111, E = n ? Symbol.for("react.forward_ref") : 60112, L = n ? Symbol.for("react.suspense") : 60113, R = n ? Symbol.for("react.suspense_list") : 60120, T = n ? Symbol.for("react.memo") : 60115, m = n ? Symbol.for("react.lazy") : 60116, u = n ? Symbol.for("react.block") : 60121, p = n ? Symbol.for("react.fundamental") : 60117, t = n ? Symbol.for("react.responder") : 60118, i = n ? Symbol.for("react.scope") : 60119;
2810
2810
  function l($) {
2811
2811
  return typeof $ == "string" || typeof $ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2812
- $ === h || $ === x || $ === d || $ === c || $ === L || $ === R || typeof $ == "object" && $ !== null && ($.$$typeof === m || $.$$typeof === T || $.$$typeof === E || $.$$typeof === j || $.$$typeof === _ || $.$$typeof === p || $.$$typeof === t || $.$$typeof === i || $.$$typeof === u);
2812
+ $ === h || $ === x || $ === d || $ === c || $ === L || $ === R || typeof $ == "object" && $ !== null && ($.$$typeof === m || $.$$typeof === T || $.$$typeof === _ || $.$$typeof === w || $.$$typeof === E || $.$$typeof === p || $.$$typeof === t || $.$$typeof === i || $.$$typeof === u);
2813
2813
  }
2814
2814
  function s($) {
2815
2815
  if (typeof $ == "object" && $ !== null) {
@@ -2828,11 +2828,11 @@ function ua() {
2828
2828
  default:
2829
2829
  var ve = De && De.$$typeof;
2830
2830
  switch (ve) {
2831
- case j:
2832
- case _:
2831
+ case w:
2832
+ case E:
2833
2833
  case m:
2834
2834
  case T:
2835
- case E:
2835
+ case _:
2836
2836
  return ve;
2837
2837
  default:
2838
2838
  return he;
@@ -2843,7 +2843,7 @@ function ua() {
2843
2843
  }
2844
2844
  }
2845
2845
  }
2846
- var b = O, P = x, S = j, D = E, M = r, H = _, q = h, Y = m, J = T, ee = a, G = d, U = c, re = L, ce = !1;
2846
+ var b = O, P = x, S = w, D = _, M = r, H = E, q = h, Y = m, J = T, ee = a, G = d, U = c, re = L, ce = !1;
2847
2847
  function de($) {
2848
2848
  return ce || (ce = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), k($) || s($) === O;
2849
2849
  }
@@ -2851,16 +2851,16 @@ function ua() {
2851
2851
  return s($) === x;
2852
2852
  }
2853
2853
  function A($) {
2854
- return s($) === j;
2854
+ return s($) === w;
2855
2855
  }
2856
2856
  function ne($) {
2857
- return s($) === E;
2857
+ return s($) === _;
2858
2858
  }
2859
2859
  function oe($) {
2860
2860
  return typeof $ == "object" && $ !== null && $.$$typeof === r;
2861
2861
  }
2862
2862
  function se($) {
2863
- return s($) === _;
2863
+ return s($) === E;
2864
2864
  }
2865
2865
  function fe($) {
2866
2866
  return s($) === h;
@@ -2886,22 +2886,22 @@ function ua() {
2886
2886
  Oe.AsyncMode = b, Oe.ConcurrentMode = P, Oe.ContextConsumer = S, Oe.ContextProvider = D, Oe.Element = M, Oe.ForwardRef = H, Oe.Fragment = q, Oe.Lazy = Y, Oe.Memo = J, Oe.Portal = ee, Oe.Profiler = G, Oe.StrictMode = U, Oe.Suspense = re, Oe.isAsyncMode = de, Oe.isConcurrentMode = k, Oe.isContextConsumer = A, Oe.isContextProvider = ne, Oe.isElement = oe, Oe.isForwardRef = se, Oe.isFragment = fe, Oe.isLazy = le, Oe.isMemo = N, Oe.isPortal = B, Oe.isProfiler = Q, Oe.isStrictMode = K, Oe.isSuspense = ie, Oe.isValidElementType = l, Oe.typeOf = s;
2887
2887
  })(), Oe;
2888
2888
  }
2889
- var ln;
2890
- function Hn() {
2891
- if (ln) return Wt.exports;
2892
- ln = 1;
2889
+ var un;
2890
+ function Bn() {
2891
+ if (un) return Bt.exports;
2892
+ un = 1;
2893
2893
  var e = {};
2894
- return e.NODE_ENV === "production" ? Wt.exports = ca() : Wt.exports = ua(), Wt.exports;
2894
+ return e.NODE_ENV === "production" ? Bt.exports = da() : Bt.exports = pa(), Bt.exports;
2895
2895
  }
2896
2896
  /*
2897
2897
  object-assign
2898
2898
  (c) Sindre Sorhus
2899
2899
  @license MIT
2900
2900
  */
2901
- var cr, cn;
2902
- function da() {
2903
- if (cn) return cr;
2904
- cn = 1;
2901
+ var cr, dn;
2902
+ function fa() {
2903
+ if (dn) return cr;
2904
+ dn = 1;
2905
2905
  var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
2906
2906
  function a(c) {
2907
2907
  if (c == null)
@@ -2915,12 +2915,12 @@ function da() {
2915
2915
  var c = new String("abc");
2916
2916
  if (c[5] = "de", Object.getOwnPropertyNames(c)[0] === "5")
2917
2917
  return !1;
2918
- for (var d = {}, E = 0; E < 10; E++)
2919
- d["_" + String.fromCharCode(E)] = E;
2920
- var j = Object.getOwnPropertyNames(d).map(function(x) {
2918
+ for (var d = {}, _ = 0; _ < 10; _++)
2919
+ d["_" + String.fromCharCode(_)] = _;
2920
+ var w = Object.getOwnPropertyNames(d).map(function(x) {
2921
2921
  return d[x];
2922
2922
  });
2923
- if (j.join("") !== "0123456789")
2923
+ if (w.join("") !== "0123456789")
2924
2924
  return !1;
2925
2925
  var O = {};
2926
2926
  return "abcdefghijklmnopqrst".split("").forEach(function(x) {
@@ -2931,70 +2931,70 @@ function da() {
2931
2931
  }
2932
2932
  }
2933
2933
  return cr = h() ? Object.assign : function(c, d) {
2934
- for (var E, j = a(c), O, x = 1; x < arguments.length; x++) {
2935
- E = Object(arguments[x]);
2936
- for (var _ in E)
2937
- n.call(E, _) && (j[_] = E[_]);
2934
+ for (var _, w = a(c), O, x = 1; x < arguments.length; x++) {
2935
+ _ = Object(arguments[x]);
2936
+ for (var E in _)
2937
+ n.call(_, E) && (w[E] = _[E]);
2938
2938
  if (e) {
2939
- O = e(E);
2939
+ O = e(_);
2940
2940
  for (var L = 0; L < O.length; L++)
2941
- r.call(E, O[L]) && (j[O[L]] = E[O[L]]);
2941
+ r.call(_, O[L]) && (w[O[L]] = _[O[L]]);
2942
2942
  }
2943
2943
  }
2944
- return j;
2944
+ return w;
2945
2945
  }, cr;
2946
2946
  }
2947
- var ur, un;
2948
- function Lr() {
2949
- if (un) return ur;
2950
- un = 1;
2947
+ var ur, pn;
2948
+ function Nr() {
2949
+ if (pn) return ur;
2950
+ pn = 1;
2951
2951
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2952
2952
  return ur = e, ur;
2953
2953
  }
2954
- var dr, dn;
2955
- function Wn() {
2956
- return dn || (dn = 1, dr = Function.call.bind(Object.prototype.hasOwnProperty)), dr;
2954
+ var dr, fn;
2955
+ function Yn() {
2956
+ return fn || (fn = 1, dr = Function.call.bind(Object.prototype.hasOwnProperty)), dr;
2957
2957
  }
2958
- var pr, pn;
2959
- function pa() {
2960
- if (pn) return pr;
2961
- pn = 1;
2958
+ var pr, hn;
2959
+ function ha() {
2960
+ if (hn) return pr;
2961
+ hn = 1;
2962
2962
  var e = {}, n = function() {
2963
2963
  };
2964
2964
  if (e.NODE_ENV !== "production") {
2965
- var r = /* @__PURE__ */ Lr(), a = {}, h = /* @__PURE__ */ Wn();
2965
+ var r = /* @__PURE__ */ Nr(), a = {}, h = /* @__PURE__ */ Yn();
2966
2966
  n = function(d) {
2967
- var E = "Warning: " + d;
2968
- typeof console < "u" && console.error(E);
2967
+ var _ = "Warning: " + d;
2968
+ typeof console < "u" && console.error(_);
2969
2969
  try {
2970
- throw new Error(E);
2970
+ throw new Error(_);
2971
2971
  } catch {
2972
2972
  }
2973
2973
  };
2974
2974
  }
2975
- function c(d, E, j, O, x) {
2975
+ function c(d, _, w, O, x) {
2976
2976
  if (e.NODE_ENV !== "production") {
2977
- for (var _ in d)
2978
- if (h(d, _)) {
2977
+ for (var E in d)
2978
+ if (h(d, E)) {
2979
2979
  var L;
2980
2980
  try {
2981
- if (typeof d[_] != "function") {
2981
+ if (typeof d[E] != "function") {
2982
2982
  var R = Error(
2983
- (O || "React class") + ": " + j + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[_] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
2983
+ (O || "React class") + ": " + w + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
2984
2984
  );
2985
2985
  throw R.name = "Invariant Violation", R;
2986
2986
  }
2987
- L = d[_](E, _, O, j, null, r);
2987
+ L = d[E](_, E, O, w, null, r);
2988
2988
  } catch (m) {
2989
2989
  L = m;
2990
2990
  }
2991
2991
  if (L && !(L instanceof Error) && n(
2992
- (O || "React class") + ": type specification of " + j + " `" + _ + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof L + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
2992
+ (O || "React class") + ": type specification of " + w + " `" + E + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof L + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
2993
2993
  ), L instanceof Error && !(L.message in a)) {
2994
2994
  a[L.message] = !0;
2995
2995
  var T = x ? x() : "";
2996
2996
  n(
2997
- "Failed " + j + " type: " + L.message + (T ?? "")
2997
+ "Failed " + w + " type: " + L.message + (T ?? "")
2998
2998
  );
2999
2999
  }
3000
3000
  }
@@ -3004,27 +3004,27 @@ function pa() {
3004
3004
  e.NODE_ENV !== "production" && (a = {});
3005
3005
  }, pr = c, pr;
3006
3006
  }
3007
- var fr, fn;
3008
- function fa() {
3009
- if (fn) return fr;
3010
- fn = 1;
3011
- var e = {}, n = Hn(), r = da(), a = /* @__PURE__ */ Lr(), h = /* @__PURE__ */ Wn(), c = /* @__PURE__ */ pa(), d = function() {
3007
+ var fr, gn;
3008
+ function ga() {
3009
+ if (gn) return fr;
3010
+ gn = 1;
3011
+ var e = {}, n = Bn(), r = fa(), a = /* @__PURE__ */ Nr(), h = /* @__PURE__ */ Yn(), c = /* @__PURE__ */ ha(), d = function() {
3012
3012
  };
3013
- e.NODE_ENV !== "production" && (d = function(j) {
3014
- var O = "Warning: " + j;
3013
+ e.NODE_ENV !== "production" && (d = function(w) {
3014
+ var O = "Warning: " + w;
3015
3015
  typeof console < "u" && console.error(O);
3016
3016
  try {
3017
3017
  throw new Error(O);
3018
3018
  } catch {
3019
3019
  }
3020
3020
  });
3021
- function E() {
3021
+ function _() {
3022
3022
  return null;
3023
3023
  }
3024
- return fr = function(j, O) {
3025
- var x = typeof Symbol == "function" && Symbol.iterator, _ = "@@iterator";
3024
+ return fr = function(w, O) {
3025
+ var x = typeof Symbol == "function" && Symbol.iterator, E = "@@iterator";
3026
3026
  function L(k) {
3027
- var A = k && (x && k[x] || k[_]);
3027
+ var A = k && (x && k[x] || k[E]);
3028
3028
  if (typeof A == "function")
3029
3029
  return A;
3030
3030
  }
@@ -3094,7 +3094,7 @@ function fa() {
3094
3094
  return p(A);
3095
3095
  }
3096
3096
  function i() {
3097
- return p(E);
3097
+ return p(_);
3098
3098
  }
3099
3099
  function l(k) {
3100
3100
  function A(ne, oe, se, fe, le) {
@@ -3117,7 +3117,7 @@ function fa() {
3117
3117
  function s() {
3118
3118
  function k(A, ne, oe, se, fe) {
3119
3119
  var le = A[ne];
3120
- if (!j(le)) {
3120
+ if (!w(le)) {
3121
3121
  var N = U(le);
3122
3122
  return new u("Invalid " + se + " `" + fe + "` of type " + ("`" + N + "` supplied to `" + oe + "`, expected a single ReactElement."));
3123
3123
  }
@@ -3150,7 +3150,7 @@ function fa() {
3150
3150
  if (!Array.isArray(k))
3151
3151
  return e.NODE_ENV !== "production" && (arguments.length > 1 ? d(
3152
3152
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
3153
- ) : d("Invalid argument supplied to oneOf, expected an array.")), E;
3153
+ ) : d("Invalid argument supplied to oneOf, expected an array.")), _;
3154
3154
  function A(ne, oe, se, fe, le) {
3155
3155
  for (var N = ne[oe], B = 0; B < k.length; B++)
3156
3156
  if (m(N, k[B]))
@@ -3182,13 +3182,13 @@ function fa() {
3182
3182
  }
3183
3183
  function M(k) {
3184
3184
  if (!Array.isArray(k))
3185
- return e.NODE_ENV !== "production" && d("Invalid argument supplied to oneOfType, expected an instance of array."), E;
3185
+ return e.NODE_ENV !== "production" && d("Invalid argument supplied to oneOfType, expected an instance of array."), _;
3186
3186
  for (var A = 0; A < k.length; A++) {
3187
3187
  var ne = k[A];
3188
3188
  if (typeof ne != "function")
3189
3189
  return d(
3190
3190
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ce(ne) + " at index " + A + "."
3191
- ), E;
3191
+ ), _;
3192
3192
  }
3193
3193
  function oe(se, fe, le, N, B) {
3194
3194
  for (var Q = [], K = 0; K < k.length; K++) {
@@ -3264,7 +3264,7 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
3264
3264
  case "object":
3265
3265
  if (Array.isArray(k))
3266
3266
  return k.every(ee);
3267
- if (k === null || j(k))
3267
+ if (k === null || w(k))
3268
3268
  return !0;
3269
3269
  var A = L(k);
3270
3270
  if (A) {
@@ -3325,18 +3325,18 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
3325
3325
  return T.checkPropTypes = c, T.resetWarningCache = c.resetWarningCache, T.PropTypes = T, T;
3326
3326
  }, fr;
3327
3327
  }
3328
- var hr, hn;
3329
- function ha() {
3330
- if (hn) return hr;
3331
- hn = 1;
3332
- var e = /* @__PURE__ */ Lr();
3328
+ var hr, mn;
3329
+ function ma() {
3330
+ if (mn) return hr;
3331
+ mn = 1;
3332
+ var e = /* @__PURE__ */ Nr();
3333
3333
  function n() {
3334
3334
  }
3335
3335
  function r() {
3336
3336
  }
3337
3337
  return r.resetWarningCache = n, hr = function() {
3338
- function a(d, E, j, O, x, _) {
3339
- if (_ !== e) {
3338
+ function a(d, _, w, O, x, E) {
3339
+ if (E !== e) {
3340
3340
  var L = new Error(
3341
3341
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
3342
3342
  );
@@ -3373,46 +3373,46 @@ function ha() {
3373
3373
  return c.PropTypes = c, c;
3374
3374
  }, hr;
3375
3375
  }
3376
- var gn;
3377
- function at() {
3378
- if (gn) return Ht.exports;
3379
- gn = 1;
3376
+ var yn;
3377
+ function it() {
3378
+ if (yn) return Wt.exports;
3379
+ yn = 1;
3380
3380
  var e = {};
3381
3381
  if (e.NODE_ENV !== "production") {
3382
- var n = Hn(), r = !0;
3383
- Ht.exports = /* @__PURE__ */ fa()(n.isElement, r);
3382
+ var n = Bn(), r = !0;
3383
+ Wt.exports = /* @__PURE__ */ ga()(n.isElement, r);
3384
3384
  } else
3385
- Ht.exports = /* @__PURE__ */ ha()();
3386
- return Ht.exports;
3385
+ Wt.exports = /* @__PURE__ */ ma()();
3386
+ return Wt.exports;
3387
3387
  }
3388
- var Ot = { exports: {} }, gr, mn;
3389
- function ga() {
3390
- if (mn) return gr;
3391
- mn = 1;
3392
- var e = {}, n = Object.create, r = Object.defineProperty, a = Object.getOwnPropertyDescriptor, h = Object.getOwnPropertyNames, c = Object.getPrototypeOf, d = Object.prototype.hasOwnProperty, E = (f, w) => {
3393
- for (var z in w)
3394
- r(f, z, { get: w[z], enumerable: !0 });
3395
- }, j = (f, w, z, W) => {
3396
- if (w && typeof w == "object" || typeof w == "function")
3397
- for (let V of h(w))
3398
- !d.call(f, V) && V !== z && r(f, V, { get: () => w[V], enumerable: !(W = a(w, V)) || W.enumerable });
3388
+ var Ot = { exports: {} }, gr, vn;
3389
+ function ya() {
3390
+ if (vn) return gr;
3391
+ vn = 1;
3392
+ var e = {}, n = Object.create, r = Object.defineProperty, a = Object.getOwnPropertyDescriptor, h = Object.getOwnPropertyNames, c = Object.getPrototypeOf, d = Object.prototype.hasOwnProperty, _ = (f, j) => {
3393
+ for (var z in j)
3394
+ r(f, z, { get: j[z], enumerable: !0 });
3395
+ }, w = (f, j, z, W) => {
3396
+ if (j && typeof j == "object" || typeof j == "function")
3397
+ for (let V of h(j))
3398
+ !d.call(f, V) && V !== z && r(f, V, { get: () => j[V], enumerable: !(W = a(j, V)) || W.enumerable });
3399
3399
  return f;
3400
- }, O = (f, w, z) => (z = f != null ? n(c(f)) : {}, j(
3400
+ }, O = (f, j, z) => (z = f != null ? n(c(f)) : {}, w(
3401
3401
  // If the importer is in node compatibility mode or this is not an ESM
3402
3402
  // file that has been converted to a CommonJS file using a Babel-
3403
3403
  // compatible transform (i.e. "__esModule" has not been set), then set
3404
3404
  // "default" to the CommonJS "module.exports" for node compatibility.
3405
3405
  !f || !f.__esModule ? r(z, "default", { value: f, enumerable: !0 }) : z,
3406
3406
  f
3407
- )), x = (f) => j(r({}, "__esModule", { value: !0 }), f), _ = {};
3408
- E(_, {
3407
+ )), x = (f) => w(r({}, "__esModule", { value: !0 }), f), E = {};
3408
+ _(E, {
3409
3409
  DraggableCore: () => ge,
3410
3410
  default: () => Se
3411
- }), gr = x(_);
3412
- var L = O(Ne), R = O(/* @__PURE__ */ at()), T = O(vr), m = Zt();
3413
- function u(f, w) {
3411
+ }), gr = x(E);
3412
+ var L = O(Ne), R = O(/* @__PURE__ */ it()), T = O(br), m = Zt();
3413
+ function u(f, j) {
3414
3414
  for (let z = 0, W = f.length; z < W; z++)
3415
- if (w.apply(w, [f[z], z, f])) return f[z];
3415
+ if (j.apply(j, [f[z], z, f])) return f[z];
3416
3416
  }
3417
3417
  function p(f) {
3418
3418
  return typeof f == "function" || Object.prototype.toString.call(f) === "[object Function]";
@@ -3423,31 +3423,31 @@ function ga() {
3423
3423
  function i(f) {
3424
3424
  return parseInt(f, 10);
3425
3425
  }
3426
- function l(f, w, z) {
3427
- if (f[w])
3428
- return new Error(`Invalid prop ${w} passed to ${z} - do not set this, set it on the child.`);
3426
+ function l(f, j, z) {
3427
+ if (f[j])
3428
+ return new Error(`Invalid prop ${j} passed to ${z} - do not set this, set it on the child.`);
3429
3429
  }
3430
3430
  var s = ["Moz", "Webkit", "O", "ms"];
3431
3431
  function b(f = "transform") {
3432
- var w, z;
3432
+ var j, z;
3433
3433
  if (typeof window > "u") return "";
3434
- const W = (z = (w = window.document) == null ? void 0 : w.documentElement) == null ? void 0 : z.style;
3434
+ const W = (z = (j = window.document) == null ? void 0 : j.documentElement) == null ? void 0 : z.style;
3435
3435
  if (!W || f in W) return "";
3436
3436
  for (let V = 0; V < s.length; V++)
3437
3437
  if (P(f, s[V]) in W) return s[V];
3438
3438
  return "";
3439
3439
  }
3440
- function P(f, w) {
3441
- return w ? `${w}${S(f)}` : f;
3440
+ function P(f, j) {
3441
+ return j ? `${j}${S(f)}` : f;
3442
3442
  }
3443
3443
  function S(f) {
3444
- let w = "", z = !0;
3444
+ let j = "", z = !0;
3445
3445
  for (let W = 0; W < f.length; W++)
3446
- z ? (w += f[W].toUpperCase(), z = !1) : f[W] === "-" ? z = !0 : w += f[W];
3447
- return w;
3446
+ z ? (j += f[W].toUpperCase(), z = !1) : f[W] === "-" ? z = !0 : j += f[W];
3447
+ return j;
3448
3448
  }
3449
3449
  var D = b(), M = "";
3450
- function H(f, w) {
3450
+ function H(f, j) {
3451
3451
  var z;
3452
3452
  M || (M = (z = u([
3453
3453
  "matches",
@@ -3459,68 +3459,68 @@ function ga() {
3459
3459
  return p(f[V]);
3460
3460
  })) != null ? z : "");
3461
3461
  const W = f[M];
3462
- return p(W) ? !!W.call(f, w) : !1;
3462
+ return p(W) ? !!W.call(f, j) : !1;
3463
3463
  }
3464
- function q(f, w, z) {
3464
+ function q(f, j, z) {
3465
3465
  let W = f;
3466
3466
  do {
3467
- if (H(W, w)) return !0;
3467
+ if (H(W, j)) return !0;
3468
3468
  if (W === z) return !1;
3469
3469
  W = W.parentNode;
3470
3470
  } while (W);
3471
3471
  return !1;
3472
3472
  }
3473
- function Y(f, w, z, W) {
3473
+ function Y(f, j, z, W) {
3474
3474
  if (!f) return;
3475
3475
  const V = { capture: !0, ...W }, je = z;
3476
- f.addEventListener ? f.addEventListener(w, je, V) : f.attachEvent ? f.attachEvent("on" + w, je) : f["on" + w] = je;
3476
+ f.addEventListener ? f.addEventListener(j, je, V) : f.attachEvent ? f.attachEvent("on" + j, je) : f["on" + j] = je;
3477
3477
  }
3478
- function J(f, w, z, W) {
3478
+ function J(f, j, z, W) {
3479
3479
  if (!f) return;
3480
3480
  const V = { capture: !0, ...W }, je = z;
3481
- f.removeEventListener ? f.removeEventListener(w, je, V) : f.detachEvent ? f.detachEvent("on" + w, je) : f["on" + w] = null;
3481
+ f.removeEventListener ? f.removeEventListener(j, je, V) : f.detachEvent ? f.detachEvent("on" + j, je) : f["on" + j] = null;
3482
3482
  }
3483
3483
  function ee(f) {
3484
- let w = f.clientHeight;
3484
+ let j = f.clientHeight;
3485
3485
  const z = f.ownerDocument.defaultView.getComputedStyle(f);
3486
- return w += i(z.borderTopWidth), w += i(z.borderBottomWidth), w;
3486
+ return j += i(z.borderTopWidth), j += i(z.borderBottomWidth), j;
3487
3487
  }
3488
3488
  function G(f) {
3489
- let w = f.clientWidth;
3489
+ let j = f.clientWidth;
3490
3490
  const z = f.ownerDocument.defaultView.getComputedStyle(f);
3491
- return w += i(z.borderLeftWidth), w += i(z.borderRightWidth), w;
3491
+ return j += i(z.borderLeftWidth), j += i(z.borderRightWidth), j;
3492
3492
  }
3493
3493
  function U(f) {
3494
- let w = f.clientHeight;
3494
+ let j = f.clientHeight;
3495
3495
  const z = f.ownerDocument.defaultView.getComputedStyle(f);
3496
- return w -= i(z.paddingTop), w -= i(z.paddingBottom), w;
3496
+ return j -= i(z.paddingTop), j -= i(z.paddingBottom), j;
3497
3497
  }
3498
3498
  function re(f) {
3499
- let w = f.clientWidth;
3499
+ let j = f.clientWidth;
3500
3500
  const z = f.ownerDocument.defaultView.getComputedStyle(f);
3501
- return w -= i(z.paddingLeft), w -= i(z.paddingRight), w;
3501
+ return j -= i(z.paddingLeft), j -= i(z.paddingRight), j;
3502
3502
  }
3503
- function ce(f, w, z) {
3504
- const V = w === w.ownerDocument.body ? { left: 0, top: 0 } : w.getBoundingClientRect(), je = (f.clientX + w.scrollLeft - V.left) / z, me = (f.clientY + w.scrollTop - V.top) / z;
3503
+ function ce(f, j, z) {
3504
+ const V = j === j.ownerDocument.body ? { left: 0, top: 0 } : j.getBoundingClientRect(), je = (f.clientX + j.scrollLeft - V.left) / z, me = (f.clientY + j.scrollTop - V.top) / z;
3505
3505
  return { x: je, y: me };
3506
3506
  }
3507
- function de(f, w) {
3508
- const z = A(f, w, "px");
3507
+ function de(f, j) {
3508
+ const z = A(f, j, "px");
3509
3509
  return { [P("transform", D)]: z };
3510
3510
  }
3511
- function k(f, w) {
3512
- return A(f, w, "");
3511
+ function k(f, j) {
3512
+ return A(f, j, "");
3513
3513
  }
3514
- function A({ x: f, y: w }, z, W) {
3515
- let V = `translate(${f}${W},${w}${W})`;
3514
+ function A({ x: f, y: j }, z, W) {
3515
+ let V = `translate(${f}${W},${j}${W})`;
3516
3516
  if (z) {
3517
3517
  const je = `${typeof z.x == "string" ? z.x : z.x + W}`, me = `${typeof z.y == "string" ? z.y : z.y + W}`;
3518
3518
  V = `translate(${je}, ${me})` + V;
3519
3519
  }
3520
3520
  return V;
3521
3521
  }
3522
- function ne(f, w) {
3523
- return f.targetTouches && u(f.targetTouches, (z) => w === z.identifier) || f.changedTouches && u(f.changedTouches, (z) => w === z.identifier);
3522
+ function ne(f, j) {
3523
+ return f.targetTouches && u(f.targetTouches, (z) => j === z.identifier) || f.changedTouches && u(f.changedTouches, (z) => j === z.identifier);
3524
3524
  }
3525
3525
  function oe(f) {
3526
3526
  if (f.targetTouches && f.targetTouches[0]) return f.targetTouches[0].identifier;
@@ -3528,10 +3528,10 @@ function ga() {
3528
3528
  }
3529
3529
  function se(f) {
3530
3530
  if (!f) return;
3531
- let w = f.getElementById("react-draggable-style-el");
3532
- w || (w = f.createElement("style"), w.type = "text/css", w.id = "react-draggable-style-el", w.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
3533
- `, w.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
3534
- `, f.getElementsByTagName("head")[0].appendChild(w)), f.body && N(f.body, "react-draggable-transparent-selection");
3531
+ let j = f.getElementById("react-draggable-style-el");
3532
+ j || (j = f.createElement("style"), j.type = "text/css", j.id = "react-draggable-style-el", j.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
3533
+ `, j.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
3534
+ `, f.getElementsByTagName("head")[0].appendChild(j)), f.body && N(f.body, "react-draggable-transparent-selection");
3535
3535
  }
3536
3536
  function fe(f) {
3537
3537
  window.requestAnimationFrame ? window.requestAnimationFrame(() => {
@@ -3542,9 +3542,9 @@ function ga() {
3542
3542
  if (f)
3543
3543
  try {
3544
3544
  f.body && B(f.body, "react-draggable-transparent-selection");
3545
- const w = f.selection;
3546
- if (w)
3547
- w.empty();
3545
+ const j = f.selection;
3546
+ if (j)
3547
+ j.empty();
3548
3548
  else {
3549
3549
  const z = (f.defaultView || window).getSelection();
3550
3550
  z && z.type !== "Caret" && z.removeAllRanges();
@@ -3552,14 +3552,14 @@ function ga() {
3552
3552
  } catch {
3553
3553
  }
3554
3554
  }
3555
- function N(f, w) {
3556
- f.classList ? f.classList.add(w) : f.className.match(new RegExp(`(?:^|\\s)${w}(?!\\S)`)) || (f.className += ` ${w}`);
3555
+ function N(f, j) {
3556
+ f.classList ? f.classList.add(j) : f.className.match(new RegExp(`(?:^|\\s)${j}(?!\\S)`)) || (f.className += ` ${j}`);
3557
3557
  }
3558
- function B(f, w) {
3559
- f.classList ? f.classList.remove(w) : f.className = f.className.replace(new RegExp(`(?:^|\\s)${w}(?!\\S)`, "g"), "");
3558
+ function B(f, j) {
3559
+ f.classList ? f.classList.remove(j) : f.className = f.className.replace(new RegExp(`(?:^|\\s)${j}(?!\\S)`, "g"), "");
3560
3560
  }
3561
- function Q(f, w, z) {
3562
- if (!f.props.bounds) return [w, z];
3561
+ function Q(f, j, z) {
3562
+ if (!f.props.bounds) return [j, z];
3563
3563
  let { bounds: W } = f.props;
3564
3564
  W = typeof W == "string" ? W : ke(W);
3565
3565
  const V = y(f);
@@ -3578,10 +3578,10 @@ function ga() {
3578
3578
  bottom: U(Te) - ee(V) - V.offsetTop + i(nt.paddingBottom) - i(Qe.marginBottom)
3579
3579
  };
3580
3580
  }
3581
- return t(W.right) && (w = Math.min(w, W.right)), t(W.bottom) && (z = Math.min(z, W.bottom)), t(W.left) && (w = Math.max(w, W.left)), t(W.top) && (z = Math.max(z, W.top)), [w, z];
3581
+ return t(W.right) && (j = Math.min(j, W.right)), t(W.bottom) && (z = Math.min(z, W.bottom)), t(W.left) && (j = Math.max(j, W.left)), t(W.top) && (z = Math.max(z, W.top)), [j, z];
3582
3582
  }
3583
- function K(f, w, z) {
3584
- const W = Math.round(w / f[0]) * f[0], V = Math.round(z / f[1]) * f[1];
3583
+ function K(f, j, z) {
3584
+ const W = Math.round(j / f[0]) * f[0], V = Math.round(z / f[1]) * f[1];
3585
3585
  return [W, V];
3586
3586
  }
3587
3587
  function ie(f) {
@@ -3590,40 +3590,40 @@ function ga() {
3590
3590
  function $(f) {
3591
3591
  return f.props.axis === "both" || f.props.axis === "y";
3592
3592
  }
3593
- function he(f, w, z) {
3594
- const W = typeof w == "number" ? ne(f, w) : null;
3595
- if (typeof w == "number" && !W) return null;
3593
+ function he(f, j, z) {
3594
+ const W = typeof j == "number" ? ne(f, j) : null;
3595
+ if (typeof j == "number" && !W) return null;
3596
3596
  const V = y(z), je = z.props.offsetParent || V.offsetParent || V.ownerDocument.body;
3597
3597
  return ce(W || f, je, z.props.scale);
3598
3598
  }
3599
- function De(f, w, z) {
3599
+ function De(f, j, z) {
3600
3600
  const W = !t(f.lastX), V = y(f);
3601
3601
  return W ? {
3602
3602
  node: V,
3603
3603
  deltaX: 0,
3604
3604
  deltaY: 0,
3605
- lastX: w,
3605
+ lastX: j,
3606
3606
  lastY: z,
3607
- x: w,
3607
+ x: j,
3608
3608
  y: z
3609
3609
  } : {
3610
3610
  node: V,
3611
- deltaX: w - f.lastX,
3611
+ deltaX: j - f.lastX,
3612
3612
  deltaY: z - f.lastY,
3613
3613
  lastX: f.lastX,
3614
3614
  lastY: f.lastY,
3615
- x: w,
3615
+ x: j,
3616
3616
  y: z
3617
3617
  };
3618
3618
  }
3619
- function ve(f, w) {
3619
+ function ve(f, j) {
3620
3620
  const z = f.props.scale;
3621
3621
  return {
3622
- node: w.node,
3623
- x: f.state.x + w.deltaX / z,
3624
- y: f.state.y + w.deltaY / z,
3625
- deltaX: w.deltaX / z,
3626
- deltaY: w.deltaY / z,
3622
+ node: j.node,
3623
+ x: f.state.x + j.deltaX / z,
3624
+ y: f.state.y + j.deltaY / z,
3625
+ deltaX: j.deltaX / z,
3626
+ deltaY: j.deltaY / z,
3627
3627
  lastX: f.state.x,
3628
3628
  lastY: f.state.y
3629
3629
  };
@@ -3637,12 +3637,12 @@ function ga() {
3637
3637
  };
3638
3638
  }
3639
3639
  function y(f) {
3640
- const w = f.findDOMNode();
3641
- if (!w)
3640
+ const j = f.findDOMNode();
3641
+ if (!j)
3642
3642
  throw new Error("<DraggableCore>: Unmounted during event!");
3643
- return w;
3643
+ return j;
3644
3644
  }
3645
- var v = O(Ne), C = O(/* @__PURE__ */ at()), I = O(vr);
3645
+ var v = O(Ne), C = O(/* @__PURE__ */ it()), I = O(br);
3646
3646
  function te(...f) {
3647
3647
  e.DRAGGABLE_DEBUG && console.log(...f);
3648
3648
  }
@@ -3661,11 +3661,11 @@ function ga() {
3661
3661
  constructor() {
3662
3662
  super(...arguments), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, this.touchIdentifier = null, this.mounted = !1, this.handleDragStart = (f) => {
3663
3663
  if (this.props.onMouseDown(f), !this.props.allowAnyClick && (typeof f.button == "number" && f.button !== 0 || f.ctrlKey)) return !1;
3664
- const w = this.findDOMNode();
3665
- if (!w || !w.ownerDocument || !w.ownerDocument.body)
3664
+ const j = this.findDOMNode();
3665
+ if (!j || !j.ownerDocument || !j.ownerDocument.body)
3666
3666
  throw new Error("<DraggableCore> not mounted on DragStart!");
3667
- const { ownerDocument: z } = w;
3668
- if (this.props.disabled || !(f.target instanceof z.defaultView.Node) || this.props.handle && !q(f.target, this.props.handle, w) || this.props.cancel && q(f.target, this.props.cancel, w))
3667
+ const { ownerDocument: z } = j;
3668
+ if (this.props.disabled || !(f.target instanceof z.defaultView.Node) || this.props.handle && !q(f.target, this.props.handle, j) || this.props.cancel && q(f.target, this.props.cancel, j))
3669
3669
  return;
3670
3670
  f.type === "touchstart" && !this.props.allowMobileScroll && f.preventDefault();
3671
3671
  const W = oe(f);
@@ -3675,9 +3675,9 @@ function ga() {
3675
3675
  const { x: je, y: me } = V, _e = De(this, je, me);
3676
3676
  te("DraggableCore: handleDragStart: %j", _e), te("calling", this.props.onStart), !(this.props.onStart(f, _e) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && se(z), this.dragging = !0, this.lastX = je, this.lastY = me, Y(z, ae.move, this.handleDrag), Y(z, ae.stop, this.handleDragStop));
3677
3677
  }, this.handleDrag = (f) => {
3678
- const w = he(f, this.touchIdentifier, this);
3679
- if (w == null) return;
3680
- let { x: z, y: W } = w;
3678
+ const j = he(f, this.touchIdentifier, this);
3679
+ if (j == null) return;
3680
+ let { x: z, y: W } = j;
3681
3681
  if (Array.isArray(this.props.grid)) {
3682
3682
  let me = z - this.lastX, _e = W - this.lastY;
3683
3683
  if ([me, _e] = K(this.props.grid, me, _e), !me && !_e) return;
@@ -3696,9 +3696,9 @@ function ga() {
3696
3696
  this.lastX = z, this.lastY = W;
3697
3697
  }, this.handleDragStop = (f) => {
3698
3698
  if (!this.dragging) return;
3699
- const w = he(f, this.touchIdentifier, this);
3700
- if (w == null) return;
3701
- let { x: z, y: W } = w;
3699
+ const j = he(f, this.touchIdentifier, this);
3700
+ if (j == null) return;
3701
+ let { x: z, y: W } = j;
3702
3702
  if (Array.isArray(this.props.grid)) {
3703
3703
  let _e = z - this.lastX || 0, Te = W - this.lastY || 0;
3704
3704
  [_e, Te] = K(this.props.grid, _e, Te), z = this.lastX + _e, W = this.lastY + Te;
@@ -3718,8 +3718,8 @@ function ga() {
3718
3718
  this.mounted = !1;
3719
3719
  const f = this.findDOMNode();
3720
3720
  if (f) {
3721
- const { ownerDocument: w } = f;
3722
- J(w, X.mouse.move, this.handleDrag), J(w, X.touch.move, this.handleDrag), J(w, X.mouse.stop, this.handleDragStop), J(w, X.touch.stop, this.handleDragStop), J(f, X.touch.start, this.onTouchStart, { passive: !1 }), this.props.enableUserSelectHack && fe(w);
3721
+ const { ownerDocument: j } = f;
3722
+ J(j, X.mouse.move, this.handleDrag), J(j, X.touch.move, this.handleDrag), J(j, X.mouse.stop, this.handleDragStop), J(j, X.touch.stop, this.handleDragStop), J(f, X.touch.start, this.onTouchStart, { passive: !1 }), this.props.enableUserSelectHack && fe(j);
3723
3723
  }
3724
3724
  }
3725
3725
  // React 19 removed ReactDOM.findDOMNode, so nodeRef is now required.
@@ -3728,8 +3728,8 @@ function ga() {
3728
3728
  var f;
3729
3729
  if ((f = this.props) != null && f.nodeRef)
3730
3730
  return this.props.nodeRef.current;
3731
- const w = I.default;
3732
- return typeof w.findDOMNode == "function" ? w.findDOMNode(this) : (te(
3731
+ const j = I.default;
3732
+ return typeof j.findDOMNode == "function" ? j.findDOMNode(this) : (te(
3733
3733
  "react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef"
3734
3734
  ), null);
3735
3735
  }
@@ -3778,8 +3778,8 @@ function ga() {
3778
3778
  * `offsetParent`, if set, uses the passed DOM node to compute drag offsets
3779
3779
  * instead of using the parent node.
3780
3780
  */
3781
- offsetParent: function(f, w) {
3782
- if (f[w] && f[w].nodeType !== 1)
3781
+ offsetParent: function(f, j) {
3782
+ if (f[j] && f[j].nodeType !== 1)
3783
3783
  throw new Error("Draggable's offsetParent must be a DOM Node.");
3784
3784
  },
3785
3785
  /**
@@ -3894,10 +3894,10 @@ function ga() {
3894
3894
  };
3895
3895
  var Se = class extends L.Component {
3896
3896
  constructor(f) {
3897
- super(f), this.onDragStart = (w, z) => {
3898
- if (te("Draggable: onDragStart: %j", z), this.props.onStart(w, ve(this, z)) === !1) return !1;
3897
+ super(f), this.onDragStart = (j, z) => {
3898
+ if (te("Draggable: onDragStart: %j", z), this.props.onStart(j, ve(this, z)) === !1) return !1;
3899
3899
  this.setState({ dragging: !0, dragged: !0 });
3900
- }, this.onDrag = (w, z) => {
3900
+ }, this.onDrag = (j, z) => {
3901
3901
  if (!this.state.dragging) return !1;
3902
3902
  te("Draggable: onDrag: %j", z);
3903
3903
  const W = ve(this, z), V = {
@@ -3912,10 +3912,10 @@ function ga() {
3912
3912
  const [Te, Qe] = Q(this, V.x, V.y);
3913
3913
  V.x = Te, V.y = Qe, V.slackX = this.state.slackX + (me - V.x), V.slackY = this.state.slackY + (_e - V.y), W.x = V.x, W.y = V.y, W.deltaX = V.x - this.state.x, W.deltaY = V.y - this.state.y;
3914
3914
  }
3915
- if (this.props.onDrag(w, W) === !1) return !1;
3915
+ if (this.props.onDrag(j, W) === !1) return !1;
3916
3916
  this.setState(V);
3917
- }, this.onDragStop = (w, z) => {
3918
- if (!this.state.dragging || this.props.onStop(w, ve(this, z)) === !1) return !1;
3917
+ }, this.onDragStop = (j, z) => {
3918
+ if (!this.state.dragging || this.props.onStop(j, ve(this, z)) === !1) return !1;
3919
3919
  te("Draggable: onDragStop: %j", z);
3920
3920
  const V = {
3921
3921
  dragging: !1,
@@ -3945,8 +3945,8 @@ function ga() {
3945
3945
  }
3946
3946
  // React 16.3+
3947
3947
  // Arity (props, state)
3948
- static getDerivedStateFromProps({ position: f }, { prevPropsPosition: w }) {
3949
- return f && (!w || f.x !== w.x || f.y !== w.y) ? (te("Draggable: getDerivedStateFromProps %j", { position: f, prevPropsPosition: w }), {
3948
+ static getDerivedStateFromProps({ position: f }, { prevPropsPosition: j }) {
3949
+ return f && (!j || f.x !== j.x || f.y !== j.y) ? (te("Draggable: getDerivedStateFromProps %j", { position: f, prevPropsPosition: j }), {
3950
3950
  x: f.x,
3951
3951
  y: f.y,
3952
3952
  prevPropsPosition: { ...f }
@@ -3964,13 +3964,13 @@ function ga() {
3964
3964
  var f;
3965
3965
  if ((f = this.props) != null && f.nodeRef)
3966
3966
  return this.props.nodeRef.current;
3967
- const w = T.default;
3968
- return typeof w.findDOMNode == "function" ? w.findDOMNode(this) : null;
3967
+ const j = T.default;
3968
+ return typeof j.findDOMNode == "function" ? j.findDOMNode(this) : null;
3969
3969
  }
3970
3970
  render() {
3971
3971
  const {
3972
3972
  axis: f,
3973
- bounds: w,
3973
+ bounds: j,
3974
3974
  children: z,
3975
3975
  defaultPosition: W,
3976
3976
  defaultClassName: V,
@@ -3981,22 +3981,22 @@ function ga() {
3981
3981
  scale: Qe,
3982
3982
  ...nt
3983
3983
  } = this.props;
3984
- let St = {}, ut = null;
3985
- const Ze = !!!_e || this.state.dragging, dt = _e || W, pt = {
3984
+ let St = {}, dt = null;
3985
+ const Ze = !!!_e || this.state.dragging, pt = _e || W, ft = {
3986
3986
  // Set left if horizontal drag is enabled
3987
- x: ie(this) && Ze ? this.state.x : dt.x,
3987
+ x: ie(this) && Ze ? this.state.x : pt.x,
3988
3988
  // Set top if vertical drag is enabled
3989
- y: $(this) && Ze ? this.state.y : dt.y
3989
+ y: $(this) && Ze ? this.state.y : pt.y
3990
3990
  };
3991
- this.state.isElementSVG ? ut = k(pt, Te) : St = de(pt, Te);
3992
- const ft = L.Children.only(z), rr = (0, m.clsx)(ft.props.className || "", V, {
3991
+ this.state.isElementSVG ? dt = k(ft, Te) : St = de(ft, Te);
3992
+ const ht = L.Children.only(z), rr = (0, m.clsx)(ht.props.className || "", V, {
3993
3993
  [je]: this.state.dragging,
3994
3994
  [me]: this.state.dragged
3995
3995
  });
3996
- return /* @__PURE__ */ L.createElement(ge, { ...nt, onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }, L.cloneElement(ft, {
3996
+ return /* @__PURE__ */ L.createElement(ge, { ...nt, onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }, L.cloneElement(ht, {
3997
3997
  className: rr,
3998
- style: { ...ft.props.style, ...St },
3999
- transform: ut
3998
+ style: { ...ht.props.style, ...St },
3999
+ transform: dt
4000
4000
  }));
4001
4001
  }
4002
4002
  };
@@ -4122,70 +4122,70 @@ function ga() {
4122
4122
  scale: 1
4123
4123
  }, gr;
4124
4124
  }
4125
- var yn;
4126
- function Nr() {
4127
- if (yn) return Ot.exports;
4128
- yn = 1;
4129
- const e = ga(), n = e.DraggableCore, r = e.default || e;
4125
+ var bn;
4126
+ function Ar() {
4127
+ if (bn) return Ot.exports;
4128
+ bn = 1;
4129
+ const e = ya(), n = e.DraggableCore, r = e.default || e;
4130
4130
  return Ot.exports = r, Ot.exports.default = r, Ot.exports.DraggableCore = n, Ot.exports;
4131
4131
  }
4132
- var Rt = { exports: {} }, _t = {}, Bt = {}, vn;
4133
- function ma() {
4134
- if (vn) return Bt;
4135
- vn = 1, Bt.__esModule = !0, Bt.cloneElement = E;
4132
+ var Rt = { exports: {} }, _t = {}, Yt = {}, xn;
4133
+ function va() {
4134
+ if (xn) return Yt;
4135
+ xn = 1, Yt.__esModule = !0, Yt.cloneElement = _;
4136
4136
  var e = n(Ne);
4137
- function n(j) {
4138
- return j && j.__esModule ? j : { default: j };
4137
+ function n(w) {
4138
+ return w && w.__esModule ? w : { default: w };
4139
4139
  }
4140
- function r(j, O) {
4141
- var x = Object.keys(j);
4140
+ function r(w, O) {
4141
+ var x = Object.keys(w);
4142
4142
  if (Object.getOwnPropertySymbols) {
4143
- var _ = Object.getOwnPropertySymbols(j);
4144
- O && (_ = _.filter(function(L) {
4145
- return Object.getOwnPropertyDescriptor(j, L).enumerable;
4146
- })), x.push.apply(x, _);
4143
+ var E = Object.getOwnPropertySymbols(w);
4144
+ O && (E = E.filter(function(L) {
4145
+ return Object.getOwnPropertyDescriptor(w, L).enumerable;
4146
+ })), x.push.apply(x, E);
4147
4147
  }
4148
4148
  return x;
4149
4149
  }
4150
- function a(j) {
4150
+ function a(w) {
4151
4151
  for (var O = 1; O < arguments.length; O++) {
4152
4152
  var x = arguments[O] != null ? arguments[O] : {};
4153
- O % 2 ? r(Object(x), !0).forEach(function(_) {
4154
- h(j, _, x[_]);
4155
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(j, Object.getOwnPropertyDescriptors(x)) : r(Object(x)).forEach(function(_) {
4156
- Object.defineProperty(j, _, Object.getOwnPropertyDescriptor(x, _));
4153
+ O % 2 ? r(Object(x), !0).forEach(function(E) {
4154
+ h(w, E, x[E]);
4155
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(w, Object.getOwnPropertyDescriptors(x)) : r(Object(x)).forEach(function(E) {
4156
+ Object.defineProperty(w, E, Object.getOwnPropertyDescriptor(x, E));
4157
4157
  });
4158
4158
  }
4159
- return j;
4159
+ return w;
4160
4160
  }
4161
- function h(j, O, x) {
4162
- return (O = c(O)) in j ? Object.defineProperty(j, O, { value: x, enumerable: !0, configurable: !0, writable: !0 }) : j[O] = x, j;
4161
+ function h(w, O, x) {
4162
+ return (O = c(O)) in w ? Object.defineProperty(w, O, { value: x, enumerable: !0, configurable: !0, writable: !0 }) : w[O] = x, w;
4163
4163
  }
4164
- function c(j) {
4165
- var O = d(j, "string");
4164
+ function c(w) {
4165
+ var O = d(w, "string");
4166
4166
  return typeof O == "symbol" ? O : O + "";
4167
4167
  }
4168
- function d(j, O) {
4169
- if (typeof j != "object" || !j) return j;
4170
- var x = j[Symbol.toPrimitive];
4168
+ function d(w, O) {
4169
+ if (typeof w != "object" || !w) return w;
4170
+ var x = w[Symbol.toPrimitive];
4171
4171
  if (x !== void 0) {
4172
- var _ = x.call(j, O);
4173
- if (typeof _ != "object") return _;
4172
+ var E = x.call(w, O);
4173
+ if (typeof E != "object") return E;
4174
4174
  throw new TypeError("@@toPrimitive must return a primitive value.");
4175
4175
  }
4176
- return (O === "string" ? String : Number)(j);
4176
+ return (O === "string" ? String : Number)(w);
4177
4177
  }
4178
- function E(j, O) {
4179
- return O.style && j.props.style && (O.style = a(a({}, j.props.style), O.style)), O.className && j.props.className && (O.className = j.props.className + " " + O.className), /* @__PURE__ */ e.default.cloneElement(j, O);
4178
+ function _(w, O) {
4179
+ return O.style && w.props.style && (O.style = a(a({}, w.props.style), O.style)), O.className && w.props.className && (O.className = w.props.className + " " + O.className), /* @__PURE__ */ e.default.cloneElement(w, O);
4180
4180
  }
4181
- return Bt;
4181
+ return Yt;
4182
4182
  }
4183
- var Et = {}, bn;
4184
- function Bn() {
4185
- if (bn) return Et;
4186
- bn = 1, Et.__esModule = !0, Et.resizableProps = void 0;
4187
- var e = n(/* @__PURE__ */ at());
4188
- Nr();
4183
+ var Et = {}, Sn;
4184
+ function Vn() {
4185
+ if (Sn) return Et;
4186
+ Sn = 1, Et.__esModule = !0, Et.resizableProps = void 0;
4187
+ var e = n(/* @__PURE__ */ it());
4188
+ Ar();
4189
4189
  function n(r) {
4190
4190
  return r && r.__esModule ? r : { default: r };
4191
4191
  }
@@ -4288,11 +4288,11 @@ function Bn() {
4288
4288
  }
4289
4289
  }, Et;
4290
4290
  }
4291
- var xn;
4292
- function Yn() {
4293
- if (xn) return _t;
4294
- xn = 1, _t.__esModule = !0, _t.default = void 0;
4295
- var e = c(Ne), n = Nr(), r = ma(), a = Bn();
4291
+ var wn;
4292
+ function Un() {
4293
+ if (wn) return _t;
4294
+ wn = 1, _t.__esModule = !0, _t.default = void 0;
4295
+ var e = c(Ne), n = Ar(), r = va(), a = Vn();
4296
4296
  const h = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
4297
4297
  function c(T, m) {
4298
4298
  if (typeof WeakMap == "function") var u = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap();
@@ -4317,7 +4317,7 @@ function Yn() {
4317
4317
  return T;
4318
4318
  }, d.apply(null, arguments);
4319
4319
  }
4320
- function E(T, m) {
4320
+ function _(T, m) {
4321
4321
  if (T == null) return {};
4322
4322
  var u = {};
4323
4323
  for (var p in T) if ({}.hasOwnProperty.call(T, p)) {
@@ -4326,7 +4326,7 @@ function Yn() {
4326
4326
  }
4327
4327
  return u;
4328
4328
  }
4329
- function j(T, m) {
4329
+ function w(T, m) {
4330
4330
  var u = Object.keys(T);
4331
4331
  if (Object.getOwnPropertySymbols) {
4332
4332
  var p = Object.getOwnPropertySymbols(T);
@@ -4339,18 +4339,18 @@ function Yn() {
4339
4339
  function O(T) {
4340
4340
  for (var m = 1; m < arguments.length; m++) {
4341
4341
  var u = arguments[m] != null ? arguments[m] : {};
4342
- m % 2 ? j(Object(u), !0).forEach(function(p) {
4342
+ m % 2 ? w(Object(u), !0).forEach(function(p) {
4343
4343
  x(T, p, u[p]);
4344
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(T, Object.getOwnPropertyDescriptors(u)) : j(Object(u)).forEach(function(p) {
4344
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(T, Object.getOwnPropertyDescriptors(u)) : w(Object(u)).forEach(function(p) {
4345
4345
  Object.defineProperty(T, p, Object.getOwnPropertyDescriptor(u, p));
4346
4346
  });
4347
4347
  }
4348
4348
  return T;
4349
4349
  }
4350
4350
  function x(T, m, u) {
4351
- return (m = _(m)) in T ? Object.defineProperty(T, m, { value: u, enumerable: !0, configurable: !0, writable: !0 }) : T[m] = u, T;
4351
+ return (m = E(m)) in T ? Object.defineProperty(T, m, { value: u, enumerable: !0, configurable: !0, writable: !0 }) : T[m] = u, T;
4352
4352
  }
4353
- function _(T) {
4353
+ function E(T) {
4354
4354
  var m = L(T, "string");
4355
4355
  return typeof m == "symbol" ? m : m + "";
4356
4356
  }
@@ -4457,7 +4457,7 @@ function Yn() {
4457
4457
  m.width, m.height, m.handle, m.handleSize, m.lockAspectRatio, m.axis, m.minConstraints, m.maxConstraints, m.onResize, m.onResizeStop, m.onResizeStart;
4458
4458
  const i = m.resizeHandles;
4459
4459
  m.transformScale;
4460
- const l = E(m, h);
4460
+ const l = _(m, h);
4461
4461
  return (0, r.cloneElement)(u, O(O({}, l), {}, {
4462
4462
  className: (p ? p + " " : "") + "react-resizable",
4463
4463
  children: [...e.Children.toArray(u.props.children), ...i.map((s) => {
@@ -4484,11 +4484,11 @@ function Yn() {
4484
4484
  transformScale: 1
4485
4485
  }, _t;
4486
4486
  }
4487
- var Dt = {}, Sn;
4488
- function ya() {
4489
- if (Sn) return Dt;
4490
- Sn = 1, Dt.__esModule = !0, Dt.default = void 0;
4491
- var e = d(Ne), n = c(/* @__PURE__ */ at()), r = c(Yn()), a = Bn();
4487
+ var Dt = {}, jn;
4488
+ function ba() {
4489
+ if (jn) return Dt;
4490
+ jn = 1, Dt.__esModule = !0, Dt.default = void 0;
4491
+ var e = d(Ne), n = c(/* @__PURE__ */ it()), r = c(Un()), a = Vn();
4492
4492
  const h = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
4493
4493
  function c(m) {
4494
4494
  return m && m.__esModule ? m : { default: m };
@@ -4507,16 +4507,16 @@ function ya() {
4507
4507
  return P;
4508
4508
  })(m, u);
4509
4509
  }
4510
- function E() {
4511
- return E = Object.assign ? Object.assign.bind() : function(m) {
4510
+ function _() {
4511
+ return _ = Object.assign ? Object.assign.bind() : function(m) {
4512
4512
  for (var u = 1; u < arguments.length; u++) {
4513
4513
  var p = arguments[u];
4514
4514
  for (var t in p) ({}).hasOwnProperty.call(p, t) && (m[t] = p[t]);
4515
4515
  }
4516
4516
  return m;
4517
- }, E.apply(null, arguments);
4517
+ }, _.apply(null, arguments);
4518
4518
  }
4519
- function j(m, u) {
4519
+ function w(m, u) {
4520
4520
  var p = Object.keys(m);
4521
4521
  if (Object.getOwnPropertySymbols) {
4522
4522
  var t = Object.getOwnPropertySymbols(m);
@@ -4529,18 +4529,18 @@ function ya() {
4529
4529
  function O(m) {
4530
4530
  for (var u = 1; u < arguments.length; u++) {
4531
4531
  var p = arguments[u] != null ? arguments[u] : {};
4532
- u % 2 ? j(Object(p), !0).forEach(function(t) {
4532
+ u % 2 ? w(Object(p), !0).forEach(function(t) {
4533
4533
  x(m, t, p[t]);
4534
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(m, Object.getOwnPropertyDescriptors(p)) : j(Object(p)).forEach(function(t) {
4534
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(m, Object.getOwnPropertyDescriptors(p)) : w(Object(p)).forEach(function(t) {
4535
4535
  Object.defineProperty(m, t, Object.getOwnPropertyDescriptor(p, t));
4536
4536
  });
4537
4537
  }
4538
4538
  return m;
4539
4539
  }
4540
4540
  function x(m, u, p) {
4541
- return (u = _(u)) in m ? Object.defineProperty(m, u, { value: p, enumerable: !0, configurable: !0, writable: !0 }) : m[u] = p, m;
4541
+ return (u = E(u)) in m ? Object.defineProperty(m, u, { value: p, enumerable: !0, configurable: !0, writable: !0 }) : m[u] = p, m;
4542
4542
  }
4543
- function _(m) {
4543
+ function E(m) {
4544
4544
  var u = L(m, "string");
4545
4545
  return typeof u == "symbol" ? u : u + "";
4546
4546
  }
@@ -4604,7 +4604,7 @@ function ya() {
4604
4604
  resizeHandles: M,
4605
4605
  transformScale: q,
4606
4606
  width: this.state.width
4607
- }, /* @__PURE__ */ e.createElement("div", E({}, Y, {
4607
+ }, /* @__PURE__ */ e.createElement("div", _({}, Y, {
4608
4608
  style: O(O({}, H), {}, {
4609
4609
  width: this.state.width + "px",
4610
4610
  height: this.state.height + "px"
@@ -4616,21 +4616,21 @@ function ya() {
4616
4616
  children: n.default.element
4617
4617
  }), Dt;
4618
4618
  }
4619
- var wn;
4620
- function va() {
4621
- return wn || (wn = 1, Rt.exports = function() {
4619
+ var Cn;
4620
+ function xa() {
4621
+ return Cn || (Cn = 1, Rt.exports = function() {
4622
4622
  throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
4623
- }, Rt.exports.Resizable = Yn().default, Rt.exports.ResizableBox = ya().default), Rt.exports;
4623
+ }, Rt.exports.Resizable = Un().default, Rt.exports.ResizableBox = ba().default), Rt.exports;
4624
4624
  }
4625
- var rt = {}, jn;
4626
- function Vn() {
4627
- if (jn) return rt;
4628
- jn = 1;
4625
+ var rt = {}, Pn;
4626
+ function Gn() {
4627
+ if (Pn) return rt;
4628
+ Pn = 1;
4629
4629
  var e = {};
4630
4630
  Object.defineProperty(rt, "__esModule", {
4631
4631
  value: !0
4632
4632
  }), rt.resizeHandleType = rt.resizeHandleAxesType = rt.default = void 0;
4633
- var n = a(/* @__PURE__ */ at()), r = a(Ne);
4633
+ var n = a(/* @__PURE__ */ it()), r = a(Ne);
4634
4634
  function a(d) {
4635
4635
  return d && d.__esModule ? d : { default: d };
4636
4636
  }
@@ -4665,8 +4665,8 @@ function Vn() {
4665
4665
  // layout is an array of object with the format:
4666
4666
  // {x: Number, y: Number, w: Number, h: Number, i: String}
4667
4667
  layout: function(d) {
4668
- var E = d.layout;
4669
- E !== void 0 && xt().validateLayout(E, "layout");
4668
+ var _ = d.layout;
4669
+ _ !== void 0 && xt().validateLayout(_, "layout");
4670
4670
  },
4671
4671
  //
4672
4672
  // Grid Dimensions
@@ -4731,9 +4731,9 @@ function Vn() {
4731
4731
  h: n.default.number.isRequired
4732
4732
  }),
4733
4733
  // Children must not have duplicate keys.
4734
- children: function(d, E) {
4735
- const j = d[E], O = {};
4736
- r.default.Children.forEach(j, function(x) {
4734
+ children: function(d, _) {
4735
+ const w = d[_], O = {};
4736
+ r.default.Children.forEach(w, function(x) {
4737
4737
  if ((x == null ? void 0 : x.key) != null) {
4738
4738
  if (O[x.key])
4739
4739
  throw new Error('Duplicate child key "' + x.key + '" found! This will cause problems in ReactGridLayout.');
@@ -4745,13 +4745,13 @@ function Vn() {
4745
4745
  innerRef: n.default.any
4746
4746
  }, rt;
4747
4747
  }
4748
- var Cn;
4749
- function ba() {
4750
- if (Cn) return Pt;
4751
- Cn = 1, Object.defineProperty(Pt, "__esModule", {
4748
+ var On;
4749
+ function Sa() {
4750
+ if (On) return Pt;
4751
+ On = 1, Object.defineProperty(Pt, "__esModule", {
4752
4752
  value: !0
4753
4753
  }), Pt.default = void 0;
4754
- var e = O(Ne), n = vr, r = O(/* @__PURE__ */ at()), a = Nr(), h = va(), c = xt(), d = Mr(), E = Vn(), j = O(Zt());
4754
+ var e = O(Ne), n = br, r = O(/* @__PURE__ */ it()), a = Ar(), h = xa(), c = xt(), d = Lr(), _ = Gn(), w = O(Zt());
4755
4755
  function O(u) {
4756
4756
  return u && u.__esModule ? u : { default: u };
4757
4757
  }
@@ -4765,7 +4765,7 @@ function ba() {
4765
4765
  }
4766
4766
  return t;
4767
4767
  }
4768
- function _(u) {
4768
+ function E(u) {
4769
4769
  for (var p = 1; p < arguments.length; p++) {
4770
4770
  var t = arguments[p] != null ? arguments[p] : {};
4771
4771
  p % 2 ? x(Object(t), !0).forEach(function(i) {
@@ -5110,7 +5110,7 @@ function ba() {
5110
5110
  } = this.props, D = (0, d.calcGridItemPosition)(this.getPositionParams(), p, t, i, l, this.state), M = e.default.Children.only(this.props.children);
5111
5111
  let H = /* @__PURE__ */ e.default.cloneElement(M, {
5112
5112
  ref: this.elementRef,
5113
- className: (0, j.default)("react-grid-item", M.props.className, this.props.className, {
5113
+ className: (0, w.default)("react-grid-item", M.props.className, this.props.className, {
5114
5114
  static: this.props.static,
5115
5115
  resizing: !!this.state.resizing,
5116
5116
  "react-draggable": s,
@@ -5119,7 +5119,7 @@ function ba() {
5119
5119
  cssTransforms: S
5120
5120
  }),
5121
5121
  // We can set the width and height on the child, but unfortunately we can't set the position.
5122
- style: _(_(_({}, this.props.style), M.props.style), this.createStyle(D))
5122
+ style: E(E(E({}, this.props.style), M.props.style), this.createStyle(D))
5123
5123
  });
5124
5124
  return H = this.mixinResizable(H, D, b), H = this.mixinDraggable(H, s), H;
5125
5125
  }
@@ -5163,8 +5163,8 @@ function ba() {
5163
5163
  // ID is nice to have for callbacks
5164
5164
  i: r.default.string.isRequired,
5165
5165
  // Resize handle options
5166
- resizeHandles: E.resizeHandleAxesType,
5167
- resizeHandle: E.resizeHandleType,
5166
+ resizeHandles: _.resizeHandleAxesType,
5167
+ resizeHandle: _.resizeHandleType,
5168
5168
  // Functions
5169
5169
  onDragStop: r.default.func,
5170
5170
  onDragStart: r.default.func,
@@ -5203,19 +5203,19 @@ function ba() {
5203
5203
  transformScale: 1
5204
5204
  }), Pt;
5205
5205
  }
5206
- var Pn;
5207
- function Un() {
5208
- if (Pn) return Ct;
5209
- Pn = 1, Object.defineProperty(Ct, "__esModule", {
5206
+ var Rn;
5207
+ function Jn() {
5208
+ if (Rn) return Ct;
5209
+ Rn = 1, Object.defineProperty(Ct, "__esModule", {
5210
5210
  value: !0
5211
5211
  }), Ct.default = void 0;
5212
- var e = j(Ne), n = /* @__PURE__ */ kr(), r = E(Zt()), a = xt(), h = Mr(), c = E(ba()), d = E(Vn());
5213
- function E(p) {
5212
+ var e = w(Ne), n = /* @__PURE__ */ Mr(), r = _(Zt()), a = xt(), h = Lr(), c = _(Sa()), d = _(Gn());
5213
+ function _(p) {
5214
5214
  return p && p.__esModule ? p : { default: p };
5215
5215
  }
5216
- function j(p, t) {
5216
+ function w(p, t) {
5217
5217
  if (typeof WeakMap == "function") var i = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap();
5218
- return (j = function(s, b) {
5218
+ return (w = function(s, b) {
5219
5219
  if (!b && s && s.__esModule) return s;
5220
5220
  var P, S, D = { __proto__: null, default: s };
5221
5221
  if (s === null || typeof s != "object" && typeof s != "function") return D;
@@ -5241,14 +5241,14 @@ function Un() {
5241
5241
  for (var t = 1; t < arguments.length; t++) {
5242
5242
  var i = arguments[t] != null ? arguments[t] : {};
5243
5243
  t % 2 ? O(Object(i), !0).forEach(function(l) {
5244
- _(p, l, i[l]);
5244
+ E(p, l, i[l]);
5245
5245
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(p, Object.getOwnPropertyDescriptors(i)) : O(Object(i)).forEach(function(l) {
5246
5246
  Object.defineProperty(p, l, Object.getOwnPropertyDescriptor(i, l));
5247
5247
  });
5248
5248
  }
5249
5249
  return p;
5250
5250
  }
5251
- function _(p, t, i) {
5251
+ function E(p, t, i) {
5252
5252
  return (t = L(t)) in p ? Object.defineProperty(p, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : p[t] = i, p;
5253
5253
  }
5254
5254
  function L(p) {
@@ -5273,7 +5273,7 @@ function Un() {
5273
5273
  }
5274
5274
  let u = class extends e.Component {
5275
5275
  constructor() {
5276
- super(...arguments), _(this, "state", {
5276
+ super(...arguments), E(this, "state", {
5277
5277
  activeDrag: null,
5278
5278
  layout: (0, a.synchronizeLayoutWithChildren)(
5279
5279
  this.props.layout,
@@ -5290,7 +5290,7 @@ function Un() {
5290
5290
  resizing: !1,
5291
5291
  droppingDOMNode: null,
5292
5292
  children: []
5293
- }), _(this, "dragEnterCounter", 0), _(this, "onDragStart", (t, i, l, s) => {
5293
+ }), E(this, "dragEnterCounter", 0), E(this, "onDragStart", (t, i, l, s) => {
5294
5294
  let {
5295
5295
  e: b,
5296
5296
  node: P
@@ -5312,7 +5312,7 @@ function Un() {
5312
5312
  oldLayout: S,
5313
5313
  activeDrag: M
5314
5314
  }), this.props.onDragStart(S, D, D, null, b, P);
5315
- }), _(this, "onDrag", (t, i, l, s) => {
5315
+ }), E(this, "onDrag", (t, i, l, s) => {
5316
5316
  let {
5317
5317
  e: b,
5318
5318
  node: P
@@ -5341,7 +5341,7 @@ function Un() {
5341
5341
  layout: H ? D : (0, a.compact)(D, (0, a.compactType)(this.props), M),
5342
5342
  activeDrag: J
5343
5343
  });
5344
- }), _(this, "onDragStop", (t, i, l, s) => {
5344
+ }), E(this, "onDragStop", (t, i, l, s) => {
5345
5345
  let {
5346
5346
  e: b,
5347
5347
  node: P
@@ -5371,7 +5371,7 @@ function Un() {
5371
5371
  oldDragItem: null,
5372
5372
  oldLayout: null
5373
5373
  }), this.onLayoutMaybeChanged(ee, G);
5374
- }), _(this, "onResizeStart", (t, i, l, s) => {
5374
+ }), E(this, "onResizeStart", (t, i, l, s) => {
5375
5375
  let {
5376
5376
  e: b,
5377
5377
  node: P
@@ -5384,7 +5384,7 @@ function Un() {
5384
5384
  oldLayout: this.state.layout,
5385
5385
  resizing: !0
5386
5386
  }), this.props.onResizeStart(S, D, D, null, b, P));
5387
- }), _(this, "onResize", (t, i, l, s) => {
5387
+ }), E(this, "onResize", (t, i, l, s) => {
5388
5388
  let {
5389
5389
  e: b,
5390
5390
  node: P,
@@ -5424,7 +5424,7 @@ function Un() {
5424
5424
  layout: J ? G : (0, a.compact)(G, (0, a.compactType)(this.props), q),
5425
5425
  activeDrag: k
5426
5426
  });
5427
- }), _(this, "onResizeStop", (t, i, l, s) => {
5427
+ }), E(this, "onResizeStop", (t, i, l, s) => {
5428
5428
  let {
5429
5429
  e: b,
5430
5430
  node: P
@@ -5447,7 +5447,7 @@ function Un() {
5447
5447
  oldLayout: null,
5448
5448
  resizing: !1
5449
5449
  }), this.onLayoutMaybeChanged(Y, J);
5450
- }), _(this, "onDragOver", (t) => {
5450
+ }), E(this, "onDragOver", (t) => {
5451
5451
  var i;
5452
5452
  if (t.preventDefault(), t.stopPropagation(), m && // $FlowIgnore can't figure this out
5453
5453
  !((i = t.nativeEvent.target) !== null && i !== void 0 && i.classList.contains(T)))
@@ -5504,7 +5504,7 @@ function Un() {
5504
5504
  })]
5505
5505
  });
5506
5506
  }
5507
- }), _(this, "removeDroppingPlaceholder", () => {
5507
+ }), E(this, "removeDroppingPlaceholder", () => {
5508
5508
  const {
5509
5509
  droppingItem: t,
5510
5510
  cols: i
@@ -5517,11 +5517,11 @@ function Un() {
5517
5517
  activeDrag: null,
5518
5518
  droppingPosition: void 0
5519
5519
  });
5520
- }), _(this, "onDragLeave", (t) => {
5520
+ }), E(this, "onDragLeave", (t) => {
5521
5521
  t.preventDefault(), t.stopPropagation(), this.dragEnterCounter--, this.dragEnterCounter === 0 && this.removeDroppingPlaceholder();
5522
- }), _(this, "onDragEnter", (t) => {
5522
+ }), E(this, "onDragEnter", (t) => {
5523
5523
  t.preventDefault(), t.stopPropagation(), this.dragEnterCounter++;
5524
- }), _(this, "onDrop", (t) => {
5524
+ }), E(this, "onDrop", (t) => {
5525
5525
  t.preventDefault(), t.stopPropagation();
5526
5526
  const {
5527
5527
  droppingItem: i
@@ -5697,7 +5697,7 @@ function Un() {
5697
5697
  }, e.Children.map(this.props.children, (S) => this.processGridItem(S)), l && this.state.droppingDOMNode && this.processGridItem(this.state.droppingDOMNode, !0), this.placeholder());
5698
5698
  }
5699
5699
  };
5700
- return Ct.default = u, _(u, "displayName", "ReactGridLayout"), _(u, "propTypes", d.default), _(u, "defaultProps", {
5700
+ return Ct.default = u, E(u, "displayName", "ReactGridLayout"), E(u, "propTypes", d.default), E(u, "defaultProps", {
5701
5701
  autoSize: !0,
5702
5702
  cols: 12,
5703
5703
  className: "",
@@ -5737,63 +5737,63 @@ function Un() {
5737
5737
  onDropDragOver: a.noop
5738
5738
  }), Ct;
5739
5739
  }
5740
- var Tt = {}, lt = {}, On;
5741
- function Gn() {
5742
- if (On) return lt;
5743
- On = 1, Object.defineProperty(lt, "__esModule", {
5740
+ var Tt = {}, ct = {}, _n;
5741
+ function Xn() {
5742
+ if (_n) return ct;
5743
+ _n = 1, Object.defineProperty(ct, "__esModule", {
5744
5744
  value: !0
5745
- }), lt.findOrGenerateResponsiveLayout = a, lt.getBreakpointFromWidth = n, lt.getColsFromBreakpoint = r, lt.sortBreakpoints = h;
5745
+ }), ct.findOrGenerateResponsiveLayout = a, ct.getBreakpointFromWidth = n, ct.getColsFromBreakpoint = r, ct.sortBreakpoints = h;
5746
5746
  var e = xt();
5747
5747
  function n(c, d) {
5748
- const E = h(c);
5749
- let j = E[0];
5750
- for (let O = 1, x = E.length; O < x; O++) {
5751
- const _ = E[O];
5752
- d > c[_] && (j = _);
5748
+ const _ = h(c);
5749
+ let w = _[0];
5750
+ for (let O = 1, x = _.length; O < x; O++) {
5751
+ const E = _[O];
5752
+ d > c[E] && (w = E);
5753
5753
  }
5754
- return j;
5754
+ return w;
5755
5755
  }
5756
5756
  function r(c, d) {
5757
5757
  if (!d[c])
5758
5758
  throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint " + c + " is missing!");
5759
5759
  return d[c];
5760
5760
  }
5761
- function a(c, d, E, j, O, x) {
5762
- if (c[E]) return (0, e.cloneLayout)(c[E]);
5763
- let _ = c[j];
5764
- const L = h(d), R = L.slice(L.indexOf(E));
5761
+ function a(c, d, _, w, O, x) {
5762
+ if (c[_]) return (0, e.cloneLayout)(c[_]);
5763
+ let E = c[w];
5764
+ const L = h(d), R = L.slice(L.indexOf(_));
5765
5765
  for (let T = 0, m = R.length; T < m; T++) {
5766
5766
  const u = R[T];
5767
5767
  if (c[u]) {
5768
- _ = c[u];
5768
+ E = c[u];
5769
5769
  break;
5770
5770
  }
5771
5771
  }
5772
- return _ = (0, e.cloneLayout)(_ || []), (0, e.compact)((0, e.correctBounds)(_, {
5772
+ return E = (0, e.cloneLayout)(E || []), (0, e.compact)((0, e.correctBounds)(E, {
5773
5773
  cols: O
5774
5774
  }), x, O);
5775
5775
  }
5776
5776
  function h(c) {
5777
- return Object.keys(c).sort(function(E, j) {
5778
- return c[E] - c[j];
5777
+ return Object.keys(c).sort(function(_, w) {
5778
+ return c[_] - c[w];
5779
5779
  });
5780
5780
  }
5781
- return lt;
5781
+ return ct;
5782
5782
  }
5783
- var Rn;
5784
- function xa() {
5785
- if (Rn) return Tt;
5786
- Rn = 1, Object.defineProperty(Tt, "__esModule", {
5783
+ var En;
5784
+ function wa() {
5785
+ if (En) return Tt;
5786
+ En = 1, Object.defineProperty(Tt, "__esModule", {
5787
5787
  value: !0
5788
5788
  }), Tt.default = void 0;
5789
- var e = j(Ne), n = E(/* @__PURE__ */ at()), r = /* @__PURE__ */ kr(), a = xt(), h = Gn(), c = E(Un());
5789
+ var e = w(Ne), n = _(/* @__PURE__ */ it()), r = /* @__PURE__ */ Mr(), a = xt(), h = Xn(), c = _(Jn());
5790
5790
  const d = ["breakpoint", "breakpoints", "cols", "layouts", "margin", "containerPadding", "onBreakpointChange", "onLayoutChange", "onWidthChange"];
5791
- function E(l) {
5791
+ function _(l) {
5792
5792
  return l && l.__esModule ? l : { default: l };
5793
5793
  }
5794
- function j(l, s) {
5794
+ function w(l, s) {
5795
5795
  if (typeof WeakMap == "function") var b = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap();
5796
- return (j = function(S, D) {
5796
+ return (w = function(S, D) {
5797
5797
  if (!D && S && S.__esModule) return S;
5798
5798
  var M, H, q = { __proto__: null, default: S };
5799
5799
  if (S === null || typeof S != "object" && typeof S != "function") return q;
@@ -5816,14 +5816,14 @@ function xa() {
5816
5816
  }
5817
5817
  function x(l, s) {
5818
5818
  if (l == null) return {};
5819
- var b, P, S = _(l, s);
5819
+ var b, P, S = E(l, s);
5820
5820
  if (Object.getOwnPropertySymbols) {
5821
5821
  var D = Object.getOwnPropertySymbols(l);
5822
5822
  for (P = 0; P < D.length; P++) b = D[P], s.indexOf(b) === -1 && {}.propertyIsEnumerable.call(l, b) && (S[b] = l[b]);
5823
5823
  }
5824
5824
  return S;
5825
5825
  }
5826
- function _(l, s) {
5826
+ function E(l, s) {
5827
5827
  if (l == null) return {};
5828
5828
  var b = {};
5829
5829
  for (var P in l) if ({}.hasOwnProperty.call(l, P)) {
@@ -6032,7 +6032,7 @@ function xa() {
6032
6032
  onWidthChange: a.noop
6033
6033
  }), Tt;
6034
6034
  }
6035
- var Yt = {}, Jn = (function() {
6035
+ var Vt = {}, Kn = (function() {
6036
6036
  if (typeof Map < "u")
6037
6037
  return Map;
6038
6038
  function e(n, r) {
@@ -6078,40 +6078,40 @@ var Yt = {}, Jn = (function() {
6078
6078
  }, n;
6079
6079
  })()
6080
6080
  );
6081
- })(), wr = typeof window < "u" && typeof document < "u" && window.document === document, Gt = (function() {
6081
+ })(), jr = typeof window < "u" && typeof document < "u" && window.document === document, Jt = (function() {
6082
6082
  return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
6083
- })(), Sa = (function() {
6084
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Gt) : function(e) {
6083
+ })(), ja = (function() {
6084
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Jt) : function(e) {
6085
6085
  return setTimeout(function() {
6086
6086
  return e(Date.now());
6087
6087
  }, 1e3 / 60);
6088
6088
  };
6089
- })(), wa = 2;
6090
- function ja(e, n) {
6089
+ })(), Ca = 2;
6090
+ function Pa(e, n) {
6091
6091
  var r = !1, a = !1, h = 0;
6092
6092
  function c() {
6093
- r && (r = !1, e()), a && E();
6093
+ r && (r = !1, e()), a && _();
6094
6094
  }
6095
6095
  function d() {
6096
- Sa(c);
6096
+ ja(c);
6097
6097
  }
6098
- function E() {
6099
- var j = Date.now();
6098
+ function _() {
6099
+ var w = Date.now();
6100
6100
  if (r) {
6101
- if (j - h < wa)
6101
+ if (w - h < Ca)
6102
6102
  return;
6103
6103
  a = !0;
6104
6104
  } else
6105
6105
  r = !0, a = !1, setTimeout(d, n);
6106
- h = j;
6106
+ h = w;
6107
6107
  }
6108
- return E;
6108
+ return _;
6109
6109
  }
6110
- var Ca = 20, Pa = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], Oa = typeof MutationObserver < "u", Ra = (
6110
+ var Oa = 20, Ra = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], _a = typeof MutationObserver < "u", Ea = (
6111
6111
  /** @class */
6112
6112
  (function() {
6113
6113
  function e() {
6114
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = ja(this.refresh.bind(this), Ca);
6114
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = Pa(this.refresh.bind(this), Oa);
6115
6115
  }
6116
6116
  return e.prototype.addObserver = function(n) {
6117
6117
  ~this.observers_.indexOf(n) || this.observers_.push(n), this.connected_ || this.connect_();
@@ -6129,16 +6129,16 @@ var Ca = 20, Pa = ["top", "right", "bottom", "left", "width", "height", "size",
6129
6129
  return r.broadcastActive();
6130
6130
  }), n.length > 0;
6131
6131
  }, e.prototype.connect_ = function() {
6132
- !wr || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), Oa ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
6132
+ !jr || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), _a ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
6133
6133
  attributes: !0,
6134
6134
  childList: !0,
6135
6135
  characterData: !0,
6136
6136
  subtree: !0
6137
6137
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
6138
6138
  }, e.prototype.disconnect_ = function() {
6139
- !wr || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
6139
+ !jr || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
6140
6140
  }, e.prototype.onTransitionEnd_ = function(n) {
6141
- var r = n.propertyName, a = r === void 0 ? "" : r, h = Pa.some(function(c) {
6141
+ var r = n.propertyName, a = r === void 0 ? "" : r, h = Ra.some(function(c) {
6142
6142
  return !!~a.indexOf(c);
6143
6143
  });
6144
6144
  h && this.refresh();
@@ -6146,7 +6146,7 @@ var Ca = 20, Pa = ["top", "right", "bottom", "left", "width", "height", "size",
6146
6146
  return this.instance_ || (this.instance_ = new e()), this.instance_;
6147
6147
  }, e.instance_ = null, e;
6148
6148
  })()
6149
- ), Xn = (function(e, n) {
6149
+ ), Qn = (function(e, n) {
6150
6150
  for (var r = 0, a = Object.keys(n); r < a.length; r++) {
6151
6151
  var h = a[r];
6152
6152
  Object.defineProperty(e, h, {
@@ -6159,57 +6159,57 @@ var Ca = 20, Pa = ["top", "right", "bottom", "left", "width", "height", "size",
6159
6159
  return e;
6160
6160
  }), yt = (function(e) {
6161
6161
  var n = e && e.ownerDocument && e.ownerDocument.defaultView;
6162
- return n || Gt;
6163
- }), Kn = er(0, 0, 0, 0);
6164
- function Jt(e) {
6162
+ return n || Jt;
6163
+ }), Zn = er(0, 0, 0, 0);
6164
+ function Xt(e) {
6165
6165
  return parseFloat(e) || 0;
6166
6166
  }
6167
- function _n(e) {
6167
+ function Dn(e) {
6168
6168
  for (var n = [], r = 1; r < arguments.length; r++)
6169
6169
  n[r - 1] = arguments[r];
6170
6170
  return n.reduce(function(a, h) {
6171
6171
  var c = e["border-" + h + "-width"];
6172
- return a + Jt(c);
6172
+ return a + Xt(c);
6173
6173
  }, 0);
6174
6174
  }
6175
- function _a(e) {
6175
+ function Da(e) {
6176
6176
  for (var n = ["top", "right", "bottom", "left"], r = {}, a = 0, h = n; a < h.length; a++) {
6177
6177
  var c = h[a], d = e["padding-" + c];
6178
- r[c] = Jt(d);
6178
+ r[c] = Xt(d);
6179
6179
  }
6180
6180
  return r;
6181
6181
  }
6182
- function Ea(e) {
6182
+ function Ta(e) {
6183
6183
  var n = e.getBBox();
6184
6184
  return er(0, 0, n.width, n.height);
6185
6185
  }
6186
- function Da(e) {
6186
+ function za(e) {
6187
6187
  var n = e.clientWidth, r = e.clientHeight;
6188
6188
  if (!n && !r)
6189
- return Kn;
6190
- var a = yt(e).getComputedStyle(e), h = _a(a), c = h.left + h.right, d = h.top + h.bottom, E = Jt(a.width), j = Jt(a.height);
6191
- if (a.boxSizing === "border-box" && (Math.round(E + c) !== n && (E -= _n(a, "left", "right") + c), Math.round(j + d) !== r && (j -= _n(a, "top", "bottom") + d)), !za(e)) {
6192
- var O = Math.round(E + c) - n, x = Math.round(j + d) - r;
6193
- Math.abs(O) !== 1 && (E -= O), Math.abs(x) !== 1 && (j -= x);
6189
+ return Zn;
6190
+ var a = yt(e).getComputedStyle(e), h = Da(a), c = h.left + h.right, d = h.top + h.bottom, _ = Xt(a.width), w = Xt(a.height);
6191
+ if (a.boxSizing === "border-box" && (Math.round(_ + c) !== n && (_ -= Dn(a, "left", "right") + c), Math.round(w + d) !== r && (w -= Dn(a, "top", "bottom") + d)), !Ma(e)) {
6192
+ var O = Math.round(_ + c) - n, x = Math.round(w + d) - r;
6193
+ Math.abs(O) !== 1 && (_ -= O), Math.abs(x) !== 1 && (w -= x);
6194
6194
  }
6195
- return er(h.left, h.top, E, j);
6195
+ return er(h.left, h.top, _, w);
6196
6196
  }
6197
- var Ta = /* @__PURE__ */ (function() {
6197
+ var ka = /* @__PURE__ */ (function() {
6198
6198
  return typeof SVGGraphicsElement < "u" ? function(e) {
6199
6199
  return e instanceof yt(e).SVGGraphicsElement;
6200
6200
  } : function(e) {
6201
6201
  return e instanceof yt(e).SVGElement && typeof e.getBBox == "function";
6202
6202
  };
6203
6203
  })();
6204
- function za(e) {
6204
+ function Ma(e) {
6205
6205
  return e === yt(e).document.documentElement;
6206
6206
  }
6207
- function ka(e) {
6208
- return wr ? Ta(e) ? Ea(e) : Da(e) : Kn;
6207
+ function La(e) {
6208
+ return jr ? ka(e) ? Ta(e) : za(e) : Zn;
6209
6209
  }
6210
- function Ma(e) {
6210
+ function Na(e) {
6211
6211
  var n = e.x, r = e.y, a = e.width, h = e.height, c = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, d = Object.create(c.prototype);
6212
- return Xn(d, {
6212
+ return Qn(d, {
6213
6213
  x: n,
6214
6214
  y: r,
6215
6215
  width: a,
@@ -6223,34 +6223,34 @@ function Ma(e) {
6223
6223
  function er(e, n, r, a) {
6224
6224
  return { x: e, y: n, width: r, height: a };
6225
6225
  }
6226
- var La = (
6226
+ var Aa = (
6227
6227
  /** @class */
6228
6228
  (function() {
6229
6229
  function e(n) {
6230
6230
  this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = er(0, 0, 0, 0), this.target = n;
6231
6231
  }
6232
6232
  return e.prototype.isActive = function() {
6233
- var n = ka(this.target);
6233
+ var n = La(this.target);
6234
6234
  return this.contentRect_ = n, n.width !== this.broadcastWidth || n.height !== this.broadcastHeight;
6235
6235
  }, e.prototype.broadcastRect = function() {
6236
6236
  var n = this.contentRect_;
6237
6237
  return this.broadcastWidth = n.width, this.broadcastHeight = n.height, n;
6238
6238
  }, e;
6239
6239
  })()
6240
- ), Na = (
6240
+ ), $a = (
6241
6241
  /** @class */
6242
6242
  /* @__PURE__ */ (function() {
6243
6243
  function e(n, r) {
6244
- var a = Ma(r);
6245
- Xn(this, { target: n, contentRect: a });
6244
+ var a = Na(r);
6245
+ Qn(this, { target: n, contentRect: a });
6246
6246
  }
6247
6247
  return e;
6248
6248
  })()
6249
- ), Aa = (
6249
+ ), Ia = (
6250
6250
  /** @class */
6251
6251
  (function() {
6252
6252
  function e(n, r, a) {
6253
- if (this.activeObservations_ = [], this.observations_ = new Jn(), typeof n != "function")
6253
+ if (this.activeObservations_ = [], this.observations_ = new Kn(), typeof n != "function")
6254
6254
  throw new TypeError("The callback provided as parameter 1 is not a function.");
6255
6255
  this.callback_ = n, this.controller_ = r, this.callbackCtx_ = a;
6256
6256
  }
@@ -6261,7 +6261,7 @@ var La = (
6261
6261
  if (!(n instanceof yt(n).Element))
6262
6262
  throw new TypeError('parameter 1 is not of type "Element".');
6263
6263
  var r = this.observations_;
6264
- r.has(n) || (r.set(n, new La(n)), this.controller_.addObserver(this), this.controller_.refresh());
6264
+ r.has(n) || (r.set(n, new Aa(n)), this.controller_.addObserver(this), this.controller_.refresh());
6265
6265
  }
6266
6266
  }, e.prototype.unobserve = function(n) {
6267
6267
  if (!arguments.length)
@@ -6282,7 +6282,7 @@ var La = (
6282
6282
  }, e.prototype.broadcastActive = function() {
6283
6283
  if (this.hasActive()) {
6284
6284
  var n = this.callbackCtx_, r = this.activeObservations_.map(function(a) {
6285
- return new Na(a.target, a.broadcastRect());
6285
+ return new $a(a.target, a.broadcastRect());
6286
6286
  });
6287
6287
  this.callback_.call(n, r, n), this.clearActive();
6288
6288
  }
@@ -6292,7 +6292,7 @@ var La = (
6292
6292
  return this.activeObservations_.length > 0;
6293
6293
  }, e;
6294
6294
  })()
6295
- ), Qn = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Jn(), Zn = (
6295
+ ), eo = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Kn(), to = (
6296
6296
  /** @class */
6297
6297
  /* @__PURE__ */ (function() {
6298
6298
  function e(n) {
@@ -6300,8 +6300,8 @@ var La = (
6300
6300
  throw new TypeError("Cannot call a class as a function.");
6301
6301
  if (!arguments.length)
6302
6302
  throw new TypeError("1 argument required, but only 0 present.");
6303
- var r = Ra.getInstance(), a = new Aa(n, r, this);
6304
- Qn.set(this, a);
6303
+ var r = Ea.getInstance(), a = new Ia(n, r, this);
6304
+ eo.set(this, a);
6305
6305
  }
6306
6306
  return e;
6307
6307
  })()
@@ -6311,25 +6311,25 @@ var La = (
6311
6311
  "unobserve",
6312
6312
  "disconnect"
6313
6313
  ].forEach(function(e) {
6314
- Zn.prototype[e] = function() {
6314
+ to.prototype[e] = function() {
6315
6315
  var n;
6316
- return (n = Qn.get(this))[e].apply(n, arguments);
6316
+ return (n = eo.get(this))[e].apply(n, arguments);
6317
6317
  };
6318
6318
  });
6319
- var $a = (function() {
6320
- return typeof Gt.ResizeObserver < "u" ? Gt.ResizeObserver : Zn;
6319
+ var Fa = (function() {
6320
+ return typeof Jt.ResizeObserver < "u" ? Jt.ResizeObserver : to;
6321
6321
  })();
6322
- const Ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6322
+ const qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6323
6323
  __proto__: null,
6324
- default: $a
6325
- }, Symbol.toStringTag, { value: "Module" })), Fa = /* @__PURE__ */ Fo(Ia);
6326
- var En;
6327
- function qa() {
6328
- if (En) return Yt;
6329
- En = 1, Object.defineProperty(Yt, "__esModule", {
6324
+ default: Fa
6325
+ }, Symbol.toStringTag, { value: "Module" })), Ha = /* @__PURE__ */ Ho(qa);
6326
+ var Tn;
6327
+ function Wa() {
6328
+ if (Tn) return Vt;
6329
+ Tn = 1, Object.defineProperty(Vt, "__esModule", {
6330
6330
  value: !0
6331
- }), Yt.default = T;
6332
- var e = d(Ne), n = c(/* @__PURE__ */ at()), r = c(Fa), a = c(Zt());
6331
+ }), Vt.default = T;
6332
+ var e = d(Ne), n = c(/* @__PURE__ */ it()), r = c(Ha), a = c(Zt());
6333
6333
  const h = ["measureBeforeMount"];
6334
6334
  function c(m) {
6335
6335
  return m && m.__esModule ? m : { default: m };
@@ -6348,16 +6348,16 @@ function qa() {
6348
6348
  return P;
6349
6349
  })(m, u);
6350
6350
  }
6351
- function E() {
6352
- return E = Object.assign ? Object.assign.bind() : function(m) {
6351
+ function _() {
6352
+ return _ = Object.assign ? Object.assign.bind() : function(m) {
6353
6353
  for (var u = 1; u < arguments.length; u++) {
6354
6354
  var p = arguments[u];
6355
6355
  for (var t in p) ({}).hasOwnProperty.call(p, t) && (m[t] = p[t]);
6356
6356
  }
6357
6357
  return m;
6358
- }, E.apply(null, arguments);
6358
+ }, _.apply(null, arguments);
6359
6359
  }
6360
- function j(m, u) {
6360
+ function w(m, u) {
6361
6361
  if (m == null) return {};
6362
6362
  var p, t, i = O(m, u);
6363
6363
  if (Object.getOwnPropertySymbols) {
@@ -6376,9 +6376,9 @@ function qa() {
6376
6376
  return p;
6377
6377
  }
6378
6378
  function x(m, u, p) {
6379
- return (u = _(u)) in m ? Object.defineProperty(m, u, { value: p, enumerable: !0, configurable: !0, writable: !0 }) : m[u] = p, m;
6379
+ return (u = E(u)) in m ? Object.defineProperty(m, u, { value: p, enumerable: !0, configurable: !0, writable: !0 }) : m[u] = p, m;
6380
6380
  }
6381
- function _(m) {
6381
+ function E(m) {
6382
6382
  var u = L(m, "string");
6383
6383
  return typeof u == "symbol" ? u : u + "";
6384
6384
  }
@@ -6421,12 +6421,12 @@ function qa() {
6421
6421
  render() {
6422
6422
  const t = this.props, {
6423
6423
  measureBeforeMount: i
6424
- } = t, l = j(t, h);
6424
+ } = t, l = w(t, h);
6425
6425
  return i && !this.mounted ? /* @__PURE__ */ e.createElement("div", {
6426
6426
  className: (0, a.default)(this.props.className, R),
6427
6427
  style: this.props.style,
6428
6428
  ref: this.elementRef
6429
- }) : /* @__PURE__ */ e.createElement(m, E({
6429
+ }) : /* @__PURE__ */ e.createElement(m, _({
6430
6430
  innerRef: this.elementRef
6431
6431
  }, l, this.state));
6432
6432
  }
@@ -6438,17 +6438,17 @@ function qa() {
6438
6438
  measureBeforeMount: n.default.bool
6439
6439
  }), u;
6440
6440
  }
6441
- return Yt;
6441
+ return Vt;
6442
6442
  }
6443
- var Dn;
6444
- function Ha() {
6445
- return Dn || (Dn = 1, (function(e) {
6446
- e.exports = Un().default, e.exports.utils = xt(), e.exports.calculateUtils = Mr(), e.exports.Responsive = xa().default, e.exports.Responsive.utils = Gn(), e.exports.WidthProvider = qa().default;
6443
+ var zn;
6444
+ function Ba() {
6445
+ return zn || (zn = 1, (function(e) {
6446
+ e.exports = Jn().default, e.exports.utils = xt(), e.exports.calculateUtils = Lr(), e.exports.Responsive = wa().default, e.exports.Responsive.utils = Xn(), e.exports.WidthProvider = Wa().default;
6447
6447
  })(sr)), sr.exports;
6448
6448
  }
6449
- var Wa = Ha();
6450
- const Ba = /* @__PURE__ */ Io(Wa);
6451
- function Tn(e) {
6449
+ var Ya = Ba();
6450
+ const Va = /* @__PURE__ */ qo(Ya);
6451
+ function kn(e) {
6452
6452
  const n = [];
6453
6453
  n.push(1, 1, 0, 1, 1, 0, 1, 1);
6454
6454
  for (let r = 0; r < e.length; r++) {
@@ -6458,20 +6458,20 @@ function Tn(e) {
6458
6458
  }
6459
6459
  return n.push(1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1), n;
6460
6460
  }
6461
- const Ar = ({ value: e, format: n }) => {
6462
- const { t: r } = Ge(), a = Ue(() => Tn(e), [e, n]);
6461
+ const $r = ({ value: e, format: n }) => {
6462
+ const { t: r } = Ge(), a = Ue(() => kn(e), [e, n]);
6463
6463
  if (!e)
6464
- return /* @__PURE__ */ o.jsx("div", { style: { fontSize: 11, color: "#999" }, children: r("component.barcodeHint") });
6464
+ return /* @__PURE__ */ o.jsx("div", { style: { fontSize: 11, color: "var(--pd-muted-text, #999)" }, children: r("component.barcodeHint") });
6465
6465
  const h = 2, c = 44, d = a.length * h;
6466
6466
  return /* @__PURE__ */ o.jsxs("div", { style: { textAlign: "center", overflow: "hidden", maxWidth: "100%" }, children: [
6467
6467
  /* @__PURE__ */ o.jsx(
6468
6468
  "canvas",
6469
6469
  {
6470
- ref: (E) => {
6471
- if (!E) return;
6472
- const j = E.getContext("2d");
6473
- j && (E.width = d, E.height = c, j.clearRect(0, 0, d, c), a.forEach((O, x) => {
6474
- j.fillStyle = O === 1 ? "#000" : "#fff", j.fillRect(x * h, 0, h, c);
6470
+ ref: (_) => {
6471
+ if (!_) return;
6472
+ const w = _.getContext("2d");
6473
+ w && (_.width = d, _.height = c, w.clearRect(0, 0, d, c), a.forEach((O, x) => {
6474
+ w.fillStyle = O === 1 ? "#000" : "#fff", w.fillRect(x * h, 0, h, c);
6475
6475
  }));
6476
6476
  },
6477
6477
  style: { width: "100%", maxWidth: d, height: c }
@@ -6479,7 +6479,7 @@ const Ar = ({ value: e, format: n }) => {
6479
6479
  ),
6480
6480
  /* @__PURE__ */ o.jsx("div", { style: { fontSize: 10, marginTop: 1, letterSpacing: 1 }, children: e })
6481
6481
  ] });
6482
- }, $r = ({
6482
+ }, Ir = ({
6483
6483
  value: e,
6484
6484
  errorLevel: n = "M",
6485
6485
  color: r = "#000000",
@@ -6487,7 +6487,7 @@ const Ar = ({ value: e, format: n }) => {
6487
6487
  }) => {
6488
6488
  const { t: h } = Ge();
6489
6489
  return e ? /* @__PURE__ */ o.jsx(
6490
- yo,
6490
+ bo,
6491
6491
  {
6492
6492
  value: e,
6493
6493
  type: "svg",
@@ -6502,8 +6502,8 @@ const Ar = ({ value: e, format: n }) => {
6502
6502
  maxHeight: "100%"
6503
6503
  }
6504
6504
  }
6505
- ) : /* @__PURE__ */ o.jsx("div", { style: { fontSize: 11, color: "#999" }, children: h("component.qrcodeHint") });
6506
- }, Ya = Ba, zn = Ne.memo(
6505
+ ) : /* @__PURE__ */ o.jsx("div", { style: { fontSize: 11, color: "var(--pd-muted-text, #999)" }, children: h("component.qrcodeHint") });
6506
+ }, Ua = Va, Mn = Ne.memo(
6507
6507
  ({ comp: e, selected: n, isPreview: r = !1, dataSources: a = [] }) => {
6508
6508
  const { t: h } = Ge(), c = {
6509
6509
  width: "100%",
@@ -6512,7 +6512,7 @@ const Ar = ({ value: e, format: n }) => {
6512
6512
  boxSizing: "border-box",
6513
6513
  outline: r ? "none" : n ? "2px solid #1677ff" : "1px dashed #d9d9d9",
6514
6514
  outlineOffset: -1
6515
- }, d = (E) => zt(e, E, a);
6515
+ }, d = (_) => zt(e, _, a);
6516
6516
  switch (e.type) {
6517
6517
  case "text":
6518
6518
  return /* @__PURE__ */ o.jsx(
@@ -6530,15 +6530,15 @@ const Ar = ({ value: e, format: n }) => {
6530
6530
  whiteSpace: "pre-wrap",
6531
6531
  wordBreak: "break-word"
6532
6532
  },
6533
- children: Dr(d("content") || "", e.props.format)
6533
+ children: Tr(d("content") || "", e.props.format)
6534
6534
  }
6535
6535
  );
6536
6536
  case "image":
6537
- const E = d("src") || e.props.src;
6538
- return /* @__PURE__ */ o.jsx("div", { style: c, children: E ? /* @__PURE__ */ o.jsx(
6537
+ const _ = d("src") || e.props.src;
6538
+ return /* @__PURE__ */ o.jsx("div", { style: c, children: _ ? /* @__PURE__ */ o.jsx(
6539
6539
  "img",
6540
6540
  {
6541
- src: E,
6541
+ src: _,
6542
6542
  style: {
6543
6543
  width: "100%",
6544
6544
  height: "100%",
@@ -6562,9 +6562,9 @@ const Ar = ({ value: e, format: n }) => {
6562
6562
  }
6563
6563
  ) });
6564
6564
  case "table":
6565
- return /* @__PURE__ */ o.jsx(Va, { comp: e, style: c, dataSources: a });
6565
+ return /* @__PURE__ */ o.jsx(Ga, { comp: e, style: c, dataSources: a });
6566
6566
  case "barcode":
6567
- const j = d("value") || e.props.value || "123456";
6567
+ const w = d("value") || e.props.value || "123456";
6568
6568
  return /* @__PURE__ */ o.jsx(
6569
6569
  "div",
6570
6570
  {
@@ -6576,9 +6576,9 @@ const Ar = ({ value: e, format: n }) => {
6576
6576
  padding: 4
6577
6577
  },
6578
6578
  children: /* @__PURE__ */ o.jsx(
6579
- Ar,
6579
+ $r,
6580
6580
  {
6581
- value: j,
6581
+ value: w,
6582
6582
  format: e.props.format || "CODE128"
6583
6583
  }
6584
6584
  )
@@ -6597,7 +6597,7 @@ const Ar = ({ value: e, format: n }) => {
6597
6597
  padding: 4
6598
6598
  },
6599
6599
  children: /* @__PURE__ */ o.jsx(
6600
- $r,
6600
+ Ir,
6601
6601
  {
6602
6602
  value: O,
6603
6603
  errorLevel: e.props.errorLevel || "M",
@@ -6635,9 +6635,9 @@ const Ar = ({ value: e, format: n }) => {
6635
6635
  return /* @__PURE__ */ o.jsx("div", { style: c, children: e.type });
6636
6636
  }
6637
6637
  }
6638
- ), Va = ({ comp: e, style: n, dataSources: r = [] }) => {
6639
- const a = e.props.borderWidth || 1, h = e.props.borderColor || "#000", c = e.props.headerBackgroundColor || "#f5f5f5", d = e.props.headerColor || "#000000", E = e.props.headerFontSize || 12, j = e.tableColumns || [], O = e.props.tableDataSourceId, x = O ? r.find((T) => T.id === O) : null, _ = x ? zr(x) : null;
6640
- if (_ && _.length > 0)
6638
+ ), Ga = ({ comp: e, style: n, dataSources: r = [] }) => {
6639
+ const a = e.props.borderWidth || 1, h = e.props.borderColor || "#000", c = e.props.headerBackgroundColor || "#f5f5f5", d = e.props.headerColor || "#000000", _ = e.props.headerFontSize || 12, w = e.tableColumns || [], O = e.props.tableDataSourceId, x = O ? r.find((T) => T.id === O) : null, E = x ? kr(x) : null;
6640
+ if (E && E.length > 0)
6641
6641
  return /* @__PURE__ */ o.jsxs(
6642
6642
  "table",
6643
6643
  {
@@ -6648,13 +6648,13 @@ const Ar = ({ value: e, format: n }) => {
6648
6648
  height: "100%"
6649
6649
  },
6650
6650
  children: [
6651
- j.length > 0 && /* @__PURE__ */ o.jsx("thead", { children: /* @__PURE__ */ o.jsx("tr", { style: { backgroundColor: c }, children: j.map((T, m) => /* @__PURE__ */ o.jsx(
6651
+ w.length > 0 && /* @__PURE__ */ o.jsx("thead", { children: /* @__PURE__ */ o.jsx("tr", { style: { backgroundColor: c }, children: w.map((T, m) => /* @__PURE__ */ o.jsx(
6652
6652
  "th",
6653
6653
  {
6654
6654
  style: {
6655
6655
  border: `${a}px solid ${h}`,
6656
6656
  padding: 4,
6657
- fontSize: E,
6657
+ fontSize: _,
6658
6658
  fontWeight: "bold",
6659
6659
  textAlign: "center",
6660
6660
  color: d
@@ -6663,7 +6663,7 @@ const Ar = ({ value: e, format: n }) => {
6663
6663
  },
6664
6664
  m
6665
6665
  )) }) }),
6666
- /* @__PURE__ */ o.jsx("tbody", { children: _.map((T, m) => /* @__PURE__ */ o.jsx("tr", { children: j.map((u, p) => /* @__PURE__ */ o.jsx(
6666
+ /* @__PURE__ */ o.jsx("tbody", { children: E.map((T, m) => /* @__PURE__ */ o.jsx("tr", { children: w.map((u, p) => /* @__PURE__ */ o.jsx(
6667
6667
  "td",
6668
6668
  {
6669
6669
  style: {
@@ -6679,7 +6679,7 @@ const Ar = ({ value: e, format: n }) => {
6679
6679
  ]
6680
6680
  }
6681
6681
  );
6682
- const L = e.props.rows || 3, R = Math.max(e.props.cols || 3, j.length || 3);
6682
+ const L = e.props.rows || 3, R = Math.max(e.props.cols || 3, w.length || 3);
6683
6683
  return /* @__PURE__ */ o.jsx(
6684
6684
  "table",
6685
6685
  {
@@ -6704,10 +6704,10 @@ const Ar = ({ value: e, format: n }) => {
6704
6704
  )) }, m)) })
6705
6705
  }
6706
6706
  );
6707
- }, kn = ({ isPreview: e = !1, dataSources: n }) => {
6707
+ }, Ln = ({ isPreview: e = !1, dataSources: n }) => {
6708
6708
  const { t: r } = Ge(), a = pe((l) => l.components), h = pe((l) => l.selectedId), c = pe((l) => l.pageSettings), d = pe((l) => l.selectComponent);
6709
6709
  pe((l) => l.updateComponent);
6710
- const E = pe((l) => l.setComponents), j = pe((l) => l.addComponent), O = pe((l) => l.gridSettings), x = pe((l) => l.dataSources), _ = n || x, L = Ue(() => {
6710
+ const _ = pe((l) => l.setComponents), w = pe((l) => l.addComponent), O = pe((l) => l.gridSettings), x = pe((l) => l.dataSources), E = n || x, L = Ue(() => {
6711
6711
  const l = Kt[c.paperSize];
6712
6712
  if (!l)
6713
6713
  return {
@@ -6739,9 +6739,9 @@ const Ar = ({ value: e, format: n }) => {
6739
6739
  const S = l[P];
6740
6740
  return S ? { ...b, x: S.x, y: S.y, w: S.w, h: S.h } : b;
6741
6741
  });
6742
- E(s);
6742
+ _(s);
6743
6743
  },
6744
- [a, E]
6744
+ [a, _]
6745
6745
  ), t = Ie(
6746
6746
  (l, s, b) => {
6747
6747
  var H, q;
@@ -6750,11 +6750,11 @@ const Ar = ({ value: e, format: n }) => {
6750
6750
  const D = (q = b.target.closest(".react-grid-layout")) == null ? void 0 : q.getBoundingClientRect(), M = r(`component.${S}`);
6751
6751
  if (D) {
6752
6752
  const Y = Math.floor((P.clientX - D.left) / (T / O.cols)), J = Math.floor((P.clientY - D.top) / (T / O.cols));
6753
- j(S, Math.max(0, Y), Math.max(0, J), M);
6753
+ w(S, Math.max(0, Y), Math.max(0, J), M);
6754
6754
  } else
6755
- j(S, void 0, void 0, M);
6755
+ w(S, void 0, void 0, M);
6756
6756
  },
6757
- [j, T, O.cols, r]
6757
+ [w, T, O.cols, r]
6758
6758
  ), i = Ie(
6759
6759
  (l) => {
6760
6760
  d(l === h ? null : l);
@@ -6767,7 +6767,7 @@ const Ar = ({ value: e, format: n }) => {
6767
6767
  style: {
6768
6768
  flex: 1,
6769
6769
  overflow: "auto",
6770
- background: "#e8e8e8",
6770
+ background: "var(--pd-canvas-bg, #e8e8e8)",
6771
6771
  display: "flex",
6772
6772
  justifyContent: "center",
6773
6773
  padding: "24px 0"
@@ -6847,9 +6847,9 @@ const Ar = ({ value: e, format: n }) => {
6847
6847
  width: l.w * s,
6848
6848
  height: l.h * b
6849
6849
  };
6850
- return /* @__PURE__ */ o.jsx("div", { style: P, children: /* @__PURE__ */ o.jsx(zn, { comp: l, selected: !1, isPreview: !0, dataSources: _ }) }, l.id);
6850
+ return /* @__PURE__ */ o.jsx("div", { style: P, children: /* @__PURE__ */ o.jsx(Mn, { comp: l, selected: !1, isPreview: !0, dataSources: E }) }, l.id);
6851
6851
  }) }) : /* @__PURE__ */ o.jsx(
6852
- Ya,
6852
+ Ua,
6853
6853
  {
6854
6854
  className: "canvas-grid",
6855
6855
  layout: u,
@@ -6873,7 +6873,7 @@ const Ar = ({ value: e, format: n }) => {
6873
6873
  className: "grid-item-drag-handle",
6874
6874
  onClick: () => i(l.id),
6875
6875
  style: { cursor: "move" },
6876
- children: /* @__PURE__ */ o.jsx(zn, { comp: l, selected: l.id === h, dataSources: _ })
6876
+ children: /* @__PURE__ */ o.jsx(Mn, { comp: l, selected: l.id === h, dataSources: E })
6877
6877
  },
6878
6878
  l.id
6879
6879
  ))
@@ -6886,11 +6886,11 @@ const Ar = ({ value: e, format: n }) => {
6886
6886
  )
6887
6887
  }
6888
6888
  );
6889
- }, { Text: we, Title: zi } = bt, { TextArea: Ua } = Ke, Ga = () => {
6889
+ }, { Text: we, Title: Ni } = bt, { TextArea: Ja } = Ke, Xa = () => {
6890
6890
  const { t: e } = Ge(), n = pe((t) => t.components), r = pe((t) => t.selectedId), a = pe((t) => t.dataSources), h = pe((t) => t.updateComponent), c = pe((t) => t.updateComponentTableColumns), d = Ue(
6891
6891
  () => n.find((t) => t.id === r) || null,
6892
6892
  [n, r]
6893
- ), [E, j] = mt([]), O = Ue(
6893
+ ), [_, w] = at([]), O = Ue(
6894
6894
  () => [
6895
6895
  { label: e("property.noneStaticValue"), value: "" },
6896
6896
  ...a.map((t) => ({
@@ -6907,7 +6907,7 @@ const Ar = ({ value: e, format: n }) => {
6907
6907
  });
6908
6908
  },
6909
6909
  [r, d, h]
6910
- ), _ = Ie(
6910
+ ), E = Ie(
6911
6911
  (t, i, l, s) => {
6912
6912
  if (!r) return;
6913
6913
  let b = s;
@@ -6943,7 +6943,7 @@ const Ar = ({ value: e, format: n }) => {
6943
6943
  size: "small",
6944
6944
  style: { height: "100%", borderRadius: 0, borderLeft: 0 },
6945
6945
  styles: { body: { padding: 16 } },
6946
- children: /* @__PURE__ */ o.jsx(Yr, { description: e("property.emptyHint"), image: Yr.PRESENTED_IMAGE_SIMPLE })
6946
+ children: /* @__PURE__ */ o.jsx(Vr, { description: e("property.emptyHint"), image: Vr.PRESENTED_IMAGE_SIMPLE })
6947
6947
  }
6948
6948
  );
6949
6949
  const R = e(`component.${d.type}`), T = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
@@ -7006,7 +7006,7 @@ const Ar = ({ value: e, format: n }) => {
7006
7006
  placeholder: l,
7007
7007
  isTextarea: s = !1
7008
7008
  }) => {
7009
- const b = L(t), P = a.find((q) => q.id === b.dataSourceId), S = P ? Tr(P) : null, D = S ? Object.keys(S) : [], [M, H] = Ne.useState(b.staticValue);
7009
+ const b = L(t), P = a.find((q) => q.id === b.dataSourceId), S = P ? zr(P) : null, D = S ? Object.keys(S) : [], [M, H] = Ne.useState(b.staticValue);
7010
7010
  return Ne.useEffect(() => {
7011
7011
  H(b.staticValue);
7012
7012
  }, [b.staticValue, b.dataSourceId]), /* @__PURE__ */ o.jsxs("div", { children: [
@@ -7019,7 +7019,7 @@ const Ar = ({ value: e, format: n }) => {
7019
7019
  placeholder: e("property.selectDataSource"),
7020
7020
  value: b.dataSourceId || "",
7021
7021
  onChange: (q) => {
7022
- _(
7022
+ E(
7023
7023
  t,
7024
7024
  q || null,
7025
7025
  q && b.fieldPath || "",
@@ -7037,7 +7037,7 @@ const Ar = ({ value: e, format: n }) => {
7037
7037
  placeholder: e("property.selectField"),
7038
7038
  value: b.fieldPath,
7039
7039
  onChange: (q) => {
7040
- _(t, b.dataSourceId, q || "", b.staticValue);
7040
+ E(t, b.dataSourceId, q || "", b.staticValue);
7041
7041
  },
7042
7042
  options: [
7043
7043
  { label: e("property.selectField"), value: "" },
@@ -7047,26 +7047,26 @@ const Ar = ({ value: e, format: n }) => {
7047
7047
  ) }),
7048
7048
  b.dataSourceId ? /* @__PURE__ */ o.jsxs("div", { style: {
7049
7049
  padding: 6,
7050
- background: "#f0f5ff",
7051
- border: "1px solid #adc6ff",
7050
+ background: "var(--pd-binding-bg, #f0f5ff)",
7051
+ border: "1px solid var(--pd-binding-border, #adc6ff)",
7052
7052
  borderRadius: 4,
7053
7053
  fontSize: 12
7054
7054
  }, children: [
7055
- /* @__PURE__ */ o.jsx(In, { style: { marginRight: 4, color: "#1890ff" } }),
7055
+ /* @__PURE__ */ o.jsx(qn, { style: { marginRight: 4, color: "#1890ff" } }),
7056
7056
  /* @__PURE__ */ o.jsx("span", { style: { fontWeight: 500 }, children: e("property.bindingEnabled") }),
7057
7057
  P && b.fieldPath && /* @__PURE__ */ o.jsxs("span", { style: { marginLeft: 8 }, children: [
7058
- /* @__PURE__ */ o.jsx(yr, { color: "blue", children: P.name }),
7059
- /* @__PURE__ */ o.jsx(yr, { color: "green", children: b.fieldPath })
7058
+ /* @__PURE__ */ o.jsx(vr, { color: "blue", children: P.name }),
7059
+ /* @__PURE__ */ o.jsx(vr, { color: "green", children: b.fieldPath })
7060
7060
  ] })
7061
7061
  ] }) : s ? /* @__PURE__ */ o.jsx(
7062
- Ua,
7062
+ Ja,
7063
7063
  {
7064
7064
  rows: 3,
7065
7065
  placeholder: l,
7066
7066
  value: M,
7067
7067
  onChange: (q) => H(q.target.value),
7068
7068
  onBlur: () => {
7069
- _(t, null, "", M);
7069
+ E(t, null, "", M);
7070
7070
  }
7071
7071
  }
7072
7072
  ) : /* @__PURE__ */ o.jsx(
@@ -7076,26 +7076,26 @@ const Ar = ({ value: e, format: n }) => {
7076
7076
  value: M,
7077
7077
  onChange: (q) => H(q.target.value),
7078
7078
  onBlur: () => {
7079
- _(t, null, "", M);
7079
+ E(t, null, "", M);
7080
7080
  }
7081
7081
  }
7082
7082
  )
7083
7083
  ] });
7084
7084
  }, u = () => {
7085
- const t = d.tableColumns || [], i = a.filter((G) => G.type === "array"), l = d.props.tableDataSourceId || "", s = i.find((G) => G.id === l), b = E.length > 0 ? E : t, [P, S] = Ne.useState({}), D = () => {
7085
+ const t = d.tableColumns || [], i = a.filter((G) => G.type === "array"), l = d.props.tableDataSourceId || "", s = i.find((G) => G.id === l), b = _.length > 0 ? _ : t, [P, S] = Ne.useState({}), D = () => {
7086
7086
  c(r, b);
7087
7087
  }, M = () => {
7088
7088
  const G = [
7089
7089
  ...b,
7090
7090
  { title: e("property.columnDefault", { index: b.length + 1 }) }
7091
7091
  ];
7092
- j(G);
7092
+ w(G);
7093
7093
  }, H = (G) => {
7094
7094
  const U = b.filter((re, ce) => ce !== G);
7095
- j(U);
7095
+ w(U);
7096
7096
  }, q = (G, U, re) => {
7097
7097
  const ce = [...b];
7098
- ce[G] = { ...ce[G], [U]: re }, j(ce);
7098
+ ce[G] = { ...ce[G], [U]: re }, w(ce);
7099
7099
  };
7100
7100
  let Y = [];
7101
7101
  if (s) {
@@ -7158,7 +7158,7 @@ const Ar = ({ value: e, format: n }) => {
7158
7158
  title: e("property.action"),
7159
7159
  width: 50,
7160
7160
  render: (G, U) => /* @__PURE__ */ o.jsx(
7161
- An,
7161
+ In,
7162
7162
  {
7163
7163
  title: e("property.deleteConfirm"),
7164
7164
  onConfirm: () => {
@@ -7166,7 +7166,7 @@ const Ar = ({ value: e, format: n }) => {
7166
7166
  },
7167
7167
  okText: e("common.confirm"),
7168
7168
  cancelText: e("common.cancel"),
7169
- children: /* @__PURE__ */ o.jsx(Ae, { type: "text", danger: !0, size: "small", icon: /* @__PURE__ */ o.jsx(Rr, {}) })
7169
+ children: /* @__PURE__ */ o.jsx(Ae, { type: "text", danger: !0, size: "small", icon: /* @__PURE__ */ o.jsx(_r, {}) })
7170
7170
  }
7171
7171
  )
7172
7172
  }
@@ -7193,11 +7193,11 @@ const Ar = ({ value: e, format: n }) => {
7193
7193
  /* @__PURE__ */ o.jsx(Xe, {}),
7194
7194
  /* @__PURE__ */ o.jsxs(Ve, { style: { marginBottom: 8 }, children: [
7195
7195
  /* @__PURE__ */ o.jsx(we, { style: { fontSize: 12 }, children: e("property.columnConfig") }),
7196
- /* @__PURE__ */ o.jsx(Ae, { size: "small", type: "dashed", icon: /* @__PURE__ */ o.jsx(Or, {}), onClick: M }),
7197
- /* @__PURE__ */ o.jsx(Ae, { size: "small", type: "primary", onClick: D, icon: /* @__PURE__ */ o.jsx($n, {}) })
7196
+ /* @__PURE__ */ o.jsx(Ae, { size: "small", type: "dashed", icon: /* @__PURE__ */ o.jsx(Rr, {}), onClick: M }),
7197
+ /* @__PURE__ */ o.jsx(Ae, { size: "small", type: "primary", onClick: D, icon: /* @__PURE__ */ o.jsx(Fn, {}) })
7198
7198
  ] }),
7199
7199
  /* @__PURE__ */ o.jsx(
7200
- vo,
7200
+ xo,
7201
7201
  {
7202
7202
  dataSource: ee,
7203
7203
  columns: J,
@@ -7533,8 +7533,8 @@ const Ar = ({ value: e, format: n }) => {
7533
7533
  ] })
7534
7534
  }
7535
7535
  );
7536
- }, { Text: ki } = bt, Ja = ({ dataSources: e }) => {
7537
- const { t: n } = Ge(), r = pe((t) => t.previewVisible), a = pe((t) => t.setPreviewVisible), h = pe((t) => t.components), c = pe((t) => t.pageSettings), d = pe((t) => t.gridSettings) || Ut, E = pe((t) => t.dataSources), j = e || E, O = Cr(null), x = Ue(() => {
7536
+ }, { Text: Ai } = bt, Ka = ({ dataSources: e }) => {
7537
+ const { t: n } = Ge(), r = pe((t) => t.previewVisible), a = pe((t) => t.setPreviewVisible), h = pe((t) => t.components), c = pe((t) => t.pageSettings), d = pe((t) => t.gridSettings) || Gt, _ = pe((t) => t.dataSources), w = e || _, O = Pr(null), x = Ue(() => {
7538
7538
  const t = Kt[c.paperSize];
7539
7539
  if (!t)
7540
7540
  return {
@@ -7543,7 +7543,7 @@ const Ar = ({ value: e, format: n }) => {
7543
7543
  };
7544
7544
  const i = t.width * Re, l = t.height * Re;
7545
7545
  return c.orientation === "landscape" ? { width: l, height: i } : { width: i, height: l };
7546
- }, [c]), _ = Ue(
7546
+ }, [c]), E = Ue(
7547
7547
  () => ({
7548
7548
  top: c.marginTop * Re,
7549
7549
  right: c.marginRight * Re,
@@ -7551,7 +7551,7 @@ const Ar = ({ value: e, format: n }) => {
7551
7551
  left: c.marginLeft * Re
7552
7552
  }),
7553
7553
  [c]
7554
- ), L = x.width - _.left - _.right, R = L / d.cols, T = Fn({
7554
+ ), L = x.width - E.left - E.right, R = L / d.cols, T = Hn({
7555
7555
  contentRef: O,
7556
7556
  documentTitle: n("printPreview.documentTitle"),
7557
7557
  pageStyle: `
@@ -7566,11 +7566,11 @@ const Ar = ({ value: e, format: n }) => {
7566
7566
  }), m = (t, i) => {
7567
7567
  const l = t.props[`${i}Binding`];
7568
7568
  if (l && l.dataSourceId && l.fieldPath) {
7569
- const s = j.find((b) => b.id === l.dataSourceId);
7569
+ const s = w.find((b) => b.id === l.dataSourceId);
7570
7570
  if (s && s.type === "object") {
7571
- const b = Tr(s);
7571
+ const b = zr(s);
7572
7572
  if (b) {
7573
- const P = Sr(b, l.fieldPath);
7573
+ const P = wr(b, l.fieldPath);
7574
7574
  if (P !== "")
7575
7575
  return P;
7576
7576
  }
@@ -7578,7 +7578,7 @@ const Ar = ({ value: e, format: n }) => {
7578
7578
  }
7579
7579
  return (l == null ? void 0 : l.staticValue) ?? String(t.props[i] || "");
7580
7580
  }, u = (t) => {
7581
- const i = t.props.tableDataSourceId, l = i ? j.find((Y) => Y.id === i) : null, s = l ? zr(l) : null, b = t.tableColumns || [], P = t.props.borderWidth || 1, S = t.props.borderColor || "#000000", D = t.props.headerBackgroundColor || "#f5f5f5", M = t.props.headerColor || "#000000", H = t.props.headerFontSize || 12, q = s || Array.from({ length: t.props.rows || 3 }).map(() => ({}));
7581
+ const i = t.props.tableDataSourceId, l = i ? w.find((Y) => Y.id === i) : null, s = l ? kr(l) : null, b = t.tableColumns || [], P = t.props.borderWidth || 1, S = t.props.borderColor || "#000000", D = t.props.headerBackgroundColor || "#f5f5f5", M = t.props.headerColor || "#000000", H = t.props.headerFontSize || 12, q = s || Array.from({ length: t.props.rows || 3 }).map(() => ({}));
7582
7582
  return /* @__PURE__ */ o.jsxs(
7583
7583
  "table",
7584
7584
  {
@@ -7613,7 +7613,7 @@ const Ar = ({ value: e, format: n }) => {
7613
7613
  textAlign: "center",
7614
7614
  fontSize: 12
7615
7615
  },
7616
- children: ee.fieldPath ? Sr(Y, ee.fieldPath) : ""
7616
+ children: ee.fieldPath ? wr(Y, ee.fieldPath) : ""
7617
7617
  },
7618
7618
  G
7619
7619
  )) }, J)) })
@@ -7651,7 +7651,7 @@ const Ar = ({ value: e, format: n }) => {
7651
7651
  whiteSpace: "pre-wrap",
7652
7652
  wordBreak: "break-word"
7653
7653
  },
7654
- children: Dr(m(t, "content"), i.format)
7654
+ children: Tr(m(t, "content"), i.format)
7655
7655
  }
7656
7656
  ) }, t.id);
7657
7657
  case "image":
@@ -7681,7 +7681,7 @@ const Ar = ({ value: e, format: n }) => {
7681
7681
  padding: 4
7682
7682
  },
7683
7683
  children: /* @__PURE__ */ o.jsx(
7684
- Ar,
7684
+ $r,
7685
7685
  {
7686
7686
  value: m(t, "value"),
7687
7687
  format: i.format || "CODE128"
@@ -7701,7 +7701,7 @@ const Ar = ({ value: e, format: n }) => {
7701
7701
  padding: 4
7702
7702
  },
7703
7703
  children: /* @__PURE__ */ o.jsx(
7704
- $r,
7704
+ Ir,
7705
7705
  {
7706
7706
  value: m(t, "value"),
7707
7707
  errorLevel: i.errorLevel || "M",
@@ -7739,7 +7739,7 @@ const Ar = ({ value: e, format: n }) => {
7739
7739
  }
7740
7740
  };
7741
7741
  return /* @__PURE__ */ o.jsxs(
7742
- Pr,
7742
+ Or,
7743
7743
  {
7744
7744
  title: n("printPreview.title"),
7745
7745
  open: r,
@@ -7747,7 +7747,7 @@ const Ar = ({ value: e, format: n }) => {
7747
7747
  width: x.width + 80,
7748
7748
  footer: /* @__PURE__ */ o.jsxs(Ve, { children: [
7749
7749
  /* @__PURE__ */ o.jsx(Ae, { onClick: () => a(!1), children: n("printPreview.close") }),
7750
- /* @__PURE__ */ o.jsx(Ae, { type: "primary", icon: /* @__PURE__ */ o.jsx(_r, {}), onClick: () => T(), children: n("printPreview.print") })
7750
+ /* @__PURE__ */ o.jsx(Ae, { type: "primary", icon: /* @__PURE__ */ o.jsx(Er, {}), onClick: () => T(), children: n("printPreview.print") })
7751
7751
  ] }),
7752
7752
  styles: { body: { padding: 16, display: "flex", flexDirection: "column", alignItems: "center" } },
7753
7753
  children: [
@@ -7772,9 +7772,9 @@ const Ar = ({ value: e, format: n }) => {
7772
7772
  style: {
7773
7773
  position: "absolute",
7774
7774
  top: 0,
7775
- left: _.left,
7776
- right: _.right,
7777
- height: _.top,
7775
+ left: E.left,
7776
+ right: E.right,
7777
+ height: E.top,
7778
7778
  display: "flex",
7779
7779
  alignItems: "center",
7780
7780
  justifyContent: "center",
@@ -7790,9 +7790,9 @@ const Ar = ({ value: e, format: n }) => {
7790
7790
  style: {
7791
7791
  position: "absolute",
7792
7792
  bottom: 0,
7793
- left: _.left,
7794
- right: _.right,
7795
- height: _.bottom,
7793
+ left: E.left,
7794
+ right: E.right,
7795
+ height: E.bottom,
7796
7796
  display: "flex",
7797
7797
  alignItems: "center",
7798
7798
  justifyContent: c.showPageNumber ? "space-between" : "center",
@@ -7811,10 +7811,10 @@ const Ar = ({ value: e, format: n }) => {
7811
7811
  {
7812
7812
  style: {
7813
7813
  position: "absolute",
7814
- top: _.top,
7815
- left: _.left,
7814
+ top: E.top,
7815
+ left: E.left,
7816
7816
  width: L,
7817
- height: x.height - _.top - _.bottom
7817
+ height: x.height - E.top - E.bottom
7818
7818
  },
7819
7819
  children: h.map(p)
7820
7820
  }
@@ -7825,10 +7825,10 @@ const Ar = ({ value: e, format: n }) => {
7825
7825
  ]
7826
7826
  }
7827
7827
  );
7828
- }, Xa = () => {
7828
+ }, Qa = () => {
7829
7829
  const { t: e } = Ge(), n = pe((c) => c.headerFooterVisible), r = pe((c) => c.pageSettings), a = pe((c) => c.setPageSettings), h = pe((c) => c.setHeaderFooterVisible);
7830
7830
  return /* @__PURE__ */ o.jsx(
7831
- Pr,
7831
+ Or,
7832
7832
  {
7833
7833
  title: e("headerFooter.title"),
7834
7834
  open: n,
@@ -7837,22 +7837,22 @@ const Ar = ({ value: e, format: n }) => {
7837
7837
  okText: e("common.confirm"),
7838
7838
  cancelText: e("common.cancel"),
7839
7839
  width: 480,
7840
- children: /* @__PURE__ */ o.jsxs(st, { layout: "vertical", style: { marginTop: 8 }, children: [
7841
- /* @__PURE__ */ o.jsx(st.Item, { label: e("headerFooter.showHeader"), children: /* @__PURE__ */ o.jsx(
7840
+ children: /* @__PURE__ */ o.jsxs(lt, { layout: "vertical", style: { marginTop: 8 }, children: [
7841
+ /* @__PURE__ */ o.jsx(lt.Item, { label: e("headerFooter.showHeader"), children: /* @__PURE__ */ o.jsx(
7842
7842
  ir,
7843
7843
  {
7844
7844
  checked: r.showHeader,
7845
7845
  onChange: (c) => a({ showHeader: c })
7846
7846
  }
7847
7847
  ) }),
7848
- r.showHeader && /* @__PURE__ */ o.jsx(st.Item, { label: e("headerFooter.headerContent"), children: /* @__PURE__ */ o.jsx(
7848
+ r.showHeader && /* @__PURE__ */ o.jsx(lt.Item, { label: e("headerFooter.headerContent"), children: /* @__PURE__ */ o.jsx(
7849
7849
  Ke,
7850
7850
  {
7851
7851
  value: r.headerContent,
7852
7852
  onChange: (c) => a({ headerContent: c.target.value })
7853
7853
  }
7854
7854
  ) }),
7855
- /* @__PURE__ */ o.jsx(st.Item, { label: e("headerFooter.showFooter"), children: /* @__PURE__ */ o.jsx(
7855
+ /* @__PURE__ */ o.jsx(lt.Item, { label: e("headerFooter.showFooter"), children: /* @__PURE__ */ o.jsx(
7856
7856
  ir,
7857
7857
  {
7858
7858
  checked: r.showFooter,
@@ -7860,21 +7860,21 @@ const Ar = ({ value: e, format: n }) => {
7860
7860
  }
7861
7861
  ) }),
7862
7862
  r.showFooter && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
7863
- /* @__PURE__ */ o.jsx(st.Item, { label: e("headerFooter.footerContent"), children: /* @__PURE__ */ o.jsx(
7863
+ /* @__PURE__ */ o.jsx(lt.Item, { label: e("headerFooter.footerContent"), children: /* @__PURE__ */ o.jsx(
7864
7864
  Ke,
7865
7865
  {
7866
7866
  value: r.footerContent,
7867
7867
  onChange: (c) => a({ footerContent: c.target.value })
7868
7868
  }
7869
7869
  ) }),
7870
- /* @__PURE__ */ o.jsx(st.Item, { label: e("headerFooter.showPageNumber"), children: /* @__PURE__ */ o.jsx(
7870
+ /* @__PURE__ */ o.jsx(lt.Item, { label: e("headerFooter.showPageNumber"), children: /* @__PURE__ */ o.jsx(
7871
7871
  ir,
7872
7872
  {
7873
7873
  checked: r.showPageNumber,
7874
7874
  onChange: (c) => a({ showPageNumber: c })
7875
7875
  }
7876
7876
  ) }),
7877
- r.showPageNumber && /* @__PURE__ */ o.jsx(st.Item, { label: e("headerFooter.pageNumberFormat"), children: /* @__PURE__ */ o.jsx(
7877
+ r.showPageNumber && /* @__PURE__ */ o.jsx(lt.Item, { label: e("headerFooter.pageNumberFormat"), children: /* @__PURE__ */ o.jsx(
7878
7878
  Ke,
7879
7879
  {
7880
7880
  value: r.pageNumberFormat,
@@ -7887,15 +7887,15 @@ const Ar = ({ value: e, format: n }) => {
7887
7887
  }
7888
7888
  );
7889
7889
  };
7890
- function Ka() {
7891
- const e = Mo();
7890
+ function Za() {
7891
+ const e = No();
7892
7892
  if (e != null && e.on) return e;
7893
- const n = Ao;
7893
+ const n = Io;
7894
7894
  return n != null && n.isInitialized ? n : null;
7895
7895
  }
7896
- function Qa() {
7897
- const e = ho(ko), n = (e == null ? void 0 : e.i18n) || Ka(), [, r] = mt(0);
7898
- return Xt(() => {
7896
+ function ei() {
7897
+ const e = mo(Lo), n = (e == null ? void 0 : e.i18n) || Za(), [, r] = at(0);
7898
+ return At(() => {
7899
7899
  if (!(n != null && n.on)) return;
7900
7900
  const a = () => r((h) => h + 1);
7901
7901
  return n.on("languageChanged", a), n.on("initialized", a), () => {
@@ -7903,17 +7903,17 @@ function Qa() {
7903
7903
  };
7904
7904
  }, [n]), n;
7905
7905
  }
7906
- function Za(e) {
7907
- const n = e === "auto", r = Qa(), a = n ? Vt(r == null ? void 0 : r.language) : null, [h, c] = mt(Jr);
7908
- return Xt(() => {
7906
+ function ti(e) {
7907
+ const n = e === "auto", r = ei(), a = n ? Ut(r == null ? void 0 : r.language) : null, [h, c] = at(Kr);
7908
+ return At(() => {
7909
7909
  if (!n || a) return;
7910
- const d = () => c(Jr()), E = new MutationObserver(d);
7911
- return E.observe(document.documentElement, { attributes: !0, attributeFilter: ["lang"] }), window.addEventListener("languagechange", d), () => {
7912
- E.disconnect(), window.removeEventListener("languagechange", d);
7910
+ const d = () => c(Kr()), _ = new MutationObserver(d);
7911
+ return _.observe(document.documentElement, { attributes: !0, attributeFilter: ["lang"] }), window.addEventListener("languagechange", d), () => {
7912
+ _.disconnect(), window.removeEventListener("languagechange", d);
7913
7913
  };
7914
- }, [n, a]), n ? a || h || Lt : qn(e);
7914
+ }, [n, a]), n ? a || h || Lt : Wn(e);
7915
7915
  }
7916
- var ei = {
7916
+ var ri = {
7917
7917
  // Options
7918
7918
  items_per_page: "条/页",
7919
7919
  jump_to: "跳至",
@@ -7936,7 +7936,7 @@ function Nt(e) {
7936
7936
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
7937
7937
  }, Nt(e);
7938
7938
  }
7939
- function ti(e, n) {
7939
+ function ni(e, n) {
7940
7940
  if (Nt(e) != "object" || !e) return e;
7941
7941
  var r = e[Symbol.toPrimitive];
7942
7942
  if (r !== void 0) {
@@ -7946,19 +7946,19 @@ function ti(e, n) {
7946
7946
  }
7947
7947
  return (n === "string" ? String : Number)(e);
7948
7948
  }
7949
- function ri(e) {
7950
- var n = ti(e, "string");
7949
+ function oi(e) {
7950
+ var n = ni(e, "string");
7951
7951
  return Nt(n) == "symbol" ? n : n + "";
7952
7952
  }
7953
- function ni(e, n, r) {
7954
- return (n = ri(n)) in e ? Object.defineProperty(e, n, {
7953
+ function ai(e, n, r) {
7954
+ return (n = oi(n)) in e ? Object.defineProperty(e, n, {
7955
7955
  value: r,
7956
7956
  enumerable: !0,
7957
7957
  configurable: !0,
7958
7958
  writable: !0
7959
7959
  }) : e[n] = r, e;
7960
7960
  }
7961
- function Mn(e, n) {
7961
+ function Nn(e, n) {
7962
7962
  var r = Object.keys(e);
7963
7963
  if (Object.getOwnPropertySymbols) {
7964
7964
  var a = Object.getOwnPropertySymbols(e);
@@ -7971,20 +7971,20 @@ function Mn(e, n) {
7971
7971
  function vt(e) {
7972
7972
  for (var n = 1; n < arguments.length; n++) {
7973
7973
  var r = arguments[n] != null ? arguments[n] : {};
7974
- n % 2 ? Mn(Object(r), !0).forEach(function(a) {
7975
- ni(e, a, r[a]);
7976
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Mn(Object(r)).forEach(function(a) {
7974
+ n % 2 ? Nn(Object(r), !0).forEach(function(a) {
7975
+ ai(e, a, r[a]);
7976
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Nn(Object(r)).forEach(function(a) {
7977
7977
  Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
7978
7978
  });
7979
7979
  }
7980
7980
  return e;
7981
7981
  }
7982
- var Ir = {
7982
+ var Fr = {
7983
7983
  yearFormat: "YYYY",
7984
7984
  dayFormat: "D",
7985
7985
  cellMeridiemFormat: "A",
7986
7986
  monthBeforeYear: !0
7987
- }, oi = vt(vt({}, Ir), {}, {
7987
+ }, ii = vt(vt({}, Fr), {}, {
7988
7988
  locale: "zh_CN",
7989
7989
  today: "今天",
7990
7990
  now: "此刻",
@@ -8012,10 +8012,10 @@ var Ir = {
8012
8012
  cellDateFormat: "D",
8013
8013
  monthBeforeYear: !1
8014
8014
  });
8015
- const eo = {
8015
+ const ro = {
8016
8016
  placeholder: "请选择时间",
8017
8017
  rangePlaceholder: ["开始时间", "结束时间"]
8018
- }, jr = {
8018
+ }, Cr = {
8019
8019
  lang: Object.assign({
8020
8020
  placeholder: "请选择日期",
8021
8021
  yearPlaceholder: "请选择年份",
@@ -8027,16 +8027,16 @@ const eo = {
8027
8027
  rangeMonthPlaceholder: ["开始月份", "结束月份"],
8028
8028
  rangeQuarterPlaceholder: ["开始季度", "结束季度"],
8029
8029
  rangeWeekPlaceholder: ["开始周", "结束周"]
8030
- }, oi),
8031
- timePickerLocale: Object.assign({}, eo)
8030
+ }, ii),
8031
+ timePickerLocale: Object.assign({}, ro)
8032
8032
  };
8033
- jr.lang.ok = "确定";
8034
- const He = "${label}不是一个有效的${type}", ai = {
8033
+ Cr.lang.ok = "确定";
8034
+ const He = "${label}不是一个有效的${type}", si = {
8035
8035
  locale: "zh-cn",
8036
- Pagination: ei,
8037
- DatePicker: jr,
8038
- TimePicker: eo,
8039
- Calendar: jr,
8036
+ Pagination: ri,
8037
+ DatePicker: Cr,
8038
+ TimePicker: ro,
8039
+ Calendar: Cr,
8040
8040
  // locales for all components
8041
8041
  global: {
8042
8042
  placeholder: "请选择",
@@ -8173,7 +8173,7 @@ const He = "${label}不是一个有效的${type}", ai = {
8173
8173
  gradientColor: "渐变色"
8174
8174
  }
8175
8175
  };
8176
- var ii = {
8176
+ var li = {
8177
8177
  // Options
8178
8178
  items_per_page: "/ page",
8179
8179
  jump_to: "Go to",
@@ -8187,7 +8187,7 @@ var ii = {
8187
8187
  prev_3: "Previous 3 Pages",
8188
8188
  next_3: "Next 3 Pages",
8189
8189
  page_size: "Page Size"
8190
- }, si = vt(vt({}, Ir), {}, {
8190
+ }, ci = vt(vt({}, Fr), {}, {
8191
8191
  locale: "en_US",
8192
8192
  today: "Today",
8193
8193
  now: "Now",
@@ -8214,10 +8214,10 @@ var ii = {
8214
8214
  previousCentury: "Last century",
8215
8215
  nextCentury: "Next century"
8216
8216
  });
8217
- const to = {
8217
+ const no = {
8218
8218
  placeholder: "Select time",
8219
8219
  rangePlaceholder: ["Start time", "End time"]
8220
- }, Ln = {
8220
+ }, An = {
8221
8221
  lang: Object.assign({
8222
8222
  placeholder: "Select date",
8223
8223
  yearPlaceholder: "Select year",
@@ -8229,14 +8229,14 @@ const to = {
8229
8229
  rangeQuarterPlaceholder: ["Start quarter", "End quarter"],
8230
8230
  rangeMonthPlaceholder: ["Start month", "End month"],
8231
8231
  rangeWeekPlaceholder: ["Start week", "End week"]
8232
- }, si),
8233
- timePickerLocale: Object.assign({}, to)
8234
- }, We = "${label} is not a valid ${type}", li = {
8232
+ }, ci),
8233
+ timePickerLocale: Object.assign({}, no)
8234
+ }, We = "${label} is not a valid ${type}", ui = {
8235
8235
  locale: "en",
8236
- Pagination: ii,
8237
- DatePicker: Ln,
8238
- TimePicker: to,
8239
- Calendar: Ln,
8236
+ Pagination: li,
8237
+ DatePicker: An,
8238
+ TimePicker: no,
8239
+ Calendar: An,
8240
8240
  global: {
8241
8241
  placeholder: "Please select",
8242
8242
  close: "Close"
@@ -8372,7 +8372,7 @@ const to = {
8372
8372
  gradientColor: "Gradient"
8373
8373
  }
8374
8374
  };
8375
- var ci = {
8375
+ var di = {
8376
8376
  // Options
8377
8377
  items_per_page: "件 / ページ",
8378
8378
  jump_to: "移動",
@@ -8386,7 +8386,7 @@ var ci = {
8386
8386
  prev_3: "前 3ページ",
8387
8387
  next_3: "次 3ページ",
8388
8388
  page_size: "ページサイズ"
8389
- }, ui = vt(vt({}, Ir), {}, {
8389
+ }, pi = vt(vt({}, Fr), {}, {
8390
8390
  locale: "ja_JP",
8391
8391
  today: "今日",
8392
8392
  now: "現在時刻",
@@ -8415,10 +8415,10 @@ var ci = {
8415
8415
  nextCentury: "次の世紀",
8416
8416
  monthBeforeYear: !1
8417
8417
  });
8418
- const ro = {
8418
+ const oo = {
8419
8419
  placeholder: "時間を選択",
8420
8420
  rangePlaceholder: ["開始時間", "終了時間"]
8421
- }, Nn = {
8421
+ }, $n = {
8422
8422
  lang: Object.assign({
8423
8423
  placeholder: "日付を選択",
8424
8424
  yearPlaceholder: "年を選択",
@@ -8432,14 +8432,14 @@ const ro = {
8432
8432
  rangeWeekPlaceholder: ["開始週", "終了週"],
8433
8433
  shortWeekDays: ["日", "月", "火", "水", "木", "金", "土"],
8434
8434
  shortMonths: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"]
8435
- }, ui),
8436
- timePickerLocale: Object.assign({}, ro)
8437
- }, Be = "${label}は有効な${type}ではありません", di = {
8435
+ }, pi),
8436
+ timePickerLocale: Object.assign({}, oo)
8437
+ }, Be = "${label}は有効な${type}ではありません", fi = {
8438
8438
  locale: "ja",
8439
- Pagination: ci,
8440
- DatePicker: Nn,
8441
- TimePicker: ro,
8442
- Calendar: Nn,
8439
+ Pagination: di,
8440
+ DatePicker: $n,
8441
+ TimePicker: oo,
8442
+ Calendar: $n,
8443
8443
  global: {
8444
8444
  placeholder: "選んでください",
8445
8445
  close: "閉じる"
@@ -8574,28 +8574,51 @@ const ro = {
8574
8574
  singleColor: "単色",
8575
8575
  gradientColor: "グラデーション"
8576
8576
  }
8577
- }, pi = {
8578
- "zh-CN": ai,
8579
- "en-US": li,
8580
- "ja-JP": di
8581
- }, fi = ({
8577
+ }, hi = {
8578
+ "zh-CN": si,
8579
+ "en-US": ui,
8580
+ "ja-JP": fi
8581
+ }, mr = () => {
8582
+ if (typeof document > "u") return null;
8583
+ const e = document.documentElement.getAttribute("data-erp-dark");
8584
+ return e === "true" ? !0 : e === "false" ? !1 : null;
8585
+ }, gi = () => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches;
8586
+ function mi(e) {
8587
+ const [n, r] = at(mr), [a, h] = at(gi);
8588
+ return At(() => {
8589
+ if (e !== "auto") return;
8590
+ r(mr());
8591
+ const c = new MutationObserver(() => r(mr()));
8592
+ if (c.observe(document.documentElement, {
8593
+ attributes: !0,
8594
+ attributeFilter: ["data-erp-dark"]
8595
+ }), typeof window.matchMedia == "function") {
8596
+ const d = window.matchMedia("(prefers-color-scheme: dark)"), _ = (w) => h(w.matches);
8597
+ return d.addEventListener("change", _), () => {
8598
+ c.disconnect(), d.removeEventListener("change", _);
8599
+ };
8600
+ }
8601
+ return () => c.disconnect();
8602
+ }, [e]), e === "dark" ? !0 : e === "light" ? !1 : n ?? a;
8603
+ }
8604
+ const yi = ({
8582
8605
  isPreview: e = !1,
8583
8606
  initialTemplateData: n,
8584
8607
  dataSource: r,
8585
8608
  onSave: a,
8586
8609
  onPrint: h
8587
8610
  }) => {
8588
- const { t: c } = Ge(), { importJSON: d, exportJSON: E, reset: j, components: O, pageSettings: x, gridSettings: _, dataSources: L } = pe(), R = Cr(null);
8589
- Xt(() => {
8611
+ const { t: c } = Ge(), { importJSON: d, exportJSON: _, reset: w, components: O, pageSettings: x, gridSettings: E, dataSources: L } = pe(), R = Pr(null);
8612
+ At(() => {
8590
8613
  if (n) {
8591
8614
  const S = JSON.stringify(n), D = d(S);
8592
- D && (console.error("Import failed:", c(D)), j());
8615
+ D && (console.error("Import failed:", c(D)), w());
8593
8616
  }
8594
- }, [n, d, j, c]);
8617
+ }, [n, d, w, c]);
8595
8618
  const T = () => {
8596
8619
  if (a)
8597
8620
  try {
8598
- const S = E();
8621
+ const S = _();
8599
8622
  a(JSON.parse(S));
8600
8623
  } catch (S) {
8601
8624
  console.error("Export failed:", S);
@@ -8617,7 +8640,7 @@ const ro = {
8617
8640
  left: x.marginLeft * Re
8618
8641
  }),
8619
8642
  [x]
8620
- ), p = m.width - u.left - u.right, t = p / ((_ == null ? void 0 : _.cols) || Ut.cols), i = Ue(() => {
8643
+ ), p = m.width - u.left - u.right, t = p / ((E == null ? void 0 : E.cols) || Gt.cols), i = Ue(() => {
8621
8644
  if (!r)
8622
8645
  return L;
8623
8646
  const S = r.data && typeof r.data == "object", D = Array.isArray(r.list), M = S ? JSON.stringify(r.data) : null, H = D ? JSON.stringify(r.list) : null;
@@ -8636,7 +8659,7 @@ const ro = {
8636
8659
  data: H,
8637
8660
  createdAt: 0
8638
8661
  }), J;
8639
- }, [r, L, c]), l = Fn({
8662
+ }, [r, L, c]), l = Hn({
8640
8663
  contentRef: R,
8641
8664
  documentTitle: c("printPreview.documentTitle"),
8642
8665
  pageStyle: `
@@ -8681,7 +8704,7 @@ const ro = {
8681
8704
  whiteSpace: "pre-wrap",
8682
8705
  wordBreak: "break-word"
8683
8706
  },
8684
- children: Dr(zt(S, "content", i), D.format)
8707
+ children: Tr(zt(S, "content", i), D.format)
8685
8708
  }
8686
8709
  ) }, S.id);
8687
8710
  case "image":
@@ -8711,7 +8734,7 @@ const ro = {
8711
8734
  padding: 4
8712
8735
  },
8713
8736
  children: /* @__PURE__ */ o.jsx(
8714
- Ar,
8737
+ $r,
8715
8738
  {
8716
8739
  value: zt(S, "value", i),
8717
8740
  format: D.format || "CODE128"
@@ -8731,7 +8754,7 @@ const ro = {
8731
8754
  padding: 4
8732
8755
  },
8733
8756
  children: /* @__PURE__ */ o.jsx(
8734
- $r,
8757
+ Ir,
8735
8758
  {
8736
8759
  value: zt(S, "value", i),
8737
8760
  errorLevel: D.errorLevel || "M",
@@ -8768,7 +8791,7 @@ const ro = {
8768
8791
  return null;
8769
8792
  }
8770
8793
  }, P = (S) => {
8771
- const D = S.props.tableDataSourceId, M = D ? i.find((de) => de.id === D) : null, H = M ? zr(M) : null, q = S.tableColumns || [], Y = S.props.borderWidth || 1, J = S.props.borderColor || "#000000", ee = S.props.headerBackgroundColor || "#f5f5f5", G = S.props.headerColor || "#000000", U = S.props.headerFontSize || 12;
8794
+ const D = S.props.tableDataSourceId, M = D ? i.find((de) => de.id === D) : null, H = M ? kr(M) : null, q = S.tableColumns || [], Y = S.props.borderWidth || 1, J = S.props.borderColor || "#000000", ee = S.props.headerBackgroundColor || "#f5f5f5", G = S.props.headerColor || "#000000", U = S.props.headerFontSize || 12;
8772
8795
  if (H && H.length > 0)
8773
8796
  return /* @__PURE__ */ o.jsxs(
8774
8797
  "table",
@@ -8835,9 +8858,9 @@ const ro = {
8835
8858
  }
8836
8859
  );
8837
8860
  };
8838
- return e ? /* @__PURE__ */ o.jsx(mr, { children: /* @__PURE__ */ o.jsxs("div", { style: { width: "100%", height: "100%", display: "flex", flexDirection: "column" }, children: [
8839
- /* @__PURE__ */ o.jsx("div", { style: { padding: "6px 8px", borderBottom: "1px solid #e8e8e8", background: "#fff", textAlign: "right" }, children: /* @__PURE__ */ o.jsx(Ve, { children: /* @__PURE__ */ o.jsx(Ae, { type: "text", ghost: !0, icon: /* @__PURE__ */ o.jsx(_r, {}), onClick: s }) }) }),
8840
- /* @__PURE__ */ o.jsx("div", { style: { flex: 1, display: "flex", justifyContent: "center", alignItems: "flex-start", padding: "16px", boxSizing: "border-box", overflowY: "auto", background: "#e8e8e8" }, children: /* @__PURE__ */ o.jsx("div", { style: { flexShrink: 0 }, children: /* @__PURE__ */ o.jsx(kn, { isPreview: !0, dataSources: i }) }) }),
8861
+ return e ? /* @__PURE__ */ o.jsx(yr, { children: /* @__PURE__ */ o.jsxs("div", { style: { width: "100%", height: "100%", display: "flex", flexDirection: "column" }, children: [
8862
+ /* @__PURE__ */ o.jsx("div", { style: { padding: "6px 8px", borderBottom: "1px solid var(--pd-chrome-border, #e8e8e8)", background: "var(--pd-chrome-bg, #fff)", textAlign: "right" }, children: /* @__PURE__ */ o.jsx(Ve, { children: /* @__PURE__ */ o.jsx(Ae, { type: "text", ghost: !0, icon: /* @__PURE__ */ o.jsx(Er, {}), onClick: s }) }) }),
8863
+ /* @__PURE__ */ o.jsx("div", { style: { flex: 1, display: "flex", justifyContent: "center", alignItems: "flex-start", padding: "16px", boxSizing: "border-box", overflowY: "auto", background: "var(--pd-canvas-bg, #e8e8e8)" }, children: /* @__PURE__ */ o.jsx("div", { style: { flexShrink: 0 }, children: /* @__PURE__ */ o.jsx(Ln, { isPreview: !0, dataSources: i }) }) }),
8841
8864
  /* @__PURE__ */ o.jsx("div", { style: { position: "absolute", left: "-9999px", top: "-9999px" }, children: /* @__PURE__ */ o.jsxs(
8842
8865
  "div",
8843
8866
  {
@@ -8906,41 +8929,69 @@ const ro = {
8906
8929
  ]
8907
8930
  }
8908
8931
  ) })
8909
- ] }) }) : /* @__PURE__ */ o.jsx(mr, { children: /* @__PURE__ */ o.jsxs("div", { className: "app-container", children: [
8910
- /* @__PURE__ */ o.jsx(Ko, { onCustomSave: a ? T : void 0, onCustomPrint: h }),
8911
- /* @__PURE__ */ o.jsxs(At, { className: "app-body", children: [
8912
- /* @__PURE__ */ o.jsx(At.Panel, { defaultSize: "30%", min: 80, max: "50%", collapsible: !0, children: /* @__PURE__ */ o.jsx("div", { className: "app-left-panel", children: /* @__PURE__ */ o.jsx(ia, {}) }) }),
8913
- /* @__PURE__ */ o.jsx(At.Panel, { min: 400, children: /* @__PURE__ */ o.jsx(kn, { dataSources: i }) }),
8914
- /* @__PURE__ */ o.jsx(At.Panel, { defaultSize: "30%", min: 80, max: "50%", collapsible: !0, children: /* @__PURE__ */ o.jsx("div", { className: "app-right-panel", children: /* @__PURE__ */ o.jsx(Ga, {}) }) })
8932
+ ] }) }) : /* @__PURE__ */ o.jsx(yr, { children: /* @__PURE__ */ o.jsxs("div", { className: "app-container", children: [
8933
+ /* @__PURE__ */ o.jsx(Zo, { onCustomSave: a ? T : void 0, onCustomPrint: h }),
8934
+ /* @__PURE__ */ o.jsxs($t, { className: "app-body", children: [
8935
+ /* @__PURE__ */ o.jsx($t.Panel, { defaultSize: "20%", min: 80, max: "50%", collapsible: !0, children: /* @__PURE__ */ o.jsx("div", { className: "app-left-panel", children: /* @__PURE__ */ o.jsx(la, {}) }) }),
8936
+ /* @__PURE__ */ o.jsx($t.Panel, { min: 400, children: /* @__PURE__ */ o.jsx(Ln, { dataSources: i }) }),
8937
+ /* @__PURE__ */ o.jsx($t.Panel, { defaultSize: "20%", min: 80, max: "50%", collapsible: !0, children: /* @__PURE__ */ o.jsx("div", { className: "app-right-panel", children: /* @__PURE__ */ o.jsx(Xa, {}) }) })
8915
8938
  ] }),
8916
- /* @__PURE__ */ o.jsx(Ja, { dataSources: i }),
8917
- /* @__PURE__ */ o.jsx(Xa, {})
8939
+ /* @__PURE__ */ o.jsx(Ka, { dataSources: i }),
8940
+ /* @__PURE__ */ o.jsx(Qa, {})
8918
8941
  ] }) });
8919
- }, no = ({ locale: e, ...n }) => (Ue(() => {
8920
- ct.language !== e && ct.changeLanguage(e);
8921
- }, [e]), Xt(() => {
8922
- pe.getState().reseedLocalizedDefaults();
8923
- }, [e]), /* @__PURE__ */ o.jsx(Lo, { i18n: ct, children: /* @__PURE__ */ o.jsx(bo, { locale: pi[e], children: /* @__PURE__ */ o.jsx(fi, { ...n }) }) })), hi = (e) => {
8924
- const n = Za("auto");
8925
- return /* @__PURE__ */ o.jsx(no, { locale: n, ...e });
8926
- }, Mi = ({ locale: e = Lt, ...n }) => e === "auto" ? /* @__PURE__ */ o.jsx(hi, { ...n }) : /* @__PURE__ */ o.jsx(no, { locale: qn(e), ...n });
8942
+ }, ao = ({ locale: e, theme: n, ...r }) => {
8943
+ Ue(() => {
8944
+ ut.language !== e && ut.changeLanguage(e);
8945
+ }, [e]);
8946
+ const a = mi(n);
8947
+ return At(() => {
8948
+ pe.getState().reseedLocalizedDefaults();
8949
+ }, [e]), /* @__PURE__ */ o.jsx(
8950
+ "div",
8951
+ {
8952
+ className: "pd-theme-root",
8953
+ "data-pd-dark": a ? "true" : "false",
8954
+ style: { width: "100%", height: "100%" },
8955
+ children: /* @__PURE__ */ o.jsx(Ao, { i18n: ut, children: /* @__PURE__ */ o.jsx(
8956
+ So,
8957
+ {
8958
+ locale: hi[e],
8959
+ theme: {
8960
+ algorithm: a ? Ur.darkAlgorithm : Ur.defaultAlgorithm
8961
+ },
8962
+ children: /* @__PURE__ */ o.jsx(yi, { ...r })
8963
+ }
8964
+ ) })
8965
+ }
8966
+ );
8967
+ }, vi = ({
8968
+ theme: e = "auto",
8969
+ ...n
8970
+ }) => {
8971
+ const r = ti("auto");
8972
+ return /* @__PURE__ */ o.jsx(ao, { locale: r, theme: e, ...n });
8973
+ }, $i = ({
8974
+ locale: e = Lt,
8975
+ theme: n = "auto",
8976
+ ...r
8977
+ }) => e === "auto" ? /* @__PURE__ */ o.jsx(vi, { theme: n, ...r }) : /* @__PURE__ */ o.jsx(ao, { locale: Wn(e), theme: n, ...r });
8927
8978
  export {
8928
8979
  Lt as DEFAULT_LOCALE,
8929
- ji as LOCALE_NAMES,
8930
- Mi as PrintDesigner,
8931
- Er as SUPPORTED_LOCALES,
8932
- Mi as default,
8933
- Jr as detectEnvironmentLocale,
8934
- Dr as formatRenderValue,
8935
- zr as getArrayFromDataSource,
8936
- Tr as getObjectFromDataSource,
8980
+ Ri as LOCALE_NAMES,
8981
+ $i as PrintDesigner,
8982
+ Dr as SUPPORTED_LOCALES,
8983
+ $i as default,
8984
+ Kr as detectEnvironmentLocale,
8985
+ Tr as formatRenderValue,
8986
+ kr as getArrayFromDataSource,
8987
+ zr as getObjectFromDataSource,
8937
8988
  zt as getRenderValue,
8938
- Sr as getValueByPath,
8939
- Vt as matchLocale,
8940
- qn as normalizeLocale,
8941
- ct as printDesignerI18n,
8989
+ wr as getValueByPath,
8990
+ Ut as matchLocale,
8991
+ Wn as normalizeLocale,
8992
+ ut as printDesignerI18n,
8942
8993
  Qt as safeParseJSON,
8943
8994
  pe as useDesignerStore,
8944
- Qa as useHostI18nInstance,
8945
- Za as useResolvedLocale
8995
+ ei as useHostI18nInstance,
8996
+ ti as useResolvedLocale
8946
8997
  };