alit-layout 1.0.24 → 1.0.26

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.
Files changed (2) hide show
  1. package/dist/index.es.js +425 -423
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as ee, openBlock as i, createElementBlock as u, Fragment as P, renderList as Z, createElementVNode as f, normalizeStyle as q, unref as x, toDisplayString as J, createCommentVNode as M, ref as Y, watch as Me, normalizeClass as oe, computed as N, createBlock as K, createTextVNode as Ue, createVNode as V, pushScopeId as He, popScopeId as Re, renderSlot as it, onMounted as Xe, nextTick as Je, withModifiers as Le, resolveComponent as Rt, resolveDynamicComponent as yt, normalizeProps as _t, guardReactiveProps as ft, withCtx as Ft, inject as Wt, withDirectives as gt, provide as Gt } from "vue";
1
+ import { defineComponent as ee, openBlock as i, createElementBlock as u, Fragment as P, renderList as Z, createElementVNode as f, normalizeStyle as q, unref as x, toDisplayString as J, createCommentVNode as D, ref as Y, watch as De, normalizeClass as oe, computed as A, createBlock as K, createTextVNode as Ue, createVNode as V, pushScopeId as He, popScopeId as Re, renderSlot as it, onMounted as Xe, nextTick as Je, withModifiers as Le, resolveComponent as Rt, resolveDynamicComponent as yt, normalizeProps as _t, guardReactiveProps as ft, withCtx as Ft, inject as Wt, withDirectives as gt, provide as Gt } from "vue";
2
2
  const rt = {
3
3
  // 选择题
4
4
  choice: "MULTIPLE_RADIO_QUESTION",
@@ -727,7 +727,7 @@ const rt = {
727
727
  // 综合题
728
728
  synthesis_a: "polymerFlag"
729
729
  }
730
- }, Dt = {
730
+ }, Mt = {
731
731
  article: {
732
732
  // 文案边框控制
733
733
  isShowBorder: "isShowBorder"
@@ -1357,7 +1357,7 @@ const rt = {
1357
1357
  {
1358
1358
  type: "radio",
1359
1359
  label: "边框显示控制",
1360
- key: Dt.article.isShowBorder,
1360
+ key: Mt.article.isShowBorder,
1361
1361
  option: [
1362
1362
  { name: "显示边框", code: !0 },
1363
1363
  { name: "隐藏边框", code: !1 }
@@ -1470,7 +1470,7 @@ const rt = {
1470
1470
  halfScoreTypeOption: oo,
1471
1471
  layoutMode: Xt,
1472
1472
  otherLayout: so,
1473
- otherLayoutKey: Dt,
1473
+ otherLayoutKey: Mt,
1474
1474
  paddDiff: Qt,
1475
1475
  pageMargin: jt,
1476
1476
  pagePadding: ct,
@@ -1610,7 +1610,7 @@ const rt = {
1610
1610
  };
1611
1611
  return { left: `${o * r + d}px`, ...p[s] };
1612
1612
  }, c = (o) => {
1613
- const s = (g[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, d = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, p = ["", "l", "r"].findIndex((A) => A === o);
1613
+ const s = (g[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, d = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, p = ["", "l", "r"].findIndex((N) => N === o);
1614
1614
  return { top: `${s * p + t.padding.top - 10}px`, width: "11px", ...d };
1615
1615
  };
1616
1616
  return (o, s) => {
@@ -1647,7 +1647,7 @@ const rt = {
1647
1647
  "data-xine": x(k).page_item + p
1648
1648
  }, null, 8, bo))), 128))
1649
1649
  ], 12, go),
1650
- o.currentPage % 2 ? M("", !0) : (i(), u("span", {
1650
+ o.currentPage % 2 ? D("", !0) : (i(), u("span", {
1651
1651
  key: 0,
1652
1652
  class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
1653
1653
  style: q({ right: `${o.padding.right - 12}px` })
@@ -1684,7 +1684,7 @@ const de = (e, t) => {
1684
1684
  emits: ["change", "input", "focus", "blur"],
1685
1685
  setup(e, { emit: t }) {
1686
1686
  const a = e, l = Y(a.value), n = Y(!1);
1687
- Me(() => a.value, () => {
1687
+ De(() => a.value, () => {
1688
1688
  l.value = a.value;
1689
1689
  });
1690
1690
  const c = (d) => {
@@ -1714,7 +1714,7 @@ const de = (e, t) => {
1714
1714
  onBlur: r
1715
1715
  }, null, 42, ko)
1716
1716
  ]),
1717
- d.unit ? (i(), u("span", Co, J(d.unit), 1)) : M("", !0)
1717
+ d.unit ? (i(), u("span", Co, J(d.unit), 1)) : D("", !0)
1718
1718
  ], 2));
1719
1719
  }
1720
1720
  }), $o = /* @__PURE__ */ ee({
@@ -1725,7 +1725,7 @@ const de = (e, t) => {
1725
1725
  },
1726
1726
  emits: ["change"],
1727
1727
  setup(e, { emit: t }) {
1728
- const a = e, l = N(() => ct[a.layout.mode][a.layout.paper]), n = N(() => ({
1728
+ const a = e, l = A(() => ct[a.layout.mode][a.layout.paper]), n = A(() => ({
1729
1729
  right: `${l.value.right + 97}px`,
1730
1730
  bottom: `${l.value.bottom - 25}px`
1731
1731
  }));
@@ -1750,7 +1750,7 @@ const de = (e, t) => {
1750
1750
  },
1751
1751
  emits: ["click"],
1752
1752
  setup(e, { emit: t }) {
1753
- const a = e, l = N(() => `#icon-${a.name}`);
1753
+ const a = e, l = A(() => `#icon-${a.name}`);
1754
1754
  return (n, c) => (i(), u("span", {
1755
1755
  class: "cursor-pointer inline-block p-2 rounded-full transition-all leading-none font-0",
1756
1756
  onClick: c[0] || (c[0] = (o) => t("click"))
@@ -1783,11 +1783,11 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1783
1783
  class: "px-0 py-0"
1784
1784
  }),
1785
1785
  Ue("启用前")
1786
- ])) : M("", !0),
1786
+ ])) : D("", !0),
1787
1787
  f("p", Eo, "ID:" + J(t.code), 1)
1788
1788
  ]));
1789
1789
  }
1790
- }), Do = ["innerHTML"], Be = /* @__PURE__ */ ee({
1790
+ }), Mo = ["innerHTML"], Be = /* @__PURE__ */ ee({
1791
1791
  __name: "index",
1792
1792
  props: {
1793
1793
  value: {},
@@ -1803,9 +1803,9 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1803
1803
  innerHTML: n.value,
1804
1804
  contenteditable: "",
1805
1805
  onBlur: l
1806
- }, null, 40, Do));
1806
+ }, null, 40, Mo));
1807
1807
  }
1808
- }), Mo = { class: "flex w-full" }, Ao = ["src", "data-xine"], No = { class: "flex-1 mx-4" }, Bo = { class: "flex items-center justify-center flex-wrap" }, Oo = {
1808
+ }), Do = { class: "flex w-full" }, Ao = ["src", "data-xine"], No = { class: "flex-1 mx-4" }, Bo = { class: "flex items-center justify-center flex-wrap" }, Oo = {
1809
1809
  key: 0,
1810
1810
  class: "flex mx-4 min-w-[70px]"
1811
1811
  }, zo = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "范围:", -1), Ho = {
@@ -1830,8 +1830,8 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1830
1830
  },
1831
1831
  emits: ["change"],
1832
1832
  setup(e, { emit: t }) {
1833
- const a = e, l = N(() => a.data.filter((o) => ![ve.another, ve.another_choice, ve.one_choice].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), n = N(() => a.data.filter((o) => [ve.another].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), c = N(() => a.layout.scoreAddStars === Ze.star.code ? a.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
1834
- return (o, s) => (i(), u("div", Mo, [
1833
+ const a = e, l = A(() => a.data.filter((o) => ![ve.another, ve.another_choice, ve.one_choice].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), n = A(() => a.data.filter((o) => [ve.another].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), c = A(() => a.layout.scoreAddStars === Ze.star.code ? a.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
1834
+ return (o, s) => (i(), u("div", Do, [
1835
1835
  f("img", {
1836
1836
  src: o.info.qrCode,
1837
1837
  alt: "QRCode",
@@ -1851,7 +1851,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1851
1851
  value: o.info.secTitle,
1852
1852
  style: q(o.fontConfig.halfTitleStyle),
1853
1853
  onChange: s[1] || (s[1] = (r) => t("change", { secTitle: r }))
1854
- }, null, 8, ["value", "style"])) : M("", !0),
1854
+ }, null, 8, ["value", "style"])) : D("", !0),
1855
1855
  f("div", Bo, [
1856
1856
  o.layout.examExtentFlag ? (i(), u("p", Oo, [
1857
1857
  zo,
@@ -1860,7 +1860,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1860
1860
  value: o.info.extent,
1861
1861
  onChange: s[2] || (s[2] = (r) => t("change", { extent: r }))
1862
1862
  }, null, 8, ["value"])
1863
- ])) : M("", !0),
1863
+ ])) : D("", !0),
1864
1864
  o.layout.examTimeFlag ? (i(), u("p", Ho, [
1865
1865
  Ro,
1866
1866
  V(et, {
@@ -1873,7 +1873,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1873
1873
  onChange: s[3] || (s[3] = (r) => t("change", { time: r }))
1874
1874
  }, null, 8, ["value"]),
1875
1875
  Wo
1876
- ])) : M("", !0),
1876
+ ])) : D("", !0),
1877
1877
  o.layout.authorFlag ? (i(), u("p", Go, [
1878
1878
  Yo,
1879
1879
  V(Be, {
@@ -1881,7 +1881,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1881
1881
  value: o.info.author,
1882
1882
  onChange: s[4] || (s[4] = (r) => t("change", { author: r }))
1883
1883
  }, null, 8, ["value"])
1884
- ])) : M("", !0),
1884
+ ])) : D("", !0),
1885
1885
  o.layout.reviewerFlag ? (i(), u("p", qo, [
1886
1886
  Qo,
1887
1887
  V(Be, {
@@ -1889,7 +1889,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1889
1889
  value: o.info.reviewer,
1890
1890
  onChange: s[5] || (s[5] = (r) => t("change", { reviewer: r }))
1891
1891
  }, null, 8, ["value"])
1892
- ])) : M("", !0),
1892
+ ])) : D("", !0),
1893
1893
  o.layout.totalScoreFlag ? (i(), u("p", Uo, [
1894
1894
  jo,
1895
1895
  c.value ? (i(), K(_e, {
@@ -1917,7 +1917,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1917
1917
  class: "p-0 -translate-y-[1px]"
1918
1918
  }, null, 8, ["name"])) : (i(), u("span", Jo, "分")),
1919
1919
  Zo
1920
- ], 64)) : M("", !0),
1920
+ ], 64)) : D("", !0),
1921
1921
  n.value ? (i(), u(P, { key: 5 }, [
1922
1922
  f("span", null, ";附加题:" + J(n.value), 1),
1923
1923
  c.value ? (i(), K(_e, {
@@ -1925,8 +1925,8 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1925
1925
  name: c.value,
1926
1926
  class: "p-0 -translate-y-[1px]"
1927
1927
  }, null, 8, ["name"])) : (i(), u("span", ea, "分"))
1928
- ], 64)) : M("", !0)
1929
- ])) : M("", !0)
1928
+ ], 64)) : D("", !0)
1929
+ ])) : D("", !0)
1930
1930
  ])
1931
1931
  ])
1932
1932
  ]));
@@ -2057,25 +2057,25 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2057
2057
  },
2058
2058
  emits: ["change"],
2059
2059
  setup(e, { emit: t }) {
2060
- const a = e, l = N(() => a.layout.column >= 3 && a.layout.seatType === xe.none);
2061
- return (n, c) => n.isBindFlag ? M("", !0) : (i(), u("div", ga, [
2060
+ const a = e, l = A(() => a.layout.column >= 3 && a.layout.seatType === xe.none);
2061
+ return (n, c) => n.isBindFlag ? D("", !0) : (i(), u("div", ga, [
2062
2062
  l.value ? (i(), u(P, { key: 0 }, [
2063
2063
  n.layout.seatType === x(xe).none ? (i(), K(vt, {
2064
2064
  key: 0,
2065
2065
  extent: n.info.extentInfo,
2066
2066
  onChange: c[0] || (c[0] = (o) => t("change", o))
2067
- }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (i(), K(wt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (i(), K(xt, { key: 2 })) : M("", !0)
2068
- ], 64)) : M("", !0),
2067
+ }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (i(), K(wt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (i(), K(xt, { key: 2 })) : D("", !0)
2068
+ ], 64)) : D("", !0),
2069
2069
  V(_a, {
2070
2070
  extent: n.info.extentInfo,
2071
2071
  onChange: c[1] || (c[1] = (o) => t("change", o))
2072
2072
  }, null, 8, ["extent"]),
2073
- l.value ? M("", !0) : (i(), u(P, { key: 1 }, [
2073
+ l.value ? D("", !0) : (i(), u(P, { key: 1 }, [
2074
2074
  n.layout.seatType === x(xe).none ? (i(), K(vt, {
2075
2075
  key: 0,
2076
2076
  extent: n.info.extentInfo,
2077
2077
  onChange: c[2] || (c[2] = (o) => t("change", o))
2078
- }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (i(), K(wt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (i(), K(xt, { key: 2 })) : M("", !0)
2078
+ }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (i(), K(wt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (i(), K(xt, { key: 2 })) : D("", !0)
2079
2079
  ], 64)),
2080
2080
  f("div", {
2081
2081
  class: "flex items-center justify-center flex-col flex-1 ml-4 border border-dashed",
@@ -2087,10 +2087,10 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2087
2087
  const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e) => (He("data-v-936c144e"), e = e(), Re(), e), Ca = {
2088
2088
  key: 0,
2089
2089
  class: "flex border mt-2 red_sheet"
2090
- }, $a = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Sa = { class: "flex-1 overflow-hidden" }, Ta = { class: "flex items-center flex-1 pl-2" }, Ia = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", null, "[", -1)), Pa = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", { class: "ml-4" }, "]", -1)), Da = [
2090
+ }, $a = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Sa = { class: "flex-1 overflow-hidden" }, Ta = { class: "flex items-center flex-1 pl-2" }, Ia = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", null, "[", -1)), Pa = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", { class: "ml-4" }, "]", -1)), Ma = [
2091
2091
  Ea,
2092
2092
  Pa
2093
- ], Ma = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("p", { class: "flex items-center border-l px-2 py-1" }, [
2093
+ ], Da = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("p", { class: "flex items-center border-l px-2 py-1" }, [
2094
2094
  /* @__PURE__ */ f("span", null, "正确填涂示例"),
2095
2095
  /* @__PURE__ */ f("span", { class: "w-8 bg-black ml-2 block_tips" })
2096
2096
  ], -1)), Aa = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("div", { class: "h-2" }, null, -1)), Na = /* @__PURE__ */ ee({
@@ -2100,7 +2100,7 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
2100
2100
  isBindFlag: { type: Boolean }
2101
2101
  },
2102
2102
  setup(e) {
2103
- const t = e, a = N(() => {
2103
+ const t = e, a = A(() => {
2104
2104
  const l = {
2105
2105
  [xe.none]: "",
2106
2106
  [xe.seat]: "座位号或",
@@ -2122,7 +2122,7 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
2122
2122
  class: "px-2 origin-left scale-75 tip_item"
2123
2123
  }, J(c), 1))), 128))
2124
2124
  ])
2125
- ])) : M("", !0),
2125
+ ])) : D("", !0),
2126
2126
  l.layout.lackFlag ? (i(), u("div", {
2127
2127
  key: 1,
2128
2128
  class: oe(["flex border text-sm red_sheet", l.layout.noteFlag ? "border-t-0" : "mt-2"])
@@ -2134,11 +2134,11 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
2134
2134
  f("span", {
2135
2135
  class: "flex items-center leading-4",
2136
2136
  "data-xine": x(k).lack
2137
- }, Da, 8, Fa)
2137
+ }, Ma, 8, Fa)
2138
2138
  ])
2139
2139
  ]),
2140
- Ma
2141
- ], 2)) : M("", !0),
2140
+ Da
2141
+ ], 2)) : D("", !0),
2142
2142
  Aa
2143
2143
  ], 64));
2144
2144
  }
@@ -2150,7 +2150,7 @@ const Ba = /* @__PURE__ */ de(Na, [["__scopeId", "data-v-936c144e"]]), kt = "ABC
2150
2150
  };
2151
2151
  return e.forEach((o) => c(o)), n.flat(5);
2152
2152
  };
