template-designer 0.10.2 → 0.10.4

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.
@@ -1153,7 +1153,7 @@ const j5 = dn([
1153
1153
  });
1154
1154
  var q5 = /* @__PURE__ */ _h(X5, [["__file", "badge.vue"]]);
1155
1155
  const $5 = Xp(q5);
1156
- var IV = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1156
+ var VV = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1157
1157
  function Av(e) {
1158
1158
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1159
1159
  }
@@ -1787,7 +1787,7 @@ const Mt = (e, A) => {
1787
1787
  ]);
1788
1788
  };
1789
1789
  }
1790
- }, rf = /* @__PURE__ */ Mt(bv, [["__scopeId", "data-v-16072986"]]);
1790
+ }, rf = /* @__PURE__ */ Mt(bv, [["__scopeId", "data-v-2556d9f8"]]);
1791
1791
  const Qv = { class: "property-layout-container" }, Nv = {
1792
1792
  key: 0,
1793
1793
  class: "property-item-wrapper full-width"
@@ -6908,7 +6908,7 @@ const _g = {
6908
6908
  AUTO_RESET: !1
6909
6909
  // 自动重置统计
6910
6910
  }
6911
- }, VV = [
6911
+ }, MV = [
6912
6912
  { label: "0°", value: 0 },
6913
6913
  { label: "90°", value: 90 },
6914
6914
  { label: "180°", value: 180 },
@@ -7359,9 +7359,9 @@ const gQ = /* @__PURE__ */ Mt(hQ, [["render", pQ]]), Xg = [
7359
7359
  ], qg = Xg.flatMap((e) => e.components);
7360
7360
  async function BQ(e) {
7361
7361
  try {
7362
- return (await ym(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-037d5d00.mjs"), "./props/rfid.js": () => import("./rfid-579b1765.mjs") }), `./props/${e}.js`)).default;
7362
+ return (await ym(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-f0ad7653.mjs"), "./props/rfid.js": () => import("./rfid-1de0f7ca.mjs") }), `./props/${e}.js`)).default;
7363
7363
  } catch {
7364
- return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-037d5d00.mjs")).default;
7364
+ return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-f0ad7653.mjs")).default;
7365
7365
  }
7366
7366
  }
7367
7367
  function mQ(e = {}, A = {}) {
@@ -13993,19 +13993,19 @@ const IT = { class: "label-designer" }, VT = { class: "toolbar" }, MT = { class:
13993
13993
  }, JT = ["data-item-id", "onMousedown"], jT = ["onMousedown"], KT = ["onMousedown"], _T = ["onMousedown"], GT = ["onMousedown"], zT = ["onMousedown"], YT = ["onMousedown"], XT = ["onMousedown"], qT = ["onMousedown"], $T = ["onMousedown"], AI = {
13994
13994
  class: "property-panel",
13995
13995
  tabindex: "0"
13996
- }, eI = { class: "property-panel-operate" }, tI = { class: "property-panel-title" }, nI = ["innerHTML"], rI = { class: "position-controls" }, iI = { class: "control-group" }, aI = { class: "number-input" }, oI = ["value"], sI = { class: "control-group" }, lI = { class: "number-input" }, cI = ["value"], uI = {
13996
+ }, eI = { class: "property-panel-header" }, tI = { class: "property-panel-operate" }, nI = { class: "property-panel-title" }, rI = ["innerHTML"], iI = { class: "position-controls" }, aI = { class: "control-group" }, oI = { class: "number-input" }, sI = ["value"], lI = { class: "control-group" }, cI = { class: "number-input" }, uI = ["value"], fI = {
13997
13997
  key: 0,
13998
13998
  class: "control-group"
13999
- }, fI = { class: "number-input" }, hI = ["value"], dI = {
13999
+ }, hI = { class: "number-input" }, dI = ["value"], pI = {
14000
14000
  key: 1,
14001
14001
  class: "control-group"
14002
- }, pI = { class: "number-input" }, gI = ["value"], BI = {
14002
+ }, gI = { class: "number-input" }, BI = ["value"], mI = {
14003
14003
  key: 2,
14004
14004
  class: "control-group"
14005
- }, mI = { class: "number-input" }, wI = { class: "rotation-display" }, vI = {
14005
+ }, wI = { class: "number-input" }, vI = { class: "rotation-display" }, UI = {
14006
14006
  key: 3,
14007
14007
  class: "control-group"
14008
- }, UI = { class: "switch-input" }, uc = 0.05, yI = {
14008
+ }, yI = { class: "switch-input" }, uc = 0.05, FI = {
14009
14009
  __name: "panels",
14010
14010
  props: {
14011
14011
  templateInfo: {
@@ -14805,45 +14805,47 @@ const IT = { class: "label-designer" }, VT = { class: "toolbar" }, MT = { class:
14805
14805
  vA("div", AI, [
14806
14806
  LA(C).length > 0 ? (xA(), DA(Ot, { key: 0 }, [
14807
14807
  vA("div", eI, [
14808
- ee(BA, {
14809
- type: "danger",
14810
- onClick: tA[2] || (tA[2] = (wA) => ce(LA(m)().id))
14811
- }, {
14812
- default: fe(() => [...tA[35] || (tA[35] = [
14813
- dr("删除", -1)
14814
- ])]),
14815
- _: 1
14816
- })
14817
- ]),
14818
- vA("h3", tI, [
14819
- tA[36] || (tA[36] = dr(" 属性设置 ", -1)),
14820
- (Be = Te(LA(m)().type)) != null && Be.desc ? (xA(), ft(qA, {
14821
- key: 0,
14822
- placement: "bottom",
14823
- "show-arrow": !0,
14824
- "raw-content": ""
14825
- }, {
14826
- content: fe(() => [
14827
- vA("p", {
14828
- style: { "max-width": "400px", margin: "0", "white-space": "pre-line" },
14829
- innerHTML: Te(LA(m)().type).desc
14830
- }, null, 8, nI)
14831
- ]),
14832
- default: fe(() => [
14833
- ee(re, { class: "help-icon" }, {
14834
- default: fe(() => [
14835
- ee(Ae)
14836
- ]),
14837
- _: 1
14838
- })
14839
- ]),
14840
- _: 1
14841
- })) : Le("", !0)
14808
+ vA("div", tI, [
14809
+ ee(BA, {
14810
+ type: "danger",
14811
+ onClick: tA[2] || (tA[2] = (wA) => ce(LA(m)().id))
14812
+ }, {
14813
+ default: fe(() => [...tA[35] || (tA[35] = [
14814
+ dr("删除", -1)
14815
+ ])]),
14816
+ _: 1
14817
+ })
14818
+ ]),
14819
+ vA("h3", nI, [
14820
+ tA[36] || (tA[36] = dr(" 属性设置 ", -1)),
14821
+ (Be = Te(LA(m)().type)) != null && Be.desc ? (xA(), ft(qA, {
14822
+ key: 0,
14823
+ placement: "bottom",
14824
+ "show-arrow": !0,
14825
+ "raw-content": ""
14826
+ }, {
14827
+ content: fe(() => [
14828
+ vA("p", {
14829
+ style: { "max-width": "400px", margin: "0", "white-space": "pre-line" },
14830
+ innerHTML: Te(LA(m)().type).desc
14831
+ }, null, 8, rI)
14832
+ ]),
14833
+ default: fe(() => [
14834
+ ee(re, { class: "help-icon" }, {
14835
+ default: fe(() => [
14836
+ ee(Ae)
14837
+ ]),
14838
+ _: 1
14839
+ })
14840
+ ]),
14841
+ _: 1
14842
+ })) : Le("", !0)
14843
+ ])
14842
14844
  ]),
14843
- vA("div", rI, [
14844
- vA("div", iI, [
14845
- vA("label", null, Zn(LA(m)().type === "line" ? "起点X:" : "X坐标:"), 1),
14846
- vA("div", aI, [
14845
+ vA("div", iI, [
14846
+ vA("div", aI, [
14847
+ vA("label", null, Zn(LA(m)().type === "line" ? "起点横坐标:" : "横坐标:"), 1),
14848
+ vA("div", oI, [
14847
14849
  vA("button", {
14848
14850
  onClick: tA[3] || (tA[3] = Se((wA) => LA(j)(wA, "x", -0.5), ["stop"]))
14849
14851
  }, "-"),
@@ -14857,15 +14859,15 @@ const IT = { class: "label-designer" }, VT = { class: "toolbar" }, MT = { class:
14857
14859
  }, ["stop"])),
14858
14860
  onWheel: tA[7] || (tA[7] = Se(() => {
14859
14861
  }, ["prevent"]))
14860
- }, null, 40, oI),
14862
+ }, null, 40, sI),
14861
14863
  vA("button", {
14862
14864
  onClick: tA[8] || (tA[8] = Se((wA) => LA(j)(wA, "x", 0.5), ["stop"]))
14863
14865
  }, "+")
14864
14866
  ])
14865
14867
  ]),
14866
- vA("div", sI, [
14867
- vA("label", null, Zn(LA(m)().type === "line" ? "起点Y:" : "Y坐标:"), 1),
14868
- vA("div", lI, [
14868
+ vA("div", lI, [
14869
+ vA("label", null, Zn(LA(m)().type === "line" ? "起点纵坐标:" : "纵坐标:"), 1),
14870
+ vA("div", cI, [
14869
14871
  vA("button", {
14870
14872
  onClick: tA[9] || (tA[9] = Se((wA) => LA(j)(wA, "y", -0.5), ["stop"]))
14871
14873
  }, "-"),
@@ -14879,15 +14881,15 @@ const IT = { class: "label-designer" }, VT = { class: "toolbar" }, MT = { class:
14879
14881
  }, ["stop"])),
14880
14882
  onWheel: tA[13] || (tA[13] = Se(() => {
14881
14883
  }, ["prevent"]))
14882
- }, null, 40, cI),
14884
+ }, null, 40, uI),
14883
14885
  vA("button", {
14884
14886
  onClick: tA[14] || (tA[14] = Se((wA) => LA(j)(wA, "y", 0.5), ["stop"]))
14885
14887
  }, "+")
14886
14888
  ])
14887
14889
  ]),
14888
- LA(m)().type !== "verline" ? (xA(), DA("div", uI, [
14890
+ LA(m)().type !== "verline" ? (xA(), DA("div", fI, [
14889
14891
  tA[37] || (tA[37] = vA("label", null, "宽度:", -1)),
14890
- vA("div", fI, [
14892
+ vA("div", hI, [
14891
14893
  vA("button", {
14892
14894
  onClick: tA[15] || (tA[15] = Se((wA) => LA(j)(wA, "width", -0.5, 1), ["stop"]))
14893
14895
  }, "-"),
@@ -14902,15 +14904,15 @@ const IT = { class: "label-designer" }, VT = { class: "toolbar" }, MT = { class:
14902
14904
  onBlur: tA[19] || (tA[19] = (wA) => $("width", wA.target.value)),
14903
14905
  onWheel: tA[20] || (tA[20] = Se(() => {
14904
14906
  }, ["prevent"]))
14905
- }, null, 40, hI),
14907
+ }, null, 40, dI),
14906
14908
  vA("button", {
14907
14909
  onClick: tA[21] || (tA[21] = Se((wA) => LA(j)(wA, "width", 0.5, 1), ["stop"]))
14908
14910
  }, "+")
14909
14911
  ])
14910
14912
  ])) : Le("", !0),
14911
- LA(m)().type !== "line" ? (xA(), DA("div", dI, [
14913
+ LA(m)().type !== "line" ? (xA(), DA("div", pI, [
14912
14914
  tA[38] || (tA[38] = vA("label", null, "高度:", -1)),
14913
- vA("div", pI, [
14915
+ vA("div", gI, [
14914
14916
  vA("button", {
14915
14917
  onClick: tA[22] || (tA[22] = Se((wA) => LA(j)(wA, "height", -0.5, 1), ["stop"]))
14916
14918
  }, "-"),
@@ -14925,27 +14927,27 @@ const IT = { class: "label-designer" }, VT = { class: "toolbar" }, MT = { class:
14925
14927
  onBlur: tA[26] || (tA[26] = (wA) => $("height", wA.target.value)),
14926
14928
  onWheel: tA[27] || (tA[27] = Se(() => {
14927
14929
  }, ["prevent"]))
14928
- }, null, 40, gI),
14930
+ }, null, 40, BI),
14929
14931
  vA("button", {
14930
14932
  onClick: tA[28] || (tA[28] = Se((wA) => LA(j)(wA, "height", 0.5, 1), ["stop"]))
14931
14933
  }, "+")
14932
14934
  ])
14933
14935
  ])) : Le("", !0),
14934
- _e(LA(m)().type) ? (xA(), DA("div", BI, [
14936
+ _e(LA(m)().type) ? (xA(), DA("div", mI, [
14935
14937
  tA[39] || (tA[39] = vA("label", null, "旋转:", -1)),
14936
- vA("div", mI, [
14938
+ vA("div", wI, [
14937
14939
  vA("button", {
14938
14940
  onClick: tA[29] || (tA[29] = Se((wA) => LA(G)(-1), ["stop"]))
14939
14941
  }, "-"),
14940
- vA("span", wI, Zn(LA(m)().props.rotation) + "°", 1),
14942
+ vA("span", vI, Zn(LA(m)().props.rotation) + "°", 1),
14941
14943
  vA("button", {
14942
14944
  onClick: tA[30] || (tA[30] = Se((wA) => LA(G)(1), ["stop"]))
14943
14945
  }, "+")
14944
14946
  ])
14945
14947
  ])) : Le("", !0),
14946
- LA(m)().type !== "line" ? (xA(), DA("div", vI, [
14948
+ LA(m)().type !== "line" ? (xA(), DA("div", UI, [
14947
14949
  tA[40] || (tA[40] = vA("label", null, "锁定宽高比:", -1)),
14948
- vA("div", UI, [
14950
+ vA("div", yI, [
14949
14951
  ee(le, {
14950
14952
  modelValue: LA(m)().props.lockAspectRatio,
14951
14953
  "onUpdate:modelValue": tA[31] || (tA[31] = (wA) => LA(m)().props.lockAspectRatio = wA),
@@ -14967,8 +14969,8 @@ const IT = { class: "label-designer" }, VT = { class: "toolbar" }, MT = { class:
14967
14969
  ]);
14968
14970
  };
14969
14971
  }
14970
- }, FI = /* @__PURE__ */ Mt(yI, [["__scopeId", "data-v-1cb9afe7"]]);
14971
- const CI = {
14972
+ }, CI = /* @__PURE__ */ Mt(FI, [["__scopeId", "data-v-8c4767e5"]]);
14973
+ const EI = {
14972
14974
  __name: "index",
14973
14975
  props: {
14974
14976
  templateData: {
@@ -15080,7 +15082,7 @@ const CI = {
15080
15082
  class: on(["template-designer", { "template-designer-border-top": o.value }]),
15081
15083
  style: Qe({ height: "calc(100vh - " + (a.value + 1) + "px)" })
15082
15084
  }, [
15083
- n.value ? (xA(), ft(bs(Oh(FI, { ...C.$attrs, ...t, ref: v }, C.$slots)), {
15085
+ n.value ? (xA(), ft(bs(Oh(CI, { ...C.$attrs, ...t, ref: v }, C.$slots)), {
15084
15086
  key: 0,
15085
15087
  "template-info": r.value
15086
15088
  }, null, 8, ["template-info"])) : Le("", !0)
@@ -15089,7 +15091,7 @@ const CI = {
15089
15091
  ]);
15090
15092
  };
15091
15093
  }
15092
- }, ys = /* @__PURE__ */ Mt(CI, [["__scopeId", "data-v-a3d9b11f"]]);
15094
+ }, ys = /* @__PURE__ */ Mt(EI, [["__scopeId", "data-v-a3d9b11f"]]);
15093
15095
  function Ze(e) {
15094
15096
  "@babel/helpers - typeof";
15095
15097
  return Ze = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(A) {
@@ -15176,7 +15178,7 @@ var qt = Uint8Array, Qn = Uint16Array, W0 = Int32Array, du = new qt([
15176
15178
  return { b: t, r };
15177
15179
  }, oB = aB(du, 2), sB = oB.b, Sh = oB.r;
15178
15180
  sB[28] = 258, Sh[258] = 28;
15179
- var lB = aB(pu, 0), EI = lB.b, op = lB.r, Rh = new Qn(32768);
15181
+ var lB = aB(pu, 0), bI = lB.b, op = lB.r, Rh = new Qn(32768);
15180
15182
  for (var nt = 0; nt < 32768; ++nt) {
15181
15183
  var ei = (nt & 43690) >> 1 | (nt & 21845) << 1;
15182
15184
  ei = (ei & 52428) >> 2 | (ei & 13107) << 2, ei = (ei & 61680) >> 4 | (ei & 3855) << 4, Rh[nt] = ((ei & 65280) >> 8 | (ei & 255) << 8) >> 1;
@@ -15211,7 +15213,7 @@ for (var nt = 280; nt < 288; ++nt)
15211
15213
  var Is = new qt(32);
15212
15214
  for (var nt = 0; nt < 32; ++nt)
15213
15215
  Is[nt] = 5;
15214
- var bI = /* @__PURE__ */ Br(wi, 9, 0), QI = /* @__PURE__ */ Br(wi, 9, 1), NI = /* @__PURE__ */ Br(Is, 5, 0), SI = /* @__PURE__ */ Br(Is, 5, 1), Hf = function(e) {
15216
+ var QI = /* @__PURE__ */ Br(wi, 9, 0), NI = /* @__PURE__ */ Br(wi, 9, 1), SI = /* @__PURE__ */ Br(Is, 5, 0), RI = /* @__PURE__ */ Br(Is, 5, 1), Hf = function(e) {
15215
15217
  for (var A = e[0], t = 1; t < e.length; ++t)
15216
15218
  e[t] > A && (A = e[t]);
15217
15219
  return A;
@@ -15225,7 +15227,7 @@ var bI = /* @__PURE__ */ Br(wi, 9, 0), QI = /* @__PURE__ */ Br(wi, 9, 1), NI = /
15225
15227
  return (e + 7) / 8 | 0;
15226
15228
  }, cB = function(e, A, t) {
15227
15229
  return (A == null || A < 0) && (A = 0), (t == null || t > e.length) && (t = e.length), new qt(e.subarray(A, t));
15228
- }, RI = [
15230
+ }, xI = [
15229
15231
  "unexpected EOF",
15230
15232
  "invalid block type",
15231
15233
  "invalid length/literal",
@@ -15242,11 +15244,11 @@ var bI = /* @__PURE__ */ Br(wi, 9, 0), QI = /* @__PURE__ */ Br(wi, 9, 1), NI = /
15242
15244
  "invalid zip data"
15243
15245
  // determined by unknown compression method
15244
15246
  ], tr = function(e, A, t) {
15245
- var n = new Error(A || RI[e]);
15247
+ var n = new Error(A || xI[e]);
15246
15248
  if (n.code = e, Error.captureStackTrace && Error.captureStackTrace(n, tr), !t)
15247
15249
  throw n;
15248
15250
  return n;
15249
- }, xI = function(e, A, t, n) {
15251
+ }, TI = function(e, A, t, n) {
15250
15252
  var r = e.length, i = n ? n.length : 0;
15251
15253
  if (!r || A.f && !A.l)
15252
15254
  return t || new qt(0);
@@ -15265,7 +15267,7 @@ var bI = /* @__PURE__ */ Br(wi, 9, 0), QI = /* @__PURE__ */ Br(wi, 9, 1), NI = /
15265
15267
  var m = $n(e, d + 1, 3);
15266
15268
  if (d += 3, m)
15267
15269
  if (m == 1)
15268
- p = QI, U = SI, v = 9, C = 5;
15270
+ p = NI, U = RI, v = 9, C = 5;
15269
15271
  else if (m == 2) {
15270
15272
  var D = $n(e, d, 31) + 257, k = $n(e, d + 10, 15) + 4, W = D + $n(e, d + 5, 31) + 1;
15271
15273
  d += 14;
@@ -15322,7 +15324,7 @@ var bI = /* @__PURE__ */ Br(wi, 9, 0), QI = /* @__PURE__ */ Br(wi, 9, 1), NI = /
15322
15324
  }
15323
15325
  var eA = U[Of(e, d) & sA], iA = eA >> 4;
15324
15326
  eA || tr(3), d += eA & 15;
15325
- var $ = EI[iA];
15327
+ var $ = bI[iA];
15326
15328
  if (iA > 3) {
15327
15329
  var J = pu[iA];
15328
15330
  $ += Of(e, d) & (1 << J) - 1, d += J;
@@ -15454,7 +15456,7 @@ var bI = /* @__PURE__ */ Br(wi, 9, 0), QI = /* @__PURE__ */ Br(wi, 9, 1), NI = /
15454
15456
  Vr(A, f, AA[_]), f += R[_], _ > 15 && (Vr(A, f, H[W] >> 5 & 127), f += H[W] >> 12);
15455
15457
  }
15456
15458
  } else
15457
- G = bI, Y = wi, K = NI, $ = Is;
15459
+ G = QI, Y = wi, K = SI, $ = Is;
15458
15460
  for (var W = 0; W < o; ++W) {
15459
15461
  var J = n[W];
15460
15462
  if (J > 255) {
@@ -15466,11 +15468,11 @@ var bI = /* @__PURE__ */ Br(wi, 9, 0), QI = /* @__PURE__ */ Br(wi, 9, 1), NI = /
15466
15468
  is(A, f, G[J]), f += Y[J];
15467
15469
  }
15468
15470
  return is(A, f, G[256]), f + Y[256];
15469
- }, TI = /* @__PURE__ */ new W0([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), fB = /* @__PURE__ */ new qt(0), II = function(e, A, t, n, r, i) {
15471
+ }, II = /* @__PURE__ */ new W0([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), fB = /* @__PURE__ */ new qt(0), VI = function(e, A, t, n, r, i) {
15470
15472
  var a = i.z || e.length, o = new qt(n + a + 5 * (1 + Math.ceil(a / 7e3)) + r), l = o.subarray(n, o.length - r), u = i.l, f = (i.r || 0) & 7;
15471
15473
  if (A) {
15472
15474
  f && (l[0] = i.r >> 3);
15473
- for (var d = TI[A - 1], w = d >> 13, p = d & 8191, U = (1 << t) - 1, v = i.p || new Qn(32768), C = i.h || new Qn(U + 1), B = Math.ceil(t / 3), m = 2 * B, Q = function(JA) {
15475
+ for (var d = II[A - 1], w = d >> 13, p = d & 8191, U = (1 << t) - 1, v = i.p || new Qn(32768), C = i.h || new Qn(U + 1), B = Math.ceil(t / 3), m = 2 * B, Q = function(JA) {
15474
15476
  return (e[JA] ^ e[JA + 1] << B ^ e[JA + 2] << m) & U;
15475
15477
  }, I = new W0(25e3), L = new Qn(288), D = new Qn(32), k = 0, W = 0, P = i.i || 0, R = 0, E = i.w || 0, y = 0; P + 2 < a; ++P) {
15476
15478
  var x = Q(P), M = P & 32767, j = C[x];
@@ -15534,37 +15536,37 @@ var bI = /* @__PURE__ */ Br(wi, 9, 0), QI = /* @__PURE__ */ Br(wi, 9, 1), NI = /
15534
15536
  return e %= 65521, A %= 65521, (e & 255) << 24 | (e & 65280) << 8 | (A & 255) << 8 | A >> 8;
15535
15537
  }
15536
15538
  };
15537
- }, VI = function(e, A, t, n, r) {
15539
+ }, MI = function(e, A, t, n, r) {
15538
15540
  if (!r && (r = { l: 1 }, A.dictionary)) {
15539
15541
  var i = A.dictionary.subarray(-32768), a = new qt(i.length + e.length);
15540
15542
  a.set(i), a.set(e, i.length), e = a, r.w = i.length;
15541
15543
  }
15542
- return II(e, A.level == null ? 6 : A.level, A.mem == null ? r.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(e.length))) * 1.5) : 20 : 12 + A.mem, t, n, r);
15544
+ return VI(e, A.level == null ? 6 : A.level, A.mem == null ? r.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(e.length))) * 1.5) : 20 : 12 + A.mem, t, n, r);
15543
15545
  }, dB = function(e, A, t) {
15544
15546
  for (; t; ++A)
15545
15547
  e[A] = t, t >>>= 8;
15546
- }, MI = function(e, A) {
15548
+ }, LI = function(e, A) {
15547
15549
  var t = A.level, n = t == 0 ? 0 : t < 6 ? 1 : t == 9 ? 3 : 2;
15548
15550
  if (e[0] = 120, e[1] = n << 6 | (A.dictionary && 32), e[1] |= 31 - (e[0] << 8 | e[1]) % 31, A.dictionary) {
15549
15551
  var r = hB();
15550
15552
  r.p(A.dictionary), dB(e, 2, r.d());
15551
15553
  }
15552
- }, LI = function(e, A) {
15554
+ }, kI = function(e, A) {
15553
15555
  return ((e[0] & 15) != 8 || e[0] >> 4 > 7 || (e[0] << 8 | e[1]) % 31) && tr(6, "invalid zlib data"), (e[1] >> 5 & 1) == +!A && tr(6, "invalid zlib data: " + (e[1] & 32 ? "need" : "unexpected") + " dictionary"), (e[1] >> 3 & 4) + 2;
15554
15556
  };
15555
15557
  function Th(e, A) {
15556
15558
  A || (A = {});
15557
15559
  var t = hB();
15558
15560
  t.p(e);
15559
- var n = VI(e, A, A.dictionary ? 6 : 2, 4);
15560
- return MI(n, A), dB(n, n.length - 4, t.d()), n;
15561
+ var n = MI(e, A, A.dictionary ? 6 : 2, 4);
15562
+ return LI(n, A), dB(n, n.length - 4, t.d()), n;
15561
15563
  }
15562
- function kI(e, A) {
15563
- return xI(e.subarray(LI(e, A && A.dictionary), -4), { i: 2 }, A && A.out, A && A.dictionary);
15564
+ function HI(e, A) {
15565
+ return TI(e.subarray(kI(e, A && A.dictionary), -4), { i: 2 }, A && A.out, A && A.dictionary);
15564
15566
  }
15565
- var HI = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), OI = 0;
15567
+ var OI = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), DI = 0;
15566
15568
  try {
15567
- HI.decode(fB, { stream: !0 }), OI = 1;
15569
+ OI.decode(fB, { stream: !0 }), DI = 1;
15568
15570
  } catch {
15569
15571
  }
15570
15572
  /** @license
@@ -15748,7 +15750,7 @@ function _t(e, A, t, n, r, i, a) {
15748
15750
  function gB(e) {
15749
15751
  var A, t = e.length, n = [1732584193, -271733879, -1732584194, 271733878];
15750
15752
  for (A = 64; A <= e.length; A += 64)
15751
- Pf(n, DI(e.substring(A - 64, A)));
15753
+ Pf(n, WI(e.substring(A - 64, A)));
15752
15754
  e = e.substring(A - 64);
15753
15755
  var r = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
15754
15756
  for (A = 0; A < e.length; A++)
@@ -15758,7 +15760,7 @@ function gB(e) {
15758
15760
  r[A] = 0;
15759
15761
  return r[14] = 8 * t, Pf(n, r), n;
15760
15762
  }
15761
- function DI(e) {
15763
+ function WI(e) {
15762
15764
  var A, t = [];
15763
15765
  for (A = 0; A < 64; A += 4)
15764
15766
  t[A >> 2] = e.charCodeAt(A) + (e.charCodeAt(A + 1) << 8) + (e.charCodeAt(A + 2) << 16) + (e.charCodeAt(A + 3) << 24);
@@ -15766,24 +15768,24 @@ function DI(e) {
15766
15768
  }
15767
15769
  Fs = de.atob.bind(de), Ih = de.btoa.bind(de);
15768
15770
  var up = "0123456789abcdef".split("");
15769
- function WI(e) {
15771
+ function ZI(e) {
15770
15772
  for (var A = "", t = 0; t < 4; t++)
15771
15773
  A += up[e >> 8 * t + 4 & 15] + up[e >> 8 * t & 15];
15772
15774
  return A;
15773
15775
  }
15774
- function ZI(e) {
15776
+ function PI(e) {
15775
15777
  return String.fromCharCode((255 & e) >> 0, (65280 & e) >> 8, (16711680 & e) >> 16, (4278190080 & e) >> 24);
15776
15778
  }
15777
15779
  function Vh(e) {
15778
- return gB(e).map(ZI).join("");
15780
+ return gB(e).map(PI).join("");
15779
15781
  }
15780
- var PI = function(e) {
15782
+ var JI = function(e) {
15781
15783
  for (var A = 0; A < e.length; A++)
15782
- e[A] = WI(e[A]);
15784
+ e[A] = ZI(e[A]);
15783
15785
  return e.join("");
15784
15786
  }(gB("hello")) != "5d41402abc4b2a76b9719d911017c592";
15785
15787
  function ci(e, A) {
15786
- if (PI) {
15788
+ if (JI) {
15787
15789
  var t = (65535 & e) + (65535 & A);
15788
15790
  return (e >> 16) + (A >> 16) + (t >> 16) << 16 | 65535 & t;
15789
15791
  }
@@ -17297,34 +17299,34 @@ var Bn = function(e, A) {
17297
17299
  }, hr = function(e) {
17298
17300
  var A = new wB(), t = te.internal.getHeight(e) || 0, n = te.internal.getWidth(e) || 0;
17299
17301
  return A.BBox = [0, 0, Number(we(n)), Number(we(t))], A;
17300
- }, JI = ut.__acroform__.setBit = function(e, A) {
17302
+ }, jI = ut.__acroform__.setBit = function(e, A) {
17301
17303
  if (e = e || 0, A = A || 0, isNaN(e) || isNaN(A))
17302
17304
  throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");
17303
17305
  return e |= 1 << A;
17304
- }, jI = ut.__acroform__.clearBit = function(e, A) {
17306
+ }, KI = ut.__acroform__.clearBit = function(e, A) {
17305
17307
  if (e = e || 0, A = A || 0, isNaN(e) || isNaN(A))
17306
17308
  throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");
17307
17309
  return e &= ~(1 << A);
17308
- }, KI = ut.__acroform__.getBit = function(e, A) {
17310
+ }, _I = ut.__acroform__.getBit = function(e, A) {
17309
17311
  if (isNaN(e) || isNaN(A))
17310
17312
  throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");
17311
17313
  return e & 1 << A ? 1 : 0;
17312
17314
  }, wt = ut.__acroform__.getBitForPdf = function(e, A) {
17313
17315
  if (isNaN(e) || isNaN(A))
17314
17316
  throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");
17315
- return KI(e, A - 1);
17317
+ return _I(e, A - 1);
17316
17318
  }, vt = ut.__acroform__.setBitForPdf = function(e, A) {
17317
17319
  if (isNaN(e) || isNaN(A))
17318
17320
  throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");
17319
- return JI(e, A - 1);
17321
+ return jI(e, A - 1);
17320
17322
  }, Ut = ut.__acroform__.clearBitForPdf = function(e, A) {
17321
17323
  if (isNaN(e) || isNaN(A))
17322
17324
  throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");
17323
- return jI(e, A - 1);
17324
- }, _I = ut.__acroform__.calculateCoordinates = function(e, A) {
17325
+ return KI(e, A - 1);
17326
+ }, GI = ut.__acroform__.calculateCoordinates = function(e, A) {
17325
17327
  var t = A.internal.getHorizontalCoordinate, n = A.internal.getVerticalCoordinate, r = e[0], i = e[1], a = e[2], o = e[3], l = {};
17326
17328
  return l.lowerLeft_X = t(r) || 0, l.lowerLeft_Y = n(i + o) || 0, l.upperRight_X = t(r + a) || 0, l.upperRight_Y = n(i) || 0, [Number(we(l.lowerLeft_X)), Number(we(l.lowerLeft_Y)), Number(we(l.upperRight_X)), Number(we(l.upperRight_Y))];
17327
- }, GI = function(e) {
17329
+ }, zI = function(e) {
17328
17330
  if (e.appearanceStreamContent)
17329
17331
  return e.appearanceStreamContent;
17330
17332
  if (e.V || e.DV) {
@@ -17425,20 +17427,20 @@ var Bn = function(e, A) {
17425
17427
  }, hc = function(e, A, t) {
17426
17428
  var n = A.scope.internal.getFont(A.fontName, A.fontStyle), r = A.scope.getStringUnitWidth(e, { font: n, fontSize: parseFloat(t), charSpace: 0 }) * parseFloat(t);
17427
17429
  return { height: A.scope.getStringUnitWidth("3", { font: n, fontSize: parseFloat(t), charSpace: 0 }) * parseFloat(t) * 1.5, width: r };
17428
- }, zI = { fields: [], xForms: [], acroFormDictionaryRoot: null, printedOut: !1, internal: null, isInitialized: !1 }, YI = function(e, A) {
17430
+ }, YI = { fields: [], xForms: [], acroFormDictionaryRoot: null, printedOut: !1, internal: null, isInitialized: !1 }, XI = function(e, A) {
17429
17431
  var t = { type: "reference", object: e };
17430
17432
  A.internal.getPageInfo(e.page).pageContext.annotations.find(function(n) {
17431
17433
  return n.type === t.type && n.object === t.object;
17432
17434
  }) === void 0 && A.internal.getPageInfo(e.page).pageContext.annotations.push(t);
17433
- }, XI = function(e, A) {
17435
+ }, qI = function(e, A) {
17434
17436
  for (var t in e)
17435
17437
  if (e.hasOwnProperty(t)) {
17436
17438
  var n = t, r = e[t];
17437
17439
  A.internal.newObjectDeferredBegin(r.objId, !0), Ze(r) === "object" && typeof r.putStream == "function" && r.putStream(), delete e[n];
17438
17440
  }
17439
- }, qI = function(e, A) {
17441
+ }, $I = function(e, A) {
17440
17442
  if (A.scope = e, e.internal !== void 0 && (e.internal.acroformPlugin === void 0 || e.internal.acroformPlugin.isInitialized === !1)) {
17441
- if (ir.FieldNum = 0, e.internal.acroformPlugin = JSON.parse(JSON.stringify(zI)), e.internal.acroformPlugin.acroFormDictionaryRoot)
17443
+ if (ir.FieldNum = 0, e.internal.acroformPlugin = JSON.parse(JSON.stringify(YI)), e.internal.acroformPlugin.acroFormDictionaryRoot)
17442
17444
  throw new Error("Exception while creating AcroformDictionary");
17443
17445
  P0 = e.internal.scaleFactor, e.internal.acroformPlugin.acroFormDictionaryRoot = new vB(), e.internal.acroformPlugin.acroFormDictionaryRoot.scope = e, e.internal.acroformPlugin.acroFormDictionaryRoot._eventID = e.internal.events.subscribe("postPutResources", function() {
17444
17446
  (function(t) {
@@ -17451,7 +17453,7 @@ var Bn = function(e, A) {
17451
17453
  for (var r in n)
17452
17454
  if (n.hasOwnProperty(r)) {
17453
17455
  var i = n[r];
17454
- i.objId = void 0, i.hasAnnotation && YI(i, t);
17456
+ i.objId = void 0, i.hasAnnotation && XI(i, t);
17455
17457
  }
17456
17458
  })(e);
17457
17459
  }), e.internal.events.subscribe("putCatalog", function() {
@@ -17466,8 +17468,8 @@ var Bn = function(e, A) {
17466
17468
  for (var a in n || (r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId, !0), r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()), n = n || r.internal.acroformPlugin.acroFormDictionaryRoot.Kids)
17467
17469
  if (n.hasOwnProperty(a)) {
17468
17470
  var o = n[a], l = [], u = o.Rect;
17469
- if (o.Rect && (o.Rect = _I(o.Rect, r)), r.internal.newObjectDeferredBegin(o.objId, !0), o.DA = te.createDefaultAppearanceStream(o), Ze(o) === "object" && typeof o.getKeyValueListForStream == "function" && (l = o.getKeyValueListForStream()), o.Rect = u, o.hasAppearanceStream && !o.appearanceStreamContent) {
17470
- var f = GI(o);
17471
+ if (o.Rect && (o.Rect = GI(o.Rect, r)), r.internal.newObjectDeferredBegin(o.objId, !0), o.DA = te.createDefaultAppearanceStream(o), Ze(o) === "object" && typeof o.getKeyValueListForStream == "function" && (l = o.getKeyValueListForStream()), o.Rect = u, o.hasAppearanceStream && !o.appearanceStreamContent) {
17472
+ var f = zI(o);
17471
17473
  l.push({ key: "AP", value: "<</N " + f + ">>" }), r.internal.acroformPlugin.xForms.push(f);
17472
17474
  }
17473
17475
  if (o.appearanceStreamContent) {
@@ -17490,7 +17492,7 @@ var Bn = function(e, A) {
17490
17492
  }
17491
17493
  r.internal.putStream({ additionalKeyValues: l, objectId: o.objId }), r.internal.out("endobj");
17492
17494
  }
17493
- i && XI(r.internal.acroformPlugin.xForms, r);
17495
+ i && qI(r.internal.acroformPlugin.xForms, r);
17494
17496
  })(t, e);
17495
17497
  }), e.internal.acroformPlugin.isInitialized = !0;
17496
17498
  }
@@ -17969,7 +17971,7 @@ Bn(Dc, ir), no.prototype.setAppearance = function(e) {
17969
17971
  }
17970
17972
  }, no.prototype.createOption = function(e) {
17971
17973
  var A = new Dc();
17972
- return A.Parent = this, A.optionName = e, this.Kids.push(A), $I.call(this.scope, A), A;
17974
+ return A.Parent = this, A.optionName = e, this.Kids.push(A), AV.call(this.scope, A), A;
17973
17975
  };
17974
17976
  var Fc = function() {
17975
17977
  Vt.call(this), this.fontName = "zapfdingbats", this.caption = "3", this.appearanceState = "On", this.value = "On", this.textAlign = "center", this.appearanceStreamContent = te.CheckBox.createAppearanceStream();
@@ -18109,8 +18111,8 @@ te.internal = { Bezier_C: 0.551915024494, calculateCross: function(e) {
18109
18111
  var A = 0;
18110
18112
  return Ze(e) === "object" && (A = dp(e.Rect[3])), A;
18111
18113
  };
18112
- var $I = ut.addField = function(e) {
18113
- if (qI(this, e), !(e instanceof ir))
18114
+ var AV = ut.addField = function(e) {
18115
+ if ($I(this, e), !(e instanceof ir))
18114
18116
  throw new Error("Invalid argument passed to jsPDF.addField.");
18115
18117
  var A;
18116
18118
  return (A = e).scope.internal.acroformPlugin.printedOut && (A.scope.internal.acroformPlugin.printedOut = !1, A.scope.internal.acroformPlugin.acroFormDictionaryRoot = null), A.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(A), e.page = e.scope.internal.getCurrentPageInfo().pageNumber, this;
@@ -18719,7 +18721,7 @@ function(e) {
18719
18721
  w.length > 0 && this.setTableHeaderRow(w), this.setFont(void 0, "normal"), t = !1;
18720
18722
  };
18721
18723
  }(he.API);
18722
- var yB = { italic: ["italic", "oblique", "normal"], oblique: ["oblique", "italic", "normal"], normal: ["normal", "oblique", "italic"] }, FB = ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded"], kh = UB(FB), CB = [100, 200, 300, 400, 500, 600, 700, 800, 900], AV = UB(CB);
18724
+ var yB = { italic: ["italic", "oblique", "normal"], oblique: ["oblique", "italic", "normal"], normal: ["normal", "oblique", "italic"] }, FB = ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded"], kh = UB(FB), CB = [100, 200, 300, 400, 500, 600, 700, 800, 900], eV = UB(CB);
18723
18725
  function Hh(e) {
18724
18726
  var A = e.family.replace(/"|'/g, "").toLowerCase(), t = function(i) {
18725
18727
  return yB[i = i || "normal"] ? i : "normal";
@@ -18751,12 +18753,12 @@ function pp(e, A, t, n) {
18751
18753
  if (e[A[r]])
18752
18754
  return e[A[r]];
18753
18755
  }
18754
- var eV = { "sans-serif": "helvetica", fixed: "courier", monospace: "courier", terminal: "courier", cursive: "times", fantasy: "times", serif: "times" }, gp = { caption: "times", icon: "times", menu: "times", "message-box": "times", "small-caption": "times", "status-bar": "times" };
18756
+ var tV = { "sans-serif": "helvetica", fixed: "courier", monospace: "courier", terminal: "courier", cursive: "times", fantasy: "times", serif: "times" }, gp = { caption: "times", icon: "times", menu: "times", "message-box": "times", "small-caption": "times", "status-bar": "times" };
18755
18757
  function Bp(e) {
18756
18758
  return [e.stretch, e.style, e.weight, e.family].join(" ");
18757
18759
  }
18758
- function tV(e, A, t) {
18759
- for (var n = (t = t || {}).defaultFontFamily || "times", r = Object.assign({}, eV, t.genericFontFamilies || {}), i = null, a = null, o = 0; o < A.length; ++o)
18760
+ function nV(e, A, t) {
18761
+ for (var n = (t = t || {}).defaultFontFamily || "times", r = Object.assign({}, tV, t.genericFontFamilies || {}), i = null, a = null, o = 0; o < A.length; ++o)
18760
18762
  if (r[(i = Hh(A[o])).family] && (i.family = r[i.family]), e.hasOwnProperty(i.family)) {
18761
18763
  a = e[i.family];
18762
18764
  break;
@@ -18784,7 +18786,7 @@ function tV(e, A, t) {
18784
18786
  return u[500];
18785
18787
  if (l === 500 && u[400])
18786
18788
  return u[400];
18787
- var f = AV[l], d = pp(u, CB, f, l < 400 ? -1 : 1);
18789
+ var f = eV[l], d = pp(u, CB, f, l < 400 ? -1 : 1);
18788
18790
  if (!d)
18789
18791
  throw new Error("Could not find a matching font-weight for value " + l);
18790
18792
  return d;
@@ -18795,7 +18797,7 @@ function tV(e, A, t) {
18795
18797
  function mp(e) {
18796
18798
  return e.trimLeft();
18797
18799
  }
18798
- function nV(e, A) {
18800
+ function rV(e, A) {
18799
18801
  for (var t = 0; t < e.length; ) {
18800
18802
  if (e.charAt(t) === A)
18801
18803
  return [e.substring(0, t), e.substring(t + 1)];
@@ -18803,7 +18805,7 @@ function nV(e, A) {
18803
18805
  }
18804
18806
  return null;
18805
18807
  }
18806
- function rV(e) {
18808
+ function iV(e) {
18807
18809
  var A = e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);
18808
18810
  return A === null ? null : [A[0], e.substring(A[0].length)];
18809
18811
  }
@@ -18976,10 +18978,10 @@ var dc, wp, vp, jf = ["times"];
18976
18978
  switch (HA = null, ve = (Ne = mp(Ne)).charAt(0)) {
18977
18979
  case '"':
18978
18980
  case "'":
18979
- HA = nV(Ne.substring(1), ve);
18981
+ HA = rV(Ne.substring(1), ve);
18980
18982
  break;
18981
18983
  default:
18982
- HA = rV(Ne);
18984
+ HA = iV(Ne);
18983
18985
  }
18984
18986
  if (HA === null || (At.push(HA[0]), (Ne = mp(HA[1])) !== "" && Ne.charAt(0) !== ","))
18985
18987
  return jf;
@@ -18988,7 +18990,7 @@ var dc, wp, vp, jf = ["times"];
18988
18990
  return At;
18989
18991
  }(VA);
18990
18992
  if (this.fontFaces) {
18991
- var jA = tV(RA(this.pdf, this.fontFaces), kA.map(function(ne) {
18993
+ var jA = nV(RA(this.pdf, this.fontFaces), kA.map(function(ne) {
18992
18994
  return { family: ne, stretch: "normal", weight: $A, style: pe };
18993
18995
  }));
18994
18996
  this.pdf.setFont(jA.ref.name, jA.ref.style);
@@ -20007,7 +20009,7 @@ function(e) {
20007
20009
  return f;
20008
20010
  };
20009
20011
  }(he.API);
20010
- var Za, pc, Up, yp, Fp, iV = function() {
20012
+ var Za, pc, Up, yp, Fp, aV = function() {
20011
20013
  var e, A, t;
20012
20014
  function n(i) {
20013
20015
  var a, o, l, u, f, d, w, p, U, v, C, B, m, Q;
@@ -20131,7 +20133,7 @@ var Za, pc, Up, yp, Fp, iV = function() {
20131
20133
  E++;
20132
20134
  }
20133
20135
  }
20134
- return i = kI(i), u.interlaceMethod == 1 ? (f(0, 0, 8, 8), f(4, 0, 8, 8), f(0, 4, 4, 8), f(2, 0, 4, 4), f(0, 2, 2, 4), f(1, 0, 2, 2), f(0, 1, 1, 2)) : f(0, 0, 1, 1), o;
20136
+ return i = HI(i), u.interlaceMethod == 1 ? (f(0, 0, 8, 8), f(4, 0, 8, 8), f(0, 4, 4, 8), f(2, 0, 4, 4), f(0, 2, 2, 4), f(1, 0, 2, 2), f(0, 1, 1, 2)) : f(0, 0, 1, 1), o;
20135
20137
  }, n.prototype.decodePalette = function() {
20136
20138
  var i, a, o, l, u, f, d, w, p;
20137
20139
  for (o = this.palette, f = this.transparency.indexed || [], u = new Uint8Array((f.length || 0) + o.length), l = 0, i = 0, a = d = 0, w = o.length; d < w; a = d += 3)
@@ -20243,7 +20245,7 @@ var Za, pc, Up, yp, Fp, iV = function() {
20243
20245
  * including animation and compression. It does not rely on any specific
20244
20246
  * underlying system, so should run in the browser, Node, or Plask.
20245
20247
  */
20246
- function aV(e) {
20248
+ function oV(e) {
20247
20249
  var A = 0;
20248
20250
  if (e[A++] !== 71 || e[A++] !== 73 || e[A++] !== 70 || e[A++] !== 56 || (e[A++] + 1 & 253) != 56 || e[A++] !== 97)
20249
20251
  throw new Error("Invalid GIF 87a/89a header.");
@@ -22749,7 +22751,7 @@ function Ep(e) {
22749
22751
  e.processPNG = function(w, p, U, v) {
22750
22752
  var C, B, m, Q, I, L, D, k, W, P, R, E, y, x, M, j = this.decode.FLATE_DECODE, G = "";
22751
22753
  if (this.__addimage__.isArrayBuffer(w) && (w = new Uint8Array(w)), this.__addimage__.isArrayBufferView(w)) {
22752
- if (w = (m = new iV(w)).imgData, B = m.bits, C = m.colorSpace, I = m.colors, [4, 6].indexOf(m.colorType) !== -1) {
22754
+ if (w = (m = new aV(w)).imgData, B = m.bits, C = m.colorSpace, I = m.colors, [4, 6].indexOf(m.colorType) !== -1) {
22753
22755
  if (m.bits === 8) {
22754
22756
  W = (k = m.pixelBitlength == 32 ? new Uint32Array(m.decodePixels().buffer) : m.pixelBitlength == 16 ? new Uint16Array(m.decodePixels().buffer) : new Uint8Array(m.decodePixels().buffer)).length, R = new Uint8Array(W * m.colors), P = new Uint8Array(W);
22755
22757
  var Y, K = m.pixelBitlength - m.bits;
@@ -22801,7 +22803,7 @@ function Ep(e) {
22801
22803
  };
22802
22804
  })(he.API), function(e) {
22803
22805
  e.processGIF89A = function(A, t, n, r) {
22804
- var i = new aV(A), a = i.width, o = i.height, l = [];
22806
+ var i = new oV(A), a = i.width, o = i.height, l = [];
22805
22807
  i.decodeAndBlitFrameRGBA(0, l);
22806
22808
  var u = { data: l, width: a, height: o }, f = new Kf(100).encode(u, 100);
22807
22809
  return e.processJPEG.call(this, f, t, n, r);
@@ -23076,7 +23078,7 @@ function(e) {
23076
23078
  */
23077
23079
  function(e) {
23078
23080
  function A() {
23079
- return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-497c9945.mjs")).catch(function(t) {
23081
+ return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-4ad3b636.mjs")).catch(function(t) {
23080
23082
  return Promise.reject(new Error("Could not load canvg: " + t));
23081
23083
  }).then(function(t) {
23082
23084
  return t.default ? t.default : t;
@@ -23496,12 +23498,12 @@ function(e) {
23496
23498
  var t;
23497
23499
  if (this.rawData = A, t = this.contents = new vi(A), this.contents.pos = 4, t.readString(4) === "ttcf")
23498
23500
  throw new Error("TTCF not supported.");
23499
- t.pos = 0, this.parse(), this.subset = new UV(this), this.registerTTF();
23501
+ t.pos = 0, this.parse(), this.subset = new yV(this), this.registerTTF();
23500
23502
  }
23501
23503
  return e.open = function(A) {
23502
23504
  return new e(A);
23503
23505
  }, e.prototype.parse = function() {
23504
- return this.directory = new oV(this.contents), this.head = new lV(this), this.name = new dV(this), this.cmap = new EB(this), this.toUnicode = {}, this.hhea = new cV(this), this.maxp = new pV(this), this.hmtx = new gV(this), this.post = new fV(this), this.os2 = new uV(this), this.loca = new vV(this), this.glyf = new BV(this), this.ascender = this.os2.exists && this.os2.ascender || this.hhea.ascender, this.decender = this.os2.exists && this.os2.decender || this.hhea.decender, this.lineGap = this.os2.exists && this.os2.lineGap || this.hhea.lineGap, this.bbox = [this.head.xMin, this.head.yMin, this.head.xMax, this.head.yMax];
23506
+ return this.directory = new sV(this.contents), this.head = new cV(this), this.name = new pV(this), this.cmap = new EB(this), this.toUnicode = {}, this.hhea = new uV(this), this.maxp = new gV(this), this.hmtx = new BV(this), this.post = new hV(this), this.os2 = new fV(this), this.loca = new UV(this), this.glyf = new mV(this), this.ascender = this.os2.exists && this.os2.ascender || this.hhea.ascender, this.decender = this.os2.exists && this.os2.decender || this.hhea.decender, this.lineGap = this.os2.exists && this.os2.lineGap || this.hhea.lineGap, this.bbox = [this.head.xMin, this.head.yMin, this.head.xMax, this.head.yMax];
23505
23507
  }, e.prototype.registerTTF = function() {
23506
23508
  var A, t, n, r, i;
23507
23509
  if (this.scaleFactor = 1e3 / this.head.unitsPerEm, this.bbox = (function() {
@@ -23588,7 +23590,7 @@ var ar, vi = function() {
23588
23590
  t = A[n], i.push(this.writeByte(t));
23589
23591
  return i;
23590
23592
  }, e;
23591
- }(), oV = function() {
23593
+ }(), sV = function() {
23592
23594
  var e;
23593
23595
  function A(t) {
23594
23596
  var n, r, i;
@@ -23609,9 +23611,9 @@ var ar, vi = function() {
23609
23611
  r += i.readUInt32();
23610
23612
  return 4294967295 & r;
23611
23613
  }, A;
23612
- }(), sV = {}.hasOwnProperty, Ur = function(e, A) {
23614
+ }(), lV = {}.hasOwnProperty, Ur = function(e, A) {
23613
23615
  for (var t in A)
23614
- sV.call(A, t) && (e[t] = A[t]);
23616
+ lV.call(A, t) && (e[t] = A[t]);
23615
23617
  function n() {
23616
23618
  this.constructor = e;
23617
23619
  }
@@ -23628,7 +23630,7 @@ ar = function() {
23628
23630
  return this.exists ? (this.file.contents.pos = this.offset, this.file.contents.read(this.length)) : null;
23629
23631
  }, e;
23630
23632
  }();
23631
- var lV = function(e) {
23633
+ var cV = function(e) {
23632
23634
  function A() {
23633
23635
  return A.__super__.constructor.apply(this, arguments);
23634
23636
  }
@@ -23732,14 +23734,14 @@ var lV = function(e) {
23732
23734
  var r, i;
23733
23735
  return n == null && (n = "macroman"), r = bp.encode(t, n), (i = new vi()).writeUInt16(0), i.writeUInt16(1), r.table = i.data.concat(r.subtable), r;
23734
23736
  }, A;
23735
- }(), cV = function(e) {
23737
+ }(), uV = function(e) {
23736
23738
  function A() {
23737
23739
  return A.__super__.constructor.apply(this, arguments);
23738
23740
  }
23739
23741
  return Ur(A, ar), A.prototype.tag = "hhea", A.prototype.parse = function(t) {
23740
23742
  return t.pos = this.offset, this.version = t.readInt(), this.ascender = t.readShort(), this.decender = t.readShort(), this.lineGap = t.readShort(), this.advanceWidthMax = t.readShort(), this.minLeftSideBearing = t.readShort(), this.minRightSideBearing = t.readShort(), this.xMaxExtent = t.readShort(), this.caretSlopeRise = t.readShort(), this.caretSlopeRun = t.readShort(), this.caretOffset = t.readShort(), t.pos += 8, this.metricDataFormat = t.readShort(), this.numberOfMetrics = t.readUInt16();
23741
23743
  }, A;
23742
- }(), uV = function(e) {
23744
+ }(), fV = function(e) {
23743
23745
  function A() {
23744
23746
  return A.__super__.constructor.apply(this, arguments);
23745
23747
  }
@@ -23762,7 +23764,7 @@ var lV = function(e) {
23762
23764
  }(), this.version > 1))
23763
23765
  return this.xHeight = t.readShort(), this.capHeight = t.readShort(), this.defaultChar = t.readShort(), this.breakChar = t.readShort(), this.maxContext = t.readShort();
23764
23766
  }, A;
23765
- }(), fV = function(e) {
23767
+ }(), hV = function(e) {
23766
23768
  function A() {
23767
23769
  return A.__super__.constructor.apply(this, arguments);
23768
23770
  }
@@ -23791,9 +23793,9 @@ var lV = function(e) {
23791
23793
  }).call(this);
23792
23794
  }
23793
23795
  }, A;
23794
- }(), hV = function(e, A) {
23796
+ }(), dV = function(e, A) {
23795
23797
  this.raw = e, this.length = e.length, this.platformID = A.platformID, this.encodingID = A.encodingID, this.languageID = A.languageID;
23796
- }, dV = function(e) {
23798
+ }, pV = function(e) {
23797
23799
  function A() {
23798
23800
  return A.__super__.constructor.apply(this, arguments);
23799
23801
  }
@@ -23802,7 +23804,7 @@ var lV = function(e) {
23802
23804
  for (t.pos = this.offset, t.readShort(), n = t.readShort(), l = t.readShort(), r = [], a = 0; 0 <= n ? a < n : a > n; a = 0 <= n ? ++a : --a)
23803
23805
  r.push({ platformID: t.readShort(), encodingID: t.readShort(), languageID: t.readShort(), nameID: t.readShort(), length: t.readShort(), offset: this.offset + l + t.readShort() });
23804
23806
  for (u = {}, a = d = 0, w = r.length; d < w; a = ++d)
23805
- i = r[a], t.pos = i.offset, f = t.readString(i.length), o = new hV(f, i), u[p = i.nameID] == null && (u[p] = []), u[i.nameID].push(o);
23807
+ i = r[a], t.pos = i.offset, f = t.readString(i.length), o = new dV(f, i), u[p = i.nameID] == null && (u[p] = []), u[i.nameID].push(o);
23806
23808
  this.strings = u, this.copyright = u[0], this.fontFamily = u[1], this.fontSubfamily = u[2], this.uniqueSubfamily = u[3], this.fontName = u[4], this.version = u[5];
23807
23809
  try {
23808
23810
  this.postscriptName = u[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g, "");
@@ -23811,14 +23813,14 @@ var lV = function(e) {
23811
23813
  }
23812
23814
  return this.trademark = u[7], this.manufacturer = u[8], this.designer = u[9], this.description = u[10], this.vendorUrl = u[11], this.designerUrl = u[12], this.license = u[13], this.licenseUrl = u[14], this.preferredFamily = u[15], this.preferredSubfamily = u[17], this.compatibleFull = u[18], this.sampleText = u[19];
23813
23815
  }, A;
23814
- }(), pV = function(e) {
23816
+ }(), gV = function(e) {
23815
23817
  function A() {
23816
23818
  return A.__super__.constructor.apply(this, arguments);
23817
23819
  }
23818
23820
  return Ur(A, ar), A.prototype.tag = "maxp", A.prototype.parse = function(t) {
23819
23821
  return t.pos = this.offset, this.version = t.readInt(), this.numGlyphs = t.readUInt16(), this.maxPoints = t.readUInt16(), this.maxContours = t.readUInt16(), this.maxCompositePoints = t.readUInt16(), this.maxComponentContours = t.readUInt16(), this.maxZones = t.readUInt16(), this.maxTwilightPoints = t.readUInt16(), this.maxStorage = t.readUInt16(), this.maxFunctionDefs = t.readUInt16(), this.maxInstructionDefs = t.readUInt16(), this.maxStackElements = t.readUInt16(), this.maxSizeOfInstructions = t.readUInt16(), this.maxComponentElements = t.readUInt16(), this.maxComponentDepth = t.readUInt16();
23820
23822
  }, A;
23821
- }(), gV = function(e) {
23823
+ }(), BV = function(e) {
23822
23824
  function A() {
23823
23825
  return A.__super__.constructor.apply(this, arguments);
23824
23826
  }
@@ -23842,7 +23844,7 @@ var lV = function(e) {
23842
23844
  }, A.prototype.forGlyph = function(t) {
23843
23845
  return t in this.metrics ? this.metrics[t] : { advance: this.metrics[this.metrics.length - 1].advance, lsb: this.leftSideBearings[t - this.metrics.length] };
23844
23846
  }, A;
23845
- }(), bB = [].slice, BV = function(e) {
23847
+ }(), bB = [].slice, mV = function(e) {
23846
23848
  function A() {
23847
23849
  return A.__super__.constructor.apply(this, arguments);
23848
23850
  }
@@ -23850,21 +23852,21 @@ var lV = function(e) {
23850
23852
  return this.cache = {};
23851
23853
  }, A.prototype.glyphFor = function(t) {
23852
23854
  var n, r, i, a, o, l, u, f, d, w;
23853
- return t in this.cache ? this.cache[t] : (a = this.file.loca, n = this.file.contents, r = a.indexOf(t), (i = a.lengthOf(t)) === 0 ? this.cache[t] = null : (n.pos = this.offset + r, o = (l = new vi(n.read(i))).readShort(), f = l.readShort(), w = l.readShort(), u = l.readShort(), d = l.readShort(), this.cache[t] = o === -1 ? new wV(l, f, w, u, d) : new mV(l, o, f, w, u, d), this.cache[t]));
23855
+ return t in this.cache ? this.cache[t] : (a = this.file.loca, n = this.file.contents, r = a.indexOf(t), (i = a.lengthOf(t)) === 0 ? this.cache[t] = null : (n.pos = this.offset + r, o = (l = new vi(n.read(i))).readShort(), f = l.readShort(), w = l.readShort(), u = l.readShort(), d = l.readShort(), this.cache[t] = o === -1 ? new vV(l, f, w, u, d) : new wV(l, o, f, w, u, d), this.cache[t]));
23854
23856
  }, A.prototype.encode = function(t, n, r) {
23855
23857
  var i, a, o, l, u;
23856
23858
  for (o = [], a = [], l = 0, u = n.length; l < u; l++)
23857
23859
  i = t[n[l]], a.push(o.length), i && (o = o.concat(i.encode(r)));
23858
23860
  return a.push(o.length), { table: o, offsets: a };
23859
23861
  }, A;
23860
- }(), mV = function() {
23862
+ }(), wV = function() {
23861
23863
  function e(A, t, n, r, i, a) {
23862
23864
  this.raw = A, this.numberOfContours = t, this.xMin = n, this.yMin = r, this.xMax = i, this.yMax = a, this.compound = !1;
23863
23865
  }
23864
23866
  return e.prototype.encode = function() {
23865
23867
  return this.raw.data;
23866
23868
  }, e;
23867
- }(), wV = function() {
23869
+ }(), vV = function() {
23868
23870
  function e(A, t, n, r, i) {
23869
23871
  var a, o;
23870
23872
  for (this.raw = A, this.xMin = t, this.yMin = n, this.xMax = r, this.yMax = i, this.compound = !0, this.glyphIDs = [], this.glyphOffsets = [], a = this.raw; o = a.readShort(), this.glyphOffsets.push(a.pos), this.glyphIDs.push(a.readUInt16()), 32 & o; )
@@ -23876,7 +23878,7 @@ var lV = function(e) {
23876
23878
  t.pos = this.glyphOffsets[A];
23877
23879
  return t.data;
23878
23880
  }, e;
23879
- }(), vV = function(e) {
23881
+ }(), UV = function(e) {
23880
23882
  function A() {
23881
23883
  return A.__super__.constructor.apply(this, arguments);
23882
23884
  }
@@ -23908,7 +23910,7 @@ var lV = function(e) {
23908
23910
  f[4 * d + 3] = 255 & r[d], f[4 * d + 2] = (65280 & r[d]) >> 8, f[4 * d + 1] = (16711680 & r[d]) >> 16, f[4 * d] = (4278190080 & r[d]) >> 24;
23909
23911
  return f;
23910
23912
  }, A;
23911
- }(), UV = function() {
23913
+ }(), yV = function() {
23912
23914
  function e(A) {
23913
23915
  this.font = A, this.subset = {}, this.unicodes = {}, this.next = 33;
23914
23916
  }
@@ -23978,12 +23980,12 @@ he.API.PDFObject = function() {
23978
23980
  return "" + t;
23979
23981
  }, A;
23980
23982
  }();
23981
- const yV = (e) => {
23983
+ const FV = (e) => {
23982
23984
  const A = (e == null ? void 0 : e.querySelectorAll("img")) || [], t = Array.from(A).map((n) => n.complete ? Promise.resolve() : new Promise((r) => {
23983
23985
  n.onload = n.onerror = r;
23984
23986
  }));
23985
23987
  return Promise.all(t);
23986
- }, FV = (e, A) => {
23988
+ }, CV = (e, A) => {
23987
23989
  const t = JSON.parse(JSON.stringify(e || {})), n = t.items || [], r = (i, a) => {
23988
23990
  if (Array.isArray(i)) {
23989
23991
  const l = typeof a == "string" ? a : " ";
@@ -24012,7 +24014,7 @@ const yV = (e) => {
24012
24014
  }
24013
24015
  }), t.items = n, t.printWidth = t.print_width || t.printWidth || 0, t.printHeight = t.print_height || t.printHeight || 0, t;
24014
24016
  };
24015
- async function MV(e, A, t = {}) {
24017
+ async function LV(e, A, t = {}) {
24016
24018
  const {
24017
24019
  page: n,
24018
24020
  scale: r,
@@ -24022,7 +24024,7 @@ async function MV(e, A, t = {}) {
24022
24024
  // 'pdf' | 'png'(png 支持透明背景)
24023
24025
  cacheInstance: l = !0
24024
24026
  // 可选:复用隐藏实例以提速(默认关闭)
24025
- } = t, u = FV(e, A), { default: f } = await Promise.resolve().then(() => iB), d = (n == null ? void 0 : n.widthMm) || u.printWidth || u.width || 100, w = (n == null ? void 0 : n.heightMm) || u.printHeight || u.height || 100, p = Math.max(1, Math.floor(gi(d))), U = Math.max(1, Math.floor(gi(w)));
24027
+ } = t, u = CV(e, A), { default: f } = await Promise.resolve().then(() => iB), d = (n == null ? void 0 : n.widthMm) || u.printWidth || u.width || 100, w = (n == null ? void 0 : n.heightMm) || u.printHeight || u.height || 100, p = Math.max(1, Math.floor(gi(d))), U = Math.max(1, Math.floor(gi(w)));
24026
24028
  let v, C;
24027
24029
  const B = "__td_renderer_singleton__";
24028
24030
  if (l && window[B]) {
@@ -24042,7 +24044,7 @@ async function MV(e, A, t = {}) {
24042
24044
  const m = v.querySelector("#design") || v;
24043
24045
  if (!m)
24044
24046
  throw new Error("未找到设计画布元素 #design");
24045
- await yV(m);
24047
+ await FV(m);
24046
24048
  const Q = Math.max(window.devicePixelRatio || 1, 2), I = Number(r) > 0 ? Number(r) : (i == null ? void 0 : i.scale) || Q * 2, L = Math.min(2.5, Math.max(1.5, I)), D = !!(i != null && i.transparent), k = await f(m, {
24047
24049
  scale: L,
24048
24050
  useCORS: !0,
@@ -24072,14 +24074,14 @@ async function MV(e, A, t = {}) {
24072
24074
  }
24073
24075
  }
24074
24076
  }
24075
- const CV = (e, A, t) => {
24077
+ const EV = (e, A, t) => {
24076
24078
  if (Array.isArray(e)) {
24077
24079
  const r = typeof A == "string" ? A : " ";
24078
24080
  return e.map((a) => t && t[a] != null ? String(t[a]) : "").filter((a) => a !== "").join(r);
24079
24081
  }
24080
24082
  const n = e;
24081
24083
  return n && t && t[n] != null ? String(t[n]) : "";
24082
- }, EV = (e) => {
24084
+ }, bV = (e) => {
24083
24085
  const A = e.querySelectorAll("*"), t = [
24084
24086
  "position",
24085
24087
  "left",
@@ -24170,7 +24172,7 @@ const CV = (e, A, t) => {
24170
24172
  const l = r.getPropertyValue(o);
24171
24173
  l && l !== "initial" && l !== "inherit" && l !== "normal" && l !== "auto" && l !== "0px" && (a += `${o}: ${l}; `);
24172
24174
  }), a && (e.style.cssText = n ? n + " " + a : a);
24173
- }, bV = (e) => {
24175
+ }, QV = (e) => {
24174
24176
  const A = e.querySelectorAll("*"), t = [
24175
24177
  "data-v-",
24176
24178
  "data-v-html",
@@ -24204,7 +24206,7 @@ const CV = (e, A, t) => {
24204
24206
  const l = o.getAttribute("style");
24205
24207
  l && (l.includes("javascript:") || l.includes("expression(")) && o.removeAttribute("style");
24206
24208
  });
24207
- }, QV = async (e) => {
24209
+ }, NV = async (e) => {
24208
24210
  const A = (e == null ? void 0 : e.querySelectorAll("img")) || [], t = (e == null ? void 0 : e.querySelectorAll(".qrcode-component")) || [], n = Array.from(A).map((i) => i.complete && i.naturalWidth > 0 ? Promise.resolve() : new Promise((a) => {
24209
24211
  const o = setTimeout(a, 3e3);
24210
24212
  i.onload = () => {
@@ -24233,13 +24235,13 @@ const CV = (e, A, t) => {
24233
24235
  }, e.onerror = () => {
24234
24236
  clearTimeout(t), A();
24235
24237
  };
24236
- }, NV = (e, A) => {
24238
+ }, SV = (e, A) => {
24237
24239
  const t = JSON.parse(JSON.stringify(e || {})), n = t.items || [];
24238
24240
  return n.forEach((r) => {
24239
24241
  const i = r.props || {}, a = i.FieldName, o = i.FieldConnector;
24240
24242
  if (!a)
24241
24243
  return;
24242
- const l = CV(a, o, A);
24244
+ const l = EV(a, o, A);
24243
24245
  switch (r.type) {
24244
24246
  case "text":
24245
24247
  i.Text = l;
@@ -24253,13 +24255,13 @@ const CV = (e, A, t) => {
24253
24255
  }
24254
24256
  }), t.items = n, t.printWidth = t.print_width || t.printWidth || 0, t.printHeight = t.print_height || t.printHeight || 0, t;
24255
24257
  };
24256
- async function LV(e, A = {}, t = {}) {
24258
+ async function kV(e, A = {}, t = {}) {
24257
24259
  const {
24258
24260
  scale: n = 1,
24259
24261
  width: r,
24260
24262
  height: i,
24261
24263
  cacheInstance: a = !0
24262
- } = t, o = A && Object.keys(A).length > 0 ? NV(e, A) : e, l = r || o.printWidth || o.width || 100, u = i || o.printHeight || o.height || 100, f = Math.max(1, Math.floor(gi(l) * n)), d = Math.max(1, Math.floor(gi(u) * n));
24264
+ } = t, o = A && Object.keys(A).length > 0 ? SV(e, A) : e, l = r || o.printWidth || o.width || 100, u = i || o.printHeight || o.height || 100, f = Math.max(1, Math.floor(gi(l) * n)), d = Math.max(1, Math.floor(gi(u) * n));
24263
24265
  let w, p;
24264
24266
  const U = "__td_html_renderer_singleton__";
24265
24267
  try {
@@ -24298,9 +24300,9 @@ async function LV(e, A = {}, t = {}) {
24298
24300
  const v = w.querySelector("#design");
24299
24301
  if (!v || v.children.length === 0)
24300
24302
  throw new Error("未找到设计画布元素 #design");
24301
- await QV(v), await new Promise((Q) => setTimeout(Q, 200));
24303
+ await NV(v), await new Promise((Q) => setTimeout(Q, 200));
24302
24304
  const C = v.cloneNode(!0);
24303
- if (bV(C), C.querySelectorAll(".resize-handle, .rotate-handle, .delete-btn, .component-selected, .component-current").forEach((Q) => {
24305
+ if (QV(C), C.querySelectorAll(".resize-handle, .rotate-handle, .delete-btn, .component-selected, .component-current").forEach((Q) => {
24304
24306
  Q.classList.contains("component-selected") || Q.classList.contains("component-current") ? Q.classList.remove("component-selected", "component-current") : Q.remove();
24305
24307
  }), C.querySelectorAll(".canvas-item").forEach((Q) => {
24306
24308
  const L = window.getComputedStyle(Q).transform;
@@ -24308,7 +24310,7 @@ async function LV(e, A = {}, t = {}) {
24308
24310
  const D = Q.style.cssText || "";
24309
24311
  Q.style.cssText = D + `; transform: ${L};`;
24310
24312
  }
24311
- }), EV(C), C.style.cssText = `
24313
+ }), bV(C), C.style.cssText = `
24312
24314
  width: ${f}px; height: ${d}px; position: relative;
24313
24315
  overflow: hidden; background: white; margin: 0; padding: 0;
24314
24316
  font-family: Arial, sans-serif; text-rendering: geometricPrecision;
@@ -24337,7 +24339,7 @@ async function LV(e, A = {}, t = {}) {
24337
24339
  function Cs(e, A = 96) {
24338
24340
  return Math.round(e * A / 25.4);
24339
24341
  }
24340
- async function SV(e, A = {}) {
24342
+ async function RV(e, A = {}) {
24341
24343
  if (!e || typeof e != "string")
24342
24344
  throw new Error("文本内容不能为空且必须是字符串");
24343
24345
  const n = { ...{
@@ -24406,19 +24408,19 @@ async function SV(e, A = {}) {
24406
24408
  throw new Error(`二维码生成失败: ${o.message}`);
24407
24409
  }
24408
24410
  }
24409
- async function kV(e, A = {}) {
24411
+ async function HV(e, A = {}) {
24410
24412
  if (!Array.isArray(e))
24411
24413
  throw new Error("文本参数必须是数组");
24412
24414
  if (e.length === 0)
24413
24415
  return [];
24414
- const t = e.map((n) => SV(n, A));
24416
+ const t = e.map((n) => RV(n, A));
24415
24417
  try {
24416
24418
  return await Promise.all(t);
24417
24419
  } catch (n) {
24418
24420
  throw new Error(`批量生成二维码失败: ${n.message}`);
24419
24421
  }
24420
24422
  }
24421
- async function HV(e, A = {}) {
24423
+ async function OV(e, A = {}) {
24422
24424
  if (!e || typeof e != "string")
24423
24425
  throw new Error("文本内容不能为空且必须是字符串");
24424
24426
  const n = { ...{
@@ -24468,7 +24470,7 @@ function QB(e, A, t) {
24468
24470
  }[t] || 1, o = Math.max(a, r);
24469
24471
  return o % 2 === 0 ? o + 1 : o;
24470
24472
  }
24471
- async function RV(e, A = {}) {
24473
+ async function xV(e, A = {}) {
24472
24474
  if (!e || typeof e != "string")
24473
24475
  throw new Error("文本内容不能为空且必须是字符串");
24474
24476
  const n = { ...{
@@ -24534,7 +24536,7 @@ async function RV(e, A = {}) {
24534
24536
  const d = new XMLSerializer().serializeToString(u);
24535
24537
  return n.returnDataUrl ? `data:image/svg+xml;base64,${btoa(decodeURIComponent(encodeURIComponent(d)))}` : d;
24536
24538
  } else {
24537
- const d = await xV(u, i, a, n.dpi), w = n.outputFormat === "jpeg" ? "image/jpeg" : "image/png", p = d.toDataURL(w, n.outputFormat === "jpeg" ? n.quality : void 0);
24539
+ const d = await TV(u, i, a, n.dpi), w = n.outputFormat === "jpeg" ? "image/jpeg" : "image/png", p = d.toDataURL(w, n.outputFormat === "jpeg" ? n.quality : void 0);
24538
24540
  if (n.returnDataUrl)
24539
24541
  return p;
24540
24542
  {
@@ -24546,7 +24548,7 @@ async function RV(e, A = {}) {
24546
24548
  throw new Error(`条形码生成失败: ${u.message}`);
24547
24549
  }
24548
24550
  }
24549
- async function xV(e, A, t, n = 300) {
24551
+ async function TV(e, A, t, n = 300) {
24550
24552
  return new Promise((r, i) => {
24551
24553
  const a = Math.max(3, Math.round(n / 96)), o = document.createElement("canvas"), l = o.getContext("2d", {
24552
24554
  willReadFrequently: !1,
@@ -24567,19 +24569,19 @@ async function xV(e, A, t, n = 300) {
24567
24569
  }, d.src = U;
24568
24570
  });
24569
24571
  }
24570
- async function OV(e, A = {}) {
24572
+ async function DV(e, A = {}) {
24571
24573
  if (!Array.isArray(e))
24572
24574
  throw new Error("文本参数必须是数组");
24573
24575
  if (e.length === 0)
24574
24576
  return [];
24575
- const t = e.map((n) => RV(n, A));
24577
+ const t = e.map((n) => xV(n, A));
24576
24578
  try {
24577
24579
  return await Promise.all(t);
24578
24580
  } catch (n) {
24579
24581
  throw new Error(`批量生成条形码失败: ${n.message}`);
24580
24582
  }
24581
24583
  }
24582
- function DV(e, A = {}) {
24584
+ function WV(e, A = {}) {
24583
24585
  if (!e || typeof e != "string")
24584
24586
  throw new Error("文本内容不能为空且必须是字符串");
24585
24587
  const n = { ...{
@@ -24629,17 +24631,17 @@ ys.install = (e) => {
24629
24631
  e.component(ys.name || "TemplateDesigner", ys);
24630
24632
  };
24631
24633
  export {
24632
- VV as R,
24634
+ MV as R,
24633
24635
  ys as T,
24634
24636
  Ze as _,
24635
- LV as a,
24636
- SV as b,
24637
- IV as c,
24638
- kV as d,
24639
- HV as e,
24640
- RV as f,
24637
+ kV as a,
24638
+ RV as b,
24639
+ VV as c,
24640
+ HV as d,
24641
+ OV as e,
24642
+ xV as f,
24641
24643
  Av as g,
24642
- OV as h,
24643
- DV as i,
24644
- MV as r
24644
+ DV as h,
24645
+ WV as i,
24646
+ LV as r
24645
24647
  };