alit-layout 1.1.36 → 1.1.38

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 +570 -552
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as ne, computed as W, openBlock as r, createElementBlock as h, Fragment as O, renderList as le, createElementVNode as k, normalizeStyle as X, unref as L, toDisplayString as te, createCommentVNode as B, ref as V, watch as De, normalizeClass as oe, createBlock as ee, createTextVNode as et, createVNode as ae, pushScopeId as Ye, popScopeId as Ke, renderSlot as mt, onMounted as Ue, nextTick as lt, withModifiers as Ee, resolveComponent as Qt, resolveDynamicComponent as wt, normalizeProps as kt, guardReactiveProps as xt, withCtx as Et, inject as qt, withDirectives as Ct, provide as Yt } from "vue";
1
+ import { defineComponent as ne, computed as W, openBlock as r, createElementBlock as h, Fragment as O, renderList as le, createElementVNode as k, normalizeStyle as X, unref as L, toDisplayString as te, createCommentVNode as B, ref as V, watch as De, normalizeClass as oe, createBlock as ee, createTextVNode as et, createVNode as ae, pushScopeId as Ye, popScopeId as Ke, renderSlot as mt, onMounted as Ue, nextTick as lt, withModifiers as Ee, resolveComponent as qt, resolveDynamicComponent as wt, normalizeProps as kt, guardReactiveProps as xt, withCtx as Et, inject as Qt, withDirectives as Ct, provide as Yt } from "vue";
2
2
  const Re = {
3
3
  // 选择题
4
4
  choice: "MULTIPLE_RADIO_QUESTION",
@@ -48,7 +48,7 @@ const Re = {
48
48
  }, u = {
49
49
  ...Pt,
50
50
  ...Ge
51
- }, Qe = [
51
+ }, qe = [
52
52
  { name: "A3", code: "a3", size: "420*297mm", isMultCol: !0 },
53
53
  { name: "A3+", code: "a3+", size: "463*327mm", isMultCol: !0, disabled: !0 },
54
54
  { name: "A4", code: "a4", size: "210*297mm", isFullTitle: !0 },
@@ -1799,7 +1799,7 @@ const Re = {
1799
1799
  code: "star",
1800
1800
  value: "star"
1801
1801
  }
1802
- }, qe = {
1802
+ }, Qe = {
1803
1803
  left_down: {
1804
1804
  name: "左下",
1805
1805
  code: "left_down",
@@ -1826,7 +1826,7 @@ const Re = {
1826
1826
  sloveScoreHalfErr: "简易打分条含小数分值",
1827
1827
  absImgOverErr: "浮层图片超出纸张",
1828
1828
  absTxtOverErr: "浮层文本超出纸张"
1829
- }, li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1829
+ }, ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1830
1830
  __proto__: null,
1831
1831
  ErrLayoutCode: go,
1832
1832
  MixNodeTag: Bt,
@@ -1850,10 +1850,10 @@ const Re = {
1850
1850
  paddDiff: Vt,
1851
1851
  pageMargin: Xt,
1852
1852
  pagePadding: yt,
1853
- pagePointPosition: qe,
1853
+ pagePointPosition: Qe,
1854
1854
  pageSize: x,
1855
1855
  pageTitleBlockCol: Zt,
1856
- paper: Qe,
1856
+ paper: qe,
1857
1857
  problemLayout: po,
1858
1858
  problemLayoutKey: d,
1859
1859
  problemLayoutVal: f,
@@ -1885,7 +1885,7 @@ const Re = {
1885
1885
  "8k": "TYPE_8K",
1886
1886
  "16k": "TYPE_16K",
1887
1887
  "32k": "TYPE_32K"
1888
- }, fe = window.btoa(Math.random().toString(32)).substring(0, 10), I = {
1888
+ }, fe = window.btoa(Math.random().toString(32)).substring(0, 10), $ = {
1889
1889
  // 定位点 主定位点 lt rt lb rb 辅助定位点 t b
1890
1890
  point: `__${fe}point`,
1891
1891
  // 页码点
@@ -1970,16 +1970,16 @@ const Re = {
1970
1970
  lb: { left: `${t.padding.left - xe}px`, bottom: `${t.padding.bottom - xe}px` },
1971
1971
  rb: { right: `${t.padding.right - xe}px`, bottom: `${t.padding.bottom - xe}px` }
1972
1972
  })[c], i = () => ({
1973
- [qe.left_down.code]: {
1973
+ [Qe.left_down.code]: {
1974
1974
  left: `${t.padding.left - xe + 100}px`,
1975
1975
  bottom: `${t.padding.bottom - xe}px`
1976
1976
  },
1977
- [qe.right_up.code]: {
1977
+ [Qe.right_up.code]: {
1978
1978
  right: `${t.padding.right - xe + 100}px`,
1979
1979
  top: `${t.padding.top - xe}px`
1980
1980
  }
1981
1981
  })[t.layout.pagePoint], a = (c, y) => {
1982
- const n = {
1982
+ const s = {
1983
1983
  t: {
1984
1984
  top: `${t.padding.top - xe}px`
1985
1985
  },
@@ -1987,50 +1987,50 @@ const Re = {
1987
1987
  bottom: `${t.padding.bottom - xe}px`
1988
1988
  }
1989
1989
  }, m = (x[t.layout.paper].width - t.padding.left - t.padding.right + xe) / (tt.includes(t.layout.paper) ? 3 : t.currentPage % 2 ? t.layout.column : t.layout.backColumn);
1990
- return { left: `${c * m + t.padding.left - xe}px`, width: `${xe}px`, ...n[y] };
1991
- }, s = (c) => {
1992
- const y = (x[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, n = t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, m = ["", "l", "r"].findIndex((A) => A === c);
1993
- return { top: `${y * m + t.padding.top - 10}px`, width: "11px", ...n };
1990
+ return { left: `${c * m + t.padding.left - xe}px`, width: `${xe}px`, ...s[y] };
1991
+ }, n = (c) => {
1992
+ const y = (x[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, s = t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, m = ["", "l", "r"].findIndex((A) => A === c);
1993
+ return { top: `${y * m + t.padding.top - 10}px`, width: "11px", ...s };
1994
1994
  };
1995
1995
  return (c, y) => {
1996
- var n;
1996
+ var s;
1997
1997
  return r(), h(O, null, [
1998
1998
  (r(), h(O, null, le(["lt", "rt", "lb", "rb"], (m) => k("span", {
1999
1999
  key: m,
2000
2000
  class: "absolute w-8 bg-black point_item",
2001
2001
  style: X(l(m)),
2002
- "data-xine": L(I).point + m
2002
+ "data-xine": L($).point + m
2003
2003
  }, null, 12, wo)), 64)),
2004
2004
  (r(!0), h(O, null, le(o.value, (m) => (r(), h(O, { key: m }, [
2005
2005
  (r(), h(O, null, le(["t", "b"], (A) => k("span", {
2006
2006
  key: A,
2007
2007
  class: "absolute bg-black w-8 point_item",
2008
2008
  style: X(a(m, A)),
2009
- "data-xine": L(I).point + A
2009
+ "data-xine": L($).point + A
2010
2010
  }, null, 12, ko)), 64))
2011
2011
  ], 64))), 128)),
2012
2012
  (r(), h(O, null, le(["l", "r"], (m) => k("span", {
2013
2013
  key: m,
2014
2014
  class: "absolute bg-black h-8",
2015
- style: X(s(m)),
2016
- "data-xine": L(I).point + m
2015
+ style: X(n(m)),
2016
+ "data-xine": L($).point + m
2017
2017
  }, null, 12, xo)), 64)),
2018
2018
  k("p", {
2019
2019
  class: "absolute leading-none text-0",
2020
2020
  style: X(i()),
2021
- "data-xine": L(I).page
2021
+ "data-xine": L($).page
2022
2022
  }, [
2023
2023
  (r(!0), h(O, null, le(c.currentPage + 1, (m, A) => (r(), h("span", {
2024
2024
  key: m,
2025
2025
  class: "inline-block bg-black mx-2 page_item",
2026
- "data-xine": L(I).page_item + A
2026
+ "data-xine": L($).page_item + A
2027
2027
  }, null, 8, So))), 128))
2028
2028
  ], 12, Co),
2029
2029
  c.currentPage % 2 ? B("", !0) : (r(), h("span", {
2030
2030
  key: 0,
2031
2031
  class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
2032
2032
  style: X({ right: `${c.padding.right - 12}px` })
2033
- }, "提示:本卷" + te((n = L(Qe).find((m) => m.code === c.layout.paper)) == null ? void 0 : n.name) + "纸张", 5)),
2033
+ }, "提示:本卷" + te((s = L(qe).find((m) => m.code === c.layout.paper)) == null ? void 0 : s.name) + "纸张", 5)),
2034
2034
  k("span", {
2035
2035
  class: "absolute text-sm red_sheet",
2036
2036
  style: X({ right: `${c.padding.bottom - 20 + 75}px`, bottom: `${c.padding.bottom - 20 - 3}px` })
@@ -2044,7 +2044,7 @@ const me = (e, t) => {
2044
2044
  for (const [l, i] of t)
2045
2045
  o[l] = i;
2046
2046
  return o;
2047
- }, $o = /* @__PURE__ */ me(To, [["__scopeId", "data-v-2c1c50bb"]]), Io = { class: "flex-1" }, Lo = ["type", "placeholder", "maxlength", "value"], Fo = {
2047
+ }, Io = /* @__PURE__ */ me(To, [["__scopeId", "data-v-2c1c50bb"]]), $o = { class: "flex-1" }, Lo = ["type", "placeholder", "maxlength", "value"], Fo = {
2048
2048
  key: 0,
2049
2049
  class: "flex-shrink-0 ml-2 text-text3"
2050
2050
  }, st = /* @__PURE__ */ ne({
@@ -2066,34 +2066,34 @@ const me = (e, t) => {
2066
2066
  De(() => o.value, () => {
2067
2067
  l.value = o.value;
2068
2068
  });
2069
- const a = (n) => {
2070
- l.value = n.target.value, t("input", o.type === "number" ? parseFloat(l.value) : l.value);
2071
- }, s = (n) => {
2072
- l.value = n.target.value, t("change", o.type === "number" ? parseFloat(l.value) : l.value), setTimeout(() => {
2069
+ const a = (s) => {
2070
+ l.value = s.target.value, t("input", o.type === "number" ? parseFloat(l.value) : l.value);
2071
+ }, n = (s) => {
2072
+ l.value = s.target.value, t("change", o.type === "number" ? parseFloat(l.value) : l.value), setTimeout(() => {
2073
2073
  l.value = o.value;
2074
2074
  }, 400);
2075
- }, c = (n) => {
2076
- l.value = n.target.value, t("focus", o.type === "number" ? parseFloat(l.value) : l.value), i.value = !0;
2075
+ }, c = (s) => {
2076
+ l.value = s.target.value, t("focus", o.type === "number" ? parseFloat(l.value) : l.value), i.value = !0;
2077
2077
  }, y = () => {
2078
2078
  t("blur", o.type === "number" ? parseFloat(`${l.value}`) : l.value), i.value = !1;
2079
2079
  };
2080
- return (n, m) => (r(), h("div", {
2081
- class: oe(["flex-1 flex items-center border rounded-lg", n.autoLine ? i.value ? "border-gray4" : "border-transparent" : "border-gray4", n.size === "small" && "p-1", n.size === "stand" && "p-2", n.size === "large" && "p-2"])
2080
+ return (s, m) => (r(), h("div", {
2081
+ class: oe(["flex-1 flex items-center border rounded-lg", s.autoLine ? i.value ? "border-gray4" : "border-transparent" : "border-gray4", s.size === "small" && "p-1", s.size === "stand" && "p-2", s.size === "large" && "p-2"])
2082
2082
  }, [
2083
- k("div", Io, [
2083
+ k("div", $o, [
2084
2084
  k("input", {
2085
- class: oe(["w-full", n.dir === "center" && "text-center", n.dir === "right" && "text-right"]),
2086
- type: n.type,
2087
- placeholder: n.placeholder,
2088
- maxlength: n.maxLength,
2085
+ class: oe(["w-full", s.dir === "center" && "text-center", s.dir === "right" && "text-right"]),
2086
+ type: s.type,
2087
+ placeholder: s.placeholder,
2088
+ maxlength: s.maxLength,
2089
2089
  value: l.value,
2090
2090
  onInput: a,
2091
- onChange: s,
2091
+ onChange: n,
2092
2092
  onFocus: c,
2093
2093
  onBlur: y
2094
2094
  }, null, 42, Lo)
2095
2095
  ]),
2096
- n.unit ? (r(), h("span", Fo, te(n.unit), 1)) : B("", !0)
2096
+ s.unit ? (r(), h("span", Fo, te(s.unit), 1)) : B("", !0)
2097
2097
  ], 2));
2098
2098
  }
2099
2099
  }), Eo = /* @__PURE__ */ ne({
@@ -2108,7 +2108,7 @@ const me = (e, t) => {
2108
2108
  right: `${l.value.right + 97}px`,
2109
2109
  bottom: `${l.value.bottom - 25}px`
2110
2110
  }));
2111
- return (a, s) => (r(), ee(st, {
2111
+ return (a, n) => (r(), ee(st, {
2112
2112
  class: "absolute w-72 text-sm",
2113
2113
  value: a.info.slogan,
2114
2114
  maxLength: 12,
@@ -2117,7 +2117,7 @@ const me = (e, t) => {
2117
2117
  autoLine: "",
2118
2118
  dir: "right",
2119
2119
  style: X(i.value),
2120
- onChange: s[0] || (s[0] = (c) => t("change", { slogin: c }))
2120
+ onChange: n[0] || (n[0] = (c) => t("change", { slogin: c }))
2121
2121
  }, null, 8, ["value", "style"]));
2122
2122
  }
2123
2123
  }), Po = ["width", "height"], Mo = ["xlink:href"], Ao = /* @__PURE__ */ ne({
@@ -2132,7 +2132,7 @@ const me = (e, t) => {
2132
2132
  const o = e, l = W(() => `#icon-${o.name}`);
2133
2133
  return (i, a) => (r(), h("span", {
2134
2134
  class: "cursor-pointer inline-block p-2 rounded-full transition-all leading-none font-0",
2135
- onClick: a[0] || (a[0] = (s) => t("click"))
2135
+ onClick: a[0] || (a[0] = (n) => t("click"))
2136
2136
  }, [
2137
2137
  (r(), h("svg", {
2138
2138
  width: i.width + "rem",
@@ -2184,10 +2184,10 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2184
2184
  onBlur: l
2185
2185
  }, null, 40, zo));
2186
2186
  }
2187
- }), Ho = { class: "flex w-full" }, Ro = ["src", "data-xine"], Wo = { class: "flex-1 mx-4" }, Go = { class: "flex items-center justify-center flex-wrap" }, Qo = {
2187
+ }), Ho = { class: "flex w-full" }, Ro = ["src", "data-xine"], Wo = { class: "flex-1 mx-4" }, Go = { class: "flex items-center justify-center flex-wrap" }, qo = {
2188
2188
  key: 0,
2189
2189
  class: "flex mx-4 min-w-[70px]"
2190
- }, qo = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "范围:", -1), Yo = {
2190
+ }, Qo = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "范围:", -1), Yo = {
2191
2191
  key: 1,
2192
2192
  class: "flex items-center w-40 mx-4"
2193
2193
  }, Ko = /* @__PURE__ */ k("span", { class: "flex-shrink-0" }, "时间:", -1), Uo = /* @__PURE__ */ k("span", null, "分钟", -1), Vo = {
@@ -2209,41 +2209,41 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2209
2209
  },
2210
2210
  emits: ["change"],
2211
2211
  setup(e, { emit: t }) {
2212
- const o = e, l = W(() => o.data.filter((s) => ![Ce.another, Ce.another_choice, Ce.one_choice].includes(s.problemType)).map((s) => s.totalScore || 0).reduce((s, c) => s + c, 0)), i = W(() => o.data.filter((s) => [Ce.another].includes(s.problemType)).map((s) => s.totalScore || 0).reduce((s, c) => s + c, 0)), a = W(() => o.layout.scoreAddStars === nt.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
2213
- return (s, c) => (r(), h("div", Ho, [
2212
+ const o = e, l = W(() => o.data.filter((n) => ![Ce.another, Ce.another_choice, Ce.one_choice].includes(n.problemType)).map((n) => n.totalScore || 0).reduce((n, c) => n + c, 0)), i = W(() => o.data.filter((n) => [Ce.another].includes(n.problemType)).map((n) => n.totalScore || 0).reduce((n, c) => n + c, 0)), a = W(() => o.layout.scoreAddStars === nt.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
2213
+ return (n, c) => (r(), h("div", Ho, [
2214
2214
  k("img", {
2215
- src: s.info.qrCode,
2215
+ src: n.info.qrCode,
2216
2216
  alt: "QRCode",
2217
2217
  class: "flex-shrink-0 w-28 h-28",
2218
- "data-xine": L(I).art_code
2218
+ "data-xine": L($).art_code
2219
2219
  }, null, 8, Ro),
2220
2220
  k("div", Wo, [
2221
2221
  ae(He, {
2222
2222
  class: "w-full text-center border-2 border-transparent focus:border-current",
2223
- value: s.info.title,
2224
- style: X(s.fontConfig.titleStyle),
2223
+ value: n.info.title,
2224
+ style: X(n.fontConfig.titleStyle),
2225
2225
  onChange: c[0] || (c[0] = (y) => t("change", { title: y }))
2226
2226
  }, null, 8, ["value", "style"]),
2227
- s.layout.secTitleFlag ? (r(), ee(He, {
2227
+ n.layout.secTitleFlag ? (r(), ee(He, {
2228
2228
  key: 0,
2229
2229
  class: "w-full text-center border-2 border-transparent focus:border-current",
2230
- value: s.info.secTitle,
2231
- style: X(s.fontConfig.halfTitleStyle),
2230
+ value: n.info.secTitle,
2231
+ style: X(n.fontConfig.halfTitleStyle),
2232
2232
  onChange: c[1] || (c[1] = (y) => t("change", { secTitle: y }))
2233
2233
  }, null, 8, ["value", "style"])) : B("", !0),
2234
2234
  k("div", Go, [
2235
- s.layout.examExtentFlag ? (r(), h("p", Qo, [
2236
- qo,
2235
+ n.layout.examExtentFlag ? (r(), h("p", qo, [
2236
+ Qo,
2237
2237
  ae(He, {
2238
2238
  class: "flex-1",
2239
- value: s.info.extent,
2239
+ value: n.info.extent,
2240
2240
  onChange: c[2] || (c[2] = (y) => t("change", { extent: y }))
2241
2241
  }, null, 8, ["value"])
2242
2242
  ])) : B("", !0),
2243
- s.layout.examTimeFlag ? (r(), h("p", Yo, [
2243
+ n.layout.examTimeFlag ? (r(), h("p", Yo, [
2244
2244
  Ko,
2245
2245
  ae(st, {
2246
- value: s.info.time,
2246
+ value: n.info.time,
2247
2247
  class: "text-center",
2248
2248
  type: "number",
2249
2249
  autoLine: "",
@@ -2253,43 +2253,43 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2253
2253
  }, null, 8, ["value"]),
2254
2254
  Uo
2255
2255
  ])) : B("", !0),
2256
- s.layout.authorFlag ? (r(), h("p", Vo, [
2256
+ n.layout.authorFlag ? (r(), h("p", Vo, [
2257
2257
  jo,
2258
2258
  ae(He, {
2259
2259
  class: "flex-1",
2260
- value: s.info.author,
2260
+ value: n.info.author,
2261
2261
  onChange: c[4] || (c[4] = (y) => t("change", { author: y }))
2262
2262
  }, null, 8, ["value"])
2263
2263
  ])) : B("", !0),
2264
- s.layout.reviewerFlag ? (r(), h("p", Xo, [
2264
+ n.layout.reviewerFlag ? (r(), h("p", Xo, [
2265
2265
  Jo,
2266
2266
  ae(He, {
2267
2267
  class: "flex-1",
2268
- value: s.info.reviewer,
2268
+ value: n.info.reviewer,
2269
2269
  onChange: c[5] || (c[5] = (y) => t("change", { reviewer: y }))
2270
2270
  }, null, 8, ["value"])
2271
2271
  ])) : B("", !0),
2272
- s.layout.totalScoreFlag ? (r(), h("p", Zo, [
2272
+ n.layout.totalScoreFlag ? (r(), h("p", Zo, [
2273
2273
  ea,
2274
2274
  a.value ? (r(), ee(ve, {
2275
2275
  key: 0,
2276
2276
  name: a.value,
2277
2277
  class: "p-0 -translate-y-[1px]"
2278
2278
  }, null, 8, ["name"])) : (r(), h("span", ta, "分")),
2279
- k("span", null, ":" + te(l.value + (s.layout.writeScoreFlag ? s.info.writeScore : 0)), 1),
2279
+ k("span", null, ":" + te(l.value + (n.layout.writeScoreFlag ? n.info.writeScore : 0)), 1),
2280
2280
  a.value ? (r(), ee(ve, {
2281
2281
  key: 2,
2282
2282
  name: a.value,
2283
2283
  class: "p-0 -translate-y-[1px]"
2284
2284
  }, null, 8, ["name"])) : (r(), h("span", oa, "分")),
2285
- s.layout.writeScoreFlag ? (r(), h(O, { key: 4 }, [
2285
+ n.layout.writeScoreFlag ? (r(), h(O, { key: 4 }, [
2286
2286
  k("span", null, "(试题" + te(l.value), 1),
2287
2287
  a.value ? (r(), ee(ve, {
2288
2288
  key: 0,
2289
2289
  name: a.value,
2290
2290
  class: "p-0 -translate-y-[1px]"
2291
2291
  }, null, 8, ["name"])) : (r(), h("span", aa, "分")),
2292
- k("span", null, "+卷面" + te(s.info.writeScore || 0), 1),
2292
+ k("span", null, "+卷面" + te(n.info.writeScore || 0), 1),
2293
2293
  a.value ? (r(), ee(ve, {
2294
2294
  key: 2,
2295
2295
  name: a.value,
@@ -2322,9 +2322,9 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2322
2322
  return (l, i) => (r(), h("ul", {
2323
2323
  class: oe(["flex", l.isRow ? "w-full" : "flex-1 flex-col mr-2"])
2324
2324
  }, [
2325
- (r(), h(O, null, le(o, (a, s) => k("li", {
2325
+ (r(), h(O, null, le(o, (a, n) => k("li", {
2326
2326
  key: a,
2327
- class: oe(["flex flex-1 min-w-[12rem]", l.isRow && s && "ml-2"])
2327
+ class: oe(["flex flex-1 min-w-[12rem]", l.isRow && n && "ml-2"])
2328
2328
  }, [
2329
2329
  ae(st, {
2330
2330
  value: l.extent[a],
@@ -2342,7 +2342,7 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2342
2342
  setup(e) {
2343
2343
  return (t, o) => (r(), h("div", {
2344
2344
  class: "flex-shrink-0 border flex flex-col",
2345
- "data-xine": L(I).en_num_view
2345
+ "data-xine": L($).en_num_view
2346
2346
  }, [
2347
2347
  k("p", ca, [
2348
2348
  ae(ve, {
@@ -2353,17 +2353,17 @@ const ve = /* @__PURE__ */ me(Ao, [["__scopeId", "data-v-ed2907dd"]]), Do = { cl
2353
2353
  ]),
2354
2354
  k("div", {
2355
2355
  class: "flex-1 flex flex-col",
2356
- "data-xine": L(I).en_num
2356
+ "data-xine": L($).en_num
2357
2357
  }, [
2358
2358
  (r(), h(O, null, le(3, (l, i) => k("p", {
2359
2359
  key: l,
2360
2360
  class: "flex-1 flex items-center text-0 px-1 border-t",
2361
- "data-xine": L(I).en_num_group
2361
+ "data-xine": L($).en_num_group
2362
2362
  }, [
2363
2363
  (r(), h(O, null, le(10, (a) => k("span", {
2364
2364
  key: a,
2365
2365
  class: "flex items-center justify-between flex-nowrap item",
2366
- "data-xine": L(I).en_num_item
2366
+ "data-xine": L($).en_num_item
2367
2367
  }, te(a - 1), 9, ha)), 64))
2368
2368
  ], 8, ua)), 64))
2369
2369
  ], 8, da)
@@ -2375,7 +2375,7 @@ const ma = /* @__PURE__ */ me(pa, [["__scopeId", "data-v-91b25fab"]]), ya = ["da
2375
2375
  setup(e) {
2376
2376
  return (t, o) => (r(), h("div", {
2377
2377
  class: "flex-shrink-0 border ml-4 flex min-h-[9.5rem]",
2378
- "data-xine": L(I).en_num_view
2378
+ "data-xine": L($).en_num_view
2379
2379
  }, [
2380
2380
  k("p", _a, [
2381
2381
  ae(ve, {
@@ -2386,17 +2386,17 @@ const ma = /* @__PURE__ */ me(pa, [["__scopeId", "data-v-91b25fab"]]), ya = ["da
2386
2386
  ]),
2387
2387
  k("div", {
2388
2388
  class: "flex-1 flex flex-col",
2389
- "data-xine": L(I).en_num
2389
+ "data-xine": L($).en_num
2390
2390
  }, [
2391
2391
  (r(), h(O, null, le(4, (l, i) => k("p", {
2392
2392
  key: l,
2393
2393
  class: oe(["flex-1 flex items-center text-0 px-1", i && "border-t"]),
2394
- "data-xine": L(I).en_num_group
2394
+ "data-xine": L($).en_num_group
2395
2395
  }, [
2396
2396
  (r(), h(O, null, le(10, (a) => k("span", {
2397
2397
  key: a,
2398
2398
  class: "flex items-center justify-between flex-nowrap item",
2399
- "data-xine": L(I).en_num_item
2399
+ "data-xine": L($).en_num_item
2400
2400
  }, te(a - 1), 9, ba)), 64))
2401
2401
  ], 10, ga)), 64))
2402
2402
  ], 8, fa)
@@ -2415,9 +2415,9 @@ const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @
2415
2415
  return (l, i) => (r(), h("ul", {
2416
2416
  class: oe(["flex", l.isRow ? "w-full items-center" : "flex-1 flex-col mr-2 max-w-[33%]"])
2417
2417
  }, [
2418
- (r(), h(O, null, le(o, (a, s) => k("li", {
2418
+ (r(), h(O, null, le(o, (a, n) => k("li", {
2419
2419
  key: a,
2420
- class: oe(["flex flex-1", l.isRow && s && "ml-2"])
2420
+ class: oe(["flex flex-1", l.isRow && n && "ml-2"])
2421
2421
  }, [
2422
2422
  ae(st, {
2423
2423
  value: l.extent[a],
@@ -2442,36 +2442,36 @@ const Nt = /* @__PURE__ */ me(va, [["__scopeId", "data-v-96e8d41d"]]), wa = /* @
2442
2442
  emits: ["change"],
2443
2443
  setup(e, { emit: t }) {
2444
2444
  const o = e, l = W(() => o.layout.seatType === Se.none || !o.layout.seatBar), i = W(() => o.layout.column >= 3 && l.value), a = W(() => o.layout.column >= 3 && o.layout.seatType !== Se.none && o.layout.seatBar);
2445
- return (s, c) => s.isBindFlag ? B("", !0) : (r(), h("div", {
2445
+ return (n, c) => n.isBindFlag ? B("", !0) : (r(), h("div", {
2446
2446
  key: 0,
2447
2447
  class: oe(["flex justify-between", (a.value || i.value) && "flex-wrap"])
2448
2448
  }, [
2449
2449
  i.value ? (r(), ee(St, {
2450
2450
  key: 0,
2451
2451
  isRow: "",
2452
- extent: s.info.extentInfo,
2452
+ extent: n.info.extentInfo,
2453
2453
  onChange: c[0] || (c[0] = (y) => t("change", y))
2454
2454
  }, null, 8, ["extent"])) : B("", !0),
2455
2455
  ae(wa, {
2456
2456
  isRow: a.value,
2457
- extent: s.info.extentInfo,
2457
+ extent: n.info.extentInfo,
2458
2458
  onChange: c[1] || (c[1] = (y) => t("change", y))
2459
2459
  }, null, 8, ["isRow", "extent"]),
2460
2460
  !i.value && l.value ? (r(), ee(St, {
2461
2461
  key: 1,
2462
- extent: s.info.extentInfo,
2462
+ extent: n.info.extentInfo,
2463
2463
  onChange: c[2] || (c[2] = (y) => t("change", y))
2464
2464
  }, null, 8, ["extent"])) : B("", !0),
2465
- s.layout.seatType === L(Se).seat ? (r(), ee(ma, { key: 2 })) : s.layout.seatType === L(Se).shortId ? (r(), ee(Nt, { key: 3 })) : B("", !0),
2466
- s.layout.seatBar ? (r(), h("div", {
2465
+ n.layout.seatType === L(Se).seat ? (r(), ee(ma, { key: 2 })) : n.layout.seatType === L(Se).shortId ? (r(), ee(Nt, { key: 3 })) : B("", !0),
2466
+ n.layout.seatBar ? (r(), h("div", {
2467
2467
  key: 4,
2468
2468
  class: "flex items-center justify-center flex-col flex-1 min-h-[9rem] ml-4 border border-dashed",
2469
- "data-xine": L(I).en_code
2469
+ "data-xine": L($).en_code
2470
2470
  }, Sa, 8, xa)) : B("", !0)
2471
2471
  ], 2));
2472
2472
  }
2473
2473
  });
2474
- const $a = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e) => (Ye("data-v-936c144e"), e = e(), Ke(), e), Ia = {
2474
+ const Ia = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e) => (Ye("data-v-936c144e"), e = e(), Ke(), e), $a = {
2475
2475
  key: 0,
2476
2476
  class: "flex border mt-2 red_sheet"
2477
2477
  }, La = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Fa = { class: "flex-1 overflow-hidden" }, Ea = { class: "flex items-center flex-1 pl-2" }, Pa = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), Ma = { class: "flex items-center justify-center text-black" }, Aa = ["data-xine"], Da = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("span", null, "[", -1)), Ba = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("span", { class: "ml-4" }, "]", -1)), Na = [
@@ -2501,7 +2501,7 @@ const $a = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
2501
2501
  ];
2502
2502
  });
2503
2503
  return (l, i) => (r(), h(O, null, [
2504
- l.layout.noteFlag ? (r(), h("div", Ia, [
2504
+ l.layout.noteFlag ? (r(), h("div", $a, [
2505
2505
  La,
2506
2506
  k("div", Fa, [
2507
2507
  (r(!0), h(O, null, le(o.value, (a) => (r(), h("p", {
@@ -2520,7 +2520,7 @@ const $a = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
2520
2520
  ae(ve, { name: "rightArrow" }),
2521
2521
  k("span", {
2522
2522
  class: "flex items-center leading-4",
2523
- "data-xine": L(I).lack
2523
+ "data-xine": L($).lack
2524
2524
  }, Na, 8, Aa)
2525
2525
  ])
2526
2526
  ]),
@@ -2532,18 +2532,18 @@ const $a = /* @__PURE__ */ me(Ta, [["__scopeId", "data-v-4d37cd56"]]), ze = (e)
2532
2532
  });
2533
2533
  const Ra = /* @__PURE__ */ me(Ha, [["__scopeId", "data-v-936c144e"]]), ut = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Wa = (e, t = "", o = !0, l = "children") => {
2534
2534
  let i = [];
2535
- const a = (s) => {
2536
- (s[l] || []).length ? (o && i.push(t ? s[t] : s[l]), s[l].forEach((c) => a(c))) : i.push(t ? s[t] : s);
2535
+ const a = (n) => {
2536
+ (n[l] || []).length ? (o && i.push(t ? n[t] : n[l]), n[l].forEach((c) => a(c))) : i.push(t ? n[t] : n);
2537
2537
  };
2538
- return e.forEach((s) => a(s)), i.flat(5);
2538
+ return e.forEach((n) => a(n)), i.flat(5);
2539
2539
  };
2540
2540
  function Ot(e) {
2541
2541
  if (e < 0 || e > 99)
2542
2542
  throw Error("下标超限");
2543
2543
  const t = "零一二三四五六七八九".split("");
2544
2544
  return [...Array(100)].map((l, i) => {
2545
- const a = Math.floor(i / t.length), s = i % t.length;
2546
- return a ? `${a > 1 ? t[a] : ""}十${s ? t[s] : ""}` : t[s];
2545
+ const a = Math.floor(i / t.length), n = i % t.length;
2546
+ return a ? `${a > 1 ? t[a] : ""}十${n ? t[n] : ""}` : t[n];
2547
2547
  })[e + 1];
2548
2548
  }
2549
2549
  function Tt(e) {
@@ -2552,10 +2552,10 @@ function Tt(e) {
2552
2552
  const Ga = {
2553
2553
  key: 0,
2554
2554
  class: "flex border mb-2 text-center leading-loose red_sheet"
2555
- }, Qa = /* @__PURE__ */ k("li", { class: "flex-1 flex flex-col" }, [
2555
+ }, qa = /* @__PURE__ */ k("li", { class: "flex-1 flex flex-col" }, [
2556
2556
  /* @__PURE__ */ k("p", { class: "flex-1" }, "题号"),
2557
2557
  /* @__PURE__ */ k("p", { class: "flex-1 border-t" }, "得分")
2558
- ], -1), qa = { class: "flex-1" }, Ya = /* @__PURE__ */ k("p", { class: "flex-1 border-t" }, null, -1), Ka = /* @__PURE__ */ k("li", { class: "flex-1 flex flex-col border-l" }, [
2558
+ ], -1), Qa = { class: "flex-1" }, Ya = /* @__PURE__ */ k("p", { class: "flex-1 border-t" }, null, -1), Ka = /* @__PURE__ */ k("li", { class: "flex-1 flex flex-col border-l" }, [
2559
2559
  /* @__PURE__ */ k("p", { class: "flex-1" }, "总分"),
2560
2560
  /* @__PURE__ */ k("p", { class: "flex-1 border-t" })
2561
2561
  ], -1), Ua = /* @__PURE__ */ ne({
@@ -2567,12 +2567,12 @@ const Ga = {
2567
2567
  setup(e) {
2568
2568
  const t = e, o = W(() => t.data.filter((l) => l.problemType));
2569
2569
  return (l, i) => l.layout.scoreFlag ? (r(), h("ul", Ga, [
2570
- Qa,
2571
- (r(!0), h(O, null, le(o.value, (a, s) => (r(), h("li", {
2570
+ qa,
2571
+ (r(!0), h(O, null, le(o.value, (a, n) => (r(), h("li", {
2572
2572
  key: a.id,
2573
2573
  class: "flex-1 flex flex-col border-l"
2574
2574
  }, [
2575
- k("p", qa, te(L(Ot)(s)), 1),
2575
+ k("p", Qa, te(L(Ot)(n)), 1),
2576
2576
  Ya
2577
2577
  ]))), 128)),
2578
2578
  Ka
@@ -2590,20 +2590,20 @@ const Ga = {
2590
2590
  const o = e, l = V(), i = V();
2591
2591
  t({ col: l, colView: i });
2592
2592
  const a = W(() => {
2593
- const { top: y, width: n, height: m, left: A } = o.styleInfo;
2593
+ const { top: y, width: s, height: m, left: A } = o.styleInfo;
2594
2594
  return {
2595
2595
  top: `${parseFloat(y) - (o.currentColumn ? Le.top : 1)}px`,
2596
2596
  left: `${parseFloat(A) - Le.left}px`,
2597
- width: `${parseFloat(n) + Le.left + Le.right}px`,
2597
+ width: `${parseFloat(s) + Le.left + Le.right}px`,
2598
2598
  height: `${parseFloat(m) + (o.currentColumn ? Le.top : 0) + Le.bottom}px`
2599
2599
  };
2600
- }), s = W(() => ({
2600
+ }), n = W(() => ({
2601
2601
  left: `${Le.left - 1}px`,
2602
2602
  top: `${Le.top - 1}px`,
2603
2603
  bottom: `${Le.bottom - 1}px`,
2604
2604
  right: `${Le.right - 1}px`
2605
2605
  })), c = W(() => o.column < 3 || o.currentColumn % 3 === 1);
2606
- return (y, n) => (r(), h(O, null, [
2606
+ return (y, s) => (r(), h(O, null, [
2607
2607
  y.showColBorder ? (r(), h("div", {
2608
2608
  key: 0,
2609
2609
  class: oe(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", c.value && "tips"]),
@@ -2611,7 +2611,7 @@ const Ga = {
2611
2611
  }, [
2612
2612
  k("span", {
2613
2613
  class: "absolute border border-black",
2614
- style: X(s.value)
2614
+ style: X(n.value)
2615
2615
  }, null, 4)
2616
2616
  ], 6)) : B("", !0),
2617
2617
  k("div", {
@@ -2676,20 +2676,20 @@ const ja = /* @__PURE__ */ me(Va, [["__scopeId", "data-v-e102e805"]]), Xa = (e)
2676
2676
  o.bindSeatType === L(Se).none ? (r(), h("div", {
2677
2677
  key: 0,
2678
2678
  class: "flex flex-shrink-0 items-center justify-center border border-dashed font-bold w-80 h-40",
2679
- "data-xine": L(I).en_code
2679
+ "data-xine": L($).en_code
2680
2680
  }, ol, 8, el)) : o.bindSeatType === L(Se).shortId ? (r(), ee(Nt, {
2681
2681
  key: 1,
2682
2682
  class: "h-40"
2683
2683
  })) : B("", !0),
2684
2684
  k("span", {
2685
2685
  class: "absolute right-0 bottom-0",
2686
- "data-xine": L(I).bind_line
2686
+ "data-xine": L($).bind_line
2687
2687
  }, null, 8, al)
2688
2688
  ], 4))
2689
2689
  ], 6)) : B("", !0);
2690
2690
  }
2691
2691
  });
2692
- const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), $e = "MC5jdmxyN28zYWRl", sl = "YWNhdnN2cmIydmcZm", Be = "MC4wYWx1ZXJvcWhm", $t = "MC5sZGN2NzJ0ZXE0bw", ft = "MC5yYjk3NGY2OTcyOA", gt = "MC42cWRzbGM0c21jbw", il = "MC45amVuM25vajRk", rl = "MC44YjJkb212djRu", cl = ["img", "table", "svg"], dl = ["data-block", "data-xine"], ul = ["data-xine"], hl = ["data-xine"], pl = { class: "absolute opacity-0 pointer-events-none" }, ml = /* @__PURE__ */ ne({
2692
+ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), Ie = "MC5jdmxyN28zYWRl", sl = "YWNhdnN2cmIydmcZm", Be = "MC4wYWx1ZXJvcWhm", It = "MC5sZGN2NzJ0ZXE0bw", ft = "MC5yYjk3NGY2OTcyOA", gt = "MC42cWRzbGM0c21jbw", il = "MC45amVuM25vajRk", rl = "MC44YjJkb212djRu", cl = ["img", "table", "svg"], dl = ["data-block", "data-xine"], ul = ["data-xine"], hl = ["data-xine"], pl = { class: "absolute opacity-0 pointer-events-none" }, ml = /* @__PURE__ */ ne({
2693
2693
  __name: "simple",
2694
2694
  props: {
2695
2695
  item: {},
@@ -2702,19 +2702,19 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), $e = "MC5
2702
2702
  });
2703
2703
  return (i, a) => (r(), h("div", {
2704
2704
  class: "flex border-x-2 border-y divide-x divide-solid",
2705
- "data-block": L($e),
2706
- "data-xine": L(I).score
2705
+ "data-block": L(Ie),
2706
+ "data-xine": L($).score
2707
2707
  }, [
2708
2708
  k("ul", {
2709
2709
  class: "flex h-full divide-x divide-solid",
2710
- "data-xine": L(I).score_base
2710
+ "data-xine": L($).score_base
2711
2711
  }, [
2712
- (r(!0), h(O, null, le(l.value, (s, c) => (r(), h("li", {
2712
+ (r(!0), h(O, null, le(l.value, (n, c) => (r(), h("li", {
2713
2713
  class: "flex items-center justify-center relative score_line",
2714
2714
  style: X({ width: `${L(We)[i.layout.scoreLineSize].value}px` }),
2715
- "data-xine": L(I).score_item
2715
+ "data-xine": L($).score_item
2716
2716
  }, [
2717
- k("span", pl, te(s), 1),
2717
+ k("span", pl, te(n), 1),
2718
2718
  ae(ve, {
2719
2719
  class: "p-0",
2720
2720
  name: o[c]
@@ -2731,7 +2731,7 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), $e = "MC5
2731
2731
  static: { type: Boolean }
2732
2732
  },
2733
2733
  setup(e) {
2734
- const t = e, o = V(), l = V(!1), i = V(!1), a = V(!1), s = V([]), c = W(() => t.layout.scoreAddStars === nt.star.code);
2734
+ const t = e, o = V(), l = V(!1), i = V(!1), a = V(!1), n = V([]), c = W(() => t.layout.scoreAddStars === nt.star.code);
2735
2735
  De(() => [t.item.score], () => y()), Ue(() => {
2736
2736
  y();
2737
2737
  });
@@ -2746,9 +2746,9 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), $e = "MC5
2746
2746
  const A = o.value.offsetWidth, p = We[t.layout.scoreLineSize].value + 1;
2747
2747
  l.value = A - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * p && t.item.score >= 10, l.value ? (m.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((P) => P && P * 10).reverse()), m.push([...Array(10).keys()].reverse()), a.value = !0) : m.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
2748
2748
  }
2749
- t.item.hasHalfScore && m.push([0.5]), s.value = m, i.value = !!m.flat().find((A) => `${A}`.length > 3) || t.layout.scoreLineSize === We.small.code;
2749
+ t.item.hasHalfScore && m.push([0.5]), n.value = m, i.value = !!m.flat().find((A) => `${A}`.length > 3) || t.layout.scoreLineSize === We.small.code;
2750
2750
  });
2751
- }, n = (m) => t.item.hasHalfScore ? [I.score_half, I.score_base, I.score_tenbit][s.value.length - m - 1] : [I.score_base, I.score_tenbit][s.value.length - m - 1];
2751
+ }, s = (m) => t.item.hasHalfScore ? [$.score_half, $.score_base, $.score_tenbit][n.value.length - m - 1] : [$.score_base, $.score_tenbit][n.value.length - m - 1];
2752
2752
  return (m, A) => m.layout.handReadFlag ? (r(), h(O, { key: 0 }, [
2753
2753
  m.layout.simpleScoreBarFlag && !m.static ? (r(), ee(ml, {
2754
2754
  key: 0,
@@ -2758,18 +2758,18 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), $e = "MC5
2758
2758
  key: 1,
2759
2759
  ref_key: "view",
2760
2760
  ref: o,
2761
- class: oe([s.value.length ? "inline-flex" : "flex-1", "max-w-full overflow-hidden border border-l-2 border-r-2 divide-x divide-solid"]),
2762
- "data-block": L($e),
2763
- "data-xine": L(I).score
2761
+ class: oe([n.value.length ? "inline-flex" : "flex-1", "max-w-full overflow-hidden border border-l-2 border-r-2 divide-x divide-solid"]),
2762
+ "data-block": L(Ie),
2763
+ "data-xine": L($).score
2764
2764
  }, [
2765
- (r(!0), h(O, null, le(s.value, (p, P) => (r(), h("ul", {
2765
+ (r(!0), h(O, null, le(n.value, (p, P) => (r(), h("ul", {
2766
2766
  class: "flex divide-x divide-solid",
2767
- "data-xine": n(P)
2767
+ "data-xine": s(P)
2768
2768
  }, [
2769
2769
  (r(!0), h(O, null, le(p, (z) => (r(), h("li", {
2770
2770
  class: "flex items-center justify-center flex-shrink-0 score_line",
2771
2771
  style: X({ width: `${L(We)[m.layout.scoreLineSize].value}px` }),
2772
- "data-xine": z.toString() ? L(I).score_item : ""
2772
+ "data-xine": z.toString() ? L($).score_item : ""
2773
2773
  }, [
2774
2774
  k("span", {
2775
2775
  class: oe(["whitespace-nowrap", c.value && "origin-right", i.value && "scale-75"])
@@ -2794,7 +2794,7 @@ const nl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-01785ba3"]]), $e = "MC5
2794
2794
  setup(e) {
2795
2795
  return (t, o) => (r(), h("div", {
2796
2796
  class: "flex items-center mb-2",
2797
- "data-xine": L(I).write_view
2797
+ "data-xine": L($).write_view
2798
2798
  }, [
2799
2799
  bl,
2800
2800
  vl,
@@ -2836,13 +2836,13 @@ const Oe = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-e6258dec"]]), Sl = ["da
2836
2836
  }, null, 8, ["data-content", "data"])
2837
2837
  ], 8, Sl));
2838
2838
  }
2839
- }), $l = (e) => (Ye("data-v-8b8ee819"), e = e(), Ke(), e), Il = ["data-tag", "data-block"], Ll = {
2839
+ }), Il = (e) => (Ye("data-v-8b8ee819"), e = e(), Ke(), e), $l = ["data-tag", "data-block"], Ll = {
2840
2840
  key: 0,
2841
2841
  class: "flex-shrink-0"
2842
2842
  }, Fl = { key: 0 }, El = {
2843
2843
  key: 1,
2844
2844
  class: "indent-2"
2845
- }, Pl = { key: 0 }, Ml = { key: 0 }, Al = { key: 1 }, Dl = ["data-block", "data-xine"], Bl = /* @__PURE__ */ $l(() => /* @__PURE__ */ k("span", null, "我选答的题目是:", -1)), Nl = { class: "flex items-center" }, Ol = ["data-xine"], zl = /* @__PURE__ */ ne({
2845
+ }, Pl = { key: 0 }, Ml = { key: 0 }, Al = { key: 1 }, Dl = ["data-block", "data-xine"], Bl = /* @__PURE__ */ Il(() => /* @__PURE__ */ k("span", null, "我选答的题目是:", -1)), Nl = { class: "flex items-center" }, Ol = ["data-xine"], zl = /* @__PURE__ */ ne({
2846
2846
  __name: "index",
2847
2847
  props: {
2848
2848
  item: {},
@@ -2853,58 +2853,58 @@ const Oe = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-e6258dec"]]), Sl = ["da
2853
2853
  },
2854
2854
  emits: ["click", "dbclick"],
2855
2855
  setup(e, { emit: t }) {
2856
- const o = e, l = V(!1), i = V(), a = W(() => [Ce.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((n) => n.problemType) : null), s = W(() => [Ce.another_choice].includes(o.item.problemType)), c = W(() => [Ce.one_choice].includes(o.item.problemType) ? y.value.length : [...new Set(Wa(o.item.rawChildren.filter((n) => n.problemType), "sub").flat().map((n) => (n || "").split(".")[0]))].length), y = W(() => [...new Set(o.item.rawChildren.map((n) => [...new Set(n.sub.map((m) => m.split(".")[0]))]).map((n) => n.length > 1 ? `${n[0]}-${n[n.length - 1]}` : n[0]))]);
2856
+ const o = e, l = V(!1), i = V(), a = W(() => [Ce.one_choice].includes(o.item.problemType) ? o.item.rawChildren.filter((s) => s.problemType) : null), n = W(() => [Ce.another_choice].includes(o.item.problemType)), c = W(() => [Ce.one_choice].includes(o.item.problemType) ? y.value.length : [...new Set(Wa(o.item.rawChildren.filter((s) => s.problemType), "sub").flat().map((s) => (s || "").split(".")[0]))].length), y = W(() => [...new Set(o.item.rawChildren.map((s) => [...new Set(s.sub.map((m) => m.split(".")[0]))]).map((s) => s.length > 1 ? `${s[0]}-${s[s.length - 1]}` : s[0]))]);
2857
2857
  return Ue(() => {
2858
2858
  o.isFirst && o.item.problemType && (i.value.offsetHeight / parseFloat(window.getComputedStyle(i.value).lineHeight) > 1.5 ? l.value = !0 : l.value = !1);
2859
- }), (n, m) => n.item.problemType ? (r(), h("div", {
2859
+ }), (s, m) => s.item.problemType ? (r(), h("div", {
2860
2860
  key: 1,
2861
- class: oe(["flex items-baseline relative headline_item", n.showColBorder && "pl-2 mx-1 z-2", !n.isFirst && "headline_view", l.value && "first_headline_view"]),
2862
- onClick: m[2] || (m[2] = Ee((A) => t("click", n.item), ["stop"])),
2861
+ class: oe(["flex items-baseline relative headline_item", s.showColBorder && "pl-2 mx-1 z-2", !s.isFirst && "headline_view", l.value && "first_headline_view"]),
2862
+ onClick: m[2] || (m[2] = Ee((A) => t("click", s.item), ["stop"])),
2863
2863
  ref_key: "view",
2864
2864
  ref: i,
2865
- "data-tag": n.item.__tag__,
2866
- "data-block": L($e),
2867
- onDblclick: m[3] || (m[3] = Ee((A) => t("dbclick", n.item), ["stop"]))
2865
+ "data-tag": s.item.__tag__,
2866
+ "data-block": L(Ie),
2867
+ onDblclick: m[3] || (m[3] = Ee((A) => t("dbclick", s.item), ["stop"]))
2868
2868
  }, [
2869
- !n.layout.listIndexFlag && n.item.sub ? (r(), h("span", Ll, te(L(Ot)(n.item.sub - 1)) + "、", 1)) : B("", !0),
2869
+ !s.layout.listIndexFlag && s.item.sub ? (r(), h("span", Ll, te(L(Ot)(s.item.sub - 1)) + "、", 1)) : B("", !0),
2870
2870
  k("div", null, [
2871
2871
  k("div", null, [
2872
- k("span", null, te(n.item.name), 1),
2873
- n.item.desc ? (r(), h("span", Fl, "(" + te(n.item.desc) + ")", 1)) : B("", !0),
2874
- n.layout.scoreTipFlag ? (r(), h("span", El, "(共" + te(c.value) + "题,共" + te(n.item.totalScore) + "分)", 1)) : B("", !0)
2872
+ k("span", null, te(s.item.name), 1),
2873
+ s.item.desc ? (r(), h("span", Fl, "(" + te(s.item.desc) + ")", 1)) : B("", !0),
2874
+ s.layout.scoreTipFlag ? (r(), h("span", El, "(共" + te(c.value) + "题,共" + te(s.item.totalScore) + "分)", 1)) : B("", !0)
2875
2875
  ]),
2876
- a.value || s.value ? (r(), h("div", Pl, [
2876
+ a.value || n.value ? (r(), h("div", Pl, [
2877
2877
  a.value ? (r(), h("p", Ml, "请在以下" + te(y.value.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (r(), h("p", Al, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
2878
2878
  k("p", {
2879
2879
  class: "flex flex-wrap",
2880
- "data-block": L($e),
2881
- "data-xine": L(I).choice + n.item.id
2880
+ "data-block": L(Ie),
2881
+ "data-xine": L($).choice + s.item.id
2882
2882
  }, [
2883
2883
  Bl,
2884
2884
  (r(!0), h(O, null, le(y.value, (A, p) => (r(), h("span", Nl, [
2885
2885
  k("span", null, te(A), 1),
2886
2886
  k("span", {
2887
2887
  class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
2888
- "data-xine": L(I).fill
2888
+ "data-xine": L($).fill
2889
2889
  }, null, 8, Ol)
2890
2890
  ]))), 256))
2891
2891
  ], 8, Dl)
2892
2892
  ])) : B("", !0)
2893
2893
  ])
2894
- ], 42, Il)) : (r(), ee(Tl, {
2894
+ ], 42, $l)) : (r(), ee(Tl, {
2895
2895
  key: 0,
2896
- class: oe([n.isActive && "border-current", n.isFirst && "mt-9"]),
2897
- item: n.item,
2898
- onClick: m[0] || (m[0] = Ee((A) => t("click", n.item), ["stop"])),
2899
- onDblclick: m[1] || (m[1] = Ee((A) => t("dbclick", n.item), ["stop"]))
2896
+ class: oe([s.isActive && "border-current", s.isFirst && "mt-9"]),
2897
+ item: s.item,
2898
+ onClick: m[0] || (m[0] = Ee((A) => t("click", s.item), ["stop"])),
2899
+ onDblclick: m[1] || (m[1] = Ee((A) => t("dbclick", s.item), ["stop"]))
2900
2900
  }, null, 8, ["class", "item"]));
2901
2901
  }
2902
2902
  });
2903
- const It = /* @__PURE__ */ me(zl, [["__scopeId", "data-v-8b8ee819"]]), Hl = {};
2903
+ const $t = /* @__PURE__ */ me(zl, [["__scopeId", "data-v-8b8ee819"]]), Hl = {};
2904
2904
  function Rl(e, t) {
2905
2905
  return null;
2906
2906
  }
2907
- const Wl = /* @__PURE__ */ me(Hl, [["render", Rl]]), Gl = ["data-block"], Ql = ["data-xine"], ql = /* @__PURE__ */ ne({
2907
+ const Wl = /* @__PURE__ */ me(Hl, [["render", Rl]]), Gl = ["data-block"], ql = ["data-xine"], Ql = /* @__PURE__ */ ne({
2908
2908
  __name: "sheet",
2909
2909
  props: {
2910
2910
  item: {},
@@ -2913,18 +2913,18 @@ const Wl = /* @__PURE__ */ me(Hl, [["render", Rl]]), Gl = ["data-block"], Ql = [
2913
2913
  setup(e) {
2914
2914
  return (t, o) => (r(), h("div", {
2915
2915
  class: "flex items-center red_sheet",
2916
- "data-block": L($e)
2916
+ "data-block": L(Ie)
2917
2917
  }, [
2918
2918
  (r(!0), h(O, null, le(t.item.optList, (l, i) => (r(), h("span", {
2919
2919
  class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(L(ut)[i]) && "bg-success border-success"]),
2920
2920
  style: X({ width: `${L(Fe)[t.layout.fillSize].value + 1}px`, height: `${L(Fe)[t.layout.fillSize].height + 1}px` }),
2921
- "data-xine": L(I).fill + i
2921
+ "data-xine": L($).fill + i
2922
2922
  }, [
2923
2923
  ae(ve, {
2924
2924
  width: 1,
2925
2925
  name: L(ut)[i]
2926
2926
  }, null, 8, ["name"])
2927
- ], 14, Ql))), 256))
2927
+ ], 14, ql))), 256))
2928
2928
  ], 8, Gl));
2929
2929
  }
2930
2930
  }), Yl = {};
@@ -2948,13 +2948,13 @@ const Ul = /* @__PURE__ */ me(Yl, [["render", Kl]]), Vl = ["data-block"], jl = [
2948
2948
  }));
2949
2949
  return (l, i) => (r(), h("div", {
2950
2950
  class: "flex red_sheet",
2951
- "data-block": L($e)
2951
+ "data-block": L(Ie)
2952
2952
  }, [
2953
2953
  l.item.style[L(d)[l.layout.mode].decide_a] === L(f).decide_1 ? (r(), h(O, { key: 0 }, [
2954
2954
  k("span", {
2955
2955
  class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
2956
2956
  style: X(o.value),
2957
- "data-xine": L(I).fill + "0"
2957
+ "data-xine": L($).fill + "0"
2958
2958
  }, [
2959
2959
  ae(ve, {
2960
2960
  name: "right",
@@ -2964,7 +2964,7 @@ const Ul = /* @__PURE__ */ me(Yl, [["render", Kl]]), Vl = ["data-block"], jl = [
2964
2964
  k("span", {
2965
2965
  class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
2966
2966
  style: X(o.value),
2967
- "data-xine": L(I).fill + "1"
2967
+ "data-xine": L($).fill + "1"
2968
2968
  }, [
2969
2969
  ae(ve, {
2970
2970
  name: "wrong",
@@ -2975,12 +2975,12 @@ const Ul = /* @__PURE__ */ me(Yl, [["render", Kl]]), Vl = ["data-block"], jl = [
2975
2975
  k("span", {
2976
2976
  class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
2977
2977
  style: X(o.value),
2978
- "data-xine": L(I).fill + "0"
2978
+ "data-xine": L($).fill + "0"
2979
2979
  }, en, 14, Jl),
2980
2980
  k("span", {
2981
2981
  class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
2982
2982
  style: X(o.value),
2983
- "data-xine": L(I).fill + "1"
2983
+ "data-xine": L($).fill + "1"
2984
2984
  }, an, 14, tn)
2985
2985
  ], 64))
2986
2986
  ], 8, Vl));
@@ -3004,8 +3004,8 @@ const rn = /* @__PURE__ */ me(nn, [["render", sn]]), cn = ["data-block", "data-x
3004
3004
  return (l, i) => l.layout.handReadFlag ? (r(), h("div", {
3005
3005
  key: 0,
3006
3006
  class: "score_fill flex items-center",
3007
- "data-block": L($e),
3008
- "data-xine": L(I).fill
3007
+ "data-block": L(Ie),
3008
+ "data-xine": L($).fill
3009
3009
  }, [
3010
3010
  l.showScoreCn ? (r(), h("span", dn, [
3011
3011
  k("span", null, te(o.value ? "" : "-") + te(l.item.score), 1),
@@ -3030,7 +3030,7 @@ const rn = /* @__PURE__ */ me(nn, [["render", sn]]), cn = ["data-block", "data-x
3030
3030
  k("div", {
3031
3031
  class: "flex-1 border-b self-stretch red_sheet",
3032
3032
  style: X({ height: `${20 + o.item.style[L(d)[t.layout.mode].fill_e]}px` }),
3033
- "data-xine": L(I).fill_line
3033
+ "data-xine": L($).fill_line
3034
3034
  }, null, 12, pn),
3035
3035
  o.layout.handReadFlag ? (r(), ee(hn, {
3036
3036
  key: 0,
@@ -3058,7 +3058,7 @@ const fn = /* @__PURE__ */ me(yn, [["render", _n]]), gn = ["data-block"], bn = {
3058
3058
  t.item.chunk ? B("", !0) : (r(), h("div", {
3059
3059
  key: 0,
3060
3060
  class: "absolute left-0 top-2 w-full flex items-center",
3061
- "data-block": L($e)
3061
+ "data-block": L(Ie)
3062
3062
  }, [
3063
3063
  mt(t.$slots, "default"),
3064
3064
  k("div", bn, [
@@ -3101,11 +3101,11 @@ const xn = /* @__PURE__ */ me(wn, [["render", kn]]), Cn = /* @__PURE__ */ ne({
3101
3101
  function Tn(e, t) {
3102
3102
  return null;
3103
3103
  }
3104
- const $n = /* @__PURE__ */ me(Sn, [["render", Tn]]), In = {};
3104
+ const In = /* @__PURE__ */ me(Sn, [["render", Tn]]), $n = {};
3105
3105
  function Ln(e, t) {
3106
3106
  return null;
3107
3107
  }
3108
- const Fn = /* @__PURE__ */ me(In, [["render", Ln]]), En = {};
3108
+ const Fn = /* @__PURE__ */ me($n, [["render", Ln]]), En = {};
3109
3109
  function Pn(e, t) {
3110
3110
  return null;
3111
3111
  }
@@ -3117,17 +3117,17 @@ const Bn = /* @__PURE__ */ me(An, [["render", Dn]]), Nn = {};
3117
3117
  function On(e, t) {
3118
3118
  return null;
3119
3119
  }
3120
- const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn = ["data-block"], Wn = { class: "flex-1 flex justify-end overflow-hidden" }, Gn = ["data-block", "data-size"], Qn = ["data-block"], qn = /* @__PURE__ */ ne({
3120
+ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn = ["data-block"], Wn = { class: "flex-1 flex justify-end overflow-hidden" }, Gn = ["data-block", "data-size"], qn = ["data-block"], Qn = /* @__PURE__ */ ne({
3121
3121
  __name: "sheet",
3122
3122
  props: {
3123
3123
  item: {},
3124
3124
  layout: {}
3125
3125
  },
3126
3126
  setup(e) {
3127
- const t = e, o = V(0), l = V({}), i = V(), a = V(), s = V([]), c = W(() => {
3127
+ const t = e, o = V(0), l = V({}), i = V(), a = V(), n = V([]), c = W(() => {
3128
3128
  const p = Math.max((t.item.endAnswerLen || parseInt(t.item.style[d[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, A.value.length, 0);
3129
3129
  return p ? Math.ceil(p / (o.value || p)) : 0;
3130
- }), y = W(() => parseInt(t.item.style[d[t.layout.mode].art_b])), n = W(() => ({
3130
+ }), y = W(() => parseInt(t.item.style[d[t.layout.mode].art_b])), s = W(() => ({
3131
3131
  width: `${o.value * y.value}px`,
3132
3132
  height: `${y.value}px`
3133
3133
  })), m = W(() => ({
@@ -3148,7 +3148,7 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3148
3148
  }, 20);
3149
3149
  });
3150
3150
  const p = parseInt(t.item.style[d[t.layout.mode].art_c]), P = t.item.style[d[t.layout.mode].art_e], z = Math.floor(p / P), j = Math.round(z / (t.item.style[d[t.layout.mode].art_d] || 1) - 0.01) * P;
3151
- s.value = [...Array(Math.min(t.item.style[d[t.layout.mode].art_d] || 1, z) - 1 || 0).keys()].map((J) => (J + 1) * j).concat(p / P < 2 ? P : p).filter((J) => J);
3151
+ n.value = [...Array(Math.min(t.item.style[d[t.layout.mode].art_d] || 1, z) - 1 || 0).keys()].map((J) => (J + 1) * j).concat(p / P < 2 ? P : p).filter((J) => J);
3152
3152
  }), (p, P) => (r(), h("div", {
3153
3153
  class: "w-full relative min-h-[10rem]",
3154
3154
  ref_key: "view",
@@ -3158,7 +3158,7 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3158
3158
  p.item.chunk ? B("", !0) : (r(), h("div", {
3159
3159
  key: 0,
3160
3160
  class: "flex items-center mt-1 mb-4",
3161
- "data-block": L($e)
3161
+ "data-block": L(Ie)
3162
3162
  }, [
3163
3163
  mt(p.$slots, "default"),
3164
3164
  k("div", Wn, [
@@ -3180,21 +3180,21 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3180
3180
  ref_key: "line",
3181
3181
  ref: a,
3182
3182
  class: "flex mx-auto mt-3 mb-1 relative red_sheet border divide-x divide-solid",
3183
- "data-block": L($e),
3183
+ "data-block": L(Ie),
3184
3184
  "data-size": p.item.startAnswerLen + (j + 1) * o.value,
3185
- style: X(n.value)
3185
+ style: X(s.value)
3186
3186
  }, [
3187
3187
  (r(!0), h(O, null, le(o.value, (J, D) => (r(), h("span", {
3188
3188
  class: oe([A.value[j * o.value + D] && "flex items-center justify-center"]),
3189
3189
  style: X(m.value)
3190
3190
  }, te(A.value[j * o.value + D] || ""), 7))), 256)),
3191
- (r(!0), h(O, null, le(s.value, (J) => (r(), h(O, null, [
3191
+ (r(!0), h(O, null, le(n.value, (J) => (r(), h(O, null, [
3192
3192
  p.item.startAnswerLen + j * o.value < J && p.item.startAnswerLen + (j + 1) * o.value >= J ? (r(), h("span", {
3193
3193
  key: 0,
3194
3194
  class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
3195
3195
  style: X({ left: `${(J - p.item.startAnswerLen) % o.value * y.value}px` }),
3196
3196
  "data-block": L(Be)
3197
- }, te(J), 13, Qn)) : B("", !0)
3197
+ }, te(J), 13, qn)) : B("", !0)
3198
3198
  ], 64))), 256))
3199
3199
  ], 12, Gn))), 256)),
3200
3200
  p.item.afterArt && [-1, 0].includes(p.item.endAnswerLen) ? (r(), ee(Oe, {
@@ -3241,7 +3241,7 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3241
3241
  bracketType: {}
3242
3242
  },
3243
3243
  setup(e) {
3244
- const t = e, o = W(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((s) => s.split(".")).map((s) => t.isFull ? s : s.map((c, y) => y === s.length - 1 ? c : ""))), l = W(() => t.width ? `${Math.max(t.width * 5 / 7, 1)}em` : ""), i = (a) => {
3244
+ const t = e, o = W(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((n) => n.split(".")).map((n) => t.isFull ? n : n.map((c, y) => y === n.length - 1 ? c : ""))), l = W(() => t.width ? `${Math.max(t.width * 5 / 7, 1)}em` : ""), i = (a) => {
3245
3245
  if (!t.bracketType)
3246
3246
  return "";
3247
3247
  if (a === "prev")
@@ -3249,7 +3249,7 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3249
3249
  if (a === "after")
3250
3250
  return t.bracketType === f.bracket_cn ? ")" : ")";
3251
3251
  };
3252
- return (a, s) => (r(), h("span", {
3252
+ return (a, n) => (r(), h("span", {
3253
3253
  class: oe(["flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]", a.isFull && "justify-end"]),
3254
3254
  style: X({ width: l.value }),
3255
3255
  "data-block": L(Be)
@@ -3266,7 +3266,7 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3266
3266
  }), ts = {
3267
3267
  components: {
3268
3268
  choice: Wl,
3269
- choiceSheet: ql,
3269
+ choiceSheet: Ql,
3270
3270
  decide: Ul,
3271
3271
  decideSheet: ln,
3272
3272
  fill: rn,
@@ -3275,12 +3275,12 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3275
3275
  sloveSheet: vn,
3276
3276
  easy_slove: xn,
3277
3277
  easy_sloveSheet: Cn,
3278
- mix: $n,
3278
+ mix: In,
3279
3279
  mixSheet: Fn,
3280
3280
  synthesis: Mn,
3281
3281
  synthesisSheet: Bn,
3282
3282
  art: zn,
3283
- artSheet: qn,
3283
+ artSheet: Qn,
3284
3284
  notArea: Kn,
3285
3285
  Sub: es
3286
3286
  },
@@ -3319,111 +3319,111 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3319
3319
  choice: [u.choice, u.choice_english, u.choice_multiple, u.cloze],
3320
3320
  fill: [u.fill, u.fill_english]
3321
3321
  };
3322
- return Object.keys(u).reduce((S, $) => ({ ...S, [u[$]]: Object.keys(g).find((N) => g[N].includes(u[$])) || `${$}${o}` }), {});
3323
- }), s = W(() => [Ce.one_choice, Ce.another_choice].includes(e.data.problemType)), c = W(() => {
3322
+ return Object.keys(u).reduce((S, I) => ({ ...S, [u[I]]: Object.keys(g).find((N) => g[N].includes(u[I])) || `${I}${o}` }), {});
3323
+ }), n = W(() => [Ce.one_choice, Ce.another_choice].includes(e.data.problemType)), c = W(() => {
3324
3324
  let g = [];
3325
- e.data.children.forEach(($) => {
3325
+ e.data.children.forEach((I) => {
3326
3326
  let N = g[g.length - 1];
3327
- (($.polymerId || l.includes(e.data.problemType)) && l.includes($.problemType) || [Ge.fill, Ge.fill_english].includes(e.data.problemType) && e.data.style[d[e.layout.mode].fill_g] === f.portrait) && $.style ? (!N || N.type !== "polymer" || N.polymerId !== $.polymerId) && (g.push({
3327
+ ((I.polymerId || l.includes(e.data.problemType)) && l.includes(I.problemType) || [Ge.fill, Ge.fill_english].includes(e.data.problemType) && e.data.style[d[e.layout.mode].fill_g] === f.portrait) && I.style ? (!N || N.type !== "polymer" || N.polymerId !== I.polymerId) && (g.push({
3328
3328
  type: "polymer",
3329
- problemType: $.problemType,
3330
- polymerId: $.polymerId,
3331
- styleInfo: $.polymerId ? $.style : e.data.style,
3329
+ problemType: I.problemType,
3330
+ polymerId: I.polymerId,
3331
+ styleInfo: I.polymerId ? I.style : e.data.style,
3332
3332
  children: [],
3333
3333
  rawChildren: e.data.rawChildren || []
3334
3334
  }), N = g[g.length - 1]) : (!N || N.type !== "base") && (g.push({
3335
3335
  type: "base",
3336
3336
  children: []
3337
- }), N = g[g.length - 1]), N.children.push({ ...$, __rootProblemType__: e.data.problemType, __rootProblemId__: e.data.id });
3337
+ }), N = g[g.length - 1]), N.children.push({ ...I, __rootProblemType__: e.data.problemType, __rootProblemId__: e.data.id });
3338
3338
  });
3339
- const S = ($, N, ue, Y, T, v) => {
3340
- let _ = Math.min(Math.floor(e.width / N), ue), H = [], Q = [], E = !0;
3339
+ const S = (I, N, ue, Y, T, v) => {
3340
+ let _ = Math.min(Math.floor(e.width / N), ue), H = [], q = [], E = !0;
3341
3341
  const R = (K = _) => {
3342
- H = (v ? [...Array(K).keys()].map((se, Te) => $.children.filter((ge, we) => we < (v ? Y : Y * _) && we % K === Te)).filter((se) => se.length) : [...Array(K).keys()].map((se) => $.children.slice(se * Y, (se + 1) * Y))).filter((se) => se.length).map((se) => Math.max(...se.map((Te) => {
3342
+ H = (v ? [...Array(K).keys()].map((se, Te) => I.children.filter((ge, we) => we < (v ? Y : Y * _) && we % K === Te)).filter((se) => se.length) : [...Array(K).keys()].map((se) => I.children.slice(se * Y, (se + 1) * Y))).filter((se) => se.length).map((se) => Math.max(...se.map((Te) => {
3343
3343
  var ge;
3344
3344
  return ((ge = Te.optList) == null ? void 0 : ge.length) || 0;
3345
3345
  })));
3346
3346
  };
3347
- for (R(_), Q = [...H]; E && _ < ue; )
3348
- R(_ + 1), E = _ + 1 <= ue && H.reduce((K, se) => K + se, 0) * (Fe[e.layout.fillSize].value + 9) + (_ + 1) * T < e.width, E && (_ += 1, Q = [...H]);
3349
- return { children: $.children.slice(0, v ? Y : Y * _), col: _, colList: [...Q] };
3347
+ for (R(_), q = [...H]; E && _ < ue; )
3348
+ R(_ + 1), E = _ + 1 <= ue && H.reduce((K, se) => K + se, 0) * (Fe[e.layout.fillSize].value + 9) + (_ + 1) * T < e.width, E && (_ += 1, q = [...H]);
3349
+ return { children: I.children.slice(0, v ? Y : Y * _), col: _, colList: [...q] };
3350
3350
  };
3351
- return g = g.map(($) => {
3351
+ return g = g.map((I) => {
3352
3352
  var N;
3353
- if ($.type === "polymer") {
3354
- const ue = $.styleInfo[d[e.layout.mode].choice_b] === f.landscape, Y = $.styleInfo[d[e.layout.mode].choice_e] || 20, T = e.data.style[d[e.layout.mode].choice_d] || 10, v = (n.value[`h${e.data.id}`] || n.value[$.polymerId] || n.value[((N = e.data.children[0]) == null ? void 0 : N.polymerId) || ""] || 0) * 10 + 10;
3355
- if ($.styleInfo[d[e.layout.mode].choice_a] === f.choice_1) {
3353
+ if (I.type === "polymer") {
3354
+ const ue = I.styleInfo[d[e.layout.mode].choice_b] === f.landscape, Y = I.styleInfo[d[e.layout.mode].choice_e] || 20, T = e.data.style[d[e.layout.mode].choice_d] || 10, v = (s.value[`h${e.data.id}`] || s.value[I.polymerId] || s.value[((N = e.data.children[0]) == null ? void 0 : N.polymerId) || ""] || 0) * 10 + 10;
3355
+ if (I.styleInfo[d[e.layout.mode].choice_a] === f.choice_1) {
3356
3356
  let _ = [], H = 0;
3357
- for (; H < $.children.length; ) {
3358
- const Q = $.children.slice(H), E = Math.max(...Q.map((K) => {
3357
+ for (; H < I.children.length; ) {
3358
+ const q = I.children.slice(H), E = Math.max(...q.map((K) => {
3359
3359
  var se;
3360
3360
  return ((se = K.optList) == null ? void 0 : se.length) || 0;
3361
- })) * (Fe[e.layout.fillSize].value + 9) + v, R = S({ ...$, children: Q }, E, T, Y, v, ue);
3362
- _.push({ ...$, groupIndex: _.length, children: R.children, col: R.col, colList: R.colList }), H = _.map((K) => K.children.length).reduce((K, se) => K + se, 0);
3361
+ })) * (Fe[e.layout.fillSize].value + 9) + v, R = S({ ...I, children: q }, E, T, Y, v, ue);
3362
+ _.push({ ...I, groupIndex: _.length, children: R.children, col: R.col, colList: R.colList }), H = _.map((K) => K.children.length).reduce((K, se) => K + se, 0);
3363
3363
  }
3364
3364
  return _;
3365
- } else if ($.styleInfo[d[e.layout.mode].choice_a] === f.choice_2) {
3366
- const _ = Math.max(Fe[e.layout.fillSize].value + 9, v), H = Math.floor(e.width / (_ * $.styleInfo[d[e.layout.mode].choice_c] + 10)), Q = H * $.styleInfo[d[e.layout.mode].choice_c];
3365
+ } else if (I.styleInfo[d[e.layout.mode].choice_a] === f.choice_2) {
3366
+ const _ = Math.max(Fe[e.layout.fillSize].value + 9, v), H = Math.floor(e.width / (_ * I.styleInfo[d[e.layout.mode].choice_c] + 10)), q = H * I.styleInfo[d[e.layout.mode].choice_c];
3367
3367
  let E = [{ children: [], col: H }];
3368
- return $.children.forEach((R, K) => {
3369
- K >= Q * E.length && E.push({ children: [], col: H }), E[E.length - 1].children.push(R);
3370
- }), E.map((R, K) => ({ ...$, groupIndex: K, children: R.children, col: R.col, colList: [] }));
3371
- } else if ($.styleInfo[d[e.layout.mode].choice_a] === f.choice_3) {
3372
- let _ = [], H = 0, Q = 0, E = 0, R = 0;
3373
- return $.children.forEach((K) => {
3374
- K.optList.length !== H && (Q = K.optList.length * (Fe[e.layout.fillSize].value + 9) + v, E = Math.min(Math.floor(e.width / Q), T), R = ue ? E * 20 : E * $.styleInfo[d[e.layout.mode].choice_e], H = K.optList.length, _.push({ children: [], col: E, colList: [...Array(E).keys()].map((se) => K.optList.length) })), (!Object.values(Re).includes(K.problemType) && !_.length || _[_.length - 1].children.length >= R) && _.push({ children: [], col: E, colList: [...Array(E).keys()].map((se) => K.optList.length) }), _[_.length - 1].children.push(K);
3375
- }), _.map((K, se) => ({ ...$, groupIndex: se, children: K.children, col: K.col, colList: K.colList }));
3376
- } else if ([u.fill, u.fill_english].includes($.problemType) && $.styleInfo[d[e.layout.mode].fill_g] === f.portrait) {
3377
- const _ = Math.floor($.styleInfo[d[e.layout.mode].fill_f]) * ($.styleInfo[d[e.layout.mode].fill_h] || 10);
3378
- return [...Array(Math.ceil($.children.length / _)).keys()].map((H, Q) => ({
3379
- ...$,
3380
- groupIndex: Q,
3381
- children: $.children.slice(Q * _, (Q + 1) * _).map((E) => ({
3368
+ return I.children.forEach((R, K) => {
3369
+ K >= q * E.length && E.push({ children: [], col: H }), E[E.length - 1].children.push(R);
3370
+ }), E.map((R, K) => ({ ...I, groupIndex: K, children: R.children, col: R.col, colList: [] }));
3371
+ } else if (I.styleInfo[d[e.layout.mode].choice_a] === f.choice_3) {
3372
+ let _ = [], H = 0, q = 0, E = 0, R = 0;
3373
+ return I.children.forEach((K) => {
3374
+ K.optList.length !== H && (q = K.optList.length * (Fe[e.layout.fillSize].value + 9) + v, E = Math.min(Math.floor(e.width / q), T), R = ue ? E * 20 : E * I.styleInfo[d[e.layout.mode].choice_e], H = K.optList.length, _.push({ children: [], col: E, colList: [...Array(E).keys()].map((se) => K.optList.length) })), (!Object.values(Re).includes(K.problemType) && !_.length || _[_.length - 1].children.length >= R) && _.push({ children: [], col: E, colList: [...Array(E).keys()].map((se) => K.optList.length) }), _[_.length - 1].children.push(K);
3375
+ }), _.map((K, se) => ({ ...I, groupIndex: se, children: K.children, col: K.col, colList: K.colList }));
3376
+ } else if ([u.fill, u.fill_english].includes(I.problemType) && I.styleInfo[d[e.layout.mode].fill_g] === f.portrait) {
3377
+ const _ = Math.floor(I.styleInfo[d[e.layout.mode].fill_f]) * (I.styleInfo[d[e.layout.mode].fill_h] || 10);
3378
+ return [...Array(Math.ceil(I.children.length / _)).keys()].map((H, q) => ({
3379
+ ...I,
3380
+ groupIndex: q,
3381
+ children: I.children.slice(q * _, (q + 1) * _).map((E) => ({
3382
3382
  ...E,
3383
3383
  style: {
3384
3384
  ...E.style,
3385
3385
  [d[e.layout.mode].fill_b]: !1,
3386
- [d[e.layout.mode].fill_d]: $.styleInfo[d[e.layout.mode].fill_d]
3386
+ [d[e.layout.mode].fill_d]: I.styleInfo[d[e.layout.mode].fill_d]
3387
3387
  }
3388
3388
  }))
3389
3389
  }));
3390
3390
  } else
3391
- return $;
3391
+ return I;
3392
3392
  } else
3393
- return $;
3393
+ return I;
3394
3394
  }).flat(), g;
3395
3395
  }), y = W(() => {
3396
3396
  let g = {};
3397
3397
  return e.data.children.forEach((S) => {
3398
3398
  S.polymerId && (g[S.polymerId] || (g[S.polymerId] = []), g[S.polymerId][S.polymerOrder || 0] = S.id);
3399
3399
  }), g;
3400
- }), n = W(() => {
3400
+ }), s = W(() => {
3401
3401
  if (l.includes(e.data.problemType)) {
3402
3402
  const g = (e.data.rawChildren || e.data.children).map((S) => S.subStr.length);
3403
3403
  return { [`h${e.data.id}`]: Math.max(...g) };
3404
3404
  } else
3405
3405
  return Object.keys(y.value).map((g) => {
3406
- const S = (e.data.rawChildren || e.data.children).filter(($) => $.polymerId === g).map(($) => $.subStr.length);
3406
+ const S = (e.data.rawChildren || e.data.children).filter((I) => I.polymerId === g).map((I) => I.subStr.length);
3407
3407
  return {
3408
3408
  [g]: Math.max(...S)
3409
3409
  };
3410
3410
  }).reduce((g, S) => ({ ...g, ...S }), {});
3411
3411
  });
3412
3412
  return {
3413
- Gps_cls: I,
3413
+ Gps_cls: $,
3414
3414
  problemLayoutKey: d,
3415
3415
  problemLayoutVal: f,
3416
3416
  hoverActive: i,
3417
3417
  ModuleTag: o,
3418
- ChoiceType: s,
3418
+ ChoiceType: n,
3419
3419
  GroupData: c,
3420
3420
  PolymerData: y,
3421
- SubWidthInfo: n,
3421
+ SubWidthInfo: s,
3422
3422
  ComputName: (g) => !g.problemType || g.notAreaFlag ? "notArea" : a.value[g.problemType],
3423
3423
  ComputAbs: (g) => o && [u.slove, u.art].includes(g.problemType),
3424
3424
  ComputPolymerCls: (g) => [u.decide].includes(g.problemType) ? [] : g.styleInfo[d[e.layout.mode].choice_a] === f.choice_2 ? ["port_view"] : ["grid", g.groupIndex && "mt-6"],
3425
3425
  ComputPolymerStyle: (g) => {
3426
- var $;
3426
+ var I;
3427
3427
  let S = {};
3428
3428
  if ([u.fill, u.fill_english].includes(g.problemType))
3429
3429
  switch (g.styleInfo[d[e.layout.mode].fill_g]) {
@@ -3439,7 +3439,7 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3439
3439
  if (g.styleInfo[d[e.layout.mode].choice_a] === f.choice_2)
3440
3440
  return S;
3441
3441
  let N = [];
3442
- const ue = g.styleInfo[d[e.layout.mode].choice_b] === f.landscape, Y = g.styleInfo[d[e.layout.mode].choice_e] || 20, T = (n.value[`h${e.data.id}`] || n.value[g.polymerId] || n.value[(($ = e.data.children[0]) == null ? void 0 : $.polymerId) || ""] || 0) * 10 + 10, v = g.colList.map((_) => _ * (Fe[e.layout.fillSize].value + 9) + T);
3442
+ const ue = g.styleInfo[d[e.layout.mode].choice_b] === f.landscape, Y = g.styleInfo[d[e.layout.mode].choice_e] || 20, T = (s.value[`h${e.data.id}`] || s.value[g.polymerId] || s.value[((I = e.data.children[0]) == null ? void 0 : I.polymerId) || ""] || 0) * 10 + 10, v = g.colList.map((_) => _ * (Fe[e.layout.fillSize].value + 9) + T);
3443
3443
  switch (g.styleInfo[d[e.layout.mode].choice_f]) {
3444
3444
  case f.choice_6:
3445
3445
  N = v.map((_) => `${_}px`);
@@ -3451,9 +3451,9 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3451
3451
  switch (g.styleInfo[d[e.layout.mode].choice_a]) {
3452
3452
  case f.choice_1:
3453
3453
  case f.choice_3:
3454
- ue && !e.noPortrait && [...Array(Math.ceil(g.children.length / Y)).keys()].map((H) => g.children.filter((Q, E) => E >= H * Y && E < (H + 1) * Y)).map((H, Q) => H.map((E, R) => ({ ...E, _grid_area_: ue ? null : ut[R] + Q }))).flat(2).forEach((H) => {
3455
- const Q = g.children.find((E) => E.id === H.id);
3456
- Q._grid_area_ = H._grid_area_;
3454
+ ue && !e.noPortrait && [...Array(Math.ceil(g.children.length / Y)).keys()].map((H) => g.children.filter((q, E) => E >= H * Y && E < (H + 1) * Y)).map((H, q) => H.map((E, R) => ({ ...E, _grid_area_: ue ? null : ut[R] + q }))).flat(2).forEach((H) => {
3455
+ const q = g.children.find((E) => E.id === H.id);
3456
+ q._grid_area_ = H._grid_area_;
3457
3457
  }), S = ue ? {
3458
3458
  "grid-template": `repeat(${Math.ceil(g.children.length / g.col)}, 1fr) / ${N.join(" ")}`
3459
3459
  } : {
@@ -3466,13 +3466,13 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3466
3466
  return S;
3467
3467
  },
3468
3468
  ComputPolymerItemStyle: (g, S) => {
3469
- var $;
3469
+ var I;
3470
3470
  if (g._grid_area_)
3471
3471
  return {
3472
3472
  "grid-area": g._grid_area_
3473
3473
  };
3474
3474
  if (Object.values(Re).includes(g.problemType) && g.style[d[e.layout.mode].choice_a] === f.choice_2) {
3475
- const N = Math.max(Fe[e.layout.fillSize].value + 9, (n.value[`h${e.data.id}`] || n.value[g.polymerId] || n.value[($ = g.children[0]) == null ? void 0 : $.polymerId] || 0) * 10 + 10), ue = Math.floor(e.width / (N * g.style[d[e.layout.mode].choice_c] + 10)), Y = (e.width - N * ue * g.style[d[e.layout.mode].choice_c]) / (ue - 1 || 1) - 1;
3475
+ const N = Math.max(Fe[e.layout.fillSize].value + 9, (s.value[`h${e.data.id}`] || s.value[g.polymerId] || s.value[(I = g.children[0]) == null ? void 0 : I.polymerId] || 0) * 10 + 10), ue = Math.floor(e.width / (N * g.style[d[e.layout.mode].choice_c] + 10)), Y = (e.width - N * ue * g.style[d[e.layout.mode].choice_c]) / (ue - 1 || 1) - 1;
3476
3476
  return !((S + 1) % g.style[d[e.layout.mode].choice_c]) && ((S + 1) % (g.style[d[e.layout.mode].choice_c] * ue) || ue < 2) ? {
3477
3477
  "min-width": `${N - 5}px`,
3478
3478
  "margin-right": `${Y}px`
@@ -3484,37 +3484,37 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3484
3484
  },
3485
3485
  ComputStyle: (g, S) => {
3486
3486
  var N;
3487
- let $ = {};
3487
+ let I = {};
3488
3488
  if (!o)
3489
- return $;
3489
+ return I;
3490
3490
  if (l.includes(g.problemType)) {
3491
3491
  let ue = {};
3492
3492
  if (Object.values(Re).includes(e.data.problemType)) {
3493
3493
  const Y = Math.max(.../*props.data.rawChildren || */
3494
- e.data.children.map((v) => v.optList.length)) * (Fe[e.layout.fillSize].value + 9) + (n.value[`h${e.data.id}`] || n.value[g.polymerId || ""] || n.value[((N = e.data.children[0]) == null ? void 0 : N.polymerId) || ""] || 0) * 10 + 10, T = Math.min(Math.floor(e.width / Y), e.data.style[d[e.layout.mode].choice_d] || 10);
3494
+ e.data.children.map((v) => v.optList.length)) * (Fe[e.layout.fillSize].value + 9) + (s.value[`h${e.data.id}`] || s.value[g.polymerId || ""] || s.value[((N = e.data.children[0]) == null ? void 0 : N.polymerId) || ""] || 0) * 10 + 10, T = Math.min(Math.floor(e.width / Y), e.data.style[d[e.layout.mode].choice_d] || 10);
3495
3495
  ue = S % T ? { minWidth: `${Y}px`, marginLeft: `${(e.width - Y * T) / (T - 1) - 5}px` } : { minWidth: `${Y}px` };
3496
3496
  }
3497
- $ = {
3498
- ...$,
3497
+ I = {
3498
+ ...I,
3499
3499
  display: "inline-flex",
3500
3500
  ...ue
3501
3501
  };
3502
3502
  } else
3503
- [u.fill, u.fill_english, u.easy_slove].includes(g.problemType) && ($ = {
3503
+ [u.fill, u.fill_english, u.easy_slove].includes(g.problemType) && (I = {
3504
3504
  // display: (item.style[problemLayoutKey[props.layout.mode].fill_c] === problemLayoutVal.fill_1 && item.answerLen === 1) ? 'flex' : 'inline-flex',
3505
3505
  display: "inline-flex",
3506
3506
  alignItems: "flex-end",
3507
3507
  width: `calc(${100 / ([u.easy_slove].includes(g.problemType) ? g.style[d[e.layout.mode].easy_slove_c] : g.style[d[e.layout.mode].fill_d][g.order || 0])}% - 6px)`
3508
3508
  // paddingTop: `${10 + item.style[problemLayoutKey[props.layout.mode].fill_e]}px`
3509
3509
  });
3510
- return $;
3510
+ return I;
3511
3511
  },
3512
3512
  ComputBlock: (g) => {
3513
3513
  const S = [...l, u.fill, u.fill_english];
3514
3514
  if (o && (S.includes(g.problemType) || typeof g.groupIndex == "number"))
3515
- return $e;
3515
+ return Ie;
3516
3516
  },
3517
- ComputItemScore: (g) => [u.slove, u.easy_slove, u.art].includes(g.problemType) && g.style[d.public.scoreShowFlag] !== f.bracket_none ? [g.score].flat(2).reduce(($, N) => $ + N, 0) : null,
3517
+ ComputItemScore: (g) => [u.slove, u.easy_slove, u.art].includes(g.problemType) && g.style[d.public.scoreShowFlag] !== f.bracket_none ? [g.score].flat(2).reduce((I, N) => I + N, 0) : null,
3518
3518
  ComputPayload: (g, S) => {
3519
3519
  switch (g.problemType) {
3520
3520
  case u.slove:
@@ -3542,7 +3542,7 @@ const zn = /* @__PURE__ */ me(Nn, [["render", On]]), Hn = ["data-viewid"], Rn =
3542
3542
  }
3543
3543
  }, os = ["data-block", "data-polymer"], as = ["data-tag", "data-polymer", "data-block", "data-xine", "onClick", "onMouseenter", "onMouseleave"], ls = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], ns = { key: 0 };
3544
3544
  function ss(e, t, o, l, i, a) {
3545
- const s = Qt("Sub");
3545
+ const n = qt("Sub");
3546
3546
  return r(!0), h(O, null, le(l.GroupData, (c, y) => (r(), h(O, null, [
3547
3547
  c.type === "polymer" ? (r(), h("div", {
3548
3548
  key: 0,
@@ -3551,66 +3551,66 @@ function ss(e, t, o, l, i, a) {
3551
3551
  class: oe([...l.ComputPolymerCls(c)]),
3552
3552
  style: X(l.ComputPolymerStyle(c))
3553
3553
  }, [
3554
- (r(!0), h(O, null, le(c.children, (n, m) => {
3554
+ (r(!0), h(O, null, le(c.children, (s, m) => {
3555
3555
  var A;
3556
3556
  return r(), h("div", {
3557
- class: oe(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((A = o.target.value) == null ? void 0 : A.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
3558
- style: X(l.ComputPolymerItemStyle(n, m)),
3559
- "data-tag": n.__tag__,
3557
+ class: oe(["inline-flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70 port_item", l.hoverActive === s.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((A = o.target.value) == null ? void 0 : A.rootProblemId) === s.rootProblemId ? "border-current" : "border-transparent"]),
3558
+ style: X(l.ComputPolymerItemStyle(s, m)),
3559
+ "data-tag": s.__tag__,
3560
3560
  "data-polymer": y,
3561
- "data-block": l.ComputBlock(n),
3562
- "data-xine": l.Gps_cls.item + n._sub,
3563
- onClick: (p) => l.handleGroupClick(p, n),
3564
- onMouseenter: (p) => l.handleHoverIn(n),
3565
- onMouseleave: (p) => l.handleHoverOut(n)
3561
+ "data-block": l.ComputBlock(s),
3562
+ "data-xine": l.Gps_cls.item + s._sub,
3563
+ onClick: (p) => l.handleGroupClick(p, s),
3564
+ onMouseenter: (p) => l.handleHoverIn(s),
3565
+ onMouseleave: (p) => l.handleHoverOut(s)
3566
3566
  }, [
3567
- n.problemType ? (r(), ee(s, {
3567
+ s.problemType ? (r(), ee(n, {
3568
3568
  key: 0,
3569
- sub: n.sub,
3569
+ sub: s.sub,
3570
3570
  isFull: !!l.ModuleTag,
3571
- width: l.SubWidthInfo[`h${n.headLineId}`] || l.SubWidthInfo[n.polymerId || ""] || 0,
3572
- class: oe(["sub_item", l.ComputAbs(n) && "absolute left-0 top-3 left_sub"])
3571
+ width: l.SubWidthInfo[`h${s.headLineId}`] || l.SubWidthInfo[s.polymerId || ""] || 0,
3572
+ class: oe(["sub_item", l.ComputAbs(s) && "absolute left-0 top-3 left_sub"])
3573
3573
  }, null, 8, ["sub", "isFull", "width", "class"])) : B("", !0),
3574
- (r(), ee(wt(l.ComputName(n)), kt(xt({ item: n, layout: o.layout, ...l.ComputPayload(n, m) })), null, 16))
3574
+ (r(), ee(wt(l.ComputName(s)), kt(xt({ item: s, layout: o.layout, ...l.ComputPayload(s, m) })), null, 16))
3575
3575
  ], 46, as);
3576
3576
  }), 256))
3577
- ], 14, os)) : (r(!0), h(O, { key: 1 }, le(c.children, (n, m) => {
3577
+ ], 14, os)) : (r(!0), h(O, { key: 1 }, le(c.children, (s, m) => {
3578
3578
  var A;
3579
3579
  return r(), h(O, null, [
3580
3580
  k("div", {
3581
- class: oe(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === n.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((A = o.target.value) == null ? void 0 : A.rootProblemId) === n.rootProblemId ? "border-current" : "border-transparent"]),
3582
- style: X(l.ComputStyle(n, m)),
3583
- "data-tag": n.__tag__,
3584
- "data-block": l.ComputBlock(n),
3585
- "data-xine": l.Gps_cls.item + n._sub,
3586
- onClick: (p) => l.handleClick(p, n),
3587
- onDblclick: (p) => l.handleDblClick(p, n),
3588
- onMouseenter: (p) => l.handleHoverIn(n),
3589
- onMouseleave: (p) => l.handleHoverOut(n)
3581
+ class: oe(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", l.hoverActive === s.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((A = o.target.value) == null ? void 0 : A.rootProblemId) === s.rootProblemId ? "border-current" : "border-transparent"]),
3582
+ style: X(l.ComputStyle(s, m)),
3583
+ "data-tag": s.__tag__,
3584
+ "data-block": l.ComputBlock(s),
3585
+ "data-xine": l.Gps_cls.item + s._sub,
3586
+ onClick: (p) => l.handleClick(p, s),
3587
+ onDblclick: (p) => l.handleDblClick(p, s),
3588
+ onMouseenter: (p) => l.handleHoverIn(s),
3589
+ onMouseleave: (p) => l.handleHoverOut(s)
3590
3590
  }, [
3591
- n.problemType && !l.ComputAbs(n) ? (r(), ee(s, {
3591
+ s.problemType && !l.ComputAbs(s) ? (r(), ee(n, {
3592
3592
  key: 0,
3593
- sub: n.sub,
3593
+ sub: s.sub,
3594
3594
  isFull: !!l.ModuleTag,
3595
- width: l.SubWidthInfo[`h${n.headLineId}`] || l.SubWidthInfo[n.polymerId || ""] || 0,
3596
- score: l.ComputItemScore(n),
3597
- bracketType: n.style[l.problemLayoutKey.public.scoreShowFlag]
3595
+ width: l.SubWidthInfo[`h${s.headLineId}`] || l.SubWidthInfo[s.polymerId || ""] || 0,
3596
+ score: l.ComputItemScore(s),
3597
+ bracketType: s.style[l.problemLayoutKey.public.scoreShowFlag]
3598
3598
  }, null, 8, ["sub", "isFull", "width", "score", "bracketType"])) : B("", !0),
3599
- (r(), ee(wt(l.ComputName(n)), kt(xt({ item: n, layout: o.layout, ...l.ComputPayload(n, m) })), {
3599
+ (r(), ee(wt(l.ComputName(s)), kt(xt({ item: s, layout: o.layout, ...l.ComputPayload(s, m) })), {
3600
3600
  default: Et(() => [
3601
- n.customSub ? B("", !0) : (r(), ee(s, {
3601
+ s.customSub ? B("", !0) : (r(), ee(n, {
3602
3602
  key: 0,
3603
- sub: n.sub,
3603
+ sub: s.sub,
3604
3604
  isFull: !!l.ModuleTag,
3605
- width: l.SubWidthInfo[`h${n.headLineId}`] || l.SubWidthInfo[n.polymerId || ""] || 0,
3606
- score: l.ComputItemScore(n),
3607
- bracketType: n.style[l.problemLayoutKey.public.scoreShowFlag]
3605
+ width: l.SubWidthInfo[`h${s.headLineId}`] || l.SubWidthInfo[s.polymerId || ""] || 0,
3606
+ score: l.ComputItemScore(s),
3607
+ bracketType: s.style[l.problemLayoutKey.public.scoreShowFlag]
3608
3608
  }, null, 8, ["sub", "isFull", "width", "score", "bracketType"]))
3609
3609
  ]),
3610
3610
  _: 2
3611
3611
  }, 1040))
3612
3612
  ], 46, ls),
3613
- n.polymerId && l.PolymerData[n.polymerId][l.PolymerData[n.polymerId].length - 1] === n.id || n.style && n.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && n.order === n.answerLen - 1 ? (r(), h("div", ns)) : B("", !0)
3613
+ s.polymerId && l.PolymerData[s.polymerId][l.PolymerData[s.polymerId].length - 1] === s.id || s.style && s.style[l.problemLayoutKey[o.layout.mode].fill_c] === l.problemLayoutVal.fill_1 && s.order === s.answerLen - 1 ? (r(), h("div", ns)) : B("", !0)
3614
3614
  ], 64);
3615
3615
  }), 256))
3616
3616
  ], 64))), 256);
@@ -3623,10 +3623,10 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3623
3623
  return o === f.bracket_cn ? "(" : "(";
3624
3624
  if (c === "after")
3625
3625
  return o === f.bracket_cn ? ")" : ")";
3626
- }, s = t ? `<span>${a("prev")}${t}分${a("after")}</span>` : "";
3627
- return i ? `<span class="inline-flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]" data-block=${Be}>${i}${s}</span>` : "";
3628
- }, Pe = 200 / 96, Ht = 4, rs = 10, q = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, he = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Me = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), cs = (e, t, o) => {
3629
- const l = q(he(`${I.item}${e._sub}`, t));
3626
+ }, n = t ? `<span>${a("prev")}${t}分${a("after")}</span>` : "";
3627
+ return i ? `<span class="inline-flex items-center flex-shrink-0 leading-none whitespace-nowrap mr-2 mt-[1px]" data-block=${Be}>${i}${n}</span>` : "";
3628
+ }, Pe = 200 / 96, Ht = 4, rs = 10, Q = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, he = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Me = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), cs = (e, t, o) => {
3629
+ const l = Q(he(`${$.item}${e._sub}`, t));
3630
3630
  return !(l.top >= o.top + o.height || l.top + l.height < o.top);
3631
3631
  }, pe = (e, t, o = !1) => !e || !t ? null : {
3632
3632
  x: e.x - t.x,
@@ -3641,12 +3641,12 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3641
3641
  width: 0,
3642
3642
  height: 0
3643
3643
  };
3644
- const a = q(e), s = Math.min(t.height, a.y < t.y ? a.y + a.height - t.y : a.y + a.height > t.y + t.height || i ? t.y + t.height - a.y : a.height);
3645
- return s > 5 ? {
3644
+ const a = Q(e), n = Math.min(t.height, a.y < t.y ? a.y + a.height - t.y : a.y + a.height > t.y + t.height || i ? t.y + t.height - a.y : a.height);
3645
+ return n > 5 ? {
3646
3646
  x: a.x - o.x,
3647
3647
  y: Math.max(a.y, t.y) + (l ? 1 : 0) - o.y,
3648
3648
  width: a.width,
3649
- height: s - (l ? 2 : 0)
3649
+ height: n - (l ? 2 : 0)
3650
3650
  } : null;
3651
3651
  }, ce = (e, t = !1) => {
3652
3652
  if (!e)
@@ -3658,14 +3658,14 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3658
3658
  width: Math.round(l.width * Pe + o * 2),
3659
3659
  height: Math.round(l.height * Pe + o * 2)
3660
3660
  };
3661
- }, Rt = (e, t = I.en_num) => {
3661
+ }, Rt = (e, t = $.en_num) => {
3662
3662
  const o = he(t);
3663
3663
  if (!o)
3664
3664
  return null;
3665
3665
  const l = {
3666
3666
  // area: GetPosition(el, config.pageDom[0]),
3667
- area: pe(q(o), q(e.pageDom[0])),
3668
- list: Me(I.en_num_group, o).map((i) => Me(I.en_num_item, i).map((a) => pe(q(a), q(e.pageDom[0]), !0)))
3667
+ area: pe(Q(o), Q(e.pageDom[0])),
3668
+ list: Me($.en_num_group, o).map((i) => Me($.en_num_item, i).map((a) => pe(Q(a), Q(e.pageDom[0]), !0)))
3669
3669
  };
3670
3670
  return e.bindWidth ? {
3671
3671
  choiceGridSequenceNOList: [...Array(10).keys()].reverse(),
@@ -3694,32 +3694,32 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3694
3694
  paperWidth: Math.round(x[e.layout.paper].width * Pe),
3695
3695
  paperHeight: Math.round(x[e.layout.paper].height * Pe)
3696
3696
  }), us = (e) => {
3697
- const t = q(e.pageDom[0]), o = q(e.pageDom[1]), l = (i, a) => {
3697
+ const t = Q(e.pageDom[0]), o = Q(e.pageDom[1]), l = (i, a) => {
3698
3698
  var c;
3699
- const s = a > 2 || tt.includes(e.layout.paper) ? {
3700
- trdLeftTopPos: ce(pe(q(Me(`${I.point}t`, e.pageDom[i])[1]), q(e.pageDom[i]))),
3701
- trdLeftBottomPos: ce(pe(q(Me(`${I.point}b`, e.pageDom[i])[1]), q(e.pageDom[i])))
3699
+ const n = a > 2 || tt.includes(e.layout.paper) ? {
3700
+ trdLeftTopPos: ce(pe(Q(Me(`${$.point}t`, e.pageDom[i])[1]), Q(e.pageDom[i]))),
3701
+ trdLeftBottomPos: ce(pe(Q(Me(`${$.point}b`, e.pageDom[i])[1]), Q(e.pageDom[i])))
3702
3702
  } : {};
3703
- return (c = Qe.find((y) => y.code === e.layout.paper)) != null && c.isMultCol ? {
3704
- secLeftTopPos: ce(pe(q(Me(`${I.point}t`, e.pageDom[i])[0]), q(e.pageDom[i]))),
3705
- secLeftBottomPos: ce(pe(q(Me(`${I.point}b`, e.pageDom[i])[0]), q(e.pageDom[i]))),
3706
- ...s
3703
+ return (c = qe.find((y) => y.code === e.layout.paper)) != null && c.isMultCol ? {
3704
+ secLeftTopPos: ce(pe(Q(Me(`${$.point}t`, e.pageDom[i])[0]), Q(e.pageDom[i]))),
3705
+ secLeftBottomPos: ce(pe(Q(Me(`${$.point}b`, e.pageDom[i])[0]), Q(e.pageDom[i]))),
3706
+ ...n
3707
3707
  } : null;
3708
3708
  };
3709
3709
  return {
3710
3710
  // 取第一/二页定位点信息
3711
- leftTopPos: ce(pe(q(he(`${I.point}lt`, e.pageDom[0])), t)),
3712
- rightTopPos: ce(pe(q(he(`${I.point}rt`, e.pageDom[0])), t)),
3713
- leftBottomPos: ce(pe(q(he(`${I.point}lb`, e.pageDom[0])), t)),
3714
- rightBottomPos: ce(pe(q(he(`${I.point}rb`, e.pageDom[0])), t)),
3711
+ leftTopPos: ce(pe(Q(he(`${$.point}lt`, e.pageDom[0])), t)),
3712
+ rightTopPos: ce(pe(Q(he(`${$.point}rt`, e.pageDom[0])), t)),
3713
+ leftBottomPos: ce(pe(Q(he(`${$.point}lb`, e.pageDom[0])), t)),
3714
+ rightBottomPos: ce(pe(Q(he(`${$.point}rb`, e.pageDom[0])), t)),
3715
3715
  // waistAuxAnchorInfo: getAuxInfo(0, true),
3716
3716
  verticalAuxInfo: [
3717
- ce(pe(q(he(`${I.point}l`, e.pageDom[0])), t)),
3718
- ce(pe(q(he(`${I.point}r`, e.pageDom[0])), t))
3717
+ ce(pe(Q(he(`${$.point}l`, e.pageDom[0])), t)),
3718
+ ce(pe(Q(he(`${$.point}r`, e.pageDom[0])), t))
3719
3719
  ],
3720
3720
  verticalAuxInfo2: e.bindWidth && e.pageDom[1] ? [
3721
- ce(pe(q(he(`${I.point}l`, e.pageDom[1])), o)),
3722
- ce(pe(q(he(`${I.point}r`, e.pageDom[1])), o))
3721
+ ce(pe(Q(he(`${$.point}l`, e.pageDom[1])), o)),
3722
+ ce(pe(Q(he(`${$.point}r`, e.pageDom[1])), o))
3723
3723
  ] : null,
3724
3724
  auxAnchorInfo: l(0, e.layout.column),
3725
3725
  auxAnchorInfo2: e.pageDom[1] ? l(1, e.layout.backColumn) : null
@@ -3727,10 +3727,10 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3727
3727
  }, hs = (e) => {
3728
3728
  let t = 10;
3729
3729
  if (e.pageDom[1]) {
3730
- const l = he(`${I.page_item}0`, e.pageDom[1]).getBoundingClientRect();
3731
- t = he(`${I.page_item}1`, e.pageDom[1]).getBoundingClientRect().left - l.left - l.width;
3730
+ const l = he(`${$.page_item}0`, e.pageDom[1]).getBoundingClientRect();
3731
+ t = he(`${$.page_item}1`, e.pageDom[1]).getBoundingClientRect().left - l.left - l.width;
3732
3732
  }
3733
- let o = pe(q(he(I.page, e.pageDom[e.pageTotal - 1])), q(e.pageDom[e.pageTotal - 1]));
3733
+ let o = pe(Q(he($.page, e.pageDom[e.pageTotal - 1])), Q(e.pageDom[e.pageTotal - 1]));
3734
3734
  return o = { ...o, y: o.y % (x[e.layout.paper].height + (e.pageMargin || 0)) }, [
3735
3735
  {
3736
3736
  // 固定值
@@ -3740,7 +3740,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3740
3740
  // 页码区块位置,部分需动态获取 x y width height
3741
3741
  choiceQuestionPosition: ce(o, !0),
3742
3742
  // 页码点区块第一个页码点的位置,部分需动态获取
3743
- firstChoicePosition: ce(pe(q(he(`${I.page_item}0`, e.pageDom[e.pageTotal - 1])), q(e.pageDom[e.pageTotal - 1]))),
3743
+ firstChoicePosition: ce(pe(Q(he(`${$.page_item}0`, e.pageDom[e.pageTotal - 1])), Q(e.pageDom[e.pageTotal - 1]))),
3744
3744
  // 页码点最大值,展开为数组
3745
3745
  choiceGridSequenceNOList: _t.filter((l, i) => i < e.pageTotal),
3746
3746
  // 排列方向
@@ -3752,16 +3752,16 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3752
3752
  }
3753
3753
  ];
3754
3754
  }, ps = (e) => {
3755
- const t = he(I.lack, e.pageDom[0]);
3755
+ const t = he($.lack, e.pageDom[0]);
3756
3756
  return t ? {
3757
3757
  // 固定值
3758
3758
  choiceQuestionCount: 1,
3759
3759
  // 固定值
3760
3760
  questionNOList: [1],
3761
3761
  // 方框业务坐标
3762
- choiceQuestionPosition: ce(pe(q(t), q(e.pageDom[0])), !0),
3762
+ choiceQuestionPosition: ce(pe(Q(t), Q(e.pageDom[0])), !0),
3763
3763
  // 数据坐标
3764
- firstChoicePosition: ce(pe(q(t), q(e.pageDom[0]))),
3764
+ firstChoicePosition: ce(pe(Q(t), Q(e.pageDom[0]))),
3765
3765
  // 固定值
3766
3766
  choiceGridSequenceNOList: [
3767
3767
  "true"
@@ -3772,19 +3772,31 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3772
3772
  xColOffset: 0
3773
3773
  } : null;
3774
3774
  }, ms = (e) => {
3775
- let t = pe(q(he(I.en_code, e.pageDom[0])), q(e.pageDom[0]));
3776
- return ce(t);
3775
+ const t = he($.en_code, e.pageDom[0]);
3776
+ if (!t)
3777
+ return null;
3778
+ let o = pe(Q(t), Q(e.pageDom[0]));
3779
+ return {
3780
+ // 条形码虚线框位置, x, y, width, height
3781
+ // encodePictureArea: ComputPoint(GetPosition(GetEl(GpsKey.en_code, config.pageDom[0]), config.pageDom[0])),
3782
+ encodePictureArea: ce(o),
3783
+ // ComputPoint(GetPosition(GetEl(GpsKey.en_code, config.pageDom[0]), config.pageDom[0])),
3784
+ // 固定值
3785
+ qrCodePosition: null,
3786
+ // 条形码或二维码,不确定,固定此值
3787
+ pictureType: "TYPE_NONE"
3788
+ };
3777
3789
  }, ys = (e) => {
3778
- const t = he(I.write_view, e.pageDom[0]);
3790
+ const t = he($.write_view, e.pageDom[0]);
3779
3791
  if (!t)
3780
3792
  return null;
3781
- const o = Me(I.score_item, t);
3793
+ const o = Me($.score_item, t);
3782
3794
  return {
3783
3795
  id: "0",
3784
3796
  problemType: u.slove,
3785
- position: pe(q(t), q(e.pageDom[0])),
3797
+ position: pe(Q(t), Q(e.pageDom[0])),
3786
3798
  scoreList: o.map((l, i) => ({
3787
- position: pe(q(o[i]), q(e.pageDom[0])),
3799
+ position: pe(Q(o[i]), Q(e.pageDom[0])),
3788
3800
  itemPosition: {
3789
3801
  width: o[i].offsetWidth
3790
3802
  },
@@ -3797,13 +3809,13 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3797
3809
  switch (a.problemType) {
3798
3810
  case u.fill:
3799
3811
  case u.fill_english:
3800
- return !e.layout.handReadFlag && a.isHiddenContent ? [] : a.children.map((s) => {
3801
- const c = s.scorePosition;
3812
+ return !e.layout.handReadFlag && a.isHiddenContent ? [] : a.children.map((n) => {
3813
+ const c = n.scorePosition;
3802
3814
  return {
3803
- sub: s.id,
3815
+ sub: n.id,
3804
3816
  position: {
3805
- x: i(c.x - s.position.x),
3806
- y: i(c.y - s.position.y) + l * (a.colIndex - 1),
3817
+ x: i(c.x - n.position.x),
3818
+ y: i(c.y - n.position.y) + l * (a.colIndex - 1),
3807
3819
  width: c.width,
3808
3820
  height: c.height
3809
3821
  }
@@ -3816,47 +3828,62 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3816
3828
  position: {
3817
3829
  x: i(a.scoreList[0].position.x - a.position.x),
3818
3830
  y: i(a.scoreList[0].position.y - a.position.y) + l * (a.colIndex - 1),
3819
- width: a.scoreList.map((s) => s.position.width).reduce((s, c) => s + c, 0),
3831
+ width: a.scoreList.map((n) => n.position.width).reduce((n, c) => n + c, 0),
3820
3832
  height: a.scoreList[0].position.height
3821
3833
  }
3822
3834
  }] : [];
3823
3835
  case u.mix:
3824
- return !e.layout.handReadFlag && a.isHiddenContent ? [] : (a.children || []).filter((s) => [u.fill, u.fill_english, u.easy_slove].includes(s.problemType)).map((s) => [u.easy_slove].includes(s.problemType) ? {
3825
- sub: s.id,
3836
+ return !e.layout.handReadFlag && a.isHiddenContent ? [] : (a.children || []).filter((n) => [u.fill, u.fill_english, u.easy_slove].includes(n.problemType)).map((n) => [u.easy_slove].includes(n.problemType) ? {
3837
+ sub: n.id,
3826
3838
  position: {
3827
- x: i(s.scoreList[0].position.x - (s.isHiddenContent ? s.position.x : a.position.x)),
3828
- y: i(s.scoreList[0].position.y - (s.isHiddenContent ? s.position.y : a.position.y)) + l * (a.colIndex - 1),
3829
- width: s.scoreList.map((c) => c.position.width).reduce((c, y) => c + y, 0),
3830
- height: s.position.height
3839
+ x: i(n.scoreList[0].position.x - (n.isHiddenContent ? n.position.x : a.position.x)),
3840
+ y: i(n.scoreList[0].position.y - (n.isHiddenContent ? n.position.y : a.position.y)) + l * (a.colIndex - 1),
3841
+ width: n.scoreList.map((c) => c.position.width).reduce((c, y) => c + y, 0),
3842
+ height: n.position.height
3831
3843
  }
3832
3844
  } : {
3833
- sub: s.id,
3845
+ sub: n.id,
3834
3846
  position: {
3835
- x: i(s.scorePosition.x - (s.isHiddenContent ? s.rawPosition.x : a.position.x)),
3836
- y: i(s.scorePosition.y - (s.isHiddenContent ? s.rawPosition.y : a.position.y)) + l * (a.colIndex - 1),
3837
- width: s.scorePosition.width,
3838
- height: s.scorePosition.height
3847
+ x: i(n.scorePosition.x - (n.isHiddenContent ? n.rawPosition.x : a.position.x)),
3848
+ y: i(n.scorePosition.y - (n.isHiddenContent ? n.rawPosition.y : a.position.y)) + l * (a.colIndex - 1),
3849
+ width: n.scorePosition.width,
3850
+ height: n.scorePosition.height
3839
3851
  }
3840
3852
  });
3841
3853
  }
3842
3854
  }).flat();
3843
3855
  }, fs = (e, t) => {
3856
+ const o = e.map((i) => {
3857
+ let a = [];
3858
+ return i.filter((n) => [u.fill, u.fill_english].includes(n.problemType)).forEach((n) => {
3859
+ let y = a.map((s) => s[0]).findIndex((s) => n.position.y < s.position.y + s.position.height && n.position.y + n.position.height > s.position.y);
3860
+ y === -1 && (a.push([]), y = a.length - 1), a[y].push(n);
3861
+ }), a.forEach((n) => n.sort((c, y) => c.position.x - y.position.x)), a;
3862
+ }).flat();
3863
+ let l = {};
3864
+ return t.map((i) => i.data).flat().map((i) => {
3865
+ const a = i.children.map((n) => n.id);
3866
+ return { id: i.id, data: o.filter((n) => a.includes(n[0].elId)).map((n) => n.map((c) => c.id)) };
3867
+ }).filter((i) => i.data.length).forEach((i) => {
3868
+ l[i.id] || (l[i.id] = []), l[i.id].push(...i.data);
3869
+ }), l;
3870
+ }, gs = (e, t) => {
3844
3871
  let o = 0, l = {};
3845
3872
  return [...Array(e.pageDom.length).keys()].map((i) => {
3846
- var c, y, n, m;
3847
- const a = Math.floor(i / 2) * (e.layout.column + e.layout.backColumn) + (i % 2 ? e.layout.column : 0), s = (m = (n = t[t.length - 1]) == null ? void 0 : n.data[((y = (c = t[t.length - 1]) == null ? void 0 : c.data) == null ? void 0 : y.length) - 1]) == null ? void 0 : m.children;
3873
+ var c, y, s, m;
3874
+ const a = Math.floor(i / 2) * (e.layout.column + e.layout.backColumn) + (i % 2 ? e.layout.column : 0), n = (m = (s = t[t.length - 1]) == null ? void 0 : s.data[((y = (c = t[t.length - 1]) == null ? void 0 : c.data) == null ? void 0 : y.length) - 1]) == null ? void 0 : m.children;
3848
3875
  return [...Array(i % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((A, p) => a + p < t.length).map((A, p) => {
3849
- const P = e.pageDom[i], z = q(P), j = e.colDom[a + p], J = q(j), D = e.colViewDom[a + p], w = q(D), G = t[a + p].data.map((C) => C.children).flat(), ie = t[a + p].data.filter((C) => [Ce.one_choice, Ce.another_choice].includes(C.problemType) && C.rawChildren.length).map((C) => {
3850
- const U = he(`${I.choice}${C.id}`, j);
3876
+ const P = e.pageDom[i], z = Q(P), j = e.colDom[a + p], J = Q(j), D = e.colViewDom[a + p], w = Q(D), G = t[a + p].data.map((C) => C.children).flat(), ie = t[a + p].data.filter((C) => [Ce.one_choice, Ce.another_choice].includes(C.problemType) && C.rawChildren.length).map((C) => {
3877
+ const U = he(`${$.choice}${C.id}`, j);
3851
3878
  return U ? {
3852
3879
  id: `${++o}`,
3853
3880
  baseIndex: parseInt(C.rawChildren[0]._sub),
3854
- position: pe(q(U), z),
3881
+ position: pe(Q(U), z),
3855
3882
  problemType: C.problemType,
3856
3883
  isOneChoice: !0,
3857
- optList: Me(I.fill, U).map((de, g) => ({
3884
+ optList: Me($.fill, U).map((de, g) => ({
3858
3885
  id: `${o}.${g + 1}`,
3859
- position: pe(q(de), z)
3886
+ position: pe(Q(de), z)
3860
3887
  })).filter((de) => de.position)
3861
3888
  } : {};
3862
3889
  }).filter((C) => C.position);
@@ -3864,7 +3891,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3864
3891
  var S;
3865
3892
  let de = {};
3866
3893
  l[C._sub] ? l[C._sub] += 1 : l[C._sub] = 1;
3867
- const g = he(`${I.item}${C._sub}`, j);
3894
+ const g = he(`${$.item}${C._sub}`, j);
3868
3895
  switch (C.problemType) {
3869
3896
  case u.choice:
3870
3897
  case u.choice_english:
@@ -3875,7 +3902,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3875
3902
  isColumn: C.style[d[e.layout.mode].choice_a] !== f.choice_2,
3876
3903
  optList: C.optList.map((Y, T) => ({
3877
3904
  id: `${C._sub}.${T + 1}`,
3878
- position: Ne(he(`${I.fill}${T}`, g), w, z)
3905
+ position: Ne(he(`${$.fill}${T}`, g), w, z)
3879
3906
  })).filter((Y) => Y.position)
3880
3907
  };
3881
3908
  break;
@@ -3883,13 +3910,13 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3883
3910
  de = {
3884
3911
  optList: [0, 1].map((Y, T) => ({
3885
3912
  id: `${C._sub}.${T + 1}`,
3886
- position: Ne(he(`${I.fill}${T}`, g), w, z)
3913
+ position: Ne(he(`${$.fill}${T}`, g), w, z)
3887
3914
  })).filter((Y) => Y.position)
3888
3915
  };
3889
3916
  break;
3890
3917
  case u.fill:
3891
3918
  case u.fill_english:
3892
- const $ = Me(I.fill, g), N = Me(I.fill_line, g);
3919
+ const I = Me($.fill, g), N = Me($.fill_line, g);
3893
3920
  de = {
3894
3921
  children: [C.score].flat().map((Y, T, v) => ({
3895
3922
  id: v.length > 1 ? `${C._sub}.${T + 1}` : C._sub,
@@ -3897,7 +3924,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3897
3924
  problemType: C.problemType,
3898
3925
  isHiddenContent: !C.style[d[e.layout.mode].fill_b],
3899
3926
  position: Ne(g, w, z),
3900
- scorePosition: Ne($[T], w, z),
3927
+ scorePosition: Ne(I[T], w, z),
3901
3928
  answerPosition: Ne(N[T], w, z)
3902
3929
  })).filter((Y) => Y.position)
3903
3930
  };
@@ -3905,12 +3932,12 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3905
3932
  case u.slove:
3906
3933
  case u.easy_slove:
3907
3934
  case u.art:
3908
- const ue = he(I.score, g);
3935
+ const ue = he($.score, g);
3909
3936
  de = {
3910
- scoreList: ue ? [he(I.score_tenbit, ue), he(I.score_base, ue), he(I.score_half, ue)].map((Y) => {
3937
+ scoreList: ue ? [he($.score_tenbit, ue), he($.score_base, ue), he($.score_half, ue)].map((Y) => {
3911
3938
  if (!Y)
3912
3939
  return {};
3913
- const T = Me(I.score_item, Y);
3940
+ const T = Me($.score_item, Y);
3914
3941
  return {
3915
3942
  position: Ne(Y, w, z, !0),
3916
3943
  itemPosition: {
@@ -3928,15 +3955,15 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3928
3955
  problemType: C.problemType,
3929
3956
  _rootProblemType: C._rootProblemType,
3930
3957
  _parentProblemType: C._parentProblemType,
3931
- position: Ne(g, w, z, !1, C.id === G[G.length - 1].id && C.id !== ((S = s[s.length - 1]) == null ? void 0 : S.id) && [u.slove].includes(C.problemType)),
3958
+ position: Ne(g, w, z, !1, C.id === G[G.length - 1].id && C.id !== ((S = n[n.length - 1]) == null ? void 0 : S.id) && [u.slove].includes(C.problemType)),
3932
3959
  ...de
3933
3960
  };
3934
3961
  }).concat(ie).filter((C) => C.position);
3935
3962
  });
3936
3963
  }).map((i) => i.flat());
3937
- }, gs = (e) => {
3964
+ }, bs = (e) => {
3938
3965
  let t = {};
3939
- const o = (a = e, s = !1) => (t[a.id] = {
3966
+ const o = (a = e, n = !1) => (t[a.id] = {
3940
3967
  _rootProblemType: rt[e._rootProblemType],
3941
3968
  _parentProblemType: rt[e._parentProblemType]
3942
3969
  }, {
@@ -3947,7 +3974,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3947
3974
  // 块内序号ID,按切块自增
3948
3975
  secitonSeqID: a.colIndex || 1,
3949
3976
  // 需要保存文件,固定值
3950
- needSavedFile: !!s || [u.mix].includes(e.problemType),
3977
+ needSavedFile: !!n || [u.mix].includes(e.problemType),
3951
3978
  // 题型
3952
3979
  cuttingSectionQuestionType: rt[a.problemType || e.problemType]
3953
3980
  });
@@ -3966,10 +3993,10 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
3966
3993
  // 选项是否为横排
3967
3994
  crosswised: e.isColumn,
3968
3995
  // 单个选项的信息数组
3969
- choiceUnitSectionList: e.optList.map((a, s) => ({
3996
+ choiceUnitSectionList: e.optList.map((a, n) => ({
3970
3997
  ...o(a, !0),
3971
3998
  choicePosition: ce(a.position),
3972
- choiceResult: [u.decide].includes(e.problemType) ? bo[s] : _t[s]
3999
+ choiceResult: [u.decide].includes(e.problemType) ? bo[n] : _t[n]
3973
4000
  }))
3974
4001
  }]
3975
4002
  };
@@ -4034,10 +4061,10 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
4034
4061
  // 选项横排
4035
4062
  crosswised: !0,
4036
4063
  // 单个选项的信息数组
4037
- choiceUnitSectionList: e.optList.map((a, s) => ({
4064
+ choiceUnitSectionList: e.optList.map((a, n) => ({
4038
4065
  ...o(a),
4039
4066
  choicePosition: ce(a.position),
4040
- choiceResult: (e.baseIndex + s).toString()
4067
+ choiceResult: (e.baseIndex + n).toString()
4041
4068
  }))
4042
4069
  }]
4043
4070
  };
@@ -4047,11 +4074,11 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
4047
4074
  ...o(e, !e.isOneChoice),
4048
4075
  ...l
4049
4076
  }, typeData: t };
4050
- }, bs = (e, t) => {
4077
+ }, vs = (e, t) => {
4051
4078
  let o = {};
4052
- const l = [...Array(e.pageTotal).keys()].map((s) => ({
4079
+ const l = [...Array(e.pageTotal).keys()].map((n) => ({
4053
4080
  // 当前页数
4054
- pageIndexID: s + 1,
4081
+ pageIndexID: n + 1,
4055
4082
  // 保留字段
4056
4083
  hasCardSerialNumber: !0,
4057
4084
  // 页码点信息
@@ -4061,43 +4088,43 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
4061
4088
  // 固定值
4062
4089
  splitFileList: [],
4063
4090
  // 依据当前页码设置答案
4064
- answerResultList: _t.slice(e.layout.pagePoint === qe.right_up.code ? e.pageTotal - s - 1 : 0, e.layout.pagePoint === qe.right_up.code ? e.pageTotal : s + 1),
4091
+ answerResultList: _t.slice(e.layout.pagePoint === Qe.right_up.code ? e.pageTotal - n - 1 : 0, e.layout.pagePoint === Qe.right_up.code ? e.pageTotal : n + 1),
4065
4092
  // 固定值
4066
4093
  noAnswerTag: !1
4067
4094
  }],
4068
4095
  // 按题切块信息
4069
- cardCuttingSectionList: t[s].map((c) => {
4070
- const y = gs(c);
4096
+ cardCuttingSectionList: t[n].map((c) => {
4097
+ const y = bs(c);
4071
4098
  return o = { ...o, ...y.typeData }, y.data;
4072
4099
  }).flat()
4073
- })), i = (s, c) => ([s.sectionID].flat(2)[0] || "").split(".").filter((y, n) => n < c).join("."), a = l.map((s) => {
4074
- let c = [], y = [], n = [];
4075
- return s.cardCuttingSectionList.forEach((m, A, p) => {
4100
+ })), i = (n, c) => ([n.sectionID].flat(2)[0] || "").split(".").filter((y, s) => s < c).join("."), a = l.map((n) => {
4101
+ let c = [], y = [], s = [];
4102
+ return n.cardCuttingSectionList.forEach((m, A, p) => {
4076
4103
  const P = i(m, 1);
4077
4104
  let z = !1, j = !1;
4078
- if (n.find((D) => i(D, 1) === P && D.secitonSeqID === m.secitonSeqID) && !(m.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (n.push(m), z = A < p.length - 1, j = !0), z)
4105
+ if (s.find((D) => i(D, 1) === P && D.secitonSeqID === m.secitonSeqID) && !(m.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (s.push(m), z = A < p.length - 1, j = !0), z)
4079
4106
  return;
4080
4107
  let J = !1;
4081
- if ((m.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (y.push(m), J = !0), n.length) {
4082
- if (n.length === 1)
4083
- c.push(n[0]);
4108
+ if ((m.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (y.push(m), J = !0), s.length) {
4109
+ if (s.length === 1)
4110
+ c.push(s[0]);
4084
4111
  else {
4085
- const D = n.map((C) => C.subjectiveQuestionSectionList || []).flat(), w = n.map((C) => C.choiceQuestionPartialSectionList || []).flat(), G = w.length ? { choiceQuestionPartialSectionList: w } : {}, ie = D.length ? { subjectiveQuestionSectionList: D } : {};
4112
+ const D = s.map((C) => C.subjectiveQuestionSectionList || []).flat(), w = s.map((C) => C.choiceQuestionPartialSectionList || []).flat(), G = w.length ? { choiceQuestionPartialSectionList: w } : {}, ie = D.length ? { subjectiveQuestionSectionList: D } : {};
4086
4113
  c.push({
4087
- ...n[0],
4114
+ ...s[0],
4088
4115
  // cuttingSectionQuestionType: typeResult[tmp[0].sectionID]._rootProblemType || tmp[0].cuttingSectionQuestionType,
4089
4116
  ...G,
4090
4117
  ...ie
4091
4118
  });
4092
4119
  }
4093
- n = [];
4120
+ s = [];
4094
4121
  }
4095
- J || j || n.push(m);
4096
- }), c = [...c, ...n].map((m) => ({ ...m, cuttingSectionQuestionType: o[m.sectionID]._rootProblemType || m.cuttingSectionQuestionType, sectionID: i(m, 1) })), { ...s, cardCuttingSectionList: [...c, ...y] };
4097
- }).map((s) => {
4098
- const c = s.cardCuttingSectionList.map((y) => {
4122
+ J || j || s.push(m);
4123
+ }), c = [...c, ...s].map((m) => ({ ...m, cuttingSectionQuestionType: o[m.sectionID]._rootProblemType || m.cuttingSectionQuestionType, sectionID: i(m, 1) })), { ...n, cardCuttingSectionList: [...c, ...y] };
4124
+ }).map((n) => {
4125
+ const c = n.cardCuttingSectionList.map((y) => {
4099
4126
  var P;
4100
- let n = [], m = [];
4127
+ let s = [], m = [];
4101
4128
  const A = Math.max(...(y.subjectiveQuestionSectionList || []).map((z) => z.sectionID.split(".").length - 1), 1);
4102
4129
  (P = y.subjectiveQuestionSectionList) == null || P.forEach((z, j, J) => {
4103
4130
  const D = i(z, A);
@@ -4105,10 +4132,10 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
4105
4132
  if (m.find((ie) => i(ie, A) === D && ie.secitonSeqID === z.secitonSeqID) && (m.push(z), w = j < J.length - 1, G = !0), !w) {
4106
4133
  if (m.length) {
4107
4134
  if (m.length === 1)
4108
- n.push(m[0]);
4135
+ s.push(m[0]);
4109
4136
  else {
4110
4137
  const ie = m.map((U) => U.singleBlankSectionList || []).flat(), C = ie.length ? { singleBlankSectionList: ie, unitCount: ie.length } : {};
4111
- n.push({
4138
+ s.push({
4112
4139
  ...m[0],
4113
4140
  // cuttingSectionQuestionType: typeResult[subjectTmp[0].sectionID]._parentProblemType || subjectTmp[0].cuttingSectionQuestionType,
4114
4141
  ...C
@@ -4119,18 +4146,18 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
4119
4146
  G || m.push(z);
4120
4147
  }
4121
4148
  });
4122
- const p = Math.max(...[...n, ...m].map((z) => z.sectionID.split(".").length));
4123
- return n = [...n, ...m].map((z) => ({ ...z, cuttingSectionQuestionType: o[z.sectionID]._parentProblemType || z.cuttingSectionQuestionType, sectionID: i(z, Math.max(p - 1, 1)) })), n.length ? {
4149
+ const p = Math.max(...[...s, ...m].map((z) => z.sectionID.split(".").length));
4150
+ return s = [...s, ...m].map((z) => ({ ...z, cuttingSectionQuestionType: o[z.sectionID]._parentProblemType || z.cuttingSectionQuestionType, sectionID: i(z, Math.max(p - 1, 1)) })), s.length ? {
4124
4151
  ...y,
4125
- subjectiveQuestionSectionList: n
4152
+ subjectiveQuestionSectionList: s
4126
4153
  } : y;
4127
4154
  });
4128
- return { ...s, cardCuttingSectionList: c };
4155
+ return { ...n, cardCuttingSectionList: c };
4129
4156
  });
4130
4157
  return o = {}, a;
4131
- }, vs = (e, t) => {
4158
+ }, ws = (e, t) => {
4132
4159
  var l;
4133
- const o = q(e.pageDom[0]);
4160
+ const o = Q(e.pageDom[0]);
4134
4161
  return {
4135
4162
  // 正文code
4136
4163
  cardID: e.textCode,
@@ -4147,22 +4174,13 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
4147
4174
  // 试卷二维码
4148
4175
  cardSerialNumber: {
4149
4176
  // 条形码虚线框位置, x, y, width, height
4150
- encodePictureArea: ce(pe(q(he(I.art_code, e.pageDom[0])), o), !0),
4151
- qrCodePosition: ce(pe(q(he(I.art_code, e.pageDom[0])), o)),
4177
+ encodePictureArea: ce(pe(Q(he($.art_code, e.pageDom[0])), o), !0),
4178
+ qrCodePosition: ce(pe(Q(he($.art_code, e.pageDom[0])), o)),
4152
4179
  // 条形码或二维码,不确定,固定此值
4153
4180
  pictureType: "TYPE_QRCODE"
4154
4181
  },
4155
4182
  // 条码式考号
4156
- studentID: {
4157
- // 条形码虚线框位置, x, y, width, height
4158
- // encodePictureArea: ComputPoint(GetPosition(GetEl(Gps_cls.en_code, config.pageDom[0]), config.pageDom[0])),
4159
- encodePictureArea: ms(e),
4160
- // ComputPoint(GetPosition(GetEl(Gps_cls.en_code, config.pageDom[0]), config.pageDom[0])),
4161
- // 固定值
4162
- qrCodePosition: null,
4163
- // 条形码或二维码,不确定,固定此值
4164
- pictureType: "TYPE_NONE"
4165
- },
4183
+ studentID: ms(e),
4166
4184
  // 表示一个正确ID号的位数,暂未使用,固定此值
4167
4185
  idLength: 12,
4168
4186
  // 用来表示老师布置题的标识,固定值
@@ -4170,7 +4188,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
4170
4188
  // 有UserID的页面序号,一般情况是奇数面,例如1、3、5
4171
4189
  userRegInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((i) => i % 2),
4172
4190
  // 有缺考标记的页面序号,一般情况是第一面,固定值1
4173
- absenceInfoIndexList: he(I.lack, e.pageDom[0]) ? [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((i) => i % 2) : null,
4191
+ absenceInfoIndexList: he($.lack, e.pageDom[0]) ? [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((i) => i % 2) : null,
4174
4192
  // 有试卷ID的页面号列表,一般情况是第一面,该值为0时不校验
4175
4193
  snInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((i) => i % 2),
4176
4194
  // 哪些面有选做老师布置题的信息,固定值
@@ -4179,7 +4197,7 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
4179
4197
  layerType: ds(e),
4180
4198
  // 定位点信息
4181
4199
  ...us(e),
4182
- pottedLineXPos: e.bindWidth ? (l = ce(pe(q(he(I.bind_line, e.pageDom[0])), o))) == null ? void 0 : l.x : 0,
4200
+ pottedLineXPos: e.bindWidth ? (l = ce(pe(Q(he($.bind_line, e.pageDom[0])), o))) == null ? void 0 : l.x : 0,
4183
4201
  // 页码点信息
4184
4202
  pageSideAnchorsList: hs(e),
4185
4203
  // 缺考标记
@@ -4187,21 +4205,21 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
4187
4205
  // 业务数据
4188
4206
  oneFullPageCardList: t
4189
4207
  };
4190
- }, ws = (e) => {
4191
- const { config: t, data: o } = e, l = ys(t), i = fs(t, o);
4208
+ }, ks = (e) => {
4209
+ const { config: t, data: o } = e, l = ys(t), i = gs(t, o);
4192
4210
  l && i[0].unshift(l);
4193
- const a = _s(t, i), s = bs(t, i), c = vs(t, s), y = Rt(t, I.en_num_view) || {};
4211
+ const a = _s(t, i), n = vs(t, i), c = ws(t, n), y = Rt(t, $.en_num_view) || {}, s = fs(i, o);
4194
4212
  return {
4195
4213
  engineData: c,
4196
4214
  pageTotal: t.pageTotal,
4197
4215
  format: x[t.layout.paper],
4198
4216
  localData: a,
4199
- extendInfo: { shortCoordinate: y }
4217
+ extendInfo: { shortCoordinate: y, topicArrangeList: Object.keys(s).map((m) => ({ topicId: m, quesArrangeList: s[m] })) }
4200
4218
  };
4201
- }, ks = { class: "layt-moni_view" }, xs = { class: "layt-moni_content" }, Cs = { class: "layt-moni_icon" }, Ss = { class: "layt-moni_msg" }, Ts = {
4219
+ }, xs = { class: "layt-moni_view" }, Cs = { class: "layt-moni_content" }, Ss = { class: "layt-moni_icon" }, Ts = { class: "layt-moni_msg" }, Is = {
4202
4220
  key: 0,
4203
4221
  class: "layt-moni_err_view"
4204
- }, $s = { class: "layt-moni_err_item_msg" }, Is = ["onClick"], Ls = /* @__PURE__ */ ne({
4222
+ }, $s = { class: "layt-moni_err_item_msg" }, Ls = ["onClick"], Fs = /* @__PURE__ */ ne({
4205
4223
  __name: "index",
4206
4224
  props: {
4207
4225
  ColList: {},
@@ -4214,11 +4232,11 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
4214
4232
  const o = e, l = V([]);
4215
4233
  De(() => [o.ColList, o.ImgData, o.TxtData], () => {
4216
4234
  l.value = [], setTimeout(() => {
4217
- var n;
4235
+ var s;
4218
4236
  o.ColList.forEach((m, A) => {
4219
4237
  m.data.map((p) => p.children).flat().filter((p) => [u.slove, u.art, u.easy_slove].includes(p.problemType) && !p.chunk).forEach((p) => {
4220
4238
  var J;
4221
- const P = (J = o.ColDom[A].querySelector(`*[data-tag="${p.__tag__}"]`)) == null ? void 0 : J.querySelector(`*[data-xine="${I.score}"]`);
4239
+ const P = (J = o.ColDom[A].querySelector(`*[data-tag="${p.__tag__}"]`)) == null ? void 0 : J.querySelector(`*[data-xine="${$.score}"]`);
4222
4240
  if (!P)
4223
4241
  return;
4224
4242
  P.classList.remove("err_lack");
@@ -4226,14 +4244,14 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
4226
4244
  P.offsetWidth - parseFloat(z.borderLeft) - parseFloat(z.borderRight) < j && (l.value.push({ msg: `${p.subStr}题打分条超长` }), P.classList.add("err_lack"), P.title = "打分条超长,请调整排版或使用自编打分条");
4227
4245
  });
4228
4246
  });
4229
- const s = (n = document.querySelector(".__layout__")) == null ? void 0 : n.getBoundingClientRect();
4230
- if (!s)
4247
+ const n = (s = document.querySelector(".__layout__")) == null ? void 0 : s.getBoundingClientRect();
4248
+ if (!n)
4231
4249
  return;
4232
4250
  let c = [], y = [];
4233
4251
  o.ImgData.forEach((m) => {
4234
- (m.left + m.width > s.width || m.top + m.height > s.height) && c.push(m);
4252
+ (m.left + m.width > n.width || m.top + m.height > n.height) && c.push(m);
4235
4253
  }), o.TxtData.forEach((m) => {
4236
- (m.left + m.width > s.width || m.top + m.height > s.height) && y.push(m);
4254
+ (m.left + m.width > n.width || m.top + m.height > n.height) && y.push(m);
4237
4255
  }), c.length && l.value.push({ type: "absImg", value: c, msg: `${c.length}张插入图片溢出`, fn: i }), y.length && l.value.push({ type: "absTxt", value: y, msg: `${y.length}条插入文本溢出`, fn: a }), t("changeLayoutStatus", l.value.length ? "error" : "ok");
4238
4256
  }, 500);
4239
4257
  });
@@ -4244,25 +4262,25 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
4244
4262
  var c;
4245
4263
  (((c = l.value.find((y) => y.type === "absTxt")) == null ? void 0 : c.value) || []).forEach((y) => t("delAbsTxtItem", y));
4246
4264
  };
4247
- return (s, c) => (r(), h("div", ks, [
4248
- k("div", xs, [
4265
+ return (n, c) => (r(), h("div", xs, [
4266
+ k("div", Cs, [
4249
4267
  k("div", {
4250
4268
  class: oe(["layt-moni_status", l.value.length ? "layt-moni_err" : "layt-moni_success"])
4251
4269
  }, null, 2),
4252
4270
  k("div", {
4253
4271
  class: oe(["layt-moni_info", l.value.length ? "layt-moni_err" : "layt-moni_success"])
4254
4272
  }, [
4255
- k("span", Cs, [
4273
+ k("span", Ss, [
4256
4274
  ae(ve, {
4257
4275
  width: 1.6,
4258
4276
  name: l.value.length ? "wrong" : "right"
4259
4277
  }, null, 8, ["name"])
4260
4278
  ]),
4261
- k("span", Ss, "排版" + te(l.value.length ? "异常" : "良好"), 1)
4279
+ k("span", Ts, "排版" + te(l.value.length ? "异常" : "良好"), 1)
4262
4280
  ], 2),
4263
- l.value.length ? (r(), h("ul", Ts, [
4264
- (r(!0), h(O, null, le(l.value, (y, n) => (r(), h("li", {
4265
- key: n,
4281
+ l.value.length ? (r(), h("ul", Is, [
4282
+ (r(!0), h(O, null, le(l.value, (y, s) => (r(), h("li", {
4283
+ key: s,
4266
4284
  class: "layt-moni_err_item"
4267
4285
  }, [
4268
4286
  k("span", $s, te(y.msg), 1),
@@ -4270,23 +4288,23 @@ const je = /* @__PURE__ */ me(ts, [["render", ss]]), is = (e, t, o) => {
4270
4288
  key: 0,
4271
4289
  class: "layt-moni_err_item_fn",
4272
4290
  onClick: y.fn
4273
- }, te(y.btnTxt || "删除"), 9, Is)) : B("", !0)
4291
+ }, te(y.btnTxt || "删除"), 9, Ls)) : B("", !0)
4274
4292
  ]))), 128))
4275
4293
  ])) : B("", !0)
4276
4294
  ])
4277
4295
  ]));
4278
4296
  }
4279
4297
  });
4280
- const Fs = /* @__PURE__ */ me(Ls, [["__scopeId", "data-v-9202bd1b"]]), ye = (e) => e == null ? void 0 : e.getBoundingClientRect(), ct = (e, t) => t.querySelector(`*[data-tag="${e}"]`), ht = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Be, gt].includes(t.dataset.block || "")), at = (e) => e.previousElementSibling ? [Be, gt].includes(e.previousElementSibling.dataset.block || "") ? at(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? at(e.parentElement) : document.body, Es = (e) => {
4298
+ const Es = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-9202bd1b"]]), ye = (e) => e == null ? void 0 : e.getBoundingClientRect(), ct = (e, t) => t.querySelector(`*[data-tag="${e}"]`), ht = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Be, gt].includes(t.dataset.block || "")), at = (e) => e.previousElementSibling ? [Be, gt].includes(e.previousElementSibling.dataset.block || "") ? at(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? at(e.parentElement) : document.body, Ps = (e) => {
4281
4299
  const t = e.parentElement, o = document.createElement("span");
4282
4300
  return o.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", o.dataset.block = gt, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(o, e.nextElementSibling) : t.appendChild(o), o;
4283
- }, Ps = (e, t, o, l) => {
4301
+ }, Ms = (e, t, o, l) => {
4284
4302
  let i = null;
4285
4303
  if (e.dataset.block === ft && !e.dataset.used) {
4286
4304
  const a = window.getComputedStyle(e);
4287
4305
  t - parseFloat(a.paddingTop) - parseFloat(a.borderTop) - 1 < 50 && (i = e.parentElement && e.parentElement.dataset.block === sl ? e.parentElement : e), e.dataset.used = "1";
4288
4306
  } else
4289
- e.dataset.block === $t ? i = e.parentElement : e.dataset.block === il && !e.dataset.used ? e.offsetHeight < o - 20 ? i = e.parentElement : e.dataset.used = "1" : e.dataset.block === $e && !e.dataset.used ? e.offsetHeight > o || t > o / 3 && e.offsetHeight + (e.offsetHeight > o / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${$t}]`) ? e.dataset.used = "1" : i = e : (e.dataset.block === rl && l || cl.includes(e.tagName.toLowerCase())) && (i = e);
4307
+ e.dataset.block === It ? i = e.parentElement : e.dataset.block === il && !e.dataset.used ? e.offsetHeight < o - 20 ? i = e.parentElement : e.dataset.used = "1" : e.dataset.block === Ie && !e.dataset.used ? e.offsetHeight > o || t > o / 3 && e.offsetHeight + (e.offsetHeight > o / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${It}]`) ? e.dataset.used = "1" : i = e : (e.dataset.block === rl && l || cl.includes(e.tagName.toLowerCase())) && (i = e);
4290
4308
  return i;
4291
4309
  }, Lt = (e, t, o) => {
4292
4310
  const l = e.textContent || "", i = l.split("").map((y) => `<span>${y}</span>`).join("");
@@ -4294,34 +4312,34 @@ const Fs = /* @__PURE__ */ me(Ls, [["__scopeId", "data-v-9202bd1b"]]), ye = (e)
4294
4312
  const a = [...Array.from(e.children)].findIndex((y) => ye(y).top - t + y.offsetHeight > o);
4295
4313
  if (a < 1)
4296
4314
  return e.innerHTML = l, e;
4297
- const s = document.createElement("span");
4298
- s.textContent = l.slice(0, a);
4315
+ const n = document.createElement("span");
4316
+ n.textContent = l.slice(0, a);
4299
4317
  const c = document.createElement("span");
4300
- return c.textContent = l.slice(a), e.innerHTML = "", e.append(s, c), s;
4318
+ return c.textContent = l.slice(a), e.innerHTML = "", e.append(n, c), n;
4301
4319
  }, pt = (e, t, o) => {
4302
- const l = ht(e.parentElement), i = l.findIndex((s) => s === e);
4303
- let a = l.filter((s, c) => ye(s).top + s.offsetHeight - 1 < ye(e).top || c < i && ye(s).top < ye(e).top).reverse()[0];
4320
+ const l = ht(e.parentElement), i = l.findIndex((n) => n === e);
4321
+ let a = l.filter((n, c) => ye(n).top + n.offsetHeight - 1 < ye(e).top || c < i && ye(n).top < ye(e).top).reverse()[0];
4304
4322
  return a || (a = at(e), ye(a).top + a.offsetHeight - t > o && (a = pt(a, t, o))), a;
4305
4323
  }, Ft = (e, t, o, l) => {
4306
- const i = (s, c = o) => {
4324
+ const i = (n, c = o) => {
4307
4325
  var j, J, D;
4308
- const y = s.map((w) => {
4326
+ const y = n.map((w) => {
4309
4327
  const G = ye(w);
4310
4328
  return {
4311
4329
  el: w,
4312
4330
  top: G.top - t,
4313
4331
  left: G.left
4314
4332
  };
4315
- }), n = y.filter((w) => w.el.offsetHeight + w.top > c).sort((w, G) => w.top - G.top), m = (j = n.shift()) == null ? void 0 : j.el;
4333
+ }), s = y.filter((w) => w.el.offsetHeight + w.top > c).sort((w, G) => w.top - G.top), m = (j = s.shift()) == null ? void 0 : j.el;
4316
4334
  if (!m) {
4317
- const w = ye(s[0].parentElement);
4335
+ const w = ye(n[0].parentElement);
4318
4336
  if (w.top + w.height - t - 10 < c)
4319
- return s[0].parentElement;
4337
+ return n[0].parentElement;
4320
4338
  const G = document.createElement("div");
4321
- return (J = s[0].parentElement) == null || J.appendChild(G), G.style.height = c - (ye(G).top - t) + "px", G;
4339
+ return (J = n[0].parentElement) == null || J.appendChild(G), G.style.height = c - (ye(G).top - t) + "px", G;
4322
4340
  }
4323
4341
  const A = ye(m), p = A.top - t, P = A.left;
4324
- if (n.filter((w) => w.top < p + m.offsetHeight && w.top + w.el.offsetHeight - 1 > p && (w.left + w.el.offsetWidth - 1 < P || w.left + 1 > P + m.offsetWidth)).length) {
4342
+ if (s.filter((w) => w.top < p + m.offsetHeight && w.top + w.el.offsetHeight - 1 > p && (w.left + w.el.offsetWidth - 1 < P || w.left + 1 > P + m.offsetWidth)).length) {
4325
4343
  const w = (D = y.filter((G) => G.top < p).pop()) == null ? void 0 : D.el;
4326
4344
  if (w != null && w.children.length) {
4327
4345
  const G = ht(w);
@@ -4332,7 +4350,7 @@ const Fs = /* @__PURE__ */ me(Ls, [["__scopeId", "data-v-9202bd1b"]]), ye = (e)
4332
4350
  const w = getComputedStyle(m);
4333
4351
  if (p + (parseFloat(w.fontSize) + (parseFloat(w.lineHeight) - parseFloat(w.fontSize)) / 2) > c)
4334
4352
  return pt(m, t, p);
4335
- const G = Ps(m, c - p, c, l);
4353
+ const G = Ms(m, c - p, c, l);
4336
4354
  if (G)
4337
4355
  return at(G);
4338
4356
  if (m.children.length) {
@@ -4342,16 +4360,16 @@ const Fs = /* @__PURE__ */ me(Ls, [["__scopeId", "data-v-9202bd1b"]]), ye = (e)
4342
4360
  return Lt(m, t, c);
4343
4361
  }
4344
4362
  }, a = i([e]);
4345
- return { cut: Es(a), targetEl: a };
4346
- }, Ms = (e) => {
4347
- const { el: t, data: o, column: l, backColumn: i, getColSize: a, change: s } = e;
4363
+ return { cut: Ps(a), targetEl: a };
4364
+ }, As = (e) => {
4365
+ const { el: t, data: o, column: l, backColumn: i, getColSize: a, change: n } = e;
4348
4366
  if (!t || !o.length) {
4349
- s([], !0);
4367
+ n([], !0);
4350
4368
  return;
4351
4369
  }
4352
4370
  console.time("layout");
4353
4371
  const c = ye(t).top;
4354
- let y = {}, n = 0, m = 0;
4372
+ let y = {}, s = 0, m = 0;
4355
4373
  const A = (w) => {
4356
4374
  const G = w % (l + i), ie = Math.floor(w / (l + i)) * 2 + (G >= l ? 1 : 0), C = a(w, ie);
4357
4375
  y = {
@@ -4367,7 +4385,7 @@ const Fs = /* @__PURE__ */ me(Ls, [["__scopeId", "data-v-9202bd1b"]]), ye = (e)
4367
4385
  data: [],
4368
4386
  width: y.width,
4369
4387
  height: y.height
4370
- }), s([...p]);
4388
+ }), n([...p]);
4371
4389
  };
4372
4390
  z();
4373
4391
  const j = (w) => {
@@ -4375,13 +4393,13 @@ const Fs = /* @__PURE__ */ me(Ls, [["__scopeId", "data-v-9202bd1b"]]), ye = (e)
4375
4393
  return ye(w).top - y.top + parseFloat(G.borderTop) + parseFloat(G.paddingTop) + parseFloat(G.lineHeight) > p[p.length - 1].height;
4376
4394
  }, J = (w) => {
4377
4395
  const G = getComputedStyle(w);
4378
- return ye(w).top + w.offsetHeight - y.top - (w.dataset.block === $e ? 0 : parseFloat(G.paddingBottom) - parseFloat(G.borderBottom)) <= p[p.length - 1].height;
4396
+ return ye(w).top + w.offsetHeight - y.top - (w.dataset.block === Ie ? 0 : parseFloat(G.paddingBottom) - parseFloat(G.borderBottom)) <= p[p.length - 1].height;
4379
4397
  }, D = (w = JSON.parse(JSON.stringify(o[P] || {}))) => {
4380
4398
  if (P >= o.length || !Object.keys(w).length) {
4381
- s([...p], !0), console.timeEnd("layout"), p = [], n = 0;
4399
+ n([...p], !0), console.timeEnd("layout"), p = [], s = 0;
4382
4400
  return;
4383
4401
  }
4384
- p[p.length - 1].data.push({ ...w }), s([...p]), window.requestAnimationFrame(() => {
4402
+ p[p.length - 1].data.push({ ...w }), n([...p]), window.requestAnimationFrame(() => {
4385
4403
  const G = ct(w.__tag__, t), ie = !w.isHidden && ye(G);
4386
4404
  let C = null;
4387
4405
  if (m) {
@@ -4402,12 +4420,12 @@ const Fs = /* @__PURE__ */ me(Ls, [["__scopeId", "data-v-9202bd1b"]]), ye = (e)
4402
4420
  }
4403
4421
  else {
4404
4422
  let U = [], de = [], g = !1;
4405
- if (w.children.some((S, $) => {
4423
+ if (w.children.some((S, I) => {
4406
4424
  var Y, T;
4407
4425
  const N = ct(S.__tag__, t), ue = ye(N);
4408
- if (n) {
4409
- const v = N.querySelector(`*[data-cutkey="${n}"]`), _ = ye(v);
4410
- p[p.length - 1].top = y.top - _.top, p[p.length - 1].height = y.height - p[p.length - 1].top, n = 0;
4426
+ if (s) {
4427
+ const v = N.querySelector(`*[data-cutkey="${s}"]`), _ = ye(v);
4428
+ p[p.length - 1].top = y.top - _.top, p[p.length - 1].height = y.height - p[p.length - 1].top, s = 0;
4411
4429
  }
4412
4430
  if (ue.height + ue.top - y.top > p[p.length - 1].height) {
4413
4431
  if ((Y = N.parentElement) != null && Y.dataset.polymer)
@@ -4416,33 +4434,33 @@ const Fs = /* @__PURE__ */ me(Ls, [["__scopeId", "data-v-9202bd1b"]]), ye = (e)
4416
4434
  return ct(v.__tag__, t).dataset.polymer !== ((_ = N.parentElement) == null ? void 0 : _.dataset.polymer);
4417
4435
  }), de = w.children.slice(U.length)) : (p[p.length - 1].data.pop(), U = [], g = !0, z(), D({ ...w }));
4418
4436
  else if (J(N))
4419
- U.push(S), de = $ < w.children.length - 1 ? w.children.slice($ + 1) : [];
4437
+ U.push(S), de = I < w.children.length - 1 ? w.children.slice(I + 1) : [];
4420
4438
  else if (j(N))
4421
- de = w.children.slice($);
4439
+ de = w.children.slice(I);
4422
4440
  else {
4423
4441
  C = Ft(N, y.top, p[p.length - 1].height, p.length % (l + i) >= l);
4424
4442
  const v = N.querySelector(`*[data-content="${S.id}"]`);
4425
4443
  if (N === C.targetEl)
4426
- U.push(S), de = $ < w.children.length - 1 ? w.children.slice($ + 1) : [];
4444
+ U.push(S), de = I < w.children.length - 1 ? w.children.slice(I + 1) : [];
4427
4445
  else if (v && v.contains(C.cut))
4428
- n = Date.now(), C.cut.dataset.cutkey = n, S.content = v.innerHTML, U.push(S), de = [{ ...S, content: v.innerHTML }, ...$ < w.children.length - 1 ? w.children.slice($ + 1) : []], p[p.length - 1].height = ye(C.cut).top - y.top;
4446
+ s = Date.now(), C.cut.dataset.cutkey = s, S.content = v.innerHTML, U.push(S), de = [{ ...S, content: v.innerHTML }, ...I < w.children.length - 1 ? w.children.slice(I + 1) : []], p[p.length - 1].height = ye(C.cut).top - y.top;
4429
4447
  else {
4430
4448
  if (!de.length) {
4431
4449
  let _ = { ...S };
4432
4450
  switch (S.problemType) {
4433
4451
  case Ge.slove:
4434
4452
  const H = N.querySelector(`*[data-area="${S.id}"]`);
4435
- H != null && H.contains(C.cut) && (n = Date.now(), C.cut.dataset.cutkey = n, S.answerArea = H.innerHTML), N.contains(C.targetEl) && (S.chunk += 1);
4453
+ H != null && H.contains(C.cut) && (s = Date.now(), C.cut.dataset.cutkey = s, S.answerArea = H.innerHTML), N.contains(C.targetEl) && (S.chunk += 1);
4436
4454
  break;
4437
4455
  case Ge.art:
4438
4456
  if (S.artEditor) {
4439
- const Q = N.querySelector(`*[data-area="${S.id}"]`);
4440
- Q != null && Q.contains(C.cut) && (n = Date.now(), C.cut.dataset.cutkey = n, S.answerArea = Q.innerHTML), N.contains(C.targetEl) && (S.chunk += 1);
4457
+ const q = N.querySelector(`*[data-area="${S.id}"]`);
4458
+ q != null && q.contains(C.cut) && (s = Date.now(), C.cut.dataset.cutkey = s, S.answerArea = q.innerHTML), N.contains(C.targetEl) && (S.chunk += 1);
4441
4459
  break;
4442
4460
  } else {
4443
- const Q = N.querySelector(`*[data-bart="${S.id}"]`), E = C.targetEl.dataset.block === $e && C.targetEl.dataset.size ? C.targetEl : null, R = N.querySelector(`*[data-aart="${S.id}"]`);
4444
- if (Q != null && Q.contains(C.cut))
4445
- n = Date.now(), C.cut.dataset.cutkey = n, S.beforeArt = Q == null ? void 0 : Q.innerHTML, _.beforeGuide = "", _.afterArt = "", _.endAnswerLen = -1;
4461
+ const q = N.querySelector(`*[data-bart="${S.id}"]`), E = C.targetEl.dataset.block === Ie && C.targetEl.dataset.size ? C.targetEl : null, R = N.querySelector(`*[data-aart="${S.id}"]`);
4462
+ if (q != null && q.contains(C.cut))
4463
+ s = Date.now(), C.cut.dataset.cutkey = s, S.beforeArt = q == null ? void 0 : q.innerHTML, _.beforeGuide = "", _.afterArt = "", _.endAnswerLen = -1;
4446
4464
  else if (E) {
4447
4465
  const K = parseInt(E.dataset.size);
4448
4466
  if (!S.artBlock)
@@ -4458,14 +4476,14 @@ const Fs = /* @__PURE__ */ me(Ls, [["__scopeId", "data-v-9202bd1b"]]), ye = (e)
4458
4476
  S.beforeGuide = "";
4459
4477
  _.endAnswerLen = K, S.startAnswerLen = K;
4460
4478
  } else
4461
- R != null && R.contains(C.cut) ? (n = Date.now(), C.cut.dataset.cutkey = n, S.beforeArt = "", S.beforeGuide = "", S.startAnswerLen = 1, S.endAnswerLen = -1, S.afterArt = R.innerHTML) : C.targetEl === Q ? (_.endAnswerLen = -1, _.beforeGuide = "", _.afterArt = "", S.beforeArt = "") : (Q == null ? void 0 : Q.previousElementSibling) === C.cut && (_.endAnswerLen = -1, _.beforeArt = "", _.beforeGuide = "", _.afterArt = "");
4479
+ R != null && R.contains(C.cut) ? (s = Date.now(), C.cut.dataset.cutkey = s, S.beforeArt = "", S.beforeGuide = "", S.startAnswerLen = 1, S.endAnswerLen = -1, S.afterArt = R.innerHTML) : C.targetEl === q ? (_.endAnswerLen = -1, _.beforeGuide = "", _.afterArt = "", S.beforeArt = "") : (q == null ? void 0 : q.previousElementSibling) === C.cut && (_.endAnswerLen = -1, _.beforeArt = "", _.beforeGuide = "", _.afterArt = "");
4462
4480
  N.contains(C.targetEl) && (S.chunk += 1);
4463
4481
  break;
4464
4482
  }
4465
4483
  }
4466
- N.contains(C.targetEl) && U.push(_), n && (p[p.length - 1].height = ye(C.cut).top - y.top);
4484
+ N.contains(C.targetEl) && U.push(_), s && (p[p.length - 1].height = ye(C.cut).top - y.top);
4467
4485
  }
4468
- de = [S, ...$ < w.children.length - 1 ? w.children.slice($ + 1) : []];
4486
+ de = [S, ...I < w.children.length - 1 ? w.children.slice(I + 1) : []];
4469
4487
  }
4470
4488
  }
4471
4489
  return !0;
@@ -4473,7 +4491,7 @@ const Fs = /* @__PURE__ */ me(Ls, [["__scopeId", "data-v-9202bd1b"]]), ye = (e)
4473
4491
  U.push(S);
4474
4492
  }), g)
4475
4493
  return;
4476
- p[p.length - 1].data[p[p.length - 1].data.length - 1].children = U, de.length ? (z(), D({ ...w, isHidden: !0, children: de })) : (s([...p]), P++, D());
4494
+ p[p.length - 1].data[p[p.length - 1].data.length - 1].children = U, de.length ? (z(), D({ ...w, isHidden: !0, children: de })) : (n([...p]), P++, D());
4477
4495
  }
4478
4496
  });
4479
4497
  };
@@ -4481,13 +4499,13 @@ const Fs = /* @__PURE__ */ me(Ls, [["__scopeId", "data-v-9202bd1b"]]), ye = (e)
4481
4499
  }, Wt = window.CKEDITOR;
4482
4500
  Wt.disableAutoInline = !0;
4483
4501
  const bt = `dx${Math.random().toString(32).substring(2)}`;
4484
- function As(e, t) {
4502
+ function Ds(e, t) {
4485
4503
  return Wt[e](bt, {
4486
4504
  filebrowserImageUploadUrl: `${t}ckeditor/uploadImg`,
4487
4505
  uploadUrl: `${t}ckeditor/uploadImg`
4488
4506
  });
4489
4507
  }
4490
- const Ds = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" }, Bs = ["disabled", "contentEditable", "id"], Ns = /* @__PURE__ */ ne({
4508
+ const Bs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-problem-font overflow-auto focus:border-current" }, Ns = ["disabled", "contentEditable", "id"], Os = /* @__PURE__ */ ne({
4491
4509
  __name: "index",
4492
4510
  props: {
4493
4511
  value: {},
@@ -4496,7 +4514,7 @@ const Ds = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
4496
4514
  },
4497
4515
  emits: ["change", "focus", "blur"],
4498
4516
  setup(e, { emit: t }) {
4499
- const o = e, l = qt("ckeditorOrigin", ""), i = V();
4517
+ const o = e, l = Qt("ckeditorOrigin", ""), i = V();
4500
4518
  De(() => o.readonly, () => a()), Ue(() => a());
4501
4519
  const a = () => {
4502
4520
  if (window.CKEDITOR) {
@@ -4505,25 +4523,25 @@ const Ds = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
4505
4523
  return;
4506
4524
  }
4507
4525
  lt(() => {
4508
- i.value = As("inline", l), i.value && i.value.on("instanceReady", (n) => {
4526
+ i.value = Ds("inline", l), i.value && i.value.on("instanceReady", (s) => {
4509
4527
  i.value.setData(o.value);
4510
4528
  });
4511
4529
  });
4512
4530
  } else {
4513
- const n = document.createElement("script");
4514
- n.type = "text/javascript", document.body.appendChild(n), n.onload = () => {
4531
+ const s = document.createElement("script");
4532
+ s.type = "text/javascript", document.body.appendChild(s), s.onload = () => {
4515
4533
  a();
4516
- }, n.src = "https://uat.ixueye.vip/ckeditor/ckeditor.js";
4534
+ }, s.src = "https://uat.ixueye.vip/ckeditor/ckeditor.js";
4517
4535
  }
4518
- }, s = () => {
4536
+ }, n = () => {
4519
4537
  t("blur");
4520
- const n = y(i.value.getData());
4521
- n !== o.value && t("change", n, o.name);
4538
+ const s = y(i.value.getData());
4539
+ s !== o.value && t("change", s, o.name);
4522
4540
  }, c = () => {
4523
4541
  t("focus");
4524
- }, y = (n) => {
4542
+ }, y = (s) => {
4525
4543
  const m = document.createElement("div");
4526
- m.innerHTML = n, [...Array.from(m.querySelectorAll("*"))].forEach((p) => {
4544
+ m.innerHTML = s, [...Array.from(m.querySelectorAll("*"))].forEach((p) => {
4527
4545
  const P = window.getComputedStyle(p);
4528
4546
  (P.display === "none" || P.width === "0px" && P.height === "0px" || P.opacity === "0" || P.visibility === "hidden") && p.remove();
4529
4547
  });
@@ -4540,7 +4558,7 @@ const Ds = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
4540
4558
  };
4541
4559
  return A(), m.innerHTML;
4542
4560
  };
4543
- return (n, m) => (r(), h("div", Ds, [
4561
+ return (s, m) => (r(), h("div", Bs, [
4544
4562
  o.readonly ? (r(), ee(Oe, {
4545
4563
  key: 1,
4546
4564
  data: o.value,
@@ -4552,30 +4570,30 @@ const Ds = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
4552
4570
  contentEditable: !o.readonly,
4553
4571
  id: L(bt),
4554
4572
  onFocus: c,
4555
- onBlur: s
4556
- }, null, 40, Bs))
4573
+ onBlur: n
4574
+ }, null, 40, Ns))
4557
4575
  ]));
4558
4576
  }
4559
4577
  });
4560
- const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4578
+ const zs = /* @__PURE__ */ me(Os, [["__scopeId", "data-v-1398ac85"]]), Hs = {
4561
4579
  mounted: (e, t) => {
4562
- let o = null, l = null, i = {}, a = !1, s = e.offsetParent, c = {}, y = {}, n = {};
4580
+ let o = null, l = null, i = {}, a = !1, n = e.offsetParent, c = {}, y = {}, s = {};
4563
4581
  const m = e.querySelector(".move-target") || e;
4564
4582
  m.style.cursor = "move", m.addEventListener("mousedown", (A) => {
4565
- a = !!e.dataset.safe, s = e.offsetParent;
4583
+ a = !!e.dataset.safe, n = e.offsetParent;
4566
4584
  const p = window.getComputedStyle(e);
4567
4585
  i = { x: A.clientX, y: A.clientY }, c = { x: parseInt(p.left), y: parseInt(p.top) }, document.addEventListener("mousemove", o), document.addEventListener("mouseup", l), document.addEventListener("mouseleave", l);
4568
4586
  }), l = () => {
4569
- t.value && typeof t.value == "function" && t.value(n), document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", l), document.removeEventListener("mouseleave", l);
4587
+ t.value && typeof t.value == "function" && t.value(s), document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", l), document.removeEventListener("mouseleave", l);
4570
4588
  }, o = (A) => {
4571
4589
  if (e.getAttribute("disabled") === "true")
4572
4590
  return;
4573
4591
  A.stopPropagation(), A.preventDefault(), y = { x: A.clientX, y: A.clientY };
4574
- const p = a ? Math.min(Math.max(y.x - i.x + c.x, 0), s.offsetWidth - e.offsetWidth) : y.x - i.x + c.x, P = a ? Math.min(Math.max(y.y - i.y + c.y, 0), s.offsetHeight - e.offsetHeight) : y.y - i.y + c.y;
4575
- e.style.left = `${p}px`, e.style.top = `${P}px`, n = { x: p, y: P };
4592
+ const p = a ? Math.min(Math.max(y.x - i.x + c.x, 0), n.offsetWidth - e.offsetWidth) : y.x - i.x + c.x, P = a ? Math.min(Math.max(y.y - i.y + c.y, 0), n.offsetHeight - e.offsetHeight) : y.y - i.y + c.y;
4593
+ e.style.left = `${p}px`, e.style.top = `${P}px`, s = { x: p, y: P };
4576
4594
  };
4577
4595
  }
4578
- }, Hs = ["onMousedown", "data-block"], Rs = ["src"], Ws = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Gs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Qs = ["onMousedown"], qs = ["onMousedown"], Ys = ["disabled", "onMousedown", "data-block"], Ks = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Us = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Vs = ["onMousedown"], js = /* @__PURE__ */ ne({
4596
+ }, Rs = ["onMousedown", "data-block"], Ws = ["src"], Gs = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, qs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Qs = ["onMousedown"], Ys = ["onMousedown"], Ks = ["disabled", "onMousedown", "data-block"], Us = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, Vs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, js = ["onMousedown"], Xs = /* @__PURE__ */ ne({
4579
4597
  __name: "absItem",
4580
4598
  props: {
4581
4599
  imgData: {},
@@ -4587,7 +4605,7 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4587
4605
  },
4588
4606
  emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
4589
4607
  setup(e, { emit: t }) {
4590
- const o = e, l = zs, i = [
4608
+ const o = e, l = Hs, i = [
4591
4609
  { left: "0", top: "0", cursor: "nwse-resize" },
4592
4610
  { left: "50%", top: "0", cursor: "ns-resize" },
4593
4611
  { left: "100%", top: "0", cursor: "nesw-resize" },
@@ -4596,7 +4614,7 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4596
4614
  { left: "0", top: "100%", cursor: "nesw-resize" },
4597
4615
  { left: "50%", top: "100%", cursor: "ns-resize" },
4598
4616
  { left: "100%", top: "100%", cursor: "nwse-resize" }
4599
- ], a = V({}), s = V(), c = V(0), y = V(0), n = V();
4617
+ ], a = V({}), n = V(), c = V(0), y = V(0), s = V();
4600
4618
  V();
4601
4619
  const m = V({}), A = V(!1), p = V(), P = V(), z = V(), j = W(() => o.imgData.map((T) => ({
4602
4620
  ...T,
@@ -4604,31 +4622,31 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4604
4622
  }))), J = W(() => o.txtData.map((T) => ({
4605
4623
  ...T,
4606
4624
  top: T.top - Math.floor(T.top / (x[o.layout.paper].height + o.pageMargin)) * o.pageMargin
4607
- }))), D = W(() => p.value ? p.value.split("-")[0] === "img" ? j.value.find((v) => v.key === p.value) : J.value.find((v) => v.key === p.value) : null), w = W(() => D.value ? { [D.value.key]: { ...s.value } } : {});
4625
+ }))), D = W(() => p.value ? p.value.split("-")[0] === "img" ? j.value.find((v) => v.key === p.value) : J.value.find((v) => v.key === p.value) : null), w = W(() => D.value ? { [D.value.key]: { ...n.value } } : {});
4608
4626
  De(() => o.activeAbsItem, () => {
4609
4627
  o.activeAbsItem && Y({ ...o.activeAbsItem });
4610
4628
  }), De(() => o.target, () => {
4611
4629
  Y(null);
4612
4630
  }), Ue(() => {
4613
- n.value = document.body.querySelector(".__layout__");
4631
+ s.value = document.body.querySelector(".__layout__");
4614
4632
  });
4615
4633
  const G = (T) => {
4616
4634
  var v;
4617
- s.value = { ...D.value, left: Math.max(T.x, 0), top: Math.max(T.y, 0) }, (v = D.value) != null && v.key && (D.value.key.split("-")[0] === "img" ? t("changeAbsImgItem", { ...D.value, left: Math.max(T.x, 0), top: Math.max(T.y, 0) }) : t("changeAbsTxtItem", { ...D.value, left: Math.max(T.x, 0), top: Math.max(T.y, 0) }));
4635
+ n.value = { ...D.value, left: Math.max(T.x, 0), top: Math.max(T.y, 0) }, (v = D.value) != null && v.key && (D.value.key.split("-")[0] === "img" ? t("changeAbsImgItem", { ...D.value, left: Math.max(T.x, 0), top: Math.max(T.y, 0) }) : t("changeAbsTxtItem", { ...D.value, left: Math.max(T.x, 0), top: Math.max(T.y, 0) }));
4618
4636
  }, ie = (T) => {
4619
4637
  A.value = T;
4620
4638
  }, C = () => {
4621
- const T = D.value, v = T.left + T.width / 2, _ = T.top + T.height / 2, H = n.value.getBoundingClientRect() || {};
4622
- m.value = { x: v + H.left, y: _ + H.top }, n.value.addEventListener("mousemove", U), n.value.addEventListener("mouseleave", de), n.value.addEventListener("mouseup", de);
4639
+ const T = D.value, v = T.left + T.width / 2, _ = T.top + T.height / 2, H = s.value.getBoundingClientRect() || {};
4640
+ m.value = { x: v + H.left, y: _ + H.top }, s.value.addEventListener("mousemove", U), s.value.addEventListener("mouseleave", de), s.value.addEventListener("mouseup", de);
4623
4641
  }, U = (T) => {
4624
4642
  T.stopPropagation(), T.preventDefault();
4625
4643
  const v = T.clientX - m.value.x, _ = m.value.y - T.clientY, H = Math.atan2(_, v) / (Math.PI / 180);
4626
- s.value = { ...D.value, rotate: -parseInt(H.toString()) };
4644
+ n.value = { ...D.value, rotate: -parseInt(H.toString()) };
4627
4645
  }, de = (T) => {
4628
- T.stopPropagation(), T.preventDefault(), t("changeAbsImgItem", s.value), n.value.removeEventListener("mousemove", U), n.value.removeEventListener("mouseleave", de), n.value.removeEventListener("mouseup", de);
4646
+ T.stopPropagation(), T.preventDefault(), t("changeAbsImgItem", n.value), s.value.removeEventListener("mousemove", U), s.value.removeEventListener("mouseleave", de), s.value.removeEventListener("mouseup", de);
4629
4647
  }, g = (T, v) => {
4630
4648
  var _;
4631
- T.stopPropagation(), c.value = v, a.value = { x: T.clientX, y: T.clientY, ...D.value }, ((_ = D.value) == null ? void 0 : _.key.split("-")[0]) === "img" ? n.value.addEventListener("mousemove", S) : n.value.addEventListener("mousemove", $), n.value.addEventListener("mouseleave", N), n.value.addEventListener("mouseup", N);
4649
+ T.stopPropagation(), c.value = v, a.value = { x: T.clientX, y: T.clientY, ...D.value }, ((_ = D.value) == null ? void 0 : _.key.split("-")[0]) === "img" ? s.value.addEventListener("mousemove", S) : s.value.addEventListener("mousemove", I), s.value.addEventListener("mouseleave", N), s.value.addEventListener("mouseup", N);
4632
4650
  }, S = (T) => {
4633
4651
  const v = { x: T.clientX - a.value.x, y: T.clientY - a.value.y }, _ = { ...D.value }, H = v.x > v.y ? "width" : "height";
4634
4652
  [
@@ -4641,7 +4659,7 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4641
4659
  width: a.value.height * (1 - v.x / a.value.width),
4642
4660
  height: a.value.height - v.y
4643
4661
  }[H];
4644
- s.value = {
4662
+ n.value = {
4645
4663
  ..._,
4646
4664
  width: E,
4647
4665
  height: R,
@@ -4652,7 +4670,7 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4652
4670
  // 1
4653
4671
  () => {
4654
4672
  const E = a.value.width * (1 - v.y / a.value.height), R = a.value.height - v.y;
4655
- s.value = {
4673
+ n.value = {
4656
4674
  ..._,
4657
4675
  width: E,
4658
4676
  height: R,
@@ -4666,7 +4684,7 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4666
4684
  width: a.value.height * (1 + v.x / a.value.width),
4667
4685
  height: a.value.height - v.y
4668
4686
  }[H];
4669
- s.value = {
4687
+ n.value = {
4670
4688
  ..._,
4671
4689
  width: {
4672
4690
  width: a.value.width + v.x,
@@ -4679,7 +4697,7 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4679
4697
  // 3
4680
4698
  () => {
4681
4699
  const E = a.value.width - v.x, R = a.value.height * (1 - v.x / a.value.width);
4682
- s.value = {
4700
+ n.value = {
4683
4701
  ..._,
4684
4702
  width: E,
4685
4703
  height: R,
@@ -4690,7 +4708,7 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4690
4708
  // 4
4691
4709
  () => {
4692
4710
  const E = a.value.width + v.x, R = a.value.height * (1 + v.x / a.value.width);
4693
- s.value = {
4711
+ n.value = {
4694
4712
  ..._,
4695
4713
  width: E,
4696
4714
  height: R,
@@ -4706,7 +4724,7 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4706
4724
  width: a.value.height * (1 - v.x / a.value.width),
4707
4725
  height: a.value.height + v.y
4708
4726
  }[H];
4709
- s.value = {
4727
+ n.value = {
4710
4728
  ..._,
4711
4729
  width: E,
4712
4730
  height: R,
@@ -4716,7 +4734,7 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4716
4734
  // 6
4717
4735
  () => {
4718
4736
  const E = a.value.width * (1 + v.y / a.value.height), R = a.value.height + v.y;
4719
- s.value = {
4737
+ n.value = {
4720
4738
  ..._,
4721
4739
  width: E,
4722
4740
  height: R,
@@ -4732,14 +4750,14 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4732
4750
  width: a.value.height * (1 + v.x / a.value.width),
4733
4751
  height: a.value.height + v.y
4734
4752
  }[H];
4735
- s.value = {
4753
+ n.value = {
4736
4754
  ..._,
4737
4755
  width: E,
4738
4756
  height: R
4739
4757
  };
4740
4758
  }
4741
4759
  ][c.value]();
4742
- }, $ = (T) => {
4760
+ }, I = (T) => {
4743
4761
  const v = { x: T.clientX - a.value.x, y: T.clientY - a.value.y }, _ = { ...D.value }, H = [
4744
4762
  {
4745
4763
  ..._,
@@ -4784,10 +4802,10 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4784
4802
  height: a.value.height + v.y
4785
4803
  }
4786
4804
  ];
4787
- s.value = H[c.value];
4805
+ n.value = H[c.value];
4788
4806
  }, N = () => {
4789
4807
  var T;
4790
- n.value.removeEventListener("mousemove", S), n.value.removeEventListener("mousemove", $), n.value.removeEventListener("mouseleave", N), n.value.removeEventListener("mouseup", N), ((T = D.value) == null ? void 0 : T.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
4808
+ s.value.removeEventListener("mousemove", S), s.value.removeEventListener("mousemove", I), s.value.removeEventListener("mouseleave", N), s.value.removeEventListener("mouseup", N), ((T = D.value) == null ? void 0 : T.key.split("-")[0]) === "img" ? t("changeAbsImgItem", n.value) : t("changeAbsTxtItem", n.value), n.value = null;
4791
4809
  }, ue = (T) => {
4792
4810
  if (!T || T === D.value.content) {
4793
4811
  y.value++;
@@ -4795,13 +4813,13 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4795
4813
  }
4796
4814
  t("changeAbsTxtItem", { ...D.value, content: T });
4797
4815
  }, Y = (T, v) => {
4798
- var H, Q;
4816
+ var H, q;
4799
4817
  const _ = document.body.querySelector(`.cke_editor_${bt}`);
4800
- !T && ((Q = (H = v == null ? void 0 : v.target) == null ? void 0 : H.dataset) != null && Q.safe || [...P.value || [], ...z.value || []].find((E) => E.contains(v == null ? void 0 : v.target)) || _ && window.getComputedStyle(_).display !== "none") || (p.value = T == null ? void 0 : T.key, T && (s.value = { ...T }));
4818
+ !T && ((q = (H = v == null ? void 0 : v.target) == null ? void 0 : H.dataset) != null && q.safe || [...P.value || [], ...z.value || []].find((E) => E.contains(v == null ? void 0 : v.target)) || _ && window.getComputedStyle(_).display !== "none") || (p.value = T == null ? void 0 : T.key, T && (n.value = { ...T }));
4801
4819
  };
4802
4820
  return (T, v) => (r(), h(O, null, [
4803
4821
  (r(!0), h(O, null, le(j.value, (_) => {
4804
- var H, Q, E, R, K, se, Te;
4822
+ var H, q, E, R, K, se, Te;
4805
4823
  return Ct((r(), h("div", {
4806
4824
  key: _.id,
4807
4825
  ref_for: !0,
@@ -4809,16 +4827,16 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4809
4827
  ref: P,
4810
4828
  "data-safe": "true",
4811
4829
  class: oe(["absolute", ((H = D.value) == null ? void 0 : H.key) === _.key ? "z-8" : "z-7"]),
4812
- style: X({ left: Math.max(((Q = w.value[_.key]) == null ? void 0 : Q.left) || _.left, 0) + "px", top: Math.max(((E = w.value[_.key]) == null ? void 0 : E.top) || _.top, 0) + "px", width: (((R = w.value[_.key]) == null ? void 0 : R.width) || _.width) + "px", height: (((K = w.value[_.key]) == null ? void 0 : K.height) || _.height) + "px", transform: `rotate(${((se = w.value[_.key]) == null ? void 0 : se.rotate) || _.rotate}deg)` }),
4830
+ style: X({ left: Math.max(((q = w.value[_.key]) == null ? void 0 : q.left) || _.left, 0) + "px", top: Math.max(((E = w.value[_.key]) == null ? void 0 : E.top) || _.top, 0) + "px", width: (((R = w.value[_.key]) == null ? void 0 : R.width) || _.width) + "px", height: (((K = w.value[_.key]) == null ? void 0 : K.height) || _.height) + "px", transform: `rotate(${((se = w.value[_.key]) == null ? void 0 : se.rotate) || _.rotate}deg)` }),
4813
4831
  onClick: v[0] || (v[0] = Ee((ge) => T.void, ["stop"])),
4814
4832
  onMousedown: Ee((ge) => Y(_), ["stop"]),
4815
4833
  "data-block": L(Be)
4816
4834
  }, [
4817
4835
  k("img", {
4818
4836
  src: _.url
4819
- }, null, 8, Rs),
4837
+ }, null, 8, Ws),
4820
4838
  ((Te = D.value) == null ? void 0 : Te.key) === _.key ? (r(), h(O, { key: 0 }, [
4821
- k("span", Ws, [
4839
+ k("span", Gs, [
4822
4840
  ae(ve, {
4823
4841
  name: "close",
4824
4842
  width: 2,
@@ -4826,7 +4844,7 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4826
4844
  onClick: (ge) => t("delAbsImgItem", _)
4827
4845
  }, null, 8, ["onClick"])
4828
4846
  ]),
4829
- k("div", Gs, [
4847
+ k("div", qs, [
4830
4848
  (r(), h(O, null, le(8, (ge, we) => k("div", {
4831
4849
  key: ge,
4832
4850
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
@@ -4842,14 +4860,14 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4842
4860
  name: "reset",
4843
4861
  width: 2
4844
4862
  })
4845
- ], 40, qs)
4863
+ ], 40, Ys)
4846
4864
  ], 64)) : B("", !0)
4847
- ], 46, Hs)), [
4865
+ ], 46, Rs)), [
4848
4866
  [L(l), G]
4849
4867
  ]);
4850
4868
  }), 128)),
4851
4869
  (r(!0), h(O, null, le(J.value, (_) => {
4852
- var H, Q, E, R, K, se, Te;
4870
+ var H, q, E, R, K, se, Te;
4853
4871
  return Ct((r(), h("div", {
4854
4872
  key: _.id,
4855
4873
  ref_for: !0,
@@ -4858,12 +4876,12 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4858
4876
  disabled: A.value,
4859
4877
  "data-safe": "true",
4860
4878
  class: oe(["absolute", ((H = D.value) == null ? void 0 : H.key) === _.key ? "z-8 bg-white" : "z-7"]),
4861
- style: X({ left: Math.max(((Q = w.value[_.key]) == null ? void 0 : Q.left) || _.left, 0) + "px", top: Math.max(((E = w.value[_.key]) == null ? void 0 : E.top) || _.top, 0) + "px", width: (((R = w.value[_.key]) == null ? void 0 : R.width) || _.width) + "px", height: (((K = w.value[_.key]) == null ? void 0 : K.height) || _.height) + "px" }),
4879
+ style: X({ left: Math.max(((q = w.value[_.key]) == null ? void 0 : q.left) || _.left, 0) + "px", top: Math.max(((E = w.value[_.key]) == null ? void 0 : E.top) || _.top, 0) + "px", width: (((R = w.value[_.key]) == null ? void 0 : R.width) || _.width) + "px", height: (((K = w.value[_.key]) == null ? void 0 : K.height) || _.height) + "px" }),
4862
4880
  onClick: v[3] || (v[3] = Ee((ge) => T.void, ["stop"])),
4863
4881
  onMousedown: Ee((ge) => Y(_), ["stop"]),
4864
4882
  "data-block": L(Be)
4865
4883
  }, [
4866
- (r(), ee(Os, {
4884
+ (r(), ee(zs, {
4867
4885
  key: y.value,
4868
4886
  class: "border-0 relative z-4",
4869
4887
  readonly: ((se = D.value) == null ? void 0 : se.key) !== _.key,
@@ -4874,7 +4892,7 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4874
4892
  onBlur: v[2] || (v[2] = (ge) => ie(!1))
4875
4893
  }, null, 8, ["readonly", "value", "name"])),
4876
4894
  ((Te = D.value) == null ? void 0 : Te.key) === _.key ? (r(), h(O, { key: 0 }, [
4877
- k("span", Ks, [
4895
+ k("span", Us, [
4878
4896
  ae(ve, {
4879
4897
  name: "close",
4880
4898
  width: 2,
@@ -4882,28 +4900,28 @@ const Os = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-1398ac85"]]), zs = {
4882
4900
  onClick: (ge) => t("delAbsTxtItem", _)
4883
4901
  }, null, 8, ["onClick"])
4884
4902
  ]),
4885
- k("div", Us, [
4903
+ k("div", Vs, [
4886
4904
  (r(), h(O, null, le(8, (ge, we) => k("div", {
4887
4905
  key: ge,
4888
4906
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4889
4907
  style: X({ ...i[we], transform: "translate(-50%, -50%)" }),
4890
4908
  onMousedown: (b) => g(b, we)
4891
- }, null, 44, Vs)), 64))
4909
+ }, null, 44, js)), 64))
4892
4910
  ])
4893
4911
  ], 64)) : B("", !0)
4894
- ], 46, Ys)), [
4912
+ ], 46, Ks)), [
4895
4913
  [L(l), G]
4896
4914
  ]);
4897
4915
  }), 128))
4898
4916
  ], 64));
4899
4917
  }
4900
4918
  });
4901
- const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["viewBox"], Zs = {
4919
+ const Js = /* @__PURE__ */ me(Xs, [["__scopeId", "data-v-db8ee9a5"]]), Zs = ["viewBox"], ei = {
4902
4920
  x: "0",
4903
4921
  y: "0",
4904
4922
  width: "100%",
4905
4923
  height: "100%"
4906
- }, ei = ["onClick", "onDblclick"], ti = ["data-block"], oi = /* @__PURE__ */ ne({
4924
+ }, ti = ["onClick", "onDblclick"], oi = ["data-block"], ai = /* @__PURE__ */ ne({
4907
4925
  __name: "index",
4908
4926
  props: {
4909
4927
  layout: {},
@@ -4922,7 +4940,7 @@ const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["vi
4922
4940
  setup(e, { emit: t }) {
4923
4941
  const o = e;
4924
4942
  Yt("ckeditorOrigin", o.ckeditorOrigin);
4925
- const l = V([]), i = V([]), a = V(2), s = V(0), c = V(0), y = V(), n = V([]), m = V([]), A = V([]), p = V([]), P = W(() => o.data.map((b) => ({
4943
+ const l = V([]), i = V([]), a = V(2), n = V(0), c = V(0), y = V(), s = V([]), m = V([]), A = V([]), p = V([]), P = W(() => o.data.map((b) => ({
4926
4944
  ...b,
4927
4945
  __tag__: Tt(),
4928
4946
  rawChildren: b.children,
@@ -4934,8 +4952,8 @@ const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["vi
4934
4952
  return ie.value && [u.slove].includes(F == null ? void 0 : F.problemType) && F.id;
4935
4953
  }), j = W(() => {
4936
4954
  var b;
4937
- return o.layout.bindFlag && !!((b = Qe.find((F) => F.code === o.layout.paper)) != null && b.isMultCol);
4938
- }), J = W(() => o.isFinal ? 0 : 10), D = W(() => o.isFinal ? 10 : 0), w = W(() => Math.floor(l.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(l.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || a.value || 1), G = W(() => Math.ceil(w.value / 2) * 2), ie = W(() => ["sheet", "sheetCard"].includes(o.layout.mode)), C = W(() => ie.value ? Le : { top: 0, right: 0, bottom: 0, left: 0 }), U = W(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || yt[o.layout.mode][o.layout.paper]), de = W(() => x[o.layout.paper].width - U.value.left - U.value.right), g = W(() => x[o.layout.paper].height - U.value.top - U.value.bottom), S = W(() => (de.value - (c.value ? c.value + R(0) : 0) + R(0)) / o.layout.column - R(0)), $ = W(() => ({
4955
+ return o.layout.bindFlag && !!((b = qe.find((F) => F.code === o.layout.paper)) != null && b.isMultCol);
4956
+ }), J = W(() => o.isFinal ? 0 : 10), D = W(() => o.isFinal ? 10 : 0), w = W(() => Math.floor(l.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(l.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || a.value || 1), G = W(() => Math.ceil(w.value / 2) * 2), ie = W(() => ["sheet", "sheetCard"].includes(o.layout.mode)), C = W(() => ie.value ? Le : { top: 0, right: 0, bottom: 0, left: 0 }), U = W(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || yt[o.layout.mode][o.layout.paper]), de = W(() => x[o.layout.paper].width - U.value.left - U.value.right), g = W(() => x[o.layout.paper].height - U.value.top - U.value.bottom), S = W(() => (de.value - (c.value ? c.value + R(0) : 0) + R(0)) / o.layout.column - R(0)), I = W(() => ({
4939
4957
  width: `${x[o.layout.paper].width}px`,
4940
4958
  height: `${(x[o.layout.paper].height + J.value) * G.value - J.value}px`
4941
4959
  })), N = W(() => ({
@@ -4945,7 +4963,7 @@ const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["vi
4945
4963
  marginBottom: `${J.value}px`
4946
4964
  })), ue = W(() => {
4947
4965
  var F;
4948
- const b = (F = Qe.find((_e) => _e.code === o.layout.paper)) == null ? void 0 : F.isFullTitle;
4966
+ const b = (F = qe.find((_e) => _e.code === o.layout.paper)) == null ? void 0 : F.isFullTitle;
4949
4967
  return {
4950
4968
  left: `${U.value.left + (c.value ? c.value + R(0) : 0)}px`,
4951
4969
  top: `${U.value.top}px`,
@@ -4967,15 +4985,15 @@ const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["vi
4967
4985
  const Z = _e.querySelector(Bt.sub);
4968
4986
  if (Z) {
4969
4987
  const re = document.createElement("div");
4970
- re.innerHTML = is(F.sub, F.style[d.public.scoreShowFlag] === f.bracket_none ? void 0 : [F.score].flat(2).reduce((Ie, Ae) => Ie + Ae, 0), F.style[d.public.scoreShowFlag]), Z.replaceWith(re.children[0]), F.answerArea = _e.innerHTML, F.customSub = !0, _e.remove(), re.remove();
4988
+ re.innerHTML = is(F.sub, F.style[d.public.scoreShowFlag] === f.bracket_none ? void 0 : [F.score].flat(2).reduce(($e, Ae) => $e + Ae, 0), F.style[d.public.scoreShowFlag]), Z.replaceWith(re.children[0]), F.answerArea = _e.innerHTML, F.customSub = !0, _e.remove(), re.remove();
4971
4989
  }
4972
4990
  }
4973
4991
  return F;
4974
4992
  }, v = (b) => b % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, _ = (b, F) => Math.floor(F / 2) * (o.layout.column + o.layout.backColumn) + F % 2 * o.layout.column + b, H = (b) => {
4975
4993
  const F = b % (o.layout.column + o.layout.backColumn);
4976
4994
  return F >= o.layout.column ? F - o.layout.column : F;
4977
- }, Q = (b, F) => {
4978
- b ? n.value[F] = b : n.value.splice(F, 1);
4995
+ }, q = (b, F) => {
4996
+ b ? s.value[F] = b : s.value.splice(F, 1);
4979
4997
  }, E = (b, F) => {
4980
4998
  b ? m.value[F] = b : m.value.splice(F, 1);
4981
4999
  }, R = (b) => Mt[o.layout.mode][o.layout.paper][v(b)] || 0, K = (b, F = !1) => (de.value - (c.value ? c.value + R(b) : 0) + R(b)) / v(b) - R(b) - C.value.left - C.value.right + (F ? C.value.left + C.value.right : 0), se = (b, F) => {
@@ -4989,19 +5007,19 @@ const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["vi
4989
5007
  contentHeight: `${(re = l.value[b]) == null ? void 0 : re.height}px`
4990
5008
  };
4991
5009
  }, Te = (b, F = !1) => {
4992
- i.value = b.map((_e) => ({ ..._e })), F && (l.value = [...b], s.value += 1, lt(() => {
5010
+ i.value = b.map((_e) => ({ ..._e })), F && (l.value = [...b], n.value += 1, lt(() => {
4993
5011
  a.value = Math.ceil(l.value.length / o.layout.column), i.value = [], m.value.forEach((_e, Z) => {
4994
- var re, Ie;
4995
- !_e || !_e.col || ((re = l.value[Z]) != null && re.top ? _e.col.style.marginTop = `${(Ie = l.value[Z]) == null ? void 0 : Ie.top}px` : _e.col.style.marginTop = "");
5012
+ var re, $e;
5013
+ !_e || !_e.col || ((re = l.value[Z]) != null && re.top ? _e.col.style.marginTop = `${($e = l.value[Z]) == null ? void 0 : $e.top}px` : _e.col.style.marginTop = "");
4996
5014
  }), o.isFinal && setTimeout(() => {
4997
- const _e = ws({
5015
+ const _e = ks({
4998
5016
  config: {
4999
5017
  ...o.info,
5000
5018
  layout: o.layout,
5001
5019
  pageTotal: w.value,
5002
5020
  bindWidth: c.value,
5003
5021
  pageMargin: J.value,
5004
- pageDom: n.value.slice(0, w.value),
5022
+ pageDom: s.value.slice(0, w.value),
5005
5023
  colDom: m.value.map((Z) => Z.col),
5006
5024
  colViewDom: m.value.map((Z) => Z.colView)
5007
5025
  },
@@ -5011,7 +5029,7 @@ const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["vi
5011
5029
  }, 500);
5012
5030
  }));
5013
5031
  }, ge = () => {
5014
- Ms({
5032
+ As({
5015
5033
  el: y.value,
5016
5034
  data: P.value,
5017
5035
  column: o.layout.column,
@@ -5025,7 +5043,7 @@ const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["vi
5025
5043
  return (b, F) => {
5026
5044
  var _e;
5027
5045
  return r(), h(O, null, [
5028
- b.readonly ? B("", !0) : (r(), ee(Fs, {
5046
+ b.readonly ? B("", !0) : (r(), ee(Es, {
5029
5047
  key: 0,
5030
5048
  ColList: l.value,
5031
5049
  ColDom: m.value.map((Z) => Z.col),
@@ -5046,7 +5064,7 @@ const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["vi
5046
5064
  ref: y
5047
5065
  }, [
5048
5066
  i.value.length ? (r(!0), h(O, { key: 0 }, le((_e = i.value[i.value.length - 1]) == null ? void 0 : _e.data, (Z, re) => (r(), h(O, null, [
5049
- Z.isHidden ? B("", !0) : (r(), ee(It, {
5067
+ Z.isHidden ? B("", !0) : (r(), ee($t, {
5050
5068
  key: 0,
5051
5069
  item: Z,
5052
5070
  showColBorder: ie.value,
@@ -5076,9 +5094,9 @@ const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["vi
5076
5094
  ], 512),
5077
5095
  k("div", {
5078
5096
  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"]),
5079
- style: X($.value)
5097
+ style: X(I.value)
5080
5098
  }, [
5081
- ae(Xs, {
5099
+ ae(Js, {
5082
5100
  imgData: b.imgData,
5083
5101
  txtData: b.txtData,
5084
5102
  activeAbsItem: b.activeAbsItem,
@@ -5091,21 +5109,21 @@ const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["vi
5091
5109
  onDelAbsTxtItem: F[6] || (F[6] = (Z) => t("delAbsTxtItem", Z))
5092
5110
  }, null, 8, ["imgData", "txtData", "activeAbsItem", "target", "layout", "pageMargin"]),
5093
5111
  (r(), h("svg", {
5094
- viewBox: `0 0 ${parseFloat($.value.width)} ${parseFloat($.value.height)}`,
5112
+ viewBox: `0 0 ${parseFloat(I.value.width)} ${parseFloat(I.value.height)}`,
5095
5113
  version: "1.1",
5096
5114
  xmlns: "http://www.w3.org/2000/svg",
5097
- key: s.value
5115
+ key: n.value
5098
5116
  }, [
5099
- (r(), h("foreignObject", Zs, [
5117
+ (r(), h("foreignObject", ei, [
5100
5118
  (r(!0), h(O, null, le(G.value, (Z, re) => (r(), h("div", {
5101
5119
  key: Z,
5102
5120
  class: "bg-white relative flex justify-between overflow-hidden box-border",
5103
5121
  ref_for: !0,
5104
- ref: (Ie) => Q(Ie, re),
5122
+ ref: ($e) => q($e, re),
5105
5123
  style: X(N.value)
5106
5124
  }, [
5107
5125
  re < w.value ? (r(), h(O, { key: 0 }, [
5108
- ae($o, {
5126
+ ae(Io, {
5109
5127
  layout: b.layout,
5110
5128
  currentPage: re,
5111
5129
  totalPage: w.value,
@@ -5118,7 +5136,7 @@ const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["vi
5118
5136
  key: 0,
5119
5137
  info: b.info,
5120
5138
  layout: b.layout,
5121
- onChange: F[7] || (F[7] = (Ie) => t("changeInfo", Ie))
5139
+ onChange: F[7] || (F[7] = ($e) => t("changeInfo", $e))
5122
5140
  }, null, 8, ["info", "layout"])) : B("", !0),
5123
5141
  ae(nl, {
5124
5142
  ref_for: !0,
@@ -5148,13 +5166,13 @@ const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["vi
5148
5166
  layout: b.layout,
5149
5167
  fontConfig: b.fontConfig,
5150
5168
  data: b.data,
5151
- onChange: F[8] || (F[8] = (Ie) => t("changeInfo", Ie))
5169
+ onChange: F[8] || (F[8] = ($e) => t("changeInfo", $e))
5152
5170
  }, null, 8, ["info", "layout", "fontConfig", "data"]),
5153
- ae($a, {
5171
+ ae(Ia, {
5154
5172
  layout: b.layout,
5155
5173
  info: b.info,
5156
5174
  isBindFlag: j.value,
5157
- onChange: F[9] || (F[9] = (Ie) => t("changeExtentInfo", Ie))
5175
+ onChange: F[9] || (F[9] = ($e) => t("changeExtentInfo", $e))
5158
5176
  }, null, 8, ["layout", "info", "isBindFlag"]),
5159
5177
  ae(Ra, {
5160
5178
  layout: b.layout,
@@ -5171,7 +5189,7 @@ const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["vi
5171
5189
  layout: b.layout
5172
5190
  }, null, 8, ["info", "layout"])) : B("", !0)
5173
5191
  ], 6)) : B("", !0),
5174
- (r(!0), h(O, null, le(re % 2 ? b.layout.backColumn : b.layout.column, (Ie, Ae) => (r(), ee(ja, {
5192
+ (r(!0), h(O, null, le(re % 2 ? b.layout.backColumn : b.layout.column, ($e, Ae) => (r(), ee(ja, {
5175
5193
  ref_for: !0,
5176
5194
  ref: (Ve) => E(Ve, _(Ae, re)),
5177
5195
  styleInfo: se(_(Ae, re), re),
@@ -5185,7 +5203,7 @@ const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["vi
5185
5203
  (r(!0), h(O, null, le(((Ve = l.value[_(Ae, re)]) == null ? void 0 : Ve.data) || [], (ke, Gt) => {
5186
5204
  var vt;
5187
5205
  return r(), h(O, null, [
5188
- ke.isHidden ? B("", !0) : (r(), ee(It, {
5206
+ ke.isHidden ? B("", !0) : (r(), ee($t, {
5189
5207
  key: 0,
5190
5208
  item: ke,
5191
5209
  showColBorder: ie.value,
@@ -5213,8 +5231,8 @@ const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["vi
5213
5231
  key: 0,
5214
5232
  class: "border-t",
5215
5233
  "data-block": L(Be)
5216
- }, null, 8, ti)) : B("", !0)
5217
- ], 42, ei)) : (r(), ee(je, {
5234
+ }, null, 8, oi)) : B("", !0)
5235
+ ], 42, ti)) : (r(), ee(je, {
5218
5236
  key: 2,
5219
5237
  data: ke,
5220
5238
  layout: b.layout,
@@ -5232,15 +5250,15 @@ const Xs = /* @__PURE__ */ me(js, [["__scopeId", "data-v-db8ee9a5"]]), Js = ["vi
5232
5250
  ], 64)) : B("", !0)
5233
5251
  ], 4))), 128))
5234
5252
  ]))
5235
- ], 8, Js))
5253
+ ], 8, Zs))
5236
5254
  ], 6)
5237
5255
  ])
5238
5256
  ], 64);
5239
5257
  };
5240
5258
  }
5241
5259
  });
5242
- const ni = /* @__PURE__ */ me(oi, [["__scopeId", "data-v-3cc4ec73"]]);
5260
+ const si = /* @__PURE__ */ me(ai, [["__scopeId", "data-v-3cc4ec73"]]);
5243
5261
  export {
5244
- li as Config,
5245
- ni as default
5262
+ ni as Config,
5263
+ si as default
5246
5264
  };