2153
- function Mt(e) {
2153
+ function Dt(e) {
2154
2154
  if (e < 0 || e > 99)
2155
2155
  throw Error("下标超限");
2156
2156
  const t = "零一二三四五六七八九".split("");
@@ -2178,18 +2178,18 @@ const za = {
2178
2178
  data: {}
2179
2179
  },
2180
2180
  setup(e) {
2181
- const t = e, a = N(() => t.data.filter((l) => l.problemType));
2181
+ const t = e, a = A(() => t.data.filter((l) => l.problemType));
2182
2182
  return (l, n) => l.layout.scoreFlag ? (i(), u("ul", za, [
2183
2183
  Ha,
2184
2184
  (i(!0), u(P, null, Z(a.value, (c, o) => (i(), u("li", {
2185
2185
  key: c.id,
2186
2186
  class: "flex-1 flex flex-col border-l"
2187
2187
  }, [
2188
- f("p", Ra, J(x(Mt)(o)), 1),
2188
+ f("p", Ra, J(x(Dt)(o)), 1),
2189
2189
  Wa
2190
2190
  ]))), 128)),
2191
2191
  Ga
2192
- ])) : M("", !0);
2192
+ ])) : D("", !0);
2193
2193
  }
2194
2194
  }), qa = /* @__PURE__ */ ee({
2195
2195
  __name: "columnDom",
@@ -2202,20 +2202,20 @@ const za = {
2202
2202
  setup(e, { expose: t }) {
2203
2203
  const a = e, l = Y(), n = Y();
2204
2204
  t({ col: l, colView: n });
2205
- const c = N(() => {
2206
- const { top: r, width: d, height: p, left: A } = a.styleInfo;
2205
+ const c = A(() => {
2206
+ const { top: r, width: d, height: p, left: N } = a.styleInfo;
2207
2207
  return {
2208
2208
  top: `${parseFloat(r) - (a.currentColumn ? $e.top : 1)}px`,
2209
- left: `${parseFloat(A) - $e.left}px`,
2209
+ left: `${parseFloat(N) - $e.left}px`,
2210
2210
  width: `${parseFloat(d) + $e.left + $e.right}px`,
2211
2211
  height: `${parseFloat(p) + (a.currentColumn ? $e.top : 0) + $e.bottom}px`
2212
2212
  };
2213
- }), o = N(() => ({
2213
+ }), o = A(() => ({
2214
2214
  left: `${$e.left - 1}px`,
2215
2215
  top: `${$e.top - 1}px`,
2216
2216
  bottom: `${$e.bottom - 1}px`,
2217
2217
  right: `${$e.right - 1}px`
2218
- })), s = N(() => a.column < 3 || a.currentColumn % 3 === 1);
2218
+ })), s = A(() => a.column < 3 || a.currentColumn % 3 === 1);
2219
2219
  return (r, d) => (i(), u(P, null, [
2220
2220
  r.showColBorder ? (i(), u("div", {
2221
2221
  key: 0,
@@ -2226,7 +2226,7 @@ const za = {
2226
2226
  class: "absolute border border-black",
2227
2227
  style: q(o.value)
2228
2228
  }, null, 4)
2229
- ], 6)) : M("", !0),
2229
+ ], 6)) : D("", !0),
2230
2230
  f("div", {
2231
2231
  class: "absolute overflow-hidden",
2232
2232
  ref_key: "colView",
@@ -2288,7 +2288,7 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e)
2288
2288
  "data-xine": x(k).bind_line
2289
2289
  }, null, 8, Xa)
2290
2290
  ], 4))
2291
- ], 6)) : M("", !0);
2291
+ ], 6)) : D("", !0);
2292
2292
  }
2293
2293
  });
2294
2294
  const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5jdmxyN28zYWRl", el = "YWNhdnN2cmIydmcZm", Ee = "MC4wYWx1ZXJvcWhm", $t = "MC5sZGN2NzJ0ZXE0bw", ut = "MC5yYjk3NGY2OTcyOA", ht = "MC42cWRzbGM0c21jbw", tl = "MC45amVuM25vajRk", ol = "MC44YjJkb212djRu", al = ["img", "table", "svg"], ll = ["data-block", "data-xine"], nl = ["data-xine"], sl = ["data-xine"], il = { class: "absolute opacity-0 pointer-events-none" }, rl = /* @__PURE__ */ ee({
@@ -2298,7 +2298,7 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2298
2298
  layout: {}
2299
2299
  },
2300
2300
  setup(e) {
2301
- const t = e, a = ["right", "half_right", "wrong"], l = N(() => {
2301
+ const t = e, a = ["right", "half_right", "wrong"], l = A(() => {
2302
2302
  const n = t.item.score;
2303
2303
  return [n, Math.round(n / 2 * 100) / 100, 0];
2304
2304
  });
@@ -2333,8 +2333,8 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2333
2333
  static: { type: Boolean }
2334
2334
  },
2335
2335
  setup(e) {
2336
- const t = e, a = Y(), l = Y(!1), n = Y(!1), c = Y(!1), o = Y([]), s = N(() => t.layout.scoreAddStars === Ze.star.code);
2337
- Me(() => [t.item.score], () => r()), Xe(() => {
2336
+ const t = e, a = Y(), l = Y(!1), n = Y(!1), c = Y(!1), o = Y([]), s = A(() => t.layout.scoreAddStars === Ze.star.code);
2337
+ De(() => [t.item.score], () => r()), Xe(() => {
2338
2338
  r();
2339
2339
  });
2340
2340
  const r = () => {
@@ -2343,15 +2343,15 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2343
2343
  if (t.item.scoreLineType === je.custom)
2344
2344
  p = [[...t.item.customScore, 0]];
2345
2345
  else if (t.item.scoreStep)
2346
- p.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((A) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * A)).reverse());
2346
+ p.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((N) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * N)).reverse());
2347
2347
  else {
2348
- const A = a.value.offsetWidth, h = Ke[t.layout.scoreLineSize].value + 1;
2349
- l.value = A - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, l.value ? (p.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((F) => F && F * 10).reverse()), p.push([...Array(10).keys()].reverse()), c.value = !0) : p.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
2348
+ const N = a.value.offsetWidth, h = Ke[t.layout.scoreLineSize].value + 1;
2349
+ l.value = N - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, l.value ? (p.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((F) => F && F * 10).reverse()), p.push([...Array(10).keys()].reverse()), c.value = !0) : p.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
2350
2350
  }
2351
- t.item.hasHalfScore && p.push([0.5]), o.value = p, n.value = !!p.flat().find((A) => `${A}`.length > 3);
2351
+ t.item.hasHalfScore && p.push([0.5]), o.value = p, n.value = !!p.flat().find((N) => `${N}`.length > 3);
2352
2352
  });
2353
2353
  }, d = (p) => t.item.hasHalfScore ? [k.score_half, k.score_base, k.score_tenbit][o.value.length - p - 1] : [k.score_base, k.score_tenbit][o.value.length - p - 1];
2354
- return (p, A) => p.layout.handReadFlag ? (i(), u(P, { key: 0 }, [
2354
+ return (p, N) => p.layout.handReadFlag ? (i(), u(P, { key: 0 }, [
2355
2355
  p.layout.simpleScoreBarFlag && !p.static ? (i(), K(rl, {
2356
2356
  key: 0,
2357
2357
  item: p.item,
@@ -2381,11 +2381,11 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2381
2381
  class: "px-0 py-0 -translate-y-[1px]",
2382
2382
  name: p.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
2383
2383
  width: n.value ? 0.9 : 1.2
2384
- }, null, 8, ["name", "width"])) : M("", !0)
2384
+ }, null, 8, ["name", "width"])) : D("", !0)
2385
2385
  ], 12, ul))), 256))
2386
2386
  ], 8, dl))), 256))
2387
2387
  ], 10, cl))
2388
- ], 64)) : M("", !0);
2388
+ ], 64)) : D("", !0);
2389
2389
  }
2390
2390
  }), Nt = (e) => (He("data-v-a8dbd3b0"), e = e(), Re(), e), hl = ["data-xine"], pl = /* @__PURE__ */ Nt(() => /* @__PURE__ */ f("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), ml = /* @__PURE__ */ Nt(() => /* @__PURE__ */ f("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), yl = /* @__PURE__ */ ee({
2391
2391
  __name: "writeScore",
@@ -2444,7 +2444,7 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2444
2444
  }, Cl = { class: "flex flex-wrap" }, $l = { key: 0 }, Sl = {
2445
2445
  key: 1,
2446
2446
  class: "indent-2"
2447
- }, Tl = { key: 0 }, Il = { key: 0 }, Ll = { key: 1 }, Fl = ["data-block", "data-xine"], El = /* @__PURE__ */ wl(() => /* @__PURE__ */ f("span", null, "我选答的题目是:", -1)), Pl = { class: "flex items-center" }, Dl = ["data-xine"], Ml = /* @__PURE__ */ ee({
2447
+ }, Tl = { key: 0 }, Il = { key: 0 }, Ll = { key: 1 }, Fl = ["data-block", "data-xine"], El = /* @__PURE__ */ wl(() => /* @__PURE__ */ f("span", null, "我选答的题目是:", -1)), Pl = { class: "flex items-center" }, Ml = ["data-xine"], Dl = /* @__PURE__ */ ee({
2448
2448
  __name: "index",
2449
2449
  props: {
2450
2450
  item: {},
@@ -2455,7 +2455,7 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2455
2455
  },
2456
2456
  emits: ["click", "dbclick"],
2457
2457
  setup(e, { emit: t }) {
2458
- const a = e, l = N(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.filter((s) => s.problemType) : null), n = N(() => [ve.another_choice].includes(a.item.problemType)), c = N(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.length : [...new Set(Oa(a.item.rawChildren.filter((s) => s.problemType), "sub").flat().map((s) => (s || "").split(".")[0]))].length), o = N(() => [...new Set(a.item.rawChildren.map((s) => [...new Set(s.sub.map((r) => r.split(".")[0]))]).map((s) => s.length > 1 ? `${s[0]}-${s[s.length - 1]}` : s[0]))]);
2458
+ const a = e, l = A(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.filter((s) => s.problemType) : null), n = A(() => [ve.another_choice].includes(a.item.problemType)), c = A(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.length : [...new Set(Oa(a.item.rawChildren.filter((s) => s.problemType), "sub").flat().map((s) => (s || "").split(".")[0]))].length), o = A(() => [...new Set(a.item.rawChildren.map((s) => [...new Set(s.sub.map((r) => r.split(".")[0]))]).map((s) => s.length > 1 ? `${s[0]}-${s[s.length - 1]}` : s[0]))]);
2459
2459
  return (s, r) => s.item.problemType ? (i(), u("div", {
2460
2460
  key: 1,
2461
2461
  class: oe(["flex items-baseline relative headline_item", s.showColBorder && "pl-2 mx-1 z-2", !s.isFirst && "headline_view"]),
@@ -2464,12 +2464,12 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2464
2464
  "data-block": x(ke),
2465
2465
  onDblclick: r[3] || (r[3] = Le((d) => t("dbclick", s.item), ["stop"]))
2466
2466
  }, [
2467
- !s.layout.listIndexFlag && s.item.sub ? (i(), u("span", kl, J(x(Mt)(s.item.sub - 1)) + "、", 1)) : M("", !0),
2467
+ !s.layout.listIndexFlag && s.item.sub ? (i(), u("span", kl, J(x(Dt)(s.item.sub - 1)) + "、", 1)) : D("", !0),
2468
2468
  f("div", null, [
2469
2469
  f("div", Cl, [
2470
2470
  f("span", null, J(s.item.name), 1),
2471
- s.item.desc ? (i(), u("span", $l, "(" + J(s.item.desc) + ")", 1)) : M("", !0),
2472
- s.layout.scoreTipFlag ? (i(), u("span", Sl, "(共" + J(c.value) + "题,共" + J(s.item.totalScore) + "分)", 1)) : M("", !0)
2471
+ s.item.desc ? (i(), u("span", $l, "(" + J(s.item.desc) + ")", 1)) : D("", !0),
2472
+ s.layout.scoreTipFlag ? (i(), u("span", Sl, "(共" + J(c.value) + "题,共" + J(s.item.totalScore) + "分)", 1)) : D("", !0)
2473
2473
  ]),
2474
2474
  l.value || n.value ? (i(), u("div", Tl, [
2475
2475
  l.value ? (i(), u("p", Il, "请在以下" + J(s.item.rawChildren.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (i(), u("p", Ll, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
@@ -2484,10 +2484,10 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2484
2484
  f("span", {
2485
2485
  class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
2486
2486
  "data-xine": x(k).fill
2487
- }, null, 8, Dl)
2487
+ }, null, 8, Ml)
2488
2488
  ]))), 256))
2489
2489
  ], 8, Fl)
2490
- ])) : M("", !0)
2490
+ ])) : D("", !0)
2491
2491
  ])
2492
2492
  ], 42, xl)) : (i(), K(vl, {
2493
2493
  key: 0,
@@ -2498,7 +2498,7 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2498
2498
  }, null, 8, ["class", "item"]));
2499
2499
  }
2500
2500
  });
2501
- const St = /* @__PURE__ */ de(Ml, [["__scopeId", "data-v-257ae24a"]]), Al = {};
2501
+ const St = /* @__PURE__ */ de(Dl, [["__scopeId", "data-v-257ae24a"]]), Al = {};
2502
2502
  function Nl(e, t) {
2503
2503
  return null;
2504
2504
  }
@@ -2540,7 +2540,7 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
2540
2540
  layout: {}
2541
2541
  },
2542
2542
  setup(e) {
2543
- const t = e, a = N(() => ({
2543
+ const t = e, a = A(() => ({
2544
2544
  width: `${Ie[t.layout.fillSize].value + 1}px`,
2545
2545
  height: `${Ie[t.layout.fillSize].height + 1}px`
2546
2546
  }));
@@ -2598,7 +2598,7 @@ const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-x
2598
2598
  showScoreCn: { type: Boolean }
2599
2599
  },
2600
2600
  setup(e) {
2601
- const t = e, a = N(() => t.layout.scoreAddStars === Ze.star.code);
2601
+ const t = e, a = A(() => t.layout.scoreAddStars === Ze.star.code);
2602
2602
  return (l, n) => l.layout.handReadFlag ? (i(), u("div", {
2603
2603
  key: 0,
2604
2604
  class: "score_fill flex items-center",
@@ -2613,8 +2613,8 @@ const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-x
2613
2613
  name: l.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
2614
2614
  width: 1.2
2615
2615
  }, null, 8, ["name"])) : (i(), u("span", nn, "分"))
2616
- ])) : M("", !0)
2617
- ], 8, an)) : M("", !0);
2616
+ ])) : D("", !0)
2617
+ ], 8, an)) : D("", !0);
2618
2618
  }
2619
2619
  }), rn = ["data-xine"], cn = /* @__PURE__ */ ee({
2620
2620
  __name: "sheet",
@@ -2635,7 +2635,7 @@ const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-x
2635
2635
  item: a.item,
2636
2636
  layout: a.layout,
2637
2637
  showScoreCn: a.layout.fillScoreFlag
2638
- }, null, 8, ["item", "layout", "showScoreCn"])) : M("", !0)
2638
+ }, null, 8, ["item", "layout", "showScoreCn"])) : D("", !0)
2639
2639
  ], 64));
2640
2640
  }
2641
2641
  }), dn = {};
