template-designer 0.1.9 → 0.2.0

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.
@@ -38,45 +38,45 @@ const ed = {
38
38
  overflow: "hidden",
39
39
  boxSizing: "border-box"
40
40
  })), i = Z(/* @__PURE__ */ new Map()), l = (d) => {
41
- var f, B, g, h, p, Q;
41
+ var f, B, U, g, Q, p;
42
42
  if (i.value.has(d))
43
43
  return i.value.get(d);
44
- const U = ((Q = (p = (h = (g = (B = (f = A.propsConfig) == null ? void 0 : f.text) == null ? void 0 : B.propertyPanel) == null ? void 0 : g.find((C) => C.prop == "FontName")) == null ? void 0 : h.options) == null ? void 0 : p.find((C) => C.value == d)) == null ? void 0 : Q.cssValue) || d;
45
- return i.value.set(d, U), U;
44
+ const h = ((p = (Q = (g = (U = (B = (f = A.propsConfig) == null ? void 0 : f.text) == null ? void 0 : B.propertyPanel) == null ? void 0 : U.find((C) => C.prop == "FontName")) == null ? void 0 : g.options) == null ? void 0 : Q.find((C) => C.value == d)) == null ? void 0 : p.cssValue) || d;
45
+ return i.value.set(d, h), h;
46
46
  }, s = {
47
47
  1: "left",
48
48
  2: "center",
49
49
  3: "right"
50
50
  }, c = b(() => {
51
- const d = A.modelValue.TextWrap ?? r.value.TextWrap ?? 1, U = A.modelValue.FontSize ?? r.value.FontSize, f = A.modelValue.FontName || r.value.FontName, B = A.modelValue.Bold || r.value.Bold, g = A.modelValue.Italic || r.value.Italic, h = A.modelValue.FontColor || r.value.FontColor, p = A.modelValue.Alignment || r.value.Alignment || 2, Q = {
52
- fontSize: U + "px",
51
+ const d = A.modelValue.TextWrap ?? r.value.TextWrap ?? 1, h = A.modelValue.FontSize ?? r.value.FontSize, f = A.modelValue.FontName || r.value.FontName, B = A.modelValue.Bold || r.value.Bold, U = A.modelValue.Italic || r.value.Italic, g = A.modelValue.FontColor || r.value.FontColor, Q = A.modelValue.Alignment || r.value.Alignment || 2, p = {
52
+ fontSize: h + "px",
53
53
  fontFamily: l(f),
54
54
  fontWeight: B ? "bold" : "normal",
55
- fontStyle: g ? "italic" : "normal",
56
- color: h,
55
+ fontStyle: U ? "italic" : "normal",
56
+ color: g,
57
57
  width: "100%",
58
58
  minWidth: 0,
59
59
  boxSizing: "border-box",
60
- textAlign: s[p]
60
+ textAlign: s[Q]
61
61
  };
62
62
  switch (d) {
63
63
  case 1:
64
- Q.whiteSpace = "pre-wrap", Q.overflow = "visible", Q.textOverflow = "unset";
64
+ p.whiteSpace = "pre-wrap", p.overflow = "visible", p.textOverflow = "unset";
65
65
  break;
66
66
  case 2:
67
- Q.whiteSpace = "nowrap", Q.overflow = "hidden", Q.textOverflow = "ellipsis";
67
+ p.whiteSpace = "nowrap", p.overflow = "hidden", p.textOverflow = "ellipsis";
68
68
  break;
69
69
  case 3:
70
- Q.whiteSpace = "nowrap", Q.overflow = "hidden", Q.textOverflow = "clip";
70
+ p.whiteSpace = "nowrap", p.overflow = "hidden", p.textOverflow = "clip";
71
71
  break;
72
72
  }
73
- return Q;
73
+ return p;
74
74
  }), u = () => {
75
- var U, f;
76
- const d = at((f = (U = A.propsConfig) == null ? void 0 : U.text) == null ? void 0 : f.propertyPanel) || {};
75
+ var h, f;
76
+ const d = at((f = (h = A.propsConfig) == null ? void 0 : h.text) == null ? void 0 : f.propertyPanel) || {};
77
77
  r.value = d, i.value.clear();
78
78
  };
79
- return FA(() => A.propsConfig, () => u(), { deep: !0, immediate: !0 }), (d, U) => (V(), N("div", {
79
+ return FA(() => A.propsConfig, () => u(), { deep: !0, immediate: !0 }), (d, h) => (V(), N("div", {
80
80
  class: "td-text-component",
81
81
  style: AA(o.value)
82
82
  }, [
@@ -104,26 +104,26 @@ const ed = {
104
104
  b: (B = "") => Le(t.value, e, B, "", ""),
105
105
  e: (B) => B ? Le(t.value, e, "", B, "") : "",
106
106
  m: (B) => B ? Le(t.value, e, "", "", B) : "",
107
- be: (B, g) => B && g ? Le(t.value, e, B, g, "") : "",
108
- em: (B, g) => B && g ? Le(t.value, e, "", B, g) : "",
109
- bm: (B, g) => B && g ? Le(t.value, e, B, "", g) : "",
110
- bem: (B, g, h) => B && g && h ? Le(t.value, e, B, g, h) : "",
111
- is: (B, ...g) => {
112
- const h = g.length >= 1 ? g[0] : !0;
113
- return B && h ? `${td}${B}` : "";
107
+ be: (B, U) => B && U ? Le(t.value, e, B, U, "") : "",
108
+ em: (B, U) => B && U ? Le(t.value, e, "", B, U) : "",
109
+ bm: (B, U) => B && U ? Le(t.value, e, B, "", U) : "",
110
+ bem: (B, U, g) => B && U && g ? Le(t.value, e, B, U, g) : "",
111
+ is: (B, ...U) => {
112
+ const g = U.length >= 1 ? U[0] : !0;
113
+ return B && g ? `${td}${B}` : "";
114
114
  },
115
115
  cssVar: (B) => {
116
- const g = {};
117
- for (const h in B)
118
- B[h] && (g[`--${t.value}-${h}`] = B[h]);
119
- return g;
116
+ const U = {};
117
+ for (const g in B)
118
+ B[g] && (U[`--${t.value}-${g}`] = B[g]);
119
+ return U;
120
120
  },
121
121
  cssVarName: (B) => `--${t.value}-${B}`,
122
122
  cssVarBlock: (B) => {
123
- const g = {};
124
- for (const h in B)
125
- B[h] && (g[`--${t.value}-${e}-${h}`] = B[h]);
126
- return g;
123
+ const U = {};
124
+ for (const g in B)
125
+ B[g] && (U[`--${t.value}-${e}-${g}`] = B[g]);
126
+ return U;
127
127
  },
128
128
  cssVarBlockName: (B) => `--${t.value}-${e}-${B}`
129
129
  };
@@ -479,8 +479,8 @@ function DB(...e) {
479
479
  Array.isArray(t) || (t = [t]), Array.isArray(r) || (r = [r]);
480
480
  const a = [], o = () => {
481
481
  a.forEach((c) => c()), a.length = 0;
482
- }, i = (c, u, d, U) => (c.addEventListener(u, d, U), () => c.removeEventListener(u, d, U)), l = FA(() => [ys(A), Vo(n)], ([c, u]) => {
483
- o(), c && a.push(...t.flatMap((d) => r.map((U) => i(c, d, U, u))));
482
+ }, i = (c, u, d, h) => (c.addEventListener(u, d, h), () => c.removeEventListener(u, d, h)), l = FA(() => [ys(A), Vo(n)], ([c, u]) => {
483
+ o(), c && a.push(...t.flatMap((d) => r.map((h) => i(c, d, h, u))));
484
484
  }, { immediate: !0, flush: "post" }), s = () => {
485
485
  l(), o();
486
486
  };
@@ -771,7 +771,7 @@ const A0 = (e) => (A, t) => e0(A, t, I(e)), e0 = (e, A, t) => NB(t, e, e).replac
771
771
  validator: t || o ? (s) => {
772
772
  let c = !1, u = [];
773
773
  if (t && (u = Array.from(t), Vi(e, "default") && u.push(n), c || (c = u.includes(s))), o && (c || (c = o(s))), !c && u.length > 0) {
774
- const d = [...new Set(u)].map((U) => JSON.stringify(U)).join(", ");
774
+ const d = [...new Set(u)].map((h) => JSON.stringify(h)).join(", ");
775
775
  Lu(`Invalid prop: validation failed${A ? ` for prop "${A}"` : ""}. Expected one of [${d}], got value ${JSON.stringify(s)}.`);
776
776
  }
777
777
  return c;
@@ -1241,21 +1241,21 @@ const Os = [
1241
1241
  emits: H0,
1242
1242
  setup(e, { expose: A, emit: t }) {
1243
1243
  const r = e, { Close: n } = m0, a = Z(!1), { ns: o, zIndex: i } = c0("message"), { currentZIndex: l, nextZIndex: s } = i, c = Z(), u = Z(!1), d = Z(0);
1244
- let U;
1244
+ let h;
1245
1245
  const f = b(() => r.type ? r.type === "error" ? "danger" : r.type : "info"), B = b(() => {
1246
1246
  const T = r.type;
1247
1247
  return { [o.bm("icon", T)]: T && Gi[T] };
1248
- }), g = b(() => r.icon || Gi[r.type] || ""), h = b(() => Z0(r.id)), p = b(() => k0(r.id, r.offset) + h.value), Q = b(() => d.value + p.value), C = b(() => ({
1249
- top: `${p.value}px`,
1248
+ }), U = b(() => r.icon || Gi[r.type] || ""), g = b(() => Z0(r.id)), Q = b(() => k0(r.id, r.offset) + g.value), p = b(() => d.value + Q.value), C = b(() => ({
1249
+ top: `${Q.value}px`,
1250
1250
  zIndex: l.value
1251
1251
  }));
1252
1252
  function v() {
1253
- r.duration !== 0 && ({ stop: U } = WB(() => {
1253
+ r.duration !== 0 && ({ stop: h } = WB(() => {
1254
1254
  R();
1255
1255
  }, r.duration));
1256
1256
  }
1257
1257
  function w() {
1258
- U == null || U();
1258
+ h == null || h();
1259
1259
  }
1260
1260
  function R() {
1261
1261
  u.value = !1, de(() => {
@@ -1274,7 +1274,7 @@ const Os = [
1274
1274
  d.value = c.value.getBoundingClientRect().height;
1275
1275
  }), A({
1276
1276
  visible: u,
1277
- bottom: Q,
1277
+ bottom: p,
1278
1278
  close: R
1279
1279
  }), (T, O) => (V(), vA(hs, {
1280
1280
  name: I(o).b("fade"),
@@ -1306,12 +1306,12 @@ const Os = [
1306
1306
  type: I(f),
1307
1307
  class: _A(I(o).e("badge"))
1308
1308
  }, null, 8, ["value", "type", "class"])) : tA("v-if", !0),
1309
- I(g) ? (V(), vA(I(Li), {
1309
+ I(U) ? (V(), vA(I(Li), {
1310
1310
  key: 1,
1311
1311
  class: _A([I(o).e("icon"), I(B)])
1312
1312
  }, {
1313
1313
  default: j(() => [
1314
- (V(), vA(cr(I(g))))
1314
+ (V(), vA(cr(I(U))))
1315
1315
  ]),
1316
1316
  _: 1
1317
1317
  }, 8, ["class"])) : tA("v-if", !0),
@@ -1467,31 +1467,31 @@ const yA = (e, A) => {
1467
1467
  }), u = () => {
1468
1468
  n.value && !a.value && n.value.click();
1469
1469
  }, d = (B) => {
1470
- const g = B.target.value.trim();
1471
- g ? g.startsWith("http://") || g.startsWith("https://") || g.startsWith("data:") ? s.value = g : g.startsWith("data:") || (s.value = g) : s.value = "";
1472
- }, U = async (B) => {
1473
- var Q;
1474
- const g = B.target.files[0];
1475
- if (!g)
1470
+ const U = B.target.value.trim();
1471
+ U ? U.startsWith("http://") || U.startsWith("https://") || U.startsWith("data:") ? s.value = U : U.startsWith("data:") || (s.value = U) : s.value = "";
1472
+ }, h = async (B) => {
1473
+ var p;
1474
+ const U = B.target.files[0];
1475
+ if (!U)
1476
1476
  return;
1477
- if (t.accept && !g.type.match(t.accept.replace("*", ".*"))) {
1477
+ if (t.accept && !U.type.match(t.accept.replace("*", ".*"))) {
1478
1478
  alert("请选择正确的文件类型");
1479
1479
  return;
1480
1480
  }
1481
- const h = (Q = l == null ? void 0 : l.image) == null ? void 0 : Q.request;
1482
- if (!h || typeof h != "function") {
1483
- f(g);
1481
+ const g = (p = l == null ? void 0 : l.image) == null ? void 0 : p.request;
1482
+ if (!g || typeof g != "function") {
1483
+ f(U);
1484
1484
  return;
1485
1485
  }
1486
- i.value = g;
1487
- let p = null;
1486
+ i.value = U;
1487
+ let Q = null;
1488
1488
  try {
1489
- a.value = !0, p = h(g), o.value = p;
1490
- const C = await p;
1491
- if (o.value === p && i.value === g)
1489
+ a.value = !0, Q = g(U), o.value = Q;
1490
+ const C = await Q;
1491
+ if (o.value === Q && i.value === U)
1492
1492
  if (C && C.success !== !1) {
1493
1493
  const v = C.url || C.data || C, w = {
1494
- fileName: g.name,
1494
+ fileName: U.name,
1495
1495
  fileSrc: v,
1496
1496
  uploadResult: C
1497
1497
  };
@@ -1501,54 +1501,54 @@ const yA = (e, A) => {
1501
1501
  else
1502
1502
  console.log("组件已切换或文件已改变,忽略上传结果");
1503
1503
  } catch (C) {
1504
- o.value === p && i.value === g && (n.value && (n.value.value = ""), dr.error(C.message || "上传失败,请重试"));
1504
+ o.value === Q && i.value === U && (n.value && (n.value.value = ""), dr.error(C.message || "上传失败,请重试"));
1505
1505
  } finally {
1506
- o.value === p && (a.value = !1, o.value = null, i.value = null);
1506
+ o.value === Q && (a.value = !1, o.value = null, i.value = null);
1507
1507
  }
1508
1508
  }, f = (B) => {
1509
- const g = new FileReader();
1510
- g.onload = (h) => {
1511
- const p = {
1509
+ const U = new FileReader();
1510
+ U.onload = (g) => {
1511
+ const Q = {
1512
1512
  fileName: B.name,
1513
- fileSrc: h.target.result
1513
+ fileSrc: g.target.result
1514
1514
  };
1515
- s.value = p, r("change", { target: { files: [B] } });
1516
- }, g.onerror = () => {
1515
+ s.value = Q, r("change", { target: { files: [B] } });
1516
+ }, U.onerror = () => {
1517
1517
  alert("文件读取失败,请重试");
1518
- }, g.readAsDataURL(B);
1518
+ }, U.readAsDataURL(B);
1519
1519
  };
1520
1520
  return zu(() => {
1521
1521
  o.value = null, i.value = null;
1522
- }), (B, g) => {
1523
- const h = QA("el-icon-loading"), p = QA("el-icon");
1522
+ }), (B, U) => {
1523
+ const g = QA("el-icon-loading"), Q = QA("el-icon");
1524
1524
  return V(), N("div", Y0, [
1525
1525
  e.label ? (V(), N("label", z0, fe(e.label), 1)) : tA("", !0),
1526
1526
  e.type === "select" ? GA((V(), N("select", {
1527
1527
  key: 1,
1528
- "onUpdate:modelValue": g[0] || (g[0] = (Q) => s.value = Q)
1528
+ "onUpdate:modelValue": U[0] || (U[0] = (p) => s.value = p)
1529
1529
  }, [
1530
- (V(!0), N(VA, null, Me(e.options, (Q) => (V(), N("option", {
1531
- key: Q.value,
1532
- value: Q.value
1533
- }, fe(Q.label), 9, j0))), 128))
1530
+ (V(!0), N(VA, null, Me(e.options, (p) => (V(), N("option", {
1531
+ key: p.value,
1532
+ value: p.value
1533
+ }, fe(p.label), 9, j0))), 128))
1534
1534
  ], 512)), [
1535
1535
  [ju, s.value]
1536
1536
  ]) : e.type === "color" ? GA((V(), N("input", {
1537
1537
  key: 2,
1538
- "onUpdate:modelValue": g[1] || (g[1] = (Q) => s.value = Q),
1538
+ "onUpdate:modelValue": U[1] || (U[1] = (p) => s.value = p),
1539
1539
  type: "color"
1540
1540
  }, null, 512)), [
1541
1541
  [Ye, s.value]
1542
1542
  ]) : e.type === "checkbox" ? GA((V(), N("input", {
1543
1543
  key: 3,
1544
- "onUpdate:modelValue": g[2] || (g[2] = (Q) => s.value = Q),
1544
+ "onUpdate:modelValue": U[2] || (U[2] = (p) => s.value = p),
1545
1545
  type: "checkbox"
1546
1546
  }, null, 512)), [
1547
1547
  [Xu, s.value]
1548
1548
  ]) : e.type === "file" ? (V(), N("div", X0, [
1549
1549
  GA(m("input", {
1550
1550
  type: "text",
1551
- "onUpdate:modelValue": g[3] || (g[3] = (Q) => c.value = Q),
1551
+ "onUpdate:modelValue": U[3] || (U[3] = (p) => c.value = p),
1552
1552
  placeholder: "请选择图片",
1553
1553
  class: "file-url-input",
1554
1554
  onInput: d,
@@ -1562,12 +1562,12 @@ const yA = (e, A) => {
1562
1562
  class: "file-select-btn",
1563
1563
  disabled: a.value
1564
1564
  }, [
1565
- a.value ? (V(), vA(p, {
1565
+ a.value ? (V(), vA(Q, {
1566
1566
  key: 0,
1567
1567
  class: "is-loading"
1568
1568
  }, {
1569
1569
  default: j(() => [
1570
- W(h)
1570
+ W(g)
1571
1571
  ]),
1572
1572
  _: 1
1573
1573
  })) : (V(), N("span", _0, fe(a.value ? "上传中..." : "选择"), 1))
@@ -1575,14 +1575,14 @@ const yA = (e, A) => {
1575
1575
  m("input", {
1576
1576
  type: "file",
1577
1577
  accept: e.accept,
1578
- onChange: U,
1578
+ onChange: h,
1579
1579
  ref_key: "fileInput",
1580
1580
  ref: n,
1581
1581
  class: "file-input"
1582
1582
  }, null, 40, q0)
1583
1583
  ])) : GA((V(), N("input", {
1584
1584
  key: 5,
1585
- "onUpdate:modelValue": g[4] || (g[4] = (Q) => s.value = Q),
1585
+ "onUpdate:modelValue": U[4] || (U[4] = (p) => s.value = p),
1586
1586
  type: e.type,
1587
1587
  min: e.min,
1588
1588
  max: e.max,
@@ -1628,10 +1628,10 @@ const ef = { class: "property-layout-container" }, tf = {
1628
1628
  setup(e, { emit: A }) {
1629
1629
  const t = e, r = A, { propsConfig: n, panelType: a } = _u(t), o = b(() => `${a.value}-property-panel`), i = b(() => {
1630
1630
  const d = n.value.propertyPanel;
1631
- return d && typeof d == "object" && !Array.isArray(d) ? Object.keys(d).map((U) => ({
1632
- prop: U,
1633
- ...d[U]
1634
- })).filter((U) => !U.hide) : Array.isArray(d) ? d.filter((U) => !U.hide) || [] : [];
1631
+ return d && typeof d == "object" && !Array.isArray(d) ? Object.keys(d).map((h) => ({
1632
+ prop: h,
1633
+ ...d[h]
1634
+ })).filter((h) => !h.hide) : Array.isArray(d) ? d.filter((h) => !h.hide) || [] : [];
1635
1635
  }), l = b({
1636
1636
  get: () => t.modelValue,
1637
1637
  set: (d) => r("update:modelValue", d)
@@ -1641,10 +1641,10 @@ const ef = { class: "property-layout-container" }, tf = {
1641
1641
  var f;
1642
1642
  if (d.options)
1643
1643
  return d.options || [];
1644
- const U = JSON.parse(JSON.stringify(((f = t.options) == null ? void 0 : f[d == null ? void 0 : d.optionsKey]) || [])) || [];
1645
- return U.unshift({ label: "无", value: "" }), U;
1644
+ const h = JSON.parse(JSON.stringify(((f = t.options) == null ? void 0 : f[d == null ? void 0 : d.optionsKey]) || [])) || [];
1645
+ return h.unshift({ label: "无", value: "" }), h;
1646
1646
  }, u = (d) => d.layout ? d.layout : ["text", "file", "textarea"].includes(d.type) ? "full" : "half";
1647
- return fs("config", t.propsConfig), (d, U) => (V(), N("div", {
1647
+ return fs("config", t.propsConfig), (d, h) => (V(), N("div", {
1648
1648
  class: _A(o.value)
1649
1649
  }, [
1650
1650
  m("div", ef, [
@@ -4414,10 +4414,10 @@ const BQ = {
4414
4414
  lineColor: "",
4415
4415
  codeType: ""
4416
4416
  }), l = () => {
4417
- var h, p, Q, C, v, w, R, M, T, O;
4417
+ var g, Q, p, C, v, w, R, M, T, O;
4418
4418
  if (!t.value)
4419
4419
  return;
4420
- const c = at((p = (h = A.propsConfig) == null ? void 0 : h.barcode) == null ? void 0 : p.propertyPanel) || {}, u = ((Q = A.modelValue) == null ? void 0 : Q.BarcodeValue) || c.BarcodeValue || "", d = ((C = A.modelValue) == null ? void 0 : C.CodeType) || c.CodeType || "", U = A.modelValue.LineColor || c.LineColor, f = ((O = (T = (M = (R = (w = (v = A.propsConfig) == null ? void 0 : v.barcode) == null ? void 0 : w.propertyPanel) == null ? void 0 : R.find((D) => D.prop === "CodeType")) == null ? void 0 : M.options) == null ? void 0 : T.find((D) => D.value === d)) == null ? void 0 : O.compValue) || "", B = { value: u, type: d, lineColor: U, codeType: f };
4420
+ const c = at((Q = (g = A.propsConfig) == null ? void 0 : g.barcode) == null ? void 0 : Q.propertyPanel) || {}, u = ((p = A.modelValue) == null ? void 0 : p.BarcodeValue) || c.BarcodeValue || "", d = ((C = A.modelValue) == null ? void 0 : C.CodeType) || c.CodeType || "", h = A.modelValue.LineColor || c.LineColor, f = ((O = (T = (M = (R = (w = (v = A.propsConfig) == null ? void 0 : v.barcode) == null ? void 0 : w.propertyPanel) == null ? void 0 : R.find((D) => D.prop === "CodeType")) == null ? void 0 : M.options) == null ? void 0 : T.find((D) => D.value === d)) == null ? void 0 : O.compValue) || "", B = { value: u, type: d, lineColor: h, codeType: f };
4421
4421
  if (JSON.stringify(B) !== JSON.stringify(i.value)) {
4422
4422
  i.value = B;
4423
4423
  try {
@@ -4431,7 +4431,7 @@ const BQ = {
4431
4431
  // 条形码的边距
4432
4432
  margin: 0,
4433
4433
  // 条形码的颜色
4434
- lineColor: U,
4434
+ lineColor: h,
4435
4435
  // 条形码的高度
4436
4436
  height: 50,
4437
4437
  // 确保条形码能够正确渲染
@@ -4726,8 +4726,8 @@ var Uc = {};
4726
4726
  for (let u = 0; u < a; u++) {
4727
4727
  i = l = 0, s = c = null;
4728
4728
  for (let d = 0; d < a; d++) {
4729
- let U = n.get(u, d);
4730
- U === s ? i++ : (i >= 5 && (o += A.N1 + (i - 5)), s = U, i = 1), U = n.get(d, u), U === c ? l++ : (l >= 5 && (o += A.N1 + (l - 5)), c = U, l = 1);
4729
+ let h = n.get(u, d);
4730
+ h === s ? i++ : (i >= 5 && (o += A.N1 + (i - 5)), s = h, i = 1), h = n.get(d, u), h === c ? l++ : (l >= 5 && (o += A.N1 + (l - 5)), c = h, l = 1);
4731
4731
  }
4732
4732
  i >= 5 && (o += A.N1 + (i - 5)), l >= 5 && (o += A.N1 + (l - 5));
4733
4733
  }
@@ -5303,66 +5303,66 @@ he.testAlphanumeric = function(A) {
5303
5303
  })(De);
5304
5304
  (function(e) {
5305
5305
  const A = zA, t = Gn, r = Ln, n = De, a = ui, o = 7973, i = A.getBCHDigit(o);
5306
- function l(d, U, f) {
5306
+ function l(d, h, f) {
5307
5307
  for (let B = 1; B <= 40; B++)
5308
- if (U <= e.getCapacity(B, f, d))
5308
+ if (h <= e.getCapacity(B, f, d))
5309
5309
  return B;
5310
5310
  }
5311
- function s(d, U) {
5312
- return n.getCharCountIndicator(d, U) + 4;
5311
+ function s(d, h) {
5312
+ return n.getCharCountIndicator(d, h) + 4;
5313
5313
  }
5314
- function c(d, U) {
5314
+ function c(d, h) {
5315
5315
  let f = 0;
5316
5316
  return d.forEach(function(B) {
5317
- const g = s(B.mode, U);
5318
- f += g + B.getBitsLength();
5317
+ const U = s(B.mode, h);
5318
+ f += U + B.getBitsLength();
5319
5319
  }), f;
5320
5320
  }
5321
- function u(d, U) {
5321
+ function u(d, h) {
5322
5322
  for (let f = 1; f <= 40; f++)
5323
- if (c(d, f) <= e.getCapacity(f, U, n.MIXED))
5323
+ if (c(d, f) <= e.getCapacity(f, h, n.MIXED))
5324
5324
  return f;
5325
5325
  }
5326
- e.from = function(U, f) {
5327
- return a.isValid(U) ? parseInt(U, 10) : f;
5328
- }, e.getCapacity = function(U, f, B) {
5329
- if (!a.isValid(U))
5326
+ e.from = function(h, f) {
5327
+ return a.isValid(h) ? parseInt(h, 10) : f;
5328
+ }, e.getCapacity = function(h, f, B) {
5329
+ if (!a.isValid(h))
5330
5330
  throw new Error("Invalid QR Code version");
5331
5331
  typeof B > "u" && (B = n.BYTE);
5332
- const g = A.getSymbolTotalCodewords(U), h = t.getTotalCodewordsCount(U, f), p = (g - h) * 8;
5332
+ const U = A.getSymbolTotalCodewords(h), g = t.getTotalCodewordsCount(h, f), Q = (U - g) * 8;
5333
5333
  if (B === n.MIXED)
5334
- return p;
5335
- const Q = p - s(B, U);
5334
+ return Q;
5335
+ const p = Q - s(B, h);
5336
5336
  switch (B) {
5337
5337
  case n.NUMERIC:
5338
- return Math.floor(Q / 10 * 3);
5338
+ return Math.floor(p / 10 * 3);
5339
5339
  case n.ALPHANUMERIC:
5340
- return Math.floor(Q / 11 * 2);
5340
+ return Math.floor(p / 11 * 2);
5341
5341
  case n.KANJI:
5342
- return Math.floor(Q / 13);
5342
+ return Math.floor(p / 13);
5343
5343
  case n.BYTE:
5344
5344
  default:
5345
- return Math.floor(Q / 8);
5345
+ return Math.floor(p / 8);
5346
5346
  }
5347
- }, e.getBestVersionForData = function(U, f) {
5347
+ }, e.getBestVersionForData = function(h, f) {
5348
5348
  let B;
5349
- const g = r.from(f, r.M);
5350
- if (Array.isArray(U)) {
5351
- if (U.length > 1)
5352
- return u(U, g);
5353
- if (U.length === 0)
5349
+ const U = r.from(f, r.M);
5350
+ if (Array.isArray(h)) {
5351
+ if (h.length > 1)
5352
+ return u(h, U);
5353
+ if (h.length === 0)
5354
5354
  return 1;
5355
- B = U[0];
5355
+ B = h[0];
5356
5356
  } else
5357
- B = U;
5358
- return l(B.mode, B.getLength(), g);
5359
- }, e.getEncodedBits = function(U) {
5360
- if (!a.isValid(U) || U < 7)
5357
+ B = h;
5358
+ return l(B.mode, B.getLength(), U);
5359
+ }, e.getEncodedBits = function(h) {
5360
+ if (!a.isValid(h) || h < 7)
5361
5361
  throw new Error("Invalid QR Code version");
5362
- let f = U << 12;
5362
+ let f = h << 12;
5363
5363
  for (; A.getBCHDigit(f) - i >= 0; )
5364
5364
  f ^= o << A.getBCHDigit(f) - i;
5365
- return U << 12 | f;
5365
+ return h << 12 | f;
5366
5366
  };
5367
5367
  })(wc);
5368
5368
  var Cc = {};
@@ -5519,14 +5519,14 @@ var OQ = It, vc = { exports: {} };
5519
5519
  o[r] = 0;
5520
5520
  var i = A.PriorityQueue.make();
5521
5521
  i.push(r, 0);
5522
- for (var l, s, c, u, d, U, f, B, g; !i.empty(); ) {
5522
+ for (var l, s, c, u, d, h, f, B, U; !i.empty(); ) {
5523
5523
  l = i.pop(), s = l.value, u = l.cost, d = t[s] || {};
5524
5524
  for (c in d)
5525
- d.hasOwnProperty(c) && (U = d[c], f = u + U, B = o[c], g = typeof o[c] > "u", (g || B > f) && (o[c] = f, i.push(c, f), a[c] = s));
5525
+ d.hasOwnProperty(c) && (h = d[c], f = u + h, B = o[c], U = typeof o[c] > "u", (U || B > f) && (o[c] = f, i.push(c, f), a[c] = s));
5526
5526
  }
5527
5527
  if (typeof n < "u" && typeof o[n] > "u") {
5528
- var h = ["Could not find a path from ", r, " to ", n, "."].join("");
5529
- throw new Error(h);
5528
+ var g = ["Could not find a path from ", r, " to ", n, "."].join("");
5529
+ throw new Error(g);
5530
5530
  }
5531
5531
  return a;
5532
5532
  },
@@ -5580,25 +5580,25 @@ var OQ = It, vc = { exports: {} };
5580
5580
  var WQ = vc.exports;
5581
5581
  (function(e) {
5582
5582
  const A = De, t = SQ, r = bQ, n = xQ, a = OQ, o = he, i = zA, l = WQ;
5583
- function s(h) {
5584
- return unescape(encodeURIComponent(h)).length;
5583
+ function s(g) {
5584
+ return unescape(encodeURIComponent(g)).length;
5585
5585
  }
5586
- function c(h, p, Q) {
5586
+ function c(g, Q, p) {
5587
5587
  const C = [];
5588
5588
  let v;
5589
- for (; (v = h.exec(Q)) !== null; )
5589
+ for (; (v = g.exec(p)) !== null; )
5590
5590
  C.push({
5591
5591
  data: v[0],
5592
5592
  index: v.index,
5593
- mode: p,
5593
+ mode: Q,
5594
5594
  length: v[0].length
5595
5595
  });
5596
5596
  return C;
5597
5597
  }
5598
- function u(h) {
5599
- const p = c(o.NUMERIC, A.NUMERIC, h), Q = c(o.ALPHANUMERIC, A.ALPHANUMERIC, h);
5598
+ function u(g) {
5599
+ const Q = c(o.NUMERIC, A.NUMERIC, g), p = c(o.ALPHANUMERIC, A.ALPHANUMERIC, g);
5600
5600
  let C, v;
5601
- return i.isKanjiModeEnabled() ? (C = c(o.BYTE, A.BYTE, h), v = c(o.KANJI, A.KANJI, h)) : (C = c(o.BYTE_KANJI, A.BYTE, h), v = []), p.concat(Q, C, v).sort(function(R, M) {
5601
+ return i.isKanjiModeEnabled() ? (C = c(o.BYTE, A.BYTE, g), v = c(o.KANJI, A.KANJI, g)) : (C = c(o.BYTE_KANJI, A.BYTE, g), v = []), Q.concat(p, C, v).sort(function(R, M) {
5602
5602
  return R.index - M.index;
5603
5603
  }).map(function(R) {
5604
5604
  return {
@@ -5608,104 +5608,104 @@ var WQ = vc.exports;
5608
5608
  };
5609
5609
  });
5610
5610
  }
5611
- function d(h, p) {
5612
- switch (p) {
5611
+ function d(g, Q) {
5612
+ switch (Q) {
5613
5613
  case A.NUMERIC:
5614
- return t.getBitsLength(h);
5614
+ return t.getBitsLength(g);
5615
5615
  case A.ALPHANUMERIC:
5616
- return r.getBitsLength(h);
5616
+ return r.getBitsLength(g);
5617
5617
  case A.KANJI:
5618
- return a.getBitsLength(h);
5618
+ return a.getBitsLength(g);
5619
5619
  case A.BYTE:
5620
- return n.getBitsLength(h);
5620
+ return n.getBitsLength(g);
5621
5621
  }
5622
5622
  }
5623
- function U(h) {
5624
- return h.reduce(function(p, Q) {
5625
- const C = p.length - 1 >= 0 ? p[p.length - 1] : null;
5626
- return C && C.mode === Q.mode ? (p[p.length - 1].data += Q.data, p) : (p.push(Q), p);
5623
+ function h(g) {
5624
+ return g.reduce(function(Q, p) {
5625
+ const C = Q.length - 1 >= 0 ? Q[Q.length - 1] : null;
5626
+ return C && C.mode === p.mode ? (Q[Q.length - 1].data += p.data, Q) : (Q.push(p), Q);
5627
5627
  }, []);
5628
5628
  }
5629
- function f(h) {
5630
- const p = [];
5631
- for (let Q = 0; Q < h.length; Q++) {
5632
- const C = h[Q];
5629
+ function f(g) {
5630
+ const Q = [];
5631
+ for (let p = 0; p < g.length; p++) {
5632
+ const C = g[p];
5633
5633
  switch (C.mode) {
5634
5634
  case A.NUMERIC:
5635
- p.push([
5635
+ Q.push([
5636
5636
  C,
5637
5637
  { data: C.data, mode: A.ALPHANUMERIC, length: C.length },
5638
5638
  { data: C.data, mode: A.BYTE, length: C.length }
5639
5639
  ]);
5640
5640
  break;
5641
5641
  case A.ALPHANUMERIC:
5642
- p.push([
5642
+ Q.push([
5643
5643
  C,
5644
5644
  { data: C.data, mode: A.BYTE, length: C.length }
5645
5645
  ]);
5646
5646
  break;
5647
5647
  case A.KANJI:
5648
- p.push([
5648
+ Q.push([
5649
5649
  C,
5650
5650
  { data: C.data, mode: A.BYTE, length: s(C.data) }
5651
5651
  ]);
5652
5652
  break;
5653
5653
  case A.BYTE:
5654
- p.push([
5654
+ Q.push([
5655
5655
  { data: C.data, mode: A.BYTE, length: s(C.data) }
5656
5656
  ]);
5657
5657
  }
5658
5658
  }
5659
- return p;
5659
+ return Q;
5660
5660
  }
5661
- function B(h, p) {
5662
- const Q = {}, C = { start: {} };
5661
+ function B(g, Q) {
5662
+ const p = {}, C = { start: {} };
5663
5663
  let v = ["start"];
5664
- for (let w = 0; w < h.length; w++) {
5665
- const R = h[w], M = [];
5664
+ for (let w = 0; w < g.length; w++) {
5665
+ const R = g[w], M = [];
5666
5666
  for (let T = 0; T < R.length; T++) {
5667
5667
  const O = R[T], D = "" + w + T;
5668
- M.push(D), Q[D] = { node: O, lastCount: 0 }, C[D] = {};
5668
+ M.push(D), p[D] = { node: O, lastCount: 0 }, C[D] = {};
5669
5669
  for (let L = 0; L < v.length; L++) {
5670
5670
  const S = v[L];
5671
- Q[S] && Q[S].node.mode === O.mode ? (C[S][D] = d(Q[S].lastCount + O.length, O.mode) - d(Q[S].lastCount, O.mode), Q[S].lastCount += O.length) : (Q[S] && (Q[S].lastCount = O.length), C[S][D] = d(O.length, O.mode) + 4 + A.getCharCountIndicator(O.mode, p));
5671
+ p[S] && p[S].node.mode === O.mode ? (C[S][D] = d(p[S].lastCount + O.length, O.mode) - d(p[S].lastCount, O.mode), p[S].lastCount += O.length) : (p[S] && (p[S].lastCount = O.length), C[S][D] = d(O.length, O.mode) + 4 + A.getCharCountIndicator(O.mode, Q));
5672
5672
  }
5673
5673
  }
5674
5674
  v = M;
5675
5675
  }
5676
5676
  for (let w = 0; w < v.length; w++)
5677
5677
  C[v[w]].end = 0;
5678
- return { map: C, table: Q };
5678
+ return { map: C, table: p };
5679
5679
  }
5680
- function g(h, p) {
5681
- let Q;
5682
- const C = A.getBestModeForData(h);
5683
- if (Q = A.from(p, C), Q !== A.BYTE && Q.bit < C.bit)
5684
- throw new Error('"' + h + '" cannot be encoded with mode ' + A.toString(Q) + `.
5680
+ function U(g, Q) {
5681
+ let p;
5682
+ const C = A.getBestModeForData(g);
5683
+ if (p = A.from(Q, C), p !== A.BYTE && p.bit < C.bit)
5684
+ throw new Error('"' + g + '" cannot be encoded with mode ' + A.toString(p) + `.
5685
5685
  Suggested mode is: ` + A.toString(C));
5686
- switch (Q === A.KANJI && !i.isKanjiModeEnabled() && (Q = A.BYTE), Q) {
5686
+ switch (p === A.KANJI && !i.isKanjiModeEnabled() && (p = A.BYTE), p) {
5687
5687
  case A.NUMERIC:
5688
- return new t(h);
5688
+ return new t(g);
5689
5689
  case A.ALPHANUMERIC:
5690
- return new r(h);
5690
+ return new r(g);
5691
5691
  case A.KANJI:
5692
- return new a(h);
5692
+ return new a(g);
5693
5693
  case A.BYTE:
5694
- return new n(h);
5694
+ return new n(g);
5695
5695
  }
5696
5696
  }
5697
- e.fromArray = function(p) {
5698
- return p.reduce(function(Q, C) {
5699
- return typeof C == "string" ? Q.push(g(C, null)) : C.data && Q.push(g(C.data, C.mode)), Q;
5697
+ e.fromArray = function(Q) {
5698
+ return Q.reduce(function(p, C) {
5699
+ return typeof C == "string" ? p.push(U(C, null)) : C.data && p.push(U(C.data, C.mode)), p;
5700
5700
  }, []);
5701
- }, e.fromString = function(p, Q) {
5702
- const C = u(p, i.isKanjiModeEnabled()), v = f(C), w = B(v, Q), R = l.find_path(w.map, "start", "end"), M = [];
5701
+ }, e.fromString = function(Q, p) {
5702
+ const C = u(Q, i.isKanjiModeEnabled()), v = f(C), w = B(v, p), R = l.find_path(w.map, "start", "end"), M = [];
5703
5703
  for (let T = 1; T < R.length - 1; T++)
5704
5704
  M.push(w.table[R[T]].node);
5705
- return e.fromArray(U(M));
5706
- }, e.rawSplit = function(p) {
5705
+ return e.fromArray(h(M));
5706
+ }, e.rawSplit = function(Q) {
5707
5707
  return e.fromArray(
5708
- u(p, i.isKanjiModeEnabled())
5708
+ u(Q, i.isKanjiModeEnabled())
5709
5709
  );
5710
5710
  };
5711
5711
  })(mc);
@@ -5779,24 +5779,24 @@ function $Q(e, A, t) {
5779
5779
  return Aw(r, e, A);
5780
5780
  }
5781
5781
  function Aw(e, A, t) {
5782
- const r = zn.getSymbolTotalCodewords(A), n = _a.getTotalCodewordsCount(A, t), a = r - n, o = _a.getBlocksCount(A, t), i = r % o, l = o - i, s = Math.floor(r / o), c = Math.floor(a / o), u = c + 1, d = s - c, U = new GQ(d);
5782
+ const r = zn.getSymbolTotalCodewords(A), n = _a.getTotalCodewordsCount(A, t), a = r - n, o = _a.getBlocksCount(A, t), i = r % o, l = o - i, s = Math.floor(r / o), c = Math.floor(a / o), u = c + 1, d = s - c, h = new GQ(d);
5783
5783
  let f = 0;
5784
- const B = new Array(o), g = new Array(o);
5785
- let h = 0;
5786
- const p = new Uint8Array(e.buffer);
5784
+ const B = new Array(o), U = new Array(o);
5785
+ let g = 0;
5786
+ const Q = new Uint8Array(e.buffer);
5787
5787
  for (let R = 0; R < o; R++) {
5788
5788
  const M = R < l ? c : u;
5789
- B[R] = p.slice(f, f + M), g[R] = U.encode(B[R]), f += M, h = Math.max(h, M);
5789
+ B[R] = Q.slice(f, f + M), U[R] = h.encode(B[R]), f += M, g = Math.max(g, M);
5790
5790
  }
5791
- const Q = new Uint8Array(r);
5791
+ const p = new Uint8Array(r);
5792
5792
  let C = 0, v, w;
5793
- for (v = 0; v < h; v++)
5793
+ for (v = 0; v < g; v++)
5794
5794
  for (w = 0; w < o; w++)
5795
- v < B[w].length && (Q[C++] = B[w][v]);
5795
+ v < B[w].length && (p[C++] = B[w][v]);
5796
5796
  for (v = 0; v < d; v++)
5797
5797
  for (w = 0; w < o; w++)
5798
- Q[C++] = g[w][v];
5799
- return Q;
5798
+ p[C++] = U[w][v];
5799
+ return p;
5800
5800
  }
5801
5801
  function ew(e, A, t, r) {
5802
5802
  let n;
@@ -5883,11 +5883,11 @@ var yc = {}, di = {};
5883
5883
  }, e.qrToImageData = function(r, n, a) {
5884
5884
  const o = n.modules.size, i = n.modules.data, l = e.getScale(o, a), s = Math.floor((o + a.margin * 2) * l), c = a.margin * l, u = [a.color.light, a.color.dark];
5885
5885
  for (let d = 0; d < s; d++)
5886
- for (let U = 0; U < s; U++) {
5887
- let f = (d * s + U) * 4, B = a.color.light;
5888
- if (d >= c && U >= c && d < s - c && U < s - c) {
5889
- const g = Math.floor((d - c) / l), h = Math.floor((U - c) / l);
5890
- B = u[i[g * o + h] ? 1 : 0];
5886
+ for (let h = 0; h < s; h++) {
5887
+ let f = (d * s + h) * 4, B = a.color.light;
5888
+ if (d >= c && h >= c && d < s - c && h < s - c) {
5889
+ const U = Math.floor((d - c) / l), g = Math.floor((h - c) / l);
5890
+ B = u[i[U * o + g] ? 1 : 0];
5891
5891
  }
5892
5892
  r[f++] = B.r, r[f++] = B.g, r[f++] = B.b, r[f] = B.a;
5893
5893
  }
@@ -5992,15 +5992,15 @@ const ow = { class: "qrcode-canvas-fixed" }, iw = ["src", "alt"], lw = 200, sw =
5992
5992
  boxSizing: "border-box",
5993
5993
  zIndex: 1e3
5994
5994
  })), o = Z(null), i = () => {
5995
- var B, g;
5996
- return o.value || (o.value = at((g = (B = A.propsConfig) == null ? void 0 : B.qrcode) == null ? void 0 : g.propertyPanel) || {}), o.value;
5997
- }, l = (B, g) => g ? B.QRCodeValue !== g.QRCodeValue || B.QRCodeForeground !== g.QRCodeForeground || B.QRCodeBackground !== g.QRCodeBackground || B.QRCodeErrorLevel !== g.QRCodeErrorLevel : !0, s = async () => {
5998
- var B, g, h, p;
5995
+ var B, U;
5996
+ return o.value || (o.value = at((U = (B = A.propsConfig) == null ? void 0 : B.qrcode) == null ? void 0 : U.propertyPanel) || {}), o.value;
5997
+ }, l = (B, U) => U ? B.QRCodeValue !== U.QRCodeValue || B.QRCodeForeground !== U.QRCodeForeground || B.QRCodeBackground !== U.QRCodeBackground || B.QRCodeErrorLevel !== U.QRCodeErrorLevel : !0, s = async () => {
5998
+ var B, U, g, Q;
5999
5999
  try {
6000
- const Q = i(), C = ((B = A.modelValue) == null ? void 0 : B.QRCodeValue) || Q.QRCodeValue || "测试二维码";
6001
- let v = ((g = A.modelValue) == null ? void 0 : g.QRCodeForeground) || Q.QRCodeForeground || "#000000", w = ((h = A.modelValue) == null ? void 0 : h.QRCodeBackground) || Q.QRCodeBackground || "#ffffff";
6000
+ const p = i(), C = ((B = A.modelValue) == null ? void 0 : B.QRCodeValue) || p.QRCodeValue || "测试二维码";
6001
+ let v = ((U = A.modelValue) == null ? void 0 : U.QRCodeForeground) || p.QRCodeForeground || "#000000", w = ((g = A.modelValue) == null ? void 0 : g.QRCodeBackground) || p.QRCodeBackground || "#ffffff";
6002
6002
  (v === "transparent" || !v) && (v = "#000000"), (w === "transparent" || !w) && (w = "#ffffff");
6003
- const M = { L: "low", M: "medium", Q: "quartile", H: "high" }[((p = A.modelValue) == null ? void 0 : p.QRCodeErrorLevel) || Q.QRCodeErrorLevel || "M"] || "medium";
6003
+ const M = { L: "low", M: "medium", Q: "quartile", H: "high" }[((Q = A.modelValue) == null ? void 0 : Q.QRCodeErrorLevel) || p.QRCodeErrorLevel || "M"] || "medium";
6004
6004
  C && C.trim() ? t.value = await mr.toDataURL(C, {
6005
6005
  width: lw,
6006
6006
  margin: 0,
@@ -6011,15 +6011,15 @@ const ow = { class: "qrcode-canvas-fixed" }, iw = ["src", "alt"], lw = 200, sw =
6011
6011
  },
6012
6012
  errorCorrectionLevel: M
6013
6013
  }) : t.value = "";
6014
- } catch (Q) {
6015
- console.error("生成二维码失败:", Q), t.value = "";
6014
+ } catch (p) {
6015
+ console.error("生成二维码失败:", p), t.value = "";
6016
6016
  }
6017
6017
  }, c = b(() => {
6018
- var p, Q;
6019
- const B = i(), g = ((p = A.modelValue) == null ? void 0 : p.width) ?? B.width, h = ((Q = A.modelValue) == null ? void 0 : Q.height) ?? B.height;
6018
+ var Q, p;
6019
+ const B = i(), U = ((Q = A.modelValue) == null ? void 0 : Q.width) ?? B.width, g = ((p = A.modelValue) == null ? void 0 : p.height) ?? B.height;
6020
6020
  return {
6021
- width: pn(g) + "px",
6022
- height: pn(h) + "px",
6021
+ width: pn(U) + "px",
6022
+ height: pn(g) + "px",
6023
6023
  display: "flex",
6024
6024
  alignItems: "center",
6025
6025
  justifyContent: "center",
@@ -6028,13 +6028,13 @@ const ow = { class: "qrcode-canvas-fixed" }, iw = ["src", "alt"], lw = 200, sw =
6028
6028
  }), u = () => {
6029
6029
  }, d = () => {
6030
6030
  console.warn("QR Code image failed to load"), s();
6031
- }, U = () => {
6032
- const B = A.modelValue, g = r.value;
6033
- l(B, g) && s();
6031
+ }, h = () => {
6032
+ const B = A.modelValue, U = r.value;
6033
+ l(B, U) && s();
6034
6034
  }, f = (() => {
6035
6035
  let B;
6036
6036
  return () => {
6037
- clearTimeout(B), B = setTimeout(U, 50);
6037
+ clearTimeout(B), B = setTimeout(h, 50);
6038
6038
  };
6039
6039
  })();
6040
6040
  return Oe(() => {
@@ -6052,18 +6052,18 @@ const ow = { class: "qrcode-canvas-fixed" }, iw = ["src", "alt"], lw = 200, sw =
6052
6052
  o.value = null, s();
6053
6053
  }, { deep: !0 }), Ur(() => {
6054
6054
  r.value = null, o.value = null, t.value = "";
6055
- }), (B, g) => {
6056
- var h;
6055
+ }), (B, U) => {
6056
+ var g;
6057
6057
  return V(), N("div", {
6058
6058
  class: "qrcode-component",
6059
- onDragstart: g[0] || (g[0] = xA(() => {
6059
+ onDragstart: U[0] || (U[0] = xA(() => {
6060
6060
  }, ["prevent"])),
6061
6061
  style: AA(c.value)
6062
6062
  }, [
6063
6063
  m("div", ow, [
6064
6064
  m("img", {
6065
6065
  src: t.value,
6066
- alt: "QR Code: " + (((h = A.modelValue) == null ? void 0 : h.QRCodeValue) || ""),
6066
+ alt: "QR Code: " + (((g = A.modelValue) == null ? void 0 : g.QRCodeValue) || ""),
6067
6067
  class: "qrcode-image",
6068
6068
  onLoad: u,
6069
6069
  onError: d
@@ -6157,8 +6157,8 @@ const Uw = {
6157
6157
  boxSizing: "border-box",
6158
6158
  zIndex: 1e3
6159
6159
  })), c = Z(null), u = () => {
6160
- var p, Q;
6161
- return c.value || (c.value = at((Q = (p = t.propsConfig) == null ? void 0 : p.image) == null ? void 0 : Q.propertyPanel) || {}), c.value;
6160
+ var Q, p;
6161
+ return c.value || (c.value = at((p = (Q = t.propsConfig) == null ? void 0 : Q.image) == null ? void 0 : p.propertyPanel) || {}), c.value;
6162
6162
  }, d = b(() => ({
6163
6163
  width: "100%",
6164
6164
  height: "100%",
@@ -6167,16 +6167,16 @@ const Uw = {
6167
6167
  justifyContent: "center",
6168
6168
  overflow: "hidden",
6169
6169
  position: "relative"
6170
- })), U = b(() => {
6170
+ })), h = b(() => {
6171
6171
  var v;
6172
6172
  if (!n.value)
6173
6173
  return {};
6174
- const p = u(), Q = ((v = t.modelValue) == null ? void 0 : v.ScaleMode) ?? p.ScaleMode ?? 1, C = {
6174
+ const Q = u(), p = ((v = t.modelValue) == null ? void 0 : v.ScaleMode) ?? Q.ScaleMode ?? 1, C = {
6175
6175
  maxWidth: "100%",
6176
6176
  maxHeight: "100%",
6177
6177
  display: "block"
6178
6178
  };
6179
- switch (Q) {
6179
+ switch (p) {
6180
6180
  case 1:
6181
6181
  return {
6182
6182
  ...C,
@@ -6209,30 +6209,30 @@ const Uw = {
6209
6209
  }, B = () => {
6210
6210
  a.value = !1, o.value = !0, n.value = "";
6211
6211
  try {
6212
- const p = { ...t.modelValue || {} };
6213
- p.ImageSrc = "", r("update:modelValue", p);
6212
+ const Q = { ...t.modelValue || {} };
6213
+ Q.ImageSrc = "", r("update:modelValue", Q);
6214
6214
  } catch {
6215
6215
  }
6216
6216
  dr && dr.error("图片加载失败,请重新上传");
6217
- }, g = () => {
6217
+ }, U = () => {
6218
6218
  var v;
6219
- const p = u(), Q = ((v = t.modelValue) == null ? void 0 : v.ImageSrc) || p.ImageSrc || "";
6219
+ const Q = u(), p = ((v = t.modelValue) == null ? void 0 : v.ImageSrc) || Q.ImageSrc || "";
6220
6220
  let C = "";
6221
- typeof Q == "object" && Q.fileSrc ? C = Q.fileSrc : typeof Q == "string" && (C = Q), C !== n.value && (n.value = C, a.value = !1, o.value = !1);
6222
- }, h = () => {
6223
- var Q;
6224
- const p = (Q = t.modelValue) == null ? void 0 : Q.ImageSrc;
6225
- return typeof p == "object" && p.fileName ? p.fileName : "未命名图片";
6221
+ typeof p == "object" && p.fileSrc ? C = p.fileSrc : typeof p == "string" && (C = p), C !== n.value && (n.value = C, a.value = !1, o.value = !1);
6222
+ }, g = () => {
6223
+ var p;
6224
+ const Q = (p = t.modelValue) == null ? void 0 : p.ImageSrc;
6225
+ return typeof Q == "object" && Q.fileName ? Q.fileName : "未命名图片";
6226
6226
  };
6227
6227
  return FA(() => t.modelValue, () => {
6228
- g();
6228
+ U();
6229
6229
  }, { deep: !0 }), FA(() => t.propsConfig, () => {
6230
- c.value = null, g();
6230
+ c.value = null, U();
6231
6231
  }, { deep: !0 }), Oe(() => {
6232
6232
  de(() => {
6233
- g();
6233
+ U();
6234
6234
  });
6235
- }), (p, Q) => {
6235
+ }), (Q, p) => {
6236
6236
  const C = QA("el-icon-picture-filled"), v = QA("el-icon"), w = QA("el-icon-loading");
6237
6237
  return V(), N("div", {
6238
6238
  class: "image-component",
@@ -6241,12 +6241,12 @@ const Uw = {
6241
6241
  n.value ? (V(), N("img", {
6242
6242
  key: 1,
6243
6243
  src: n.value,
6244
- alt: "Image: " + h(),
6244
+ alt: "Image: " + g(),
6245
6245
  class: "image-content",
6246
- style: AA(U.value),
6246
+ style: AA(h.value),
6247
6247
  onLoad: f,
6248
6248
  onError: B,
6249
- onDragstart: Q[0] || (Q[0] = xA(() => {
6249
+ onDragstart: p[0] || (p[0] = xA(() => {
6250
6250
  }, ["prevent"]))
6251
6251
  }, null, 44, pw)) : (V(), N("div", Uw, [
6252
6252
  W(v, {
@@ -6462,15 +6462,15 @@ const Sw = {
6462
6462
  emits: ["update:modelValue"],
6463
6463
  setup(e, { emit: A }) {
6464
6464
  const t = e, { defaultProps: r, isSelected: n } = Tc(t, "rectangle"), a = b(() => Vw()), o = b(() => Tw()), i = b(() => {
6465
- var g, h;
6466
- return fi(((g = t.modelValue) == null ? void 0 : g.LineWidth) ?? ((h = r.value) == null ? void 0 : h.LineWidth));
6465
+ var U, g;
6466
+ return fi(((U = t.modelValue) == null ? void 0 : U.LineWidth) ?? ((g = r.value) == null ? void 0 : g.LineWidth));
6467
6467
  }), l = b(() => {
6468
- var g, h;
6469
- return Sc(((g = t.modelValue) == null ? void 0 : g.LineStyle) ?? ((h = r.value) == null ? void 0 : h.LineStyle));
6468
+ var U, g;
6469
+ return Sc(((U = t.modelValue) == null ? void 0 : U.LineStyle) ?? ((g = r.value) == null ? void 0 : g.LineStyle));
6470
6470
  }), s = b(() => l.value === "solid" && i.value < 1), c = b(() => {
6471
6471
  if (s.value) {
6472
- const g = dl(t.modelValue, r.value);
6473
- return g.border = "none", g.boxShadow = "none", g;
6472
+ const U = dl(t.modelValue, r.value);
6473
+ return U.border = "none", U.boxShadow = "none", U;
6474
6474
  }
6475
6475
  return dl(t.modelValue, r.value);
6476
6476
  }), u = Ft.BORDER_COLOR, d = b(() => ({
@@ -6481,7 +6481,7 @@ const Sw = {
6481
6481
  background: u,
6482
6482
  transform: `scaleY(${i.value})`,
6483
6483
  transformOrigin: "top left"
6484
- })), U = b(() => ({
6484
+ })), h = b(() => ({
6485
6485
  left: 0,
6486
6486
  bottom: 0,
6487
6487
  width: "100%",
@@ -6507,16 +6507,16 @@ const Sw = {
6507
6507
  transformOrigin: "top right"
6508
6508
  }));
6509
6509
  return FA(() => t.propsConfig, () => {
6510
- var h, p;
6511
- const g = at((p = (h = t.propsConfig) == null ? void 0 : h.rectangle) == null ? void 0 : p.propertyPanel) || {};
6510
+ var g, Q;
6511
+ const U = at((Q = (g = t.propsConfig) == null ? void 0 : g.rectangle) == null ? void 0 : Q.propertyPanel) || {};
6512
6512
  r.value = {
6513
- LineWidth: g.LineWidth ?? "0.75pt",
6514
- LineStyle: g.LineStyle ?? "实线",
6515
- BorderRadius: g.BorderRadius ?? 0
6513
+ LineWidth: U.LineWidth ?? "0.75pt",
6514
+ LineStyle: U.LineStyle ?? "实线",
6515
+ BorderRadius: U.BorderRadius ?? 0
6516
6516
  };
6517
6517
  }, { deep: !0, immediate: !0 }), Ur(() => {
6518
6518
  r.value = {};
6519
- }), (g, h) => (V(), N("div", {
6519
+ }), (U, g) => (V(), N("div", {
6520
6520
  class: "rectangle-component",
6521
6521
  style: AA(o.value)
6522
6522
  }, [
@@ -6535,7 +6535,7 @@ const Sw = {
6535
6535
  }, null, 4),
6536
6536
  m("div", {
6537
6537
  class: "hairline-edge bottom",
6538
- style: AA(U.value)
6538
+ style: AA(h.value)
6539
6539
  }, null, 4),
6540
6540
  m("div", {
6541
6541
  class: "hairline-edge left",
@@ -6620,17 +6620,17 @@ const Ow = ["width", "height"], Ww = ["y1", "x2", "y2", "stroke-width", "stroke-
6620
6620
  return `${f},${B}`;
6621
6621
  }
6622
6622
  return null;
6623
- }), d = b(() => Nw(o.value, s.value)), U = b(() => Iw(t.modelValue, n.value));
6623
+ }), d = b(() => Nw(o.value, s.value)), h = b(() => Iw(t.modelValue, n.value));
6624
6624
  return FA(() => t.modelValue, (f) => {
6625
6625
  if (f) {
6626
6626
  n.value = {
6627
6627
  LineWidth: f.LineWidth || "0.75pt",
6628
6628
  LineStyle: f.LineStyle || "实线"
6629
6629
  };
6630
- const g = parseFloat(f.LineWidth || "0.75pt") * 0.3528;
6631
- Math.abs(f.height - g) > 1e-3 && r("update:modelValue", {
6630
+ const U = parseFloat(f.LineWidth || "0.75pt") * 0.3528;
6631
+ Math.abs(f.height - U) > 1e-3 && r("update:modelValue", {
6632
6632
  ...f,
6633
- height: Number(g.toFixed(3))
6633
+ height: Number(U.toFixed(3))
6634
6634
  });
6635
6635
  }
6636
6636
  }, { immediate: !0, deep: !0 }), FA(() => {
@@ -6638,15 +6638,15 @@ const Ow = ["width", "height"], Ww = ["y1", "x2", "y2", "stroke-width", "stroke-
6638
6638
  return (f = t.modelValue) == null ? void 0 : f.LineWidth;
6639
6639
  }, (f) => {
6640
6640
  if (f && t.modelValue) {
6641
- const g = parseFloat(f) * 0.3528;
6642
- Math.abs(t.modelValue.height - g) > 1e-3 && r("update:modelValue", {
6641
+ const U = parseFloat(f) * 0.3528;
6642
+ Math.abs(t.modelValue.height - U) > 1e-3 && r("update:modelValue", {
6643
6643
  ...t.modelValue,
6644
- height: Number(g.toFixed(3))
6644
+ height: Number(U.toFixed(3))
6645
6645
  });
6646
6646
  }
6647
6647
  }, { immediate: !0 }), (f, B) => (V(), N("div", {
6648
6648
  class: "horline-component",
6649
- style: AA(U.value)
6649
+ style: AA(h.value)
6650
6650
  }, [
6651
6651
  (V(), N("svg", {
6652
6652
  width: o.value,
@@ -6872,8 +6872,8 @@ const _w = { class: "component-list" }, qw = { class: "group-title" }, $w = { cl
6872
6872
  return (s, c) => {
6873
6873
  const u = QA("el-icon");
6874
6874
  return V(), N("div", _w, [
6875
- (V(!0), N(VA, null, Me(t.value, (d, U) => (V(), N("div", {
6876
- key: U,
6875
+ (V(!0), N(VA, null, Me(t.value, (d, h) => (V(), N("div", {
6876
+ key: h,
6877
6877
  class: "component-group"
6878
6878
  }, [
6879
6879
  m("div", qw, fe(d.groupName), 1),
@@ -6882,7 +6882,7 @@ const _w = { class: "component-list" }, qw = { class: "group-title" }, $w = { cl
6882
6882
  key: B,
6883
6883
  class: "component-item",
6884
6884
  draggable: "true",
6885
- onDragstart: (g) => s.$emit("dragStart", { e: g, comp: f, previewDiv: l(f) })
6885
+ onDragstart: (U) => s.$emit("dragStart", { e: U, comp: f, previewDiv: l(f) })
6886
6886
  }, [
6887
6887
  W(u, {
6888
6888
  size: 30,
@@ -7000,7 +7000,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7000
7000
  a.data.punchingList.splice(c, 1);
7001
7001
  };
7002
7002
  return (c, u) => {
7003
- const d = QA("el-button"), U = QA("el-input-number"), f = QA("el-table-column"), B = QA("el-col"), g = QA("el-row"), h = QA("el-table"), p = QA("el-form-item"), Q = QA("el-form"), C = QA("el-main"), v = QA("el-dialog");
7003
+ const d = QA("el-button"), h = QA("el-input-number"), f = QA("el-table-column"), B = QA("el-col"), U = QA("el-row"), g = QA("el-table"), Q = QA("el-form-item"), p = QA("el-form"), C = QA("el-main"), v = QA("el-dialog");
7004
7004
  return V(), N(VA, null, [
7005
7005
  W(d, {
7006
7006
  type: "primary",
@@ -7060,7 +7060,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7060
7060
  default: j(() => [
7061
7061
  W(C, { style: { "max-height": "60vh", padding: "0" } }, {
7062
7062
  default: j(() => [
7063
- W(Q, {
7063
+ W(p, {
7064
7064
  ref: "formRef",
7065
7065
  model: a.data,
7066
7066
  "label-width": "90px",
@@ -7068,7 +7068,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7068
7068
  "label-suffix": ":"
7069
7069
  }, {
7070
7070
  default: j(() => [
7071
- W(p, null, {
7071
+ W(Q, null, {
7072
7072
  label: j(() => [
7073
7073
  m("div", null, [
7074
7074
  u[9] || (u[9] = m("p", null, "打印区域:", -1)),
@@ -7087,7 +7087,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7087
7087
  ]),
7088
7088
  default: j(() => [
7089
7089
  m("div", gF, [
7090
- a.data.printList.length > 0 ? (V(), vA(h, {
7090
+ a.data.printList.length > 0 ? (V(), vA(g, {
7091
7091
  key: 0,
7092
7092
  data: a.data.printList,
7093
7093
  class: "graph-table"
@@ -7099,7 +7099,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7099
7099
  width: "100"
7100
7100
  }, {
7101
7101
  default: j((w) => [
7102
- W(U, {
7102
+ W(h, {
7103
7103
  modelValue: w.row.x,
7104
7104
  "onUpdate:modelValue": (R) => w.row.x = R,
7105
7105
  controls: !1,
@@ -7114,7 +7114,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7114
7114
  width: "100"
7115
7115
  }, {
7116
7116
  default: j((w) => [
7117
- W(U, {
7117
+ W(h, {
7118
7118
  modelValue: w.row.y,
7119
7119
  "onUpdate:modelValue": (R) => w.row.y = R,
7120
7120
  controls: !1,
@@ -7129,7 +7129,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7129
7129
  width: "100"
7130
7130
  }, {
7131
7131
  default: j((w) => [
7132
- W(U, {
7132
+ W(h, {
7133
7133
  modelValue: w.row.width,
7134
7134
  "onUpdate:modelValue": (R) => w.row.width = R,
7135
7135
  controls: !1,
@@ -7144,7 +7144,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7144
7144
  width: "100"
7145
7145
  }, {
7146
7146
  default: j((w) => [
7147
- W(U, {
7147
+ W(h, {
7148
7148
  modelValue: w.row.height,
7149
7149
  "onUpdate:modelValue": (R) => w.row.height = R,
7150
7150
  controls: !1,
@@ -7158,11 +7158,11 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7158
7158
  align: "center"
7159
7159
  }, {
7160
7160
  default: j((w) => [
7161
- W(g, { gutter: 10 }, {
7161
+ W(U, { gutter: 10 }, {
7162
7162
  default: j(() => [
7163
7163
  W(B, { span: 6 }, {
7164
7164
  default: j(() => [
7165
- W(U, {
7165
+ W(h, {
7166
7166
  modelValue: w.row.topLeftRadius,
7167
7167
  "onUpdate:modelValue": (R) => w.row.topLeftRadius = R,
7168
7168
  controls: !1,
@@ -7173,7 +7173,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7173
7173
  }, 1024),
7174
7174
  W(B, { span: 6 }, {
7175
7175
  default: j(() => [
7176
- W(U, {
7176
+ W(h, {
7177
7177
  modelValue: w.row.bottomLeftRadius,
7178
7178
  "onUpdate:modelValue": (R) => w.row.bottomLeftRadius = R,
7179
7179
  controls: !1,
@@ -7184,7 +7184,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7184
7184
  }, 1024),
7185
7185
  W(B, { span: 6 }, {
7186
7186
  default: j(() => [
7187
- W(U, {
7187
+ W(h, {
7188
7188
  modelValue: w.row.topRightRadius,
7189
7189
  "onUpdate:modelValue": (R) => w.row.topRightRadius = R,
7190
7190
  controls: !1,
@@ -7195,7 +7195,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7195
7195
  }, 1024),
7196
7196
  W(B, { span: 6 }, {
7197
7197
  default: j(() => [
7198
- W(U, {
7198
+ W(h, {
7199
7199
  modelValue: w.row.bottomRightRadius,
7200
7200
  "onUpdate:modelValue": (R) => w.row.bottomRightRadius = R,
7201
7201
  controls: !1,
@@ -7237,7 +7237,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7237
7237
  ]),
7238
7238
  _: 1
7239
7239
  }),
7240
- W(p, { label: "打孔区域" }, {
7240
+ W(Q, { label: "打孔区域" }, {
7241
7241
  label: j(() => [
7242
7242
  m("div", null, [
7243
7243
  u[12] || (u[12] = m("p", null, "打孔区域:", -1)),
@@ -7256,7 +7256,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7256
7256
  ]),
7257
7257
  default: j(() => [
7258
7258
  m("div", pF, [
7259
- a.data.punchingList.length > 0 ? (V(), vA(h, {
7259
+ a.data.punchingList.length > 0 ? (V(), vA(g, {
7260
7260
  key: 0,
7261
7261
  data: a.data.punchingList,
7262
7262
  class: "graph-table"
@@ -7268,7 +7268,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7268
7268
  width: "100"
7269
7269
  }, {
7270
7270
  default: j((w) => [
7271
- W(U, {
7271
+ W(h, {
7272
7272
  modelValue: w.row.x,
7273
7273
  "onUpdate:modelValue": (R) => w.row.x = R,
7274
7274
  controls: !1,
@@ -7283,7 +7283,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7283
7283
  width: "100"
7284
7284
  }, {
7285
7285
  default: j((w) => [
7286
- W(U, {
7286
+ W(h, {
7287
7287
  modelValue: w.row.y,
7288
7288
  "onUpdate:modelValue": (R) => w.row.y = R,
7289
7289
  controls: !1,
@@ -7298,7 +7298,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7298
7298
  width: "100"
7299
7299
  }, {
7300
7300
  default: j((w) => [
7301
- W(U, {
7301
+ W(h, {
7302
7302
  modelValue: w.row.width,
7303
7303
  "onUpdate:modelValue": (R) => w.row.width = R,
7304
7304
  controls: !1,
@@ -7314,7 +7314,7 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7314
7314
  width: "100"
7315
7315
  }, {
7316
7316
  default: j((w) => [
7317
- W(U, {
7317
+ W(h, {
7318
7318
  modelValue: w.row.height,
7319
7319
  "onUpdate:modelValue": (R) => w.row.height = R,
7320
7320
  controls: !1,
@@ -7453,14 +7453,14 @@ const hF = { class: "tg-title" }, gF = { class: "table-container" }, UF = {
7453
7453
  }
7454
7454
  }, FF = /* @__PURE__ */ yA(wF, [["__scopeId", "data-v-a4b90b63"]]);
7455
7455
  function CF(e = {}) {
7456
- const { scale: A, canvasWidth: t, canvasHeight: r, selectItem: n, onStopDrag: a, onStartDrag: o, onDragUpdate: i } = e, l = Z(!1), s = Z(!1), c = Z(null), u = Z({ x: 0, y: 0 }), d = Z({ x: 0, y: 0 }), U = /* @__PURE__ */ new Map();
7457
- function f(p, Q, C) {
7458
- l.value = !0, s.value = !0, typeof o == "function" && o(), c.value = Q, u.value = { x: p.clientX, y: p.clientY }, d.value = { x: Q.props.x, y: Q.props.y }, typeof n == "function" && n(Q, C || p), document.addEventListener("mousemove", g), document.addEventListener("mouseup", h);
7459
- }
7460
- function B(p, Q, C, v, w) {
7461
- const R = `${p}_${Q}_${C}_${v}_${w}`;
7462
- if (U.has(R))
7463
- return U.get(R);
7456
+ const { scale: A, canvasWidth: t, canvasHeight: r, selectItem: n, onStopDrag: a, onStartDrag: o, onDragUpdate: i } = e, l = Z(!1), s = Z(!1), c = Z(null), u = Z({ x: 0, y: 0 }), d = Z({ x: 0, y: 0 }), h = /* @__PURE__ */ new Map();
7457
+ function f(Q, p, C) {
7458
+ l.value = !0, s.value = !0, typeof o == "function" && o(), c.value = p, u.value = { x: Q.clientX, y: Q.clientY }, d.value = { x: p.props.x, y: p.props.y }, typeof n == "function" && n(p, C || Q), document.addEventListener("mousemove", U), document.addEventListener("mouseup", g);
7459
+ }
7460
+ function B(Q, p, C, v, w) {
7461
+ const R = `${Q}_${p}_${C}_${v}_${w}`;
7462
+ if (h.has(R))
7463
+ return h.get(R);
7464
7464
  const M = w * Math.PI / 180, T = C / 2, O = v / 2, L = [
7465
7465
  { x: 0, y: 0 },
7466
7466
  { x: C, y: 0 },
@@ -7469,8 +7469,8 @@ function CF(e = {}) {
7469
7469
  ].map((G) => {
7470
7470
  const q = G.x - T, rA = G.y - O, BA = q * Math.cos(M) - rA * Math.sin(M), cA = q * Math.sin(M) + rA * Math.cos(M);
7471
7471
  return {
7472
- x: Number((BA + T + p).toFixed(2)),
7473
- y: Number((cA + O + Q).toFixed(2))
7472
+ x: Number((BA + T + Q).toFixed(2)),
7473
+ y: Number((cA + O + p).toFixed(2))
7474
7474
  };
7475
7475
  }), S = L.map((G) => G.x), P = L.map((G) => G.y), oA = {
7476
7476
  minX: Math.min(...S),
@@ -7478,13 +7478,13 @@ function CF(e = {}) {
7478
7478
  minY: Math.min(...P),
7479
7479
  maxY: Math.max(...P)
7480
7480
  };
7481
- return U.set(R, oA), oA;
7481
+ return h.set(R, oA), oA;
7482
7482
  }
7483
- function g(p) {
7483
+ function U(Q) {
7484
7484
  if (!l.value || !c.value)
7485
7485
  return;
7486
- const Q = p.clientX - u.value.x, C = p.clientY - u.value.y, v = (A == null ? void 0 : A.value) || 1, w = 1 / 3.7795275591;
7487
- let R = d.value.x + Q * w / v, M = d.value.y + C * w / v;
7486
+ const p = Q.clientX - u.value.x, C = Q.clientY - u.value.y, v = (A == null ? void 0 : A.value) || 1, w = 1 / 3.7795275591;
7487
+ let R = d.value.x + p * w / v, M = d.value.y + C * w / v;
7488
7488
  if (t != null && t.value && (r != null && r.value)) {
7489
7489
  const T = c.value.props.width || 0, O = c.value.props.height || 0, D = c.value.props.rotation || 0;
7490
7490
  let L = !1;
@@ -7496,14 +7496,14 @@ function CF(e = {}) {
7496
7496
  }
7497
7497
  c.value.props.x = Number(R.toFixed(2)), c.value.props.y = Number(M.toFixed(2)), typeof i == "function" && i();
7498
7498
  }
7499
- function h() {
7499
+ function g() {
7500
7500
  l.value = !1, setTimeout(() => {
7501
7501
  s.value = !1;
7502
- }, 50), c.value && typeof n == "function" && n(c.value), c.value = null, typeof a == "function" && a(), typeof i == "function" && i(), U.clear();
7503
- const p = function(Q) {
7504
- Q && (typeof Q.stopImmediatePropagation == "function" && Q.stopImmediatePropagation(), typeof Q.stopPropagation == "function" && Q.stopPropagation(), typeof Q.preventDefault == "function" && Q.preventDefault()), window.removeEventListener("click", p, !0);
7502
+ }, 50), c.value && typeof n == "function" && n(c.value), c.value = null, typeof a == "function" && a(), typeof i == "function" && i(), h.clear();
7503
+ const Q = function(p) {
7504
+ p && (typeof p.stopImmediatePropagation == "function" && p.stopImmediatePropagation(), typeof p.stopPropagation == "function" && p.stopPropagation(), typeof p.preventDefault == "function" && p.preventDefault()), window.removeEventListener("click", Q, !0);
7505
7505
  };
7506
- window.addEventListener("click", p, !0), document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", h);
7506
+ window.addEventListener("click", Q, !0), document.removeEventListener("mousemove", U), document.removeEventListener("mouseup", g);
7507
7507
  }
7508
7508
  return {
7509
7509
  dragging: l,
@@ -7514,19 +7514,19 @@ function CF(e = {}) {
7514
7514
  // 当前拖拽元素
7515
7515
  startDrag: f,
7516
7516
  // 开始拖拽方法
7517
- stopDrag: h
7517
+ stopDrag: g
7518
7518
  // 停止拖拽方法
7519
7519
  };
7520
7520
  }
7521
7521
  function EF(e, A, t, r) {
7522
- const n = Z(!1), a = Z(null), o = Z({ x: 0, y: 0 }), i = Z({ width: 0, height: 0, x: 0, y: 0, rotation: 0 }), l = Z(""), s = Z(""), c = Z({ x: 0, y: 0 }), u = Z([]), d = Z(null), U = Z(0), f = ul.UPDATE_THRESHOLD, B = Z({ x: 0, y: 0, width: 0, height: 0 }), g = Z(/* @__PURE__ */ new Map()), h = Z(/* @__PURE__ */ new Map()), p = Z(null);
7523
- function Q(O) {
7522
+ const n = Z(!1), a = Z(null), o = Z({ x: 0, y: 0 }), i = Z({ width: 0, height: 0, x: 0, y: 0, rotation: 0 }), l = Z(""), s = Z(""), c = Z({ x: 0, y: 0 }), u = Z([]), d = Z(null), h = Z(0), f = ul.UPDATE_THRESHOLD, B = Z({ x: 0, y: 0, width: 0, height: 0 }), U = Z(/* @__PURE__ */ new Map()), g = Z(/* @__PURE__ */ new Map()), Q = Z(null);
7523
+ function p(O) {
7524
7524
  return O * Math.PI / 180;
7525
7525
  }
7526
7526
  function C(O, D, L, S, P, oA, G) {
7527
7527
  const q = `${O.toFixed(1)}_${D.toFixed(1)}_${L.toFixed(1)}_${S.toFixed(1)}_${P.toFixed(1)}`;
7528
- if (g.value.has(q))
7529
- return g.value.get(q);
7528
+ if (U.value.has(q))
7529
+ return U.value.get(q);
7530
7530
  const rA = v(O, D, L, S, P), BA = rA.map((NA) => NA.x), cA = rA.map((NA) => NA.y), nA = Math.min(...BA), X = Math.max(...BA), z = Math.min(...cA), IA = Math.max(...cA), pA = 0.5, fA = nA < -pA || X > oA + pA || z < -pA || IA > G + pA, hA = {
7531
7531
  minX: nA,
7532
7532
  maxX: X,
@@ -7535,17 +7535,17 @@ function EF(e, A, t, r) {
7535
7535
  isOutOfBounds: fA,
7536
7536
  corners: rA
7537
7537
  };
7538
- if (g.value.set(q, hA), g.value.size > ul.MAX_SIZE) {
7539
- const NA = g.value.keys().next().value;
7540
- g.value.delete(NA);
7538
+ if (U.value.set(q, hA), U.value.size > ul.MAX_SIZE) {
7539
+ const NA = U.value.keys().next().value;
7540
+ U.value.delete(NA);
7541
7541
  }
7542
7542
  return hA;
7543
7543
  }
7544
7544
  function v(O, D, L, S, P) {
7545
7545
  const oA = `${O.toFixed(1)}_${D.toFixed(1)}_${L.toFixed(1)}_${S.toFixed(1)}_${P.toFixed(1)}`;
7546
- if (h.value.has(oA))
7547
- return h.value.get(oA);
7548
- const G = Q(P), q = Math.cos(G), rA = Math.sin(G), BA = O + L / 2, cA = D + S / 2, X = [
7546
+ if (g.value.has(oA))
7547
+ return g.value.get(oA);
7548
+ const G = p(P), q = Math.cos(G), rA = Math.sin(G), BA = O + L / 2, cA = D + S / 2, X = [
7549
7549
  { x: -L / 2, y: -S / 2 },
7550
7550
  { x: L / 2, y: -S / 2 },
7551
7551
  { x: L / 2, y: S / 2 },
@@ -7554,9 +7554,9 @@ function EF(e, A, t, r) {
7554
7554
  x: Number((BA + z.x * q - z.y * rA).toFixed(2)),
7555
7555
  y: Number((cA + z.x * rA + z.y * q).toFixed(2))
7556
7556
  }));
7557
- if (h.value.set(oA, X), h.value.size > 100) {
7558
- const z = h.value.keys().next().value;
7559
- h.value.delete(z);
7557
+ if (g.value.set(oA, X), g.value.size > 100) {
7558
+ const z = g.value.keys().next().value;
7559
+ g.value.delete(z);
7560
7560
  }
7561
7561
  return X;
7562
7562
  }
@@ -7603,7 +7603,7 @@ function EF(e, A, t, r) {
7603
7603
  x: D.props.x,
7604
7604
  y: D.props.y,
7605
7605
  rotation: D.props.rotation || 0
7606
- }, s.value = "", c.value = { x: 0, y: 0 }, p.value = null, d.value = w(
7606
+ }, s.value = "", c.value = { x: 0, y: 0 }, Q.value = null, d.value = w(
7607
7607
  L,
7608
7608
  i.value.x,
7609
7609
  i.value.y,
@@ -7615,24 +7615,24 @@ function EF(e, A, t, r) {
7615
7615
  y: i.value.y,
7616
7616
  width: i.value.width,
7617
7617
  height: i.value.height
7618
- }, u.value = [...r.value], g.value.clear(), h.value.clear(), document.addEventListener("mousemove", M), document.addEventListener("mouseup", T));
7618
+ }, u.value = [...r.value], U.value.clear(), g.value.clear(), document.addEventListener("mousemove", M), document.addEventListener("mouseup", T));
7619
7619
  }
7620
7620
  function M(O) {
7621
7621
  if (!n.value || !a.value || !d.value)
7622
7622
  return;
7623
7623
  const D = Date.now();
7624
- if (D - U.value < f)
7624
+ if (D - h.value < f)
7625
7625
  return;
7626
- U.value = D;
7627
- const L = (t == null ? void 0 : t.value) || 1, S = i.value.rotation || 0, P = Q(S), oA = Math.cos(P), G = Math.sin(P), q = i.value.width, rA = i.value.height, BA = i.value.x, cA = i.value.y, nA = 1;
7626
+ h.value = D;
7627
+ const L = (t == null ? void 0 : t.value) || 1, S = i.value.rotation || 0, P = p(S), oA = Math.cos(P), G = Math.sin(P), q = i.value.width, rA = i.value.height, BA = i.value.x, cA = i.value.y, nA = 1;
7628
7628
  let X = q, z = rA;
7629
7629
  const IA = (O.clientX - o.value.x) / 3.7795275591 / L, pA = (O.clientY - o.value.y) / 3.7795275591 / L;
7630
7630
  let fA, hA;
7631
7631
  S === 0 ? (fA = IA, hA = pA) : (fA = IA * oA + pA * G, hA = -IA * G + pA * oA);
7632
7632
  const NA = !!a.value.props.lockAspectRatio, jA = q / rA, se = Math.abs(O.clientX - o.value.x), Je = Math.abs(O.clientY - o.value.y);
7633
- if (NA && !p.value && (p.value = se > Je ? "x" : "y"), l.value.includes("-")) {
7634
- if (NA && p.value)
7635
- p.value === "x" ? (["top-left", "bottom-left"].includes(l.value) ? X = Math.max(nA, q - fA) : X = Math.max(nA, q + fA), z = X / jA) : (["top-left", "top-right"].includes(l.value) ? z = Math.max(nA, rA - hA) : z = Math.max(nA, rA + hA), X = z * jA);
7633
+ if (NA && !Q.value && (Q.value = se > Je ? "x" : "y"), l.value.includes("-")) {
7634
+ if (NA && Q.value)
7635
+ Q.value === "x" ? (["top-left", "bottom-left"].includes(l.value) ? X = Math.max(nA, q - fA) : X = Math.max(nA, q + fA), z = X / jA) : (["top-left", "top-right"].includes(l.value) ? z = Math.max(nA, rA - hA) : z = Math.max(nA, rA + hA), X = z * jA);
7636
7636
  else if (l.value === "top-left" ? (X = Math.max(nA, q - fA), z = Math.max(nA, rA - hA)) : l.value === "top-right" ? (X = Math.max(nA, q + fA), z = Math.max(nA, rA - hA)) : l.value === "bottom-right" ? (X = Math.max(nA, q + fA), z = Math.max(nA, rA + hA)) : l.value === "bottom-left" && (X = Math.max(nA, q - fA), z = Math.max(nA, rA + hA)), NA) {
7637
7637
  const bA = X / z;
7638
7638
  if (Math.abs(bA - jA) > 0.01) {
@@ -7668,7 +7668,7 @@ function EF(e, A, t, r) {
7668
7668
  (Math.abs(X - a.value.props.width) > 1e-3 || Math.abs(z - a.value.props.height) > 1e-3 || Math.abs(ne - a.value.props.x) > 1e-3 || Math.abs(CA - a.value.props.y) > 1e-3) && (a.value.props.x = Number(ne.toFixed(2)), a.value.props.y = Number(CA.toFixed(2)), a.value.props.width = Number(X.toFixed(2)), a.value.props.height = Number(z.toFixed(2)), B.value = { x: ne, y: CA, width: X, height: z });
7669
7669
  }
7670
7670
  function T() {
7671
- n.value = !1, a.value = null, s.value = "", c.value = { x: 0, y: 0 }, d.value = null, B.value = { x: 0, y: 0, width: 0, height: 0 }, g.value.clear(), h.value.clear(), u.value.length > 0 && (r.value = [...u.value]), u.value = [], document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", T), p.value = null;
7671
+ n.value = !1, a.value = null, s.value = "", c.value = { x: 0, y: 0 }, d.value = null, B.value = { x: 0, y: 0, width: 0, height: 0 }, U.value.clear(), g.value.clear(), u.value.length > 0 && (r.value = [...u.value]), u.value = [], document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", T), Q.value = null;
7672
7672
  }
7673
7673
  return {
7674
7674
  resizing: n,
@@ -7719,38 +7719,38 @@ function vF() {
7719
7719
  return;
7720
7720
  a.preventDefault(), a.stopPropagation();
7721
7721
  const i = a.target.parentElement.getBoundingClientRect(), l = i.left + i.width / 2, s = i.top + i.height / 2;
7722
- let c = null, u = !1, d = B(a.clientX, a.clientY), U = o.props.rotation || 0, f = U;
7723
- function B(Q, C) {
7724
- const v = Q - l, w = C - s;
7722
+ let c = null, u = !1, d = B(a.clientX, a.clientY), h = o.props.rotation || 0, f = h;
7723
+ function B(p, C) {
7724
+ const v = p - l, w = C - s;
7725
7725
  let R = Math.atan2(w, v) * 180 / Math.PI + 90;
7726
7726
  return R > 180 && (R -= 360), R < -180 && (R += 360), R;
7727
7727
  }
7728
- function g(Q) {
7729
- const C = Q.clientX - l, v = Q.clientY - s;
7728
+ function U(p) {
7729
+ const C = p.clientX - l, v = p.clientY - s;
7730
7730
  if (Math.sqrt(C * C + v * v) < 20) {
7731
7731
  u = !0, c = null;
7732
7732
  return;
7733
7733
  }
7734
7734
  if (u) {
7735
- d = B(Q.clientX, Q.clientY), u = !1, c = null;
7735
+ d = B(p.clientX, p.clientY), u = !1, c = null;
7736
7736
  return;
7737
7737
  }
7738
- const R = B(Q.clientX, Q.clientY);
7738
+ const R = B(p.clientX, p.clientY);
7739
7739
  let M = R - d;
7740
- M > 180 && (M -= 360), M < -180 && (M += 360), U += M, d = R, f = r(f, U, 0.25);
7740
+ M > 180 && (M -= 360), M < -180 && (M += 360), h += M, d = R, f = r(f, h, 0.25);
7741
7741
  const T = (f % 360 + 360) % 360;
7742
7742
  Math.abs(o.props.rotation - T) >= 0.2 && (o.props.rotation = Number(T.toFixed(2))), c = null;
7743
7743
  }
7744
- const h = (Q) => {
7745
- c || (c = requestAnimationFrame(() => g(Q)));
7746
- }, p = (Q) => {
7747
- Q && Q.stopPropagation(), document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", p), c && (cancelAnimationFrame(c), c = null), u = !1;
7744
+ const g = (p) => {
7745
+ c || (c = requestAnimationFrame(() => U(p)));
7746
+ }, Q = (p) => {
7747
+ p && p.stopPropagation(), document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", Q), c && (cancelAnimationFrame(c), c = null), u = !1;
7748
7748
  const C = (v) => {
7749
7749
  v.stopImmediatePropagation(), document.removeEventListener("click", C, !0);
7750
7750
  };
7751
7751
  document.addEventListener("click", C, !0);
7752
7752
  };
7753
- document.addEventListener("mousemove", h), document.addEventListener("mouseup", p);
7753
+ document.addEventListener("mousemove", g), document.addEventListener("mouseup", Q);
7754
7754
  }
7755
7755
  return {
7756
7756
  startRotate: n
@@ -7780,15 +7780,15 @@ function RF(e, A, t) {
7780
7780
  const c = e.value[e.value.length - 1];
7781
7781
  let u = Number(c.props[i]) + Number(l);
7782
7782
  if (i === "x" || i === "y") {
7783
- const d = A != null && A.value ? A.value - c.props.width : 1 / 0, U = t != null && t.value ? t.value - c.props.height : 1 / 0;
7784
- i === "x" ? u = Math.max(0, Math.min(u, d)) : i === "y" && (u = Math.max(0, Math.min(u, U)));
7783
+ const d = A != null && A.value ? A.value - c.props.width : 1 / 0, h = t != null && t.value ? t.value - c.props.height : 1 / 0;
7784
+ i === "x" ? u = Math.max(0, Math.min(u, d)) : i === "y" && (u = Math.max(0, Math.min(u, h)));
7785
7785
  } else if (i === "width" || i === "height") {
7786
7786
  if (i === "width") {
7787
- const U = A != null && A.value ? A.value - c.props.x : 1 / 0;
7788
- u = Math.max(1, Math.min(u, U));
7787
+ const h = A != null && A.value ? A.value - c.props.x : 1 / 0;
7788
+ u = Math.max(1, Math.min(u, h));
7789
7789
  } else if (i === "height") {
7790
- const U = t != null && t.value ? t.value - c.props.y : 1 / 0;
7791
- u = Math.max(1, Math.min(u, U));
7790
+ const h = t != null && t.value ? t.value - c.props.y : 1 / 0;
7791
+ u = Math.max(1, Math.min(u, h));
7792
7792
  }
7793
7793
  }
7794
7794
  if (!(u < s)) {
@@ -7802,8 +7802,8 @@ function RF(e, A, t) {
7802
7802
  }
7803
7803
  }
7804
7804
  if (c.type === "horline" && i === "height") {
7805
- const U = u / 0.3528;
7806
- c.props.height = Number(u.toFixed(2)), c.props.LineWidth = Number(U.toFixed(2)) + "pt";
7805
+ const h = u / 0.3528;
7806
+ c.props.height = Number(u.toFixed(2)), c.props.LineWidth = Number(h.toFixed(2)) + "pt";
7807
7807
  return;
7808
7808
  }
7809
7809
  c.props[i] = Number(u.toFixed(2));
@@ -7864,8 +7864,8 @@ function VF(e, A, t, r) {
7864
7864
  const s = JSON.parse(JSON.stringify(n.value));
7865
7865
  if (s.id = Date.now(), s.props) {
7866
7866
  let c = Number(s.props.x) + 5, u = Number(s.props.y) + 5;
7867
- const d = t.value - Number(s.props.width), U = r.value - Number(s.props.height);
7868
- s.props.x = Math.max(0, Math.min(c, d)), s.props.y = Math.max(0, Math.min(u, U)), s.props.x != c && (s.props.x = c - 5 * 2), s.props.y != u && (s.props.y = u - 5 * 2);
7867
+ const d = t.value - Number(s.props.width), h = r.value - Number(s.props.height);
7868
+ s.props.x = Math.max(0, Math.min(c, d)), s.props.y = Math.max(0, Math.min(u, h)), s.props.x != c && (s.props.x = c - 5 * 2), s.props.y != u && (s.props.y = u - 5 * 2);
7869
7869
  }
7870
7870
  e.value.push(s), A.value = [s], i.preventDefault();
7871
7871
  }
@@ -7880,34 +7880,34 @@ function TF(e = {}) {
7880
7880
  // 垂直对齐线 [{ x: number, visible: boolean }]
7881
7881
  }), a = 0.1;
7882
7882
  function o(d) {
7883
- const U = Number(d.props.x) || 0, f = Number(d.props.y) || 0, B = Number(d.props.width) || 0, g = Number(d.props.height) || 0;
7883
+ const h = Number(d.props.x) || 0, f = Number(d.props.y) || 0, B = Number(d.props.width) || 0, U = Number(d.props.height) || 0;
7884
7884
  return {
7885
- centerX: U + B / 2,
7886
- centerY: f + g / 2
7885
+ centerX: h + B / 2,
7886
+ centerY: f + U / 2
7887
7887
  };
7888
7888
  }
7889
- function i(d, U) {
7889
+ function i(d, h) {
7890
7890
  const f = [], B = /* @__PURE__ */ new Set();
7891
- return U.forEach((g) => {
7892
- const h = o(g), p = Math.abs(d.centerY - h.centerY);
7891
+ return h.forEach((U) => {
7892
+ const g = o(U), Q = Math.abs(d.centerY - g.centerY);
7893
7893
  Math.round(d.centerY * 100) / 100;
7894
- const Q = Math.round(h.centerY * 100) / 100;
7895
- p <= a && !B.has(Q) && (f.push({
7896
- y: Q,
7894
+ const p = Math.round(g.centerY * 100) / 100;
7895
+ Q <= a && !B.has(p) && (f.push({
7896
+ y: p,
7897
7897
  visible: !0
7898
- }), B.add(Q));
7898
+ }), B.add(p));
7899
7899
  }), f;
7900
7900
  }
7901
- function l(d, U) {
7901
+ function l(d, h) {
7902
7902
  const f = [], B = /* @__PURE__ */ new Set();
7903
- return U.forEach((g) => {
7904
- const h = o(g), p = Math.abs(d.centerX - h.centerX);
7903
+ return h.forEach((U) => {
7904
+ const g = o(U), Q = Math.abs(d.centerX - g.centerX);
7905
7905
  Math.round(d.centerX * 100) / 100;
7906
- const Q = Math.round(h.centerX * 100) / 100;
7907
- p <= a && !B.has(Q) && (f.push({
7908
- x: Q,
7906
+ const p = Math.round(g.centerX * 100) / 100;
7907
+ Q <= a && !B.has(p) && (f.push({
7908
+ x: p,
7909
7909
  visible: !0
7910
- }), B.add(Q));
7910
+ }), B.add(p));
7911
7911
  }), f;
7912
7912
  }
7913
7913
  function s() {
@@ -7915,7 +7915,7 @@ function TF(e = {}) {
7915
7915
  n.value.horizontal = [], n.value.vertical = [];
7916
7916
  return;
7917
7917
  }
7918
- const d = o(t.value), U = A.value.filter((g) => g !== t.value), f = i(d, U), B = l(d, U);
7918
+ const d = o(t.value), h = A.value.filter((U) => U !== t.value), f = i(d, h), B = l(d, h);
7919
7919
  n.value.horizontal = f, n.value.vertical = B;
7920
7920
  }
7921
7921
  function c() {
@@ -8310,7 +8310,7 @@ var _F = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
8310
8310
  if (lo === l && [lo, un, ao, oo].indexOf(c) !== -1 || [un, ao].indexOf(l) !== -1 && [un, dn].indexOf(c) !== -1 || [dn, oo].indexOf(l) !== -1 && c === dn || vl.indexOf(l) !== -1 && [El, qt].indexOf(c) !== -1 || vl.indexOf(c) !== -1 && l === $t || Qe.indexOf(l) !== -1 && Qe.indexOf(c) !== -1 || l === ut && Qe.indexOf(c) !== -1 || Qe.concat(JA).indexOf(l) !== -1 && c === Yt && oC.indexOf(e[i]) === -1 || Qe.concat(JA).indexOf(c) !== -1 && l === Gt)
8311
8311
  return eA;
8312
8312
  if (l === va && c === va) {
8313
- for (var U = t[a], f = 1; U > 0 && (U--, A[U] === va); )
8313
+ for (var h = t[a], f = 1; h > 0 && (h--, A[h] === va); )
8314
8314
  f++;
8315
8315
  if (f % 2 !== 0)
8316
8316
  return eA;
@@ -8535,8 +8535,8 @@ var _F = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
8535
8535
  return this.consumeCodePoint(), this.consumeCodePoint(), dE;
8536
8536
  break;
8537
8537
  case vC:
8538
- var u = this.peekCodePoint(0), d = this.peekCodePoint(1), U = this.peekCodePoint(2);
8539
- if (qr(u, d, U)) {
8538
+ var u = this.peekCodePoint(0), d = this.peekCodePoint(1), h = this.peekCodePoint(2);
8539
+ if (qr(u, d, h)) {
8540
8540
  var o = this.consumeName();
8541
8541
  return { type: 7, value: o };
8542
8542
  }
@@ -8963,8 +8963,8 @@ var bl = function(e, A) {
8963
8963
  var t = A.filter(Nt), r = t[0], n = t[1], a = t[2], o = t[3], i = (r.type === 17 ? Ae(r.number) : Pn.parse(e, r)) / (Math.PI * 2), l = wA(n) ? n.number / 100 : 0, s = wA(a) ? a.number / 100 : 0, c = typeof o < "u" && wA(o) ? sA(o, 1) : 1;
8964
8964
  if (l === 0)
8965
8965
  return Se(s * 255, s * 255, s * 255, 1);
8966
- var u = s <= 0.5 ? s * (l + 1) : s + l - s * l, d = s * 2 - u, U = Ta(d, u, i + 1 / 3), f = Ta(d, u, i), B = Ta(d, u, i - 1 / 3);
8967
- return Se(U * 255, f * 255, B * 255, c);
8966
+ var u = s <= 0.5 ? s * (l + 1) : s + l - s * l, d = s * 2 - u, h = Ta(d, u, i + 1 / 3), f = Ta(d, u, i), B = Ta(d, u, i - 1 / 3);
8967
+ return Se(h * 255, f * 255, B * 255, c);
8968
8968
  }, FE = {
8969
8969
  hsl: bl,
8970
8970
  hsla: bl,
@@ -9164,14 +9164,14 @@ var bl = function(e, A) {
9164
9164
  if (c === null)
9165
9165
  s === null && (s = o);
9166
9166
  else if (s !== null) {
9167
- for (var u = o - s, d = n[s - 1], U = (c - d) / (u + 1), f = 1; f <= u; f++)
9168
- n[s + f - 1] = U * f;
9167
+ for (var u = o - s, d = n[s - 1], h = (c - d) / (u + 1), f = 1; f <= u; f++)
9168
+ n[s + f - 1] = h * f;
9169
9169
  s = null;
9170
9170
  }
9171
9171
  }
9172
- return e.map(function(B, g) {
9173
- var h = B.color;
9174
- return { color: h, stop: Math.max(Math.min(1, n[g] / A), 0) };
9172
+ return e.map(function(B, U) {
9173
+ var g = B.color;
9174
+ return { color: g, stop: Math.max(Math.min(1, n[U] / A), 0) };
9175
9175
  });
9176
9176
  }, mE = function(e, A, t) {
9177
9177
  var r = A / 2, n = t / 2, a = sA(e[0], A) - r, o = n - sA(e[1], t);
@@ -9290,9 +9290,9 @@ var bl = function(e, A) {
9290
9290
  } else if (c.name === "color-stop") {
9291
9291
  var d = c.values.filter(Nt);
9292
9292
  if (d.length === 2) {
9293
- var u = He.parse(e, d[1]), U = d[0];
9294
- Ot(U) && r.push({
9295
- stop: { type: 16, number: U.number * 100, flags: U.flags },
9293
+ var u = He.parse(e, d[1]), h = d[0];
9294
+ Ot(h) && r.push({
9295
+ stop: { type: 16, number: h.number * 100, flags: h.flags },
9296
9296
  color: u
9297
9297
  });
9298
9298
  }
@@ -11582,18 +11582,18 @@ var wv = 1, Sa = 2, Ma = 3, Ll = 4, Gl = 5, Fv = 7, Yl = 8, ba = 9, Ha = 10, zl
11582
11582
  d.src = u.value, d.style.opacity = "1", s.appendChild(d);
11583
11583
  } else if (u.type === 18) {
11584
11584
  if (u.name === "attr") {
11585
- var U = u.values.filter(iA);
11586
- U.length && s.appendChild(i.createTextNode(A.getAttribute(U[0].value) || ""));
11585
+ var h = u.values.filter(iA);
11586
+ h.length && s.appendChild(i.createTextNode(A.getAttribute(h[0].value) || ""));
11587
11587
  } else if (u.name === "counter") {
11588
- var f = u.values.filter(Nt), B = f[0], g = f[1];
11588
+ var f = u.values.filter(Nt), B = f[0], U = f[1];
11589
11589
  if (B && iA(B)) {
11590
- var h = a.counters.getCounterValue(B.value), p = g && iA(g) ? fo.parse(a.context, g.value) : 3;
11591
- s.appendChild(i.createTextNode(gr(h, p, !1)));
11590
+ var g = a.counters.getCounterValue(B.value), Q = U && iA(U) ? fo.parse(a.context, U.value) : 3;
11591
+ s.appendChild(i.createTextNode(gr(g, Q, !1)));
11592
11592
  }
11593
11593
  } else if (u.name === "counters") {
11594
- var Q = u.values.filter(Nt), B = Q[0], C = Q[1], g = Q[2];
11594
+ var p = u.values.filter(Nt), B = p[0], C = p[1], U = p[2];
11595
11595
  if (B && iA(B)) {
11596
- var v = a.counters.getCounterValues(B.value), w = g && iA(g) ? fo.parse(a.context, g.value) : 3, R = C && C.type === 0 ? C.value : "", M = v.map(function(D) {
11596
+ var v = a.counters.getCounterValues(B.value), w = U && iA(U) ? fo.parse(a.context, U.value) : 3, R = C && C.type === 0 ? C.value : "", M = v.map(function(D) {
11597
11597
  return gr(D, w, !1);
11598
11598
  }).join(R);
11599
11599
  s.appendChild(i.createTextNode(M));
@@ -11818,12 +11818,12 @@ var iy = function(e, A) {
11818
11818
  /** @class */
11819
11819
  function() {
11820
11820
  function e(A) {
11821
- var t = A.styles, r = A.bounds, n = Ar(t.borderTopLeftRadius, r.width, r.height), a = n[0], o = n[1], i = Ar(t.borderTopRightRadius, r.width, r.height), l = i[0], s = i[1], c = Ar(t.borderBottomRightRadius, r.width, r.height), u = c[0], d = c[1], U = Ar(t.borderBottomLeftRadius, r.width, r.height), f = U[0], B = U[1], g = [];
11822
- g.push((a + l) / r.width), g.push((f + u) / r.width), g.push((o + B) / r.height), g.push((s + d) / r.height);
11823
- var h = Math.max.apply(Math, g);
11824
- h > 1 && (a /= h, o /= h, l /= h, s /= h, u /= h, d /= h, f /= h, B /= h);
11825
- var p = r.width - l, Q = r.height - d, C = r.width - u, v = r.height - B, w = t.borderTopWidth, R = t.borderRightWidth, M = t.borderBottomWidth, T = t.borderLeftWidth, O = sA(t.paddingTop, A.bounds.width), D = sA(t.paddingRight, A.bounds.width), L = sA(t.paddingBottom, A.bounds.width), S = sA(t.paddingLeft, A.bounds.width);
11826
- this.topLeftBorderDoubleOuterBox = a > 0 || o > 0 ? dA(r.left + T / 3, r.top + w / 3, a - T / 3, o - w / 3, aA.TOP_LEFT) : new H(r.left + T / 3, r.top + w / 3), this.topRightBorderDoubleOuterBox = a > 0 || o > 0 ? dA(r.left + p, r.top + w / 3, l - R / 3, s - w / 3, aA.TOP_RIGHT) : new H(r.left + r.width - R / 3, r.top + w / 3), this.bottomRightBorderDoubleOuterBox = u > 0 || d > 0 ? dA(r.left + C, r.top + Q, u - R / 3, d - M / 3, aA.BOTTOM_RIGHT) : new H(r.left + r.width - R / 3, r.top + r.height - M / 3), this.bottomLeftBorderDoubleOuterBox = f > 0 || B > 0 ? dA(r.left + T / 3, r.top + v, f - T / 3, B - M / 3, aA.BOTTOM_LEFT) : new H(r.left + T / 3, r.top + r.height - M / 3), this.topLeftBorderDoubleInnerBox = a > 0 || o > 0 ? dA(r.left + T * 2 / 3, r.top + w * 2 / 3, a - T * 2 / 3, o - w * 2 / 3, aA.TOP_LEFT) : new H(r.left + T * 2 / 3, r.top + w * 2 / 3), this.topRightBorderDoubleInnerBox = a > 0 || o > 0 ? dA(r.left + p, r.top + w * 2 / 3, l - R * 2 / 3, s - w * 2 / 3, aA.TOP_RIGHT) : new H(r.left + r.width - R * 2 / 3, r.top + w * 2 / 3), this.bottomRightBorderDoubleInnerBox = u > 0 || d > 0 ? dA(r.left + C, r.top + Q, u - R * 2 / 3, d - M * 2 / 3, aA.BOTTOM_RIGHT) : new H(r.left + r.width - R * 2 / 3, r.top + r.height - M * 2 / 3), this.bottomLeftBorderDoubleInnerBox = f > 0 || B > 0 ? dA(r.left + T * 2 / 3, r.top + v, f - T * 2 / 3, B - M * 2 / 3, aA.BOTTOM_LEFT) : new H(r.left + T * 2 / 3, r.top + r.height - M * 2 / 3), this.topLeftBorderStroke = a > 0 || o > 0 ? dA(r.left + T / 2, r.top + w / 2, a - T / 2, o - w / 2, aA.TOP_LEFT) : new H(r.left + T / 2, r.top + w / 2), this.topRightBorderStroke = a > 0 || o > 0 ? dA(r.left + p, r.top + w / 2, l - R / 2, s - w / 2, aA.TOP_RIGHT) : new H(r.left + r.width - R / 2, r.top + w / 2), this.bottomRightBorderStroke = u > 0 || d > 0 ? dA(r.left + C, r.top + Q, u - R / 2, d - M / 2, aA.BOTTOM_RIGHT) : new H(r.left + r.width - R / 2, r.top + r.height - M / 2), this.bottomLeftBorderStroke = f > 0 || B > 0 ? dA(r.left + T / 2, r.top + v, f - T / 2, B - M / 2, aA.BOTTOM_LEFT) : new H(r.left + T / 2, r.top + r.height - M / 2), this.topLeftBorderBox = a > 0 || o > 0 ? dA(r.left, r.top, a, o, aA.TOP_LEFT) : new H(r.left, r.top), this.topRightBorderBox = l > 0 || s > 0 ? dA(r.left + p, r.top, l, s, aA.TOP_RIGHT) : new H(r.left + r.width, r.top), this.bottomRightBorderBox = u > 0 || d > 0 ? dA(r.left + C, r.top + Q, u, d, aA.BOTTOM_RIGHT) : new H(r.left + r.width, r.top + r.height), this.bottomLeftBorderBox = f > 0 || B > 0 ? dA(r.left, r.top + v, f, B, aA.BOTTOM_LEFT) : new H(r.left, r.top + r.height), this.topLeftPaddingBox = a > 0 || o > 0 ? dA(r.left + T, r.top + w, Math.max(0, a - T), Math.max(0, o - w), aA.TOP_LEFT) : new H(r.left + T, r.top + w), this.topRightPaddingBox = l > 0 || s > 0 ? dA(r.left + Math.min(p, r.width - R), r.top + w, p > r.width + R ? 0 : Math.max(0, l - R), Math.max(0, s - w), aA.TOP_RIGHT) : new H(r.left + r.width - R, r.top + w), this.bottomRightPaddingBox = u > 0 || d > 0 ? dA(r.left + Math.min(C, r.width - T), r.top + Math.min(Q, r.height - M), Math.max(0, u - R), Math.max(0, d - M), aA.BOTTOM_RIGHT) : new H(r.left + r.width - R, r.top + r.height - M), this.bottomLeftPaddingBox = f > 0 || B > 0 ? dA(r.left + T, r.top + Math.min(v, r.height - M), Math.max(0, f - T), Math.max(0, B - M), aA.BOTTOM_LEFT) : new H(r.left + T, r.top + r.height - M), this.topLeftContentBox = a > 0 || o > 0 ? dA(r.left + T + S, r.top + w + O, Math.max(0, a - (T + S)), Math.max(0, o - (w + O)), aA.TOP_LEFT) : new H(r.left + T + S, r.top + w + O), this.topRightContentBox = l > 0 || s > 0 ? dA(r.left + Math.min(p, r.width + T + S), r.top + w + O, p > r.width + T + S ? 0 : l - T + S, s - (w + O), aA.TOP_RIGHT) : new H(r.left + r.width - (R + D), r.top + w + O), this.bottomRightContentBox = u > 0 || d > 0 ? dA(r.left + Math.min(C, r.width - (T + S)), r.top + Math.min(Q, r.height + w + O), Math.max(0, u - (R + D)), d - (M + L), aA.BOTTOM_RIGHT) : new H(r.left + r.width - (R + D), r.top + r.height - (M + L)), this.bottomLeftContentBox = f > 0 || B > 0 ? dA(r.left + T + S, r.top + v, Math.max(0, f - (T + S)), B - (M + L), aA.BOTTOM_LEFT) : new H(r.left + T + S, r.top + r.height - (M + L));
11821
+ var t = A.styles, r = A.bounds, n = Ar(t.borderTopLeftRadius, r.width, r.height), a = n[0], o = n[1], i = Ar(t.borderTopRightRadius, r.width, r.height), l = i[0], s = i[1], c = Ar(t.borderBottomRightRadius, r.width, r.height), u = c[0], d = c[1], h = Ar(t.borderBottomLeftRadius, r.width, r.height), f = h[0], B = h[1], U = [];
11822
+ U.push((a + l) / r.width), U.push((f + u) / r.width), U.push((o + B) / r.height), U.push((s + d) / r.height);
11823
+ var g = Math.max.apply(Math, U);
11824
+ g > 1 && (a /= g, o /= g, l /= g, s /= g, u /= g, d /= g, f /= g, B /= g);
11825
+ var Q = r.width - l, p = r.height - d, C = r.width - u, v = r.height - B, w = t.borderTopWidth, R = t.borderRightWidth, M = t.borderBottomWidth, T = t.borderLeftWidth, O = sA(t.paddingTop, A.bounds.width), D = sA(t.paddingRight, A.bounds.width), L = sA(t.paddingBottom, A.bounds.width), S = sA(t.paddingLeft, A.bounds.width);
11826
+ this.topLeftBorderDoubleOuterBox = a > 0 || o > 0 ? dA(r.left + T / 3, r.top + w / 3, a - T / 3, o - w / 3, aA.TOP_LEFT) : new H(r.left + T / 3, r.top + w / 3), this.topRightBorderDoubleOuterBox = a > 0 || o > 0 ? dA(r.left + Q, r.top + w / 3, l - R / 3, s - w / 3, aA.TOP_RIGHT) : new H(r.left + r.width - R / 3, r.top + w / 3), this.bottomRightBorderDoubleOuterBox = u > 0 || d > 0 ? dA(r.left + C, r.top + p, u - R / 3, d - M / 3, aA.BOTTOM_RIGHT) : new H(r.left + r.width - R / 3, r.top + r.height - M / 3), this.bottomLeftBorderDoubleOuterBox = f > 0 || B > 0 ? dA(r.left + T / 3, r.top + v, f - T / 3, B - M / 3, aA.BOTTOM_LEFT) : new H(r.left + T / 3, r.top + r.height - M / 3), this.topLeftBorderDoubleInnerBox = a > 0 || o > 0 ? dA(r.left + T * 2 / 3, r.top + w * 2 / 3, a - T * 2 / 3, o - w * 2 / 3, aA.TOP_LEFT) : new H(r.left + T * 2 / 3, r.top + w * 2 / 3), this.topRightBorderDoubleInnerBox = a > 0 || o > 0 ? dA(r.left + Q, r.top + w * 2 / 3, l - R * 2 / 3, s - w * 2 / 3, aA.TOP_RIGHT) : new H(r.left + r.width - R * 2 / 3, r.top + w * 2 / 3), this.bottomRightBorderDoubleInnerBox = u > 0 || d > 0 ? dA(r.left + C, r.top + p, u - R * 2 / 3, d - M * 2 / 3, aA.BOTTOM_RIGHT) : new H(r.left + r.width - R * 2 / 3, r.top + r.height - M * 2 / 3), this.bottomLeftBorderDoubleInnerBox = f > 0 || B > 0 ? dA(r.left + T * 2 / 3, r.top + v, f - T * 2 / 3, B - M * 2 / 3, aA.BOTTOM_LEFT) : new H(r.left + T * 2 / 3, r.top + r.height - M * 2 / 3), this.topLeftBorderStroke = a > 0 || o > 0 ? dA(r.left + T / 2, r.top + w / 2, a - T / 2, o - w / 2, aA.TOP_LEFT) : new H(r.left + T / 2, r.top + w / 2), this.topRightBorderStroke = a > 0 || o > 0 ? dA(r.left + Q, r.top + w / 2, l - R / 2, s - w / 2, aA.TOP_RIGHT) : new H(r.left + r.width - R / 2, r.top + w / 2), this.bottomRightBorderStroke = u > 0 || d > 0 ? dA(r.left + C, r.top + p, u - R / 2, d - M / 2, aA.BOTTOM_RIGHT) : new H(r.left + r.width - R / 2, r.top + r.height - M / 2), this.bottomLeftBorderStroke = f > 0 || B > 0 ? dA(r.left + T / 2, r.top + v, f - T / 2, B - M / 2, aA.BOTTOM_LEFT) : new H(r.left + T / 2, r.top + r.height - M / 2), this.topLeftBorderBox = a > 0 || o > 0 ? dA(r.left, r.top, a, o, aA.TOP_LEFT) : new H(r.left, r.top), this.topRightBorderBox = l > 0 || s > 0 ? dA(r.left + Q, r.top, l, s, aA.TOP_RIGHT) : new H(r.left + r.width, r.top), this.bottomRightBorderBox = u > 0 || d > 0 ? dA(r.left + C, r.top + p, u, d, aA.BOTTOM_RIGHT) : new H(r.left + r.width, r.top + r.height), this.bottomLeftBorderBox = f > 0 || B > 0 ? dA(r.left, r.top + v, f, B, aA.BOTTOM_LEFT) : new H(r.left, r.top + r.height), this.topLeftPaddingBox = a > 0 || o > 0 ? dA(r.left + T, r.top + w, Math.max(0, a - T), Math.max(0, o - w), aA.TOP_LEFT) : new H(r.left + T, r.top + w), this.topRightPaddingBox = l > 0 || s > 0 ? dA(r.left + Math.min(Q, r.width - R), r.top + w, Q > r.width + R ? 0 : Math.max(0, l - R), Math.max(0, s - w), aA.TOP_RIGHT) : new H(r.left + r.width - R, r.top + w), this.bottomRightPaddingBox = u > 0 || d > 0 ? dA(r.left + Math.min(C, r.width - T), r.top + Math.min(p, r.height - M), Math.max(0, u - R), Math.max(0, d - M), aA.BOTTOM_RIGHT) : new H(r.left + r.width - R, r.top + r.height - M), this.bottomLeftPaddingBox = f > 0 || B > 0 ? dA(r.left + T, r.top + Math.min(v, r.height - M), Math.max(0, f - T), Math.max(0, B - M), aA.BOTTOM_LEFT) : new H(r.left + T, r.top + r.height - M), this.topLeftContentBox = a > 0 || o > 0 ? dA(r.left + T + S, r.top + w + O, Math.max(0, a - (T + S)), Math.max(0, o - (w + O)), aA.TOP_LEFT) : new H(r.left + T + S, r.top + w + O), this.topRightContentBox = l > 0 || s > 0 ? dA(r.left + Math.min(Q, r.width + T + S), r.top + w + O, Q > r.width + T + S ? 0 : l - T + S, s - (w + O), aA.TOP_RIGHT) : new H(r.left + r.width - (R + D), r.top + w + O), this.bottomRightContentBox = u > 0 || d > 0 ? dA(r.left + Math.min(C, r.width - (T + S)), r.top + Math.min(p, r.height + w + O), Math.max(0, u - (R + D)), d - (M + L), aA.BOTTOM_RIGHT) : new H(r.left + r.width - (R + D), r.top + r.height - (M + L)), this.bottomLeftContentBox = f > 0 || B > 0 ? dA(r.left + T + S, r.top + v, Math.max(0, f - (T + S)), B - (M + L), aA.BOTTOM_LEFT) : new H(r.left + T + S, r.top + r.height - (M + L));
11827
11827
  }
11828
11828
  return e;
11829
11829
  }()
@@ -12003,10 +12003,10 @@ var dA = function(e, A, t, r, n) {
12003
12003
  return u > f.element.container.styles.zIndex.order ? (d = B, !1) : d > 0;
12004
12004
  }), s.negativeZIndex.splice(d, 0, c);
12005
12005
  } else if (u > 0) {
12006
- var U = 0;
12006
+ var h = 0;
12007
12007
  s.positiveZIndex.some(function(f, B) {
12008
- return u >= f.element.container.styles.zIndex.order ? (U = B + 1, !1) : U > 0;
12009
- }), s.positiveZIndex.splice(U, 0, c);
12008
+ return u >= f.element.container.styles.zIndex.order ? (h = B + 1, !1) : h > 0;
12009
+ }), s.positiveZIndex.splice(h, 0, c);
12010
12010
  } else
12011
12011
  s.zeroOrAutoZIndexOrTransformedOrOpacity.push(c);
12012
12012
  } else
@@ -12120,19 +12120,19 @@ var dA = function(e, A, t, r, n) {
12120
12120
  if (!l && !d)
12121
12121
  return [t.width, t.height];
12122
12122
  if (d && l) {
12123
- var U = c ? r : n * a, f = u ? n : r / a;
12124
- return [U, f];
12123
+ var h = c ? r : n * a, f = u ? n : r / a;
12124
+ return [h, f];
12125
12125
  }
12126
- var B = c ? r : t.width, g = u ? n : t.height;
12127
- return [B, g];
12126
+ var B = c ? r : t.width, U = u ? n : t.height;
12127
+ return [B, U];
12128
12128
  }
12129
12129
  if (l) {
12130
- var h = 0, p = 0;
12131
- return wA(o) ? h = sA(o, t.width) : wA(i) && (p = sA(i, t.height)), gt(o) ? h = p * a : (!i || gt(i)) && (p = h / a), [h, p];
12130
+ var g = 0, Q = 0;
12131
+ return wA(o) ? g = sA(o, t.width) : wA(i) && (Q = sA(i, t.height)), gt(o) ? g = Q * a : (!i || gt(i)) && (Q = g / a), [g, Q];
12132
12132
  }
12133
- var Q = null, C = null;
12134
- if (wA(o) ? Q = sA(o, t.width) : i && wA(i) && (C = sA(i, t.height)), Q !== null && (!i || gt(i)) && (C = c && u ? Q / r * n : t.height), C !== null && gt(o) && (Q = c && u ? C / n * r : t.width), Q !== null && C !== null)
12135
- return [Q, C];
12133
+ var p = null, C = null;
12134
+ if (wA(o) ? p = sA(o, t.width) : i && wA(i) && (C = sA(i, t.height)), p !== null && (!i || gt(i)) && (C = c && u ? p / r * n : t.height), C !== null && gt(o) && (p = c && u ? C / n * r : t.width), p !== null && C !== null)
12135
+ return [p, C];
12136
12136
  throw new Error("Unable to calculate background-size for element");
12137
12137
  }, pt = function(e, A) {
12138
12138
  var t = e[A];
@@ -12276,17 +12276,17 @@ var dA = function(e, A, t, r, n) {
12276
12276
  }, A.prototype.renderTextNode = function(t, r) {
12277
12277
  return ZA(this, void 0, void 0, function() {
12278
12278
  var n, a, o, i, l, s, c, u, d = this;
12279
- return SA(this, function(U) {
12279
+ return SA(this, function(h) {
12280
12280
  return n = this.createFontStyle(r), a = n[0], o = n[1], i = n[2], this.ctx.font = a, this.ctx.direction = r.direction === 1 ? "rtl" : "ltr", this.ctx.textAlign = "left", this.ctx.textBaseline = "alphabetic", l = this.fontMetrics.getMetrics(o, i), s = l.baseline, c = l.middle, u = r.paintOrder, t.textBounds.forEach(function(f) {
12281
12281
  u.forEach(function(B) {
12282
12282
  switch (B) {
12283
12283
  case 0:
12284
12284
  d.ctx.fillStyle = mA(r.color), d.renderTextWithLetterSpacing(f, r.letterSpacing, s);
12285
- var g = r.textShadow;
12286
- g.length && f.text.trim().length && (g.slice(0).reverse().forEach(function(h) {
12287
- d.ctx.shadowColor = mA(h.color), d.ctx.shadowOffsetX = h.offsetX.number * d.options.scale, d.ctx.shadowOffsetY = h.offsetY.number * d.options.scale, d.ctx.shadowBlur = h.blur.number, d.renderTextWithLetterSpacing(f, r.letterSpacing, s);
12288
- }), d.ctx.shadowColor = "", d.ctx.shadowOffsetX = 0, d.ctx.shadowOffsetY = 0, d.ctx.shadowBlur = 0), r.textDecorationLine.length && (d.ctx.fillStyle = mA(r.textDecorationColor || r.color), r.textDecorationLine.forEach(function(h) {
12289
- switch (h) {
12285
+ var U = r.textShadow;
12286
+ U.length && f.text.trim().length && (U.slice(0).reverse().forEach(function(g) {
12287
+ d.ctx.shadowColor = mA(g.color), d.ctx.shadowOffsetX = g.offsetX.number * d.options.scale, d.ctx.shadowOffsetY = g.offsetY.number * d.options.scale, d.ctx.shadowBlur = g.blur.number, d.renderTextWithLetterSpacing(f, r.letterSpacing, s);
12288
+ }), d.ctx.shadowColor = "", d.ctx.shadowOffsetX = 0, d.ctx.shadowOffsetY = 0, d.ctx.shadowBlur = 0), r.textDecorationLine.length && (d.ctx.fillStyle = mA(r.textDecorationColor || r.color), r.textDecorationLine.forEach(function(g) {
12289
+ switch (g) {
12290
12290
  case 1:
12291
12291
  d.ctx.fillRect(f.bounds.left, Math.round(f.bounds.top + s), f.bounds.width, 1);
12292
12292
  break;
@@ -12317,7 +12317,7 @@ var dA = function(e, A, t, r, n) {
12317
12317
  }
12318
12318
  }, A.prototype.renderNodeContent = function(t) {
12319
12319
  return ZA(this, void 0, void 0, function() {
12320
- var r, n, a, o, i, l, p, p, s, c, u, d, C, U, f, v, B, g, h, p, Q, C, v;
12320
+ var r, n, a, o, i, l, Q, Q, s, c, u, d, C, h, f, v, B, U, g, Q, p, C, v;
12321
12321
  return SA(this, function(w) {
12322
12322
  switch (w.label) {
12323
12323
  case 0:
@@ -12338,7 +12338,7 @@ var dA = function(e, A, t, r, n) {
12338
12338
  case 5:
12339
12339
  return w.trys.push([5, 7, , 8]), [4, this.context.cache.match(r.src)];
12340
12340
  case 6:
12341
- return p = w.sent(), this.renderReplacedElement(r, n, p), [3, 8];
12341
+ return Q = w.sent(), this.renderReplacedElement(r, n, Q), [3, 8];
12342
12342
  case 7:
12343
12343
  return w.sent(), this.context.logger.error("Error loading image " + r.src), [3, 8];
12344
12344
  case 8:
@@ -12348,7 +12348,7 @@ var dA = function(e, A, t, r, n) {
12348
12348
  case 9:
12349
12349
  return w.trys.push([9, 11, , 12]), [4, this.context.cache.match(r.svg)];
12350
12350
  case 10:
12351
- return p = w.sent(), this.renderReplacedElement(r, n, p), [3, 12];
12351
+ return Q = w.sent(), this.renderReplacedElement(r, n, Q), [3, 12];
12352
12352
  case 11:
12353
12353
  return w.sent(), this.context.logger.error("Error loading svg " + r.svg.substring(0, 255)), [3, 12];
12354
12354
  case 12:
@@ -12372,7 +12372,7 @@ var dA = function(e, A, t, r, n) {
12372
12372
  new H(r.bounds.left + u * 0.84, r.bounds.top + u * 0.34085),
12373
12373
  new H(r.bounds.left + u * 0.39363, r.bounds.top + u * 0.79)
12374
12374
  ]), this.ctx.fillStyle = mA(As), this.ctx.fill(), this.ctx.restore()) : r.type === vn && r.checked && (this.ctx.save(), this.ctx.beginPath(), this.ctx.arc(r.bounds.left + u / 2, r.bounds.top + u / 2, u / 4, 0, Math.PI * 2, !0), this.ctx.fillStyle = mA(As), this.ctx.fill(), this.ctx.restore())), Gy(r) && r.value.length) {
12375
- switch (d = this.createFontStyle(a), C = d[0], U = d[1], f = this.fontMetrics.getMetrics(C, U).baseline, this.ctx.font = C, this.ctx.fillStyle = mA(a.color), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = zy(r.styles.textAlign), v = In(r), B = 0, r.styles.textAlign) {
12375
+ switch (d = this.createFontStyle(a), C = d[0], h = d[1], f = this.fontMetrics.getMetrics(C, h).baseline, this.ctx.font = C, this.ctx.fillStyle = mA(a.color), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = zy(r.styles.textAlign), v = In(r), B = 0, r.styles.textAlign) {
12376
12376
  case 1:
12377
12377
  B += v.width / 2;
12378
12378
  break;
@@ -12380,12 +12380,12 @@ var dA = function(e, A, t, r, n) {
12380
12380
  B += v.width;
12381
12381
  break;
12382
12382
  }
12383
- g = v.add(B, 0, 0, -v.height / 2 + 1), this.ctx.save(), this.path([
12383
+ U = v.add(B, 0, 0, -v.height / 2 + 1), this.ctx.save(), this.path([
12384
12384
  new H(v.left, v.top),
12385
12385
  new H(v.left + v.width, v.top),
12386
12386
  new H(v.left + v.width, v.top + v.height),
12387
12387
  new H(v.left, v.top + v.height)
12388
- ]), this.ctx.clip(), this.renderTextWithLetterSpacing(new ir(r.value, g), a.letterSpacing, f), this.ctx.restore(), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = "left";
12388
+ ]), this.ctx.clip(), this.renderTextWithLetterSpacing(new ir(r.value, U), a.letterSpacing, f), this.ctx.restore(), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = "left";
12389
12389
  }
12390
12390
  if (!EA(
12391
12391
  r.styles.display,
@@ -12395,15 +12395,15 @@ var dA = function(e, A, t, r, n) {
12395
12395
  return [3, 20];
12396
12396
  if (r.styles.listStyleImage === null)
12397
12397
  return [3, 19];
12398
- if (h = r.styles.listStyleImage, h.type !== 0)
12398
+ if (g = r.styles.listStyleImage, g.type !== 0)
12399
12399
  return [3, 18];
12400
- p = void 0, Q = h.url, w.label = 15;
12400
+ Q = void 0, p = g.url, w.label = 15;
12401
12401
  case 15:
12402
- return w.trys.push([15, 17, , 18]), [4, this.context.cache.match(Q)];
12402
+ return w.trys.push([15, 17, , 18]), [4, this.context.cache.match(p)];
12403
12403
  case 16:
12404
- return p = w.sent(), this.ctx.drawImage(p, r.bounds.left - (p.width + 10), r.bounds.top), [3, 18];
12404
+ return Q = w.sent(), this.ctx.drawImage(Q, r.bounds.left - (Q.width + 10), r.bounds.top), [3, 18];
12405
12405
  case 17:
12406
- return w.sent(), this.context.logger.error("Error loading list-style-image " + Q), [3, 18];
12406
+ return w.sent(), this.context.logger.error("Error loading list-style-image " + p), [3, 18];
12407
12407
  case 18:
12408
12408
  return [3, 20];
12409
12409
  case 19:
@@ -12418,9 +12418,9 @@ var dA = function(e, A, t, r, n) {
12418
12418
  });
12419
12419
  }, A.prototype.renderStackContent = function(t) {
12420
12420
  return ZA(this, void 0, void 0, function() {
12421
- var r, n, h, a, o, h, i, l, h, s, c, h, u, d, h, U, f, h, B, g, h;
12422
- return SA(this, function(p) {
12423
- switch (p.label) {
12421
+ var r, n, g, a, o, g, i, l, g, s, c, g, u, d, g, h, f, g, B, U, g;
12422
+ return SA(this, function(Q) {
12423
+ switch (Q.label) {
12424
12424
  case 0:
12425
12425
  if (EA(
12426
12426
  t.element.container.flags,
@@ -12430,61 +12430,61 @@ var dA = function(e, A, t, r, n) {
12430
12430
  debugger;
12431
12431
  return [4, this.renderNodeBackgroundAndBorders(t.element)];
12432
12432
  case 1:
12433
- p.sent(), r = 0, n = t.negativeZIndex, p.label = 2;
12433
+ Q.sent(), r = 0, n = t.negativeZIndex, Q.label = 2;
12434
12434
  case 2:
12435
- return r < n.length ? (h = n[r], [4, this.renderStack(h)]) : [3, 5];
12435
+ return r < n.length ? (g = n[r], [4, this.renderStack(g)]) : [3, 5];
12436
12436
  case 3:
12437
- p.sent(), p.label = 4;
12437
+ Q.sent(), Q.label = 4;
12438
12438
  case 4:
12439
12439
  return r++, [3, 2];
12440
12440
  case 5:
12441
12441
  return [4, this.renderNodeContent(t.element)];
12442
12442
  case 6:
12443
- p.sent(), a = 0, o = t.nonInlineLevel, p.label = 7;
12443
+ Q.sent(), a = 0, o = t.nonInlineLevel, Q.label = 7;
12444
12444
  case 7:
12445
- return a < o.length ? (h = o[a], [4, this.renderNode(h)]) : [3, 10];
12445
+ return a < o.length ? (g = o[a], [4, this.renderNode(g)]) : [3, 10];
12446
12446
  case 8:
12447
- p.sent(), p.label = 9;
12447
+ Q.sent(), Q.label = 9;
12448
12448
  case 9:
12449
12449
  return a++, [3, 7];
12450
12450
  case 10:
12451
- i = 0, l = t.nonPositionedFloats, p.label = 11;
12451
+ i = 0, l = t.nonPositionedFloats, Q.label = 11;
12452
12452
  case 11:
12453
- return i < l.length ? (h = l[i], [4, this.renderStack(h)]) : [3, 14];
12453
+ return i < l.length ? (g = l[i], [4, this.renderStack(g)]) : [3, 14];
12454
12454
  case 12:
12455
- p.sent(), p.label = 13;
12455
+ Q.sent(), Q.label = 13;
12456
12456
  case 13:
12457
12457
  return i++, [3, 11];
12458
12458
  case 14:
12459
- s = 0, c = t.nonPositionedInlineLevel, p.label = 15;
12459
+ s = 0, c = t.nonPositionedInlineLevel, Q.label = 15;
12460
12460
  case 15:
12461
- return s < c.length ? (h = c[s], [4, this.renderStack(h)]) : [3, 18];
12461
+ return s < c.length ? (g = c[s], [4, this.renderStack(g)]) : [3, 18];
12462
12462
  case 16:
12463
- p.sent(), p.label = 17;
12463
+ Q.sent(), Q.label = 17;
12464
12464
  case 17:
12465
12465
  return s++, [3, 15];
12466
12466
  case 18:
12467
- u = 0, d = t.inlineLevel, p.label = 19;
12467
+ u = 0, d = t.inlineLevel, Q.label = 19;
12468
12468
  case 19:
12469
- return u < d.length ? (h = d[u], [4, this.renderNode(h)]) : [3, 22];
12469
+ return u < d.length ? (g = d[u], [4, this.renderNode(g)]) : [3, 22];
12470
12470
  case 20:
12471
- p.sent(), p.label = 21;
12471
+ Q.sent(), Q.label = 21;
12472
12472
  case 21:
12473
12473
  return u++, [3, 19];
12474
12474
  case 22:
12475
- U = 0, f = t.zeroOrAutoZIndexOrTransformedOrOpacity, p.label = 23;
12475
+ h = 0, f = t.zeroOrAutoZIndexOrTransformedOrOpacity, Q.label = 23;
12476
12476
  case 23:
12477
- return U < f.length ? (h = f[U], [4, this.renderStack(h)]) : [3, 26];
12477
+ return h < f.length ? (g = f[h], [4, this.renderStack(g)]) : [3, 26];
12478
12478
  case 24:
12479
- p.sent(), p.label = 25;
12479
+ Q.sent(), Q.label = 25;
12480
12480
  case 25:
12481
- return U++, [3, 23];
12481
+ return h++, [3, 23];
12482
12482
  case 26:
12483
- B = 0, g = t.positiveZIndex, p.label = 27;
12483
+ B = 0, U = t.positiveZIndex, Q.label = 27;
12484
12484
  case 27:
12485
- return B < g.length ? (h = g[B], [4, this.renderStack(h)]) : [3, 30];
12485
+ return B < U.length ? (g = U[B], [4, this.renderStack(g)]) : [3, 30];
12486
12486
  case 28:
12487
- p.sent(), p.label = 29;
12487
+ Q.sent(), Q.label = 29;
12488
12488
  case 29:
12489
12489
  return B++, [3, 27];
12490
12490
  case 30:
@@ -12522,7 +12522,7 @@ var dA = function(e, A, t, r, n) {
12522
12522
  switch (s.label) {
12523
12523
  case 0:
12524
12524
  r = t.styles.backgroundImage.length - 1, n = function(c) {
12525
- var u, d, U, O, G, q, S, P, M, f, O, G, q, S, P, B, g, h, p, Q, C, v, w, R, M, T, O, D, L, S, P, oA, G, q, rA, BA, cA, nA, X, z, IA, pA;
12525
+ var u, d, h, O, G, q, S, P, M, f, O, G, q, S, P, B, U, g, Q, p, C, v, w, R, M, T, O, D, L, S, P, oA, G, q, rA, BA, cA, nA, X, z, IA, pA;
12526
12526
  return SA(this, function(fA) {
12527
12527
  switch (fA.label) {
12528
12528
  case 0:
@@ -12536,13 +12536,13 @@ var dA = function(e, A, t, r, n) {
12536
12536
  case 3:
12537
12537
  return fA.sent(), a.context.logger.error("Error loading background-image " + d), [3, 4];
12538
12538
  case 4:
12539
- return u && (U = Ja(t, r, [
12539
+ return u && (h = Ja(t, r, [
12540
12540
  u.width,
12541
12541
  u.height,
12542
12542
  u.width / u.height
12543
- ]), O = U[0], G = U[1], q = U[2], S = U[3], P = U[4], M = a.ctx.createPattern(a.resizeImage(u, S, P), "repeat"), a.renderRepeat(O, M, G, q)), [3, 6];
12543
+ ]), O = h[0], G = h[1], q = h[2], S = h[3], P = h[4], M = a.ctx.createPattern(a.resizeImage(u, S, P), "repeat"), a.renderRepeat(O, M, G, q)), [3, 6];
12544
12544
  case 5:
12545
- IE(c) ? (f = Ja(t, r, [null, null, null]), O = f[0], G = f[1], q = f[2], S = f[3], P = f[4], B = vE(c.angle, S, P), g = B[0], h = B[1], p = B[2], Q = B[3], C = B[4], v = document.createElement("canvas"), v.width = S, v.height = P, w = v.getContext("2d"), R = w.createLinearGradient(h, Q, p, C), Hl(c.stops, g).forEach(function(hA) {
12545
+ IE(c) ? (f = Ja(t, r, [null, null, null]), O = f[0], G = f[1], q = f[2], S = f[3], P = f[4], B = vE(c.angle, S, P), U = B[0], g = B[1], Q = B[2], p = B[3], C = B[4], v = document.createElement("canvas"), v.width = S, v.height = P, w = v.getContext("2d"), R = w.createLinearGradient(g, p, Q, C), Hl(c.stops, U).forEach(function(hA) {
12546
12546
  return R.addColorStop(hA.stop, mA(hA.color));
12547
12547
  }), w.fillStyle = R, w.fillRect(0, 0, S, P), S > 0 && P > 0 && (M = a.ctx.createPattern(v, "repeat"), a.renderRepeat(O, M, G, q))) : NE(c) && (T = Ja(t, r, [
12548
12548
  null,
@@ -12618,10 +12618,10 @@ var dA = function(e, A, t, r, n) {
12618
12618
  { style: r.borderLeftStyle, color: r.borderLeftColor, width: r.borderLeftWidth }
12619
12619
  ], o = Yy(pt(r.backgroundClip, 0), t.curves), n || r.boxShadow.length ? (this.ctx.save(), this.path(o), this.ctx.clip(), xe(r.backgroundColor) || (this.ctx.fillStyle = mA(r.backgroundColor), this.ctx.fill()), [4, this.renderBackgroundImage(t.container)]) : [3, 2];
12620
12620
  case 1:
12621
- d.sent(), this.ctx.restore(), r.boxShadow.slice(0).reverse().forEach(function(U) {
12621
+ d.sent(), this.ctx.restore(), r.boxShadow.slice(0).reverse().forEach(function(h) {
12622
12622
  u.ctx.save();
12623
- var f = Vn(t.curves), B = U.inset ? 0 : Ky, g = Sy(f, -B + (U.inset ? 1 : -1) * U.spread.number, (U.inset ? 1 : -1) * U.spread.number, U.spread.number * (U.inset ? -2 : 2), U.spread.number * (U.inset ? -2 : 2));
12624
- U.inset ? (u.path(f), u.ctx.clip(), u.mask(g)) : (u.mask(f), u.ctx.clip(), u.path(g)), u.ctx.shadowOffsetX = U.offsetX.number + B, u.ctx.shadowOffsetY = U.offsetY.number, u.ctx.shadowColor = mA(U.color), u.ctx.shadowBlur = U.blur.number, u.ctx.fillStyle = U.inset ? mA(U.color) : "rgba(0,0,0,1)", u.ctx.fill(), u.ctx.restore();
12623
+ var f = Vn(t.curves), B = h.inset ? 0 : Ky, U = Sy(f, -B + (h.inset ? 1 : -1) * h.spread.number, (h.inset ? 1 : -1) * h.spread.number, h.spread.number * (h.inset ? -2 : 2), h.spread.number * (h.inset ? -2 : 2));
12624
+ h.inset ? (u.path(f), u.ctx.clip(), u.mask(U)) : (u.mask(f), u.ctx.clip(), u.path(U)), u.ctx.shadowOffsetX = h.offsetX.number + B, u.ctx.shadowOffsetY = h.offsetY.number, u.ctx.shadowColor = mA(h.color), u.ctx.shadowBlur = h.blur.number, u.ctx.fillStyle = h.inset ? mA(h.color) : "rgba(0,0,0,1)", u.ctx.fill(), u.ctx.restore();
12625
12625
  }), d.label = 2;
12626
12626
  case 2:
12627
12627
  i = 0, l = 0, s = a, d.label = 3;
@@ -12669,9 +12669,9 @@ var dA = function(e, A, t, r, n) {
12669
12669
  });
12670
12670
  }, A.prototype.renderDashedDottedBorder = function(t, r, n, a, o) {
12671
12671
  return ZA(this, void 0, void 0, function() {
12672
- var i, l, s, c, u, d, U, f, B, g, h, p, Q, C, v, w, v, w;
12672
+ var i, l, s, c, u, d, h, f, B, U, g, Q, p, C, v, w, v, w;
12673
12673
  return SA(this, function(R) {
12674
- return this.ctx.save(), i = xy(a, n), l = ds(a, n), o === 2 && (this.path(l), this.ctx.clip()), qA(l[0]) ? (s = l[0].start.x, c = l[0].start.y) : (s = l[0].x, c = l[0].y), qA(l[1]) ? (u = l[1].end.x, d = l[1].end.y) : (u = l[1].x, d = l[1].y), n === 0 || n === 2 ? U = Math.abs(s - u) : U = Math.abs(c - d), this.ctx.beginPath(), o === 3 ? this.formatPath(i) : this.formatPath(l.slice(0, 2)), f = r < 3 ? r * 3 : r * 2, B = r < 3 ? r * 2 : r, o === 3 && (f = r, B = r), g = !0, U <= f * 2 ? g = !1 : U <= f * 2 + B ? (h = U / (2 * f + B), f *= h, B *= h) : (p = Math.floor((U + B) / (f + B)), Q = (U - p * f) / (p - 1), C = (U - (p + 1) * f) / p, B = C <= 0 || Math.abs(B - Q) < Math.abs(B - C) ? Q : C), g && (o === 3 ? this.ctx.setLineDash([0, f + B]) : this.ctx.setLineDash([f, B])), o === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = r) : this.ctx.lineWidth = r * 2 + 1.1, this.ctx.strokeStyle = mA(t), this.ctx.stroke(), this.ctx.setLineDash([]), o === 2 && (qA(l[0]) && (v = l[3], w = l[0], this.ctx.beginPath(), this.formatPath([new H(v.end.x, v.end.y), new H(w.start.x, w.start.y)]), this.ctx.stroke()), qA(l[1]) && (v = l[1], w = l[2], this.ctx.beginPath(), this.formatPath([new H(v.end.x, v.end.y), new H(w.start.x, w.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
12674
+ return this.ctx.save(), i = xy(a, n), l = ds(a, n), o === 2 && (this.path(l), this.ctx.clip()), qA(l[0]) ? (s = l[0].start.x, c = l[0].start.y) : (s = l[0].x, c = l[0].y), qA(l[1]) ? (u = l[1].end.x, d = l[1].end.y) : (u = l[1].x, d = l[1].y), n === 0 || n === 2 ? h = Math.abs(s - u) : h = Math.abs(c - d), this.ctx.beginPath(), o === 3 ? this.formatPath(i) : this.formatPath(l.slice(0, 2)), f = r < 3 ? r * 3 : r * 2, B = r < 3 ? r * 2 : r, o === 3 && (f = r, B = r), U = !0, h <= f * 2 ? U = !1 : h <= f * 2 + B ? (g = h / (2 * f + B), f *= g, B *= g) : (Q = Math.floor((h + B) / (f + B)), p = (h - Q * f) / (Q - 1), C = (h - (Q + 1) * f) / Q, B = C <= 0 || Math.abs(B - p) < Math.abs(B - C) ? p : C), U && (o === 3 ? this.ctx.setLineDash([0, f + B]) : this.ctx.setLineDash([f, B])), o === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = r) : this.ctx.lineWidth = r * 2 + 1.1, this.ctx.strokeStyle = mA(t), this.ctx.stroke(), this.ctx.setLineDash([]), o === 2 && (qA(l[0]) && (v = l[3], w = l[0], this.ctx.beginPath(), this.formatPath([new H(v.end.x, v.end.y), new H(w.start.x, w.start.y)]), this.ctx.stroke()), qA(l[1]) && (v = l[1], w = l[2], this.ctx.beginPath(), this.formatPath([new H(v.end.x, v.end.y), new H(w.start.x, w.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
12675
12675
  2
12676
12676
  /*return*/
12677
12677
  ];
@@ -12788,7 +12788,7 @@ var dA = function(e, A, t, r, n) {
12788
12788
  typeof window < "u" && Nu.setContext(window);
12789
12789
  var eR = function(e, A) {
12790
12790
  return ZA(void 0, void 0, void 0, function() {
12791
- var t, r, n, a, o, i, l, s, c, u, d, U, f, B, g, h, p, Q, C, v, R, w, R, M, T, O, D, L, S, P, oA, G, q, rA, BA, cA, nA, X, z, IA;
12791
+ var t, r, n, a, o, i, l, s, c, u, d, h, f, B, U, g, Q, p, C, v, R, w, R, M, T, O, D, L, S, P, oA, G, q, rA, BA, cA, nA, X, z, IA;
12792
12792
  return SA(this, function(pA) {
12793
12793
  switch (pA.label) {
12794
12794
  case 0:
@@ -12816,23 +12816,23 @@ var eR = function(e, A) {
12816
12816
  copyStyles: s
12817
12817
  }, l.logger.debug("Starting document clone with size " + i.width + "x" + i.height + " scrolled to " + -i.left + "," + -i.top), u = new ss(l, e, c), d = u.clonedReferenceElement, d ? [4, u.toIFrame(t, i)] : [2, Promise.reject("Unable to find element in cloned iframe")];
12818
12818
  case 1:
12819
- return U = pA.sent(), f = Fi(d) || ty(d) ? SF(d.ownerDocument) : jn(l, d), B = f.width, g = f.height, h = f.left, p = f.top, Q = tR(l, d, A.backgroundColor), C = {
12819
+ return h = pA.sent(), f = Fi(d) || ty(d) ? SF(d.ownerDocument) : jn(l, d), B = f.width, U = f.height, g = f.left, Q = f.top, p = tR(l, d, A.backgroundColor), C = {
12820
12820
  canvas: A.canvas,
12821
- backgroundColor: Q,
12821
+ backgroundColor: p,
12822
12822
  scale: (BA = (rA = A.scale) !== null && rA !== void 0 ? rA : r.devicePixelRatio) !== null && BA !== void 0 ? BA : 1,
12823
- x: ((cA = A.x) !== null && cA !== void 0 ? cA : 0) + h,
12824
- y: ((nA = A.y) !== null && nA !== void 0 ? nA : 0) + p,
12823
+ x: ((cA = A.x) !== null && cA !== void 0 ? cA : 0) + g,
12824
+ y: ((nA = A.y) !== null && nA !== void 0 ? nA : 0) + Q,
12825
12825
  width: (X = A.width) !== null && X !== void 0 ? X : Math.ceil(B),
12826
- height: (z = A.height) !== null && z !== void 0 ? z : Math.ceil(g)
12826
+ height: (z = A.height) !== null && z !== void 0 ? z : Math.ceil(U)
12827
12827
  }, s ? (l.logger.debug("Document cloned, using foreign object rendering"), R = new Py(l, C), [4, R.render(d)]) : [3, 3];
12828
12828
  case 2:
12829
12829
  return v = pA.sent(), [3, 5];
12830
12830
  case 3:
12831
- return l.logger.debug("Document cloned, element located at " + h + "," + p + " with size " + B + "x" + g + " using computed rendering"), l.logger.debug("Starting DOM parsing"), w = Eu(l, d), Q === w.styles.backgroundColor && (w.styles.backgroundColor = Ee.TRANSPARENT), l.logger.debug("Starting renderer for element at " + C.x + "," + C.y + " with size " + C.width + "x" + C.height), R = new Ly(l, C), [4, R.render(w)];
12831
+ return l.logger.debug("Document cloned, element located at " + g + "," + Q + " with size " + B + "x" + U + " using computed rendering"), l.logger.debug("Starting DOM parsing"), w = Eu(l, d), p === w.styles.backgroundColor && (w.styles.backgroundColor = Ee.TRANSPARENT), l.logger.debug("Starting renderer for element at " + C.x + "," + C.y + " with size " + C.width + "x" + C.height), R = new Ly(l, C), [4, R.render(w)];
12832
12832
  case 4:
12833
12833
  v = pA.sent(), pA.label = 5;
12834
12834
  case 5:
12835
- return (!((IA = A.removeContainer) !== null && IA !== void 0) || IA) && (ss.destroy(U) || l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")), l.logger.debug("Finished rendering"), [2, v];
12835
+ return (!((IA = A.removeContainer) !== null && IA !== void 0) || IA) && (ss.destroy(h) || l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")), l.logger.debug("Finished rendering"), [2, v];
12836
12836
  }
12837
12837
  });
12838
12838
  });
@@ -12902,11 +12902,11 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
12902
12902
  return ((E = r.value) == null ? void 0 : E.printHeight) || 0;
12903
12903
  });
12904
12904
  Z(!1);
12905
- const c = Z(!1), u = Z(!1), d = Z(/* @__PURE__ */ new Map()), U = Z(/* @__PURE__ */ new Map()), f = new Map(bc.map((E) => [E.type, E])), { selectedItems: B, selectItem: g, getCurrentSelected: h, clearSelection: p } = mF(), { dragging: Q, dragItem: C, startDrag: v } = CF({
12905
+ const c = Z(!1), u = Z(!1), d = Z(/* @__PURE__ */ new Map()), h = Z(/* @__PURE__ */ new Map()), f = new Map(bc.map((E) => [E.type, E])), { selectedItems: B, selectItem: U, getCurrentSelected: g, clearSelection: Q } = mF(), { dragging: p, dragItem: C, startDrag: v } = CF({
12906
12906
  scale: o,
12907
12907
  canvasWidth: l,
12908
12908
  canvasHeight: s,
12909
- selectItem: g,
12909
+ selectItem: U,
12910
12910
  onStartDrag: () => {
12911
12911
  c.value = !0;
12912
12912
  },
@@ -12921,15 +12921,15 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
12921
12921
  }), { alignmentGuides: w, showGuides: R, updateAlignmentGuides: M, clearAlignmentGuides: T } = TF({
12922
12922
  items: a,
12923
12923
  dragItem: C,
12924
- dragging: Q
12924
+ dragging: p
12925
12925
  }), { startResize: O } = EF(l, s, o, B), { startRotate: D } = vF();
12926
12926
  FA(() => B.value, () => {
12927
12927
  d.value.clear();
12928
12928
  }, { deep: !0 });
12929
12929
  const L = (E) => {
12930
12930
  const F = `${E.id}_${E.props.x.toFixed(1)}_${E.props.y.toFixed(1)}_${E.props.width}_${E.props.height}_${E.props.rotation}`;
12931
- if (U.value.has(F))
12932
- return U.value.get(F);
12931
+ if (h.value.has(F))
12932
+ return h.value.get(F);
12933
12933
  const $ = (E.props.rotation || 0) * Math.PI / 180, K = [
12934
12934
  { x: 0, y: 0 },
12935
12935
  // top-left
@@ -12946,9 +12946,9 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
12946
12946
  y: Number((Ke + Y + E.props.y).toFixed(2))
12947
12947
  };
12948
12948
  });
12949
- if (U.value.set(F, y), U.value.size > 100) {
12950
- const lA = U.value.keys().next().value;
12951
- U.value.delete(lA);
12949
+ if (h.value.set(F, y), h.value.size > 100) {
12950
+ const lA = h.value.keys().next().value;
12951
+ h.value.delete(lA);
12952
12952
  }
12953
12953
  return y;
12954
12954
  }, S = (E) => {
@@ -13029,7 +13029,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13029
13029
  }
13030
13030
  return J;
13031
13031
  }, BA = (E) => {
13032
- const F = B.value.some(($) => $.id === E.id), k = h() === E;
13032
+ const F = B.value.some(($) => $.id === E.id), k = g() === E;
13033
13033
  return {
13034
13034
  "component-selected": F,
13035
13035
  "component-current": F && k,
@@ -13072,7 +13072,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13072
13072
  const F = document.activeElement.tagName.toLowerCase();
13073
13073
  if (F === "input" || F === "textarea")
13074
13074
  return;
13075
- const k = h();
13075
+ const k = g();
13076
13076
  if (!k)
13077
13077
  return;
13078
13078
  const $ = Number(k.props.width) || 0, K = Number(k.props.height) || 0;
@@ -13112,7 +13112,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13112
13112
  type: k,
13113
13113
  props: Ir
13114
13114
  };
13115
- a.value.push(Ei), g(Ei);
13115
+ a.value.push(Ei), U(Ei);
13116
13116
  };
13117
13117
  function fA(E) {
13118
13118
  let F = E.target;
@@ -13121,27 +13121,27 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13121
13121
  return;
13122
13122
  F = F.parentElement;
13123
13123
  }
13124
- p();
13124
+ Q();
13125
13125
  }
13126
13126
  const hA = (E, F) => {
13127
13127
  if (B.value.length === 0) {
13128
- g(F), v(E, F);
13128
+ U(F), v(E, F);
13129
13129
  return;
13130
13130
  }
13131
- if (h() === F) {
13131
+ if (g() === F) {
13132
13132
  v(E, F);
13133
13133
  return;
13134
13134
  }
13135
- g(F), v(E, F);
13135
+ U(F), v(E, F);
13136
13136
  }, NA = (E) => {
13137
13137
  const F = [];
13138
13138
  for (const K of d.value.keys())
13139
13139
  K.includes(E) && F.push(K);
13140
13140
  F.forEach((K) => d.value.delete(K));
13141
13141
  const k = [];
13142
- for (const K of U.value.keys())
13142
+ for (const K of h.value.keys())
13143
13143
  K.includes(E) && k.push(K);
13144
- if (k.forEach((K) => U.value.delete(K)), d.value.clear(), U.value.clear(), a.value.find((K) => K.id === E) && (a.value = a.value.filter((K) => K.id !== E)), B.value.some((K) => K.id === E)) {
13144
+ if (k.forEach((K) => h.value.delete(K)), d.value.clear(), h.value.clear(), a.value.find((K) => K.id === E) && (a.value = a.value.filter((K) => K.id !== E)), B.value.some((K) => K.id === E)) {
13145
13145
  const K = B.value.filter((J) => J.id !== E);
13146
13146
  B.value = K;
13147
13147
  }
@@ -13150,7 +13150,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13150
13150
  }, jA = (E) => {
13151
13151
  var k;
13152
13152
  const F = document.activeElement.tagName.toLowerCase();
13153
- F === "input" || F === "textarea" || (E.key === "Delete" || E.key === "Backspace") && B.value.length > 0 && NA((k = h()) == null ? void 0 : k.id);
13153
+ F === "input" || F === "textarea" || (E.key === "Delete" || E.key === "Backspace") && B.value.length > 0 && NA((k = g()) == null ? void 0 : k.id);
13154
13154
  }, { handleMouseWheel: se, handleInputChange: Je, adjustRotation: Wt } = RF(B, l, s), ot = () => {
13155
13155
  setTimeout(() => {
13156
13156
  const E = document.querySelector(".center-container");
@@ -13172,7 +13172,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13172
13172
  };
13173
13173
  FA(() => t.templateType, async (E) => {
13174
13174
  try {
13175
- await ve(E), p(), d.value.clear(), U.value.clear(), console.log("配置切换成功:", E);
13175
+ await ve(E), Q(), d.value.clear(), h.value.clear(), console.log("配置切换成功:", E);
13176
13176
  } catch (F) {
13177
13177
  console.error("配置切换失败:", F);
13178
13178
  }
@@ -13206,7 +13206,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13206
13206
  const E = NF(r.value.graphData) || "";
13207
13207
  E && ((F = document.querySelector("#design")) == null || F.appendChild(E));
13208
13208
  }, Ci = () => new Promise((E, F) => {
13209
- p(), JSON.parse(JSON.stringify(a.value));
13209
+ Q(), JSON.parse(JSON.stringify(a.value));
13210
13210
  const k = JSON.parse(JSON.stringify(a.value));
13211
13211
  k == null || k.forEach((K) => {
13212
13212
  var J, Y;
@@ -13282,7 +13282,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13282
13282
  getJson: () => bA().then(() => Tr()),
13283
13283
  // 清空画布
13284
13284
  clear: () => {
13285
- a.value = [], p();
13285
+ a.value = [], Q();
13286
13286
  },
13287
13287
  // 生成快照
13288
13288
  snapshot: () => bA().then(() => Ci())
@@ -13346,7 +13346,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13346
13346
  }, ["prevent"])),
13347
13347
  onPointerdown: fA
13348
13348
  }, [
13349
- I(Q) && I(C) ? (V(), N("div", BR, [
13349
+ I(p) && I(C) ? (V(), N("div", BR, [
13350
13350
  m("div", {
13351
13351
  class: "drag-extend-line vertical",
13352
13352
  style: AA(P(I(C), "left"))
@@ -13392,9 +13392,9 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13392
13392
  style: AA(rA(y)),
13393
13393
  "data-item-id": y.id,
13394
13394
  onMousedown: xA((_) => hA(_, y), ["stop"]),
13395
- onClick: xA((_) => I(g)(y), ["stop"])
13395
+ onClick: xA((_) => I(U)(y), ["stop"])
13396
13396
  }, [
13397
- I(h)() === y ? (V(), N(VA, { key: 0 }, [
13397
+ I(g)() === y ? (V(), N(VA, { key: 0 }, [
13398
13398
  y.props.lockAspectRatio ? tA("", !0) : (V(), N(VA, { key: 0 }, [
13399
13399
  y.type !== "verline" && y.type !== "horline" ? (V(), N("div", {
13400
13400
  key: 0,
@@ -13462,7 +13462,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13462
13462
  ], 64)) : tA("", !0),
13463
13463
  y.props && ae.value ? (V(), vA(cr(((lA = q(y.type)) == null ? void 0 : lA.component) || null), {
13464
13464
  key: `${y.id}-${y.type}`,
13465
- modelValue: { ...y.props, __selected: I(h)() === y },
13465
+ modelValue: { ...y.props, __selected: I(g)() === y },
13466
13466
  propsConfig: CA.value,
13467
13467
  "onUpdate:modelValue": (_) => {
13468
13468
  const { __selected: XA, ...ce } = _;
@@ -13489,12 +13489,12 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13489
13489
  }, "-"),
13490
13490
  GA(m("input", {
13491
13491
  type: "number",
13492
- "onUpdate:modelValue": F[3] || (F[3] = (y) => I(h)().props.x = y),
13492
+ "onUpdate:modelValue": F[3] || (F[3] = (y) => I(g)().props.x = y),
13493
13493
  onInput: F[4] || (F[4] = (y) => I(Je)("x", y.target.value))
13494
13494
  }, null, 544), [
13495
13495
  [
13496
13496
  Ye,
13497
- I(h)().props.x,
13497
+ I(g)().props.x,
13498
13498
  void 0,
13499
13499
  { number: !0 }
13500
13500
  ]
@@ -13512,12 +13512,12 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13512
13512
  }, "-"),
13513
13513
  GA(m("input", {
13514
13514
  type: "number",
13515
- "onUpdate:modelValue": F[7] || (F[7] = (y) => I(h)().props.y = y),
13515
+ "onUpdate:modelValue": F[7] || (F[7] = (y) => I(g)().props.y = y),
13516
13516
  onInput: F[8] || (F[8] = (y) => I(Je)("y", y.target.value))
13517
13517
  }, null, 544), [
13518
13518
  [
13519
13519
  Ye,
13520
- I(h)().props.y,
13520
+ I(g)().props.y,
13521
13521
  void 0,
13522
13522
  { number: !0 }
13523
13523
  ]
@@ -13527,7 +13527,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13527
13527
  }, "+")
13528
13528
  ])
13529
13529
  ]),
13530
- I(h)().type !== "verline" ? (V(), N("div", IR, [
13530
+ I(g)().type !== "verline" ? (V(), N("div", IR, [
13531
13531
  F[27] || (F[27] = m("label", null, "宽度:", -1)),
13532
13532
  m("div", NR, [
13533
13533
  m("button", {
@@ -13535,12 +13535,12 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13535
13535
  }, "-"),
13536
13536
  GA(m("input", {
13537
13537
  type: "number",
13538
- "onUpdate:modelValue": F[11] || (F[11] = (y) => I(h)().props.width = y),
13538
+ "onUpdate:modelValue": F[11] || (F[11] = (y) => I(g)().props.width = y),
13539
13539
  onInput: F[12] || (F[12] = (y) => I(Je)("width", y.target.value))
13540
13540
  }, null, 544), [
13541
13541
  [
13542
13542
  Ye,
13543
- I(h)().props.width,
13543
+ I(g)().props.width,
13544
13544
  void 0,
13545
13545
  { number: !0 }
13546
13546
  ]
@@ -13550,7 +13550,7 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13550
13550
  }, "+")
13551
13551
  ])
13552
13552
  ])) : tA("", !0),
13553
- I(h)().type !== "horline" ? (V(), N("div", SR, [
13553
+ I(g)().type !== "horline" ? (V(), N("div", SR, [
13554
13554
  F[28] || (F[28] = m("label", null, "高度:", -1)),
13555
13555
  m("div", MR, [
13556
13556
  m("button", {
@@ -13558,12 +13558,12 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13558
13558
  }, "-"),
13559
13559
  GA(m("input", {
13560
13560
  type: "number",
13561
- "onUpdate:modelValue": F[15] || (F[15] = (y) => I(h)().props.height = y),
13561
+ "onUpdate:modelValue": F[15] || (F[15] = (y) => I(g)().props.height = y),
13562
13562
  onInput: F[16] || (F[16] = (y) => I(Je)("height", y.target.value))
13563
13563
  }, null, 544), [
13564
13564
  [
13565
13565
  Ye,
13566
- I(h)().props.height,
13566
+ I(g)().props.height,
13567
13567
  void 0,
13568
13568
  { number: !0 }
13569
13569
  ]
@@ -13581,12 +13581,12 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13581
13581
  }, "-"),
13582
13582
  GA(m("input", {
13583
13583
  type: "number",
13584
- "onUpdate:modelValue": F[19] || (F[19] = (y) => I(h)().props.rotation = y),
13584
+ "onUpdate:modelValue": F[19] || (F[19] = (y) => I(g)().props.rotation = y),
13585
13585
  onInput: F[20] || (F[20] = (y) => I(Je)("rotation", y.target.value))
13586
13586
  }, null, 544), [
13587
13587
  [
13588
13588
  Ye,
13589
- I(h)().props.rotation,
13589
+ I(g)().props.rotation,
13590
13590
  void 0,
13591
13591
  { number: !0 }
13592
13592
  ]
@@ -13596,23 +13596,23 @@ const rR = { class: "label-designer" }, nR = { class: "toolbar" }, aR = { class:
13596
13596
  }, "+")
13597
13597
  ])
13598
13598
  ]),
13599
- I(h)().type !== "horline" ? (V(), N("div", xR, [
13599
+ I(g)().type !== "horline" ? (V(), N("div", xR, [
13600
13600
  F[30] || (F[30] = m("label", null, "锁定宽高比:", -1)),
13601
13601
  m("div", ZR, [
13602
13602
  W(J, {
13603
- modelValue: I(h)().props.lockAspectRatio,
13604
- "onUpdate:modelValue": F[22] || (F[22] = (y) => I(h)().props.lockAspectRatio = y),
13603
+ modelValue: I(g)().props.lockAspectRatio,
13604
+ "onUpdate:modelValue": F[22] || (F[22] = (y) => I(g)().props.lockAspectRatio = y),
13605
13605
  "active-value": !0,
13606
13606
  "inactive-value": !1
13607
13607
  }, null, 8, ["modelValue"])
13608
13608
  ])
13609
13609
  ])) : tA("", !0)
13610
13610
  ]),
13611
- (V(), vA(cr(((Y = q(I(h)().type)) == null ? void 0 : Y.propertyPanel) || null), {
13612
- modelValue: I(h)().props,
13613
- "onUpdate:modelValue": F[23] || (F[23] = (y) => I(h)().props = y),
13611
+ (V(), vA(cr(((Y = q(I(g)().type)) == null ? void 0 : Y.propertyPanel) || null), {
13612
+ modelValue: I(g)().props,
13613
+ "onUpdate:modelValue": F[23] || (F[23] = (y) => I(g)().props = y),
13614
13614
  options: e.options,
13615
- "props-config": aa(I(h)().type)
13615
+ "props-config": aa(I(g)().type)
13616
13616
  }, null, 8, ["modelValue", "options", "props-config"]))
13617
13617
  ], 64)) : tA("", !0)
13618
13618
  ])
@@ -13640,13 +13640,13 @@ const WR = {
13640
13640
  }
13641
13641
  },
13642
13642
  setup(e) {
13643
- const A = Ze(), t = e, r = Z(!1), n = Z({}), a = Z(), o = Z(0), i = Z(!1), l = (g, h) => {
13644
- let p;
13645
- return function(...C) {
13646
- const v = () => {
13647
- clearTimeout(p), g(...C);
13643
+ const A = Ze(), t = e, r = Z(!1), n = Z({}), a = Z(), o = Z(0), i = Z(!1), l = (B, U) => {
13644
+ let g;
13645
+ return function(...p) {
13646
+ const C = () => {
13647
+ clearTimeout(g), B(...p);
13648
13648
  };
13649
- clearTimeout(p), p = setTimeout(v, h);
13649
+ clearTimeout(g), g = setTimeout(C, U);
13650
13650
  };
13651
13651
  }, s = Z({
13652
13652
  rectTop: 0,
@@ -13654,37 +13654,37 @@ const WR = {
13654
13654
  }), c = () => {
13655
13655
  if (!a.value)
13656
13656
  return;
13657
- const g = a.value.getBoundingClientRect(), h = d(a.value);
13658
- let p = 0;
13659
- if (g.top > 0)
13660
- p = g.top;
13661
- else if (h) {
13662
- const Q = U(a.value);
13663
- p = Q > 0 ? Q : 60;
13657
+ const B = a.value.getBoundingClientRect(), U = d(a.value);
13658
+ let g = 0;
13659
+ if (B.top > 0)
13660
+ g = B.top;
13661
+ else if (U) {
13662
+ const Q = h(a.value);
13663
+ g = Q > 0 ? Q : 60;
13664
13664
  } else {
13665
13665
  const Q = a.value.offsetTop;
13666
- Q > 0 ? p = Q : p = 60;
13666
+ Q > 0 ? g = Q : g = 60;
13667
13667
  }
13668
- (p !== s.value.rectTop || h !== s.value.isInModal) && (o.value = p, i.value = h, s.value = {
13669
- rectTop: p,
13670
- isInModal: h
13668
+ (g !== s.value.rectTop || U !== s.value.isInModal) && (o.value = g, i.value = U, s.value = {
13669
+ rectTop: g,
13670
+ isInModal: U
13671
13671
  });
13672
- }, u = l(c, 100), d = (g) => {
13673
- let h = g.parentElement;
13674
- for (; h; ) {
13675
- if (h.classList && (h.classList.contains("el-dialog") || h.classList.contains("el-drawer") || h.classList.contains("sc-dialog")))
13672
+ }, u = l(c, 100), d = (B) => {
13673
+ let U = B.parentElement;
13674
+ for (; U; ) {
13675
+ if (U.classList && (U.classList.contains("el-dialog") || U.classList.contains("el-drawer") || U.classList.contains("sc-dialog")))
13676
13676
  return !0;
13677
- h = h.parentElement;
13677
+ U = U.parentElement;
13678
13678
  }
13679
13679
  return !1;
13680
- }, U = (g) => {
13681
- let h = g.parentElement;
13682
- for (; h; ) {
13683
- if (h.classList && (h.classList.contains("el-dialog") || h.classList.contains("el-drawer") || h.classList.contains("sc-dialog"))) {
13684
- const p = h.getBoundingClientRect();
13685
- return p.top > 0 ? p.top : 60;
13680
+ }, h = (B) => {
13681
+ let U = B.parentElement;
13682
+ for (; U; ) {
13683
+ if (U.classList && (U.classList.contains("el-dialog") || U.classList.contains("el-drawer") || U.classList.contains("sc-dialog"))) {
13684
+ const g = U.getBoundingClientRect();
13685
+ return g.top > 0 ? g.top : 60;
13686
13686
  }
13687
- h = h.parentElement;
13687
+ U = U.parentElement;
13688
13688
  }
13689
13689
  return 60;
13690
13690
  };
@@ -13692,48 +13692,32 @@ const WR = {
13692
13692
  setTimeout(() => c(), 100), setTimeout(() => c(), 300), window.addEventListener("resize", u), Ur(() => {
13693
13693
  window.removeEventListener("resize", u);
13694
13694
  });
13695
- }), FA(() => r.value, (g) => {
13696
- g && de(() => setTimeout(() => c(), 50));
13697
- }), FA(() => t.templateData, async (g) => {
13698
- r.value = (g == null ? void 0 : g.width) > 0 && (g == null ? void 0 : g.height) > 0, f();
13695
+ }), FA(() => r.value, (B) => {
13696
+ B && de(() => setTimeout(() => c(), 50));
13697
+ }), FA(() => t.templateData, async (B) => {
13698
+ r.value = (B == null ? void 0 : B.width) > 0 && (B == null ? void 0 : B.height) > 0, n.value = B;
13699
13699
  }, { deep: !0, immediate: !0 });
13700
- function f() {
13701
- var h, p;
13702
- const g = ((p = (h = t.templateData) == null ? void 0 : h.panels) == null ? void 0 : p[0]) || {};
13703
- if (!g || Object.keys(g).length === 0) {
13704
- n.value = { ...t.templateData };
13705
- return;
13706
- }
13707
- n.value = {
13708
- width: g.width || 0,
13709
- height: g.height || 0,
13710
- printWidth: g.printWidth || 0,
13711
- printHeight: g.printHeight || 0,
13712
- items: g.printElements || [],
13713
- ...t.templateData
13714
- };
13715
- }
13716
- function B(g) {
13717
- A.exposed = g || {}, A.exposeProxy = g || {};
13700
+ function f(B) {
13701
+ A.exposed = B || {}, A.exposeProxy = B || {};
13718
13702
  }
13719
- return (g, h) => {
13720
- const p = qu("loading");
13703
+ return (B, U) => {
13704
+ const g = qu("loading");
13721
13705
  return GA((V(), N("div", {
13722
13706
  ref_key: "templateDesignerRef",
13723
13707
  ref: a,
13724
13708
  class: _A(["template-designer", { "template-designer-border-top": i.value }]),
13725
13709
  style: AA({ height: "calc(100vh - " + (o.value + 1) + "px)" })
13726
13710
  }, [
13727
- r.value ? (V(), vA(cr($u(OR, { ...g.$attrs, ...t, ref: B }, g.$slots)), {
13711
+ r.value ? (V(), vA(cr($u(OR, { ...B.$attrs, ...t, ref: f }, B.$slots)), {
13728
13712
  key: 0,
13729
13713
  "template-info": n.value
13730
13714
  }, null, 8, ["template-info"])) : tA("", !0)
13731
13715
  ], 6)), [
13732
- [p, !r.value]
13716
+ [g, !r.value]
13733
13717
  ]);
13734
13718
  };
13735
13719
  }
13736
- }, Ka = /* @__PURE__ */ yA(WR, [["__scopeId", "data-v-dad1d3d0"]]);
13720
+ }, Ka = /* @__PURE__ */ yA(WR, [["__scopeId", "data-v-300f49ad"]]);
13737
13721
  Ka.install = (e) => {
13738
13722
  e.component(Ka.name || "TemplateDesigner", Ka);
13739
13723
  };