alit-layout 1.0.28 → 1.0.30

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 +1164 -1154
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as ee, openBlock as i, createElementBlock as u, Fragment as P, renderList as Z, createElementVNode as f, normalizeStyle as q, unref as x, toDisplayString as J, createCommentVNode as D, ref as Y, watch as De, normalizeClass as oe, computed as A, createBlock as V, createTextVNode as Ue, createVNode as X, pushScopeId as He, popScopeId as Re, renderSlot as it, onMounted as Xe, nextTick as Je, withModifiers as Le, resolveComponent as Rt, resolveDynamicComponent as yt, normalizeProps as _t, guardReactiveProps as ft, withCtx as Ft, inject as Wt, withDirectives as gt, provide as Gt } from "vue";
2
- const rt = {
1
+ import { defineComponent as ee, openBlock as r, createElementBlock as u, Fragment as P, renderList as Z, createElementVNode as f, normalizeStyle as Q, unref as x, toDisplayString as J, createCommentVNode as M, ref as q, watch as Me, normalizeClass as oe, computed as A, createBlock as V, createTextVNode as Ue, createVNode as X, pushScopeId as He, popScopeId as Re, renderSlot as rt, onMounted as Xe, nextTick as Je, withModifiers as Le, resolveComponent as Rt, resolveDynamicComponent as _t, normalizeProps as ft, guardReactiveProps as gt, withCtx as Ft, inject as Wt, withDirectives as bt, provide as Gt } from "vue";
2
+ const ct = {
3
3
  // 选择题
4
4
  choice: "MULTIPLE_RADIO_QUESTION",
5
5
  // 多选题
@@ -9,10 +9,10 @@ const rt = {
9
9
  // 完形填空
10
10
  cloze: "CLOZE_TEST"
11
11
  }, Et = {
12
- ...rt,
12
+ ...ct,
13
13
  // 判断题
14
14
  decide: "TRUE_OR_FALSE"
15
- }, at = {
15
+ }, lt = {
16
16
  // 填空题
17
17
  fill: "FILL_BLANKS",
18
18
  // 听后填空
@@ -47,7 +47,7 @@ const rt = {
47
47
  __notareaproblem: "QUES_NO_ANSWER_AREA"
48
48
  }, m = {
49
49
  ...Et,
50
- ...at
50
+ ...lt
51
51
  }, Oe = [
52
52
  { name: "A3", code: "a3", size: "420*297mm", isMultCol: !0 },
53
53
  { name: "A3+", code: "a3+", size: "463*327mm", isMultCol: !0 },
@@ -56,7 +56,7 @@ const rt = {
56
56
  { name: "8k", code: "8k", size: "370*260mm", isMultCol: !0 },
57
57
  { name: "16k", code: "16k", size: "185*260mm" },
58
58
  { name: "B4", code: "b4", size: "353*250mm" }
59
- ], b = {
59
+ ], g = {
60
60
  a3: {
61
61
  width: 1588,
62
62
  height: 1124
@@ -166,137 +166,137 @@ const rt = {
166
166
  { name: "两栏", code: 2 }
167
167
  ]
168
168
  }
169
- }, ct = {
169
+ }, dt = {
170
170
  article: {
171
171
  a3: {
172
- top: b.a3.width / 420 * 20.5,
173
- right: b.a3.width / 420 * 20.5,
174
- bottom: b.a3.width / 420 * 20.5,
175
- left: b.a3.width / 420 * 20.5
172
+ top: g.a3.width / 420 * 20.5,
173
+ right: g.a3.width / 420 * 20.5,
174
+ bottom: g.a3.width / 420 * 20.5,
175
+ left: g.a3.width / 420 * 20.5
176
176
  },
177
177
  "a3+": {
178
- top: b["a3+"].width / 420 * 20.5,
179
- right: b["a3+"].width / 420 * 20.5,
180
- bottom: b["a3+"].width / 420 * 20.5,
181
- left: b["a3+"].width / 420 * 20.5
178
+ top: g["a3+"].width / 420 * 20.5,
179
+ right: g["a3+"].width / 420 * 20.5,
180
+ bottom: g["a3+"].width / 420 * 20.5,
181
+ left: g["a3+"].width / 420 * 20.5
182
182
  },
183
183
  a4: {
184
- top: b.a4.width / 210 * 20.5,
185
- right: b.a4.width / 210 * 20.5,
186
- bottom: b.a4.width / 210 * 20.5,
187
- left: b.a4.width / 210 * 20.5
184
+ top: g.a4.width / 210 * 20.5,
185
+ right: g.a4.width / 210 * 20.5,
186
+ bottom: g.a4.width / 210 * 20.5,
187
+ left: g.a4.width / 210 * 20.5
188
188
  },
189
189
  a4x: {
190
- top: b.b4.width / 353 * 20,
191
- right: b.b4.width / 353 * 20,
192
- bottom: b.b4.width / 353 * 20,
193
- left: b.b4.width / 353 * 20
190
+ top: g.b4.width / 353 * 20,
191
+ right: g.b4.width / 353 * 20,
192
+ bottom: g.b4.width / 353 * 20,
193
+ left: g.b4.width / 353 * 20
194
194
  },
195
195
  "8k": {
196
- top: b["8k"].width / 370 * 17.5,
197
- right: b["8k"].width / 370 * 17.5,
198
- bottom: b["8k"].width / 370 * 17.5,
199
- left: b["8k"].width / 370 * 17.5
196
+ top: g["8k"].width / 370 * 17.5,
197
+ right: g["8k"].width / 370 * 17.5,
198
+ bottom: g["8k"].width / 370 * 17.5,
199
+ left: g["8k"].width / 370 * 17.5
200
200
  },
201
201
  "16k": {
202
- top: b["16k"].width / 185 * 14.5,
203
- right: b["16k"].width / 185 * 14.5,
204
- bottom: b["16k"].width / 185 * 14.5,
205
- left: b["16k"].width / 185 * 14.5
202
+ top: g["16k"].width / 185 * 14.5,
203
+ right: g["16k"].width / 185 * 14.5,
204
+ bottom: g["16k"].width / 185 * 14.5,
205
+ left: g["16k"].width / 185 * 14.5
206
206
  },
207
207
  b4: {
208
- top: b.b4.width / 353 * 17.5,
209
- right: b.b4.width / 353 * 17.5,
210
- bottom: b.b4.width / 353 * 17.5,
211
- left: b.b4.width / 353 * 17.5
208
+ top: g.b4.width / 353 * 17.5,
209
+ right: g.b4.width / 353 * 17.5,
210
+ bottom: g.b4.width / 353 * 17.5,
211
+ left: g.b4.width / 353 * 17.5
212
212
  }
213
213
  },
214
214
  sheet: {
215
215
  a3: {
216
- top: b.a3.width / 420 * 19,
217
- right: b.a3.width / 420 * 19,
218
- bottom: b.a3.width / 420 * 19,
219
- left: b.a3.width / 420 * 19
216
+ top: g.a3.width / 420 * 19,
217
+ right: g.a3.width / 420 * 19,
218
+ bottom: g.a3.width / 420 * 19,
219
+ left: g.a3.width / 420 * 19
220
220
  },
221
221
  "a3+": {
222
- top: b["a3+"].width / 420 * 19,
223
- right: b["a3+"].width / 420 * 19,
224
- bottom: b["a3+"].width / 420 * 19,
225
- left: b["a3+"].width / 420 * 19
222
+ top: g["a3+"].width / 420 * 19,
223
+ right: g["a3+"].width / 420 * 19,
224
+ bottom: g["a3+"].width / 420 * 19,
225
+ left: g["a3+"].width / 420 * 19
226
226
  },
227
227
  a4: {
228
- top: b.a4.width / 210 * 19,
229
- right: b.a4.width / 210 * 19,
230
- bottom: b.a4.width / 210 * 19,
231
- left: b.a4.width / 210 * 19
228
+ top: g.a4.width / 210 * 19,
229
+ right: g.a4.width / 210 * 19,
230
+ bottom: g.a4.width / 210 * 19,
231
+ left: g.a4.width / 210 * 19
232
232
  },
233
233
  a4x: {
234
- top: b.b4.width / 353 * 20,
235
- right: b.b4.width / 353 * 20,
236
- bottom: b.b4.width / 353 * 20,
237
- left: b.b4.width / 353 * 20
234
+ top: g.b4.width / 353 * 20,
235
+ right: g.b4.width / 353 * 20,
236
+ bottom: g.b4.width / 353 * 20,
237
+ left: g.b4.width / 353 * 20
238
238
  },
239
239
  "8k": {
240
- top: b["8k"].width / 370 * 16,
241
- right: b["8k"].width / 370 * 16,
242
- bottom: b["8k"].width / 370 * 16,
243
- left: b["8k"].width / 370 * 16
240
+ top: g["8k"].width / 370 * 16,
241
+ right: g["8k"].width / 370 * 16,
242
+ bottom: g["8k"].width / 370 * 16,
243
+ left: g["8k"].width / 370 * 16
244
244
  },
245
245
  "16k": {
246
- top: b["16k"].width / 185 * 15,
247
- right: b["16k"].width / 185 * 15,
248
- bottom: b["16k"].width / 185 * 15,
249
- left: b["16k"].width / 185 * 15
246
+ top: g["16k"].width / 185 * 15,
247
+ right: g["16k"].width / 185 * 15,
248
+ bottom: g["16k"].width / 185 * 15,
249
+ left: g["16k"].width / 185 * 15
250
250
  },
251
251
  b4: {
252
- top: b.b4.width / 353 * 19,
253
- right: b.b4.width / 353 * 19,
254
- bottom: b.b4.width / 353 * 19,
255
- left: b.b4.width / 353 * 19
252
+ top: g.b4.width / 353 * 19,
253
+ right: g.b4.width / 353 * 19,
254
+ bottom: g.b4.width / 353 * 19,
255
+ left: g.b4.width / 353 * 19
256
256
  }
257
257
  },
258
258
  sheetCard: {
259
259
  a3: {
260
- top: b.a3.width / 420 * 19,
261
- right: b.a3.width / 420 * 19,
262
- bottom: b.a3.width / 420 * 19,
263
- left: b.a3.width / 420 * 19
260
+ top: g.a3.width / 420 * 19,
261
+ right: g.a3.width / 420 * 19,
262
+ bottom: g.a3.width / 420 * 19,
263
+ left: g.a3.width / 420 * 19
264
264
  },
265
265
  "a3+": {
266
- top: b["a3+"].width / 420 * 19,
267
- right: b["a3+"].width / 420 * 19,
268
- bottom: b["a3+"].width / 420 * 19,
269
- left: b["a3+"].width / 420 * 19
266
+ top: g["a3+"].width / 420 * 19,
267
+ right: g["a3+"].width / 420 * 19,
268
+ bottom: g["a3+"].width / 420 * 19,
269
+ left: g["a3+"].width / 420 * 19
270
270
  },
271
271
  a4: {
272
- top: b.a4.width / 210 * 19,
273
- right: b.a4.width / 210 * 19,
274
- bottom: b.a4.width / 210 * 19,
275
- left: b.a4.width / 210 * 19
272
+ top: g.a4.width / 210 * 19,
273
+ right: g.a4.width / 210 * 19,
274
+ bottom: g.a4.width / 210 * 19,
275
+ left: g.a4.width / 210 * 19
276
276
  },
277
277
  a4x: {
278
- top: b.b4.width / 353 * 20,
279
- right: b.b4.width / 353 * 20,
280
- bottom: b.b4.width / 353 * 20,
281
- left: b.b4.width / 353 * 20
278
+ top: g.b4.width / 353 * 20,
279
+ right: g.b4.width / 353 * 20,
280
+ bottom: g.b4.width / 353 * 20,
281
+ left: g.b4.width / 353 * 20
282
282
  },
283
283
  "8k": {
284
- top: b["8k"].width / 370 * 16,
285
- right: b["8k"].width / 370 * 16,
286
- bottom: b["8k"].width / 370 * 16,
287
- left: b["8k"].width / 370 * 16
284
+ top: g["8k"].width / 370 * 16,
285
+ right: g["8k"].width / 370 * 16,
286
+ bottom: g["8k"].width / 370 * 16,
287
+ left: g["8k"].width / 370 * 16
288
288
  },
289
289
  "16k": {
290
- top: b["16k"].width / 185 * 15,
291
- right: b["16k"].width / 185 * 15,
292
- bottom: b["16k"].width / 185 * 15,
293
- left: b["16k"].width / 185 * 15
290
+ top: g["16k"].width / 185 * 15,
291
+ right: g["16k"].width / 185 * 15,
292
+ bottom: g["16k"].width / 185 * 15,
293
+ left: g["16k"].width / 185 * 15
294
294
  },
295
295
  b4: {
296
- top: b.b4.width / 353 * 19,
297
- right: b.b4.width / 353 * 19,
298
- bottom: b.b4.width / 353 * 19,
299
- left: b.b4.width / 353 * 19
296
+ top: g.b4.width / 353 * 19,
297
+ right: g.b4.width / 353 * 19,
298
+ bottom: g.b4.width / 353 * 19,
299
+ left: g.b4.width / 353 * 19
300
300
  }
301
301
  }
302
302
  }, Qt = {
@@ -549,12 +549,12 @@ const rt = {
549
549
  { name: "无", code: xe.none },
550
550
  { name: "座位号", code: xe.seat, value: 3 },
551
551
  { name: "短学号", code: xe.shortId, value: 4 }
552
- ], lt = {
552
+ ], nt = {
553
553
  wide: "text",
554
554
  local: "topic"
555
555
  }, Zt = [
556
- { name: "整卷", code: lt.wide },
557
- { name: "大题", code: lt.local }
556
+ { name: "整卷", code: nt.wide },
557
+ { name: "大题", code: nt.local }
558
558
  ], qe = {
559
559
  system: "system",
560
560
  second: "level_2",
@@ -727,7 +727,7 @@ const rt = {
727
727
  // 综合题
728
728
  synthesis_a: "polymerFlag"
729
729
  }
730
- }, Mt = {
730
+ }, Dt = {
731
731
  article: {
732
732
  // 文案边框控制
733
733
  isShowBorder: "isShowBorder"
@@ -1167,7 +1167,7 @@ const rt = {
1167
1167
  label: "列数",
1168
1168
  target: [U.headline],
1169
1169
  key: y.sheetCard.choice_d,
1170
- show: (e) => Object.values(rt).includes(e.problemType) && e.style[y.sheetCard.choice_a] !== L.choice_2,
1170
+ show: (e) => Object.values(ct).includes(e.problemType) && e.style[y.sheetCard.choice_a] !== L.choice_2,
1171
1171
  min: () => 2,
1172
1172
  max: () => 10
1173
1173
  }
@@ -1357,7 +1357,7 @@ const rt = {
1357
1357
  {
1358
1358
  type: "radio",
1359
1359
  label: "边框显示控制",
1360
- key: Mt.article.isShowBorder,
1360
+ key: Dt.article.isShowBorder,
1361
1361
  option: [
1362
1362
  { name: "显示边框", code: !0 },
1363
1363
  { name: "隐藏边框", code: !1 }
@@ -1470,12 +1470,12 @@ const rt = {
1470
1470
  halfScoreTypeOption: oo,
1471
1471
  layoutMode: Xt,
1472
1472
  otherLayout: so,
1473
- otherLayoutKey: Mt,
1473
+ otherLayoutKey: Dt,
1474
1474
  paddDiff: Qt,
1475
1475
  pageMargin: jt,
1476
- pagePadding: ct,
1476
+ pagePadding: dt,
1477
1477
  pagePointPosition: ze,
1478
- pageSize: b,
1478
+ pageSize: g,
1479
1479
  pageTitleBlockCol: Vt,
1480
1480
  paper: Oe,
1481
1481
  problemLayout: no,
@@ -1490,12 +1490,12 @@ const rt = {
1490
1490
  sheetColumnPad: $e,
1491
1491
  sheetItemColumnPad: Ut,
1492
1492
  subIndentOption: to,
1493
- subRange: lt,
1493
+ subRange: nt,
1494
1494
  subRangeOption: Zt,
1495
1495
  subRule: qe,
1496
1496
  subRuleOption: eo,
1497
1497
  toolGroup: U
1498
- }, Symbol.toStringTag, { value: "Module" })), dt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), po = "TF".split(""), mo = {
1498
+ }, Symbol.toStringTag, { value: "Module" })), ut = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), po = "TF".split(""), mo = {
1499
1499
  a4: "TYPE_A4",
1500
1500
  a4x: "TYPE_A4",
1501
1501
  a3: "TYPE_A3",
@@ -1549,7 +1549,7 @@ const rt = {
1549
1549
  write_view: `__${me}write`,
1550
1550
  // 密封线
1551
1551
  bind_line: `__${me}bindline`
1552
- }, bt = {
1552
+ }, ot = {
1553
1553
  [m.choice]: "TYPE_SINGLECHOICE",
1554
1554
  // 单项选择
1555
1555
  [m.choice_english]: "TYPE_SINGLECHOICE",
@@ -1599,8 +1599,8 @@ const rt = {
1599
1599
  right: `${t.padding.right - 20 + 100}px`,
1600
1600
  top: `${t.padding.top - 20}px`
1601
1601
  }
1602
- })[t.layout.pagePoint], n = (o, s) => {
1603
- const r = t.columnContentWidth + t.columnMargin, d = (t.bindWidth && !(t.currentPage % 2) ? t.bindWidth + t.columnMargin : 0) + t.padding.left - t.columnMargin / 2 - 10, p = {
1602
+ })[t.layout.pagePoint], i = (o, s) => {
1603
+ const c = t.columnContentWidth + t.columnMargin, d = (t.bindWidth && !(t.currentPage % 2) ? t.bindWidth + t.columnMargin : 0) + t.padding.left - t.columnMargin / 2 - 10, h = {
1604
1604
  t: {
1605
1605
  top: `${t.padding.top - 20}px`
1606
1606
  },
@@ -1608,53 +1608,53 @@ const rt = {
1608
1608
  bottom: `${t.padding.bottom - 20}px`
1609
1609
  }
1610
1610
  };
1611
- return { left: `${o * r + d}px`, ...p[s] };
1612
- }, c = (o) => {
1613
- const s = (b[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, d = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, p = ["", "l", "r"].findIndex((N) => N === o);
1614
- return { top: `${s * p + t.padding.top - 10}px`, width: "11px", ...d };
1611
+ return { left: `${o * c + d}px`, ...h[s] };
1612
+ }, n = (o) => {
1613
+ const s = (g[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, d = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, h = ["", "l", "r"].findIndex((B) => B === o);
1614
+ return { top: `${s * h + t.padding.top - 10}px`, width: "11px", ...d };
1615
1615
  };
1616
1616
  return (o, s) => {
1617
- var r;
1618
- return i(), u(P, null, [
1619
- (i(), u(P, null, Z(["lt", "rt", "lb", "rb"], (d) => f("span", {
1617
+ var c;
1618
+ return r(), u(P, null, [
1619
+ (r(), u(P, null, Z(["lt", "rt", "lb", "rb"], (d) => f("span", {
1620
1620
  key: d,
1621
1621
  class: "absolute w-8 bg-black point_item",
1622
- style: q(a(d)),
1622
+ style: Q(a(d)),
1623
1623
  "data-xine": x(k).point + d
1624
1624
  }, null, 12, yo)), 64)),
1625
- (i(!0), u(P, null, Z((o.currentPage % 2 ? o.layout.backColumn : o.layout.column) - 1, (d) => (i(), u(P, { key: d }, [
1626
- (i(), u(P, null, Z(["t", "b"], (p) => f("span", {
1627
- key: p,
1625
+ (r(!0), u(P, null, Z((o.currentPage % 2 ? o.layout.backColumn : o.layout.column) - 1, (d) => (r(), u(P, { key: d }, [
1626
+ (r(), u(P, null, Z(["t", "b"], (h) => f("span", {
1627
+ key: h,
1628
1628
  class: "absolute bg-black w-8 point_item",
1629
- style: q(n(d, p)),
1630
- "data-xine": x(k).point + p
1629
+ style: Q(i(d, h)),
1630
+ "data-xine": x(k).point + h
1631
1631
  }, null, 12, _o)), 64))
1632
1632
  ], 64))), 128)),
1633
- (i(), u(P, null, Z(["l", "r"], (d) => f("span", {
1633
+ (r(), u(P, null, Z(["l", "r"], (d) => f("span", {
1634
1634
  key: d,
1635
1635
  class: "absolute bg-black h-8",
1636
- style: q(c(d)),
1636
+ style: Q(n(d)),
1637
1637
  "data-xine": x(k).point + d
1638
1638
  }, null, 12, fo)), 64)),
1639
1639
  f("p", {
1640
1640
  class: "absolute leading-none text-0",
1641
- style: q(l()),
1641
+ style: Q(l()),
1642
1642
  "data-xine": x(k).page
1643
1643
  }, [
1644
- (i(!0), u(P, null, Z(o.currentPage + 1, (d, p) => (i(), u("span", {
1644
+ (r(!0), u(P, null, Z(o.currentPage + 1, (d, h) => (r(), u("span", {
1645
1645
  key: d,
1646
1646
  class: "inline-block bg-black mx-2 page_item",
1647
- "data-xine": x(k).page_item + p
1647
+ "data-xine": x(k).page_item + h
1648
1648
  }, null, 8, bo))), 128))
1649
1649
  ], 12, go),
1650
- o.currentPage % 2 ? D("", !0) : (i(), u("span", {
1650
+ o.currentPage % 2 ? M("", !0) : (r(), u("span", {
1651
1651
  key: 0,
1652
1652
  class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
1653
- style: q({ right: `${o.padding.right - 12}px` })
1654
- }, "提示:本卷" + J((r = x(Oe).find((d) => d.code === o.layout.paper)) == null ? void 0 : r.name) + "纸张", 5)),
1653
+ style: Q({ right: `${o.padding.right - 12}px` })
1654
+ }, "提示:本卷" + J((c = x(Oe).find((d) => d.code === o.layout.paper)) == null ? void 0 : c.name) + "纸张", 5)),
1655
1655
  f("span", {
1656
1656
  class: "absolute text-sm red_sheet",
1657
- style: q({ right: `${o.padding.bottom - 20 + 75}px`, bottom: `${o.padding.bottom - 20 - 3}px` })
1657
+ style: Q({ right: `${o.padding.bottom - 20 + 75}px`, bottom: `${o.padding.bottom - 20 - 3}px` })
1658
1658
  }, J(o.currentPage + 1) + "/" + J(o.totalPage), 5)
1659
1659
  ], 64);
1660
1660
  };
@@ -1662,8 +1662,8 @@ const rt = {
1662
1662
  });
1663
1663
  const de = (e, t) => {
1664
1664
  const a = e.__vccOpts || e;
1665
- for (const [l, n] of t)
1666
- a[l] = n;
1665
+ for (const [l, i] of t)
1666
+ a[l] = i;
1667
1667
  return a;
1668
1668
  }, wo = /* @__PURE__ */ de(vo, [["__scopeId", "data-v-44fe37c1"]]), xo = { class: "flex-1" }, ko = ["type", "placeholder", "maxlength", "value"], Co = {
1669
1669
  key: 0,
@@ -1683,23 +1683,23 @@ const de = (e, t) => {
1683
1683
  },
1684
1684
  emits: ["change", "input", "focus", "blur"],
1685
1685
  setup(e, { emit: t }) {
1686
- const a = e, l = Y(a.value), n = Y(!1);
1687
- De(() => a.value, () => {
1686
+ const a = e, l = q(a.value), i = q(!1);
1687
+ Me(() => a.value, () => {
1688
1688
  l.value = a.value;
1689
1689
  });
1690
- const c = (d) => {
1690
+ const n = (d) => {
1691
1691
  l.value = d.target.value, t("input", a.type === "number" ? parseFloat(l.value) : l.value);
1692
1692
  }, o = (d) => {
1693
1693
  l.value = d.target.value, t("change", a.type === "number" ? parseFloat(l.value) : l.value), setTimeout(() => {
1694
1694
  l.value = a.value;
1695
1695
  }, 400);
1696
1696
  }, s = (d) => {
1697
- l.value = d.target.value, t("focus", a.type === "number" ? parseFloat(l.value) : l.value), n.value = !0;
1698
- }, r = () => {
1699
- t("blur", a.type === "number" ? parseFloat(`${l.value}`) : l.value), n.value = !1;
1697
+ l.value = d.target.value, t("focus", a.type === "number" ? parseFloat(l.value) : l.value), i.value = !0;
1698
+ }, c = () => {
1699
+ t("blur", a.type === "number" ? parseFloat(`${l.value}`) : l.value), i.value = !1;
1700
1700
  };
1701
- return (d, p) => (i(), u("div", {
1702
- class: oe(["flex-1 flex items-center border rounded-lg", d.autoLine ? n.value ? "border-gray4" : "border-transparent" : "border-gray4", d.size === "small" && "p-1", d.size === "stand" && "p-2", d.size === "large" && "p-2"])
1701
+ return (d, h) => (r(), u("div", {
1702
+ class: oe(["flex-1 flex items-center border rounded-lg", d.autoLine ? i.value ? "border-gray4" : "border-transparent" : "border-gray4", d.size === "small" && "p-1", d.size === "stand" && "p-2", d.size === "large" && "p-2"])
1703
1703
  }, [
1704
1704
  f("div", xo, [
1705
1705
  f("input", {
@@ -1708,13 +1708,13 @@ const de = (e, t) => {
1708
1708
  placeholder: d.placeholder,
1709
1709
  maxlength: d.maxLength,
1710
1710
  value: l.value,
1711
- onInput: c,
1711
+ onInput: n,
1712
1712
  onChange: o,
1713
1713
  onFocus: s,
1714
- onBlur: r
1714
+ onBlur: c
1715
1715
  }, null, 42, ko)
1716
1716
  ]),
1717
- d.unit ? (i(), u("span", Co, J(d.unit), 1)) : D("", !0)
1717
+ d.unit ? (r(), u("span", Co, J(d.unit), 1)) : M("", !0)
1718
1718
  ], 2));
1719
1719
  }
1720
1720
  }), $o = /* @__PURE__ */ ee({
@@ -1725,19 +1725,19 @@ const de = (e, t) => {
1725
1725
  },
1726
1726
  emits: ["change"],
1727
1727
  setup(e, { emit: t }) {
1728
- const a = e, l = A(() => ct[a.layout.mode][a.layout.paper]), n = A(() => ({
1728
+ const a = e, l = A(() => dt[a.layout.mode][a.layout.paper]), i = A(() => ({
1729
1729
  right: `${l.value.right + 97}px`,
1730
1730
  bottom: `${l.value.bottom - 25}px`
1731
1731
  }));
1732
- return (c, o) => (i(), V(et, {
1732
+ return (n, o) => (r(), V(et, {
1733
1733
  class: "absolute w-72 text-sm",
1734
- value: c.info.slogan,
1734
+ value: n.info.slogan,
1735
1735
  maxLength: 12,
1736
1736
  placeholder: "",
1737
1737
  size: "small",
1738
1738
  autoLine: "",
1739
1739
  dir: "right",
1740
- style: q(n.value),
1740
+ style: Q(i.value),
1741
1741
  onChange: o[0] || (o[0] = (s) => t("change", { slogin: s }))
1742
1742
  }, null, 8, ["value", "style"]));
1743
1743
  }
@@ -1751,13 +1751,13 @@ const de = (e, t) => {
1751
1751
  emits: ["click"],
1752
1752
  setup(e, { emit: t }) {
1753
1753
  const a = e, l = A(() => `#icon-${a.name}`);
1754
- return (n, c) => (i(), u("span", {
1754
+ return (i, n) => (r(), u("span", {
1755
1755
  class: "cursor-pointer inline-block p-2 rounded-full transition-all leading-none font-0",
1756
- onClick: c[0] || (c[0] = (o) => t("click"))
1756
+ onClick: n[0] || (n[0] = (o) => t("click"))
1757
1757
  }, [
1758
- (i(), u("svg", {
1759
- width: n.width + "rem",
1760
- height: (n.height || n.width) + "rem"
1758
+ (r(), u("svg", {
1759
+ width: i.width + "rem",
1760
+ height: (i.height || i.width) + "rem"
1761
1761
  }, [
1762
1762
  f("use", { "xlink:href": l.value }, null, 8, To)
1763
1763
  ], 8, So))
@@ -1774,8 +1774,8 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1774
1774
  code: {}
1775
1775
  },
1776
1776
  setup(e) {
1777
- return (t, a) => (i(), u("div", Lo, [
1778
- t.layout.secrecyFlag ? (i(), u("p", Fo, [
1777
+ return (t, a) => (r(), u("div", Lo, [
1778
+ t.layout.secrecyFlag ? (r(), u("p", Fo, [
1779
1779
  Ue("绝密"),
1780
1780
  X(_e, {
1781
1781
  name: "fiveArrow",
@@ -1783,11 +1783,11 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1783
1783
  class: "px-0 py-0"
1784
1784
  }),
1785
1785
  Ue("启用前")
1786
- ])) : D("", !0),
1786
+ ])) : M("", !0),
1787
1787
  f("p", Eo, "ID:" + J(t.code), 1)
1788
1788
  ]));
1789
1789
  }
1790
- }), Mo = ["innerHTML"], Be = /* @__PURE__ */ ee({
1790
+ }), Do = ["innerHTML"], Be = /* @__PURE__ */ ee({
1791
1791
  __name: "index",
1792
1792
  props: {
1793
1793
  value: {},
@@ -1796,16 +1796,16 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1796
1796
  },
1797
1797
  emits: ["change"],
1798
1798
  setup(e, { emit: t }) {
1799
- const a = e, l = (n) => {
1800
- t("change", n.target.innerHTML, a.name);
1799
+ const a = e, l = (i) => {
1800
+ t("change", i.target.innerHTML, a.name);
1801
1801
  };
1802
- return (n, c) => (i(), u("div", {
1803
- innerHTML: n.value,
1802
+ return (i, n) => (r(), u("div", {
1803
+ innerHTML: i.value,
1804
1804
  contenteditable: "",
1805
1805
  onBlur: l
1806
- }, null, 40, Mo));
1806
+ }, null, 40, Do));
1807
1807
  }
1808
- }), Do = { class: "flex w-full" }, Ao = ["src", "data-xine"], No = { class: "flex-1 mx-4" }, Bo = { class: "flex items-center justify-center flex-wrap" }, Oo = {
1808
+ }), Mo = { class: "flex w-full" }, Ao = ["src", "data-xine"], No = { class: "flex-1 mx-4" }, Bo = { class: "flex items-center justify-center flex-wrap" }, Oo = {
1809
1809
  key: 0,
1810
1810
  class: "flex mx-4 min-w-[70px]"
1811
1811
  }, zo = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "范围:", -1), Ho = {
@@ -1830,8 +1830,8 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1830
1830
  },
1831
1831
  emits: ["change"],
1832
1832
  setup(e, { emit: t }) {
1833
- const a = e, l = A(() => a.data.filter((o) => ![ve.another, ve.another_choice, ve.one_choice].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), n = A(() => a.data.filter((o) => [ve.another].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), c = A(() => a.layout.scoreAddStars === Ze.star.code ? a.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
1834
- return (o, s) => (i(), u("div", Do, [
1833
+ const a = e, l = A(() => a.data.filter((o) => ![ve.another, ve.another_choice, ve.one_choice].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), i = A(() => a.data.filter((o) => [ve.another].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), n = A(() => a.layout.scoreAddStars === Ze.star.code ? a.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
1834
+ return (o, s) => (r(), u("div", Mo, [
1835
1835
  f("img", {
1836
1836
  src: o.info.qrCode,
1837
1837
  alt: "QRCode",
@@ -1842,26 +1842,26 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1842
1842
  X(Be, {
1843
1843
  class: "w-full text-center border-2 border-transparent focus:border-current",
1844
1844
  value: o.info.title,
1845
- style: q(o.fontConfig.titleStyle),
1846
- onChange: s[0] || (s[0] = (r) => t("change", { title: r }))
1845
+ style: Q(o.fontConfig.titleStyle),
1846
+ onChange: s[0] || (s[0] = (c) => t("change", { title: c }))
1847
1847
  }, null, 8, ["value", "style"]),
1848
- o.layout.secTitleFlag ? (i(), V(Be, {
1848
+ o.layout.secTitleFlag ? (r(), V(Be, {
1849
1849
  key: 0,
1850
1850
  class: "w-full text-center border-2 border-transparent focus:border-current",
1851
1851
  value: o.info.secTitle,
1852
- style: q(o.fontConfig.halfTitleStyle),
1853
- onChange: s[1] || (s[1] = (r) => t("change", { secTitle: r }))
1854
- }, null, 8, ["value", "style"])) : D("", !0),
1852
+ style: Q(o.fontConfig.halfTitleStyle),
1853
+ onChange: s[1] || (s[1] = (c) => t("change", { secTitle: c }))
1854
+ }, null, 8, ["value", "style"])) : M("", !0),
1855
1855
  f("div", Bo, [
1856
- o.layout.examExtentFlag ? (i(), u("p", Oo, [
1856
+ o.layout.examExtentFlag ? (r(), u("p", Oo, [
1857
1857
  zo,
1858
1858
  X(Be, {
1859
1859
  class: "flex-1",
1860
1860
  value: o.info.extent,
1861
- onChange: s[2] || (s[2] = (r) => t("change", { extent: r }))
1861
+ onChange: s[2] || (s[2] = (c) => t("change", { extent: c }))
1862
1862
  }, null, 8, ["value"])
1863
- ])) : D("", !0),
1864
- o.layout.examTimeFlag ? (i(), u("p", Ho, [
1863
+ ])) : M("", !0),
1864
+ o.layout.examTimeFlag ? (r(), u("p", Ho, [
1865
1865
  Ro,
1866
1866
  X(et, {
1867
1867
  value: o.info.time,
@@ -1870,63 +1870,63 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1870
1870
  autoLine: "",
1871
1871
  size: "small",
1872
1872
  placeholder: "",
1873
- onChange: s[3] || (s[3] = (r) => t("change", { time: r }))
1873
+ onChange: s[3] || (s[3] = (c) => t("change", { time: c }))
1874
1874
  }, null, 8, ["value"]),
1875
1875
  Wo
1876
- ])) : D("", !0),
1877
- o.layout.authorFlag ? (i(), u("p", Go, [
1876
+ ])) : M("", !0),
1877
+ o.layout.authorFlag ? (r(), u("p", Go, [
1878
1878
  Yo,
1879
1879
  X(Be, {
1880
1880
  class: "flex-1",
1881
1881
  value: o.info.author,
1882
- onChange: s[4] || (s[4] = (r) => t("change", { author: r }))
1882
+ onChange: s[4] || (s[4] = (c) => t("change", { author: c }))
1883
1883
  }, null, 8, ["value"])
1884
- ])) : D("", !0),
1885
- o.layout.reviewerFlag ? (i(), u("p", qo, [
1884
+ ])) : M("", !0),
1885
+ o.layout.reviewerFlag ? (r(), u("p", qo, [
1886
1886
  Qo,
1887
1887
  X(Be, {
1888
1888
  class: "flex-1",
1889
1889
  value: o.info.reviewer,
1890
- onChange: s[5] || (s[5] = (r) => t("change", { reviewer: r }))
1890
+ onChange: s[5] || (s[5] = (c) => t("change", { reviewer: c }))
1891
1891
  }, null, 8, ["value"])
1892
- ])) : D("", !0),
1893
- o.layout.totalScoreFlag ? (i(), u("p", Uo, [
1892
+ ])) : M("", !0),
1893
+ o.layout.totalScoreFlag ? (r(), u("p", Uo, [
1894
1894
  jo,
1895
- c.value ? (i(), V(_e, {
1895
+ n.value ? (r(), V(_e, {
1896
1896
  key: 0,
1897
- name: c.value,
1897
+ name: n.value,
1898
1898
  class: "p-0 -translate-y-[1px]"
1899
- }, null, 8, ["name"])) : (i(), u("span", Ko, "分")),
1899
+ }, null, 8, ["name"])) : (r(), u("span", Ko, "分")),
1900
1900
  f("span", null, ":" + J(l.value + (o.layout.writeScoreFlag ? o.info.writeScore : 0)), 1),
1901
- c.value ? (i(), V(_e, {
1901
+ n.value ? (r(), V(_e, {
1902
1902
  key: 2,
1903
- name: c.value,
1903
+ name: n.value,
1904
1904
  class: "p-0 -translate-y-[1px]"
1905
- }, null, 8, ["name"])) : (i(), u("span", Vo, "分")),
1906
- o.layout.writeScoreFlag ? (i(), u(P, { key: 4 }, [
1905
+ }, null, 8, ["name"])) : (r(), u("span", Vo, "分")),
1906
+ o.layout.writeScoreFlag ? (r(), u(P, { key: 4 }, [
1907
1907
  f("span", null, "(试题" + J(l.value), 1),
1908
- c.value ? (i(), V(_e, {
1908
+ n.value ? (r(), V(_e, {
1909
1909
  key: 0,
1910
- name: c.value,
1910
+ name: n.value,
1911
1911
  class: "p-0 -translate-y-[1px]"
1912
- }, null, 8, ["name"])) : (i(), u("span", Xo, "分")),
1912
+ }, null, 8, ["name"])) : (r(), u("span", Xo, "分")),
1913
1913
  f("span", null, "+卷面" + J(o.info.writeScore || 0), 1),
1914
- c.value ? (i(), V(_e, {
1914
+ n.value ? (r(), V(_e, {
1915
1915
  key: 2,
1916
- name: c.value,
1916
+ name: n.value,
1917
1917
  class: "p-0 -translate-y-[1px]"
1918
- }, null, 8, ["name"])) : (i(), u("span", Jo, "分")),
1918
+ }, null, 8, ["name"])) : (r(), u("span", Jo, "分")),
1919
1919
  Zo
1920
- ], 64)) : D("", !0),
1921
- n.value ? (i(), u(P, { key: 5 }, [
1922
- f("span", null, ";附加题:" + J(n.value), 1),
1923
- c.value ? (i(), V(_e, {
1920
+ ], 64)) : M("", !0),
1921
+ i.value ? (r(), u(P, { key: 5 }, [
1922
+ f("span", null, ";附加题:" + J(i.value), 1),
1923
+ n.value ? (r(), V(_e, {
1924
1924
  key: 0,
1925
- name: c.value,
1925
+ name: n.value,
1926
1926
  class: "p-0 -translate-y-[1px]"
1927
- }, null, 8, ["name"])) : (i(), u("span", ea, "分"))
1928
- ], 64)) : D("", !0)
1929
- ])) : D("", !0)
1927
+ }, null, 8, ["name"])) : (r(), u("span", ea, "分"))
1928
+ ], 64)) : M("", !0)
1929
+ ])) : M("", !0)
1930
1930
  ])
1931
1931
  ])
1932
1932
  ]));
@@ -1939,17 +1939,17 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1939
1939
  emits: ["change"],
1940
1940
  setup(e, { emit: t }) {
1941
1941
  const a = ["examNumField", "examRoomField", "seatField"];
1942
- return (l, n) => (i(), u("ul", oa, [
1943
- (i(), u(P, null, Z(a, (c) => f("li", {
1944
- key: c,
1942
+ return (l, i) => (r(), u("ul", oa, [
1943
+ (r(), u(P, null, Z(a, (n) => f("li", {
1944
+ key: n,
1945
1945
  class: "flex flex-1"
1946
1946
  }, [
1947
1947
  X(et, {
1948
- value: l.extent[c],
1948
+ value: l.extent[n],
1949
1949
  class: "px-0",
1950
1950
  placeholder: "",
1951
1951
  autoLine: "",
1952
- onChange: (o) => t("change", { [c]: o })
1952
+ onChange: (o) => t("change", { [n]: o })
1953
1953
  }, null, 8, ["value", "onChange"])
1954
1954
  ])), 64))
1955
1955
  ]));
@@ -1957,7 +1957,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1957
1957
  }), aa = ["data-xine"], la = { class: "flex items-center" }, na = ["data-xine"], sa = ["data-xine"], ia = ["data-xine"], ra = /* @__PURE__ */ ee({
1958
1958
  __name: "examInfoSeat",
1959
1959
  setup(e) {
1960
- return (t, a) => (i(), u("div", {
1960
+ return (t, a) => (r(), u("div", {
1961
1961
  class: "flex-shrink-0 border ml-4 flex flex-col",
1962
1962
  "data-xine": x(k).en_num_view
1963
1963
  }, [
@@ -1972,16 +1972,16 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1972
1972
  class: "flex-1 flex flex-col",
1973
1973
  "data-xine": x(k).en_num
1974
1974
  }, [
1975
- (i(), u(P, null, Z(3, (l, n) => f("p", {
1975
+ (r(), u(P, null, Z(3, (l, i) => f("p", {
1976
1976
  key: l,
1977
1977
  class: "flex-1 flex items-center text-0 px-1 border-t",
1978
1978
  "data-xine": x(k).en_num_group
1979
1979
  }, [
1980
- (i(), u(P, null, Z(10, (c) => f("span", {
1981
- key: c,
1980
+ (r(), u(P, null, Z(10, (n) => f("span", {
1981
+ key: n,
1982
1982
  class: "flex items-center justify-between flex-nowrap item",
1983
1983
  "data-xine": x(k).en_num_item
1984
- }, J(c - 1), 9, ia)), 64))
1984
+ }, J(n - 1), 9, ia)), 64))
1985
1985
  ], 8, sa)), 64))
1986
1986
  ], 8, na)
1987
1987
  ], 8, aa));
@@ -1990,7 +1990,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1990
1990
  const wt = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["data-xine"], da = { class: "flex items-center border-r tracking-[5px] text_dir" }, ua = ["data-xine"], ha = ["data-xine"], pa = ["data-xine"], ma = /* @__PURE__ */ ee({
1991
1991
  __name: "examInfoShort",
1992
1992
  setup(e) {
1993
- return (t, a) => (i(), u("div", {
1993
+ return (t, a) => (r(), u("div", {
1994
1994
  class: "flex-shrink-0 border ml-4 flex",
1995
1995
  "data-xine": x(k).en_num_view
1996
1996
  }, [
@@ -2005,16 +2005,16 @@ const wt = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["da
2005
2005
  class: "flex-1 flex flex-col",
2006
2006
  "data-xine": x(k).en_num
2007
2007
  }, [
2008
- (i(), u(P, null, Z(4, (l, n) => f("p", {
2008
+ (r(), u(P, null, Z(4, (l, i) => f("p", {
2009
2009
  key: l,
2010
- class: oe(["flex-1 flex items-center text-0 px-1", n && "border-t"]),
2010
+ class: oe(["flex-1 flex items-center text-0 px-1", i && "border-t"]),
2011
2011
  "data-xine": x(k).en_num_group
2012
2012
  }, [
2013
- (i(), u(P, null, Z(10, (c) => f("span", {
2014
- key: c,
2013
+ (r(), u(P, null, Z(10, (n) => f("span", {
2014
+ key: n,
2015
2015
  class: "flex items-center justify-between flex-nowrap item",
2016
2016
  "data-xine": x(k).en_num_item
2017
- }, J(c - 1), 9, pa)), 64))
2017
+ }, J(n - 1), 9, pa)), 64))
2018
2018
  ], 10, ha)), 64))
2019
2019
  ], 8, ua)
2020
2020
  ], 8, ca));
@@ -2028,17 +2028,17 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2028
2028
  emits: ["change"],
2029
2029
  setup(e, { emit: t }) {
2030
2030
  const a = ["nameField", "classField", "scoreField"];
2031
- return (l, n) => (i(), u("ul", ya, [
2032
- (i(), u(P, null, Z(a, (c) => f("li", {
2033
- key: c,
2031
+ return (l, i) => (r(), u("ul", ya, [
2032
+ (r(), u(P, null, Z(a, (n) => f("li", {
2033
+ key: n,
2034
2034
  class: "flex flex-1"
2035
2035
  }, [
2036
2036
  X(et, {
2037
- value: l.extent[c],
2037
+ value: l.extent[n],
2038
2038
  class: "px-0",
2039
2039
  placeholder: "",
2040
2040
  autoLine: "",
2041
- onChange: (o) => t("change", { [c]: o })
2041
+ onChange: (o) => t("change", { [n]: o })
2042
2042
  }, null, 8, ["value", "onChange"])
2043
2043
  ])), 64))
2044
2044
  ]));
@@ -2058,24 +2058,24 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2058
2058
  emits: ["change"],
2059
2059
  setup(e, { emit: t }) {
2060
2060
  const a = e, l = A(() => a.layout.column >= 3 && a.layout.seatType === xe.none);
2061
- return (n, c) => n.isBindFlag ? D("", !0) : (i(), u("div", ga, [
2062
- l.value ? (i(), u(P, { key: 0 }, [
2063
- n.layout.seatType === x(xe).none ? (i(), V(vt, {
2061
+ return (i, n) => i.isBindFlag ? M("", !0) : (r(), u("div", ga, [
2062
+ l.value ? (r(), u(P, { key: 0 }, [
2063
+ i.layout.seatType === x(xe).none ? (r(), V(vt, {
2064
2064
  key: 0,
2065
- extent: n.info.extentInfo,
2066
- onChange: c[0] || (c[0] = (o) => t("change", o))
2067
- }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (i(), V(wt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (i(), V(xt, { key: 2 })) : D("", !0)
2068
- ], 64)) : D("", !0),
2065
+ extent: i.info.extentInfo,
2066
+ onChange: n[0] || (n[0] = (o) => t("change", o))
2067
+ }, null, 8, ["extent"])) : i.layout.seatType === x(xe).seat ? (r(), V(wt, { key: 1 })) : i.layout.seatType === x(xe).shortId ? (r(), V(xt, { key: 2 })) : M("", !0)
2068
+ ], 64)) : M("", !0),
2069
2069
  X(_a, {
2070
- extent: n.info.extentInfo,
2071
- onChange: c[1] || (c[1] = (o) => t("change", o))
2070
+ extent: i.info.extentInfo,
2071
+ onChange: n[1] || (n[1] = (o) => t("change", o))
2072
2072
  }, null, 8, ["extent"]),
2073
- l.value ? D("", !0) : (i(), u(P, { key: 1 }, [
2074
- n.layout.seatType === x(xe).none ? (i(), V(vt, {
2073
+ l.value ? M("", !0) : (r(), u(P, { key: 1 }, [
2074
+ i.layout.seatType === x(xe).none ? (r(), V(vt, {
2075
2075
  key: 0,
2076
- extent: n.info.extentInfo,
2077
- onChange: c[2] || (c[2] = (o) => t("change", o))
2078
- }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (i(), V(wt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (i(), V(xt, { key: 2 })) : D("", !0)
2076
+ extent: i.info.extentInfo,
2077
+ onChange: n[2] || (n[2] = (o) => t("change", o))
2078
+ }, null, 8, ["extent"])) : i.layout.seatType === x(xe).seat ? (r(), V(wt, { key: 1 })) : i.layout.seatType === x(xe).shortId ? (r(), V(xt, { key: 2 })) : M("", !0)
2079
2079
  ], 64)),
2080
2080
  f("div", {
2081
2081
  class: "flex items-center justify-center flex-col flex-1 ml-4 border border-dashed",
@@ -2087,10 +2087,10 @@ const xt = /* @__PURE__ */ de(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2087
2087
  const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e) => (He("data-v-936c144e"), e = e(), Re(), e), Ca = {
2088
2088
  key: 0,
2089
2089
  class: "flex border mt-2 red_sheet"
2090
- }, $a = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Sa = { class: "flex-1 overflow-hidden" }, Ta = { class: "flex items-center flex-1 pl-2" }, Ia = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", null, "[", -1)), Pa = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", { class: "ml-4" }, "]", -1)), Ma = [
2090
+ }, $a = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Sa = { class: "flex-1 overflow-hidden" }, Ta = { class: "flex items-center flex-1 pl-2" }, Ia = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", null, "[", -1)), Pa = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", { class: "ml-4" }, "]", -1)), Da = [
2091
2091
  Ea,
2092
2092
  Pa
2093
- ], Da = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("p", { class: "flex items-center border-l px-2 py-1" }, [
2093
+ ], Ma = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("p", { class: "flex items-center border-l px-2 py-1" }, [
2094
2094
  /* @__PURE__ */ f("span", null, "正确填涂示例"),
2095
2095
  /* @__PURE__ */ f("span", { class: "w-8 bg-black ml-2 block_tips" })
2096
2096
  ], -1)), Aa = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("div", { class: "h-2" }, null, -1)), Na = /* @__PURE__ */ ee({
@@ -2113,17 +2113,17 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
2113
2113
  "4.请勿折叠试卷。保持字体工整、笔记清晰、卡面整洁。"
2114
2114
  ];
2115
2115
  });
2116
- return (l, n) => (i(), u(P, null, [
2117
- l.layout.noteFlag ? (i(), u("div", Ca, [
2116
+ return (l, i) => (r(), u(P, null, [
2117
+ l.layout.noteFlag ? (r(), u("div", Ca, [
2118
2118
  $a,
2119
2119
  f("div", Sa, [
2120
- (i(!0), u(P, null, Z(a.value, (c) => (i(), u("p", {
2121
- key: c,
2120
+ (r(!0), u(P, null, Z(a.value, (n) => (r(), u("p", {
2121
+ key: n,
2122
2122
  class: "px-2 origin-left scale-75 tip_item"
2123
- }, J(c), 1))), 128))
2123
+ }, J(n), 1))), 128))
2124
2124
  ])
2125
- ])) : D("", !0),
2126
- l.layout.lackFlag ? (i(), u("div", {
2125
+ ])) : M("", !0),
2126
+ l.layout.lackFlag ? (r(), u("div", {
2127
2127
  key: 1,
2128
2128
  class: oe(["flex border text-sm red_sheet", l.layout.noteFlag ? "border-t-0" : "mt-2"])
2129
2129
  }, [
@@ -2134,29 +2134,29 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
2134
2134
  f("span", {
2135
2135
  class: "flex items-center leading-4",
2136
2136
  "data-xine": x(k).lack
2137
- }, Ma, 8, Fa)
2137
+ }, Da, 8, Fa)
2138
2138
  ])
2139
2139
  ]),
2140
- Da
2141
- ], 2)) : D("", !0),
2140
+ Ma
2141
+ ], 2)) : M("", !0),
2142
2142
  Aa
2143
2143
  ], 64));
2144
2144
  }
2145
2145
  });
2146
2146
  const Ba = /* @__PURE__ */ de(Na, [["__scopeId", "data-v-936c144e"]]), kt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), Oa = (e, t = "", a = !0, l = "children") => {
2147
- let n = [];
2148
- const c = (o) => {
2149
- (o[l] || []).length ? (a && n.push(t ? o[t] : o[l]), o[l].forEach((s) => c(s))) : n.push(t ? o[t] : o);
2147
+ let i = [];
2148
+ const n = (o) => {
2149
+ (o[l] || []).length ? (a && i.push(t ? o[t] : o[l]), o[l].forEach((s) => n(s))) : i.push(t ? o[t] : o);
2150
2150
  };
2151
- return e.forEach((o) => c(o)), n.flat(5);
2151
+ return e.forEach((o) => n(o)), i.flat(5);
2152
2152
  };
2153
- function Dt(e) {
2153
+ function Mt(e) {
2154
2154
  if (e < 0 || e > 99)
2155
2155
  throw Error("下标超限");
2156
2156
  const t = "零一二三四五六七八九".split("");
2157
- return [...Array(100)].map((l, n) => {
2158
- const c = Math.floor(n / t.length), o = n % t.length;
2159
- return c ? `${c > 1 ? t[c] : ""}十${o ? t[o] : ""}` : t[o];
2157
+ return [...Array(100)].map((l, i) => {
2158
+ const n = Math.floor(i / t.length), o = i % t.length;
2159
+ return n ? `${n > 1 ? t[n] : ""}十${o ? t[o] : ""}` : t[o];
2160
2160
  })[e + 1];
2161
2161
  }
2162
2162
  function Ct(e) {
@@ -2179,17 +2179,17 @@ const za = {
2179
2179
  },
2180
2180
  setup(e) {
2181
2181
  const t = e, a = A(() => t.data.filter((l) => l.problemType));
2182
- return (l, n) => l.layout.scoreFlag ? (i(), u("ul", za, [
2182
+ return (l, i) => l.layout.scoreFlag ? (r(), u("ul", za, [
2183
2183
  Ha,
2184
- (i(!0), u(P, null, Z(a.value, (c, o) => (i(), u("li", {
2185
- key: c.id,
2184
+ (r(!0), u(P, null, Z(a.value, (n, o) => (r(), u("li", {
2185
+ key: n.id,
2186
2186
  class: "flex-1 flex flex-col border-l"
2187
2187
  }, [
2188
- f("p", Ra, J(x(Dt)(o)), 1),
2188
+ f("p", Ra, J(x(Mt)(o)), 1),
2189
2189
  Wa
2190
2190
  ]))), 128)),
2191
2191
  Ga
2192
- ])) : D("", !0);
2192
+ ])) : M("", !0);
2193
2193
  }
2194
2194
  }), qa = /* @__PURE__ */ ee({
2195
2195
  __name: "columnDom",
@@ -2200,15 +2200,15 @@ const za = {
2200
2200
  styleInfo: {}
2201
2201
  },
2202
2202
  setup(e, { expose: t }) {
2203
- const a = e, l = Y(), n = Y();
2204
- t({ col: l, colView: n });
2205
- const c = A(() => {
2206
- const { top: r, width: d, height: p, left: N } = a.styleInfo;
2203
+ const a = e, l = q(), i = q();
2204
+ t({ col: l, colView: i });
2205
+ const n = A(() => {
2206
+ const { top: c, width: d, height: h, left: B } = a.styleInfo;
2207
2207
  return {
2208
- top: `${parseFloat(r) - (a.currentColumn ? $e.top : 1)}px`,
2209
- left: `${parseFloat(N) - $e.left}px`,
2208
+ top: `${parseFloat(c) - (a.currentColumn ? $e.top : 1)}px`,
2209
+ left: `${parseFloat(B) - $e.left}px`,
2210
2210
  width: `${parseFloat(d) + $e.left + $e.right}px`,
2211
- height: `${parseFloat(p) + (a.currentColumn ? $e.top : 0) + $e.bottom}px`
2211
+ height: `${parseFloat(h) + (a.currentColumn ? $e.top : 0) + $e.bottom}px`
2212
2212
  };
2213
2213
  }), o = A(() => ({
2214
2214
  left: `${$e.left - 1}px`,
@@ -2216,30 +2216,30 @@ const za = {
2216
2216
  bottom: `${$e.bottom - 1}px`,
2217
2217
  right: `${$e.right - 1}px`
2218
2218
  })), s = A(() => a.column < 3 || a.currentColumn % 3 === 1);
2219
- return (r, d) => (i(), u(P, null, [
2220
- r.showColBorder ? (i(), u("div", {
2219
+ return (c, d) => (r(), u(P, null, [
2220
+ c.showColBorder ? (r(), u("div", {
2221
2221
  key: 0,
2222
2222
  class: oe(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", s.value && "tips"]),
2223
- style: q(c.value)
2223
+ style: Q(n.value)
2224
2224
  }, [
2225
2225
  f("span", {
2226
2226
  class: "absolute border border-black",
2227
- style: q(o.value)
2227
+ style: Q(o.value)
2228
2228
  }, null, 4)
2229
- ], 6)) : D("", !0),
2229
+ ], 6)) : M("", !0),
2230
2230
  f("div", {
2231
2231
  class: "absolute overflow-hidden",
2232
2232
  ref_key: "colView",
2233
- ref: n,
2234
- style: q(r.styleInfo)
2233
+ ref: i,
2234
+ style: Q(c.styleInfo)
2235
2235
  }, [
2236
2236
  f("div", {
2237
2237
  ref_key: "col",
2238
2238
  ref: l,
2239
2239
  class: "overflow-hidden __col__",
2240
- style: q({ height: r.styleInfo.contentHeight })
2240
+ style: Q({ height: c.styleInfo.contentHeight })
2241
2241
  }, [
2242
- it(r.$slots, "default", {}, void 0, !0)
2242
+ rt(c.$slots, "default", {}, void 0, !0)
2243
2243
  ], 4)
2244
2244
  ], 4)
2245
2245
  ], 64));
@@ -2256,28 +2256,28 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e)
2256
2256
  isBindFlag: { type: Boolean }
2257
2257
  },
2258
2258
  setup(e) {
2259
- const t = Y(), a = ["学校", "班级", "准考证号", "姓名"];
2260
- return (l, n) => l.isBindFlag ? (i(), u("div", {
2259
+ const t = q(), a = ["学校", "班级", "准考证号", "姓名"];
2260
+ return (l, i) => l.isBindFlag ? (r(), u("div", {
2261
2261
  key: 0,
2262
- style: q({ width: `${l.currentPage % 2 ? 0 : l.width}px`, height: `${l.height - 20}px` }),
2262
+ style: Q({ width: `${l.currentPage % 2 ? 0 : l.width}px`, height: `${l.height - 20}px` }),
2263
2263
  class: oe([l.currentPage % 2 && "right_view"]),
2264
2264
  ref_key: "view",
2265
2265
  ref: t
2266
2266
  }, [
2267
- l.currentPage % 2 ? (i(), u("div", {
2267
+ l.currentPage % 2 ? (r(), u("div", {
2268
2268
  key: 0,
2269
2269
  class: "flex items-center justify-center origin-top-left border-b end_view",
2270
- style: q({ width: `${l.height - 20}px`, height: `${l.width}px` })
2271
- }, "当前位置为密封线位置,请勿在此处作答", 4)) : (i(), u("div", {
2270
+ style: Q({ width: `${l.height - 20}px`, height: `${l.width}px` })
2271
+ }, "当前位置为密封线位置,请勿在此处作答", 4)) : (r(), u("div", {
2272
2272
  key: 1,
2273
2273
  class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
2274
- style: q({ width: `${l.height - 20}px` })
2274
+ style: Q({ width: `${l.height - 20}px` })
2275
2275
  }, [
2276
- (i(), u(P, null, Z(a, (c) => f("p", {
2277
- key: c,
2276
+ (r(), u(P, null, Z(a, (n) => f("p", {
2277
+ key: n,
2278
2278
  class: "flex items-end flex-1 mr-4"
2279
2279
  }, [
2280
- f("span", null, J(c), 1),
2280
+ f("span", null, J(n), 1),
2281
2281
  Ua
2282
2282
  ])), 64)),
2283
2283
  f("div", {
@@ -2288,10 +2288,10 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e)
2288
2288
  "data-xine": x(k).bind_line
2289
2289
  }, null, 8, Xa)
2290
2290
  ], 4))
2291
- ], 6)) : D("", !0);
2291
+ ], 6)) : M("", !0);
2292
2292
  }
2293
2293
  });
2294
- const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5jdmxyN28zYWRl", el = "YWNhdnN2cmIydmcZm", Ee = "MC4wYWx1ZXJvcWhm", $t = "MC5sZGN2NzJ0ZXE0bw", ut = "MC5yYjk3NGY2OTcyOA", ht = "MC42cWRzbGM0c21jbw", tl = "MC45amVuM25vajRk", ol = "MC44YjJkb212djRu", al = ["img", "table", "svg"], ll = ["data-block", "data-xine"], nl = ["data-xine"], sl = ["data-xine"], il = { class: "absolute opacity-0 pointer-events-none" }, rl = /* @__PURE__ */ ee({
2294
+ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5jdmxyN28zYWRl", el = "YWNhdnN2cmIydmcZm", Ee = "MC4wYWx1ZXJvcWhm", $t = "MC5sZGN2NzJ0ZXE0bw", ht = "MC5yYjk3NGY2OTcyOA", pt = "MC42cWRzbGM0c21jbw", tl = "MC45amVuM25vajRk", ol = "MC44YjJkb212djRu", al = ["img", "table", "svg"], ll = ["data-block", "data-xine"], nl = ["data-xine"], sl = ["data-xine"], il = { class: "absolute opacity-0 pointer-events-none" }, rl = /* @__PURE__ */ ee({
2295
2295
  __name: "simple",
2296
2296
  props: {
2297
2297
  item: {},
@@ -2299,10 +2299,10 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2299
2299
  },
2300
2300
  setup(e) {
2301
2301
  const t = e, a = ["right", "half_right", "wrong"], l = A(() => {
2302
- const n = t.item.score;
2303
- return [n, Math.round(n / 2 * 100) / 100, 0];
2302
+ const i = t.item.score;
2303
+ return [i, Math.round(i / 2 * 100) / 100, 0];
2304
2304
  });
2305
- return (n, c) => (i(), u("div", {
2305
+ return (i, n) => (r(), u("div", {
2306
2306
  class: "flex border-x-2 border-y divide-x divide-solid",
2307
2307
  "data-block": x(ke),
2308
2308
  "data-xine": x(k).score
@@ -2311,9 +2311,9 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2311
2311
  class: "flex h-full divide-x divide-solid",
2312
2312
  "data-xine": x(k).score_base
2313
2313
  }, [
2314
- (i(!0), u(P, null, Z(l.value, (o, s) => (i(), u("li", {
2314
+ (r(!0), u(P, null, Z(l.value, (o, s) => (r(), u("li", {
2315
2315
  class: "flex items-center justify-center relative score_line",
2316
- style: q({ width: `${x(Ke)[n.layout.scoreLineSize].value}px` }),
2316
+ style: Q({ width: `${x(Ke)[i.layout.scoreLineSize].value}px` }),
2317
2317
  "data-xine": x(k).score_item
2318
2318
  }, [
2319
2319
  f("span", il, J(o), 1),
@@ -2333,30 +2333,30 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2333
2333
  static: { type: Boolean }
2334
2334
  },
2335
2335
  setup(e) {
2336
- const t = e, a = Y(), l = Y(!1), n = Y(!1), c = Y(!1), o = Y([]), s = A(() => t.layout.scoreAddStars === Ze.star.code);
2337
- De(() => [t.item.score], () => r()), Xe(() => {
2338
- r();
2336
+ const t = e, a = q(), l = q(!1), i = q(!1), n = q(!1), o = q([]), s = A(() => t.layout.scoreAddStars === Ze.star.code);
2337
+ Me(() => [t.item.score], () => c()), Xe(() => {
2338
+ c();
2339
2339
  });
2340
- const r = () => {
2340
+ const c = () => {
2341
2341
  !t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || Je(() => {
2342
- let p = [];
2342
+ let h = [];
2343
2343
  if (t.item.scoreLineType === je.custom)
2344
- p = [[...t.item.customScore, 0]];
2344
+ h = [[...t.item.customScore, 0]];
2345
2345
  else if (t.item.scoreStep)
2346
- p.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((N) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * N)).reverse());
2346
+ h.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((B) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * B)).reverse());
2347
2347
  else {
2348
- const N = a.value.offsetWidth, h = Ke[t.layout.scoreLineSize].value + 1;
2349
- l.value = N - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, l.value ? (p.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((F) => F && F * 10).reverse()), p.push([...Array(10).keys()].reverse()), c.value = !0) : p.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
2348
+ const B = a.value.offsetWidth, p = Ke[t.layout.scoreLineSize].value + 1;
2349
+ l.value = B - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * p && t.item.score >= 10, l.value ? (h.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((F) => F && F * 10).reverse()), h.push([...Array(10).keys()].reverse()), n.value = !0) : h.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
2350
2350
  }
2351
- t.item.hasHalfScore && p.push([0.5]), o.value = p, n.value = !!p.flat().find((N) => `${N}`.length > 3);
2351
+ t.item.hasHalfScore && h.push([0.5]), o.value = h, i.value = !!h.flat().find((B) => `${B}`.length > 3);
2352
2352
  });
2353
- }, d = (p) => t.item.hasHalfScore ? [k.score_half, k.score_base, k.score_tenbit][o.value.length - p - 1] : [k.score_base, k.score_tenbit][o.value.length - p - 1];
2354
- return (p, N) => p.layout.handReadFlag ? (i(), u(P, { key: 0 }, [
2355
- p.layout.simpleScoreBarFlag && !p.static ? (i(), V(rl, {
2353
+ }, d = (h) => t.item.hasHalfScore ? [k.score_half, k.score_base, k.score_tenbit][o.value.length - h - 1] : [k.score_base, k.score_tenbit][o.value.length - h - 1];
2354
+ return (h, B) => h.layout.handReadFlag ? (r(), u(P, { key: 0 }, [
2355
+ h.layout.simpleScoreBarFlag && !h.static ? (r(), V(rl, {
2356
2356
  key: 0,
2357
- item: p.item,
2358
- layout: p.layout
2359
- }, null, 8, ["item", "layout"])) : (i(), u("div", {
2357
+ item: h.item,
2358
+ layout: h.layout
2359
+ }, null, 8, ["item", "layout"])) : (r(), u("div", {
2360
2360
  key: 1,
2361
2361
  ref_key: "view",
2362
2362
  ref: a,
@@ -2364,28 +2364,28 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2364
2364
  "data-block": x(ke),
2365
2365
  "data-xine": x(k).score
2366
2366
  }, [
2367
- (i(!0), u(P, null, Z(o.value, (h, F) => (i(), u("ul", {
2367
+ (r(!0), u(P, null, Z(o.value, (p, F) => (r(), u("ul", {
2368
2368
  class: "flex divide-x divide-solid",
2369
2369
  "data-xine": d(F)
2370
2370
  }, [
2371
- (i(!0), u(P, null, Z(h, (Q) => (i(), u("li", {
2371
+ (r(!0), u(P, null, Z(p, (O) => (r(), u("li", {
2372
2372
  class: "flex items-center justify-center flex-shrink-0 score_line",
2373
- style: q({ width: `${x(Ke)[p.layout.scoreLineSize].value}px` }),
2374
- "data-xine": Q.toString() ? x(k).score_item : ""
2373
+ style: Q({ width: `${x(Ke)[h.layout.scoreLineSize].value}px` }),
2374
+ "data-xine": O.toString() ? x(k).score_item : ""
2375
2375
  }, [
2376
2376
  f("span", {
2377
- class: oe(["whitespace-nowrap", s.value && "origin-right", n.value && "scale-75"])
2378
- }, J(p.layout.minusFlag && Q.toString().length && !s.value ? "-" : "") + J(Q), 3),
2379
- s.value && Q.toString().length ? (i(), V(_e, {
2377
+ class: oe(["whitespace-nowrap", s.value && "origin-right", i.value && "scale-75"])
2378
+ }, J(h.layout.minusFlag && O.toString().length && !s.value ? "-" : "") + J(O), 3),
2379
+ s.value && O.toString().length ? (r(), V(_e, {
2380
2380
  key: 0,
2381
2381
  class: "px-0 py-0 -translate-y-[1px]",
2382
- name: p.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
2383
- width: n.value ? 0.9 : 1.2
2384
- }, null, 8, ["name", "width"])) : D("", !0)
2382
+ name: h.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
2383
+ width: i.value ? 0.9 : 1.2
2384
+ }, null, 8, ["name", "width"])) : M("", !0)
2385
2385
  ], 12, ul))), 256))
2386
2386
  ], 8, dl))), 256))
2387
2387
  ], 10, cl))
2388
- ], 64)) : D("", !0);
2388
+ ], 64)) : M("", !0);
2389
2389
  }
2390
2390
  }), Nt = (e) => (He("data-v-a8dbd3b0"), e = e(), Re(), e), hl = ["data-xine"], pl = /* @__PURE__ */ Nt(() => /* @__PURE__ */ f("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), ml = /* @__PURE__ */ Nt(() => /* @__PURE__ */ f("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), yl = /* @__PURE__ */ ee({
2391
2391
  __name: "writeScore",
@@ -2394,7 +2394,7 @@ const Za = /* @__PURE__ */ de(Ja, [["__scopeId", "data-v-3f588317"]]), ke = "MC5
2394
2394
  layout: {}
2395
2395
  },
2396
2396
  setup(e) {
2397
- return (t, a) => (i(), u("div", {
2397
+ return (t, a) => (r(), u("div", {
2398
2398
  class: "flex items-center mb-2",
2399
2399
  "data-xine": x(k).write_view
2400
2400
  }, [
@@ -2415,7 +2415,7 @@ const _l = /* @__PURE__ */ de(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["in
2415
2415
  },
2416
2416
  setup(e) {
2417
2417
  const t = e;
2418
- return (a, l) => (i(), u("div", {
2418
+ return (a, l) => (r(), u("div", {
2419
2419
  innerHTML: t.data,
2420
2420
  class: "base-problem-font problem-base"
2421
2421
  }, null, 8, fl));
@@ -2427,10 +2427,10 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2427
2427
  item: {}
2428
2428
  },
2429
2429
  setup(e) {
2430
- return (t, a) => (i(), u("div", {
2430
+ return (t, a) => (r(), u("div", {
2431
2431
  class: "py-2 border border-dashed rounded-lg mx-1 my-2",
2432
2432
  "data-tag": t.item.__tag__,
2433
- "data-block": x(ut)
2433
+ "data-block": x(ht)
2434
2434
  }, [
2435
2435
  X(Ae, {
2436
2436
  "data-content": t.item.id,
@@ -2444,7 +2444,7 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2444
2444
  }, Cl = { class: "flex flex-wrap" }, $l = { key: 0 }, Sl = {
2445
2445
  key: 1,
2446
2446
  class: "indent-2"
2447
- }, Tl = { key: 0 }, Il = { key: 0 }, Ll = { key: 1 }, Fl = ["data-block", "data-xine"], El = /* @__PURE__ */ wl(() => /* @__PURE__ */ f("span", null, "我选答的题目是:", -1)), Pl = { class: "flex items-center" }, Ml = ["data-xine"], Dl = /* @__PURE__ */ ee({
2447
+ }, Tl = { key: 0 }, Il = { key: 0 }, Ll = { key: 1 }, Fl = ["data-block", "data-xine"], El = /* @__PURE__ */ wl(() => /* @__PURE__ */ f("span", null, "我选答的题目是:", -1)), Pl = { class: "flex items-center" }, Dl = ["data-xine"], Ml = /* @__PURE__ */ ee({
2448
2448
  __name: "index",
2449
2449
  props: {
2450
2450
  item: {},
@@ -2455,50 +2455,50 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2455
2455
  },
2456
2456
  emits: ["click", "dbclick"],
2457
2457
  setup(e, { emit: t }) {
2458
- const a = e, l = A(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.filter((s) => s.problemType) : null), n = A(() => [ve.another_choice].includes(a.item.problemType)), c = A(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.length : [...new Set(Oa(a.item.rawChildren.filter((s) => s.problemType), "sub").flat().map((s) => (s || "").split(".")[0]))].length), o = A(() => [...new Set(a.item.rawChildren.map((s) => [...new Set(s.sub.map((r) => r.split(".")[0]))]).map((s) => s.length > 1 ? `${s[0]}-${s[s.length - 1]}` : s[0]))]);
2459
- return (s, r) => s.item.problemType ? (i(), u("div", {
2458
+ const a = e, l = A(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.filter((s) => s.problemType) : null), i = A(() => [ve.another_choice].includes(a.item.problemType)), n = A(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.length : [...new Set(Oa(a.item.rawChildren.filter((s) => s.problemType), "sub").flat().map((s) => (s || "").split(".")[0]))].length), o = A(() => [...new Set(a.item.rawChildren.map((s) => [...new Set(s.sub.map((c) => c.split(".")[0]))]).map((s) => s.length > 1 ? `${s[0]}-${s[s.length - 1]}` : s[0]))]);
2459
+ return (s, c) => s.item.problemType ? (r(), u("div", {
2460
2460
  key: 1,
2461
2461
  class: oe(["flex items-baseline relative headline_item", s.showColBorder && "pl-2 mx-1 z-2", !s.isFirst && "headline_view"]),
2462
- onClick: r[2] || (r[2] = Le((d) => t("click", s.item), ["stop"])),
2462
+ onClick: c[2] || (c[2] = Le((d) => t("click", s.item), ["stop"])),
2463
2463
  "data-tag": s.item.__tag__,
2464
2464
  "data-block": x(ke),
2465
- onDblclick: r[3] || (r[3] = Le((d) => t("dbclick", s.item), ["stop"]))
2465
+ onDblclick: c[3] || (c[3] = Le((d) => t("dbclick", s.item), ["stop"]))
2466
2466
  }, [
2467
- !s.layout.listIndexFlag && s.item.sub ? (i(), u("span", kl, J(x(Dt)(s.item.sub - 1)) + "、", 1)) : D("", !0),
2467
+ !s.layout.listIndexFlag && s.item.sub ? (r(), u("span", kl, J(x(Mt)(s.item.sub - 1)) + "、", 1)) : M("", !0),
2468
2468
  f("div", null, [
2469
2469
  f("div", Cl, [
2470
2470
  f("span", null, J(s.item.name), 1),
2471
- s.item.desc ? (i(), u("span", $l, "(" + J(s.item.desc) + ")", 1)) : D("", !0),
2472
- s.layout.scoreTipFlag ? (i(), u("span", Sl, "(共" + J(c.value) + "题,共" + J(s.item.totalScore) + "分)", 1)) : D("", !0)
2471
+ s.item.desc ? (r(), u("span", $l, "(" + J(s.item.desc) + ")", 1)) : M("", !0),
2472
+ s.layout.scoreTipFlag ? (r(), u("span", Sl, "(共" + J(n.value) + "题,共" + J(s.item.totalScore) + "分)", 1)) : M("", !0)
2473
2473
  ]),
2474
- l.value || n.value ? (i(), u("div", Tl, [
2475
- l.value ? (i(), u("p", Il, "请在以下" + J(s.item.rawChildren.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (i(), u("p", Ll, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
2474
+ l.value || i.value ? (r(), u("div", Tl, [
2475
+ l.value ? (r(), u("p", Il, "请在以下" + J(s.item.rawChildren.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (r(), u("p", Ll, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
2476
2476
  f("p", {
2477
2477
  class: "flex flex-wrap",
2478
2478
  "data-block": x(ke),
2479
2479
  "data-xine": x(k).choice + s.item.id
2480
2480
  }, [
2481
2481
  El,
2482
- (i(!0), u(P, null, Z(o.value, (d, p) => (i(), u("span", Pl, [
2482
+ (r(!0), u(P, null, Z(o.value, (d, h) => (r(), u("span", Pl, [
2483
2483
  f("span", null, J(d), 1),
2484
2484
  f("span", {
2485
2485
  class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
2486
2486
  "data-xine": x(k).fill
2487
- }, null, 8, Ml)
2487
+ }, null, 8, Dl)
2488
2488
  ]))), 256))
2489
2489
  ], 8, Fl)
2490
- ])) : D("", !0)
2490
+ ])) : M("", !0)
2491
2491
  ])
2492
- ], 42, xl)) : (i(), V(vl, {
2492
+ ], 42, xl)) : (r(), V(vl, {
2493
2493
  key: 0,
2494
2494
  class: oe([s.isActive && "border-current", s.isFirst && "mt-9"]),
2495
2495
  item: s.item,
2496
- onClick: r[0] || (r[0] = Le((d) => t("click", s.item), ["stop"])),
2497
- onDblclick: r[1] || (r[1] = Le((d) => t("dbclick", s.item), ["stop"]))
2496
+ onClick: c[0] || (c[0] = Le((d) => t("click", s.item), ["stop"])),
2497
+ onDblclick: c[1] || (c[1] = Le((d) => t("dbclick", s.item), ["stop"]))
2498
2498
  }, null, 8, ["class", "item"]));
2499
2499
  }
2500
2500
  });
2501
- const St = /* @__PURE__ */ de(Dl, [["__scopeId", "data-v-257ae24a"]]), Al = {};
2501
+ const St = /* @__PURE__ */ de(Ml, [["__scopeId", "data-v-257ae24a"]]), Al = {};
2502
2502
  function Nl(e, t) {
2503
2503
  return null;
2504
2504
  }
@@ -2509,18 +2509,18 @@ const Bl = /* @__PURE__ */ de(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
2509
2509
  layout: {}
2510
2510
  },
2511
2511
  setup(e) {
2512
- return (t, a) => (i(), u("div", {
2512
+ return (t, a) => (r(), u("div", {
2513
2513
  class: "flex items-center red_sheet",
2514
2514
  "data-block": x(ke)
2515
2515
  }, [
2516
- (i(!0), u(P, null, Z(t.item.optList, (l, n) => (i(), u("span", {
2517
- class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(kt)[n]) && "bg-success border-success"]),
2518
- style: q({ width: `${x(Ie)[t.layout.fillSize].value + 1}px`, height: `${x(Ie)[t.layout.fillSize].height + 1}px` }),
2519
- "data-xine": x(k).fill + n
2516
+ (r(!0), u(P, null, Z(t.item.optList, (l, i) => (r(), u("span", {
2517
+ class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(kt)[i]) && "bg-success border-success"]),
2518
+ style: Q({ width: `${x(Ie)[t.layout.fillSize].value + 1}px`, height: `${x(Ie)[t.layout.fillSize].height + 1}px` }),
2519
+ "data-xine": x(k).fill + i
2520
2520
  }, [
2521
2521
  X(_e, {
2522
2522
  width: 1,
2523
- name: x(kt)[n]
2523
+ name: x(kt)[i]
2524
2524
  }, null, 8, ["name"])
2525
2525
  ], 14, zl))), 256))
2526
2526
  ], 8, Ol));
@@ -2544,14 +2544,14 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
2544
2544
  width: `${Ie[t.layout.fillSize].value + 1}px`,
2545
2545
  height: `${Ie[t.layout.fillSize].height + 1}px`
2546
2546
  }));
2547
- return (l, n) => (i(), u("div", {
2547
+ return (l, i) => (r(), u("div", {
2548
2548
  class: "flex red_sheet",
2549
2549
  "data-block": x(ke)
2550
2550
  }, [
2551
- l.item.style[x(y)[l.layout.mode].decide_a] === x(L).decide_1 ? (i(), u(P, { key: 0 }, [
2551
+ l.item.style[x(y)[l.layout.mode].decide_a] === x(L).decide_1 ? (r(), u(P, { key: 0 }, [
2552
2552
  f("span", {
2553
2553
  class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
2554
- style: q(a.value),
2554
+ style: Q(a.value),
2555
2555
  "data-xine": x(k).fill + "0"
2556
2556
  }, [
2557
2557
  X(_e, {
@@ -2561,7 +2561,7 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
2561
2561
  ], 14, ql),
2562
2562
  f("span", {
2563
2563
  class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
2564
- style: q(a.value),
2564
+ style: Q(a.value),
2565
2565
  "data-xine": x(k).fill + "1"
2566
2566
  }, [
2567
2567
  X(_e, {
@@ -2569,15 +2569,15 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
2569
2569
  width: 1
2570
2570
  })
2571
2571
  ], 14, Ql)
2572
- ], 64)) : (i(), u(P, { key: 1 }, [
2572
+ ], 64)) : (r(), u(P, { key: 1 }, [
2573
2573
  f("span", {
2574
2574
  class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("T") && "bg-success border-success"]),
2575
- style: q(a.value),
2575
+ style: Q(a.value),
2576
2576
  "data-xine": x(k).fill + "0"
2577
2577
  }, Kl, 14, Ul),
2578
2578
  f("span", {
2579
2579
  class: oe(["fill_block", l.layout.showAnswer && l.item.answer.includes("F") && "bg-success border-success"]),
2580
- style: q(a.value),
2580
+ style: Q(a.value),
2581
2581
  "data-xine": x(k).fill + "1"
2582
2582
  }, Jl, 14, Vl)
2583
2583
  ], 64))
@@ -2599,22 +2599,22 @@ const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-x
2599
2599
  },
2600
2600
  setup(e) {
2601
2601
  const t = e, a = A(() => t.layout.scoreAddStars === Ze.star.code);
2602
- return (l, n) => l.layout.handReadFlag ? (i(), u("div", {
2602
+ return (l, i) => l.layout.handReadFlag ? (r(), u("div", {
2603
2603
  key: 0,
2604
2604
  class: "score_fill flex items-center",
2605
2605
  "data-block": x(ke),
2606
2606
  "data-xine": x(k).fill
2607
2607
  }, [
2608
- l.showScoreCn ? (i(), u("span", ln, [
2608
+ l.showScoreCn ? (r(), u("span", ln, [
2609
2609
  f("span", null, J(l.layout.minusFlag && !a.value ? "-" : "") + J(l.item.score), 1),
2610
- a.value ? (i(), V(_e, {
2610
+ a.value ? (r(), V(_e, {
2611
2611
  key: 0,
2612
2612
  class: "px-0 py-0 -translate-y-[1px]",
2613
2613
  name: l.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
2614
2614
  width: 1.2
2615
- }, null, 8, ["name"])) : (i(), u("span", nn, "分"))
2616
- ])) : D("", !0)
2617
- ], 8, an)) : D("", !0);
2615
+ }, null, 8, ["name"])) : (r(), u("span", nn, "分"))
2616
+ ])) : M("", !0)
2617
+ ], 8, an)) : M("", !0);
2618
2618
  }
2619
2619
  }), rn = ["data-xine"], cn = /* @__PURE__ */ ee({
2620
2620
  __name: "sheet",
@@ -2624,18 +2624,18 @@ const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-x
2624
2624
  },
2625
2625
  setup(e) {
2626
2626
  const t = e;
2627
- return (a, l) => (i(), u(P, null, [
2627
+ return (a, l) => (r(), u(P, null, [
2628
2628
  f("div", {
2629
2629
  class: "flex-1 border-b self-stretch red_sheet",
2630
- style: q({ height: `${20 + a.item.style[x(y)[t.layout.mode].fill_e]}px` }),
2630
+ style: Q({ height: `${20 + a.item.style[x(y)[t.layout.mode].fill_e]}px` }),
2631
2631
  "data-xine": x(k).fill_line
2632
2632
  }, null, 12, rn),
2633
- a.layout.handReadFlag ? (i(), V(sn, {
2633
+ a.layout.handReadFlag ? (r(), V(sn, {
2634
2634
  key: 0,
2635
2635
  item: a.item,
2636
2636
  layout: a.layout,
2637
2637
  showScoreCn: a.layout.fillScoreFlag
2638
- }, null, 8, ["item", "layout", "showScoreCn"])) : D("", !0)
2638
+ }, null, 8, ["item", "layout", "showScoreCn"])) : M("", !0)
2639
2639
  ], 64));
2640
2640
  }
2641
2641
  }), dn = {};
@@ -2650,15 +2650,15 @@ const hn = /* @__PURE__ */ de(dn, [["render", un]]), pn = ["data-block"], mn = {
2650
2650
  isFirst: { type: Boolean }
2651
2651
  },
2652
2652
  setup(e) {
2653
- return (t, a) => (i(), u("div", {
2653
+ return (t, a) => (r(), u("div", {
2654
2654
  class: oe(["w-full min-h-[5rem] pt-2", !t.isFirst && "border-t"])
2655
2655
  }, [
2656
- t.item.chunk ? D("", !0) : (i(), u("div", {
2656
+ t.item.chunk ? M("", !0) : (r(), u("div", {
2657
2657
  key: 0,
2658
2658
  class: "flex items-center",
2659
2659
  "data-block": x(ke)
2660
2660
  }, [
2661
- it(t.$slots, "default"),
2661
+ rt(t.$slots, "default"),
2662
2662
  f("div", mn, [
2663
2663
  X(tt, {
2664
2664
  item: t.item,
@@ -2683,7 +2683,7 @@ const gn = /* @__PURE__ */ de(_n, [["render", fn]]), bn = /* @__PURE__ */ f("div
2683
2683
  layout: {}
2684
2684
  },
2685
2685
  setup(e) {
2686
- return (t, a) => (i(), u(P, null, [
2686
+ return (t, a) => (r(), u(P, null, [
2687
2687
  bn,
2688
2688
  X(tt, {
2689
2689
  item: t.item,
@@ -2707,100 +2707,100 @@ const Ln = /* @__PURE__ */ de(Tn, [["render", In]]), Fn = {};
2707
2707
  function En(e, t) {
2708
2708
  return null;
2709
2709
  }
2710
- const Pn = /* @__PURE__ */ de(Fn, [["render", En]]), Mn = {};
2711
- function Dn(e, t) {
2710
+ const Pn = /* @__PURE__ */ de(Fn, [["render", En]]), Dn = {};
2711
+ function Mn(e, t) {
2712
2712
  return null;
2713
2713
  }
2714
- const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn = ["data-block"], On = { class: "flex-1 flex justify-end overflow-hidden" }, zn = ["data-block", "data-guide"], Hn = ["data-block", "data-size"], Rn = ["data-block"], Wn = /* @__PURE__ */ ee({
2714
+ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn = ["data-block"], On = { class: "flex-1 flex justify-end overflow-hidden" }, zn = ["data-block", "data-guide"], Hn = ["data-block", "data-size"], Rn = ["data-block"], Wn = /* @__PURE__ */ ee({
2715
2715
  __name: "sheet",
2716
2716
  props: {
2717
2717
  item: {},
2718
2718
  layout: {}
2719
2719
  },
2720
2720
  setup(e) {
2721
- const t = e, a = Y(0), l = Y({}), n = Y(), c = Y(), o = Y([]), s = A(() => {
2722
- const h = Math.max((t.item.endAnswerLen || parseInt(t.item.style[y[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, N.value.length, 0);
2723
- return h ? Math.ceil(h / (a.value || h)) : 0;
2724
- }), r = A(() => parseInt(t.item.style[y[t.layout.mode].art_b])), d = A(() => ({
2725
- width: `${a.value * r.value}px`,
2726
- height: `${r.value}px`
2727
- })), p = A(() => ({
2728
- width: `${r.value}px`
2729
- })), N = A(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
2721
+ const t = e, a = q(0), l = q({}), i = q(), n = q(), o = q([]), s = A(() => {
2722
+ const p = Math.max((t.item.endAnswerLen || parseInt(t.item.style[y[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, B.value.length, 0);
2723
+ return p ? Math.ceil(p / (a.value || p)) : 0;
2724
+ }), c = A(() => parseInt(t.item.style[y[t.layout.mode].art_b])), d = A(() => ({
2725
+ width: `${a.value * c.value}px`,
2726
+ height: `${c.value}px`
2727
+ })), h = A(() => ({
2728
+ width: `${c.value}px`
2729
+ })), B = A(() => t.item.beforeGuide ? ` ${t.item.beforeGuide}`.substring(t.item.startAnswerLen, t.item.endAnswerLen || t.item.beforeGuide.length + 2) : "");
2730
2730
  return Xe(() => {
2731
2731
  Je(() => {
2732
- a.value = Math.floor(n.value.offsetWidth / r.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
2733
- if (!n.value)
2732
+ a.value = Math.floor(i.value.offsetWidth / c.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
2733
+ if (!i.value)
2734
2734
  return;
2735
- const $ = n.value.getBoundingClientRect(), z = c.value[0].getBoundingClientRect();
2735
+ const T = i.value.getBoundingClientRect(), z = n.value[0].getBoundingClientRect();
2736
2736
  l.value = {
2737
- left: `${z.left - $.left}px`,
2738
- top: `${z.top - $.top}px`
2737
+ left: `${z.left - T.left}px`,
2738
+ top: `${z.top - T.top}px`
2739
2739
  };
2740
2740
  }, 20);
2741
2741
  });
2742
- const h = parseInt(t.item.style[y[t.layout.mode].art_c]), F = t.item.style[y[t.layout.mode].art_e], Q = Math.floor(h / F), j = Math.round(Q / (t.item.style[y[t.layout.mode].art_d] || 1) - 0.01) * F;
2743
- o.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1, Q) - 1 || 0).keys()].map(($) => ($ + 1) * j).concat(h / F < 2 ? F : h).filter(($) => $);
2744
- }), (h, F) => (i(), u("div", {
2742
+ const p = parseInt(t.item.style[y[t.layout.mode].art_c]), F = t.item.style[y[t.layout.mode].art_e], O = Math.floor(p / F), j = Math.round(O / (t.item.style[y[t.layout.mode].art_d] || 1) - 0.01) * F;
2743
+ o.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1, O) - 1 || 0).keys()].map((T) => (T + 1) * j).concat(p / F < 2 ? F : p).filter((T) => T);
2744
+ }), (p, F) => (r(), u("div", {
2745
2745
  class: "w-full relative min-h-[10rem]",
2746
2746
  ref_key: "view",
2747
- ref: n,
2748
- "data-viewid": h.item.id
2747
+ ref: i,
2748
+ "data-viewid": p.item.id
2749
2749
  }, [
2750
- h.item.chunk ? D("", !0) : (i(), u("div", {
2750
+ p.item.chunk ? M("", !0) : (r(), u("div", {
2751
2751
  key: 0,
2752
2752
  class: "flex items-center mt-1 mb-4",
2753
2753
  "data-block": x(ke)
2754
2754
  }, [
2755
- it(h.$slots, "default"),
2755
+ rt(p.$slots, "default"),
2756
2756
  f("div", On, [
2757
2757
  X(tt, {
2758
- item: h.item,
2759
- layout: h.layout
2758
+ item: p.item,
2759
+ layout: p.layout
2760
2760
  }, null, 8, ["item", "layout"])
2761
2761
  ])
2762
2762
  ], 8, Bn)),
2763
- h.item.beforeArt && !h.item.startAnswerLen ? (i(), V(Ae, {
2763
+ p.item.beforeArt && !p.item.startAnswerLen ? (r(), V(Ae, {
2764
2764
  key: 1,
2765
- data: h.item.beforeArt,
2766
- "data-bart": h.item.id,
2765
+ data: p.item.beforeArt,
2766
+ "data-bart": p.item.id,
2767
2767
  class: "indent-[2em]"
2768
- }, null, 8, ["data", "data-bart"])) : D("", !0),
2769
- h.item.beforeGuide && !h.item.artBlock ? (i(), u("p", {
2768
+ }, null, 8, ["data", "data-bart"])) : M("", !0),
2769
+ p.item.beforeGuide && !p.item.artBlock ? (r(), u("p", {
2770
2770
  key: 2,
2771
2771
  "data-block": x(Ee),
2772
- "data-guide": h.item.id,
2773
- class: oe(["absolute", !h.item.startAnswerLen && "indent-[2em]"]),
2774
- style: q({ ...l.value, width: d.value.width, lineHeight: `${r.value + 7}px` })
2775
- }, J(h.item.beforeGuide), 15, zn)) : D("", !0),
2776
- (i(!0), u(P, null, Z(s.value, (Q, j) => (i(), u("p", {
2772
+ "data-guide": p.item.id,
2773
+ class: oe(["absolute", !p.item.startAnswerLen && "indent-[2em]"]),
2774
+ style: Q({ ...l.value, width: d.value.width, lineHeight: `${c.value + 7}px` })
2775
+ }, J(p.item.beforeGuide), 15, zn)) : M("", !0),
2776
+ (r(!0), u(P, null, Z(s.value, (O, j) => (r(), u("p", {
2777
2777
  ref_for: !0,
2778
2778
  ref_key: "line",
2779
- ref: c,
2780
- class: oe(["flex mx-auto mt-3 mb-1 relative red_sheet", h.item.artBlock ? "border divide-x divide-solid" : "border-b"]),
2779
+ ref: n,
2780
+ class: oe(["flex mx-auto mt-3 mb-1 relative red_sheet", p.item.artBlock ? "border divide-x divide-solid" : "border-b"]),
2781
2781
  "data-block": x(ke),
2782
- "data-size": h.item.startAnswerLen + (j + 1) * a.value,
2783
- style: q(d.value)
2782
+ "data-size": p.item.startAnswerLen + (j + 1) * a.value,
2783
+ style: Q(d.value)
2784
2784
  }, [
2785
- h.item.artBlock ? (i(!0), u(P, { key: 0 }, Z(a.value, ($, z) => (i(), u("span", {
2786
- class: oe([N.value[j * a.value + z] && "flex items-center justify-center"]),
2787
- style: q(p.value)
2788
- }, J(N.value[j * a.value + z]), 7))), 256)) : D("", !0),
2789
- (i(!0), u(P, null, Z(o.value, ($) => (i(), u(P, null, [
2790
- h.item.startAnswerLen + j * a.value < $ && h.item.startAnswerLen + (j + 1) * a.value >= $ ? (i(), u("span", {
2785
+ p.item.artBlock ? (r(!0), u(P, { key: 0 }, Z(a.value, (T, z) => (r(), u("span", {
2786
+ class: oe([B.value[j * a.value + z] && "flex items-center justify-center"]),
2787
+ style: Q(h.value)
2788
+ }, J(B.value[j * a.value + z]), 7))), 256)) : M("", !0),
2789
+ (r(!0), u(P, null, Z(o.value, (T) => (r(), u(P, null, [
2790
+ p.item.startAnswerLen + j * a.value < T && p.item.startAnswerLen + (j + 1) * a.value >= T ? (r(), u("span", {
2791
2791
  key: 0,
2792
2792
  class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
2793
- style: q({ left: `${($ - h.item.startAnswerLen) % a.value * r.value}px` }),
2793
+ style: Q({ left: `${(T - p.item.startAnswerLen) % a.value * c.value}px` }),
2794
2794
  "data-block": x(Ee)
2795
- }, J($), 13, Rn)) : D("", !0)
2795
+ }, J(T), 13, Rn)) : M("", !0)
2796
2796
  ], 64))), 256))
2797
2797
  ], 14, Hn))), 256)),
2798
- h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (i(), V(Ae, {
2798
+ p.item.afterArt && [-1, 0].includes(p.item.endAnswerLen) ? (r(), V(Ae, {
2799
2799
  key: 3,
2800
- data: h.item.afterArt,
2801
- "data-aart": h.item.id,
2800
+ data: p.item.afterArt,
2801
+ "data-aart": p.item.id,
2802
2802
  class: "mt-2 indent-[2em]"
2803
- }, null, 8, ["data", "data-aart"])) : D("", !0)
2803
+ }, null, 8, ["data", "data-aart"])) : M("", !0)
2804
2804
  ], 8, Nn));
2805
2805
  }
2806
2806
  }), Gn = ["data-block"], Yn = /* @__PURE__ */ ee({
@@ -2811,9 +2811,9 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2811
2811
  },
2812
2812
  emits: ["change"],
2813
2813
  setup(e, { emit: t }) {
2814
- return (a, l) => (i(), u("div", {
2814
+ return (a, l) => (r(), u("div", {
2815
2815
  class: "px-2 py-3 w-full border border-dashed rounded-lg",
2816
- "data-block": x(ut)
2816
+ "data-block": x(ht)
2817
2817
  }, [
2818
2818
  X(Ae, {
2819
2819
  "data-content": a.item.id,
@@ -2832,17 +2832,17 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2832
2832
  width: {}
2833
2833
  },
2834
2834
  setup(e) {
2835
- const t = e, a = A(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((c) => c.split(".")).map((c) => t.isFull ? c : c.map((o, s) => s === c.length - 1 ? o : ""))), l = A(() => t.width ? `${t.width}em` : "");
2836
- return (n, c) => (i(), u("span", {
2837
- class: oe(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", n.isFull && "justify-end"]),
2838
- style: q({ width: l.value }),
2835
+ const t = e, a = A(() => (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((o, s) => s === n.length - 1 ? o : ""))), l = A(() => t.width ? `${t.width}em` : "");
2836
+ return (i, n) => (r(), u("span", {
2837
+ class: oe(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", i.isFull && "justify-end"]),
2838
+ style: Q({ width: l.value }),
2839
2839
  "data-block": x(Ee)
2840
2840
  }, [
2841
- (i(!0), u(P, null, Z(a.value, (o, s) => (i(), u(P, null, [
2842
- s ? (i(), u("span", Qn, " - ")) : D("", !0),
2843
- o[0] ? (i(), u("span", Un, J(o[0]), 1)) : D("", !0),
2844
- o[1] ? (i(), u("span", jn, "(" + J(o[1]) + ")", 1)) : D("", !0),
2845
- o[2] ? (i(), u("span", Kn, J(o[2]), 1)) : D("", !0)
2841
+ (r(!0), u(P, null, Z(a.value, (o, s) => (r(), u(P, null, [
2842
+ s ? (r(), u("span", Qn, " - ")) : M("", !0),
2843
+ o[0] ? (r(), u("span", Un, J(o[0]), 1)) : M("", !0),
2844
+ o[1] ? (r(), u("span", jn, "(" + J(o[1]) + ")", 1)) : M("", !0),
2845
+ o[2] ? (r(), u("span", Kn, J(o[2]), 1)) : M("", !0)
2846
2846
  ], 64))), 256))
2847
2847
  ], 14, qn));
2848
2848
  }
@@ -2894,7 +2894,7 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2894
2894
  dbclick: null
2895
2895
  },
2896
2896
  setup(e, { emit: t }) {
2897
- const a = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Et), n = Y(""), c = A(() => {
2897
+ const a = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Et), i = q(""), n = A(() => {
2898
2898
  const _ = a ? {
2899
2899
  choiceSheet: [m.choice, m.choice_english, m.choice_multiple, m.cloze],
2900
2900
  fillSheet: [m.fill, m.fill_english]
@@ -2902,7 +2902,7 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2902
2902
  choice: [m.choice, m.choice_english, m.choice_multiple, m.cloze],
2903
2903
  fill: [m.fill, m.fill_english]
2904
2904
  };
2905
- return Object.keys(m).reduce((C, w) => ({ ...C, [m[w]]: Object.keys(_).find((R) => _[R].includes(m[w])) || `${w}${a}` }), {});
2905
+ return Object.keys(m).reduce((C, w) => ({ ...C, [m[w]]: Object.keys(_).find((G) => _[G].includes(m[w])) || `${w}${a}` }), {});
2906
2906
  }), o = A(() => [ve.one_choice, ve.another_choice].includes(e.data.problemType)), s = A(() => {
2907
2907
  let _ = [];
2908
2908
  return e.data.children.forEach((C) => {
@@ -2921,20 +2921,20 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2921
2921
  }), _ = _.map((C) => {
2922
2922
  var w;
2923
2923
  if (C.type === "polymer" && C.styleInfo[y[e.layout.mode].choice_a] === L.choice_3) {
2924
- const R = Math.floor(e.width / (Math.max(...C.children.map((B) => B.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((w = C.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 20));
2925
- if (C.children.length > R * 5) {
2926
- const B = C.children.length % 4 > 4 ? 5 : 4;
2927
- return [...Array(Math.ceil(C.children.length / (R * B))).keys()].map((ye, pe) => ({
2924
+ const G = Math.floor(e.width / (Math.max(...C.children.map((H) => H.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((w = C.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 20));
2925
+ if (C.children.length > G * 5) {
2926
+ const H = C.children.length % 4 > 4 ? 5 : 4;
2927
+ return [...Array(Math.ceil(C.children.length / (G * H))).keys()].map((ye, pe) => ({
2928
2928
  ...C,
2929
2929
  groupIndex: pe,
2930
- children: C.children.slice(pe * R * B, (pe + 1) * R * B)
2930
+ children: C.children.slice(pe * G * H, (pe + 1) * G * H)
2931
2931
  }));
2932
2932
  } else
2933
2933
  return C;
2934
2934
  } else
2935
2935
  return C;
2936
2936
  }).flat(), _;
2937
- }), r = A(() => {
2937
+ }), c = A(() => {
2938
2938
  let _ = {};
2939
2939
  return e.data.children.forEach((C) => {
2940
2940
  C.polymerId && (_[C.polymerId] || (_[C.polymerId] = []), _[C.polymerId][C.polymerOrder || 0] = C.id);
@@ -2944,7 +2944,7 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2944
2944
  const _ = (e.data.rawChildren || e.data.children).map((C) => C.subStr.length);
2945
2945
  return { [`h${e.data.id}`]: Math.max(..._) };
2946
2946
  } else
2947
- return Object.keys(r.value).map((_) => {
2947
+ return Object.keys(c.value).map((_) => {
2948
2948
  const C = (e.data.rawChildren || e.data.children).filter((w) => w.polymerId === _).map((w) => w.subStr.length);
2949
2949
  return {
2950
2950
  [_]: Math.max(...C)
@@ -2953,13 +2953,13 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2953
2953
  });
2954
2954
  return {
2955
2955
  Gps_cls: k,
2956
- hoverActive: n,
2956
+ hoverActive: i,
2957
2957
  ModuleTag: a,
2958
2958
  ChoiceType: o,
2959
2959
  GroupData: s,
2960
- PolymerData: r,
2960
+ PolymerData: c,
2961
2961
  SubWidthInfo: d,
2962
- ComputName: (_) => _.problemType ? c.value[_.problemType] : "notArea",
2962
+ ComputName: (_) => _.problemType ? n.value[_.problemType] : "notArea",
2963
2963
  ComputAbs: (_) => a && [m.slove, m.art].includes(_.problemType),
2964
2964
  ComputPolymerCls: (_) => [m.decide].includes(_.problemType) ? [] : _.styleInfo[y[e.layout.mode].choice_a] === L.choice_2 ? ["port_view"] : ["grid", _.groupIndex && "mt-8"],
2965
2965
  ComputPolymerStyle: (_) => {
@@ -2968,23 +2968,23 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2968
2968
  const w = Math.max(...(_.rawChildren || _.children).map((fe) => {
2969
2969
  var ue;
2970
2970
  return ((ue = fe.optList) == null ? void 0 : ue.length) || 0;
2971
- })) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((pe = e.data.children[0]) == null ? void 0 : pe.polymerId) || ""]) * 14 + 20, R = Math.floor(e.width / (Math.max(...(_.rawChildren || _.children).map((fe) => {
2971
+ })) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((pe = e.data.children[0]) == null ? void 0 : pe.polymerId) || ""]) * 14 + 20, G = Math.floor(e.width / (Math.max(...(_.rawChildren || _.children).map((fe) => {
2972
2972
  var ue;
2973
2973
  return ((ue = fe.optList) == null ? void 0 : ue.length) || 0;
2974
- })) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((ie = _.children[0]) == null ? void 0 : ie.polymerId) || ""]) * 14 + 20)), B = Math.min(R, e.data.style[y[e.layout.mode].choice_d] || 10), ye = (e.width - w * B) / (B - 1) - 10;
2974
+ })) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((ie = _.children[0]) == null ? void 0 : ie.polymerId) || ""]) * 14 + 20)), H = Math.min(G, e.data.style[y[e.layout.mode].choice_d] || 10), ye = (e.width - w * H) / (H - 1) - 10;
2975
2975
  switch (_.styleInfo[y[e.layout.mode].choice_a]) {
2976
2976
  case L.choice_1:
2977
2977
  _.styleInfo[y[e.layout.mode].choice_b] === L.portrait && (C = {
2978
2978
  "grid-auto-flow": e.noPortrait ? "row" : "column",
2979
- "grid-template-columns": `repeat(${B}, 1fr)`,
2980
- "grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`,
2979
+ "grid-template-columns": `repeat(${H}, 1fr)`,
2980
+ "grid-template-rows": `repeat(${Math.ceil(_.children.length / H)}, 1fr)`,
2981
2981
  "column-gap": `${ye}px`
2982
2982
  });
2983
2983
  break;
2984
2984
  case L.choice_3:
2985
2985
  C = {
2986
- "grid-template-columns": `repeat(${B}, 1fr)`,
2987
- "grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`
2986
+ "grid-template-columns": `repeat(${H}, 1fr)`,
2987
+ "grid-template-rows": `repeat(${Math.ceil(_.children.length / H)}, 1fr)`
2988
2988
  }, _.styleInfo[y[e.layout.mode].choice_b] === L.portrait && (C = {
2989
2989
  ...C,
2990
2990
  "grid-auto-flow": e.noPortrait ? "row" : "column",
@@ -2997,8 +2997,8 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
2997
2997
  ComputPolymerItemStyle: (_, C) => {
2998
2998
  var w;
2999
2999
  if (l.includes(_.problemType) && _.style[y[e.layout.mode].choice_a] === L.choice_2) {
3000
- const R = Math.max(Ie[e.layout.fillSize].value + 4, (d.value[`h${e.data.id}`] || d.value[((w = _.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 8), B = Math.floor(e.width / (R * _.style[y[e.layout.mode].choice_c] + 10)), ye = (e.width - R * B * _.style[y[e.layout.mode].choice_c]) / (B - 1 || 1);
3001
- if (!((C + 1) % _.style[y[e.layout.mode].choice_c]) && ((C + 1) % (_.style[y[e.layout.mode].choice_c] * B) || B < 2))
3000
+ const G = Math.max(Ie[e.layout.fillSize].value + 4, (d.value[`h${e.data.id}`] || d.value[((w = _.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 8), H = Math.floor(e.width / (G * _.style[y[e.layout.mode].choice_c] + 10)), ye = (e.width - G * H * _.style[y[e.layout.mode].choice_c]) / (H - 1 || 1);
3001
+ if (!((C + 1) % _.style[y[e.layout.mode].choice_c]) && ((C + 1) % (_.style[y[e.layout.mode].choice_c] * H) || H < 2))
3002
3002
  return {
3003
3003
  "margin-right": `${ye}px`
3004
3004
  };
@@ -3006,20 +3006,20 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
3006
3006
  return {};
3007
3007
  },
3008
3008
  ComputStyle: (_, C) => {
3009
- var R;
3009
+ var G;
3010
3010
  let w = {};
3011
3011
  if (!a)
3012
3012
  return w;
3013
3013
  if (l.includes(_.problemType)) {
3014
- let B = {};
3015
- if (Object.values(rt).includes(e.data.problemType)) {
3016
- const ye = Math.max(...(e.data.rawChildren || e.data.children).map((ie) => ie.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((R = e.data.children[0]) == null ? void 0 : R.polymerId) || ""]) * 14 + 20, pe = Math.min(Math.floor(e.width / ye), e.data.style[y[e.layout.mode].choice_d] || 10);
3017
- B = C % pe ? { minWidth: `${ye}px`, marginLeft: `${(e.width - ye * pe) / (pe - 1) - 5}px` } : { minWidth: `${ye}px` };
3014
+ let H = {};
3015
+ if (Object.values(ct).includes(e.data.problemType)) {
3016
+ const ye = Math.max(...(e.data.rawChildren || e.data.children).map((ie) => ie.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (d.value[`h${e.data.id}`] || d.value[((G = e.data.children[0]) == null ? void 0 : G.polymerId) || ""]) * 14 + 20, pe = Math.min(Math.floor(e.width / ye), e.data.style[y[e.layout.mode].choice_d] || 10);
3017
+ H = C % pe ? { minWidth: `${ye}px`, marginLeft: `${(e.width - ye * pe) / (pe - 1) - 5}px` } : { minWidth: `${ye}px` };
3018
3018
  }
3019
3019
  w = {
3020
3020
  ...w,
3021
3021
  display: "inline-flex",
3022
- ...B
3022
+ ...H
3023
3023
  };
3024
3024
  } else
3025
3025
  [m.fill, m.fill_english].includes(_.problemType) && (w = {
@@ -3044,10 +3044,10 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
3044
3044
  }
3045
3045
  },
3046
3046
  handleHoverIn: (_) => {
3047
- n.value = _.rootProblemId;
3047
+ i.value = _.rootProblemId;
3048
3048
  },
3049
3049
  handleHoverOut: (_) => {
3050
- n.value = "";
3050
+ i.value = "";
3051
3051
  },
3052
3052
  handleClick: (_, C) => {
3053
3053
  e.data.isPolymer || (_.stopPropagation(), t("click", C));
@@ -3058,81 +3058,81 @@ const An = /* @__PURE__ */ de(Mn, [["render", Dn]]), Nn = ["data-viewid"], Bn =
3058
3058
  };
3059
3059
  }
3060
3060
  }, Jn = ["data-block"], Zn = ["data-tag", "data-block", "data-xine", "onMouseenter", "onMouseleave"], es = ["data-tag", "data-block", "data-xine", "onClick", "onDblclick", "onMouseenter", "onMouseleave"], ts = { key: 0 };
3061
- function os(e, t, a, l, n, c) {
3061
+ function os(e, t, a, l, i, n) {
3062
3062
  const o = Rt("Sub");
3063
- return i(!0), u(P, null, Z(l.GroupData, (s) => (i(), u(P, null, [
3064
- s.type === "polymer" ? (i(), u("div", {
3063
+ return r(!0), u(P, null, Z(l.GroupData, (s) => (r(), u(P, null, [
3064
+ s.type === "polymer" ? (r(), u("div", {
3065
3065
  key: 0,
3066
3066
  "data-block": l.ComputBlock(s),
3067
3067
  class: oe([...l.ComputPolymerCls(s)]),
3068
- style: q(l.ComputPolymerStyle(s))
3068
+ style: Q(l.ComputPolymerStyle(s))
3069
3069
  }, [
3070
- (i(!0), u(P, null, Z(s.children, (r, d) => {
3071
- var p;
3072
- return i(), u("div", {
3073
- 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 === r.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((p = a.target.value) == null ? void 0 : p.rootProblemId) === r.rootProblemId ? "border-current" : "border-transparent"]),
3074
- style: q(l.ComputPolymerItemStyle(r, d)),
3075
- "data-tag": r.__tag__,
3076
- "data-block": l.ComputBlock(r),
3077
- "data-xine": l.Gps_cls.item + r._sub,
3078
- onMouseenter: (N) => l.handleHoverIn(r),
3079
- onMouseleave: (N) => l.handleHoverOut(r)
3070
+ (r(!0), u(P, null, Z(s.children, (c, d) => {
3071
+ var h;
3072
+ return r(), u("div", {
3073
+ 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 === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((h = a.target.value) == null ? void 0 : h.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
3074
+ style: Q(l.ComputPolymerItemStyle(c, d)),
3075
+ "data-tag": c.__tag__,
3076
+ "data-block": l.ComputBlock(c),
3077
+ "data-xine": l.Gps_cls.item + c._sub,
3078
+ onMouseenter: (B) => l.handleHoverIn(c),
3079
+ onMouseleave: (B) => l.handleHoverOut(c)
3080
3080
  }, [
3081
- r.problemType ? (i(), V(o, {
3081
+ c.problemType ? (r(), V(o, {
3082
3082
  key: 0,
3083
- sub: r.sub,
3083
+ sub: c.sub,
3084
3084
  isFull: !!l.ModuleTag,
3085
- width: l.SubWidthInfo[`h${r.headLineId}`] || l.SubWidthInfo[r.polymerId || ""] || 0,
3086
- class: oe(["sub_item", l.ComputAbs(r) && "absolute left-0 top-3 left_sub"])
3087
- }, null, 8, ["sub", "isFull", "width", "class"])) : D("", !0),
3088
- (i(), V(yt(l.ComputName(r)), _t(ft({ item: r, layout: a.layout, ...l.ComputPayload(r, d) })), null, 16))
3085
+ width: l.SubWidthInfo[`h${c.headLineId}`] || l.SubWidthInfo[c.polymerId || ""] || 0,
3086
+ class: oe(["sub_item", l.ComputAbs(c) && "absolute left-0 top-3 left_sub"])
3087
+ }, null, 8, ["sub", "isFull", "width", "class"])) : M("", !0),
3088
+ (r(), V(_t(l.ComputName(c)), ft(gt({ item: c, layout: a.layout, ...l.ComputPayload(c, d) })), null, 16))
3089
3089
  ], 46, Zn);
3090
3090
  }), 256))
3091
- ], 14, Jn)) : (i(!0), u(P, { key: 1 }, Z(s.children, (r, d) => {
3092
- var p;
3093
- return i(), u(P, null, [
3091
+ ], 14, Jn)) : (r(!0), u(P, { key: 1 }, Z(s.children, (c, d) => {
3092
+ var h;
3093
+ return r(), u(P, null, [
3094
3094
  f("div", {
3095
- 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 === r.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((p = a.target.value) == null ? void 0 : p.rootProblemId) === r.rootProblemId ? "border-current" : "border-transparent"]),
3096
- style: q(l.ComputStyle(r, d)),
3097
- "data-tag": r.__tag__,
3098
- "data-block": l.ComputBlock(r),
3099
- "data-xine": l.Gps_cls.item + r._sub,
3100
- onClick: (N) => l.handleClick(N, r),
3101
- onDblclick: (N) => l.handleDblClick(N, r),
3102
- onMouseenter: (N) => l.handleHoverIn(r),
3103
- onMouseleave: (N) => l.handleHoverOut(r)
3095
+ 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 === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((h = a.target.value) == null ? void 0 : h.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
3096
+ style: Q(l.ComputStyle(c, d)),
3097
+ "data-tag": c.__tag__,
3098
+ "data-block": l.ComputBlock(c),
3099
+ "data-xine": l.Gps_cls.item + c._sub,
3100
+ onClick: (B) => l.handleClick(B, c),
3101
+ onDblclick: (B) => l.handleDblClick(B, c),
3102
+ onMouseenter: (B) => l.handleHoverIn(c),
3103
+ onMouseleave: (B) => l.handleHoverOut(c)
3104
3104
  }, [
3105
- r.problemType && !l.ComputAbs(r) ? (i(), V(o, {
3105
+ c.problemType && !l.ComputAbs(c) ? (r(), V(o, {
3106
3106
  key: 0,
3107
- sub: r.sub,
3107
+ sub: c.sub,
3108
3108
  isFull: !!l.ModuleTag,
3109
- width: l.SubWidthInfo[`h${r.headLineId}`] || l.SubWidthInfo[r.polymerId || ""] || 0
3110
- }, null, 8, ["sub", "isFull", "width"])) : D("", !0),
3111
- (i(), V(yt(l.ComputName(r)), _t(ft({ item: r, layout: a.layout, ...l.ComputPayload(r, d) })), {
3109
+ width: l.SubWidthInfo[`h${c.headLineId}`] || l.SubWidthInfo[c.polymerId || ""] || 0
3110
+ }, null, 8, ["sub", "isFull", "width"])) : M("", !0),
3111
+ (r(), V(_t(l.ComputName(c)), ft(gt({ item: c, layout: a.layout, ...l.ComputPayload(c, d) })), {
3112
3112
  default: Ft(() => [
3113
3113
  X(o, {
3114
- sub: r.sub,
3114
+ sub: c.sub,
3115
3115
  isFull: !!l.ModuleTag,
3116
- width: l.SubWidthInfo[`h${r.headLineId}`] || l.SubWidthInfo[r.polymerId || ""] || 0
3116
+ width: l.SubWidthInfo[`h${c.headLineId}`] || l.SubWidthInfo[c.polymerId || ""] || 0
3117
3117
  }, null, 8, ["sub", "isFull", "width"])
3118
3118
  ]),
3119
3119
  _: 2
3120
3120
  }, 1040))
3121
3121
  ], 46, es),
3122
- r.polymerId && l.PolymerData[r.polymerId][l.PolymerData[r.polymerId].length - 1] === r.id ? (i(), u("div", ts)) : D("", !0)
3122
+ c.polymerId && l.PolymerData[c.polymerId][l.PolymerData[c.polymerId].length - 1] === c.id ? (r(), u("div", ts)) : M("", !0)
3123
3123
  ], 64);
3124
3124
  }), 256))
3125
3125
  ], 64))), 256);
3126
3126
  }
3127
- const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as = 10, O = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, se = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Te = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), ls = (e, t, a) => {
3128
- const l = O(se(`${k.item}${e._sub}`, t));
3127
+ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as = 10, R = (e) => (e == null ? void 0 : e.getBoundingClientRect()) || null, se = (e, t) => (t || document.body.querySelector(".__layout__")).querySelector(`*[data-xine="${e}"]`), Te = (e, t) => Array.from((t || document.body.querySelector(".__layout__")).querySelectorAll(`*[data-xine="${e}"]`) || []), ls = (e, t, a) => {
3128
+ const l = R(se(`${k.item}${e._sub}`, t));
3129
3129
  return !(l.top >= a.top + a.height || l.top + l.height < a.top);
3130
3130
  }, ce = (e, t, a = !1) => !e || !t ? null : {
3131
3131
  x: e.x - t.x,
3132
3132
  y: e.y - t.y + (a ? 1 : 0),
3133
3133
  width: e.width,
3134
3134
  height: e.height - (a ? 2 : 0)
3135
- }, Me = (e, t, a, l = !1, n = !1) => {
3135
+ }, De = (e, t, a, l = !1, i = !1) => {
3136
3136
  if (!e)
3137
3137
  return {
3138
3138
  x: 0,
@@ -3140,11 +3140,11 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3140
3140
  width: 0,
3141
3141
  height: 0
3142
3142
  };
3143
- const c = O(e), o = Math.min(t.height, c.y < t.y ? c.y + c.height - t.y : c.y + c.height > t.y + t.height || n ? t.y + t.height - c.y : c.height);
3143
+ const n = R(e), o = Math.min(t.height, n.y < t.y ? n.y + n.height - t.y : n.y + n.height > t.y + t.height || i ? t.y + t.height - n.y : n.height);
3144
3144
  return o > 5 ? {
3145
- x: c.x - a.x,
3146
- y: Math.max(c.y, t.y) + (l ? 1 : 0) - a.y,
3147
- width: c.width,
3145
+ x: n.x - a.x,
3146
+ y: Math.max(n.y, t.y) + (l ? 1 : 0) - a.y,
3147
+ width: n.width,
3148
3148
  height: o - (l ? 2 : 0)
3149
3149
  } : null;
3150
3150
  }, ne = (e, t = !1) => {
@@ -3163,8 +3163,8 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3163
3163
  return null;
3164
3164
  const l = {
3165
3165
  // area: GetPosition(el, config.pageDom[0]),
3166
- area: ce(O(a), O(e.pageDom[0])),
3167
- list: Te(k.en_num_group, a).map((n) => Te(k.en_num_item, n).map((c) => ce(O(c), O(e.pageDom[0]), !0)))
3166
+ area: ce(R(a), R(e.pageDom[0])),
3167
+ list: Te(k.en_num_group, a).map((i) => Te(k.en_num_item, i).map((n) => ce(R(n), R(e.pageDom[0]), !0)))
3168
3168
  };
3169
3169
  return {
3170
3170
  choiceGridSequenceNOList: [...Array(10).keys()],
@@ -3174,42 +3174,42 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3174
3174
  choiceQuestionPosition: ne(l.area),
3175
3175
  choiceQuestionCount: l.list.length,
3176
3176
  xColOffset: Math.round((l.list[0][1].x - l.list[0][0].x - l.list[0][0].width) * Fe),
3177
- questionNOList: [...Array(l.list.length).keys()].map((n, c) => c + 1)
3177
+ questionNOList: [...Array(l.list.length).keys()].map((i, n) => n + 1)
3178
3178
  };
3179
3179
  }, ns = (e) => ({
3180
3180
  cardSizeType: mo[e.layout.paper],
3181
3181
  cardColumnCount: e.layout.column,
3182
3182
  cardColumnCount2: e.layout.backColumn,
3183
3183
  doubleCard: !0,
3184
- paperWidth: Math.round(b[e.layout.paper].width * Fe),
3185
- paperHeight: Math.round(b[e.layout.paper].height * Fe)
3184
+ paperWidth: Math.round(g[e.layout.paper].width * Fe),
3185
+ paperHeight: Math.round(g[e.layout.paper].height * Fe)
3186
3186
  }), ss = (e) => {
3187
- const t = O(e.pageDom[0]), a = O(e.pageDom[1]), l = (n) => {
3187
+ const t = R(e.pageDom[0]), a = R(e.pageDom[1]), l = (i) => {
3188
3188
  var o;
3189
- const c = e.layout.backColumn > 2 ? {
3190
- trdLeftTopPos: ne(ce(O(Te(`${k.point}t`, e.pageDom[n])[1]), O(e.pageDom[n]))),
3191
- trdLeftBottomPos: ne(ce(O(Te(`${k.point}b`, e.pageDom[n])[1]), O(e.pageDom[n])))
3189
+ const n = e.layout.backColumn > 2 ? {
3190
+ trdLeftTopPos: ne(ce(R(Te(`${k.point}t`, e.pageDom[i])[1]), R(e.pageDom[i]))),
3191
+ trdLeftBottomPos: ne(ce(R(Te(`${k.point}b`, e.pageDom[i])[1]), R(e.pageDom[i])))
3192
3192
  } : {};
3193
3193
  return (o = Oe.find((s) => s.code === e.layout.paper)) != null && o.isMultCol ? {
3194
- secLeftTopPos: ne(ce(O(Te(`${k.point}t`, e.pageDom[n])[0]), O(e.pageDom[n]))),
3195
- secLeftBottomPos: ne(ce(O(Te(`${k.point}b`, e.pageDom[n])[0]), O(e.pageDom[n]))),
3196
- ...c
3194
+ secLeftTopPos: ne(ce(R(Te(`${k.point}t`, e.pageDom[i])[0]), R(e.pageDom[i]))),
3195
+ secLeftBottomPos: ne(ce(R(Te(`${k.point}b`, e.pageDom[i])[0]), R(e.pageDom[i]))),
3196
+ ...n
3197
3197
  } : null;
3198
3198
  };
3199
3199
  return {
3200
3200
  // 取第一/二页定位点信息
3201
- leftTopPos: ne(ce(O(se(`${k.point}lt`, e.pageDom[0])), t)),
3202
- rightTopPos: ne(ce(O(se(`${k.point}rt`, e.pageDom[0])), t)),
3203
- leftBottomPos: ne(ce(O(se(`${k.point}lb`, e.pageDom[0])), t)),
3204
- rightBottomPos: ne(ce(O(se(`${k.point}rb`, e.pageDom[0])), t)),
3201
+ leftTopPos: ne(ce(R(se(`${k.point}lt`, e.pageDom[0])), t)),
3202
+ rightTopPos: ne(ce(R(se(`${k.point}rt`, e.pageDom[0])), t)),
3203
+ leftBottomPos: ne(ce(R(se(`${k.point}lb`, e.pageDom[0])), t)),
3204
+ rightBottomPos: ne(ce(R(se(`${k.point}rb`, e.pageDom[0])), t)),
3205
3205
  // waistAuxAnchorInfo: getAuxInfo(0, true),
3206
3206
  verticalAuxInfo: [
3207
- ne(ce(O(se(`${k.point}l`, e.pageDom[0])), t)),
3208
- ne(ce(O(se(`${k.point}r`, e.pageDom[0])), t))
3207
+ ne(ce(R(se(`${k.point}l`, e.pageDom[0])), t)),
3208
+ ne(ce(R(se(`${k.point}r`, e.pageDom[0])), t))
3209
3209
  ],
3210
3210
  verticalAuxInfo2: e.bindWidth && e.pageDom[1] ? [
3211
- ne(ce(O(se(`${k.point}l`, e.pageDom[1])), a)),
3212
- ne(ce(O(se(`${k.point}r`, e.pageDom[1])), a))
3211
+ ne(ce(R(se(`${k.point}l`, e.pageDom[1])), a)),
3212
+ ne(ce(R(se(`${k.point}r`, e.pageDom[1])), a))
3213
3213
  ] : null,
3214
3214
  auxAnchorInfo: l(0),
3215
3215
  auxAnchorInfo2: e.pageDom[1] ? l(1) : null
@@ -3220,8 +3220,8 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3220
3220
  const l = se(`${k.page_item}0`, e.pageDom[1]).getBoundingClientRect();
3221
3221
  t = se(`${k.page_item}1`, e.pageDom[1]).getBoundingClientRect().left - l.left - l.width;
3222
3222
  }
3223
- let a = ce(O(se(k.page, e.pageDom[e.pageTotal - 1])), O(e.pageDom[e.pageTotal - 1]));
3224
- return a = { ...a, y: a.y % (b[e.layout.paper].height + (e.pageMargin || 0)) }, [
3223
+ let a = ce(R(se(k.page, e.pageDom[e.pageTotal - 1])), R(e.pageDom[e.pageTotal - 1]));
3224
+ return a = { ...a, y: a.y % (g[e.layout.paper].height + (e.pageMargin || 0)) }, [
3225
3225
  {
3226
3226
  // 固定值
3227
3227
  choiceQuestionCount: 1,
@@ -3230,9 +3230,9 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3230
3230
  // 页码区块位置,部分需动态获取 x y width height
3231
3231
  choiceQuestionPosition: ne(a, !0),
3232
3232
  // 页码点区块第一个页码点的位置,部分需动态获取
3233
- firstChoicePosition: ne(ce(O(se(`${k.page_item}0`, e.pageDom[e.pageTotal - 1])), O(e.pageDom[e.pageTotal - 1]))),
3233
+ firstChoicePosition: ne(ce(R(se(`${k.page_item}0`, e.pageDom[e.pageTotal - 1])), R(e.pageDom[e.pageTotal - 1]))),
3234
3234
  // 页码点最大值,展开为数组
3235
- choiceGridSequenceNOList: dt.filter((l, n) => n < e.pageTotal),
3235
+ choiceGridSequenceNOList: ut.filter((l, i) => i < e.pageTotal),
3236
3236
  // 排列方向
3237
3237
  crosswised: !0,
3238
3238
  // 两个页码点之间的间距,纵排此项赋值
@@ -3249,9 +3249,9 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3249
3249
  // 固定值
3250
3250
  questionNOList: [1],
3251
3251
  // 方框业务坐标
3252
- choiceQuestionPosition: ne(ce(O(t), O(e.pageDom[0])), !0),
3252
+ choiceQuestionPosition: ne(ce(R(t), R(e.pageDom[0])), !0),
3253
3253
  // 数据坐标
3254
- firstChoicePosition: ne(ce(O(t), O(e.pageDom[0]))),
3254
+ firstChoicePosition: ne(ce(R(t), R(e.pageDom[0]))),
3255
3255
  // 固定值
3256
3256
  choiceGridSequenceNOList: [
3257
3257
  "true"
@@ -3262,7 +3262,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3262
3262
  xColOffset: 0
3263
3263
  } : null;
3264
3264
  }, cs = (e) => {
3265
- let t = ce(O(se(k.en_code, e.pageDom[0])), O(e.pageDom[0]));
3265
+ let t = ce(R(se(k.en_code, e.pageDom[0])), R(e.pageDom[0]));
3266
3266
  return ne(t);
3267
3267
  }, ds = (e) => {
3268
3268
  const t = se(k.write_view, e.pageDom[0]);
@@ -3272,28 +3272,28 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3272
3272
  return {
3273
3273
  id: "0",
3274
3274
  problemType: m.slove,
3275
- position: ce(O(t), O(e.pageDom[0])),
3276
- scoreList: a.map((l, n) => ({
3277
- position: ce(O(a[n]), O(e.pageDom[0])),
3275
+ position: ce(R(t), R(e.pageDom[0])),
3276
+ scoreList: a.map((l, i) => ({
3277
+ position: ce(R(a[i]), R(e.pageDom[0])),
3278
3278
  itemPosition: {
3279
- width: a[n].offsetWidth
3279
+ width: a[i].offsetWidth
3280
3280
  },
3281
- score: Math.abs(parseFloat(a[n].innerText))
3281
+ score: Math.abs(parseFloat(a[i].innerText))
3282
3282
  }))
3283
3283
  };
3284
3284
  }, us = (e, t) => {
3285
- const a = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l = as + Bt, n = (c) => parseFloat(c.toFixed(2));
3286
- return t.flat().filter((c) => a.includes(c.problemType) && c.colIndex < 2).map((c) => {
3287
- switch (c.problemType) {
3285
+ const a = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l = as + Bt, i = (n) => parseFloat(n.toFixed(2));
3286
+ return t.flat().filter((n) => a.includes(n.problemType) && n.colIndex < 2).map((n) => {
3287
+ switch (n.problemType) {
3288
3288
  case m.fill:
3289
3289
  case m.fill_english:
3290
- return e.layout.notHandReadFlag && c.isHiddenContent ? [] : c.children.map((o) => {
3290
+ return e.layout.notHandReadFlag && n.isHiddenContent ? [] : n.children.map((o) => {
3291
3291
  const s = o.scorePosition;
3292
3292
  return {
3293
3293
  sub: o.id,
3294
3294
  position: {
3295
- x: n(s.x - o.position.x),
3296
- y: n(s.y - o.position.y) + l * (c.colIndex - 1),
3295
+ x: i(s.x - o.position.x),
3296
+ y: i(s.y - o.position.y) + l * (n.colIndex - 1),
3297
3297
  width: s.width,
3298
3298
  height: s.height
3299
3299
  }
@@ -3302,28 +3302,28 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3302
3302
  case m.slove:
3303
3303
  case m.art:
3304
3304
  return e.notHandReadFlag ? [] : [{
3305
- sub: c.id,
3305
+ sub: n.id,
3306
3306
  position: {
3307
- x: n(c.scoreList[0].position.x - c.position.x),
3308
- y: n(c.scoreList[0].position.y - c.position.y) + l * (c.colIndex - 1),
3309
- width: c.scoreList.map((o) => o.position.width).reduce((o, s) => o + s, 0),
3310
- height: c.scoreList[0].position.height
3307
+ x: i(n.scoreList[0].position.x - n.position.x),
3308
+ y: i(n.scoreList[0].position.y - n.position.y) + l * (n.colIndex - 1),
3309
+ width: n.scoreList.map((o) => o.position.width).reduce((o, s) => o + s, 0),
3310
+ height: n.scoreList[0].position.height
3311
3311
  }
3312
3312
  }];
3313
3313
  case m.mix:
3314
- return e.notHandReadFlag && c.isHiddenContent ? [] : (c.children || []).filter((o) => [m.fill, m.fill_english, m.easy_slove].includes(o.problemType)).map((o) => [m.easy_slove].includes(o.problemType) ? {
3314
+ return e.notHandReadFlag && n.isHiddenContent ? [] : (n.children || []).filter((o) => [m.fill, m.fill_english, m.easy_slove].includes(o.problemType)).map((o) => [m.easy_slove].includes(o.problemType) ? {
3315
3315
  sub: o.id,
3316
3316
  position: {
3317
- x: n(o.scoreList[0].position.x - (o.isHiddenContent ? o.position.x : c.position.x)),
3318
- y: n(o.scoreList[0].position.y - (o.isHiddenContent ? o.position.y : c.position.y)) + l * (c.colIndex - 1),
3319
- width: o.scoreList.map((s) => s.position.width).reduce((s, r) => s + r, 0),
3317
+ x: i(o.scoreList[0].position.x - (o.isHiddenContent ? o.position.x : n.position.x)),
3318
+ y: i(o.scoreList[0].position.y - (o.isHiddenContent ? o.position.y : n.position.y)) + l * (n.colIndex - 1),
3319
+ width: o.scoreList.map((s) => s.position.width).reduce((s, c) => s + c, 0),
3320
3320
  height: o.position.height
3321
3321
  }
3322
3322
  } : {
3323
3323
  sub: o.id,
3324
3324
  position: {
3325
- x: n(o.scorePosition.x - (o.isHiddenContent ? o.rawPosition.x : c.position.x)),
3326
- y: n(o.scorePosition.y - (o.isHiddenContent ? o.rawPosition.y : c.position.y)) + l * (c.colIndex - 1),
3325
+ x: i(o.scorePosition.x - (o.isHiddenContent ? o.rawPosition.x : n.position.x)),
3326
+ y: i(o.scorePosition.y - (o.isHiddenContent ? o.rawPosition.y : n.position.y)) + l * (n.colIndex - 1),
3327
3327
  width: o.scorePosition.width,
3328
3328
  height: o.scorePosition.height
3329
3329
  }
@@ -3332,61 +3332,61 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3332
3332
  }).flat();
3333
3333
  }, hs = (e, t) => {
3334
3334
  let a = 0, l = {};
3335
- return [...Array(e.pageDom.length).keys()].map((n) => {
3336
- const c = Math.floor(n / 2) * (e.layout.column + e.layout.backColumn) + (n % 2 ? e.layout.column : 0);
3337
- return [...Array(n % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((o, s) => c + s < t.length).map((o, s) => {
3338
- const r = e.pageDom[n], d = O(r), p = e.colDom[c + s], N = O(p), h = e.colViewDom[c + s], F = O(h), Q = t[c + s].data.map(($) => $.children.filter((z) => z.problemType)).flat(), j = t[c + s].data.filter(($) => [ve.one_choice, ve.another_choice].includes($.problemType) && $.children.length).map(($) => {
3339
- const z = se(`${k.choice}${$.id}`, p);
3335
+ return [...Array(e.pageDom.length).keys()].map((i) => {
3336
+ const n = Math.floor(i / 2) * (e.layout.column + e.layout.backColumn) + (i % 2 ? e.layout.column : 0);
3337
+ return [...Array(i % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((o, s) => n + s < t.length).map((o, s) => {
3338
+ const c = e.pageDom[i], d = R(c), h = e.colDom[n + s], B = R(h), p = e.colViewDom[n + s], F = R(p), O = t[n + s].data.map((T) => T.children.filter((z) => z.problemType)).flat(), j = t[n + s].data.filter((T) => [ve.one_choice, ve.another_choice].includes(T.problemType) && T.children.length).map((T) => {
3339
+ const z = se(`${k.choice}${T.id}`, h);
3340
3340
  return z ? {
3341
3341
  id: `${++a}`,
3342
- baseIndex: parseInt($.children[0]._sub),
3343
- position: ce(O(z), d),
3344
- problemType: $.problemType,
3342
+ baseIndex: parseInt(T.children[0]._sub),
3343
+ position: ce(R(z), d),
3344
+ problemType: T.problemType,
3345
3345
  isOneChoice: !0,
3346
- optList: Te(k.fill, z).map((g, E) => ({
3346
+ optList: Te(k.fill, z).map((v, E) => ({
3347
3347
  id: `${a}.${E + 1}`,
3348
- position: ce(O(g), d)
3349
- })).filter((g) => g.position)
3348
+ position: ce(R(v), d)
3349
+ })).filter((v) => v.position)
3350
3350
  } : {};
3351
- }).filter(($) => $.position);
3352
- return Q.filter(($) => ls($, p, N)).map(($, z, g) => {
3351
+ }).filter((T) => T.position);
3352
+ return O.filter((T) => ls(T, h, B)).map((T, z, v) => {
3353
3353
  let E = {};
3354
- l[$._sub] ? l[$._sub] += 1 : l[$._sub] = 1;
3355
- const W = se(`${k.item}${$._sub}`, p);
3356
- switch ($.problemType) {
3354
+ l[T._sub] ? l[T._sub] += 1 : l[T._sub] = 1;
3355
+ const W = se(`${k.item}${T._sub}`, h);
3356
+ switch (T.problemType) {
3357
3357
  case m.choice:
3358
3358
  case m.choice_english:
3359
3359
  case m.choice_multiple:
3360
3360
  case m.cloze:
3361
3361
  E = {
3362
- score: $.score,
3363
- isColumn: $.style[y[e.layout.mode].choice_a] !== L.choice_2,
3364
- optList: $.optList.map((w, R) => ({
3365
- id: `${$._sub}.${R + 1}`,
3366
- position: Me(se(`${k.fill}${R}`, W), F, d)
3362
+ score: T.score,
3363
+ isColumn: T.style[y[e.layout.mode].choice_a] !== L.choice_2,
3364
+ optList: T.optList.map((w, G) => ({
3365
+ id: `${T._sub}.${G + 1}`,
3366
+ position: De(se(`${k.fill}${G}`, W), F, d)
3367
3367
  })).filter((w) => w.position)
3368
3368
  };
3369
3369
  break;
3370
3370
  case m.decide:
3371
3371
  E = {
3372
- optList: [0, 1].map((w, R) => ({
3373
- id: `${$._sub}.${R + 1}`,
3374
- position: Me(se(`${k.fill}${R}`, W), F, d)
3372
+ optList: [0, 1].map((w, G) => ({
3373
+ id: `${T._sub}.${G + 1}`,
3374
+ position: De(se(`${k.fill}${G}`, W), F, d)
3375
3375
  })).filter((w) => w.position)
3376
3376
  };
3377
3377
  break;
3378
3378
  case m.fill:
3379
3379
  case m.fill_english:
3380
- const H = Te(k.fill, W), _ = Te(k.fill_line, W);
3380
+ const N = Te(k.fill, W), _ = Te(k.fill_line, W);
3381
3381
  E = {
3382
- children: [$.score].flat().map((w, R, B) => ({
3383
- id: B.length > 1 ? `${$._sub}.${R + 1}` : $._sub,
3382
+ children: [T.score].flat().map((w, G, H) => ({
3383
+ id: H.length > 1 ? `${T._sub}.${G + 1}` : T._sub,
3384
3384
  score: w,
3385
- problemType: $.problemType,
3386
- isHiddenContent: !$.style[y[e.layout.mode].fill_b],
3387
- position: Me(W, F, d),
3388
- scorePosition: Me(H[R], F, d),
3389
- answerPosition: Me(_[R], F, d)
3385
+ problemType: T.problemType,
3386
+ isHiddenContent: !T.style[y[e.layout.mode].fill_b],
3387
+ position: De(W, F, d),
3388
+ scorePosition: De(N[G], F, d),
3389
+ answerPosition: De(_[G], F, d)
3390
3390
  })).filter((w) => w.position)
3391
3391
  };
3392
3392
  break;
@@ -3395,83 +3395,88 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3395
3395
  case m.art:
3396
3396
  const C = se(k.score, W);
3397
3397
  E = {
3398
- scoreList: C ? [se(k.score_tenbit, C), se(k.score_base, C), se(k.score_half, C)].map((w, R) => {
3398
+ scoreList: C ? [se(k.score_tenbit, C), se(k.score_base, C), se(k.score_half, C)].map((w, G) => {
3399
3399
  if (!w)
3400
3400
  return {};
3401
- const B = Te(k.score_item, w);
3401
+ const H = Te(k.score_item, w);
3402
3402
  return {
3403
- position: Me(w, F, d, !0),
3403
+ position: De(w, F, d, !0),
3404
3404
  itemPosition: {
3405
- width: B[0].offsetWidth
3405
+ width: H[0].offsetWidth
3406
3406
  },
3407
- score: B.map((ye) => Math.abs(parseFloat(ye.innerText)) * (R ? 1 : 10))
3407
+ score: H.map((ye) => Math.abs(parseFloat(ye.innerText)) * (G ? 1 : 10))
3408
3408
  };
3409
3409
  }).filter((w) => w.position) : null
3410
3410
  };
3411
3411
  }
3412
3412
  return {
3413
- id: $._sub,
3414
- elId: $.id,
3415
- colIndex: l[$._sub],
3416
- problemType: $.problemType,
3417
- rootProblemType: $.rootProblemType,
3418
- position: Me(W, F, d, !1, z === g.length - 1 && [m.slove].includes($.problemType)),
3413
+ id: T._sub,
3414
+ elId: T.id,
3415
+ colIndex: l[T._sub],
3416
+ problemType: T.problemType,
3417
+ _rootProblemType: T._rootProblemType,
3418
+ _parentProblemType: T._parentProblemType,
3419
+ position: De(W, F, d, !1, z === v.length - 1 && [m.slove].includes(T.problemType)),
3419
3420
  ...E
3420
3421
  };
3421
- }).concat(j).filter(($) => $.position);
3422
+ }).concat(j).filter((T) => T.position);
3422
3423
  });
3423
- }).map((n) => n.flat());
3424
+ }).map((i) => i.flat());
3424
3425
  }, ps = (e) => {
3425
- const t = (l = e, n = !1) => ({
3426
+ let t = {};
3427
+ const a = (n = e, o = !1) => (t[n.id] = {
3428
+ _rootProblemType: ot[e._rootProblemType],
3429
+ _parentProblemType: ot[e._parentProblemType]
3430
+ }, {
3426
3431
  // 块位置
3427
- sectionPosition: ne(l.position, !0),
3432
+ sectionPosition: ne(n.position, !0),
3428
3433
  // 块ID,前端生成,同一道题同一个ID
3429
- sectionID: l.id,
3434
+ sectionID: n.id,
3430
3435
  // 块内序号ID,按切块自增
3431
- secitonSeqID: l.colIndex || 1,
3436
+ secitonSeqID: n.colIndex || 1,
3432
3437
  // 需要保存文件,固定值
3433
- needSavedFile: !!n || [m.mix].includes(e.problemType),
3438
+ needSavedFile: !!o || [m.mix].includes(e.problemType),
3434
3439
  // 题型
3435
- cuttingSectionQuestionType: bt[l.problemType || e.problemType]
3440
+ cuttingSectionQuestionType: ot[n.problemType || e.problemType]
3436
3441
  });
3437
- let a = {};
3442
+ let l = {};
3438
3443
  switch (e.problemType) {
3439
3444
  case m.choice:
3440
3445
  case m.choice_english:
3441
3446
  case m.choice_multiple:
3442
3447
  case m.cloze:
3443
3448
  case m.decide:
3444
- a = {
3449
+ l = {
3445
3450
  choiceQuestionPartialSectionList: [{
3446
- ...t(e, !0),
3451
+ ...a(e, !0),
3447
3452
  // 选项数量
3448
3453
  unitCount: e.optList.length,
3449
3454
  // 选项是否为横排
3450
3455
  crosswised: e.isColumn,
3451
3456
  // 单个选项的信息数组
3452
- choiceUnitSectionList: e.optList.map((l, n) => ({
3453
- ...t(l, !0),
3454
- choicePosition: ne(l.position),
3455
- choiceResult: [m.decide].includes(e.problemType) ? po[n] : dt[n]
3457
+ choiceUnitSectionList: e.optList.map((n, o) => ({
3458
+ ...a(n, !0),
3459
+ choicePosition: ne(n.position),
3460
+ choiceResult: [m.decide].includes(e.problemType) ? po[o] : ut[o]
3456
3461
  }))
3457
3462
  }]
3458
3463
  };
3459
3464
  break;
3460
3465
  case m.fill:
3461
3466
  case m.fill_english:
3462
- a = {
3467
+ l = {
3463
3468
  subjectiveQuestionSectionList: [{
3464
- ...t(e, !0),
3469
+ ...a(e, !0),
3465
3470
  // 子题数 最小1 填空题取空数
3466
3471
  unitCount: (e.children || [e]).length,
3467
3472
  // 每个小题的切图块
3468
- singleBlankSectionList: (e.children || [e]).map((l) => ({
3469
- ...t(l, !0),
3470
- answerPosition: ne(l.answerPosition, !0),
3471
- correctFrame: l.scorePosition ? [{
3472
- correctSectionPosition: ne(l.scorePosition, !0),
3473
- firstBlockPostion: ne(l.scorePosition),
3474
- gridScoresList: [l.score].flat(),
3473
+ singleBlankSectionList: (e.children || [e]).map((n) => ({
3474
+ ...a(n, !0),
3475
+ answerPosition: ne(n.answerPosition, !0),
3476
+ correctFrame: n.scorePosition ? [{
3477
+ correctSectionPosition: ne(n.scorePosition, !0),
3478
+ firstBlockPostion: ne(n.scorePosition),
3479
+ gridScoresList: [n.score].flat(),
3475
3480
  lineMeanGetScore: !1,
3476
3481
  weight: 1
3477
3482
  }] : []
@@ -3482,19 +3487,19 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3482
3487
  case m.slove:
3483
3488
  case m.easy_slove:
3484
3489
  case m.art:
3485
- a = {
3490
+ l = {
3486
3491
  subjectiveQuestionSectionList: [{
3487
- ...t(e, !0),
3492
+ ...a(e, !0),
3488
3493
  // 子题数 最小1 填空题取空数
3489
3494
  unitCount: 1,
3490
3495
  // 每个小题的切图块
3491
3496
  singleBlankSectionList: [{
3492
- ...t(e, !0),
3497
+ ...a(e, !0),
3493
3498
  answerPosition: null,
3494
- correctFrame: (e.scoreList || []).map((l) => ({
3495
- correctSectionPosition: ne(l.position, !0),
3496
- firstBlockPostion: ne({ ...l.position, ...l.itemPosition }),
3497
- gridScoresList: [l.score].flat(),
3499
+ correctFrame: (e.scoreList || []).map((n) => ({
3500
+ correctSectionPosition: ne(n.position, !0),
3501
+ firstBlockPostion: ne({ ...n.position, ...n.itemPosition }),
3502
+ gridScoresList: [n.score].flat(),
3498
3503
  lineMeanGetScore: !0,
3499
3504
  weight: 1
3500
3505
  }))
@@ -3507,9 +3512,9 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3507
3512
  break;
3508
3513
  case ve.one_choice:
3509
3514
  case ve.another_choice:
3510
- a = {
3515
+ l = {
3511
3516
  choiceQuestionPartialSectionList: [{
3512
- ...t(e),
3517
+ ...a(e),
3513
3518
  // 选项数量
3514
3519
  unitCount: e.optList.length,
3515
3520
  // 选做题标记
@@ -3517,24 +3522,24 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3517
3522
  // 选项横排
3518
3523
  crosswised: !0,
3519
3524
  // 单个选项的信息数组
3520
- choiceUnitSectionList: e.optList.map((l, n) => ({
3521
- ...t(l),
3522
- choicePosition: ne(l.position),
3523
- choiceResult: (e.baseIndex + n).toString()
3525
+ choiceUnitSectionList: e.optList.map((n, o) => ({
3526
+ ...a(n),
3527
+ choicePosition: ne(n.position),
3528
+ choiceResult: (e.baseIndex + o).toString()
3524
3529
  }))
3525
3530
  }]
3526
3531
  };
3527
3532
  break;
3528
3533
  }
3529
- return {
3530
- rootProblem: bt[e.rootProblemType || e.problemType],
3531
- ...t(e, !e.isOneChoice),
3532
- ...a
3533
- };
3534
+ return { data: {
3535
+ ...a(e, !e.isOneChoice),
3536
+ ...l
3537
+ }, typeData: t };
3534
3538
  }, ms = (e, t) => {
3535
- const a = [...Array(e.pageTotal).keys()].map((c) => ({
3539
+ let a = {};
3540
+ const l = [...Array(e.pageTotal).keys()].map((o) => ({
3536
3541
  // 当前页数
3537
- pageIndexID: c + 1,
3542
+ pageIndexID: o + 1,
3538
3543
  // 保留字段
3539
3544
  hasCardSerialNumber: !0,
3540
3545
  // 页码点信息
@@ -3544,71 +3549,76 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3544
3549
  // 固定值
3545
3550
  splitFileList: [],
3546
3551
  // 依据当前页码设置答案
3547
- answerResultList: dt.slice(e.layout.pagePoint === ze.right_up ? e.pageTotal - c - 1 : 0, e.layout.pagePoint === ze.right_up ? e.pageTotal : c + 1),
3552
+ answerResultList: ut.slice(e.layout.pagePoint === ze.right_up ? e.pageTotal - o - 1 : 0, e.layout.pagePoint === ze.right_up ? e.pageTotal : o + 1),
3548
3553
  // 固定值
3549
3554
  noAnswerTag: !1
3550
3555
  }],
3551
3556
  // 按题切块信息
3552
- cardCuttingSectionList: t[c].map((o) => ps(o)).flat()
3553
- })), l = (c, o) => (c.sectionID || "").split(".").filter((s, r) => r < o).join("."), n = a.map((c) => {
3554
- let o = [], s = [], r = [];
3555
- return c.cardCuttingSectionList.forEach((d, p, N) => {
3556
- const h = l(d, 1);
3557
- let F = !1, Q = !1;
3558
- if (r.find(($) => l($, 1) === h && $.secitonSeqID === d.secitonSeqID) && !(d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (r.push(d), F = p < N.length - 1, Q = !0), F)
3557
+ cardCuttingSectionList: t[o].map((s) => {
3558
+ const c = ps(s);
3559
+ return a = { ...a, ...c.typeData }, c.data;
3560
+ }).flat()
3561
+ })), i = (o, s) => (o.sectionID || "").split(".").filter((c, d) => d < s).join("."), n = l.map((o) => {
3562
+ let s = [], c = [], d = [];
3563
+ return o.cardCuttingSectionList.forEach((h, B, p) => {
3564
+ const F = i(h, 1);
3565
+ let O = !1, j = !1;
3566
+ if (d.find((z) => i(z, 1) === F && z.secitonSeqID === h.secitonSeqID) && !(h.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (d.push(h), O = B < p.length - 1, j = !0), O)
3559
3567
  return;
3560
- let j = !1;
3561
- if ((d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (s.push(d), j = !0), r.length) {
3562
- if (r.length === 1)
3563
- o.push(r[0]);
3568
+ let T = !1;
3569
+ if ((h.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (c.push(h), T = !0), d.length) {
3570
+ if (d.length === 1)
3571
+ s.push(d[0]);
3564
3572
  else {
3565
- const $ = r.map((W) => W.subjectiveQuestionSectionList || []).flat(), z = r.map((W) => W.choiceQuestionPartialSectionList || []).flat(), g = z.length ? { choiceQuestionPartialSectionList: z } : {}, E = $.length ? { subjectiveQuestionSectionList: $ } : {};
3566
- o.push({
3567
- ...r[0],
3568
- cuttingSectionQuestionType: r[0].rootProblemType || r[0].cuttingSectionQuestionType,
3569
- ...g,
3570
- ...E
3573
+ const z = d.map((N) => N.subjectiveQuestionSectionList || []).flat(), v = d.map((N) => N.choiceQuestionPartialSectionList || []).flat(), E = v.length ? { choiceQuestionPartialSectionList: v } : {}, W = z.length ? { subjectiveQuestionSectionList: z } : {};
3574
+ s.push({
3575
+ ...d[0],
3576
+ cuttingSectionQuestionType: a[d[0].sectionID]._rootProblemType || d[0].cuttingSectionQuestionType,
3577
+ ...E,
3578
+ ...W
3571
3579
  });
3572
3580
  }
3573
- r = [];
3581
+ d = [];
3574
3582
  }
3575
- j || Q || r.push(d);
3576
- }), o = o.map((d) => ({ ...d, sectionID: l(d, 1) })), { ...c, cardCuttingSectionList: [...o, ...s] };
3577
- }).map((c) => {
3578
- const o = c.cardCuttingSectionList.map((s) => {
3579
- var N;
3580
- let r = [], d = [];
3581
- (N = s.subjectiveQuestionSectionList) == null || N.forEach((h, F, Q) => {
3582
- const j = l(h, Math.max(h.sectionID.split(".").length - 1, 1));
3583
- let $ = !1, z = !1;
3584
- if (d.find((g) => l(g, Math.max(g.sectionID.split(".").length - 1, 2)) === j && g.secitonSeqID === h.secitonSeqID) && (d.push(h), $ = F < Q.length - 1, z = !0), !$) {
3585
- if (d.length) {
3586
- if (d.length === 1)
3587
- r.push(d[0]);
3583
+ T || j || d.push(h);
3584
+ }), s = [...s, ...d].map((h) => ({ ...h, sectionID: i(h, 1) })), { ...o, cardCuttingSectionList: [...s, ...c] };
3585
+ }).map((o) => {
3586
+ const s = o.cardCuttingSectionList.map((c) => {
3587
+ var F;
3588
+ let d = [], h = [];
3589
+ const B = Math.max(...(c.subjectiveQuestionSectionList || []).map((O) => O.sectionID.split(".").length - 1), 1);
3590
+ (F = c.subjectiveQuestionSectionList) == null || F.forEach((O, j, T) => {
3591
+ const z = i(O, B);
3592
+ let v = !1, E = !1;
3593
+ if (h.find((W) => i(W, B) === z && W.secitonSeqID === O.secitonSeqID) && (h.push(O), v = j < T.length - 1, E = !0), !v) {
3594
+ if (h.length) {
3595
+ if (h.length === 1)
3596
+ d.push(h[0]);
3588
3597
  else {
3589
- const g = d.map((W) => W.singleBlankSectionList || []).flat(), E = g.length ? { singleBlankSectionList: g, unitCount: g.length } : {};
3590
- r.push({
3591
- ...d[0],
3592
- ...E
3598
+ const W = h.map((_) => _.singleBlankSectionList || []).flat(), N = W.length ? { singleBlankSectionList: W, unitCount: W.length } : {};
3599
+ d.push({
3600
+ ...h[0],
3601
+ cuttingSectionQuestionType: a[h[0].sectionID]._parentProblemType || h[0].cuttingSectionQuestionType,
3602
+ ...N
3593
3603
  });
3594
3604
  }
3595
- d = [];
3605
+ h = [];
3596
3606
  }
3597
- z || d.push(h);
3607
+ E || h.push(O);
3598
3608
  }
3599
3609
  });
3600
- const p = Math.max(...r.map((h) => h.sectionID.split(".").length));
3601
- return r = r.map((h) => ({ ...h, sectionID: l(h, Math.max(p - 1, 1)) })), r.length ? {
3602
- ...s,
3603
- subjectiveQuestionSectionList: r
3604
- } : s;
3610
+ const p = Math.max(...[...d, ...h].map((O) => O.sectionID.split(".").length));
3611
+ return d = [...d, ...h].map((O) => ({ ...O, sectionID: i(O, Math.max(p - 1, 1)) })), d.length ? {
3612
+ ...c,
3613
+ subjectiveQuestionSectionList: d
3614
+ } : c;
3605
3615
  });
3606
- return { ...c, cardCuttingSectionList: o };
3616
+ return { ...o, cardCuttingSectionList: s };
3607
3617
  });
3608
- return console.log(n), console.log(a), n;
3618
+ return console.log(n), console.log(l), a = {}, n;
3609
3619
  }, ys = (e, t) => {
3610
3620
  var l;
3611
- const a = O(e.pageDom[0]);
3621
+ const a = R(e.pageDom[0]);
3612
3622
  return {
3613
3623
  // 正文code
3614
3624
  cardID: e.textCode,
@@ -3625,8 +3635,8 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3625
3635
  // 试卷二维码
3626
3636
  cardSerialNumber: {
3627
3637
  // 条形码虚线框位置, x, y, width, height
3628
- encodePictureArea: ne(ce(O(se(k.art_code, e.pageDom[0])), a), !0),
3629
- qrCodePosition: ne(ce(O(se(k.art_code, e.pageDom[0])), a)),
3638
+ encodePictureArea: ne(ce(R(se(k.art_code, e.pageDom[0])), a), !0),
3639
+ qrCodePosition: ne(ce(R(se(k.art_code, e.pageDom[0])), a)),
3630
3640
  // 条形码或二维码,不确定,固定此值
3631
3641
  pictureType: "TYPE_QRCODE"
3632
3642
  },
@@ -3646,18 +3656,18 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3646
3656
  // 用来表示老师布置题的标识,固定值
3647
3657
  onlyAssignQuestions: null,
3648
3658
  // 有UserID的页面序号,一般情况是奇数面,例如1、3、5
3649
- userRegInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((n) => n % 2),
3659
+ userRegInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((i) => i % 2),
3650
3660
  // 有缺考标记的页面序号,一般情况是第一面,固定值1
3651
- absenceInfoIndexList: se(k.lack, e.pageDom[0]) ? [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((n) => n % 2) : null,
3661
+ absenceInfoIndexList: se(k.lack, e.pageDom[0]) ? [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((i) => i % 2) : null,
3652
3662
  // 有试卷ID的页面号列表,一般情况是第一面,该值为0时不校验
3653
- snInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((n) => n % 2),
3663
+ snInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((i) => i % 2),
3654
3664
  // 哪些面有选做老师布置题的信息,固定值
3655
3665
  onlyAssignInfoList: [],
3656
3666
  // 页面布局信息
3657
3667
  layerType: ns(e),
3658
3668
  // 定位点信息
3659
3669
  ...ss(e),
3660
- pottedLineXPos: e.bindWidth ? (l = ne(ce(O(se(k.bind_line, e.pageDom[0])), a))) == null ? void 0 : l.x : 0,
3670
+ pottedLineXPos: e.bindWidth ? (l = ne(ce(R(se(k.bind_line, e.pageDom[0])), a))) == null ? void 0 : l.x : 0,
3661
3671
  // 页码点信息
3662
3672
  pageSideAnchorsList: is(e),
3663
3673
  // 缺考标记
@@ -3666,15 +3676,15 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3666
3676
  oneFullPageCardList: t
3667
3677
  };
3668
3678
  }, _s = (e) => {
3669
- const { config: t, data: a } = e, l = ds(t), n = hs(t, a);
3670
- l && n[0].unshift(l);
3671
- const c = us(t, n), o = ms(t, n), s = ys(t, o), r = Ot(t, k.en_num_view) || {};
3679
+ const { config: t, data: a } = e, l = ds(t), i = hs(t, a);
3680
+ l && i[0].unshift(l);
3681
+ const n = us(t, i), o = ms(t, i), s = ys(t, o), c = Ot(t, k.en_num_view) || {};
3672
3682
  return {
3673
3683
  engineData: s,
3674
3684
  pageTotal: t.pageTotal,
3675
- format: b[t.layout.paper],
3676
- localData: c,
3677
- extendInfo: { shortCoordinate: r }
3685
+ format: g[t.layout.paper],
3686
+ localData: n,
3687
+ extendInfo: { shortCoordinate: c }
3678
3688
  };
3679
3689
  }, fs = { class: "layt-moni_view" }, gs = { class: "layt-moni_content" }, bs = { class: "layt-moni_icon" }, vs = { class: "layt-moni_msg" }, ws = {
3680
3690
  key: 0,
@@ -3689,40 +3699,40 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3689
3699
  },
3690
3700
  emits: ["delAbsImgItem", "delAbsTxtItem", "changeLayoutStatus"],
3691
3701
  setup(e, { emit: t }) {
3692
- const a = e, l = Y([]);
3693
- De(() => [a.ColList, a.ImgData, a.TxtData], () => {
3702
+ const a = e, l = q([]);
3703
+ Me(() => [a.ColList, a.ImgData, a.TxtData], () => {
3694
3704
  l.value = [], setTimeout(() => {
3695
3705
  var d;
3696
- a.ColList.forEach((p, N) => {
3697
- p.data.map((h) => h.children).flat().filter((h) => [m.slove, m.art].includes(h.problemType) && !h.chunk).forEach((h) => {
3698
- var $;
3699
- const F = ($ = a.ColDom[N].querySelector(`*[data-tag="${h.__tag__}"]`)) == null ? void 0 : $.querySelector(`*[data-xine="${k.score}"]`);
3706
+ a.ColList.forEach((h, B) => {
3707
+ h.data.map((p) => p.children).flat().filter((p) => [m.slove, m.art].includes(p.problemType) && !p.chunk).forEach((p) => {
3708
+ var T;
3709
+ const F = (T = a.ColDom[B].querySelector(`*[data-tag="${p.__tag__}"]`)) == null ? void 0 : T.querySelector(`*[data-xine="${k.score}"]`);
3700
3710
  if (!F)
3701
3711
  return;
3702
3712
  F.classList.remove("err_lack");
3703
- const Q = window.getComputedStyle(F), j = [...Array.from(F.children)].map((z) => z.offsetWidth).reduce((z, g) => z + g, 0);
3704
- F.offsetWidth - parseFloat(Q.borderLeft) - parseFloat(Q.borderRight) < j && (l.value.push({ msg: `${h.subStr}题打分条超长` }), F.classList.add("err_lack"), F.title = "打分条超长,请调整排版或使用自编打分条");
3713
+ const O = window.getComputedStyle(F), j = [...Array.from(F.children)].map((z) => z.offsetWidth).reduce((z, v) => z + v, 0);
3714
+ F.offsetWidth - parseFloat(O.borderLeft) - parseFloat(O.borderRight) < j && (l.value.push({ msg: `${p.subStr}题打分条超长` }), F.classList.add("err_lack"), F.title = "打分条超长,请调整排版或使用自编打分条");
3705
3715
  });
3706
3716
  });
3707
3717
  const o = (d = document.querySelector(".__layout__")) == null ? void 0 : d.getBoundingClientRect();
3708
3718
  if (!o)
3709
3719
  return;
3710
- let s = [], r = [];
3711
- a.ImgData.forEach((p) => {
3712
- (p.left + p.width > o.width || p.top + p.height > o.height) && s.push(p);
3713
- }), a.TxtData.forEach((p) => {
3714
- (p.left + p.width > o.width || p.top + p.height > o.height) && r.push(p);
3715
- }), s.length && l.value.push({ type: "absImg", value: s, msg: `${s.length}张插入图片溢出`, fn: n }), r.length && l.value.push({ type: "absTxt", value: r, msg: `${r.length}条插入文本溢出`, fn: c }), t("changeLayoutStatus", l.value.length ? "error" : "ok");
3720
+ let s = [], c = [];
3721
+ a.ImgData.forEach((h) => {
3722
+ (h.left + h.width > o.width || h.top + h.height > o.height) && s.push(h);
3723
+ }), a.TxtData.forEach((h) => {
3724
+ (h.left + h.width > o.width || h.top + h.height > o.height) && c.push(h);
3725
+ }), s.length && l.value.push({ type: "absImg", value: s, msg: `${s.length}张插入图片溢出`, fn: i }), c.length && l.value.push({ type: "absTxt", value: c, msg: `${c.length}条插入文本溢出`, fn: n }), t("changeLayoutStatus", l.value.length ? "error" : "ok");
3716
3726
  }, 500);
3717
3727
  });
3718
- const n = () => {
3728
+ const i = () => {
3719
3729
  var s;
3720
- (((s = l.value.find((r) => r.type === "absImg")) == null ? void 0 : s.value) || []).forEach((r) => t("delAbsImgItem", r));
3721
- }, c = () => {
3730
+ (((s = l.value.find((c) => c.type === "absImg")) == null ? void 0 : s.value) || []).forEach((c) => t("delAbsImgItem", c));
3731
+ }, n = () => {
3722
3732
  var s;
3723
- (((s = l.value.find((r) => r.type === "absTxt")) == null ? void 0 : s.value) || []).forEach((r) => t("delAbsTxtItem", r));
3733
+ (((s = l.value.find((c) => c.type === "absTxt")) == null ? void 0 : s.value) || []).forEach((c) => t("delAbsTxtItem", c));
3724
3734
  };
3725
- return (o, s) => (i(), u("div", fs, [
3735
+ return (o, s) => (r(), u("div", fs, [
3726
3736
  f("div", gs, [
3727
3737
  f("div", {
3728
3738
  class: oe(["layt-moni_status", l.value.length ? "layt-moni_err" : "layt-moni_success"])
@@ -3738,212 +3748,212 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3738
3748
  ]),
3739
3749
  f("span", vs, "排版" + J(l.value.length ? "异常" : "良好"), 1)
3740
3750
  ], 2),
3741
- l.value.length ? (i(), u("ul", ws, [
3742
- (i(!0), u(P, null, Z(l.value, (r, d) => (i(), u("li", {
3751
+ l.value.length ? (r(), u("ul", ws, [
3752
+ (r(!0), u(P, null, Z(l.value, (c, d) => (r(), u("li", {
3743
3753
  key: d,
3744
3754
  class: "layt-moni_err_item"
3745
3755
  }, [
3746
- f("span", xs, J(r.msg), 1),
3747
- r.fn ? (i(), u("span", {
3756
+ f("span", xs, J(c.msg), 1),
3757
+ c.fn ? (r(), u("span", {
3748
3758
  key: 0,
3749
3759
  class: "layt-moni_err_item_fn",
3750
- onClick: r.fn
3751
- }, J(r.btnTxt || "删除"), 9, ks)) : D("", !0)
3760
+ onClick: c.fn
3761
+ }, J(c.btnTxt || "删除"), 9, ks)) : M("", !0)
3752
3762
  ]))), 128))
3753
- ])) : D("", !0)
3763
+ ])) : M("", !0)
3754
3764
  ])
3755
3765
  ]));
3756
3766
  }
3757
3767
  });
3758
- const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e) => e == null ? void 0 : e.getBoundingClientRect(), Tt = (e, t) => t.querySelector(`*[data-tag="${e}"]`), nt = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Ee, ht].includes(t.dataset.block || "")), Ve = (e) => e.previousElementSibling ? [Ee, ht].includes(e.previousElementSibling.dataset.block || "") ? Ve(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? Ve(e.parentElement) : document.body, Ss = (e) => {
3768
+ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e) => e == null ? void 0 : e.getBoundingClientRect(), Tt = (e, t) => t.querySelector(`*[data-tag="${e}"]`), st = (e) => [...e.children || []].filter((t) => t.nodeName.toLowerCase() !== "br" && ![Ee, pt].includes(t.dataset.block || "")), Ve = (e) => e.previousElementSibling ? [Ee, pt].includes(e.previousElementSibling.dataset.block || "") ? Ve(e.previousElementSibling) : e.previousElementSibling : e.parentElement ? Ve(e.parentElement) : document.body, Ss = (e) => {
3759
3769
  const t = e.parentElement, a = document.createElement("span");
3760
- return a.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", a.dataset.block = ht, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(a, e.nextElementSibling) : t.appendChild(a), a;
3770
+ return a.style.cssText = "display: block; width: 100%; flex-shrink: 0; margin-bottom: 3px", a.dataset.block = pt, t.style.flexWrap = "wrap", e.nextElementSibling ? t.insertBefore(a, e.nextElementSibling) : t.appendChild(a), a;
3761
3771
  }, Ts = (e, t, a, l) => {
3762
- let n = null;
3763
- if (e.dataset.block === ut && !e.dataset.used) {
3764
- const c = window.getComputedStyle(e);
3765
- t - parseFloat(c.paddingTop) - parseFloat(c.borderTop) - 1 < 50 && (n = e.parentElement && e.parentElement.dataset.block === el ? e.parentElement : e), e.dataset.used = "1";
3772
+ let i = null;
3773
+ if (e.dataset.block === ht && !e.dataset.used) {
3774
+ const n = window.getComputedStyle(e);
3775
+ t - parseFloat(n.paddingTop) - parseFloat(n.borderTop) - 1 < 50 && (i = e.parentElement && e.parentElement.dataset.block === el ? e.parentElement : e), e.dataset.used = "1";
3766
3776
  } else
3767
- e.dataset.block === $t ? n = e.parentElement : e.dataset.block === tl && !e.dataset.used ? e.offsetHeight < a - 20 ? n = e.parentElement : e.dataset.used = "1" : e.dataset.block === ke && !e.dataset.used ? e.offsetHeight > a || t > a / 3 && e.offsetHeight + (e.offsetHeight > a / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${$t}]`) ? e.dataset.used = "1" : n = e : (e.dataset.block === ol && l || al.includes(e.tagName.toLowerCase())) && (n = e);
3768
- return n;
3777
+ e.dataset.block === $t ? i = e.parentElement : e.dataset.block === tl && !e.dataset.used ? e.offsetHeight < a - 20 ? i = e.parentElement : e.dataset.used = "1" : e.dataset.block === ke && !e.dataset.used ? e.offsetHeight > a || t > a / 3 && e.offsetHeight + (e.offsetHeight > a / 3 ? 0 : 18) > t && !e.querySelector(`img[data-block=${$t}]`) ? e.dataset.used = "1" : i = e : (e.dataset.block === ol && l || al.includes(e.tagName.toLowerCase())) && (i = e);
3778
+ return i;
3769
3779
  }, It = (e, t, a) => {
3770
- const l = e.textContent || "", n = l.split("").map((r) => `<span>${r}</span>`).join("");
3771
- e.innerHTML = n;
3772
- const c = [...Array.from(e.children)].findIndex((r) => he(r).top - t + r.offsetHeight > a);
3773
- if (c < 1)
3780
+ const l = e.textContent || "", i = l.split("").map((c) => `<span>${c}</span>`).join("");
3781
+ e.innerHTML = i;
3782
+ const n = [...Array.from(e.children)].findIndex((c) => he(c).top - t + c.offsetHeight > a);
3783
+ if (n < 1)
3774
3784
  return e.innerHTML = l, e;
3775
3785
  const o = document.createElement("span");
3776
- o.textContent = l.slice(0, c);
3786
+ o.textContent = l.slice(0, n);
3777
3787
  const s = document.createElement("span");
3778
- return s.textContent = l.slice(c), e.innerHTML = "", e.append(o, s), o;
3779
- }, st = (e, t, a) => {
3780
- const l = nt("", e.parentElement), n = l.findIndex((o) => o === e);
3781
- let c = l.filter((o, s) => he(o).top + o.offsetHeight - 1 < he(e).top || s < n && he(o).top < he(e).top).reverse()[0];
3782
- return c || (c = Ve(e), he(c).top + c.offsetHeight - t > a && (c = st(c, t, a))), c;
3788
+ return s.textContent = l.slice(n), e.innerHTML = "", e.append(o, s), o;
3789
+ }, it = (e, t, a) => {
3790
+ const l = st("", e.parentElement), i = l.findIndex((o) => o === e);
3791
+ let n = l.filter((o, s) => he(o).top + o.offsetHeight - 1 < he(e).top || s < i && he(o).top < he(e).top).reverse()[0];
3792
+ return n || (n = Ve(e), he(n).top + n.offsetHeight - t > a && (n = it(n, t, a))), n;
3783
3793
  }, Lt = (e, t, a, l) => {
3784
- const n = (o, s = a) => {
3785
- var j, $, z;
3786
- const r = o.map((g) => {
3787
- const E = he(g);
3794
+ const i = (o, s = a) => {
3795
+ var j, T, z;
3796
+ const c = o.map((v) => {
3797
+ const E = he(v);
3788
3798
  return {
3789
- el: g,
3799
+ el: v,
3790
3800
  top: E.top - t,
3791
3801
  left: E.left
3792
3802
  };
3793
- }), d = r.filter((g) => g.el.offsetHeight + g.top > s).sort((g, E) => g.top - E.top), p = (j = d.shift()) == null ? void 0 : j.el;
3794
- if (!p) {
3795
- const g = document.createElement("div");
3796
- return ($ = o[0].parentElement) == null || $.appendChild(g), g.style.height = s - (he(g).top - t) + "px", g;
3803
+ }), d = c.filter((v) => v.el.offsetHeight + v.top > s).sort((v, E) => v.top - E.top), h = (j = d.shift()) == null ? void 0 : j.el;
3804
+ if (!h) {
3805
+ const v = document.createElement("div");
3806
+ return (T = o[0].parentElement) == null || T.appendChild(v), v.style.height = s - (he(v).top - t) + "px", v;
3797
3807
  }
3798
- const N = he(p), h = N.top - t, F = N.left;
3799
- if (d.filter((g) => g.top < h + p.offsetHeight && g.top + g.el.offsetHeight - 1 > h && (g.left + g.el.offsetWidth - 1 < F || g.left + 1 > F + p.offsetWidth)).length) {
3800
- const g = (z = r.filter((E) => E.top < h).pop()) == null ? void 0 : z.el;
3801
- if (g != null && g.children.length) {
3802
- const E = nt(g);
3803
- return n(E, h) || g;
3808
+ const B = he(h), p = B.top - t, F = B.left;
3809
+ if (d.filter((v) => v.top < p + h.offsetHeight && v.top + v.el.offsetHeight - 1 > p && (v.left + v.el.offsetWidth - 1 < F || v.left + 1 > F + h.offsetWidth)).length) {
3810
+ const v = (z = c.filter((E) => E.top < p).pop()) == null ? void 0 : z.el;
3811
+ if (v != null && v.children.length) {
3812
+ const E = st(v);
3813
+ return i(E, p) || v;
3804
3814
  } else
3805
- return g ? he(g).top - t + g.offsetHeight > h ? It(g, t, h) : g : st(p.parentElement, t, h);
3815
+ return v ? he(v).top - t + v.offsetHeight > p ? It(v, t, p) : v : it(h.parentElement, t, p);
3806
3816
  } else {
3807
- const g = getComputedStyle(p);
3808
- if (h + (parseFloat(g.fontSize) + (parseFloat(g.lineHeight) - parseFloat(g.fontSize)) / 2) > s)
3809
- return st(p, t, h);
3810
- const E = Ts(p, s - h, s, l);
3817
+ const v = getComputedStyle(h);
3818
+ if (p + (parseFloat(v.fontSize) + (parseFloat(v.lineHeight) - parseFloat(v.fontSize)) / 2) > s)
3819
+ return it(h, t, p);
3820
+ const E = Ts(h, s - p, s, l);
3811
3821
  if (E)
3812
3822
  return Ve(E);
3813
- if (p.children.length) {
3814
- const W = nt(p);
3815
- return n(W, s);
3823
+ if (h.children.length) {
3824
+ const W = st(h);
3825
+ return i(W, s);
3816
3826
  } else
3817
- return It(p, t, s);
3827
+ return It(h, t, s);
3818
3828
  }
3819
- }, c = n([e]);
3820
- return { cut: Ss(c), targetEl: c };
3829
+ }, n = i([e]);
3830
+ return { cut: Ss(n), targetEl: n };
3821
3831
  }, Is = (e) => {
3822
- const { el: t, data: a, column: l, backColumn: n, getColSize: c, change: o } = e;
3832
+ const { el: t, data: a, column: l, backColumn: i, getColSize: n, change: o } = e;
3823
3833
  if (!t || !a.length) {
3824
3834
  o([], !0);
3825
3835
  return;
3826
3836
  }
3827
3837
  console.time("layout");
3828
3838
  const s = he(t).top;
3829
- let r = {}, d = 0, p = 0;
3830
- const N = (g) => {
3831
- const E = g % (l + n), W = Math.floor(g / (l + n)) * 2 + (E >= l ? 1 : 0), H = c(g, W);
3832
- r = {
3839
+ let c = {}, d = 0, h = 0;
3840
+ const B = (v) => {
3841
+ const E = v % (l + i), W = Math.floor(v / (l + i)) * 2 + (E >= l ? 1 : 0), N = n(v, W);
3842
+ c = {
3833
3843
  top: s,
3834
- width: parseFloat(H.width),
3835
- height: parseFloat(H.height)
3844
+ width: parseFloat(N.width),
3845
+ height: parseFloat(N.height)
3836
3846
  };
3837
3847
  };
3838
- let h = [], F = 0;
3839
- const Q = () => {
3840
- N(h.length), t.style.width = `${r.width}px`, h.push({
3848
+ let p = [], F = 0;
3849
+ const O = () => {
3850
+ B(p.length), t.style.width = `${c.width}px`, p.push({
3841
3851
  top: 0,
3842
3852
  data: [],
3843
- width: r.width,
3844
- height: r.height
3845
- }), o([...h]);
3853
+ width: c.width,
3854
+ height: c.height
3855
+ }), o([...p]);
3846
3856
  };
3847
- Q();
3848
- const j = (g) => {
3849
- const E = getComputedStyle(g);
3850
- return he(g).top - r.top + parseFloat(E.borderTop) + parseFloat(E.paddingTop) + parseFloat(E.lineHeight) > h[h.length - 1].height;
3851
- }, $ = (g) => {
3852
- const E = getComputedStyle(g);
3853
- return he(g).top + g.offsetHeight - r.top - (g.dataset.block === ke ? 0 : parseFloat(E.paddingBottom) - parseFloat(E.borderBottom)) <= h[h.length - 1].height;
3854
- }, z = (g = JSON.parse(JSON.stringify(a[F] || {}))) => {
3855
- if (F >= a.length || !Object.keys(g).length) {
3856
- o([...h], !0), console.timeEnd("layout"), h = [], d = 0;
3857
+ O();
3858
+ const j = (v) => {
3859
+ const E = getComputedStyle(v);
3860
+ return he(v).top - c.top + parseFloat(E.borderTop) + parseFloat(E.paddingTop) + parseFloat(E.lineHeight) > p[p.length - 1].height;
3861
+ }, T = (v) => {
3862
+ const E = getComputedStyle(v);
3863
+ return he(v).top + v.offsetHeight - c.top - (v.dataset.block === ke ? 0 : parseFloat(E.paddingBottom) - parseFloat(E.borderBottom)) <= p[p.length - 1].height;
3864
+ }, z = (v = JSON.parse(JSON.stringify(a[F] || {}))) => {
3865
+ if (F >= a.length || !Object.keys(v).length) {
3866
+ o([...p], !0), console.timeEnd("layout"), p = [], d = 0;
3857
3867
  return;
3858
3868
  }
3859
- h[h.length - 1].data.push({ ...g }), o([...h]), window.requestAnimationFrame(() => {
3860
- const E = Tt(g.__tag__, t), W = !g.isHidden && he(E);
3861
- let H = null;
3862
- if (p) {
3863
- const _ = E.querySelector(`*[data-hutkey="${p}"]`), C = he(_);
3864
- h[h.length - 1].top = r.top - C.top, h[h.length - 1].height = r.height - h[h.length - 1].top, p = 0;
3869
+ p[p.length - 1].data.push({ ...v }), o([...p]), window.requestAnimationFrame(() => {
3870
+ const E = Tt(v.__tag__, t), W = !v.isHidden && he(E);
3871
+ let N = null;
3872
+ if (h) {
3873
+ const _ = E.querySelector(`*[data-hutkey="${h}"]`), C = he(_);
3874
+ p[p.length - 1].top = c.top - C.top, p[p.length - 1].height = c.height - p[p.length - 1].top, h = 0;
3865
3875
  }
3866
- if (W && W.height + W.top - r.top > h[h.length - 1].height)
3867
- if (g.problemType)
3868
- h[h.length - 1].data.pop(), Q(), z({ ...g });
3869
- else if ($(E))
3870
- Q(), F++, z();
3876
+ if (W && W.height + W.top - c.top > p[p.length - 1].height)
3877
+ if (v.problemType)
3878
+ p[p.length - 1].data.pop(), O(), z({ ...v });
3879
+ else if (T(E))
3880
+ O(), F++, z();
3871
3881
  else if (j(E))
3872
- h[h.length - 1].data.pop(), Q(), z({ ...g });
3882
+ p[p.length - 1].data.pop(), O(), z({ ...v });
3873
3883
  else {
3874
- H = Lt(E, r.top, h[h.length - 1].height, h.length % (l + n) >= l);
3875
- const _ = E.querySelector(`*[data-content="${g.id}"]`);
3876
- h[h.length - 1].height = he(H.cut).top - r.top, Q(), _ != null && _.contains(H.cut) ? (p = Date.now(), H.cut.dataset.hutkey = p, z({ ...g, content: _.innerHTML })) : (h[h.length - 1].data.pop(), z({ ...g }));
3884
+ N = Lt(E, c.top, p[p.length - 1].height, p.length % (l + i) >= l);
3885
+ const _ = E.querySelector(`*[data-content="${v.id}"]`);
3886
+ p[p.length - 1].height = he(N.cut).top - c.top, O(), _ != null && _.contains(N.cut) ? (h = Date.now(), N.cut.dataset.hutkey = h, z({ ...v, content: _.innerHTML })) : (p[p.length - 1].data.pop(), z({ ...v }));
3877
3887
  }
3878
3888
  else {
3879
3889
  let _ = [], C = [];
3880
- g.children.some((w, R) => {
3881
- const B = Tt(w.__tag__, t), ye = he(B);
3890
+ v.children.some((w, G) => {
3891
+ const H = Tt(w.__tag__, t), ye = he(H);
3882
3892
  if (d) {
3883
- const pe = B.querySelector(`*[data-cutkey="${d}"]`), ie = he(pe);
3884
- h[h.length - 1].top = r.top - ie.top, h[h.length - 1].height = r.height - h[h.length - 1].top, d = 0;
3893
+ const pe = H.querySelector(`*[data-cutkey="${d}"]`), ie = he(pe);
3894
+ p[p.length - 1].top = c.top - ie.top, p[p.length - 1].height = c.height - p[p.length - 1].top, d = 0;
3885
3895
  }
3886
- if (ye.height + ye.top - r.top > h[h.length - 1].height) {
3887
- if ($(B))
3888
- _.push(w), C = R < g.children.length - 1 ? g.children.slice(R + 1) : [];
3889
- else if (j(B))
3890
- C = g.children.slice(R);
3896
+ if (ye.height + ye.top - c.top > p[p.length - 1].height) {
3897
+ if (T(H))
3898
+ _.push(w), C = G < v.children.length - 1 ? v.children.slice(G + 1) : [];
3899
+ else if (j(H))
3900
+ C = v.children.slice(G);
3891
3901
  else {
3892
- H = Lt(B, r.top, h[h.length - 1].height, h.length % (l + n) >= l);
3893
- const pe = B.querySelector(`*[data-content="${w.id}"]`);
3894
- if (B === H.targetEl)
3895
- _.push(w), C = R < g.children.length - 1 ? g.children.slice(R + 1) : [];
3896
- else if (pe && pe.contains(H.cut))
3897
- d = Date.now(), H.cut.dataset.cutkey = d, w.content = pe.innerHTML, _.push(w), C = [{ ...w, content: pe.innerHTML }, ...R < g.children.length - 1 ? g.children.slice(R + 1) : []], h[h.length - 1].height = he(H.cut).top - r.top;
3902
+ N = Lt(H, c.top, p[p.length - 1].height, p.length % (l + i) >= l);
3903
+ const pe = H.querySelector(`*[data-content="${w.id}"]`);
3904
+ if (H === N.targetEl)
3905
+ _.push(w), C = G < v.children.length - 1 ? v.children.slice(G + 1) : [];
3906
+ else if (pe && pe.contains(N.cut))
3907
+ d = Date.now(), N.cut.dataset.cutkey = d, w.content = pe.innerHTML, _.push(w), C = [{ ...w, content: pe.innerHTML }, ...G < v.children.length - 1 ? v.children.slice(G + 1) : []], p[p.length - 1].height = he(N.cut).top - c.top;
3898
3908
  else {
3899
3909
  if (!C.length) {
3900
3910
  let ie = { ...w };
3901
3911
  switch (w.problemType) {
3902
- case at.slove:
3903
- const fe = B.querySelector(`*[data-area="${w.id}"]`);
3904
- fe != null && fe.contains(H.cut) && (d = Date.now(), H.cut.dataset.cutkey = d, w.answerArea = fe.innerHTML), B.contains(H.targetEl) && (w.chunk += 1);
3912
+ case lt.slove:
3913
+ const fe = H.querySelector(`*[data-area="${w.id}"]`);
3914
+ fe != null && fe.contains(N.cut) && (d = Date.now(), N.cut.dataset.cutkey = d, w.answerArea = fe.innerHTML), H.contains(N.targetEl) && (w.chunk += 1);
3905
3915
  break;
3906
- case at.art:
3907
- const ue = B.querySelector(`*[data-bart="${w.id}"]`), M = H.targetEl.dataset.block === ke && H.targetEl.dataset.size ? H.targetEl : null, S = B.querySelector(`*[data-aart="${w.id}"]`);
3908
- if (ue != null && ue.contains(H.cut))
3909
- d = Date.now(), H.cut.dataset.cutkey = d, w.beforeArt = ue == null ? void 0 : ue.innerHTML, ie.beforeGuide = "", ie.afterArt = "", ie.endAnswerLen = -1;
3910
- else if (M) {
3911
- const T = parseInt(M.dataset.size);
3916
+ case lt.art:
3917
+ const ue = H.querySelector(`*[data-bart="${w.id}"]`), D = N.targetEl.dataset.block === ke && N.targetEl.dataset.size ? N.targetEl : null, $ = H.querySelector(`*[data-aart="${w.id}"]`);
3918
+ if (ue != null && ue.contains(N.cut))
3919
+ d = Date.now(), N.cut.dataset.cutkey = d, w.beforeArt = ue == null ? void 0 : ue.innerHTML, ie.beforeGuide = "", ie.afterArt = "", ie.endAnswerLen = -1;
3920
+ else if (D) {
3921
+ const S = parseInt(D.dataset.size);
3912
3922
  if (!w.artBlock)
3913
- if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen > T) {
3914
- const K = B.querySelector(`*[data-guide="${w.id}"]`), we = he(K);
3915
- if (we.height + we.top - r.top > r.height) {
3923
+ if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen > S) {
3924
+ const K = H.querySelector(`*[data-guide="${w.id}"]`), we = he(K);
3925
+ if (we.height + we.top - c.top > c.height) {
3916
3926
  K.innerHTML = w.beforeGuide.split("").map((be) => `<span>${be}</span>`).join("");
3917
- const ae = he(M).top + M.offsetHeight, re = [...Array.from(K.children)].findIndex((be) => he(be).top > ae);
3927
+ const ae = he(D).top + D.offsetHeight, re = [...Array.from(K.children)].findIndex((be) => he(be).top > ae);
3918
3928
  ie.beforeGuide = w.beforeGuide.substring(0, re), w.beforeGuide = w.beforeGuide.substring(re);
3919
3929
  } else
3920
3930
  w.beforeGuide = "";
3921
3931
  } else
3922
3932
  w.beforeGuide = "";
3923
- ie.endAnswerLen = T, w.startAnswerLen = T;
3933
+ ie.endAnswerLen = S, w.startAnswerLen = S;
3924
3934
  } else
3925
- S != null && S.contains(H.cut) ? (d = Date.now(), H.cut.dataset.cutkey = d, w.beforeArt = "", w.beforeGuide = "", w.startAnswerLen = 1, w.endAnswerLen = -1, w.afterArt = S.innerHTML) : H.targetEl === ue ? (ie.endAnswerLen = -1, ie.beforeGuide = "", ie.afterArt = "", w.beforeArt = "") : (ue == null ? void 0 : ue.previousElementSibling) === H.cut && (ie.endAnswerLen = -1, ie.beforeArt = "", ie.beforeGuide = "", ie.afterArt = "");
3926
- B.contains(H.targetEl) && (w.chunk += 1);
3935
+ $ != null && $.contains(N.cut) ? (d = Date.now(), N.cut.dataset.cutkey = d, w.beforeArt = "", w.beforeGuide = "", w.startAnswerLen = 1, w.endAnswerLen = -1, w.afterArt = $.innerHTML) : N.targetEl === ue ? (ie.endAnswerLen = -1, ie.beforeGuide = "", ie.afterArt = "", w.beforeArt = "") : (ue == null ? void 0 : ue.previousElementSibling) === N.cut && (ie.endAnswerLen = -1, ie.beforeArt = "", ie.beforeGuide = "", ie.afterArt = "");
3936
+ H.contains(N.targetEl) && (w.chunk += 1);
3927
3937
  break;
3928
3938
  }
3929
- B.contains(H.targetEl) && _.push(ie), d && (h[h.length - 1].height = he(H.cut).top - r.top);
3939
+ H.contains(N.targetEl) && _.push(ie), d && (p[p.length - 1].height = he(N.cut).top - c.top);
3930
3940
  }
3931
- C = [w, ...R < g.children.length - 1 ? g.children.slice(R + 1) : []];
3941
+ C = [w, ...G < v.children.length - 1 ? v.children.slice(G + 1) : []];
3932
3942
  }
3933
3943
  }
3934
3944
  return !0;
3935
3945
  } else
3936
3946
  _.push(w);
3937
- }), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, C.length ? (Q(), z({ ...g, isHidden: !0, children: C })) : (o([...h]), F++, z());
3947
+ }), p[p.length - 1].data[p[p.length - 1].data.length - 1].children = _, C.length ? (O(), z({ ...v, isHidden: !0, children: C })) : (o([...p]), F++, z());
3938
3948
  }
3939
3949
  });
3940
3950
  };
3941
3951
  z();
3942
3952
  }, zt = window.CKEDITOR;
3943
3953
  zt.disableAutoInline = !0;
3944
- const pt = `dx${Math.random().toString(32).substring(2)}`;
3954
+ const mt = `dx${Math.random().toString(32).substring(2)}`;
3945
3955
  function Ls(e, t) {
3946
- return zt[e](pt, {
3956
+ return zt[e](mt, {
3947
3957
  filebrowserImageUploadUrl: `${t}ckeditor/uploadImg`,
3948
3958
  uploadUrl: `${t}ckeditor/uploadImg`
3949
3959
  });
@@ -3957,71 +3967,71 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3957
3967
  },
3958
3968
  emits: ["change", "focus", "blur"],
3959
3969
  setup(e, { emit: t }) {
3960
- const a = e, l = Wt("ckeditorOrigin", ""), n = Y();
3961
- De(() => a.readonly, () => c()), Xe(() => c());
3962
- const c = () => {
3970
+ const a = e, l = Wt("ckeditorOrigin", ""), i = q();
3971
+ Me(() => a.readonly, () => n()), Xe(() => n());
3972
+ const n = () => {
3963
3973
  if (window.CKEDITOR) {
3964
3974
  if (a.readonly) {
3965
- n.value && (n.value.destroy(), n.value = null);
3975
+ i.value && (i.value.destroy(), i.value = null);
3966
3976
  return;
3967
3977
  }
3968
3978
  Je(() => {
3969
- n.value = Ls("inline", l), n.value && n.value.on("instanceReady", (d) => {
3970
- n.value.setData(a.value);
3979
+ i.value = Ls("inline", l), i.value && i.value.on("instanceReady", (d) => {
3980
+ i.value.setData(a.value);
3971
3981
  });
3972
3982
  });
3973
3983
  } else {
3974
3984
  const d = document.createElement("script");
3975
3985
  d.type = "text/javascript", document.body.appendChild(d), d.onload = () => {
3976
- c();
3986
+ n();
3977
3987
  }, d.src = "https://uat.ixueye.vip/ckeditor/ckeditor.js";
3978
3988
  }
3979
3989
  }, o = () => {
3980
3990
  t("blur");
3981
- const d = r(n.value.getData());
3991
+ const d = c(i.value.getData());
3982
3992
  d !== a.value && t("change", d, a.name);
3983
3993
  }, s = () => {
3984
3994
  t("focus");
3985
- }, r = (d) => {
3986
- const p = document.createElement("div");
3987
- p.innerHTML = d, [...Array.from(p.querySelectorAll("*"))].forEach((h) => {
3988
- const F = window.getComputedStyle(h);
3989
- (F.display === "none" || F.width === "0px" && F.height === "0px" || F.opacity === "0" || F.visibility === "hidden") && h.remove();
3995
+ }, c = (d) => {
3996
+ const h = document.createElement("div");
3997
+ h.innerHTML = d, [...Array.from(h.querySelectorAll("*"))].forEach((p) => {
3998
+ const F = window.getComputedStyle(p);
3999
+ (F.display === "none" || F.width === "0px" && F.height === "0px" || F.opacity === "0" || F.visibility === "hidden") && p.remove();
3990
4000
  });
3991
- const N = (h = p) => {
3992
- [...Array.from(h.childNodes)].forEach((F) => {
3993
- var Q;
4001
+ const B = (p = h) => {
4002
+ [...Array.from(p.childNodes)].forEach((F) => {
4003
+ var O;
3994
4004
  if (F.nodeType === Node.ELEMENT_NODE && F.children.length)
3995
- N(F);
4005
+ B(F);
3996
4006
  else if (F.nodeType === Node.TEXT_NODE) {
3997
4007
  const j = document.createElement("span");
3998
- j.textContent = F.textContent, window.REGULAR.underscore.test(F.textContent || "") && (window.getComputedStyle(F.parentNode).wordBreak !== "break-all" || !(F.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (F.textContent || "").length > 5 && (j.innerHTML = (F.textContent || "").replace(window.REGULAR.underscore, (z) => z.length > 5 ? `<span style="word-break: break-all">${z}</span>` : z)), (Q = F.parentElement) == null || Q.replaceChild(j, F);
4008
+ j.textContent = F.textContent, window.REGULAR.underscore.test(F.textContent || "") && (window.getComputedStyle(F.parentNode).wordBreak !== "break-all" || !(F.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (F.textContent || "").length > 5 && (j.innerHTML = (F.textContent || "").replace(window.REGULAR.underscore, (z) => z.length > 5 ? `<span style="word-break: break-all">${z}</span>` : z)), (O = F.parentElement) == null || O.replaceChild(j, F);
3999
4009
  }
4000
4010
  });
4001
4011
  };
4002
- return N(), p.innerHTML;
4012
+ return B(), h.innerHTML;
4003
4013
  };
4004
- return (d, p) => (i(), u("div", Fs, [
4005
- a.readonly ? (i(), V(Ae, {
4014
+ return (d, h) => (r(), u("div", Fs, [
4015
+ a.readonly ? (r(), V(Ae, {
4006
4016
  key: 1,
4007
4017
  data: a.value,
4008
4018
  class: "raw_view"
4009
- }, null, 8, ["data"])) : (i(), u("div", {
4019
+ }, null, 8, ["data"])) : (r(), u("div", {
4010
4020
  key: 0,
4011
4021
  class: "overflow-auto outline-none whitespace-normal editor_view",
4012
4022
  disabled: a.readonly,
4013
4023
  contentEditable: !a.readonly,
4014
- id: x(pt),
4024
+ id: x(mt),
4015
4025
  onFocus: s,
4016
4026
  onBlur: o
4017
4027
  }, null, 40, Es))
4018
4028
  ]));
4019
4029
  }
4020
4030
  });
4021
- const Ms = /* @__PURE__ */ de(Ps, [["__scopeId", "data-v-1398ac85"]]);
4031
+ const Ds = /* @__PURE__ */ de(Ps, [["__scopeId", "data-v-1398ac85"]]);
4022
4032
  let Ye = (e) => {
4023
4033
  };
4024
- const Ds = {
4034
+ const Ms = {
4025
4035
  updated: function(e, t) {
4026
4036
  document.body.removeEventListener("click", Ye), Ye = (a) => {
4027
4037
  !e.contains(a.target) && t.value && t.value(a);
@@ -4031,27 +4041,27 @@ const Ds = {
4031
4041
  document.body.removeEventListener("click", Ye);
4032
4042
  }
4033
4043
  };
4034
- let ot = null;
4044
+ let at = null;
4035
4045
  const As = {
4036
4046
  mounted: (e, t) => {
4037
- let a = {}, l = !1, n = !1, c = e.offsetParent, o = {}, s = {};
4038
- const r = e.querySelector(".move-target") || e;
4039
- r.style.cursor = "move", r.addEventListener("mousedown", (d) => {
4040
- l = !0, n = !!e.dataset.safe, c = e.offsetParent;
4041
- const p = window.getComputedStyle(e);
4042
- a = { x: d.clientX, y: d.clientY }, o = { x: parseInt(p.left), y: parseInt(p.top) };
4047
+ let a = {}, l = !1, i = !1, n = e.offsetParent, o = {}, s = {};
4048
+ const c = e.querySelector(".move-target") || e;
4049
+ c.style.cursor = "move", c.addEventListener("mousedown", (d) => {
4050
+ l = !0, i = !!e.dataset.safe, n = e.offsetParent;
4051
+ const h = window.getComputedStyle(e);
4052
+ a = { x: d.clientX, y: d.clientY }, o = { x: parseInt(h.left), y: parseInt(h.top) };
4043
4053
  }), document.addEventListener("mouseup", (d) => {
4044
4054
  l = !1;
4045
- }), ot = (d) => {
4055
+ }), at = (d) => {
4046
4056
  if (!l || e.getAttribute("disabled") === "true")
4047
4057
  return;
4048
4058
  d.stopPropagation(), d.preventDefault(), s = { x: d.clientX, y: d.clientY };
4049
- const p = n ? Math.min(Math.max(s.x - a.x + o.x, 0), c.offsetWidth - e.offsetWidth) : s.x - a.x + o.x, N = n ? Math.min(Math.max(s.y - a.y + o.y, 0), c.offsetHeight - e.offsetHeight) : s.y - a.y + o.y;
4050
- e.style.left = `${p}px`, e.style.top = `${N}px`, t.value && typeof t.value == "function" && t.value({ x: p, y: N });
4051
- }, document.addEventListener("mousemove", ot);
4059
+ const h = i ? Math.min(Math.max(s.x - a.x + o.x, 0), n.offsetWidth - e.offsetWidth) : s.x - a.x + o.x, B = i ? Math.min(Math.max(s.y - a.y + o.y, 0), n.offsetHeight - e.offsetHeight) : s.y - a.y + o.y;
4060
+ e.style.left = `${h}px`, e.style.top = `${B}px`, t.value && typeof t.value == "function" && t.value({ x: h, y: B });
4061
+ }, document.addEventListener("mousemove", at);
4052
4062
  },
4053
4063
  unmounted: () => {
4054
- document.removeEventListener("mousemove", ot);
4064
+ document.removeEventListener("mousemove", at);
4055
4065
  }
4056
4066
  }, Ns = ["onMousedown", "data-block"], Bs = ["src"], Os = { class: "absolute right-2 bottom-2 w-12 h-12 bg-gray z-3 flex items-center justify-center rounded-tl-lg text-warn" }, zs = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, Hs = ["onMousedown"], Rs = ["onMousedown"], Ws = ["disabled", "onMousedown", "data-block"], 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" }, Ys = { class: "absolute left-0 top-0 w-full h-full border-2 border-current" }, qs = ["onMousedown"], Qs = /* @__PURE__ */ ee({
4057
4067
  __name: "absItem",
@@ -4063,7 +4073,7 @@ const As = {
4063
4073
  },
4064
4074
  emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
4065
4075
  setup(e, { emit: t }) {
4066
- const a = e, l = Ds, n = As, c = [
4076
+ const a = e, l = Ms, i = As, n = [
4067
4077
  { left: "0", top: "0", cursor: "nwse-resize" },
4068
4078
  { left: "50%", top: "0", cursor: "ns-resize" },
4069
4079
  { left: "100%", top: "0", cursor: "nesw-resize" },
@@ -4072,49 +4082,49 @@ const As = {
4072
4082
  { left: "0", top: "100%", cursor: "nesw-resize" },
4073
4083
  { left: "50%", top: "100%", cursor: "ns-resize" },
4074
4084
  { left: "100%", top: "100%", cursor: "nwse-resize" }
4075
- ], o = Y({}), s = Y(), r = Y(0), d = Y(0), p = Y(), N = Y(), h = Y({}), F = Y(!1), Q = Y(), j = Y(), $ = Y(), z = A(() => a.imgData.map((M) => ({
4076
- ...M,
4077
- top: M.top - Math.floor(M.top / (b[a.layout.paper].height + a.pageMargin)) * a.pageMargin
4078
- }))), g = A(() => a.txtData.map((M) => ({
4079
- ...M,
4080
- top: M.top - Math.floor(M.top / (b[a.layout.paper].height + a.pageMargin)) * a.pageMargin
4081
- }))), E = A(() => Q.value ? Q.value.split("-")[0] === "img" ? z.value.find((S) => S.key === Q.value) : g.value.find((S) => S.key === Q.value) : null), W = A(() => E.value ? { [E.value.key]: { ...s.value } } : {});
4085
+ ], o = q({}), s = q(), c = q(0), d = q(0), h = q(), B = q(), p = q({}), F = q(!1), O = q(), j = q(), T = q(), z = A(() => a.imgData.map((D) => ({
4086
+ ...D,
4087
+ top: D.top - Math.floor(D.top / (g[a.layout.paper].height + a.pageMargin)) * a.pageMargin
4088
+ }))), v = A(() => a.txtData.map((D) => ({
4089
+ ...D,
4090
+ top: D.top - Math.floor(D.top / (g[a.layout.paper].height + a.pageMargin)) * a.pageMargin
4091
+ }))), E = A(() => O.value ? O.value.split("-")[0] === "img" ? z.value.find(($) => $.key === O.value) : v.value.find(($) => $.key === O.value) : null), W = A(() => E.value ? { [E.value.key]: { ...s.value } } : {});
4082
4092
  Xe(() => {
4083
- p.value = document.body.querySelector(".__layout__");
4093
+ h.value = document.body.querySelector(".__layout__");
4084
4094
  });
4085
- const H = (M) => {
4086
- s.value = { ...E.value, left: Math.max(M.x, 0), top: Math.max(M.y, 0) }, clearTimeout(N.value), N.value = setTimeout(() => {
4087
- var S;
4088
- ((S = E.value) == null ? void 0 : S.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
4095
+ const N = (D) => {
4096
+ s.value = { ...E.value, left: Math.max(D.x, 0), top: Math.max(D.y, 0) }, clearTimeout(B.value), B.value = setTimeout(() => {
4097
+ var $;
4098
+ (($ = E.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
4089
4099
  }, 400);
4090
- }, _ = (M) => {
4091
- F.value = M;
4100
+ }, _ = (D) => {
4101
+ F.value = D;
4092
4102
  }, C = () => {
4093
- const M = E.value, S = M.left + M.width / 2, T = M.top + M.height / 2, K = p.value.getBoundingClientRect() || {};
4094
- h.value = { x: S + K.left, y: T + K.top }, p.value.addEventListener("mousemove", w), p.value.addEventListener("mouseleave", R), p.value.addEventListener("mouseup", R);
4095
- }, w = (M) => {
4096
- M.stopPropagation(), M.preventDefault();
4097
- const S = M.clientX - h.value.x, T = h.value.y - M.clientY, K = Math.atan2(T, S) / (Math.PI / 180);
4103
+ const D = E.value, $ = D.left + D.width / 2, S = D.top + D.height / 2, K = h.value.getBoundingClientRect() || {};
4104
+ p.value = { x: $ + K.left, y: S + K.top }, h.value.addEventListener("mousemove", w), h.value.addEventListener("mouseleave", G), h.value.addEventListener("mouseup", G);
4105
+ }, w = (D) => {
4106
+ D.stopPropagation(), D.preventDefault();
4107
+ const $ = D.clientX - p.value.x, S = p.value.y - D.clientY, K = Math.atan2(S, $) / (Math.PI / 180);
4098
4108
  s.value = { ...E.value, rotate: -parseInt(K.toString()) };
4099
- }, R = (M) => {
4100
- M.stopPropagation(), M.preventDefault(), t("changeAbsImgItem", s.value), p.value.removeEventListener("mousemove", w), p.value.removeEventListener("mouseleave", R), p.value.removeEventListener("mouseup", R);
4101
- }, B = (M, S) => {
4102
- var T;
4103
- M.stopPropagation(), r.value = S, o.value = { x: M.clientX, y: M.clientY, ...E.value }, ((T = E.value) == null ? void 0 : T.key.split("-")[0]) === "img" ? p.value.addEventListener("mousemove", ye) : p.value.addEventListener("mousemove", pe), p.value.addEventListener("mouseleave", ie), p.value.addEventListener("mouseup", ie);
4104
- }, ye = (M) => {
4105
- const S = { x: M.clientX - o.value.x, y: M.clientY - o.value.y }, T = { ...E.value }, K = S.x > S.y ? "width" : "height";
4109
+ }, G = (D) => {
4110
+ D.stopPropagation(), D.preventDefault(), t("changeAbsImgItem", s.value), h.value.removeEventListener("mousemove", w), h.value.removeEventListener("mouseleave", G), h.value.removeEventListener("mouseup", G);
4111
+ }, H = (D, $) => {
4112
+ var S;
4113
+ D.stopPropagation(), c.value = $, o.value = { x: D.clientX, y: D.clientY, ...E.value }, ((S = E.value) == null ? void 0 : S.key.split("-")[0]) === "img" ? h.value.addEventListener("mousemove", ye) : h.value.addEventListener("mousemove", pe), h.value.addEventListener("mouseleave", ie), h.value.addEventListener("mouseup", ie);
4114
+ }, ye = (D) => {
4115
+ const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...E.value }, K = $.x > $.y ? "width" : "height";
4106
4116
  [
4107
4117
  // 0
4108
4118
  () => {
4109
4119
  const ae = {
4110
- width: o.value.width - S.x,
4111
- height: o.value.width * (1 - S.y / o.value.height)
4120
+ width: o.value.width - $.x,
4121
+ height: o.value.width * (1 - $.y / o.value.height)
4112
4122
  }[K], re = {
4113
- width: o.value.height * (1 - S.x / o.value.width),
4114
- height: o.value.height - S.y
4123
+ width: o.value.height * (1 - $.x / o.value.width),
4124
+ height: o.value.height - $.y
4115
4125
  }[K];
4116
4126
  s.value = {
4117
- ...T,
4127
+ ...S,
4118
4128
  width: ae,
4119
4129
  height: re,
4120
4130
  left: o.value.left - (ae - o.value.width),
@@ -4123,9 +4133,9 @@ const As = {
4123
4133
  },
4124
4134
  // 1
4125
4135
  () => {
4126
- const ae = o.value.width * (1 - S.y / o.value.height), re = o.value.height - S.y;
4136
+ const ae = o.value.width * (1 - $.y / o.value.height), re = o.value.height - $.y;
4127
4137
  s.value = {
4128
- ...T,
4138
+ ...S,
4129
4139
  width: ae,
4130
4140
  height: re,
4131
4141
  left: o.value.left - (ae - o.value.width) / 2,
@@ -4135,14 +4145,14 @@ const As = {
4135
4145
  // 2
4136
4146
  () => {
4137
4147
  const ae = {
4138
- width: o.value.height * (1 + S.x / o.value.width),
4139
- height: o.value.height - S.y
4148
+ width: o.value.height * (1 + $.x / o.value.width),
4149
+ height: o.value.height - $.y
4140
4150
  }[K];
4141
4151
  s.value = {
4142
- ...T,
4152
+ ...S,
4143
4153
  width: {
4144
- width: o.value.width + S.x,
4145
- height: o.value.width * (1 - S.y / o.value.height)
4154
+ width: o.value.width + $.x,
4155
+ height: o.value.width * (1 - $.y / o.value.height)
4146
4156
  }[K],
4147
4157
  height: ae,
4148
4158
  top: o.value.top - (ae - o.value.height)
@@ -4150,9 +4160,9 @@ const As = {
4150
4160
  },
4151
4161
  // 3
4152
4162
  () => {
4153
- const ae = o.value.width - S.x, re = o.value.height * (1 - S.x / o.value.width);
4163
+ const ae = o.value.width - $.x, re = o.value.height * (1 - $.x / o.value.width);
4154
4164
  s.value = {
4155
- ...T,
4165
+ ...S,
4156
4166
  width: ae,
4157
4167
  height: re,
4158
4168
  left: o.value.left - (ae - o.value.width),
@@ -4161,9 +4171,9 @@ const As = {
4161
4171
  },
4162
4172
  // 4
4163
4173
  () => {
4164
- const ae = o.value.width + S.x, re = o.value.height * (1 + S.x / o.value.width);
4174
+ const ae = o.value.width + $.x, re = o.value.height * (1 + $.x / o.value.width);
4165
4175
  s.value = {
4166
- ...T,
4176
+ ...S,
4167
4177
  width: ae,
4168
4178
  height: re,
4169
4179
  top: o.value.top - (re - o.value.height) / 2
@@ -4172,14 +4182,14 @@ const As = {
4172
4182
  // 5
4173
4183
  () => {
4174
4184
  const ae = {
4175
- width: o.value.width - S.x,
4176
- height: o.value.width * (1 + S.y / o.value.height)
4185
+ width: o.value.width - $.x,
4186
+ height: o.value.width * (1 + $.y / o.value.height)
4177
4187
  }[K], re = {
4178
- width: o.value.height * (1 - S.x / o.value.width),
4179
- height: o.value.height + S.y
4188
+ width: o.value.height * (1 - $.x / o.value.width),
4189
+ height: o.value.height + $.y
4180
4190
  }[K];
4181
4191
  s.value = {
4182
- ...T,
4192
+ ...S,
4183
4193
  width: ae,
4184
4194
  height: re,
4185
4195
  left: o.value.left - (ae - o.value.width)
@@ -4187,9 +4197,9 @@ const As = {
4187
4197
  },
4188
4198
  // 6
4189
4199
  () => {
4190
- const ae = o.value.width * (1 + S.y / o.value.height), re = o.value.height + S.y;
4200
+ const ae = o.value.width * (1 + $.y / o.value.height), re = o.value.height + $.y;
4191
4201
  s.value = {
4192
- ...T,
4202
+ ...S,
4193
4203
  width: ae,
4194
4204
  height: re,
4195
4205
  left: o.value.left - (ae - o.value.width) / 2
@@ -4198,111 +4208,111 @@ const As = {
4198
4208
  // 7
4199
4209
  () => {
4200
4210
  const ae = {
4201
- width: o.value.width + S.x,
4202
- height: o.value.width * (1 + S.y / o.value.height)
4211
+ width: o.value.width + $.x,
4212
+ height: o.value.width * (1 + $.y / o.value.height)
4203
4213
  }[K], re = {
4204
- width: o.value.height * (1 + S.x / o.value.width),
4205
- height: o.value.height + S.y
4214
+ width: o.value.height * (1 + $.x / o.value.width),
4215
+ height: o.value.height + $.y
4206
4216
  }[K];
4207
4217
  s.value = {
4208
- ...T,
4218
+ ...S,
4209
4219
  width: ae,
4210
4220
  height: re
4211
4221
  };
4212
4222
  }
4213
- ][r.value]();
4214
- }, pe = (M) => {
4215
- const S = { x: M.clientX - o.value.x, y: M.clientY - o.value.y }, T = { ...E.value }, K = [
4223
+ ][c.value]();
4224
+ }, pe = (D) => {
4225
+ const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...E.value }, K = [
4216
4226
  {
4217
- ...T,
4218
- width: o.value.width - S.x,
4219
- height: o.value.height - S.y,
4220
- left: o.value.left + S.x,
4221
- top: o.value.top + S.y
4227
+ ...S,
4228
+ width: o.value.width - $.x,
4229
+ height: o.value.height - $.y,
4230
+ left: o.value.left + $.x,
4231
+ top: o.value.top + $.y
4222
4232
  },
4223
4233
  {
4224
- ...T,
4225
- height: o.value.height - S.y,
4226
- top: o.value.top + S.y
4234
+ ...S,
4235
+ height: o.value.height - $.y,
4236
+ top: o.value.top + $.y
4227
4237
  },
4228
4238
  {
4229
- ...T,
4230
- width: o.value.width + S.x,
4231
- height: o.value.height - S.y,
4232
- top: o.value.top + S.y
4239
+ ...S,
4240
+ width: o.value.width + $.x,
4241
+ height: o.value.height - $.y,
4242
+ top: o.value.top + $.y
4233
4243
  },
4234
4244
  {
4235
- ...T,
4236
- width: o.value.width - S.x,
4237
- left: o.value.left + S.x
4245
+ ...S,
4246
+ width: o.value.width - $.x,
4247
+ left: o.value.left + $.x
4238
4248
  },
4239
4249
  {
4240
- ...T,
4241
- width: o.value.width + S.x
4250
+ ...S,
4251
+ width: o.value.width + $.x
4242
4252
  },
4243
4253
  {
4244
- ...T,
4245
- width: o.value.width - S.x,
4246
- height: o.value.height + S.y,
4247
- left: o.value.left + S.x
4254
+ ...S,
4255
+ width: o.value.width - $.x,
4256
+ height: o.value.height + $.y,
4257
+ left: o.value.left + $.x
4248
4258
  },
4249
4259
  {
4250
- ...T,
4251
- height: o.value.height + S.y
4260
+ ...S,
4261
+ height: o.value.height + $.y
4252
4262
  },
4253
4263
  {
4254
- ...T,
4255
- width: o.value.width + S.x,
4256
- height: o.value.height + S.y
4264
+ ...S,
4265
+ width: o.value.width + $.x,
4266
+ height: o.value.height + $.y
4257
4267
  }
4258
4268
  ];
4259
- s.value = K[r.value];
4269
+ s.value = K[c.value];
4260
4270
  }, ie = () => {
4261
- var M;
4262
- p.value.removeEventListener("mousemove", ye), p.value.removeEventListener("mousemove", pe), p.value.removeEventListener("mouseleave", ie), p.value.removeEventListener("mouseup", ie), ((M = E.value) == null ? void 0 : M.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
4263
- }, fe = (M) => {
4264
- if (!M || M === E.value.content) {
4271
+ var D;
4272
+ h.value.removeEventListener("mousemove", ye), h.value.removeEventListener("mousemove", pe), h.value.removeEventListener("mouseleave", ie), h.value.removeEventListener("mouseup", ie), ((D = E.value) == null ? void 0 : D.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
4273
+ }, fe = (D) => {
4274
+ if (!D || D === E.value.content) {
4265
4275
  d.value++;
4266
4276
  return;
4267
4277
  }
4268
- t("changeAbsTxtItem", { ...E.value, content: M });
4269
- }, ue = (M, S) => {
4278
+ t("changeAbsTxtItem", { ...E.value, content: D });
4279
+ }, ue = (D, $) => {
4270
4280
  var K;
4271
- const T = document.body.querySelector(`.cke_editor_${pt}`);
4272
- !M && ((K = (S == null ? void 0 : S.target).dataset) != null && K.safe || [...j.value, ...$.value].find((we) => we.contains(S == null ? void 0 : S.target)) || T && window.getComputedStyle(T).display !== "none") || (Q.value = M == null ? void 0 : M.key, s.value = M ? { ...M } : null);
4281
+ const S = document.body.querySelector(`.cke_editor_${mt}`);
4282
+ !D && ((K = ($ == null ? void 0 : $.target).dataset) != null && K.safe || [...j.value, ...T.value].find((we) => we.contains($ == null ? void 0 : $.target)) || S && window.getComputedStyle(S).display !== "none") || (O.value = D == null ? void 0 : D.key, s.value = D ? { ...D } : null);
4273
4283
  };
4274
- return (M, S) => (i(), u(P, null, [
4275
- (i(!0), u(P, null, Z(z.value, (T) => {
4276
- var K, we, ae, re, be, v, I;
4277
- return gt((i(), u("div", {
4278
- key: T.id,
4284
+ return (D, $) => (r(), u(P, null, [
4285
+ (r(!0), u(P, null, Z(z.value, (S) => {
4286
+ var K, we, ae, re, be, b, I;
4287
+ return bt((r(), u("div", {
4288
+ key: S.id,
4279
4289
  ref_for: !0,
4280
4290
  ref_key: "imgViewList",
4281
4291
  ref: j,
4282
4292
  "data-safe": "true",
4283
- class: oe(["absolute", ((K = E.value) == null ? void 0 : K.key) === T.key ? "z-8" : "z-7"]),
4284
- style: q({ left: Math.max(((we = W.value[T.key]) == null ? void 0 : we.left) || T.left, 0) + "px", top: Math.max(((ae = W.value[T.key]) == null ? void 0 : ae.top) || T.top, 0) + "px", width: (((re = W.value[T.key]) == null ? void 0 : re.width) || T.width) + "px", height: (((be = W.value[T.key]) == null ? void 0 : be.height) || T.height) + "px", transform: `rotate(${((v = W.value[T.key]) == null ? void 0 : v.rotate) || T.rotate}deg)` }),
4285
- onMousedown: Le((le) => ue(T), ["stop"]),
4293
+ class: oe(["absolute", ((K = E.value) == null ? void 0 : K.key) === S.key ? "z-8" : "z-7"]),
4294
+ style: Q({ left: Math.max(((we = W.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = W.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = W.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = W.value[S.key]) == null ? void 0 : be.height) || S.height) + "px", transform: `rotate(${((b = W.value[S.key]) == null ? void 0 : b.rotate) || S.rotate}deg)` }),
4295
+ onMousedown: Le((le) => ue(S), ["stop"]),
4286
4296
  "data-block": x(Ee)
4287
4297
  }, [
4288
4298
  f("img", {
4289
- src: T.url
4299
+ src: S.url
4290
4300
  }, null, 8, Bs),
4291
- ((I = E.value) == null ? void 0 : I.key) === T.key ? (i(), u(P, { key: 0 }, [
4301
+ ((I = E.value) == null ? void 0 : I.key) === S.key ? (r(), u(P, { key: 0 }, [
4292
4302
  f("span", Os, [
4293
4303
  X(_e, {
4294
4304
  name: "close",
4295
4305
  width: 2,
4296
4306
  class: "cursor-pointer",
4297
- onClick: (le) => t("delAbsImgItem", T)
4307
+ onClick: (le) => t("delAbsImgItem", S)
4298
4308
  }, null, 8, ["onClick"])
4299
4309
  ]),
4300
4310
  f("div", zs, [
4301
- (i(), u(P, null, Z(8, (le, G) => f("div", {
4311
+ (r(), u(P, null, Z(8, (le, Y) => f("div", {
4302
4312
  key: le,
4303
4313
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4304
- style: q({ ...c[G], transform: "translate(-50%, -50%)" }),
4305
- onMousedown: Le((te) => B(te, G), ["stop"])
4314
+ style: Q({ ...n[Y], transform: "translate(-50%, -50%)" }),
4315
+ onMousedown: Le((te) => H(te, Y), ["stop"])
4306
4316
  }, null, 44, Hs)), 64))
4307
4317
  ]),
4308
4318
  f("span", {
@@ -4314,56 +4324,56 @@ const As = {
4314
4324
  width: 2
4315
4325
  })
4316
4326
  ], 40, Rs)
4317
- ], 64)) : D("", !0)
4327
+ ], 64)) : M("", !0)
4318
4328
  ], 46, Ns)), [
4319
- [x(n), H],
4329
+ [x(i), N],
4320
4330
  [x(l), (le) => ue(null, le)]
4321
4331
  ]);
4322
4332
  }), 128)),
4323
- (i(!0), u(P, null, Z(g.value, (T) => {
4324
- var K, we, ae, re, be, v, I;
4325
- return gt((i(), u("div", {
4326
- key: T.id,
4333
+ (r(!0), u(P, null, Z(v.value, (S) => {
4334
+ var K, we, ae, re, be, b, I;
4335
+ return bt((r(), u("div", {
4336
+ key: S.id,
4327
4337
  ref_for: !0,
4328
4338
  ref_key: "txtViewList",
4329
- ref: $,
4339
+ ref: T,
4330
4340
  disabled: F.value,
4331
4341
  "data-safe": "true",
4332
- class: oe(["absolute", ((K = E.value) == null ? void 0 : K.key) === T.key ? "z-8 bg-white" : "z-7"]),
4333
- style: q({ left: Math.max(((we = W.value[T.key]) == null ? void 0 : we.left) || T.left, 0) + "px", top: Math.max(((ae = W.value[T.key]) == null ? void 0 : ae.top) || T.top, 0) + "px", width: (((re = W.value[T.key]) == null ? void 0 : re.width) || T.width) + "px", height: (((be = W.value[T.key]) == null ? void 0 : be.height) || T.height) + "px" }),
4334
- onMousedown: Le((le) => ue(T), ["stop"]),
4342
+ class: oe(["absolute", ((K = E.value) == null ? void 0 : K.key) === S.key ? "z-8 bg-white" : "z-7"]),
4343
+ style: Q({ left: Math.max(((we = W.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = W.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = W.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = W.value[S.key]) == null ? void 0 : be.height) || S.height) + "px" }),
4344
+ onMousedown: Le((le) => ue(S), ["stop"]),
4335
4345
  "data-block": x(Ee)
4336
4346
  }, [
4337
- (i(), V(Ms, {
4347
+ (r(), V(Ds, {
4338
4348
  key: d.value,
4339
4349
  class: "border-0 relative z-4",
4340
- readonly: ((v = E.value) == null ? void 0 : v.key) !== T.key,
4341
- value: T.content,
4342
- name: T.id.toString(),
4350
+ readonly: ((b = E.value) == null ? void 0 : b.key) !== S.key,
4351
+ value: S.content,
4352
+ name: S.id.toString(),
4343
4353
  onChange: fe,
4344
- onFocus: S[0] || (S[0] = (le) => _(!0)),
4345
- onBlur: S[1] || (S[1] = (le) => _(!1))
4354
+ onFocus: $[0] || ($[0] = (le) => _(!0)),
4355
+ onBlur: $[1] || ($[1] = (le) => _(!1))
4346
4356
  }, null, 8, ["readonly", "value", "name"])),
4347
- ((I = E.value) == null ? void 0 : I.key) === T.key ? (i(), u(P, { key: 0 }, [
4357
+ ((I = E.value) == null ? void 0 : I.key) === S.key ? (r(), u(P, { key: 0 }, [
4348
4358
  f("span", Gs, [
4349
4359
  X(_e, {
4350
4360
  name: "close",
4351
4361
  width: 2,
4352
4362
  class: "cursor-pointer",
4353
- onClick: (le) => t("delAbsTxtItem", T)
4363
+ onClick: (le) => t("delAbsTxtItem", S)
4354
4364
  }, null, 8, ["onClick"])
4355
4365
  ]),
4356
4366
  f("div", Ys, [
4357
- (i(), u(P, null, Z(8, (le, G) => f("div", {
4367
+ (r(), u(P, null, Z(8, (le, Y) => f("div", {
4358
4368
  key: le,
4359
4369
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4360
- style: q({ ...c[G], transform: "translate(-50%, -50%)" }),
4361
- onMousedown: (te) => B(te, G)
4370
+ style: Q({ ...n[Y], transform: "translate(-50%, -50%)" }),
4371
+ onMousedown: (te) => H(te, Y)
4362
4372
  }, null, 44, qs)), 64))
4363
4373
  ])
4364
- ], 64)) : D("", !0)
4374
+ ], 64)) : M("", !0)
4365
4375
  ], 46, Ws)), [
4366
- [x(n), H],
4376
+ [x(i), N],
4367
4377
  [x(l), (le) => ue(null, le)]
4368
4378
  ]);
4369
4379
  }), 128))
@@ -4393,74 +4403,74 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4393
4403
  setup(e, { emit: t }) {
4394
4404
  const a = e;
4395
4405
  Gt("ckeditorOrigin", a.ckeditorOrigin);
4396
- const l = Y([]), n = Y([]), c = Y(2), o = Y(0), s = Y(0), r = Y(), d = Y([]), p = Y([]), N = Y([]), h = Y([]), F = A(() => a.data.map((v) => ({
4397
- ...v,
4406
+ const l = q([]), i = q([]), n = q(2), o = q(0), s = q(0), c = q(), d = q([]), h = q([]), B = q([]), p = q([]), F = A(() => a.data.map((b) => ({
4407
+ ...b,
4398
4408
  __tag__: Ct(),
4399
- rawChildren: v.children,
4400
- children: v.children.map((I) => ({ ...I, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: Ct() }))
4401
- }))), Q = A(() => {
4402
- const v = F.value[F.value.length - 1], I = v.rawChildren[v.rawChildren.length - 1];
4409
+ rawChildren: b.children,
4410
+ children: b.children.map((I) => ({ ...I, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: Ct() }))
4411
+ }))), O = A(() => {
4412
+ const b = F.value[F.value.length - 1], I = b.rawChildren[b.rawChildren.length - 1];
4403
4413
  return W.value && [m.slove].includes(I == null ? void 0 : I.problemType) && I.id;
4404
4414
  }), j = A(() => {
4405
- var v;
4406
- return a.layout.bindFlag && !!((v = Oe.find((I) => I.code === a.layout.paper)) != null && v.isMultCol);
4407
- }), $ = A(() => a.isFinal ? 0 : 10), z = A(() => a.isFinal ? 10 : 0), g = A(() => Math.floor(l.value.length / (a.layout.column + a.layout.backColumn)) * 2 + Math.ceil(l.value.length % (a.layout.column + a.layout.backColumn) / a.layout.column) || c.value || 1), E = A(() => Math.ceil(g.value / 2) * 2), W = A(() => ["sheet", "sheetCard"].includes(a.layout.mode)), H = A(() => W.value ? $e : { top: 0, right: 0, bottom: 0, left: 0 }), _ = A(() => typeof a.layout.padding == "number" ? { left: a.layout.padding, top: a.layout.padding, right: a.layout.padding, bottom: a.layout.padding } : a.layout.padding || ct[a.layout.mode][a.layout.paper]), C = A(() => b[a.layout.paper].width - _.value.left - _.value.right), w = A(() => b[a.layout.paper].height - _.value.top - _.value.bottom), R = A(() => (C.value - (s.value ? s.value + T(0) : 0) + T(0)) / a.layout.column - T(0)), B = A(() => ({
4408
- width: `${b[a.layout.paper].width}px`,
4409
- height: `${(b[a.layout.paper].height + $.value) * E.value - $.value}px`
4415
+ var b;
4416
+ return a.layout.bindFlag && !!((b = Oe.find((I) => I.code === a.layout.paper)) != null && b.isMultCol);
4417
+ }), T = A(() => a.isFinal ? 0 : 10), z = A(() => a.isFinal ? 10 : 0), v = A(() => Math.floor(l.value.length / (a.layout.column + a.layout.backColumn)) * 2 + Math.ceil(l.value.length % (a.layout.column + a.layout.backColumn) / a.layout.column) || n.value || 1), E = A(() => Math.ceil(v.value / 2) * 2), W = A(() => ["sheet", "sheetCard"].includes(a.layout.mode)), N = A(() => W.value ? $e : { top: 0, right: 0, bottom: 0, left: 0 }), _ = A(() => typeof a.layout.padding == "number" ? { left: a.layout.padding, top: a.layout.padding, right: a.layout.padding, bottom: a.layout.padding } : a.layout.padding || dt[a.layout.mode][a.layout.paper]), C = A(() => g[a.layout.paper].width - _.value.left - _.value.right), w = A(() => g[a.layout.paper].height - _.value.top - _.value.bottom), G = A(() => (C.value - (s.value ? s.value + S(0) : 0) + S(0)) / a.layout.column - S(0)), H = A(() => ({
4418
+ width: `${g[a.layout.paper].width}px`,
4419
+ height: `${(g[a.layout.paper].height + T.value) * E.value - T.value}px`
4410
4420
  })), ye = A(() => ({
4411
- width: `${b[a.layout.paper].width}px`,
4412
- height: `${b[a.layout.paper].height}px`,
4421
+ width: `${g[a.layout.paper].width}px`,
4422
+ height: `${g[a.layout.paper].height}px`,
4413
4423
  padding: `${_.value.top}px ${_.value.right}px ${_.value.bottom}px ${_.value.left}px`,
4414
- marginBottom: `${$.value}px`
4424
+ marginBottom: `${T.value}px`
4415
4425
  })), pe = A(() => {
4416
4426
  var I;
4417
- const v = (I = Oe.find((le) => le.code === a.layout.paper)) == null ? void 0 : I.isMultCol;
4427
+ const b = (I = Oe.find((le) => le.code === a.layout.paper)) == null ? void 0 : I.isMultCol;
4418
4428
  return {
4419
- left: `${_.value.left + (s.value ? s.value + T(0) : 0)}px`,
4429
+ left: `${_.value.left + (s.value ? s.value + S(0) : 0)}px`,
4420
4430
  top: `${_.value.top}px`,
4421
- width: v ? `${R.value}px` : `${C.value}px`
4431
+ width: b ? `${G.value}px` : `${C.value}px`
4422
4432
  };
4423
4433
  });
4424
- De(() => [JSON.stringify({ ...a.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(a.fontConfig), JSON.stringify(a.info), JSON.stringify(a.data)].join(""), () => {
4434
+ Me(() => [JSON.stringify({ ...a.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1 }), JSON.stringify(a.fontConfig), JSON.stringify(a.info), JSON.stringify(a.data)].join(""), () => {
4425
4435
  setTimeout(() => {
4426
4436
  re();
4427
4437
  }, 100);
4428
- }, { immediate: !0 }), De(() => j.value, () => {
4438
+ }, { immediate: !0 }), Me(() => j.value, () => {
4429
4439
  s.value = j.value ? 100 : 0;
4430
4440
  }, { immediate: !0 });
4431
- const ie = (v) => v % (a.layout.column + a.layout.backColumn) >= a.layout.column ? a.layout.backColumn : a.layout.column, fe = (v, I) => Math.floor(I / 2) * (a.layout.column + a.layout.backColumn) + I % 2 * a.layout.column + v, ue = (v) => {
4432
- const I = v % (a.layout.column + a.layout.backColumn);
4441
+ const ie = (b) => b % (a.layout.column + a.layout.backColumn) >= a.layout.column ? a.layout.backColumn : a.layout.column, fe = (b, I) => Math.floor(I / 2) * (a.layout.column + a.layout.backColumn) + I % 2 * a.layout.column + b, ue = (b) => {
4442
+ const I = b % (a.layout.column + a.layout.backColumn);
4433
4443
  return I >= a.layout.column ? I - a.layout.column : I;
4434
- }, M = (v, I) => {
4435
- v ? d.value[I] = v : d.value.splice(I, 1);
4436
- }, S = (v, I) => {
4437
- v ? p.value[I] = v : p.value.splice(I, 1);
4438
- }, T = (v) => Pt[a.layout.mode][a.layout.paper][ie(v)] || 0, K = (v, I = !1) => (C.value - (s.value ? s.value + T(v) : 0) + T(v)) / ie(v) - T(v) - H.value.left - H.value.right + (I ? H.value.left + H.value.right : 0), we = (v, I) => {
4439
- var G, te;
4440
- const le = v % (a.layout.column + a.layout.backColumn) ? 0 : ((G = N.value[Math.min(I, 1)]) == null ? void 0 : G.offsetHeight) || 0;
4444
+ }, D = (b, I) => {
4445
+ b ? d.value[I] = b : d.value.splice(I, 1);
4446
+ }, $ = (b, I) => {
4447
+ b ? h.value[I] = b : h.value.splice(I, 1);
4448
+ }, S = (b) => Pt[a.layout.mode][a.layout.paper][ie(b)] || 0, K = (b, I = !1) => (C.value - (s.value ? s.value + S(b) : 0) + S(b)) / ie(b) - S(b) - N.value.left - N.value.right + (I ? N.value.left + N.value.right : 0), we = (b, I) => {
4449
+ var Y, te;
4450
+ const le = b % (a.layout.column + a.layout.backColumn) ? 0 : ((Y = B.value[Math.min(I, 1)]) == null ? void 0 : Y.offsetHeight) || 0;
4441
4451
  return {
4442
- left: `${_.value.left + (I % 2 ? 0 : s.value ? s.value + T(v) : 0) + H.value.left + ue(v) * (K(v) + T(v) + H.value.left + H.value.right)}px`,
4443
- top: `${le + _.value.top + (!I && !v ? 0 : H.value.top)}px`,
4444
- width: `${K(v)}px`,
4445
- height: `${w.value - le - (!I && !v ? 0 : H.value.top) - H.value.bottom}px`,
4446
- contentHeight: `${(te = l.value[v]) == null ? void 0 : te.height}px`
4452
+ left: `${_.value.left + (I % 2 ? 0 : s.value ? s.value + S(b) : 0) + N.value.left + ue(b) * (K(b) + S(b) + N.value.left + N.value.right)}px`,
4453
+ top: `${le + _.value.top + (!I && !b ? 0 : N.value.top)}px`,
4454
+ width: `${K(b)}px`,
4455
+ height: `${w.value - le - (!I && !b ? 0 : N.value.top) - N.value.bottom}px`,
4456
+ contentHeight: `${(te = l.value[b]) == null ? void 0 : te.height}px`
4447
4457
  };
4448
- }, ae = (v, I = !1) => {
4449
- n.value = v.map((le) => ({ ...le })), I && (l.value = [...v], o.value += 1, Je(() => {
4450
- c.value = Math.ceil(l.value.length / a.layout.column), n.value = [], p.value.forEach((le, G) => {
4458
+ }, ae = (b, I = !1) => {
4459
+ i.value = b.map((le) => ({ ...le })), I && (l.value = [...b], o.value += 1, Je(() => {
4460
+ n.value = Math.ceil(l.value.length / a.layout.column), i.value = [], h.value.forEach((le, Y) => {
4451
4461
  var te, Se;
4452
- !le || !le.col || ((te = l.value[G]) != null && te.top ? le.col.style.marginTop = `${(Se = l.value[G]) == null ? void 0 : Se.top}px` : le.col.style.marginTop = "");
4462
+ !le || !le.col || ((te = l.value[Y]) != null && te.top ? le.col.style.marginTop = `${(Se = l.value[Y]) == null ? void 0 : Se.top}px` : le.col.style.marginTop = "");
4453
4463
  }), setTimeout(() => {
4454
4464
  const le = _s({
4455
4465
  config: {
4456
4466
  ...a.info,
4457
4467
  layout: a.layout,
4458
- pageTotal: g.value,
4468
+ pageTotal: v.value,
4459
4469
  bindWidth: s.value,
4460
- pageMargin: $.value,
4461
- pageDom: d.value.slice(0, g.value),
4462
- colDom: p.value.map((G) => G.col),
4463
- colViewDom: p.value.map((G) => G.colView)
4470
+ pageMargin: T.value,
4471
+ pageDom: d.value.slice(0, v.value),
4472
+ colDom: h.value.map((Y) => Y.col),
4473
+ colViewDom: h.value.map((Y) => Y.colView)
4464
4474
  },
4465
4475
  data: l.value
4466
4476
  });
@@ -4469,209 +4479,209 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4469
4479
  }));
4470
4480
  }, re = () => {
4471
4481
  Is({
4472
- el: r.value,
4482
+ el: c.value,
4473
4483
  data: F.value,
4474
4484
  column: a.layout.column,
4475
4485
  backColumn: a.layout.backColumn || a.layout.column,
4476
4486
  getColSize: we,
4477
4487
  change: ae
4478
4488
  });
4479
- }, be = (v = { type: U.page, value: {} }) => {
4480
- t("toggleActive", v);
4489
+ }, be = (b = { type: U.page, value: {} }) => {
4490
+ t("toggleActive", b);
4481
4491
  };
4482
- return (v, I) => {
4492
+ return (b, I) => {
4483
4493
  var le;
4484
- return i(), u(P, null, [
4485
- v.readonly ? D("", !0) : (i(), V($s, {
4494
+ return r(), u(P, null, [
4495
+ b.readonly ? M("", !0) : (r(), V($s, {
4486
4496
  key: 0,
4487
4497
  ColList: l.value,
4488
- ColDom: p.value.map((G) => G.col),
4489
- ImgData: v.imgData,
4490
- TxtData: v.txtData,
4491
- onDelAbsImgItem: I[0] || (I[0] = (G) => t("delAbsImgItem", G)),
4492
- onDelAbsTxtItem: I[1] || (I[1] = (G) => t("delAbsTxtItem", G)),
4493
- onChangeLayoutStatus: I[2] || (I[2] = (G) => t("changeLayoutStatus", G))
4498
+ ColDom: h.value.map((Y) => Y.col),
4499
+ ImgData: b.imgData,
4500
+ TxtData: b.txtData,
4501
+ onDelAbsImgItem: I[0] || (I[0] = (Y) => t("delAbsImgItem", Y)),
4502
+ onDelAbsTxtItem: I[1] || (I[1] = (Y) => t("delAbsTxtItem", Y)),
4503
+ onChangeLayoutStatus: I[2] || (I[2] = (Y) => t("changeLayoutStatus", Y))
4494
4504
  }, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
4495
4505
  f("div", {
4496
4506
  class: "flex-1 overflow-auto relative z-1",
4497
4507
  id: "alit-layout",
4498
- onClick: I[14] || (I[14] = (G) => be())
4508
+ onClick: I[14] || (I[14] = (Y) => be())
4499
4509
  }, [
4500
4510
  f("div", {
4501
4511
  class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
4502
4512
  ref_key: "rawDom",
4503
- ref: r
4513
+ ref: c
4504
4514
  }, [
4505
- n.value.length ? (i(!0), u(P, { key: 0 }, Z((le = n.value[n.value.length - 1]) == null ? void 0 : le.data, (G, te) => (i(), u(P, null, [
4506
- G.isHidden ? D("", !0) : (i(), V(St, {
4515
+ i.value.length ? (r(!0), u(P, { key: 0 }, Z((le = i.value[i.value.length - 1]) == null ? void 0 : le.data, (Y, te) => (r(), u(P, null, [
4516
+ Y.isHidden ? M("", !0) : (r(), V(St, {
4507
4517
  key: 0,
4508
- item: G,
4518
+ item: Y,
4509
4519
  showColBorder: W.value,
4510
- isFirst: !te && n.value.length === 1,
4511
- layout: v.layout
4520
+ isFirst: !te && i.value.length === 1,
4521
+ layout: b.layout
4512
4522
  }, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
4513
- W.value ? (i(), u("div", {
4523
+ W.value ? (r(), u("div", {
4514
4524
  key: 1,
4515
- class: oe([!G.children.length && G.problemType && "p-1 min-h-[2rem]"])
4525
+ class: oe([!Y.children.length && Y.problemType && "p-1 min-h-[2rem]"])
4516
4526
  }, [
4517
- (i(), V(Ge, {
4518
- data: G,
4519
- key: n.value.length,
4520
- layout: v.layout,
4521
- target: v.target,
4527
+ (r(), V(Ge, {
4528
+ data: Y,
4529
+ key: i.value.length,
4530
+ layout: b.layout,
4531
+ target: b.target,
4522
4532
  noPortrait: "",
4523
- width: K(n.value.length - 1) - 10
4533
+ width: K(i.value.length - 1) - 10
4524
4534
  }, null, 8, ["data", "layout", "target", "width"]))
4525
- ], 2)) : (i(), V(Ge, {
4526
- data: G,
4527
- key: n.value.length,
4528
- layout: v.layout,
4529
- target: v.target,
4530
- width: K(n.value.length - 1)
4535
+ ], 2)) : (r(), V(Ge, {
4536
+ data: Y,
4537
+ key: i.value.length,
4538
+ layout: b.layout,
4539
+ target: b.target,
4540
+ width: K(i.value.length - 1)
4531
4541
  }, null, 8, ["data", "layout", "target", "width"]))
4532
- ], 64))), 256)) : D("", !0)
4542
+ ], 64))), 256)) : M("", !0)
4533
4543
  ], 512),
4534
4544
  f("div", {
4535
- class: oe(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", v.layout.redFlag && "red_mode", v.readonly && "pointer-events-none"]),
4536
- style: q(B.value)
4545
+ 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"]),
4546
+ style: Q(H.value)
4537
4547
  }, [
4538
4548
  X(Us, {
4539
- imgData: v.imgData,
4540
- txtData: v.txtData,
4541
- layout: v.layout,
4549
+ imgData: b.imgData,
4550
+ txtData: b.txtData,
4551
+ layout: b.layout,
4542
4552
  pageMargin: z.value,
4543
- onChangeAbsImgItem: I[3] || (I[3] = (G) => t("changeAbsImgItem", G)),
4544
- onDelAbsImgItem: I[4] || (I[4] = (G) => t("delAbsImgItem", G)),
4545
- onChangeAbsTxtItem: I[5] || (I[5] = (G) => t("changeAbsTxtItem", G)),
4546
- onDelAbsTxtItem: I[6] || (I[6] = (G) => t("delAbsTxtItem", G))
4553
+ onChangeAbsImgItem: I[3] || (I[3] = (Y) => t("changeAbsImgItem", Y)),
4554
+ onDelAbsImgItem: I[4] || (I[4] = (Y) => t("delAbsImgItem", Y)),
4555
+ onChangeAbsTxtItem: I[5] || (I[5] = (Y) => t("changeAbsTxtItem", Y)),
4556
+ onDelAbsTxtItem: I[6] || (I[6] = (Y) => t("delAbsTxtItem", Y))
4547
4557
  }, null, 8, ["imgData", "txtData", "layout", "pageMargin"]),
4548
- (i(), u("svg", {
4549
- viewBox: `0 0 ${parseFloat(B.value.width)} ${parseFloat(B.value.height)}`,
4558
+ (r(), u("svg", {
4559
+ viewBox: `0 0 ${parseFloat(H.value.width)} ${parseFloat(H.value.height)}`,
4550
4560
  version: "1.1",
4551
4561
  xmlns: "http://www.w3.org/2000/svg",
4552
4562
  key: o.value
4553
4563
  }, [
4554
- (i(), u("foreignObject", Ks, [
4555
- (i(!0), u(P, null, Z(E.value, (G, te) => (i(), u("div", {
4556
- key: G,
4564
+ (r(), u("foreignObject", Ks, [
4565
+ (r(!0), u(P, null, Z(E.value, (Y, te) => (r(), u("div", {
4566
+ key: Y,
4557
4567
  class: "bg-white relative flex justify-between overflow-hidden box-border",
4558
4568
  ref_for: !0,
4559
- ref: (Se) => M(Se, te),
4560
- style: q(ye.value)
4569
+ ref: (Se) => D(Se, te),
4570
+ style: Q(ye.value)
4561
4571
  }, [
4562
- te < g.value ? (i(), u(P, { key: 0 }, [
4572
+ te < v.value ? (r(), u(P, { key: 0 }, [
4563
4573
  X(wo, {
4564
- layout: v.layout,
4574
+ layout: b.layout,
4565
4575
  currentPage: te,
4566
- totalPage: g.value,
4567
- columnContentWidth: K(te % 2 ? v.layout.column : 0, !0),
4568
- columnMargin: T(te % 2 ? v.layout.column : 0),
4576
+ totalPage: v.value,
4577
+ columnContentWidth: K(te % 2 ? b.layout.column : 0, !0),
4578
+ columnMargin: S(te % 2 ? b.layout.column : 0),
4569
4579
  bindWidth: s.value,
4570
4580
  padding: _.value
4571
4581
  }, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
4572
- v.layout.sloganFlag ? (i(), V($o, {
4582
+ b.layout.sloganFlag ? (r(), V($o, {
4573
4583
  key: 0,
4574
- info: v.info,
4575
- layout: v.layout,
4584
+ info: b.info,
4585
+ layout: b.layout,
4576
4586
  onChange: I[7] || (I[7] = (Se) => t("changeInfo", Se))
4577
- }, null, 8, ["info", "layout"])) : D("", !0),
4587
+ }, null, 8, ["info", "layout"])) : M("", !0),
4578
4588
  X(Za, {
4579
4589
  ref_for: !0,
4580
4590
  ref_key: "bindDom",
4581
- ref: h,
4591
+ ref: p,
4582
4592
  currentPage: te,
4583
4593
  width: s.value,
4584
4594
  height: w.value,
4585
4595
  isBindFlag: j.value
4586
4596
  }, null, 8, ["currentPage", "width", "height", "isBindFlag"]),
4587
- !(te % 2) || te === 1 && g.value < 3 ? (i(), u("div", {
4597
+ !(te % 2) || te === 1 && v.value < 3 ? (r(), u("div", {
4588
4598
  key: 1,
4589
4599
  ref_for: !0,
4590
4600
  ref_key: "titleDom",
4591
- ref: N,
4592
- class: oe(["absolute text-black", te === 1 && g.value < 3 && "opacity-0 pointer-events-none"]),
4593
- style: q(pe.value)
4601
+ ref: B,
4602
+ class: oe(["absolute text-black", te === 1 && v.value < 3 && "opacity-0 pointer-events-none"]),
4603
+ style: Q(pe.value)
4594
4604
  }, [
4595
4605
  X(Po, {
4596
- layout: v.layout,
4597
- code: v.info.textCode
4606
+ layout: b.layout,
4607
+ code: b.info.textCode
4598
4608
  }, null, 8, ["layout", "code"]),
4599
4609
  X(ta, {
4600
- info: v.info,
4601
- layout: v.layout,
4602
- fontConfig: v.fontConfig,
4603
- data: v.data,
4610
+ info: b.info,
4611
+ layout: b.layout,
4612
+ fontConfig: b.fontConfig,
4613
+ data: b.data,
4604
4614
  onChange: I[8] || (I[8] = (Se) => t("changeInfo", Se))
4605
4615
  }, null, 8, ["info", "layout", "fontConfig", "data"]),
4606
4616
  X(ka, {
4607
- layout: v.layout,
4608
- info: v.info,
4617
+ layout: b.layout,
4618
+ info: b.info,
4609
4619
  isBindFlag: j.value,
4610
4620
  onChange: I[9] || (I[9] = (Se) => t("changeExtentInfo", Se))
4611
4621
  }, null, 8, ["layout", "info", "isBindFlag"]),
4612
4622
  X(Ba, {
4613
- layout: v.layout,
4623
+ layout: b.layout,
4614
4624
  isBindFlag: j.value
4615
4625
  }, null, 8, ["layout", "isBindFlag"]),
4616
- te ? D("", !0) : (i(), V(Ya, {
4626
+ te ? M("", !0) : (r(), V(Ya, {
4617
4627
  key: 0,
4618
- layout: v.layout,
4619
- data: v.data
4628
+ layout: b.layout,
4629
+ data: b.data
4620
4630
  }, null, 8, ["layout", "data"])),
4621
- v.layout.writeScoreFlag && !te ? (i(), V(_l, {
4631
+ b.layout.writeScoreFlag && !te ? (r(), V(_l, {
4622
4632
  key: 1,
4623
- info: v.info,
4624
- layout: v.layout
4625
- }, null, 8, ["info", "layout"])) : D("", !0)
4626
- ], 6)) : D("", !0),
4627
- (i(!0), u(P, null, Z(te % 2 ? v.layout.backColumn : v.layout.column, (Se, Pe) => (i(), V(Qa, {
4633
+ info: b.info,
4634
+ layout: b.layout
4635
+ }, null, 8, ["info", "layout"])) : M("", !0)
4636
+ ], 6)) : M("", !0),
4637
+ (r(!0), u(P, null, Z(te % 2 ? b.layout.backColumn : b.layout.column, (Se, Pe) => (r(), V(Qa, {
4628
4638
  ref_for: !0,
4629
- ref: (We) => S(We, fe(Pe, te)),
4639
+ ref: (We) => $(We, fe(Pe, te)),
4630
4640
  styleInfo: we(fe(Pe, te), te),
4631
- column: v.layout.column,
4641
+ column: b.layout.column,
4632
4642
  currentColumn: fe(Pe, te),
4633
4643
  showColBorder: W.value
4634
4644
  }, {
4635
4645
  default: Ft(() => {
4636
4646
  var We;
4637
4647
  return [
4638
- (i(!0), u(P, null, Z(((We = l.value[fe(Pe, te)]) == null ? void 0 : We.data) || [], (ge, Ht) => {
4639
- var mt;
4640
- return i(), u(P, null, [
4641
- ge.isHidden ? D("", !0) : (i(), V(St, {
4648
+ (r(!0), u(P, null, Z(((We = l.value[fe(Pe, te)]) == null ? void 0 : We.data) || [], (ge, Ht) => {
4649
+ var yt;
4650
+ return r(), u(P, null, [
4651
+ ge.isHidden ? M("", !0) : (r(), V(St, {
4642
4652
  key: 0,
4643
4653
  item: ge,
4644
4654
  showColBorder: W.value,
4645
4655
  isFirst: !te && !Pe && !Ht,
4646
- layout: v.layout,
4647
- isActive: ((mt = v.target.value) == null ? void 0 : mt.id) === ge.id,
4656
+ layout: b.layout,
4657
+ isActive: ((yt = b.target.value) == null ? void 0 : yt.id) === ge.id,
4648
4658
  onClick: (Ce) => be({ type: ge.problemType ? x(U).headline : x(U).headlineNotarea, value: ge }),
4649
4659
  onDbclick: (Ce) => t("dbHeadLineClick", ge)
4650
4660
  }, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
4651
- W.value ? (i(), u("div", {
4661
+ W.value ? (r(), u("div", {
4652
4662
  key: 1,
4653
- class: oe([!ge.children.length && ge.problemType && "p-1 min-h-[2rem]", v.target.type === x(U).headline && v.target.value.id === ge.id && "active_headline"]),
4663
+ class: oe([!ge.children.length && ge.problemType && "p-1 min-h-[2rem]", b.target.type === x(U).headline && b.target.value.id === ge.id && "active_headline"]),
4654
4664
  onClick: Le((Ce) => be({ type: ge.problemType ? x(U).headline : x(U).headlineNotarea, value: ge }), ["stop"]),
4655
4665
  onDblclick: (Ce) => t("dbHeadLineClick", ge)
4656
4666
  }, [
4657
4667
  X(Ge, {
4658
4668
  data: ge,
4659
- layout: v.layout,
4660
- target: v.target,
4669
+ layout: b.layout,
4670
+ target: b.target,
4661
4671
  width: K(fe(Pe, te)) - 10,
4662
4672
  onClick: I[10] || (I[10] = (Ce) => be({ type: Ce.problemType ? x(U).problem : x(U).problemNotarea, value: Ce })),
4663
4673
  onDbclick: I[11] || (I[11] = (Ce) => t("dbProblemClick", Ce))
4664
4674
  }, null, 8, ["data", "layout", "target", "width"]),
4665
- ge.children.length && ge.children[ge.children.length - 1].id === Q.value ? (i(), u("div", {
4675
+ ge.children.length && ge.children[ge.children.length - 1].id === O.value ? (r(), u("div", {
4666
4676
  key: 0,
4667
4677
  class: "border-t",
4668
4678
  "data-block": x(Ee)
4669
- }, null, 8, Xs)) : D("", !0)
4670
- ], 42, Vs)) : (i(), V(Ge, {
4679
+ }, null, 8, Xs)) : M("", !0)
4680
+ ], 42, Vs)) : (r(), V(Ge, {
4671
4681
  key: 2,
4672
4682
  data: ge,
4673
- layout: v.layout,
4674
- target: v.target,
4683
+ layout: b.layout,
4684
+ target: b.target,
4675
4685
  width: K(fe(Pe, te)),
4676
4686
  onClick: I[12] || (I[12] = (Ce) => be({ type: Ce.problemType ? x(U).problem : x(U).problemNotarea, value: Ce })),
4677
4687
  onDbclick: I[13] || (I[13] = (Ce) => t("dbProblemClick", Ce))
@@ -4682,7 +4692,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4682
4692
  }),
4683
4693
  _: 2
4684
4694
  }, 1032, ["styleInfo", "column", "currentColumn", "showColBorder"]))), 256))
4685
- ], 64)) : D("", !0)
4695
+ ], 64)) : M("", !0)
4686
4696
  ], 4))), 128))
4687
4697
  ]))
4688
4698
  ], 8, js))