@@ -2653,7 +2653,7 @@ const hn = /* @__PURE__ */ de(dn, [["render", un]]), pn = ["data-block"], mn = {
2653
2653
  return (t, a) => (i(), u("div", {
2654
2654
  class: oe(["w-full min-h-[5rem] pt-2", !t.isFirst && "border-t"])
2655
2655
  }, [
2656
- t.item.chunk ? M("", !0) : (i(), u("div", {
2656
+ t.item.chunk ? D("", !0) : (i(), u("div", {
2657
2657
  key: 0,
2658
2658
  class: "flex items-center",
2659
2659
  "data-block": x(ke)
@@ -2707,47 +2707,47 @@ const Ln = /* @__PURE__ */ de(Tn, [["render", In]]), Fn = {};
2707
2707
  function En(e, t) {
2708
2708
  return null;
2709
2709
  }
2710
- const Pn = /* @__PURE__ */ de(Fn, [["render", En]]), Dn = {};
2711
- function Mn(e, t) {
2710
+ const Pn = /* @__PURE__ */ de(Fn, [["render", En]]), Mn = {};
2711
+ function Dn(e, t) {
2712
2712
  return null;
2713
2713
  }
2714
- const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn = ["data-block"], On = { class: "flex-1 flex justify-end overflow-hidden" }, zn = ["data-block", "data-guide"], Hn = ["data-block", "data-size"], Rn = ["data-block"], Wn = /* @__PURE__ */ ee({
2714
+ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn = ["data-block"], On = { class: "flex-1 flex justify-end overflow-hidden" }, zn = ["data-block", "data-guide"], Hn = ["data-block", "data-size"], Rn = ["data-block"], Wn = /* @__PURE__ */ ee({
2715
2715
  __name: "sheet",
2716
2716
  props: {
2717
2717
  item: {},
2718
2718
  layout: {}
2719
2719
  },
2720
2720
  setup(e) {
2721
- const t = e, a = Y(0), l = Y({}), n = Y(), c = Y(), o = Y([]), s = N(() => {
2722
- const h = Math.max((t.item.endAnswerLen || parseInt(t.item.style[y[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, A.value.length, 0);
2721
+ const t = e, a = Y(0), l = Y({}), n = Y(), c = Y(), o = Y([]), s = A(() => {
2722
+ const h = Math.max((t.item.endAnswerLen || parseInt(t.item.style[y[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, N.value.length, 0);
2723
2723
  return h ? Math.ceil(h / (a.value || h)) : 0;
2724
- }), r = N(() => parseInt(t.item.style[y[t.layout.mode].art_b])), d = N(() => ({
2724
+ }), r = A(() => parseInt(t.item.style[y[t.layout.mode].art_b])), d = A(() => ({
2725
2725
  width: `${a.value * r.value}px`,
2726
2726
  height: `${r.value}px`
2727
- })), p = N(() => ({
2727
+ })), p = A(() => ({
2728
2728
  width: `${r.value}px`
2729
- })), A = N(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
2729
+ })), N = A(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
2730
2730
  return Xe(() => {
2731
2731
  Je(() => {
2732
2732
  a.value = Math.floor(n.value.offsetWidth / r.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
2733
2733
  if (!n.value)
2734
2734
  return;
2735
- const $ = n.value.getBoundingClientRect(), H = c.value[0].getBoundingClientRect();
2735
+ const T = n.value.getBoundingClientRect(), B = c.value[0].getBoundingClientRect();
2736
2736
  l.value = {
2737
- left: `${H.left - $.left}px`,
2738
- top: `${H.top - $.top}px`
2737
+ left: `${B.left - T.left}px`,
2738
+ top: `${B.top - T.top}px`
2739
2739
  };
2740
2740
  }, 20);
2741
2741
  });
2742
2742
  const h = parseInt(t.item.style[y[t.layout.mode].art_c]), F = t.item.style[y[t.layout.mode].art_e], Q = Math.floor(h / F), G = Math.round(Q / (t.item.style[y[t.layout.mode].art_d] || 1) - 0.01) * F;
2743
- o.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1, Q) - 1 || 0).keys()].map(($) => ($ + 1) * G).concat(h / F < 2 ? F : h).filter(($) => $);
2743
+ o.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1, Q) - 1 || 0).keys()].map((T) => (T + 1) * G).concat(h / F < 2 ? F : h).filter((T) => T);
2744
2744
  }), (h, F) => (i(), u("div", {
2745
2745
  class: "w-full relative min-h-[10rem]",
2746
2746
  ref_key: "view",
2747
2747
  ref: n,
2748
2748
  "data-viewid": h.item.id
2749
2749
  }, [
2750
- h.item.chunk ? M("", !0) : (i(), u("div", {
2750
+ h.item.chunk ? D("", !0) : (i(), u("div", {
2751
2751
  key: 0,
2752
2752
  class: "flex items-center mt-1 mb-4",
2753
2753
  "data-block": x(ke)
@@ -2765,14 +2765,14 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2765
2765
  data: h.item.beforeArt,
2766
2766
  "data-bart": h.item.id,
2767
2767
  class: "indent-[2em]"
2768
- }, null, 8, ["data", "data-bart"])) : M("", !0),
2768
+ }, null, 8, ["data", "data-bart"])) : D("", !0),
2769
2769
  h.item.beforeGuide && !h.item.artBlock ? (i(), u("p", {
2770
2770
  key: 2,
2771
2771
  "data-block": x(Ee),
2772
2772
  "data-guide": h.item.id,
2773
2773
  class: oe(["absolute", !h.item.startAnswerLen && "indent-[2em]"]),
2774
2774
  style: q({ ...l.value, width: d.value.width, lineHeight: `${r.value + 7}px` })
2775
- }, J(h.item.beforeGuide), 15, zn)) : M("", !0),
2775
+ }, J(h.item.beforeGuide), 15, zn)) : D("", !0),
2776
2776
  (i(!0), u(P, null, Z(s.value, (Q, G) => (i(), u("p", {
2777
2777
  ref_for: !0,
2778
2778
  ref_key: "line",
@@ -2782,17 +2782,17 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2782
2782
  "data-size": h.item.startAnswerLen + (G + 1) * a.value,
2783
2783
  style: q(d.value)
2784
2784
  }, [
2785
- h.item.artBlock ? (i(!0), u(P, { key: 0 }, Z(a.value, ($, H) => (i(), u("span", {
2786
- class: oe([A.value[G * a.value + H] && "flex items-center justify-center"]),
2785
+ h.item.artBlock ? (i(!0), u(P, { key: 0 }, Z(a.value, (T, B) => (i(), u("span", {
2786
+ class: oe([N.value[G * a.value + B] && "flex items-center justify-center"]),
2787
2787
  style: q(p.value)
2788
- }, J(A.value[G * a.value + H]), 7))), 256)) : M("", !0),
2789
- (i(!0), u(P, null, Z(o.value, ($) => (i(), u(P, null, [
2790
- h.item.startAnswerLen + G * a.value < $ && h.item.startAnswerLen + (G + 1) * a.value >= $ ? (i(), u("span", {
2788
+ }, J(N.value[G * a.value + B]), 7))), 256)) : D("", !0),
2789
+ (i(!0), u(P, null, Z(o.value, (T) => (i(), u(P, null, [
2790
+ h.item.startAnswerLen + G * a.value < T && h.item.startAnswerLen + (G + 1) * a.value >= T ? (i(), u("span", {
2791
2791
  key: 0,
2792
2792
  class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
2793
- style: q({ left: `${($ - h.item.startAnswerLen) % a.value * r.value}px` }),
2793
+ style: q({ left: `${(T - h.item.startAnswerLen) % a.value * r.value}px` }),
2794
2794
  "data-block": x(Ee)
2795
- }, J($), 13, Rn)) : M("", !0)
2795
+ }, J(T), 13, Rn)) : D("", !0)
2796
2796
  ], 64))), 256))
2797
2797
  ], 14, Hn))), 256)),
2798
2798
  h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (i(), K(Ae, {
@@ -2800,7 +2800,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2800
2800
  data: h.item.afterArt,
2801
2801
  "data-aart": h.item.id,
2802
2802
  class: "mt-2 indent-[2em]"
2803
- }, null, 8, ["data", "data-aart"])) : M("", !0)
2803
+ }, null, 8, ["data", "data-aart"])) : D("", !0)
2804
2804
  ], 8, Nn));
2805
2805
  }
2806
2806
  }), Gn = ["data-block"], Yn = /* @__PURE__ */ ee({
@@ -2832,17 +2832,17 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2832
2832
  width: {}
2833
2833
  },
2834
2834
  setup(e) {
2835
- const t = e, a = N(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((c) => c.split(".")).map((c) => t.isFull ? c : c.map((o, s) => s === c.length - 1 ? o : ""))), l = N(() => t.width ? `${t.width}em` : "");
2835
+ const t = e, a = A(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((c) => c.split(".")).map((c) => t.isFull ? c : c.map((o, s) => s === c.length - 1 ? o : ""))), l = A(() => t.width ? `${t.width}em` : "");
2836
2836
  return (n, c) => (i(), u("span", {
2837
2837
  class: oe(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", n.isFull && "justify-end"]),
2838
2838
  style: q({ width: l.value }),
2839
2839
  "data-block": x(Ee)
2840
2840
  }, [
2841
2841
  (i(!0), u(P, null, Z(a.value, (o, s) => (i(), u(P, null, [
2842
- s ? (i(), u("span", Qn, " - ")) : M("", !0),
2843
- o[0] ? (i(), u("span", Un, J(o[0]), 1)) : M("", !0),
2844
- o[1] ? (i(), u("span", jn, "(" + J(o[1]) + ")", 1)) : M("", !0),
2845
- o[2] ? (i(), u("span", Kn, J(o[2]), 1)) : M("", !0)
2842
+ s ? (i(), u("span", Qn, " - ")) : D("", !0),
2843
+ o[0] ? (i(), u("span", Un, J(o[0]), 1)) : D("", !0),
2844
+ o[1] ? (i(), u("span", jn, "(" + J(o[1]) + ")", 1)) : D("", !0),
2845
+ o[2] ? (i(), u("span", Kn, J(o[2]), 1)) : D("", !0)
2846
2846
  ], 64))), 256))
2847
2847
  ], 14, qn));
2848
2848
  }
@@ -2894,7 +2894,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2894
2894
  dbclick: null
2895
2895
  },
2896
2896
  setup(e, { emit: t }) {
2897
- const a = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Et), n = Y(""), c = N(() => {
2897
+ const a = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Et), n = Y(""), c = A(() => {
2898
2898
  const _ = a ? {
2899
2899
  choiceSheet: [m.choice, m.choice_english, m.choice_multiple, m.cloze],
2900
2900
  fillSheet: [m.fill, m.fill_english]
@@ -2903,7 +2903,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2903
2903
  fill: [m.fill, m.fill_english]
2904
2904
  };
2905
2905
  return Object.keys(m).reduce((C, w) => ({ ...C, [m[w]]: Object.keys(_).find((R) => _[R].includes(m[w])) || `${w}${a}` }), {});
2906
- }), o = N(() => [ve.one_choice, ve.another_choice].includes(e.data.problemType)), s = N(() => {
2906
+ }), o = A(() => [ve.one_choice, ve.another_choice].includes(e.data.problemType)), s = A(() => {
2907
2907
  let _ = [];
2908
2908
  return e.data.children.forEach((C) => {
2909
2909
  let w = _[_.length - 1];
@@ -2921,25 +2921,25 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2921
2921
  }), _ = _.map((C) => {
2922
2922
  var w;
2923
2923
  if (C.type === "polymer" && C.styleInfo[y[e.layout.mode].choice_a] === L.choice_3) {
2924
- const R = Math.floor(e.width / (Math.max(...C.children.map((B) => B.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((w = C.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 20));
2924
+ const R = Math.floor(e.width / (Math.max(...C.children.map((O) => O.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((w = C.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 20));
2925
2925
  if (C.children.length > R * 5) {
2926
- const B = C.children.length % 4 > 4 ? 5 : 4;
2927
- return [...Array(Math.ceil(C.children.length / (R * B))).keys()].map((ye, pe) => ({
2926
+ const O = C.children.length % 4 > 4 ? 5 : 4;
2927
+ return [...Array(Math.ceil(C.children.length / (R * O))).keys()].map((ye, pe) => ({
2928
2928
  ...C,
2929
2929
  groupIndex: pe,
2930
- children: C.children.slice(pe * R * B, (pe + 1) * R * B)
2930
+ children: C.children.slice(pe * R * O, (pe + 1) * R * O)
2931
2931
  }));
2932
2932
  } else
2933
2933
  return C;
2934
2934
  } else
2935
2935
  return C;
2936
2936
  }).flat(), _;
2937
- }), r = N(() => {
2937
+ }), r = A(() => {
2938
2938
  let _ = {};
2939
2939
  return e.data.children.forEach((C) => {
2940
2940
  C.polymerId && (_[C.polymerId] || (_[C.polymerId] = []), _[C.polymerId][C.polymerOrder || 0] = C.id);
2941
2941
  }), _;
2942
- }), d = N(() => {
2942
+ }), d = A(() => {
2943
2943
  if (l.includes(e.data.problemType)) {
2944
2944
  const _ = (e.data.rawChildren || e.data.children).map((C) => C.subStr.length);
2945
2945
  return { [`h${e.data.id}`]: Math.max(..._) };
@@ -2971,20 +2971,20 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2971
2971
  })) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((pe = e.data.children[0]) == null ? void 0 : pe.polymerId) || ""]) * 14 + 20, R = Math.floor(e.width / (Math.max(...(_.rawChildren || _.children).map((fe) => {
2972
2972
  var ue;
2973
2973
  return ((ue = fe.optList) == null ? void 0 : ue.length) || 0;
2974
- })) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((ie = _.children[0]) == null ? void 0 : ie.polymerId) || ""]) * 14 + 20)), B = Math.min(R, e.data.style[y[e.layout.mode].choice_d] || 10), ye = (e.width - w * B) / (B - 1) - 10;
2974
+ })) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((ie = _.children[0]) == null ? void 0 : ie.polymerId) || ""]) * 14 + 20)), O = Math.min(R, e.data.style[y[e.layout.mode].choice_d] || 10), ye = (e.width - w * O) / (O - 1) - 10;
2975
2975
  switch (_.styleInfo[y[e.layout.mode].choice_a]) {
2976
2976
  case L.choice_1:
2977
2977
  _.styleInfo[y[e.layout.mode].choice_b] === L.portrait && (C = {
2978
2978
  "grid-auto-flow": e.noPortrait ? "row" : "column",
2979
- "grid-template-columns": `repeat(${B}, 1fr)`,
2980
- "grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`,
2979
+ "grid-template-columns": `repeat(${O}, 1fr)`,
2980
+ "grid-template-rows": `repeat(${Math.ceil(_.children.length / O)}, 1fr)`,
2981
2981
  "column-gap": `${ye}px`
2982
2982
  });
2983
2983
  break;
2984
2984
  case L.choice_3:
2985
2985
  C = {
2986
- "grid-template-columns": `repeat(${B}, 1fr)`,
2987
- "grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`
2986
+ "grid-template-columns": `repeat(${O}, 1fr)`,
2987
+ "grid-template-rows": `repeat(${Math.ceil(_.children.length / O)}, 1fr)`
2988
2988
  }, _.styleInfo[y[e.layout.mode].choice_b] === L.portrait && (C = {
2989
2989
  ...C,
2990
2990
  "grid-auto-flow": e.noPortrait ? "row" : "column",
@@ -2997,8 +2997,8 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2997
2997
  ComputPolymerItemStyle: (_, C) => {
2998
2998
  var w;
2999
2999
  if (l.includes(_.problemType) && _.style[y[e.layout.mode].choice_a] === L.choice_2) {
3000
- const R = Math.max(Ie[e.layout.fillSize].value + 4, (d.value[`h${e.data.id}`] || d.value[((w = _.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 8), B = Math.floor(e.width / (R * _.style[y[e.layout.mode].choice_c] + 10)), ye = (e.width - R * B * _.style[y[e.layout.mode].choice_c]) / (B - 1 || 1);
3001
- if (!((C + 1) % _.style[y[e.layout.mode].choice_c]) && ((C + 1) % (_.style[y[e.layout.mode].choice_c] * B) || B < 2))
3000
+ const R = Math.max(Ie[e.layout.fillSize].value + 4, (d.value[`h${e.data.id}`] || d.value[((w = _.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 8), O = Math.floor(e.width / (R * _.style[y[e.layout.mode].choice_c] + 10)), ye = (e.width - R * O * _.style[y[e.layout.mode].choice_c]) / (O - 1 || 1);
3001
+ if (!((C + 1) % _.style[y[e.layout.mode].choice_c]) && ((C + 1) % (_.style[y[e.layout.mode].choice_c] * O) || O < 2))
3002
3002
  return {
3003
3003
  "margin-right": `${ye}px`
3004
3004
  };
@@ -3011,15 +3011,15 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
3011
3011
  if (!a)
3012
3012
  return w;
3013
3013
  if (l.includes(_.problemType)) {
3014
- let B = {};
3014
+ let O = {};
3015
3015
  if (Object.values(rt).includes(e.data.problemType)) {
3016
3016
  const ye = Math.max(...(e.data.rawChildren || e.data.children).map((ie) => ie.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((R = e.data.children[0]) == null ? void 0 : R.polymerId) || ""]) * 14 + 20, pe = Math.min(Math.floor(e.width / ye), e.data.style[y[e.layout.mode].choice_d] || 10);
3017
- B = C % pe ? { minWidth: `${ye}px`, marginLeft: `${(e.width - ye * pe) / (pe - 1) - 5}px` } : { minWidth: `${ye}px` };
3017
+ O = C % pe ? { minWidth: `${ye}px`, marginLeft: `${(e.width - ye * pe) / (pe - 1) - 5}px` } : { minWidth: `${ye}px` };
3018
3018
  }
3019
3019
  w = {
3020
3020
  ...w,
3021
3021
  display: "inline-flex",
3022
- ...B
3022
+ ...O
3023
3023
  };
3024
3024
  } else
3025
3025
  [m.fill, m.fill_english].includes(_.problemType) && (w = {
@@ -3075,8 +3075,8 @@ function os(e, t, a, l, n, c) {
3075
3075
  "data-tag": r.__tag__,
3076
3076
  "data-block": l.ComputBlock(r),
3077
3077
  "data-xine": l.Gps_cls.item + r._sub,
3078
- onMouseenter: (A) => l.handleHoverIn(r),
3079
- onMouseleave: (A) => l.handleHoverOut(r)
3078
+ onMouseenter: (N) => l.handleHoverIn(r),
3079
+ onMouseleave: (N) => l.handleHoverOut(r)
3080
3080
  }, [
3081
3081
  r.problemType ? (i(), K(o, {
3082
3082
  key: 0,
@@ -3084,7 +3084,7 @@ function os(e, t, a, l, n, c) {
3084
3084
  isFull: !!l.ModuleTag,
3085
3085
  width: l.SubWidthInfo[`h${r.headLineId}`] || l.SubWidthInfo[r.polymerId || ""] || 0,
3086
3086
  class: oe(["sub_item", l.ComputAbs(r) && "absolute left-0 top-3 left_sub"])
3087
- }, null, 8, ["sub", "isFull", "width", "class"])) : M("", !0),
3087
+ }, null, 8, ["sub", "isFull", "width", "class"])) : D("", !0),
3088
3088
  (i(), K(yt(l.ComputName(r)), _t(ft({ item: r, layout: a.layout, ...l.ComputPayload(r, d) })), null, 16))
3089
3089
  ], 46, Zn);
3090
3090
  }), 256))
@@ -3097,17 +3097,17 @@ function os(e, t, a, l, n, c) {
3097
3097
  "data-tag": r.__tag__,
3098
3098
  "data-block": l.ComputBlock(r),
3099
3099
  "data-xine": l.Gps_cls.item + r._sub,
3100
- onClick: (A) => l.handleClick(A, r),
3101
- onDblclick: (A) => l.handleDblClick(A, r),
3102
- onMouseenter: (A) => l.handleHoverIn(r),
3103
- onMouseleave: (A) => l.handleHoverOut(r)
3100
+ onClick: (N) => l.handleClick(N, r),
3101
+ onDblclick: (N) => l.handleDblClick(N, r),
3102
+ onMouseenter: (N) => l.handleHoverIn(r),
3103
+ onMouseleave: (N) => l.handleHoverOut(r)
3104
3104
  }, [
3105
3105
  r.problemType && !l.ComputAbs(r) ? (i(), K(o, {
3106
3106
  key: 0,
3107
3107
  sub: r.sub,
3108
3108
  isFull: !!l.ModuleTag,
3109
3109
  width: l.SubWidthInfo[`h${r.headLineId}`] || l.SubWidthInfo[r.polymerId || ""] || 0
3110
- }, null, 8, ["sub", "isFull", "width"])) : M("", !0),
3110
+ }, null, 8, ["sub", "isFull", "width"])) : D("", !0),
3111
3111
  (i(), K(yt(l.ComputName(r)), _t(ft({ item: r, layout: a.layout, ...l.ComputPayload(r, d) })), {
3112
3112
  default: Ft(() => [
3113
3113
  V(o, {
@@ -3119,20 +3119,20 @@ function os(e, t, a, l, n, c) {
3119
3119
  _: 2
3120
3120
  }, 1040))
3121
3121
  ], 46, es),
3122
- r.polymerId && l.PolymerData[r.polymerId][l.PolymerData[r.polymerId].length - 1] === r.id ? (i(), u("div", ts)) : M("", !0)
3122
+ r.polymerId && l.PolymerData[r.polymerId][l.PolymerData[r.polymerId].length - 1] === r.id ? (i(), u("div", ts)) : D("", !0)
3123
3123
  ], 64);
3124
3124
  }), 256))
3125
3125
  ], 64))), 256);
3126
3126
  }
3127
- const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as = 10, O = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, se = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Te = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), ls = (e, t, a) => {
3128
- const l = O(se(`${k.item}${e._sub}`, t));
3127
+ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as = 10, z = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, se = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Te = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), ls = (e, t, a) => {
3128
+ const l = z(se(`${k.item}${e._sub}`, t));
3129
3129
  return !(l.top >= a.top + a.height || l.top + l.height < a.top);
3130
3130
  }, ce = (e, t, a = !1) => !e || !t ? null : {
3131
3131
  x: e.x - t.x,
3132
3132
  y: e.y - t.y + (a ? 1 : 0),
3133
3133
  width: e.width,
3134
3134
  height: e.height - (a ? 2 : 0)
3135
- }, De = (e, t, a, l = !1, n = !1) => {
3135
+ }, Me = (e, t, a, l = !1, n = !1) => {
3136
3136
  if (!e)
3137
3137
  return {
3138
3138
  x: 0,
@@ -3140,7 +3140,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3140
3140
  width: 0,
3141
3141
  height: 0
3142
3142
  };
3143
- const c = O(e), o = Math.min(t.height, c.y < t.y ? c.y + c.height - t.y : c.y + c.height > t.y + t.height || n ? t.y + t.height - c.y : c.height);
3143
+ const c = z(e), o = Math.min(t.height, c.y < t.y ? c.y + c.height - t.y : c.y + c.height > t.y + t.height || n ? t.y + t.height - c.y : c.height);
3144
3144
  return o > 5 ? {
3145
3145
  x: c.x - a.x,
3146
3146
  y: Math.max(c.y, t.y) + (l ? 1 : 0) - a.y,
@@ -3163,8 +3163,8 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3163
3163
  return null;
3164
3164
  const l = {
3165
3165
  // area: GetPosition(el, config.pageDom[0]),
3166
- area: ce(O(a), O(e.pageDom[0])),
3167
- list: Te(k.en_num_group, a).map((n) => Te(k.en_num_item, n).map((c) => ce(O(c), O(e.pageDom[0]), !0)))
3166
+ area: ce(z(a), z(e.pageDom[0])),
3167
+ list: Te(k.en_num_group, a).map((n) => Te(k.en_num_item, n).map((c) => ce(z(c), z(e.pageDom[0]), !0)))
3168
3168
  };
3169
3169
  return {
3170
3170
  choiceGridSequenceNOList: [...Array(10).keys()],
@@ -3184,32 +3184,32 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3184
3184
  paperWidth: Math.round(g[e.layout.paper].width * Fe),
3185
3185
  paperHeight: Math.round(g[e.layout.paper].height * Fe)
3186
3186
  }), ss = (e) => {
3187
- const t = O(e.pageDom[0]), a = O(e.pageDom[1]), l = (n) => {
3187
+ const t = z(e.pageDom[0]), a = z(e.pageDom[1]), l = (n) => {
3188
3188
  var o;
3189
3189
  const c = e.layout.backColumn > 2 ? {
3190
- trdLeftTopPos: ne(ce(O(Te(`${k.point}t`, e.pageDom[n])[1]), O(e.pageDom[n]))),
3191
- trdLeftBottomPos: ne(ce(O(Te(`${k.point}b`, e.pageDom[n])[1]), O(e.pageDom[n])))
3190
+ trdLeftTopPos: ne(ce(z(Te(`${k.point}t`, e.pageDom[n])[1]), z(e.pageDom[n]))),
3191
+ trdLeftBottomPos: ne(ce(z(Te(`${k.point}b`, e.pageDom[n])[1]), z(e.pageDom[n])))
3192
3192
  } : {};
3193
3193
  return (o = Oe.find((s) => s.code === e.layout.paper)) != null && o.isMultCol ? {
3194
- secLeftTopPos: ne(ce(O(Te(`${k.point}t`, e.pageDom[n])[0]), O(e.pageDom[n]))),
3195
- secLeftBottomPos: ne(ce(O(Te(`${k.point}b`, e.pageDom[n])[0]), O(e.pageDom[n]))),
3194
+ secLeftTopPos: ne(ce(z(Te(`${k.point}t`, e.pageDom[n])[0]), z(e.pageDom[n]))),
3195
+ secLeftBottomPos: ne(ce(z(Te(`${k.point}b`, e.pageDom[n])[0]), z(e.pageDom[n]))),
3196
3196
  ...c
3197
3197
  } : null;
3198
3198
  };
3199
3199
  return {
3200
3200
  // 取第一/二页定位点信息
3201
- leftTopPos: ne(ce(O(se(`${k.point}lt`, e.pageDom[0])), t)),
3202
- rightTopPos: ne(ce(O(se(`${k.point}rt`, e.pageDom[0])), t)),
3203
- leftBottomPos: ne(ce(O(se(`${k.point}lb`, e.pageDom[0])), t)),
3204
- rightBottomPos: ne(ce(O(se(`${k.point}rb`, e.pageDom[0])), t)),
3201
+ leftTopPos: ne(ce(z(se(`${k.point}lt`, e.pageDom[0])), t)),
3202
+ rightTopPos: ne(ce(z(se(`${k.point}rt`, e.pageDom[0])), t)),
3203
+ leftBottomPos: ne(ce(z(se(`${k.point}lb`, e.pageDom[0])), t)),
3204
+ rightBottomPos: ne(ce(z(se(`${k.point}rb`, e.pageDom[0])), t)),
3205
3205
  // waistAuxAnchorInfo: getAuxInfo(0, true),
3206
3206
  verticalAuxInfo: [
3207
- ne(ce(O(se(`${k.point}l`, e.pageDom[0])), t)),
3208
- ne(ce(O(se(`${k.point}r`, e.pageDom[0])), t))
3207
+ ne(ce(z(se(`${k.point}l`, e.pageDom[0])), t)),
3208
+ ne(ce(z(se(`${k.point}r`, e.pageDom[0])), t))
3209
3209
  ],
3210
3210
  verticalAuxInfo2: e.bindWidth && e.pageDom[1] ? [
3211
- ne(ce(O(se(`${k.point}l`, e.pageDom[1])), a)),
3212
- ne(ce(O(se(`${k.point}r`, e.pageDom[1])), a))
3211
+ ne(ce(z(se(`${k.point}l`, e.pageDom[1])), a)),
3212
+ ne(ce(z(se(`${k.point}r`, e.pageDom[1])), a))
3213
3213
  ] : null,
3214
3214
  auxAnchorInfo: l(0),
3215
3215
  auxAnchorInfo2: e.pageDom[1] ? l(1) : null
@@ -3220,7 +3220,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3220
3220
  const l = se(`${k.page_item}0`, e.pageDom[1]).getBoundingClientRect();
3221
3221
  t = se(`${k.page_item}1`, e.pageDom[1]).getBoundingClientRect().left - l.left - l.width;
3222
3222
  }
3223
- let a = ce(O(se(k.page, e.pageDom[e.pageTotal - 1])), O(e.pageDom[e.pageTotal - 1]));
3223
+ let a = ce(z(se(k.page, e.pageDom[e.pageTotal - 1])), z(e.pageDom[e.pageTotal - 1]));
3224
3224
  return a = { ...a, y: a.y % (g[e.layout.paper].height + (e.pageMargin || 0)) }, [
3225
3225
  {
3226
3226
  // 固定值
@@ -3230,7 +3230,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3230
3230
  // 页码区块位置,部分需动态获取 x y width height
3231
3231
  choiceQuestionPosition: ne(a, !0),
3232
3232
  // 页码点区块第一个页码点的位置,部分需动态获取
3233
- firstChoicePosition: ne(ce(O(se(`${k.page_item}0`, e.pageDom[e.pageTotal - 1])), O(e.pageDom[e.pageTotal - 1]))),
3233
+ firstChoicePosition: ne(ce(z(se(`${k.page_item}0`, e.pageDom[e.pageTotal - 1])), z(e.pageDom[e.pageTotal - 1]))),
3234
3234
  // 页码点最大值,展开为数组
3235
3235
  choiceGridSequenceNOList: dt.filter((l, n) => n < e.pageTotal),
3236
3236
  // 排列方向
@@ -3249,9 +3249,9 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3249
3249
  // 固定值
3250
3250
  questionNOList: [1],
3251
3251
  // 方框业务坐标
3252
- choiceQuestionPosition: ne(ce(O(t), O(e.pageDom[0])), !0),
3252
+ choiceQuestionPosition: ne(ce(z(t), z(e.pageDom[0])), !0),
3253
3253
  // 数据坐标
3254
- firstChoicePosition: ne(ce(O(t), O(e.pageDom[0]))),
3254
+ firstChoicePosition: ne(ce(z(t), z(e.pageDom[0]))),
3255
3255
  // 固定值
3256
3256
  choiceGridSequenceNOList: [
3257
3257
  "true"
@@ -3262,7 +3262,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3262
3262
  xColOffset: 0
3263
3263
  } : null;
3264
3264
  }, cs = (e) => {
3265
- let t = ce(O(se(k.en_code, e.pageDom[0])), O(e.pageDom[0]));
3265
+ let t = ce(z(se(k.en_code, e.pageDom[0])), z(e.pageDom[0]));
3266
3266
  return ne(t);
3267
3267
  }, ds = (e) => {
3268
3268
  const t = se(k.write_view, e.pageDom[0]);
@@ -3272,9 +3272,9 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3272
3272
  return {
3273
3273
  id: "0",
3274
3274
  problemType: m.slove,
3275
- position: ce(O(t), O(e.pageDom[0])),
3275
+ position: ce(z(t), z(e.pageDom[0])),
3276
3276
  scoreList: a.map((l, n) => ({
3277
- position: ce(O(a[n]), O(e.pageDom[0])),
3277
+ position: ce(z(a[n]), z(e.pageDom[0])),
3278
3278
  itemPosition: {
3279
3279
  width: a[n].offsetWidth
3280
3280
  },
@@ -3335,58 +3335,58 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3335
3335
  return [...Array(e.pageDom.length).keys()].map((n) => {
3336
3336
  const c = Math.floor(n / 2) * (e.layout.column + e.layout.backColumn) + (n % 2 ? e.layout.column : 0);
3337
3337
  return [...Array(n % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((o, s) => c + s < t.length).map((o, s) => {
3338
- const r = e.pageDom[n], d = O(r), p = e.colDom[c + s], A = O(p), h = e.colViewDom[c + s], F = O(h), Q = t[c + s].data.map(($) => $.children.filter((H) => H.problemType)).flat(), G = t[c + s].data.filter(($) => [ve.one_choice, ve.another_choice].includes($.problemType) && $.children.length).map(($) => {
3339
- const H = se(`${k.choice}${$.id}`, p);
3340
- return H ? {
3338
+ const r = e.pageDom[n], d = z(r), p = e.colDom[c + s], N = z(p), h = e.colViewDom[c + s], F = z(h), Q = t[c + s].data.map((T) => T.children.filter((B) => B.problemType)).flat(), G = t[c + s].data.filter((T) => [ve.one_choice, ve.another_choice].includes(T.problemType) && T.children.length).map((T) => {
3339
+ const B = se(`${k.choice}${T.id}`, p);
3340
+ return B ? {
3341
3341
  id: `${++a}`,
3342
- baseIndex: parseInt($.children[0]._sub),
3343
- position: ce(O(H), d),
3344
- problemType: $.problemType,
3342
+ baseIndex: parseInt(T.children[0]._sub),
3343
+ position: ce(z(B), d),
3344
+ problemType: T.problemType,
3345
3345
  isOneChoice: !0,
3346
- optList: Te(k.fill, H).map((v, E) => ({
3346
+ optList: Te(k.fill, B).map((v, E) => ({
3347
3347
  id: `${a}.${E + 1}`,
3348
- position: ce(O(v), d)
3348
+ position: ce(z(v), d)
3349
3349
  })).filter((v) => v.position)
3350
3350
  } : {};
3351
- }).filter(($) => $.position);
3352
- return Q.filter(($) => ls($, p, A)).map(($, H, v) => {
3351
+ }).filter((T) => T.position);
3352
+ return Q.filter((T) => ls(T, p, N)).map((T, B, v) => {
3353
3353
  let E = {};
3354
- l[$._sub] ? l[$._sub] += 1 : l[$._sub] = 1;
3355
- const X = se(`${k.item}${$._sub}`, p);
3356
- switch ($.problemType) {
3354
+ l[T._sub] ? l[T._sub] += 1 : l[T._sub] = 1;
3355
+ const X = se(`${k.item}${T._sub}`, p);
3356
+ switch (T.problemType) {
3357
3357
  case m.choice:
3358
3358
  case m.choice_english:
3359
3359
  case m.choice_multiple:
3360
3360
  case m.cloze:
3361
3361
  E = {
3362
- score: $.score,
3363
- isColumn: $.style[y[e.layout.mode].choice_a] !== L.choice_2,
3364
- optList: $.optList.map((w, R) => ({
3365
- id: `${$._sub}.${R + 1}`,
3366
- position: De(se(`${k.fill}${R}`, X), F, d)
3362
+ score: T.score,
3363
+ isColumn: T.style[y[e.layout.mode].choice_a] !== L.choice_2,
3364
+ optList: T.optList.map((w, R) => ({
3365
+ id: `${T._sub}.${R + 1}`,
3366
+ position: Me(se(`${k.fill}${R}`, X), F, d)
3367
3367
  })).filter((w) => w.position)
3368
3368
  };
3369
3369
  break;
3370
3370
  case m.decide:
3371
3371
  E = {
3372
3372
  optList: [0, 1].map((w, R) => ({
3373
- id: `${$._sub}.${R + 1}`,
3374
- position: De(se(`${k.fill}${R}`, X), F, d)
3373
+ id: `${T._sub}.${R + 1}`,
3374
+ position: Me(se(`${k.fill}${R}`, X), F, d)
3375
3375
  })).filter((w) => w.position)
3376
3376
  };
3377
3377
  break;
3378
3378
  case m.fill:
3379
3379
  case m.fill_english:
3380
- const z = Te(k.fill, X), _ = Te(k.fill_line, X);
3380
+ const H = Te(k.fill, X), _ = Te(k.fill_line, X);
3381
3381
  E = {
3382
- children: [$.score].flat().map((w, R, B) => ({
3383
- id: B.length > 1 ? `${$._sub}.${R + 1}` : $._sub,
3382
+ children: [T.score].flat().map((w, R, O) => ({
3383
+ id: O.length > 1 ? `${T._sub}.${R + 1}` : T._sub,
3384
3384
  score: w,
3385
- problemType: $.problemType,
3386
- isHiddenContent: !$.style[y[e.layout.mode].fill_b],
3387
- position: De(X, F, d),
3388
- scorePosition: De(z[R], F, d),
3389
- answerPosition: De(_[R], F, d)
3385
+ problemType: T.problemType,
3386
+ isHiddenContent: !T.style[y[e.layout.mode].fill_b],
3387
+ position: Me(X, F, d),
3388
+ scorePosition: Me(H[R], F, d),
3389
+ answerPosition: Me(_[R], F, d)
3390
3390
  })).filter((w) => w.position)
3391
3391
  };
3392
3392
  break;
@@ -3398,27 +3398,27 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3398
3398
  scoreList: C ? [se(k.score_tenbit, C), se(k.score_base, C), se(k.score_half, C)].map((w, R) => {
3399
3399
  if (!w)
3400
3400
  return {};
3401
- const B = Te(k.score_item, w);
3401
+ const O = Te(k.score_item, w);
3402
3402
  return {
3403
- position: De(w, F, d, !0),
3403
+ position: Me(w, F, d, !0),
3404
3404
  itemPosition: {
3405
- width: B[0].offsetWidth
3405
+ width: O[0].offsetWidth
3406
3406
  },
3407
- score: B.map((ye) => Math.abs(parseFloat(ye.innerText)) * (R ? 1 : 10))
3407
+ score: O.map((ye) => Math.abs(parseFloat(ye.innerText)) * (R ? 1 : 10))
3408
3408
  };
3409
3409
  }).filter((w) => w.position) : null
3410
3410
  };
3411
3411
  }
3412
3412
  return {
3413
- id: $._sub,
3414
- elId: $.id,
3415
- colIndex: l[$._sub],
3416
- problemType: $.problemType,
3417
- rootProblemType: $.rootProblemType,
3418
- position: De(X, F, d, !1, H === v.length - 1 && [m.slove].includes($.problemType)),
3413
+ id: T._sub,
3414
+ elId: T.id,
3415
+ colIndex: l[T._sub],
3416
+ problemType: T.problemType,
3417
+ rootProblemType: T.rootProblemType,
3418
+ position: Me(X, F, d, !1, B === v.length - 1 && [m.slove].includes(T.problemType)),
3419
3419
  ...E
3420
3420
  };
3421
- }).concat(G).filter(($) => $.position);
3421
+ }).concat(G).filter((T) => T.position);
3422
3422
  });
3423
3423
  }).map((n) => n.flat());
3424
3424
  }, ps = (e) => {
@@ -3552,21 +3552,21 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3552
3552
  cardCuttingSectionList: t[c].map((o) => ps(o)).flat()
3553
3553
  })), l = (c, o) => (c.sectionID || "").split(".").filter((s, r) => r < o).join("."), n = a.map((c) => {
3554
3554
  let o = [], s = [], r = [];
3555
- return c.cardCuttingSectionList.forEach((d, p, A) => {
3555
+ return c.cardCuttingSectionList.forEach((d, p, N) => {
3556
3556
  const h = l(d, 1);
3557
3557
  let F = !1;
3558
- if (r.find((G) => l(G, 1) === h && G.secitonSeqID === d.secitonSeqID) && !(d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (r.push(d), F = p < A.length - 1), F)
3558
+ if (r.find((G) => l(G, 1) === h && G.secitonSeqID === d.secitonSeqID) && !(d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (r.push(d), F = p < N.length - 1), F)
3559
3559
  return;
3560
3560
  let Q = !1;
3561
3561
  if ((d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (s.push(d), Q = !0), r.length) {
3562
3562
  if (r.length === 1)
3563
3563
  o.push(r[0]);
3564
3564
  else {
3565
- const G = r.map((E) => E.subjectiveQuestionSectionList || []).flat(), $ = r.map((E) => E.choiceQuestionPartialSectionList || []).flat(), H = $.length ? { choiceQuestionPartialSectionList: $ } : {}, v = G.length ? { subjectiveQuestionSectionList: G } : {};
3565
+ const G = r.map((E) => E.subjectiveQuestionSectionList || []).flat(), T = r.map((E) => E.choiceQuestionPartialSectionList || []).flat(), B = T.length ? { choiceQuestionPartialSectionList: T } : {}, v = G.length ? { subjectiveQuestionSectionList: G } : {};
3566
3566
  o.push({
3567
3567
  ...r[0],
3568
3568
  cuttingSectionQuestionType: r[0].rootProblemType || r[0].cuttingSectionQuestionType,
3569
- ...H,
3569
+ ...B,
3570
3570
  ...v
3571
3571
  });
3572
3572
  }
@@ -3576,27 +3576,29 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3576
3576
  }), o = o.map((d) => ({ ...d, sectionID: l(d, 1) })), { ...c, cardCuttingSectionList: [...o, ...s] };
3577
3577
  }).map((c) => {
3578
3578
  const o = c.cardCuttingSectionList.map((s) => {
3579
- var p;
3579
+ var N;
3580
3580
  let r = [], d = [];
3581
- return (p = s.subjectiveQuestionSectionList) == null || p.forEach((A, h, F) => {
3582
- const Q = l(A, 2);
3583
- let G = !1;
3584
- if (d.find(($) => l($, 2) === Q && $.secitonSeqID === A.secitonSeqID) && (d.push(A), G = h < F.length - 1), !G) {
3581
+ (N = s.subjectiveQuestionSectionList) == null || N.forEach((h, F, Q) => {
3582
+ const G = l(h, Math.max(h.sectionID.split(".").length - 1, 1));
3583
+ let T = !1;
3584
+ if (d.find((B) => l(B, Math.max(B.sectionID.split(".").length - 1, 1)) === G && B.secitonSeqID === h.secitonSeqID) && (d.push(h), T = F < Q.length - 1), !T) {
3585
3585
  if (d.length) {
3586
3586
  if (d.length === 1)
3587
3587
  r.push(d[0]);
3588
3588
  else {
3589
- const $ = d.map((v) => v.singleBlankSectionList || []).flat(), H = $.length ? { singleBlankSectionList: $ } : {};
3589
+ const B = d.map((E) => E.singleBlankSectionList || []).flat(), v = B.length ? { singleBlankSectionList: B, unitCount: B.length } : {};
3590
3590
  r.push({
3591
3591
  ...d[0],
3592
- ...H
3592
+ ...v
3593
3593
  });
3594
3594
  }
3595
3595
  d = [];
3596
3596
  }
3597
- d.push(A);
3597
+ d.push(h);
3598
3598
  }
3599
- }), r = r.map((A) => ({ ...A, sectionID: l(A, 2) })), r.length ? {
3599
+ });
3600
+ const p = Math.max(...r.map((h) => h.sectionID.split(".").length));
3601
+ return r = r.map((h) => ({ ...h, sectionID: l(h, Math.max(p - 1, 1)) })), r.length ? {
3600
3602
  ...s,
3601
3603
  subjectiveQuestionSectionList: r
3602
3604
  } : s;
@@ -3606,7 +3608,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3606
3608
  return console.log(n), console.log(a), n;
3607
3609
  }, ys = (e, t) => {
3608
3610
  var l;
3609
- const a = O(e.pageDom[0]);
3611
+ const a = z(e.pageDom[0]);
3610
3612
  return {
3611
3613
  // 正文code
3612
3614
  cardID: e.textCode,
@@ -3623,8 +3625,8 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3623
3625
  // 试卷二维码
3624
3626
  cardSerialNumber: {
3625
3627
  // 条形码虚线框位置, x, y, width, height
3626
- encodePictureArea: ne(ce(O(se(k.art_code, e.pageDom[0])), a), !0),
3627
- qrCodePosition: ne(ce(O(se(k.art_code, e.pageDom[0])), a)),
3628
+ encodePictureArea: ne(ce(z(se(k.art_code, e.pageDom[0])), a), !0),
3629
+ qrCodePosition: ne(ce(z(se(k.art_code, e.pageDom[0])), a)),
3628
3630
  // 条形码或二维码,不确定,固定此值
3629
3631
  pictureType: "TYPE_QRCODE"
3630
3632
  },
@@ -3655,7 +3657,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3655
3657
  layerType: ns(e),
3656
3658
  // 定位点信息
3657
3659
  ...ss(e),
3658
- pottedLineXPos: e.bindWidth ? (l = ne(ce(O(se(k.bind_line, e.pageDom[0])), a))) == null ? void 0 : l.x : 0,
3660
+ pottedLineXPos: e.bindWidth ? (l = ne(ce(z(se(k.bind_line, e.pageDom[0])), a))) == null ? void 0 : l.x : 0,
3659
3661
  // 页码点信息
3660
3662
  pageSideAnchorsList: is(e),
3661
3663
  // 缺考标记
@@ -3688,17 +3690,17 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3688
3690
  emits: ["delAbsImgItem", "delAbsTxtItem", "changeLayoutStatus"],
3689
3691
  setup(e, { emit: t }) {
3690
3692
  const a = e, l = Y([]);
3691
- Me(() => [a.ColList, a.ImgData, a.TxtData], () => {
3693
+ De(() => [a.ColList, a.ImgData, a.TxtData], () => {
3692
3694
  l.value = [], setTimeout(() => {
3693
3695
  var d;
3694
- a.ColList.forEach((p, A) => {
3696
+ a.ColList.forEach((p, N) => {
3695
3697
  p.data.map((h) => h.children).flat().filter((h) => [m.slove, m.art].includes(h.problemType) && !h.chunk).forEach((h) => {
3696
- var $;
3697
- const F = ($ = a.ColDom[A].querySelector(`*[data-tag="${h.__tag__}"]`)) == null ? void 0 : $.querySelector(`*[data-xine="${k.score}"]`);
3698
+ var T;
3699
+ const F = (T = a.ColDom[N].querySelector(`*[data-tag="${h.__tag__}"]`)) == null ? void 0 : T.querySelector(`*[data-xine="${k.score}"]`);
3698
3700
  if (!F)
3699
3701
  return;
3700
3702
  F.classList.remove("err_lack");
3701
- const Q = window.getComputedStyle(F), G = [...Array.from(F.children)].map((H) => H.offsetWidth).reduce((H, v) => H + v, 0);
3703
+ const Q = window.getComputedStyle(F), G = [...Array.from(F.children)].map((B) => B.offsetWidth).reduce((B, v) => B + v, 0);
3702
3704
  F.offsetWidth - parseFloat(Q.borderLeft) - parseFloat(Q.borderRight) < G && (l.value.push({ msg: `${h.subStr}题打分条超长` }), F.classList.add("err_lack"), F.title = "打分条超长,请调整排版或使用自编打分条");
3703
3705
  });
3704
3706
  });
@@ -3746,9 +3748,9 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3746
3748
  key: 0,
3747
3749
  class: "layt-moni_err_item_fn",
3748
3750
  onClick: r.fn
3749
- }, J(r.btnTxt || "删除"), 9, ks)) : M("", !0)
3751
+ }, J(r.btnTxt || "删除"), 9, ks)) : D("", !0)
3750
3752
  ]))), 128))
3751
- ])) : M("", !0)
3753
+ ])) : D("", !0)
3752
3754
  ])
3753
3755
  ]));
3754
3756
  }
@@ -3780,7 +3782,7 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3780
3782
  return c || (c = Ve(e), he(c).top + c.offsetHeight - t > a && (c = st(c, t, a))), c;
3781
3783
  }, Lt = (e, t, a, l) => {
3782
3784
  const n = (o, s = a) => {
3783
- var G, $, H;
3785
+ var G, T, B;
3784
3786
  const r = o.map((v) => {
3785
3787
  const E = he(v);
3786
3788
  return {
@@ -3791,11 +3793,11 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3791
3793
  }), d = r.filter((v) => v.el.offsetHeight + v.top > s).sort((v, E) => v.top - E.top), p = (G = d.shift()) == null ? void 0 : G.el;
3792
3794
  if (!p) {
3793
3795
  const v = document.createElement("div");
3794
- return ($ = o[0].parentElement) == null || $.appendChild(v), v.style.height = s - (he(v).top - t) + "px", v;
3796
+ return (T = o[0].parentElement) == null || T.appendChild(v), v.style.height = s - (he(v).top - t) + "px", v;
3795
3797
  }
3796
- const A = he(p), h = A.top - t, F = A.left;
3798
+ const N = he(p), h = N.top - t, F = N.left;
3797
3799
  if (d.filter((v) => v.top < h + p.offsetHeight && v.top + v.el.offsetHeight - 1 > h && (v.left + v.el.offsetWidth - 1 < F || v.left + 1 > F + p.offsetWidth)).length) {
3798
- const v = (H = r.filter((E) => E.top < h).pop()) == null ? void 0 : H.el;
3800
+ const v = (B = r.filter((E) => E.top < h).pop()) == null ? void 0 : B.el;
3799
3801
  if (v != null && v.children.length) {
3800
3802
  const E = nt(v);
3801
3803
  return n(E, h) || v;
@@ -3825,17 +3827,17 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3825
3827
  console.time("layout");
3826
3828
  const s = he(t).top;
3827
3829
  let r = {}, d = 0, p = 0;
3828
- const A = (v) => {
3829
- const E = v % (l + n), X = Math.floor(v / (l + n)) * 2 + (E >= l ? 1 : 0), z = c(v, X);
3830
+ const N = (v) => {
3831
+ const E = v % (l + n), X = Math.floor(v / (l + n)) * 2 + (E >= l ? 1 : 0), H = c(v, X);
3830
3832
  r = {
3831
3833
  top: s,
3832
- width: parseFloat(z.width),
3833
- height: parseFloat(z.height)
3834
+ width: parseFloat(H.width),
3835
+ height: parseFloat(H.height)
3834
3836
  };
3835
3837
  };
3836
3838
  let h = [], F = 0;
3837
3839
  const Q = () => {
3838
- A(h.length), t.style.width = `${r.width}px`, h.push({
3840
+ N(h.length), t.style.width = `${r.width}px`, h.push({
3839
3841
  top: 0,
3840
3842
  data: [],
3841
3843
  width: r.width,
@@ -3846,85 +3848,85 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3846
3848
  const G = (v) => {
3847
3849
  const E = getComputedStyle(v);
3848
3850
  return he(v).top - r.top + parseFloat(E.borderTop) + parseFloat(E.paddingTop) + parseFloat(E.lineHeight) > h[h.length - 1].height;
3849
- }, $ = (v) => {
3851
+ }, T = (v) => {
3850
3852
  const E = getComputedStyle(v);
3851
3853
  return he(v).top + v.offsetHeight - r.top - (v.dataset.block === ke ? 0 : parseFloat(E.paddingBottom) - parseFloat(E.borderBottom)) <= h[h.length - 1].height;
3852
- }, H = (v = JSON.parse(JSON.stringify(a[F] || {}))) => {
3854
+ }, B = (v = JSON.parse(JSON.stringify(a[F] || {}))) => {
3853
3855
  if (F >= a.length || !Object.keys(v).length) {
3854
3856
  o([...h], !0), console.timeEnd("layout"), h = [], d = 0;
3855
3857
  return;
3856
3858
  }
3857
3859
  h[h.length - 1].data.push({ ...v }), o([...h]), window.requestAnimationFrame(() => {
3858
3860
  const E = Tt(v.__tag__, t), X = !v.isHidden && he(E);
3859
- let z = null;
3861
+ let H = null;
3860
3862
  if (p) {
3861
3863
  const _ = E.querySelector(`*[data-hutkey="${p}"]`), C = he(_);
3862
3864
  h[h.length - 1].top = r.top - C.top, h[h.length - 1].height = r.height - h[h.length - 1].top, p = 0;
3863
3865
  }
3864
3866
  if (X && X.height + X.top - r.top > h[h.length - 1].height)
3865
3867
  if (v.problemType)
3866
- h[h.length - 1].data.pop(), Q(), H({ ...v });
3867
- else if ($(E))
3868
- Q(), F++, H();
3868
+ h[h.length - 1].data.pop(), Q(), B({ ...v });
3869
+ else if (T(E))
3870
+ Q(), F++, B();
3869
3871
  else if (G(E))
3870
- h[h.length - 1].data.pop(), Q(), H({ ...v });
3872
+ h[h.length - 1].data.pop(), Q(), B({ ...v });
3871
3873
  else {
3872
- z = Lt(E, r.top, h[h.length - 1].height, h.length % (l + n) >= l);
3874
+ H = Lt(E, r.top, h[h.length - 1].height, h.length % (l + n) >= l);
3873
3875
  const _ = E.querySelector(`*[data-content="${v.id}"]`);
3874
- h[h.length - 1].height = he(z.cut).top - r.top, Q(), _ != null && _.contains(z.cut) ? (p = Date.now(), z.cut.dataset.hutkey = p, H({ ...v, content: _.innerHTML })) : (h[h.length - 1].data.pop(), H({ ...v }));
3876
+ h[h.length - 1].height = he(H.cut).top - r.top, Q(), _ != null && _.contains(H.cut) ? (p = Date.now(), H.cut.dataset.hutkey = p, B({ ...v, content: _.innerHTML })) : (h[h.length - 1].data.pop(), B({ ...v }));
3875
3877
  }
3876
3878
  else {
3877
3879
  let _ = [], C = [];
3878
3880
  v.children.some((w, R) => {
3879
- const B = Tt(w.__tag__, t), ye = he(B);
3881
+ const O = Tt(w.__tag__, t), ye = he(O);
3880
3882
  if (d) {
3881
- const pe = B.querySelector(`*[data-cutkey="${d}"]`), ie = he(pe);
3883
+ const pe = O.querySelector(`*[data-cutkey="${d}"]`), ie = he(pe);
3882
3884
  h[h.length - 1].top = r.top - ie.top, h[h.length - 1].height = r.height - h[h.length - 1].top, d = 0;
3883
3885
  }
3884
3886
  if (ye.height + ye.top - r.top > h[h.length - 1].height) {
3885
- if ($(B))
3887
+ if (T(O))
3886
3888
  _.push(w), C = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
3887
- else if (G(B))
3889
+ else if (G(O))
3888
3890
  C = v.children.slice(R);
3889
3891
  else {
3890
- z = Lt(B, r.top, h[h.length - 1].height, h.length % (l + n) >= l);
3891
- const pe = B.querySelector(`*[data-content="${w.id}"]`);
3892
- if (B === z.targetEl)
3892
+ H = Lt(O, r.top, h[h.length - 1].height, h.length % (l + n) >= l);
3893
+ const pe = O.querySelector(`*[data-content="${w.id}"]`);
3894
+ if (O === H.targetEl)
3893
3895
  _.push(w), C = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
3894
- else if (pe && pe.contains(z.cut))
3895
- d = Date.now(), z.cut.dataset.cutkey = d, w.content = pe.innerHTML, _.push(w), C = [{ ...w, content: pe.innerHTML }, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []], h[h.length - 1].height = he(z.cut).top - r.top;
3896
+ else if (pe && pe.contains(H.cut))
3897
+ d = Date.now(), H.cut.dataset.cutkey = d, w.content = pe.innerHTML, _.push(w), C = [{ ...w, content: pe.innerHTML }, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []], h[h.length - 1].height = he(H.cut).top - r.top;
3896
3898
  else {
3897
3899
  if (!C.length) {
3898
3900
  let ie = { ...w };
3899
3901
  switch (w.problemType) {
3900
3902
  case at.slove:
3901
- const fe = B.querySelector(`*[data-area="${w.id}"]`);
3902
- fe != null && fe.contains(z.cut) && (d = Date.now(), z.cut.dataset.cutkey = d, w.answerArea = fe.innerHTML), B.contains(z.targetEl) && (w.chunk += 1);
3903
+ const fe = O.querySelector(`*[data-area="${w.id}"]`);
3904
+ fe != null && fe.contains(H.cut) && (d = Date.now(), H.cut.dataset.cutkey = d, w.answerArea = fe.innerHTML), O.contains(H.targetEl) && (w.chunk += 1);
3903
3905
  break;
3904
3906
  case at.art:
3905
- const ue = B.querySelector(`*[data-bart="${w.id}"]`), D = z.targetEl.dataset.block === ke && z.targetEl.dataset.size ? z.targetEl : null, S = B.querySelector(`*[data-aart="${w.id}"]`);
3906
- if (ue != null && ue.contains(z.cut))
3907
- d = Date.now(), z.cut.dataset.cutkey = d, w.beforeArt = ue == null ? void 0 : ue.innerHTML, ie.beforeGuide = "", ie.afterArt = "", ie.endAnswerLen = -1;
3908
- else if (D) {
3909
- const T = parseInt(D.dataset.size);
3907
+ const ue = O.querySelector(`*[data-bart="${w.id}"]`), M = H.targetEl.dataset.block === ke && H.targetEl.dataset.size ? H.targetEl : null, $ = O.querySelector(`*[data-aart="${w.id}"]`);
3908
+ if (ue != null && ue.contains(H.cut))
3909
+ d = Date.now(), H.cut.dataset.cutkey = d, w.beforeArt = ue == null ? void 0 : ue.innerHTML, ie.beforeGuide = "", ie.afterArt = "", ie.endAnswerLen = -1;
3910
+ else if (M) {
3911
+ const S = parseInt(M.dataset.size);
3910
3912
  if (!w.artBlock)
3911
- if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen > T) {
3912
- const j = B.querySelector(`*[data-guide="${w.id}"]`), we = he(j);
3913
+ if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen > S) {
3914
+ const j = O.querySelector(`*[data-guide="${w.id}"]`), we = he(j);
3913
3915
  if (we.height + we.top - r.top > r.height) {
3914
3916
  j.innerHTML = w.beforeGuide.split("").map((be) => `<span>${be}</span>`).join("");
3915
- const ae = he(D).top + D.offsetHeight, re = [...Array.from(j.children)].findIndex((be) => he(be).top > ae);
3917
+ const ae = he(M).top + M.offsetHeight, re = [...Array.from(j.children)].findIndex((be) => he(be).top > ae);
3916
3918
  ie.beforeGuide = w.beforeGuide.substring(0, re), w.beforeGuide = w.beforeGuide.substring(re);
3917
3919
  } else
3918
3920
  w.beforeGuide = "";
3919
3921
  } else
3920
3922
  w.beforeGuide = "";
3921
- ie.endAnswerLen = T, w.startAnswerLen = T;
3923
+ ie.endAnswerLen = S, w.startAnswerLen = S;
3922
3924
  } else
3923
- S != null && S.contains(z.cut) ? (d = Date.now(), z.cut.dataset.cutkey = d, w.beforeArt = "", w.beforeGuide = "", w.startAnswerLen = 1, w.endAnswerLen = -1, w.afterArt = S.innerHTML) : z.targetEl === ue ? (ie.endAnswerLen = -1, ie.beforeGuide = "", ie.afterArt = "", w.beforeArt = "") : (ue == null ? void 0 : ue.previousElementSibling) === z.cut && (ie.endAnswerLen = -1, ie.beforeArt = "", ie.beforeGuide = "", ie.afterArt = "");
3924
- B.contains(z.targetEl) && (w.chunk += 1);
3925
+ $ != null && $.contains(H.cut) ? (d = Date.now(), H.cut.dataset.cutkey = d, w.beforeArt = "", w.beforeGuide = "", w.startAnswerLen = 1, w.endAnswerLen = -1, w.afterArt = $.innerHTML) : H.targetEl === ue ? (ie.endAnswerLen = -1, ie.beforeGuide = "", ie.afterArt = "", w.beforeArt = "") : (ue == null ? void 0 : ue.previousElementSibling) === H.cut && (ie.endAnswerLen = -1, ie.beforeArt = "", ie.beforeGuide = "", ie.afterArt = "");
3926
+ O.contains(H.targetEl) && (w.chunk += 1);
3925
3927
  break;
3926
3928
  }
3927
- B.contains(z.targetEl) && _.push(ie), d && (h[h.length - 1].height = he(z.cut).top - r.top);
3929
+ O.contains(H.targetEl) && _.push(ie), d && (h[h.length - 1].height = he(H.cut).top - r.top);
3928
3930
  }
3929
3931
  C = [w, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []];
3930
3932
  }
@@ -3932,11 +3934,11 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3932
3934
  return !0;
3933
3935
  } else
3934
3936
  _.push(w);
3935
- }), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, C.length ? (Q(), H({ ...v, isHidden: !0, children: C })) : (o([...h]), F++, H());
3937
+ }), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, C.length ? (Q(), B({ ...v, isHidden: !0, children: C })) : (o([...h]), F++, B());
3936
3938
  }
3937
3939
  });
3938
3940
  };
3939
- H();
3941
+ B();
3940
3942
  }, zt = window.CKEDITOR;
3941
3943
  zt.disableAutoInline = !0;
3942
3944
  const pt = `dx${Math.random().toString(32).substring(2)}`;
@@ -3956,7 +3958,7 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3956
3958
  emits: ["change", "focus", "blur"],
3957
3959
  setup(e, { emit: t }) {
3958
3960
  const a = e, l = Wt("ckeditorOrigin", ""), n = Y();
3959
- Me(() => a.readonly, () => c()), Xe(() => c());
3961
+ De(() => a.readonly, () => c()), Xe(() => c());
3960
3962
  const c = () => {
3961
3963
  if (window.CKEDITOR) {
3962
3964
  if (a.readonly) {
@@ -3986,18 +3988,18 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3986
3988
  const F = window.getComputedStyle(h);
3987
3989
  (F.display === "none" || F.width === "0px" && F.height === "0px" || F.opacity === "0" || F.visibility === "hidden") && h.remove();
3988
3990
  });
3989
- const A = (h = p) => {
3991
+ const N = (h = p) => {
3990
3992
  [...Array.from(h.childNodes)].forEach((F) => {
3991
3993
  var Q;
3992
3994
  if (F.nodeType === Node.ELEMENT_NODE && F.children.length)
3993
- A(F);
3995
+ N(F);
3994
3996
  else if (F.nodeType === Node.TEXT_NODE) {
3995
3997
  const G = document.createElement("span");
3996
- G.textContent = F.textContent, window.REGULAR.underscore.test(F.textContent || "") && (window.getComputedStyle(F.parentNode).wordBreak !== "break-all" || !(F.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (F.textContent || "").length > 5 && (G.innerHTML = (F.textContent || "").replace(window.REGULAR.underscore, (H) => H.length > 5 ? `<span style="word-break: break-all">${H}</span>` : H)), (Q = F.parentElement) == null || Q.replaceChild(G, F);
3998
+ G.textContent = F.textContent, window.REGULAR.underscore.test(F.textContent || "") && (window.getComputedStyle(F.parentNode).wordBreak !== "break-all" || !(F.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (F.textContent || "").length > 5 && (G.innerHTML = (F.textContent || "").replace(window.REGULAR.underscore, (B) => B.length > 5 ? `<span style="word-break: break-all">${B}</span>` : B)), (Q = F.parentElement) == null || Q.replaceChild(G, F);
3997
3999
  }
3998
4000
  });
3999
4001
  };
4000
- return A(), p.innerHTML;
4002
+ return N(), p.innerHTML;
4001
4003
  };
4002
4004
  return (d, p) => (i(), u("div", Fs, [
4003
4005
  a.readonly ? (i(), K(Ae, {
@@ -4016,10 +4018,10 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
4016
4018
  ]));
4017
4019
  }
4018
4020
  });
4019
- const Ds = /* @__PURE__ */ de(Ps, [["__scopeId", "data-v-1398ac85"]]);
4021
+ const Ms = /* @__PURE__ */ de(Ps, [["__scopeId", "data-v-1398ac85"]]);
4020
4022
  let Ye = (e) => {
4021
4023
  };
4022
- const Ms = {
4024
+ const Ds = {
4023
4025
  updated: function(e, t) {
4024
4026
  document.body.removeEventListener("click", Ye), Ye = (a) => {
4025
4027
  !e.contains(a.target) && t.value && t.value(a);
@@ -4044,8 +4046,8 @@ const As = {
4044
4046
  if (!l || e.getAttribute("disabled") === "true")
4045
4047
  return;
4046
4048
  d.stopPropagation(), d.preventDefault(), s = { x: d.clientX, y: d.clientY };
4047
- const p = n ? Math.min(Math.max(s.x - a.x + o.x, 0), c.offsetWidth - e.offsetWidth) : s.x - a.x + o.x, A = n ? Math.min(Math.max(s.y - a.y + o.y, 0), c.offsetHeight - e.offsetHeight) : s.y - a.y + o.y;
4048
- e.style.left = `${p}px`, e.style.top = `${A}px`, t.value && typeof t.value == "function" && t.value({ x: p, y: A });
4049
+ const p = n ? Math.min(Math.max(s.x - a.x + o.x, 0), c.offsetWidth - e.offsetWidth) : s.x - a.x + o.x, N = n ? Math.min(Math.max(s.y - a.y + o.y, 0), c.offsetHeight - e.offsetHeight) : s.y - a.y + o.y;
4050
+ e.style.left = `${p}px`, e.style.top = `${N}px`, t.value && typeof t.value == "function" && t.value({ x: p, y: N });
4049
4051
  }, document.addEventListener("mousemove", ot);
4050
4052
  },
4051
4053
  unmounted: () => {
@@ -4061,7 +4063,7 @@ const As = {
4061
4063
  },
4062
4064
  emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
4063
4065
  setup(e, { emit: t }) {
4064
- const a = e, l = Ms, n = As, c = [
4066
+ const a = e, l = Ds, n = As, c = [
4065
4067
  { left: "0", top: "0", cursor: "nwse-resize" },
4066
4068
  { left: "50%", top: "0", cursor: "ns-resize" },
4067
4069
  { left: "100%", top: "0", cursor: "nesw-resize" },
@@ -4070,49 +4072,49 @@ const As = {
4070
4072
  { left: "0", top: "100%", cursor: "nesw-resize" },
4071
4073
  { left: "50%", top: "100%", cursor: "ns-resize" },
4072
4074
  { left: "100%", top: "100%", cursor: "nwse-resize" }
4073
- ], o = Y({}), s = Y(), r = Y(0), d = Y(0), p = Y(), A = Y(), h = Y({}), F = Y(!1), Q = Y(), G = Y(), $ = Y(), H = N(() => a.imgData.map((D) => ({
4074
- ...D,
4075
- top: D.top - Math.floor(D.top / (g[a.layout.paper].height + a.pageMargin)) * a.pageMargin
4076
- }))), v = N(() => a.txtData.map((D) => ({
4077
- ...D,
4078
- top: D.top - Math.floor(D.top / (g[a.layout.paper].height + a.pageMargin)) * a.pageMargin
4079
- }))), E = N(() => Q.value ? Q.value.split("-")[0] === "img" ? H.value.find((S) => S.key === Q.value) : v.value.find((S) => S.key === Q.value) : null), X = N(() => E.value ? { [E.value.key]: { ...s.value } } : {});
4075
+ ], o = Y({}), s = Y(), r = Y(0), d = Y(0), p = Y(), N = Y(), h = Y({}), F = Y(!1), Q = Y(), G = Y(), T = Y(), B = A(() => a.imgData.map((M) => ({
4076
+ ...M,
4077
+ top: M.top - Math.floor(M.top / (g[a.layout.paper].height + a.pageMargin)) * a.pageMargin
4078
+ }))), v = A(() => a.txtData.map((M) => ({
4079
+ ...M,
4080
+ top: M.top - Math.floor(M.top / (g[a.layout.paper].height + a.pageMargin)) * a.pageMargin
4081
+ }))), E = A(() => Q.value ? Q.value.split("-")[0] === "img" ? B.value.find(($) => $.key === Q.value) : v.value.find(($) => $.key === Q.value) : null), X = A(() => E.value ? { [E.value.key]: { ...s.value } } : {});
4080
4082
  Xe(() => {
4081
4083
  p.value = document.body.querySelector(".__layout__");
4082
4084
  });
4083
- const z = (D) => {
4084
- s.value = { ...E.value, left: Math.max(D.x, 0), top: Math.max(D.y, 0) }, clearTimeout(A.value), A.value = setTimeout(() => {
4085
- var S;
4086
- ((S = E.value) == null ? void 0 : S.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
4085
+ const H = (M) => {
4086
+ s.value = { ...E.value, left: Math.max(M.x, 0), top: Math.max(M.y, 0) }, clearTimeout(N.value), N.value = setTimeout(() => {
4087
+ var $;
4088
+ (($ = E.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
4087
4089
  }, 400);
4088
- }, _ = (D) => {
4089
- F.value = D;
4090
+ }, _ = (M) => {
4091
+ F.value = M;
4090
4092
  }, C = () => {
4091
- const D = E.value, S = D.left + D.width / 2, T = D.top + D.height / 2, j = p.value.getBoundingClientRect() || {};
4092
- h.value = { x: S + j.left, y: T + j.top }, p.value.addEventListener("mousemove", w), p.value.addEventListener("mouseleave", R), p.value.addEventListener("mouseup", R);
4093
- }, w = (D) => {
4094
- D.stopPropagation(), D.preventDefault();
4095
- const S = D.clientX - h.value.x, T = h.value.y - D.clientY, j = Math.atan2(T, S) / (Math.PI / 180);
4093
+ const M = E.value, $ = M.left + M.width / 2, S = M.top + M.height / 2, j = p.value.getBoundingClientRect() || {};
4094
+ h.value = { x: $ + j.left, y: S + j.top }, p.value.addEventListener("mousemove", w), p.value.addEventListener("mouseleave", R), p.value.addEventListener("mouseup", R);
4095
+ }, w = (M) => {
4096
+ M.stopPropagation(), M.preventDefault();
4097
+ const $ = M.clientX - h.value.x, S = h.value.y - M.clientY, j = Math.atan2(S, $) / (Math.PI / 180);
4096
4098
  s.value = { ...E.value, rotate: -parseInt(j.toString()) };
4097
- }, R = (D) => {
4098
- D.stopPropagation(), D.preventDefault(), t("changeAbsImgItem", s.value), p.value.removeEventListener("mousemove", w), p.value.removeEventListener("mouseleave", R), p.value.removeEventListener("mouseup", R);
4099
- }, B = (D, S) => {
4100
- var T;
4101
- D.stopPropagation(), r.value = S, o.value = { x: D.clientX, y: D.clientY, ...E.value }, ((T = E.value) == null ? void 0 : T.key.split("-")[0]) === "img" ? p.value.addEventListener("mousemove", ye) : p.value.addEventListener("mousemove", pe), p.value.addEventListener("mouseleave", ie), p.value.addEventListener("mouseup", ie);
4102
- }, ye = (D) => {
4103
- const S = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, T = { ...E.value }, j = S.x > S.y ? "width" : "height";
4099
+ }, R = (M) => {
4100
+ M.stopPropagation(), M.preventDefault(), t("changeAbsImgItem", s.value), p.value.removeEventListener("mousemove", w), p.value.removeEventListener("mouseleave", R), p.value.removeEventListener("mouseup", R);
4101
+ }, O = (M, $) => {
4102
+ var S;
4103
+ M.stopPropagation(), r.value = $, o.value = { x: M.clientX, y: M.clientY, ...E.value }, ((S = E.value) == null ? void 0 : S.key.split("-")[0]) === "img" ? p.value.addEventListener("mousemove", ye) : p.value.addEventListener("mousemove", pe), p.value.addEventListener("mouseleave", ie), p.value.addEventListener("mouseup", ie);
4104
+ }, ye = (M) => {
4105
+ const $ = { x: M.clientX - o.value.x, y: M.clientY - o.value.y }, S = { ...E.value }, j = $.x > $.y ? "width" : "height";
4104
4106
  [
4105
4107
  // 0
4106
4108
  () => {
4107
4109
  const ae = {
4108
- width: o.value.width - S.x,
4109
- height: o.value.width * (1 - S.y / o.value.height)
4110
+ width: o.value.width - $.x,
4111
+ height: o.value.width * (1 - $.y / o.value.height)
4110
4112
  }[j], re = {
4111
- width: o.value.height * (1 - S.x / o.value.width),
4112
- height: o.value.height - S.y
4113
+ width: o.value.height * (1 - $.x / o.value.width),
4114
+ height: o.value.height - $.y
4113
4115
  }[j];
4114
4116
  s.value = {
4115
- ...T,
4117
+ ...S,
4116
4118
  width: ae,
4117
4119
  height: re,
4118
4120
  left: o.value.left - (ae - o.value.width),
@@ -4121,9 +4123,9 @@ const As = {
4121
4123
  },
4122
4124
  // 1
4123
4125
  () => {
4124
- const ae = o.value.width * (1 - S.y / o.value.height), re = o.value.height - S.y;
4126
+ const ae = o.value.width * (1 - $.y / o.value.height), re = o.value.height - $.y;
4125
4127
  s.value = {
4126
- ...T,
4128
+ ...S,
4127
4129
  width: ae,
4128
4130
  height: re,
4129
4131
  left: o.value.left - (ae - o.value.width) / 2,
@@ -4133,14 +4135,14 @@ const As = {
4133
4135
  // 2
4134
4136
  () => {
4135
4137
  const ae = {
4136
- width: o.value.height * (1 + S.x / o.value.width),
4137
- height: o.value.height - S.y
4138
+ width: o.value.height * (1 + $.x / o.value.width),
4139
+ height: o.value.height - $.y
4138
4140
  }[j];
4139
4141
  s.value = {
4140
- ...T,
4142
+ ...S,
4141
4143
  width: {
4142
- width: o.value.width + S.x,
4143
- height: o.value.width * (1 - S.y / o.value.height)
4144
+ width: o.value.width + $.x,
4145
+ height: o.value.width * (1 - $.y / o.value.height)
4144
4146
  }[j],
4145
4147
  height: ae,
4146
4148
  top: o.value.top - (ae - o.value.height)
@@ -4148,9 +4150,9 @@ const As = {
4148
4150
  },
4149
4151
  // 3
4150
4152
  () => {
4151
- const ae = o.value.width - S.x, re = o.value.height * (1 - S.x / o.value.width);
4153
+ const ae = o.value.width - $.x, re = o.value.height * (1 - $.x / o.value.width);
4152
4154
  s.value = {
4153
- ...T,
4155
+ ...S,
4154
4156
  width: ae,
4155
4157
  height: re,
4156
4158
  left: o.value.left - (ae - o.value.width),
@@ -4159,9 +4161,9 @@ const As = {
4159
4161
  },
4160
4162
  // 4
4161
4163
  () => {
4162
- const ae = o.value.width + S.x, re = o.value.height * (1 + S.x / o.value.width);
4164
+ const ae = o.value.width + $.x, re = o.value.height * (1 + $.x / o.value.width);
4163
4165
  s.value = {
4164
- ...T,
4166
+ ...S,
4165
4167
  width: ae,
4166
4168
  height: re,
4167
4169
  top: o.value.top - (re - o.value.height) / 2
@@ -4170,14 +4172,14 @@ const As = {
4170
4172
  // 5
4171
4173
  () => {
4172
4174
  const ae = {
4173
- width: o.value.width - S.x,
4174
- height: o.value.width * (1 + S.y / o.value.height)
4175
+ width: o.value.width - $.x,
4176
+ height: o.value.width * (1 + $.y / o.value.height)
4175
4177
  }[j], re = {
4176
- width: o.value.height * (1 - S.x / o.value.width),
4177
- height: o.value.height + S.y
4178
+ width: o.value.height * (1 - $.x / o.value.width),
4179
+ height: o.value.height + $.y
4178
4180
  }[j];
4179
4181
  s.value = {
4180
- ...T,
4182
+ ...S,
4181
4183
  width: ae,
4182
4184
  height: re,
4183
4185
  left: o.value.left - (ae - o.value.width)
@@ -4185,9 +4187,9 @@ const As = {
4185
4187
  },
4186
4188
  // 6
4187
4189
  () => {
4188
- const ae = o.value.width * (1 + S.y / o.value.height), re = o.value.height + S.y;
4190
+ const ae = o.value.width * (1 + $.y / o.value.height), re = o.value.height + $.y;
4189
4191
  s.value = {
4190
- ...T,
4192
+ ...S,
4191
4193
  width: ae,
4192
4194
  height: re,
4193
4195
  left: o.value.left - (ae - o.value.width) / 2
@@ -4196,103 +4198,103 @@ const As = {
4196
4198
  // 7
4197
4199
  () => {
4198
4200
  const ae = {
4199
- width: o.value.width + S.x,
4200
- height: o.value.width * (1 + S.y / o.value.height)
4201
+ width: o.value.width + $.x,
4202
+ height: o.value.width * (1 + $.y / o.value.height)
4201
4203
  }[j], re = {
4202
- width: o.value.height * (1 + S.x / o.value.width),
4203
- height: o.value.height + S.y
4204
+ width: o.value.height * (1 + $.x / o.value.width),
4205
+ height: o.value.height + $.y
4204
4206
  }[j];
4205
4207
  s.value = {
4206
- ...T,
4208
+ ...S,
4207
4209
  width: ae,
4208
4210
  height: re
4209
4211
  };
4210
4212
  }
4211
4213
  ][r.value]();
4212
- }, pe = (D) => {
4213
- const S = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, T = { ...E.value }, j = [
4214
+ }, pe = (M) => {
4215
+ const $ = { x: M.clientX - o.value.x, y: M.clientY - o.value.y }, S = { ...E.value }, j = [
4214
4216
  {
4215
- ...T,
4216
- width: o.value.width - S.x,
4217
- height: o.value.height - S.y,
4218
- left: o.value.left + S.x,
4219
- top: o.value.top + S.y
4217
+ ...S,
4218
+ width: o.value.width - $.x,
4219
+ height: o.value.height - $.y,
4220
+ left: o.value.left + $.x,
4221
+ top: o.value.top + $.y
4220
4222
  },
4221
4223
  {
4222
- ...T,
4223
- height: o.value.height - S.y,
4224
- top: o.value.top + S.y
4224
+ ...S,
4225
+ height: o.value.height - $.y,
4226
+ top: o.value.top + $.y
4225
4227
  },
4226
4228
  {
4227
- ...T,
4228
- width: o.value.width + S.x,
4229
- height: o.value.height - S.y,
4230
- top: o.value.top + S.y
4229
+ ...S,
4230
+ width: o.value.width + $.x,
4231
+ height: o.value.height - $.y,
4232
+ top: o.value.top + $.y
4231
4233
  },
4232
4234
  {
4233
- ...T,
4234
- width: o.value.width - S.x,
4235
- left: o.value.left + S.x
4235
+ ...S,
4236
+ width: o.value.width - $.x,
4237
+ left: o.value.left + $.x
4236
4238
  },
4237
4239
  {
4238
- ...T,
4239
- width: o.value.width + S.x
4240
+ ...S,
4241
+ width: o.value.width + $.x
4240
4242
  },
4241
4243
  {
4242
- ...T,
4243
- width: o.value.width - S.x,
4244
- height: o.value.height + S.y,
4245
- left: o.value.left + S.x
4244
+ ...S,
4245
+ width: o.value.width - $.x,
4246
+ height: o.value.height + $.y,
4247
+ left: o.value.left + $.x
4246
4248
  },
4247
4249
  {
4248
- ...T,
4249
- height: o.value.height + S.y
4250
+ ...S,
4251
+ height: o.value.height + $.y
4250
4252
  },
4251
4253
  {
4252
- ...T,
4253
- width: o.value.width + S.x,
4254
- height: o.value.height + S.y
4254
+ ...S,
4255
+ width: o.value.width + $.x,
4256
+ height: o.value.height + $.y
4255
4257
  }
4256
4258
  ];
4257
4259
  s.value = j[r.value];
4258
4260
  }, ie = () => {
4259
- var D;
4260
- p.value.removeEventListener("mousemove", ye), p.value.removeEventListener("mousemove", pe), p.value.removeEventListener("mouseleave", ie), p.value.removeEventListener("mouseup", ie), ((D = E.value) == null ? void 0 : D.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
4261
- }, fe = (D) => {
4262
- if (!D || D === E.value.content) {
4261
+ var M;
4262
+ p.value.removeEventListener("mousemove", ye), p.value.removeEventListener("mousemove", pe), p.value.removeEventListener("mouseleave", ie), p.value.removeEventListener("mouseup", ie), ((M = E.value) == null ? void 0 : M.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
4263
+ }, fe = (M) => {
4264
+ if (!M || M === E.value.content) {
4263
4265
  d.value++;
4264
4266
  return;
4265
4267
  }
4266
- t("changeAbsTxtItem", { ...E.value, content: D });
4267
- }, ue = (D, S) => {
4268
+ t("changeAbsTxtItem", { ...E.value, content: M });
4269
+ }, ue = (M, $) => {
4268
4270
  var j;
4269
- const T = document.body.querySelector(`.cke_editor_${pt}`);
4270
- !D && ((j = (S == null ? void 0 : S.target).dataset) != null && j.safe || [...G.value, ...$.value].find((we) => we.contains(S == null ? void 0 : S.target)) || T && window.getComputedStyle(T).display !== "none") || (Q.value = D == null ? void 0 : D.key, s.value = D ? { ...D } : null);
4271
+ const S = document.body.querySelector(`.cke_editor_${pt}`);
4272
+ !M && ((j = ($ == null ? void 0 : $.target).dataset) != null && j.safe || [...G.value, ...T.value].find((we) => we.contains($ == null ? void 0 : $.target)) || S && window.getComputedStyle(S).display !== "none") || (Q.value = M == null ? void 0 : M.key, s.value = M ? { ...M } : null);
4271
4273
  };
4272
- return (D, S) => (i(), u(P, null, [
4273
- (i(!0), u(P, null, Z(H.value, (T) => {
4274
+ return (M, $) => (i(), u(P, null, [
4275
+ (i(!0), u(P, null, Z(B.value, (S) => {
4274
4276
  var j, we, ae, re, be, b, I;
4275
4277
  return gt((i(), u("div", {
4276
- key: T.id,
4278
+ key: S.id,
4277
4279
  ref_for: !0,
4278
4280
  ref_key: "imgViewList",
4279
4281
  ref: G,
4280
4282
  "data-safe": "true",
4281
- class: oe(["absolute", ((j = E.value) == null ? void 0 : j.key) === T.key ? "z-8" : "z-7"]),
4282
- style: q({ left: Math.max(((we = X.value[T.key]) == null ? void 0 : we.left) || T.left, 0) + "px", top: Math.max(((ae = X.value[T.key]) == null ? void 0 : ae.top) || T.top, 0) + "px", width: (((re = X.value[T.key]) == null ? void 0 : re.width) || T.width) + "px", height: (((be = X.value[T.key]) == null ? void 0 : be.height) || T.height) + "px", transform: `rotate(${((b = X.value[T.key]) == null ? void 0 : b.rotate) || T.rotate}deg)` }),
4283
- onMousedown: Le((le) => ue(T), ["stop"]),
4283
+ class: oe(["absolute", ((j = E.value) == null ? void 0 : j.key) === S.key ? "z-8" : "z-7"]),
4284
+ style: q({ left: Math.max(((we = X.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = X.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = X.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = X.value[S.key]) == null ? void 0 : be.height) || S.height) + "px", transform: `rotate(${((b = X.value[S.key]) == null ? void 0 : b.rotate) || S.rotate}deg)` }),
4285
+ onMousedown: Le((le) => ue(S), ["stop"]),
4284
4286
  "data-block": x(Ee)
4285
4287
  }, [
4286
4288
  f("img", {
4287
- src: T.url
4289
+ src: S.url
4288
4290
  }, null, 8, Bs),
4289
- ((I = E.value) == null ? void 0 : I.key) === T.key ? (i(), u(P, { key: 0 }, [
4291
+ ((I = E.value) == null ? void 0 : I.key) === S.key ? (i(), u(P, { key: 0 }, [
4290
4292
  f("span", Os, [
4291
4293
  V(_e, {
4292
4294
  name: "close",
4293
4295
  width: 2,
4294
4296
  class: "cursor-pointer",
4295
- onClick: (le) => t("delAbsImgItem", T)
4297
+ onClick: (le) => t("delAbsImgItem", S)
4296
4298
  }, null, 8, ["onClick"])
4297
4299
  ]),
4298
4300
  f("div", zs, [
@@ -4300,7 +4302,7 @@ const As = {
4300
4302
  key: le,
4301
4303
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4302
4304
  style: q({ ...c[W], transform: "translate(-50%, -50%)" }),
4303
- onMousedown: Le((te) => B(te, W), ["stop"])
4305
+ onMousedown: Le((te) => O(te, W), ["stop"])
4304
4306
  }, null, 44, Hs)), 64))
4305
4307
  ]),
4306
4308
  f("span", {
@@ -4312,43 +4314,43 @@ const As = {
4312
4314
  width: 2
4313
4315
  })
4314
4316
  ], 40, Rs)
4315
- ], 64)) : M("", !0)
4317
+ ], 64)) : D("", !0)
4316
4318
  ], 46, Ns)), [
4317
- [x(n), z],
4319
+ [x(n), H],
4318
4320
  [x(l), (le) => ue(null, le)]
4319
4321
  ]);
4320
4322
  }), 128)),
4321
- (i(!0), u(P, null, Z(v.value, (T) => {
4323
+ (i(!0), u(P, null, Z(v.value, (S) => {
4322
4324
  var j, we, ae, re, be, b, I;
4323
4325
  return gt((i(), u("div", {
4324
- key: T.id,
4326
+ key: S.id,
4325
4327
  ref_for: !0,
4326
4328
  ref_key: "txtViewList",
4327
- ref: $,
4329
+ ref: T,
4328
4330
  disabled: F.value,
4329
4331
  "data-safe": "true",
4330
- class: oe(["absolute", ((j = E.value) == null ? void 0 : j.key) === T.key ? "z-8 bg-white" : "z-7"]),
4331
- style: q({ left: Math.max(((we = X.value[T.key]) == null ? void 0 : we.left) || T.left, 0) + "px", top: Math.max(((ae = X.value[T.key]) == null ? void 0 : ae.top) || T.top, 0) + "px", width: (((re = X.value[T.key]) == null ? void 0 : re.width) || T.width) + "px", height: (((be = X.value[T.key]) == null ? void 0 : be.height) || T.height) + "px" }),
4332
- onMousedown: Le((le) => ue(T), ["stop"]),
4332
+ class: oe(["absolute", ((j = E.value) == null ? void 0 : j.key) === S.key ? "z-8 bg-white" : "z-7"]),
4333
+ style: q({ left: Math.max(((we = X.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = X.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = X.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = X.value[S.key]) == null ? void 0 : be.height) || S.height) + "px" }),
4334
+ onMousedown: Le((le) => ue(S), ["stop"]),
4333
4335
  "data-block": x(Ee)
4334
4336
  }, [
4335
- (i(), K(Ds, {
4337
+ (i(), K(Ms, {
4336
4338
  key: d.value,
4337
4339
  class: "border-0 relative z-4",
4338
- readonly: ((b = E.value) == null ? void 0 : b.key) !== T.key,
4339
- value: T.content,
4340
- name: T.id.toString(),
4340
+ readonly: ((b = E.value) == null ? void 0 : b.key) !== S.key,
4341
+ value: S.content,
4342
+ name: S.id.toString(),
4341
4343
  onChange: fe,
4342
- onFocus: S[0] || (S[0] = (le) => _(!0)),
4343
- onBlur: S[1] || (S[1] = (le) => _(!1))
4344
+ onFocus: $[0] || ($[0] = (le) => _(!0)),
4345
+ onBlur: $[1] || ($[1] = (le) => _(!1))
4344
4346
  }, null, 8, ["readonly", "value", "name"])),
4345
- ((I = E.value) == null ? void 0 : I.key) === T.key ? (i(), u(P, { key: 0 }, [
4347
+ ((I = E.value) == null ? void 0 : I.key) === S.key ? (i(), u(P, { key: 0 }, [
4346
4348
  f("span", Gs, [
4347
4349
  V(_e, {
4348
4350
  name: "close",
4349
4351
  width: 2,
4350
4352
  class: "cursor-pointer",
4351
- onClick: (le) => t("delAbsTxtItem", T)
4353
+ onClick: (le) => t("delAbsTxtItem", S)
4352
4354
  }, null, 8, ["onClick"])
4353
4355
  ]),
4354
4356
  f("div", Ys, [
@@ -4356,12 +4358,12 @@ const As = {
4356
4358
  key: le,
4357
4359
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4358
4360
  style: q({ ...c[W], transform: "translate(-50%, -50%)" }),
4359
- onMousedown: (te) => B(te, W)
4361
+ onMousedown: (te) => O(te, W)
4360
4362
  }, null, 44, qs)), 64))
4361
4363
  ])
4362
- ], 64)) : M("", !0)
4364
+ ], 64)) : D("", !0)
4363
4365
  ], 46, Ws)), [
4364
- [x(n), z],
4366
+ [x(n), H],
4365
4367
  [x(l), (le) => ue(null, le)]
4366
4368
  ]);
4367
4369
  }), 128))
@@ -4391,56 +4393,56 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4391
4393
  setup(e, { emit: t }) {
4392
4394
  const a = e;
4393
4395
  Gt("ckeditorOrigin", a.ckeditorOrigin);
4394
- const l = Y([]), n = Y([]), c = Y(2), o = Y(0), s = Y(0), r = Y(), d = Y([]), p = Y([]), A = Y([]), h = Y([]), F = N(() => a.data.map((b) => ({
4396
+ const l = Y([]), n = Y([]), c = Y(2), o = Y(0), s = Y(0), r = Y(), d = Y([]), p = Y([]), N = Y([]), h = Y([]), F = A(() => a.data.map((b) => ({
4395
4397
  ...b,
4396
4398
  __tag__: Ct(),
4397
4399
  rawChildren: b.children,
4398
4400
  children: b.children.map((I) => ({ ...I, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: Ct() }))
4399
- }))), Q = N(() => {
4401
+ }))), Q = A(() => {
4400
4402
  const b = F.value[F.value.length - 1], I = b.rawChildren[b.rawChildren.length - 1];
4401
4403
  return X.value && [m.slove].includes(I == null ? void 0 : I.problemType) && I.id;
4402
- }), G = N(() => {
4404
+ }), G = A(() => {
4403
4405
  var b;
4404
4406
  return a.layout.bindFlag && !!((b = Oe.find((I) => I.code === a.layout.paper)) != null && b.isMultCol);
4405
- }), $ = N(() => a.isFinal ? 0 : 10), H = N(() => a.isFinal ? 10 : 0), v = N(() => Math.floor(l.value.length / (a.layout.column + a.layout.backColumn)) * 2 + Math.ceil(l.value.length % (a.layout.column + a.layout.backColumn) / a.layout.column) || c.value || 1), E = N(() => Math.ceil(v.value / 2) * 2), X = N(() => ["sheet", "sheetCard"].includes(a.layout.mode)), z = N(() => X.value ? $e : { top: 0, right: 0, bottom: 0, left: 0 }), _ = N(() => typeof a.layout.padding == "number" ? { left: a.layout.padding, top: a.layout.padding, right: a.layout.padding, bottom: a.layout.padding } : a.layout.padding || ct[a.layout.mode][a.layout.paper]), C = N(() => g[a.layout.paper].width - _.value.left - _.value.right), w = N(() => g[a.layout.paper].height - _.value.top - _.value.bottom), R = N(() => (C.value - (s.value ? s.value + T(0) : 0) + T(0)) / a.layout.column - T(0)), B = N(() => ({
4407
+ }), T = A(() => a.isFinal ? 0 : 10), B = A(() => a.isFinal ? 10 : 0), v = A(() => Math.floor(l.value.length / (a.layout.column + a.layout.backColumn)) * 2 + Math.ceil(l.value.length % (a.layout.column + a.layout.backColumn) / a.layout.column) || c.value || 1), E = A(() => Math.ceil(v.value / 2) * 2), X = A(() => ["sheet", "sheetCard"].includes(a.layout.mode)), H = A(() => X.value ? $e : { top: 0, right: 0, bottom: 0, left: 0 }), _ = A(() => typeof a.layout.padding == "number" ? { left: a.layout.padding, top: a.layout.padding, right: a.layout.padding, bottom: a.layout.padding } : a.layout.padding || ct[a.layout.mode][a.layout.paper]), C = A(() => g[a.layout.paper].width - _.value.left - _.value.right), w = A(() => g[a.layout.paper].height - _.value.top - _.value.bottom), R = A(() => (C.value - (s.value ? s.value + S(0) : 0) + S(0)) / a.layout.column - S(0)), O = A(() => ({
4406
4408
  width: `${g[a.layout.paper].width}px`,
4407
- height: `${(g[a.layout.paper].height + $.value) * E.value - $.value}px`
4408
- })), ye = N(() => ({
4409
+ height: `${(g[a.layout.paper].height + T.value) * E.value - T.value}px`
4410
+ })), ye = A(() => ({
4409
4411
  width: `${g[a.layout.paper].width}px`,
4410
4412
  height: `${g[a.layout.paper].height}px`,
4411
4413
  padding: `${_.value.top}px ${_.value.right}px ${_.value.bottom}px ${_.value.left}px`,
4412
- marginBottom: `${$.value}px`
4413
- })), pe = N(() => {
4414
+ marginBottom: `${T.value}px`
4415
+ })), pe = A(() => {
4414
4416
  var I;
4415
4417
  const b = (I = Oe.find((le) => le.code === a.layout.paper)) == null ? void 0 : I.isMultCol;
4416
4418
  return {
4417
- left: `${_.value.left + (s.value ? s.value + T(0) : 0)}px`,
4419
+ left: `${_.value.left + (s.value ? s.value + S(0) : 0)}px`,
4418
4420
  top: `${_.value.top}px`,
4419
4421
  width: b ? `${R.value}px` : `${C.value}px`
4420
4422
  };
4421
4423
  });
4422
- Me(() => [JSON.stringify({ ...a.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(a.fontConfig), JSON.stringify(a.info), JSON.stringify(a.data)].join(""), () => {
4424
+ De(() => [JSON.stringify({ ...a.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(a.fontConfig), JSON.stringify(a.info), JSON.stringify(a.data)].join(""), () => {
4423
4425
  setTimeout(() => {
4424
4426
  re();
4425
4427
  }, 100);
4426
- }, { immediate: !0 }), Me(() => G.value, () => {
4428
+ }, { immediate: !0 }), De(() => G.value, () => {
4427
4429
  s.value = G.value ? 100 : 0;
4428
4430
  }, { immediate: !0 });
4429
4431
  const ie = (b) => b % (a.layout.column + a.layout.backColumn) >= a.layout.column ? a.layout.backColumn : a.layout.column, fe = (b, I) => Math.floor(I / 2) * (a.layout.column + a.layout.backColumn) + I % 2 * a.layout.column + b, ue = (b) => {
4430
4432
  const I = b % (a.layout.column + a.layout.backColumn);
4431
4433
  return I >= a.layout.column ? I - a.layout.column : I;
4432
- }, D = (b, I) => {
4434
+ }, M = (b, I) => {
4433
4435
  b ? d.value[I] = b : d.value.splice(I, 1);
4434
- }, S = (b, I) => {
4436
+ }, $ = (b, I) => {
4435
4437
  b ? p.value[I] = b : p.value.splice(I, 1);
4436
- }, T = (b) => Pt[a.layout.mode][a.layout.paper][ie(b)] || 0, j = (b, I = !1) => (C.value - (s.value ? s.value + T(b) : 0) + T(b)) / ie(b) - T(b) - z.value.left - z.value.right + (I ? z.value.left + z.value.right : 0), we = (b, I) => {
4438
+ }, S = (b) => Pt[a.layout.mode][a.layout.paper][ie(b)] || 0, j = (b, I = !1) => (C.value - (s.value ? s.value + S(b) : 0) + S(b)) / ie(b) - S(b) - H.value.left - H.value.right + (I ? H.value.left + H.value.right : 0), we = (b, I) => {
4437
4439
  var W, te;
4438
- const le = b % (a.layout.column + a.layout.backColumn) ? 0 : ((W = A.value[Math.min(I, 1)]) == null ? void 0 : W.offsetHeight) || 0;
4440
+ const le = b % (a.layout.column + a.layout.backColumn) ? 0 : ((W = N.value[Math.min(I, 1)]) == null ? void 0 : W.offsetHeight) || 0;
4439
4441
  return {
4440
- left: `${_.value.left + (I % 2 ? 0 : s.value ? s.value + T(b) : 0) + z.value.left + ue(b) * (j(b) + T(b) + z.value.left + z.value.right)}px`,
4441
- top: `${le + _.value.top + (!I && !b ? 0 : z.value.top)}px`,
4442
+ left: `${_.value.left + (I % 2 ? 0 : s.value ? s.value + S(b) : 0) + H.value.left + ue(b) * (j(b) + S(b) + H.value.left + H.value.right)}px`,
4443
+ top: `${le + _.value.top + (!I && !b ? 0 : H.value.top)}px`,
4442
4444
  width: `${j(b)}px`,
4443
- height: `${w.value - le - (!I && !b ? 0 : z.value.top) - z.value.bottom}px`,
4445
+ height: `${w.value - le - (!I && !b ? 0 : H.value.top) - H.value.bottom}px`,
4444
4446
  contentHeight: `${(te = l.value[b]) == null ? void 0 : te.height}px`
4445
4447
  };
4446
4448
  }, ae = (b, I = !1) => {
@@ -4455,7 +4457,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4455
4457
  layout: a.layout,
4456
4458
  pageTotal: v.value,
4457
4459
  bindWidth: s.value,
4458
- pageMargin: $.value,
4460
+ pageMargin: T.value,
4459
4461
  pageDom: d.value.slice(0, v.value),
4460
4462
  colDom: p.value.map((W) => W.col),
4461
4463
  colViewDom: p.value.map((W) => W.colView)
@@ -4480,7 +4482,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4480
4482
  return (b, I) => {
4481
4483
  var le;
4482
4484
  return i(), u(P, null, [
4483
- b.readonly ? M("", !0) : (i(), K($s, {
4485
+ b.readonly ? D("", !0) : (i(), K($s, {
4484
4486
  key: 0,
4485
4487
  ColList: l.value,
4486
4488
  ColDom: p.value.map((W) => W.col),
@@ -4501,7 +4503,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4501
4503
  ref: r
4502
4504
  }, [
4503
4505
  n.value.length ? (i(!0), u(P, { key: 0 }, Z((le = n.value[n.value.length - 1]) == null ? void 0 : le.data, (W, te) => (i(), u(P, null, [
4504
- W.isHidden ? M("", !0) : (i(), K(St, {
4506
+ W.isHidden ? D("", !0) : (i(), K(St, {
4505
4507
  key: 0,
4506
4508
  item: W,
4507
4509
  showColBorder: X.value,
@@ -4527,24 +4529,24 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4527
4529
  target: b.target,
4528
4530
  width: j(n.value.length - 1)
4529
4531
  }, null, 8, ["data", "layout", "target", "width"]))
4530
- ], 64))), 256)) : M("", !0)
4532
+ ], 64))), 256)) : D("", !0)
4531
4533
  ], 512),
4532
4534
  f("div", {
4533
4535
  class: oe(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", b.layout.redFlag && "red_mode", b.readonly && "pointer-events-none"]),
4534
- style: q(B.value)
4536
+ style: q(O.value)
4535
4537
  }, [
4536
4538
  V(Us, {
4537
4539
  imgData: b.imgData,
4538
4540
  txtData: b.txtData,
4539
4541
  layout: b.layout,
4540
- pageMargin: H.value,
4542
+ pageMargin: B.value,
4541
4543
  onChangeAbsImgItem: I[3] || (I[3] = (W) => t("changeAbsImgItem", W)),
4542
4544
  onDelAbsImgItem: I[4] || (I[4] = (W) => t("delAbsImgItem", W)),
4543
4545
  onChangeAbsTxtItem: I[5] || (I[5] = (W) => t("changeAbsTxtItem", W)),
4544
4546
  onDelAbsTxtItem: I[6] || (I[6] = (W) => t("delAbsTxtItem", W))
4545
4547
  }, null, 8, ["imgData", "txtData", "layout", "pageMargin"]),
4546
4548
  (i(), u("svg", {
4547
- viewBox: `0 0 ${parseFloat(B.value.width)} ${parseFloat(B.value.height)}`,
4549
+ viewBox: `0 0 ${parseFloat(O.value.width)} ${parseFloat(O.value.height)}`,
4548
4550
  version: "1.1",
4549
4551
  xmlns: "http://www.w3.org/2000/svg",
4550
4552
  key: o.value
@@ -4554,7 +4556,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4554
4556
  key: W,
4555
4557
  class: "bg-white relative flex justify-between overflow-hidden box-border",
4556
4558
  ref_for: !0,
4557
- ref: (Se) => D(Se, te),
4559
+ ref: (Se) => M(Se, te),
4558
4560
  style: q(ye.value)
4559
4561
  }, [
4560
4562
  te < v.value ? (i(), u(P, { key: 0 }, [
@@ -4563,7 +4565,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4563
4565
  currentPage: te,
4564
4566
  totalPage: v.value,
4565
4567
  columnContentWidth: j(te % 2 ? b.layout.column : 0, !0),
4566
- columnMargin: T(te % 2 ? b.layout.column : 0),
4568
+ columnMargin: S(te % 2 ? b.layout.column : 0),
4567
4569
  bindWidth: s.value,
4568
4570
  padding: _.value
4569
4571
  }, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
@@ -4572,7 +4574,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4572
4574
  info: b.info,
4573
4575
  layout: b.layout,
4574
4576
  onChange: I[7] || (I[7] = (Se) => t("changeInfo", Se))
4575
- }, null, 8, ["info", "layout"])) : M("", !0),
4577
+ }, null, 8, ["info", "layout"])) : D("", !0),
4576
4578
  V(Za, {
4577
4579
  ref_for: !0,
4578
4580
  ref_key: "bindDom",
@@ -4586,7 +4588,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4586
4588
  key: 1,
4587
4589
  ref_for: !0,
4588
4590
  ref_key: "titleDom",
4589
- ref: A,
4591
+ ref: N,
4590
4592
  class: oe(["absolute text-black", te === 1 && v.value < 3 && "opacity-0 pointer-events-none"]),
4591
4593
  style: q(pe.value)
4592
4594
  }, [
@@ -4611,7 +4613,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4611
4613
  layout: b.layout,
4612
4614
  isBindFlag: G.value
4613
4615
  }, null, 8, ["layout", "isBindFlag"]),
4614
- te ? M("", !0) : (i(), K(Ya, {
4616
+ te ? D("", !0) : (i(), K(Ya, {
4615
4617
  key: 0,
4616
4618
  layout: b.layout,
4617
4619
  data: b.data
@@ -4620,11 +4622,11 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4620
4622
  key: 1,
4621
4623
  info: b.info,
4622
4624
  layout: b.layout
4623
- }, null, 8, ["info", "layout"])) : M("", !0)
4624
- ], 6)) : M("", !0),
4625
+ }, null, 8, ["info", "layout"])) : D("", !0)
4626
+ ], 6)) : D("", !0),
4625
4627
  (i(!0), u(P, null, Z(te % 2 ? b.layout.backColumn : b.layout.column, (Se, Pe) => (i(), K(Qa, {
4626
4628
  ref_for: !0,
4627
- ref: (We) => S(We, fe(Pe, te)),
4629
+ ref: (We) => $(We, fe(Pe, te)),
4628
4630
  styleInfo: we(fe(Pe, te), te),
4629
4631
  column: b.layout.column,
4630
4632
  currentColumn: fe(Pe, te),
@@ -4636,7 +4638,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4636
4638
  (i(!0), u(P, null, Z(((We = l.value[fe(Pe, te)]) == null ? void 0 : We.data) || [], (ge, Ht) => {
4637
4639
  var mt;
4638
4640
  return i(), u(P, null, [
4639
- ge.isHidden ? M("", !0) : (i(), K(St, {
4641
+ ge.isHidden ? D("", !0) : (i(), K(St, {
4640
4642
  key: 0,
4641
4643
  item: ge,
4642
4644
  showColBorder: X.value,
@@ -4664,7 +4666,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4664
4666
  key: 0,
4665
4667
  class: "border-t",
4666
4668
  "data-block": x(Ee)
4667
- }, null, 8, Xs)) : M("", !0)
4669
+ }, null, 8, Xs)) : D("", !0)
4668
4670
  ], 42, Vs)) : (i(), K(Ge, {
4669
4671
  key: 2,
4670
4672
  data: ge,
@@ -4680,7 +4682,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4680
4682
  }),
4681
4683
  _: 2
4682
4684
  }, 1032, ["styleInfo", "column", "currentColumn", "showColBorder"]))), 256))
4683
- ], 64)) : M("", !0)
4685
+ ], 64)) : D("", !0)
4684
4686
  ], 4))), 128))
4685
4687
  ]))
4686
4688
  ], 8, js))