alit-layout 1.0.21 → 1.0.23

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 +809 -808
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as ee, openBlock as i, createElementBlock as d, Fragment as E, renderList as Z, createElementVNode as f, normalizeStyle as q, unref as x, toDisplayString as J, createCommentVNode as M, ref as Y, watch as Me, normalizeClass as oe, computed as N, createBlock as K, createTextVNode as Ue, createVNode as V, pushScopeId as He, popScopeId as Re, renderSlot as it, onMounted as Xe, nextTick as Je, withModifiers as Le, resolveComponent as Rt, resolveDynamicComponent as yt, normalizeProps as _t, guardReactiveProps as ft, withCtx as Ft, inject as Wt, withDirectives as gt, provide as Gt } from "vue";
1
+ import { defineComponent as ee, openBlock as i, createElementBlock as u, Fragment as E, renderList as Z, createElementVNode as f, normalizeStyle as q, unref as x, toDisplayString as J, createCommentVNode as M, ref as Y, watch as Me, normalizeClass as oe, computed as N, createBlock as j, createTextVNode as Ue, createVNode as V, pushScopeId as He, popScopeId as Re, renderSlot as it, onMounted as Xe, nextTick as Je, withModifiers as Le, resolveComponent as Rt, resolveDynamicComponent as yt, normalizeProps as _t, guardReactiveProps as ft, withCtx as Ft, inject as Wt, withDirectives as gt, provide as Gt } from "vue";
2
2
  const rt = {
3
3
  // 选择题
4
4
  choice: "MULTIPLE_RADIO_QUESTION",
@@ -420,7 +420,7 @@ const rt = {
420
420
  2: 20
421
421
  }
422
422
  }
423
- }, jt = 10, Kt = {
423
+ }, Kt = 10, jt = {
424
424
  base: {
425
425
  secTitleFlag: "副标题",
426
426
  authorFlag: "命题人",
@@ -530,7 +530,7 @@ const rt = {
530
530
  2: 1,
531
531
  3: 1
532
532
  }
533
- }, Q = {
533
+ }, U = {
534
534
  page: "page",
535
535
  headline: "headline",
536
536
  text: "text",
@@ -574,13 +574,13 @@ const rt = {
574
574
  { name: "自动", code: Qe.auto },
575
575
  { name: "开", code: Qe.on },
576
576
  { name: "关", code: Qe.off }
577
- ], je = {
577
+ ], Ke = {
578
578
  step: "step",
579
579
  custom: "custom"
580
580
  }, ao = [
581
- { name: "分段", code: je.step },
582
- { name: "自编", code: je.custom }
583
- ], L = {
581
+ { name: "分段", code: Ke.step },
582
+ { name: "自编", code: Ke.custom }
583
+ ], F = {
584
584
  choice_1: "choice-1",
585
585
  choice_2: "choice-2",
586
586
  choice_3: "choice-3",
@@ -738,11 +738,11 @@ const rt = {
738
738
  type: "radio",
739
739
  label: "横向分栏",
740
740
  key: y.article.col_a,
741
- target: [Q.headline],
741
+ target: [U.headline],
742
742
  show: (e) => ![m.art].includes(e.problemType) && e.layoutMode === "column",
743
743
  option: [
744
- { name: "1栏", code: L.col_1 },
745
- { name: "横向2栏", code: L.col_2 }
744
+ { name: "1栏", code: F.col_1 },
745
+ { name: "横向2栏", code: F.col_2 }
746
746
  ]
747
747
  }
748
748
  ],
@@ -751,11 +751,11 @@ const rt = {
751
751
  type: "radio",
752
752
  label: "横向分栏",
753
753
  key: y.article.col_a,
754
- target: [Q.headline],
754
+ target: [U.headline],
755
755
  show: (e) => ![m.art].includes(e.problemType) && e.layoutMode === "column",
756
756
  option: [
757
- { name: "1栏", code: L.col_1 },
758
- { name: "横向2栏", code: L.col_2 }
757
+ { name: "1栏", code: F.col_1 },
758
+ { name: "横向2栏", code: F.col_2 }
759
759
  ]
760
760
  }
761
761
  ]
@@ -768,10 +768,10 @@ const rt = {
768
768
  label: "插入题号样式控制",
769
769
  key: y.article.slove_d,
770
770
  code: "slove_insert_sub",
771
- target: [Q.problem],
771
+ target: [U.problem],
772
772
  option: [
773
- { name: "无", code: L.slove_5 },
774
- { name: "下划线", code: L.slove_6 }
773
+ { name: "无", code: F.slove_5 },
774
+ { name: "下划线", code: F.slove_6 }
775
775
  ]
776
776
  }
777
777
  ]
@@ -784,8 +784,8 @@ const rt = {
784
784
  label: "展示样式",
785
785
  key: y.article.choice_a,
786
786
  option: [
787
- { name: "分布式", code: L.choice_1 },
788
- { name: "集合式", code: L.choice_2 }
787
+ { name: "分布式", code: F.choice_1 },
788
+ { name: "集合式", code: F.choice_2 }
789
789
  ]
790
790
  }
791
791
  ],
@@ -796,8 +796,8 @@ const rt = {
796
796
  label: "展示样式",
797
797
  key: y.article.decide_a,
798
798
  option: [
799
- { name: "对错", code: L.decide_1 },
800
- { name: "TF", code: L.decide_2 }
799
+ { name: "对错", code: F.decide_1 },
800
+ { name: "TF", code: F.decide_2 }
801
801
  ]
802
802
  }
803
803
  ],
@@ -808,9 +808,9 @@ const rt = {
808
808
  label: "打分框位置",
809
809
  key: y.article.fill_a,
810
810
  option: [
811
- { name: "跟随下划线", code: L.fill_1 },
812
- { name: "跟随主题干", code: L.fill_2 },
813
- { name: "跟随标点符号", code: L.fill_3 }
811
+ { name: "跟随下划线", code: F.fill_1 },
812
+ { name: "跟随主题干", code: F.fill_2 },
813
+ { name: "跟随标点符号", code: F.fill_3 }
814
814
  ]
815
815
  }
816
816
  ],
@@ -823,18 +823,18 @@ const rt = {
823
823
  label: "边框控制",
824
824
  key: y.article.slove_a,
825
825
  option: [
826
- { name: "有边框", code: L.slove_1 },
827
- { name: "无边框", code: L.slove_2 }
826
+ { name: "有边框", code: F.slove_1 },
827
+ { name: "无边框", code: F.slove_2 }
828
828
  ]
829
829
  },
830
830
  {
831
831
  type: "radio",
832
832
  label: "边框样式",
833
833
  key: y.article.slove_c,
834
- show: (e) => e.style[y.article.slove_a] === L.slove_1,
834
+ show: (e) => e.style[y.article.slove_a] === F.slove_1,
835
835
  option: [
836
- { name: "标准边框", code: L.slove_3 },
837
- { name: "简易边框", code: L.slove_4 }
836
+ { name: "标准边框", code: F.slove_3 },
837
+ { name: "简易边框", code: F.slove_4 }
838
838
  ]
839
839
  },
840
840
  {
@@ -851,10 +851,10 @@ const rt = {
851
851
  label: "插入题号样式控制",
852
852
  key: y.article.slove_d,
853
853
  code: "slove_insert_sub",
854
- target: [Q.problem],
854
+ target: [U.problem],
855
855
  option: [
856
- { name: "无", code: L.slove_5 },
857
- { name: "下划线", code: L.slove_6 }
856
+ { name: "无", code: F.slove_5 },
857
+ { name: "下划线", code: F.slove_6 }
858
858
  ]
859
859
  }
860
860
  ],
@@ -874,7 +874,7 @@ const rt = {
874
874
  key: y.article.art_c,
875
875
  detail: !0,
876
876
  unit: "字",
877
- target: [Q.problem]
877
+ target: [U.problem]
878
878
  },
879
879
  {
880
880
  type: "slider",
@@ -883,7 +883,7 @@ const rt = {
883
883
  detail: !0,
884
884
  min: () => 1,
885
885
  max: (e) => Math.floor(e.style[y.article.art_c] / e.style[y.article.art_e]),
886
- target: [Q.problem]
886
+ target: [U.problem]
887
887
  },
888
888
  {
889
889
  type: "radio",
@@ -894,7 +894,7 @@ const rt = {
894
894
  { name: "100", code: 100 }
895
895
  ],
896
896
  detail: !0,
897
- target: [Q.problem]
897
+ target: [U.problem]
898
898
  }
899
899
  ]
900
900
  },
@@ -906,26 +906,26 @@ const rt = {
906
906
  label: "排列样式",
907
907
  key: y.sheet.choice_a,
908
908
  option: [
909
- { name: "横排", code: L.choice_1 },
910
- { name: "竖排", code: L.choice_2 },
911
- { name: "分组", code: L.choice_3 }
909
+ { name: "横排", code: F.choice_1 },
910
+ { name: "竖排", code: F.choice_2 },
911
+ { name: "分组", code: F.choice_3 }
912
912
  ]
913
913
  },
914
914
  {
915
915
  type: "radio",
916
916
  label: "排列方向",
917
917
  key: y.sheet.choice_b,
918
- show: (e) => e.style[y.sheet.choice_a] !== L.choice_2,
918
+ show: (e) => e.style[y.sheet.choice_a] !== F.choice_2,
919
919
  option: [
920
- { name: "横向", code: L.landscape },
921
- { name: "纵向", code: L.portrait }
920
+ { name: "横向", code: F.landscape },
921
+ { name: "纵向", code: F.portrait }
922
922
  ]
923
923
  },
924
924
  {
925
925
  type: "radio",
926
926
  label: "每组题数",
927
927
  key: y.sheet.choice_c,
928
- show: (e) => [L.choice_2].includes(e.style[y.sheet.choice_a]),
928
+ show: (e) => [F.choice_2].includes(e.style[y.sheet.choice_a]),
929
929
  option: [
930
930
  { name: "3题", code: 3 },
931
931
  { name: "4题", code: 4 },
@@ -940,8 +940,8 @@ const rt = {
940
940
  label: "展示样式",
941
941
  key: y.sheet.decide_a,
942
942
  option: [
943
- { name: "对错", code: L.decide_1 },
944
- { name: "TF", code: L.decide_2 }
943
+ { name: "对错", code: F.decide_1 },
944
+ { name: "TF", code: F.decide_2 }
945
945
  ]
946
946
  }
947
947
  ],
@@ -962,20 +962,20 @@ const rt = {
962
962
  key: y.sheet.fill_a,
963
963
  show: (e) => e.style[y.sheet.fill_b],
964
964
  option: [
965
- { name: "跟随下划线", code: L.fill_1 },
966
- { name: "跟随主题干", code: L.fill_2 },
967
- { name: "跟随标点符号", code: L.fill_3 }
965
+ { name: "跟随下划线", code: F.fill_1 },
966
+ { name: "跟随主题干", code: F.fill_2 },
967
+ { name: "跟随标点符号", code: F.fill_3 }
968
968
  ]
969
969
  },
970
970
  {
971
971
  type: "radio",
972
972
  label: "分题换行",
973
973
  key: y.sheet.fill_c,
974
- target: [Q.page, Q.headline],
974
+ target: [U.page, U.headline],
975
975
  show: (e) => !e.style[y.sheet.fill_b],
976
976
  option: [
977
- { name: "开启", code: L.fill_1 },
978
- { name: "关闭", code: L.fill_2 }
977
+ { name: "开启", code: F.fill_1 },
978
+ { name: "关闭", code: F.fill_2 }
979
979
  ]
980
980
  },
981
981
  {
@@ -1012,7 +1012,7 @@ const rt = {
1012
1012
  type: "slider",
1013
1013
  label: "每空高度",
1014
1014
  key: y.sheet.fill_e,
1015
- target: [Q.page, Q.headline],
1015
+ target: [U.page, U.headline],
1016
1016
  show: (e) => !e.style[y.sheet.fill_b],
1017
1017
  max: () => 20
1018
1018
  }
@@ -1034,7 +1034,7 @@ const rt = {
1034
1034
  label: "每空宽度",
1035
1035
  key: y.sheet.fill_d,
1036
1036
  filter: (e, t) => e.mixType[t].problemType === m.fill,
1037
- target: [Q.problem],
1037
+ target: [U.problem],
1038
1038
  show: (e) => !e.style[y.sheet.mix_a] && (e.mixType || []).find((t) => t.problemType === m.fill),
1039
1039
  option: [
1040
1040
  { name: "1", code: 1 },
@@ -1058,19 +1058,19 @@ const rt = {
1058
1058
  key: y.sheet.decide_a,
1059
1059
  show: (e) => !e.style[y.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(m).includes(t.problemType) && !t.style[y.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === m.decide),
1060
1060
  option: [
1061
- { name: "对错", code: L.decide_1 },
1062
- { name: "TF", code: L.decide_2 }
1061
+ { name: "对错", code: F.decide_1 },
1062
+ { name: "TF", code: F.decide_2 }
1063
1063
  ]
1064
1064
  },
1065
1065
  {
1066
1066
  type: "radio",
1067
1067
  label: "排列方向",
1068
1068
  key: y.sheet.choice_b,
1069
- target: [Q.problem],
1069
+ target: [U.problem],
1070
1070
  show: (e) => !e.style[y.sheet.mix_a] && !(e.mixType || []).find((t) => ![m.choice, m.choice_multiple].includes(t.problemType)),
1071
1071
  option: [
1072
- { name: "横向", code: L.landscape },
1073
- { name: "竖向", code: L.portrait }
1072
+ { name: "横向", code: F.landscape },
1073
+ { name: "竖向", code: F.portrait }
1074
1074
  ]
1075
1075
  }
1076
1076
  ],
@@ -1092,7 +1092,7 @@ const rt = {
1092
1092
  key: y.sheet.art_c,
1093
1093
  detail: !0,
1094
1094
  unit: "字",
1095
- target: [Q.problem]
1095
+ target: [U.problem]
1096
1096
  },
1097
1097
  {
1098
1098
  type: "slider",
@@ -1101,7 +1101,7 @@ const rt = {
1101
1101
  detail: !0,
1102
1102
  min: () => 1,
1103
1103
  max: (e) => Math.floor(e.style[y.sheet.art_c] / e.style[y.sheet.art_e]),
1104
- target: [Q.problem]
1104
+ target: [U.problem]
1105
1105
  },
1106
1106
  {
1107
1107
  type: "radio",
@@ -1112,7 +1112,7 @@ const rt = {
1112
1112
  { name: "100", code: 100 }
1113
1113
  ],
1114
1114
  detail: !0,
1115
- target: [Q.problem]
1115
+ target: [U.problem]
1116
1116
  }
1117
1117
  ],
1118
1118
  // 综合题
@@ -1136,26 +1136,26 @@ const rt = {
1136
1136
  label: "排列样式",
1137
1137
  key: y.sheetCard.choice_a,
1138
1138
  option: [
1139
- { name: "横排", code: L.choice_1 },
1140
- { name: "竖排", code: L.choice_2 },
1141
- { name: "分组", code: L.choice_3 }
1139
+ { name: "横排", code: F.choice_1 },
1140
+ { name: "竖排", code: F.choice_2 },
1141
+ { name: "分组", code: F.choice_3 }
1142
1142
  ]
1143
1143
  },
1144
1144
  {
1145
1145
  type: "radio",
1146
1146
  label: "排列方向",
1147
1147
  key: y.sheetCard.choice_b,
1148
- show: (e) => e.style[y.sheetCard.choice_a] !== L.choice_2,
1148
+ show: (e) => e.style[y.sheetCard.choice_a] !== F.choice_2,
1149
1149
  option: [
1150
- { name: "横向", code: L.landscape },
1151
- { name: "纵向", code: L.portrait }
1150
+ { name: "横向", code: F.landscape },
1151
+ { name: "纵向", code: F.portrait }
1152
1152
  ]
1153
1153
  },
1154
1154
  {
1155
1155
  type: "radio",
1156
1156
  label: "每组题数",
1157
1157
  key: y.sheetCard.choice_c,
1158
- show: (e) => [L.choice_2].includes(e.style[y.sheetCard.choice_a]),
1158
+ show: (e) => [F.choice_2].includes(e.style[y.sheetCard.choice_a]),
1159
1159
  option: [
1160
1160
  { name: "3题", code: 3 },
1161
1161
  { name: "4题", code: 4 },
@@ -1165,9 +1165,9 @@ const rt = {
1165
1165
  {
1166
1166
  type: "slider",
1167
1167
  label: "列数",
1168
- target: [Q.headline],
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(rt).includes(e.problemType) && e.style[y.sheetCard.choice_a] !== F.choice_2,
1171
1171
  min: () => 2,
1172
1172
  max: () => 10
1173
1173
  }
@@ -1179,8 +1179,8 @@ const rt = {
1179
1179
  label: "展示样式",
1180
1180
  key: y.sheetCard.decide_a,
1181
1181
  option: [
1182
- { name: "对错", code: L.decide_1 },
1183
- { name: "TF", code: L.decide_2 }
1182
+ { name: "对错", code: F.decide_1 },
1183
+ { name: "TF", code: F.decide_2 }
1184
1184
  ]
1185
1185
  }
1186
1186
  ],
@@ -1192,20 +1192,20 @@ const rt = {
1192
1192
  key: y.sheetCard.fill_a,
1193
1193
  show: (e) => e.style[y.sheetCard.fill_b],
1194
1194
  option: [
1195
- { name: "跟随下划线", code: L.fill_1 },
1196
- { name: "跟随主题干", code: L.fill_2 },
1197
- { name: "跟随标点符号", code: L.fill_3 }
1195
+ { name: "跟随下划线", code: F.fill_1 },
1196
+ { name: "跟随主题干", code: F.fill_2 },
1197
+ { name: "跟随标点符号", code: F.fill_3 }
1198
1198
  ]
1199
1199
  },
1200
1200
  {
1201
1201
  type: "radio",
1202
1202
  label: "分题换行",
1203
1203
  key: y.sheetCard.fill_c,
1204
- target: [Q.page, Q.headline],
1204
+ target: [U.page, U.headline],
1205
1205
  show: (e) => !e.style[y.sheetCard.fill_b],
1206
1206
  option: [
1207
- { name: "开启", code: L.fill_1 },
1208
- { name: "关闭", code: L.fill_2 }
1207
+ { name: "开启", code: F.fill_1 },
1208
+ { name: "关闭", code: F.fill_2 }
1209
1209
  ]
1210
1210
  },
1211
1211
  {
@@ -1242,7 +1242,7 @@ const rt = {
1242
1242
  type: "slider",
1243
1243
  label: "每空高度",
1244
1244
  key: y.sheetCard.fill_e,
1245
- target: [Q.page, Q.headline],
1245
+ target: [U.page, U.headline],
1246
1246
  show: (e) => !e.style[y.sheetCard.fill_b],
1247
1247
  max: () => 20
1248
1248
  }
@@ -1255,7 +1255,7 @@ const rt = {
1255
1255
  label: "每空宽度",
1256
1256
  key: y.sheetCard.fill_d,
1257
1257
  filter: (e, t) => e.mixType[t].problemType === m.fill,
1258
- target: [Q.problem],
1258
+ target: [U.problem],
1259
1259
  show: (e) => !e.style[y.sheetCard.mix_a] && (e.mixType || []).find((t) => t.problemType === m.fill),
1260
1260
  option: [
1261
1261
  { name: "1", code: 1 },
@@ -1279,19 +1279,19 @@ const rt = {
1279
1279
  key: y.sheetCard.decide_a,
1280
1280
  show: (e) => !e.style[y.sheetCard.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(m).includes(t.problemType) && !t.style[y.sheetCard.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === m.decide),
1281
1281
  option: [
1282
- { name: "对错", code: L.decide_1 },
1283
- { name: "TF", code: L.decide_2 }
1282
+ { name: "对错", code: F.decide_1 },
1283
+ { name: "TF", code: F.decide_2 }
1284
1284
  ]
1285
1285
  },
1286
1286
  {
1287
1287
  type: "radio",
1288
1288
  label: "排列方向",
1289
1289
  key: y.sheetCard.choice_b,
1290
- target: [Q.problem],
1290
+ target: [U.problem],
1291
1291
  show: (e) => !e.style[y.sheetCard.mix_a] && !(e.mixType || []).find((t) => ![m.choice, m.choice_multiple].includes(t.problemType)),
1292
1292
  option: [
1293
- { name: "横向", code: L.landscape },
1294
- { name: "竖向", code: L.portrait }
1293
+ { name: "横向", code: F.landscape },
1294
+ { name: "竖向", code: F.portrait }
1295
1295
  ]
1296
1296
  }
1297
1297
  ],
@@ -1302,7 +1302,7 @@ const rt = {
1302
1302
  label: "格子尺寸",
1303
1303
  key: y.article.art_b,
1304
1304
  detail: !0,
1305
- target: [Q.problem],
1305
+ target: [U.problem],
1306
1306
  min: () => 27,
1307
1307
  max: () => 40,
1308
1308
  formatTip: (e, t) => {
@@ -1316,7 +1316,7 @@ const rt = {
1316
1316
  key: y.sheetCard.art_c,
1317
1317
  detail: !0,
1318
1318
  unit: "字",
1319
- target: [Q.problem]
1319
+ target: [U.problem]
1320
1320
  },
1321
1321
  {
1322
1322
  type: "slider",
@@ -1325,7 +1325,7 @@ const rt = {
1325
1325
  detail: !0,
1326
1326
  min: () => 1,
1327
1327
  max: (e) => Math.floor(e.style[y.sheetCard.art_c] / e.style[y.sheetCard.art_e]),
1328
- target: [Q.problem]
1328
+ target: [U.problem]
1329
1329
  },
1330
1330
  {
1331
1331
  type: "radio",
@@ -1336,7 +1336,7 @@ const rt = {
1336
1336
  { name: "100", code: 100 }
1337
1337
  ],
1338
1338
  detail: !0,
1339
- target: [Q.problem]
1339
+ target: [U.problem]
1340
1340
  }
1341
1341
  ],
1342
1342
  // 综合题
@@ -1405,7 +1405,7 @@ const rt = {
1405
1405
  value: 24,
1406
1406
  height: 16
1407
1407
  }
1408
- }, Ke = {
1408
+ }, je = {
1409
1409
  stand: {
1410
1410
  name: "标准",
1411
1411
  code: "stand",
@@ -1465,14 +1465,14 @@ const rt = {
1465
1465
  fontFamily: io,
1466
1466
  fontSize: co,
1467
1467
  fontWeight: ro,
1468
- formatConfig: Kt,
1468
+ formatConfig: jt,
1469
1469
  halfScoreType: Qe,
1470
1470
  halfScoreTypeOption: oo,
1471
1471
  layoutMode: Xt,
1472
1472
  otherLayout: so,
1473
1473
  otherLayoutKey: Dt,
1474
1474
  paddDiff: Qt,
1475
- pageMargin: jt,
1475
+ pageMargin: Kt,
1476
1476
  pagePadding: ct,
1477
1477
  pagePointPosition: ze,
1478
1478
  pageSize: g,
@@ -1480,10 +1480,10 @@ const rt = {
1480
1480
  paper: Oe,
1481
1481
  problemLayout: no,
1482
1482
  problemLayoutKey: y,
1483
- problemLayoutVal: L,
1484
- scoreLineSize: Ke,
1483
+ problemLayoutVal: F,
1484
+ scoreLineSize: je,
1485
1485
  scoreLineStyle: Ze,
1486
- scoreLineType: je,
1486
+ scoreLineType: Ke,
1487
1487
  scoreLineTypeOption: ao,
1488
1488
  seatType: xe,
1489
1489
  seatTypeOption: Jt,
@@ -1494,7 +1494,7 @@ const rt = {
1494
1494
  subRangeOption: Zt,
1495
1495
  subRule: qe,
1496
1496
  subRuleOption: eo,
1497
- toolGroup: Q
1497
+ toolGroup: U
1498
1498
  }, Symbol.toStringTag, { value: "Module" })), dt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), po = "TF".split(""), mo = {
1499
1499
  a4: "TYPE_A4",
1500
1500
  a4x: "TYPE_A4",
@@ -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], s = (o, n) => {
1603
- const c = t.columnContentWidth + t.columnMargin, u = (t.bindWidth && !(t.currentPage % 2) ? t.bindWidth + t.columnMargin : 0) + t.padding.left - t.columnMargin / 2 - 10, p = {
1602
+ })[t.layout.pagePoint], n = (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, p = {
1604
1604
  t: {
1605
1605
  top: `${t.padding.top - 20}px`
1606
1606
  },
@@ -1608,50 +1608,50 @@ const rt = {
1608
1608
  bottom: `${t.padding.bottom - 20}px`
1609
1609
  }
1610
1610
  };
1611
- return { left: `${o * c + u}px`, ...p[n] };
1611
+ return { left: `${o * c + d}px`, ...p[s] };
1612
1612
  }, r = (o) => {
1613
- const n = (g[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, u = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, p = ["", "l", "r"].findIndex((A) => A === o);
1614
- return { top: `${n * p + t.padding.top - 10}px`, width: "11px", ...u };
1613
+ const s = (g[t.layout.paper].height - t.padding.top - t.padding.bottom) / 3, d = t.currentPage % 2 && t.bindWidth ? { right: `${t.padding.right - 15.5}px` } : { left: `${t.padding.left - 15.5}px` }, p = ["", "l", "r"].findIndex((A) => A === o);
1614
+ return { top: `${s * p + t.padding.top - 10}px`, width: "11px", ...d };
1615
1615
  };
1616
- return (o, n) => {
1616
+ return (o, s) => {
1617
1617
  var c;
1618
- return i(), d(E, null, [
1619
- (i(), d(E, null, Z(["lt", "rt", "lb", "rb"], (u) => f("span", {
1620
- key: u,
1618
+ return i(), u(E, null, [
1619
+ (i(), u(E, null, Z(["lt", "rt", "lb", "rb"], (d) => f("span", {
1620
+ key: d,
1621
1621
  class: "absolute w-8 bg-black point_item",
1622
- style: q(a(u)),
1623
- "data-xine": x(k).point + u
1622
+ style: q(a(d)),
1623
+ "data-xine": x(k).point + d
1624
1624
  }, null, 12, yo)), 64)),
1625
- (i(!0), d(E, null, Z((o.currentPage % 2 ? o.layout.backColumn : o.layout.column) - 1, (u) => (i(), d(E, { key: u }, [
1626
- (i(), d(E, null, Z(["t", "b"], (p) => f("span", {
1625
+ (i(!0), u(E, null, Z((o.currentPage % 2 ? o.layout.backColumn : o.layout.column) - 1, (d) => (i(), u(E, { key: d }, [
1626
+ (i(), u(E, null, Z(["t", "b"], (p) => f("span", {
1627
1627
  key: p,
1628
1628
  class: "absolute bg-black w-8 point_item",
1629
- style: q(s(u, p)),
1629
+ style: q(n(d, p)),
1630
1630
  "data-xine": x(k).point + p
1631
1631
  }, null, 12, _o)), 64))
1632
1632
  ], 64))), 128)),
1633
- (i(), d(E, null, Z(["l", "r"], (u) => f("span", {
1634
- key: u,
1633
+ (i(), u(E, null, Z(["l", "r"], (d) => f("span", {
1634
+ key: d,
1635
1635
  class: "absolute bg-black h-8",
1636
- style: q(r(u)),
1637
- "data-xine": x(k).point + u
1636
+ style: q(r(d)),
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
1641
  style: q(l()),
1642
1642
  "data-xine": x(k).page
1643
1643
  }, [
1644
- (i(!0), d(E, null, Z(o.currentPage + 1, (u, p) => (i(), d("span", {
1645
- key: u,
1644
+ (i(!0), u(E, null, Z(o.currentPage + 1, (d, p) => (i(), u("span", {
1645
+ key: d,
1646
1646
  class: "inline-block bg-black mx-2 page_item",
1647
1647
  "data-xine": x(k).page_item + p
1648
1648
  }, null, 8, bo))), 128))
1649
1649
  ], 12, go),
1650
- o.currentPage % 2 ? M("", !0) : (i(), d("span", {
1650
+ o.currentPage % 2 ? M("", !0) : (i(), u("span", {
1651
1651
  key: 0,
1652
1652
  class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
1653
1653
  style: q({ right: `${o.padding.right - 12}px` })
1654
- }, "提示:本卷" + J((c = x(Oe).find((u) => u.code === o.layout.paper)) == null ? void 0 : c.name) + "纸张", 5)),
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
1657
  style: q({ right: `${o.padding.bottom - 20 + 75}px`, bottom: `${o.padding.bottom - 20 - 3}px` })
@@ -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, s] of t)
1666
- a[l] = s;
1665
+ for (const [l, n] of t)
1666
+ a[l] = n;
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,38 +1683,38 @@ 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), s = Y(!1);
1686
+ const a = e, l = Y(a.value), n = Y(!1);
1687
1687
  Me(() => a.value, () => {
1688
1688
  l.value = a.value;
1689
1689
  });
1690
- const r = (u) => {
1691
- l.value = u.target.value, t("input", a.type === "number" ? parseFloat(l.value) : l.value);
1692
- }, o = (u) => {
1693
- l.value = u.target.value, t("change", a.type === "number" ? parseFloat(l.value) : l.value), setTimeout(() => {
1690
+ const r = (d) => {
1691
+ l.value = d.target.value, t("input", a.type === "number" ? parseFloat(l.value) : l.value);
1692
+ }, o = (d) => {
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
- }, n = (u) => {
1697
- l.value = u.target.value, t("focus", a.type === "number" ? parseFloat(l.value) : l.value), s.value = !0;
1696
+ }, s = (d) => {
1697
+ l.value = d.target.value, t("focus", a.type === "number" ? parseFloat(l.value) : l.value), n.value = !0;
1698
1698
  }, c = () => {
1699
- t("blur", a.type === "number" ? parseFloat(`${l.value}`) : l.value), s.value = !1;
1699
+ t("blur", a.type === "number" ? parseFloat(`${l.value}`) : l.value), n.value = !1;
1700
1700
  };
1701
- return (u, p) => (i(), d("div", {
1702
- class: oe(["flex-1 flex items-center border rounded-lg", u.autoLine ? s.value ? "border-gray4" : "border-transparent" : "border-gray4", u.size === "small" && "p-1", u.size === "stand" && "p-2", u.size === "large" && "p-2"])
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"])
1703
1703
  }, [
1704
1704
  f("div", xo, [
1705
1705
  f("input", {
1706
- class: oe(["w-full", u.dir === "center" && "text-center", u.dir === "right" && "text-right"]),
1707
- type: u.type,
1708
- placeholder: u.placeholder,
1709
- maxlength: u.maxLength,
1706
+ class: oe(["w-full", d.dir === "center" && "text-center", d.dir === "right" && "text-right"]),
1707
+ type: d.type,
1708
+ placeholder: d.placeholder,
1709
+ maxlength: d.maxLength,
1710
1710
  value: l.value,
1711
1711
  onInput: r,
1712
1712
  onChange: o,
1713
- onFocus: n,
1713
+ onFocus: s,
1714
1714
  onBlur: c
1715
1715
  }, null, 42, ko)
1716
1716
  ]),
1717
- u.unit ? (i(), d("span", Co, J(u.unit), 1)) : M("", !0)
1717
+ d.unit ? (i(), u("span", Co, J(d.unit), 1)) : M("", !0)
1718
1718
  ], 2));
1719
1719
  }
1720
1720
  }), $o = /* @__PURE__ */ ee({
@@ -1725,11 +1725,11 @@ const de = (e, t) => {
1725
1725
  },
1726
1726
  emits: ["change"],
1727
1727
  setup(e, { emit: t }) {
1728
- const a = e, l = N(() => ct[a.layout.mode][a.layout.paper]), s = N(() => ({
1728
+ const a = e, l = N(() => ct[a.layout.mode][a.layout.paper]), n = N(() => ({
1729
1729
  right: `${l.value.right + 97}px`,
1730
1730
  bottom: `${l.value.bottom - 25}px`
1731
1731
  }));
1732
- return (r, o) => (i(), K(et, {
1732
+ return (r, o) => (i(), j(et, {
1733
1733
  class: "absolute w-72 text-sm",
1734
1734
  value: r.info.slogan,
1735
1735
  maxLength: 12,
@@ -1737,8 +1737,8 @@ const de = (e, t) => {
1737
1737
  size: "small",
1738
1738
  autoLine: "",
1739
1739
  dir: "right",
1740
- style: q(s.value),
1741
- onChange: o[0] || (o[0] = (n) => t("change", { slogin: n }))
1740
+ style: q(n.value),
1741
+ onChange: o[0] || (o[0] = (s) => t("change", { slogin: s }))
1742
1742
  }, null, 8, ["value", "style"]));
1743
1743
  }
1744
1744
  }), So = ["width", "height"], To = ["xlink:href"], Io = /* @__PURE__ */ ee({
@@ -1751,13 +1751,13 @@ const de = (e, t) => {
1751
1751
  emits: ["click"],
1752
1752
  setup(e, { emit: t }) {
1753
1753
  const a = e, l = N(() => `#icon-${a.name}`);
1754
- return (s, r) => (i(), d("span", {
1754
+ return (n, r) => (i(), u("span", {
1755
1755
  class: "cursor-pointer inline-block p-2 rounded-full transition-all leading-none font-0",
1756
1756
  onClick: r[0] || (r[0] = (o) => t("click"))
1757
1757
  }, [
1758
- (i(), d("svg", {
1759
- width: s.width + "rem",
1760
- height: (s.height || s.width) + "rem"
1758
+ (i(), u("svg", {
1759
+ width: n.width + "rem",
1760
+ height: (n.height || n.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(), d("div", Lo, [
1778
- t.layout.secrecyFlag ? (i(), d("p", Fo, [
1777
+ return (t, a) => (i(), u("div", Lo, [
1778
+ t.layout.secrecyFlag ? (i(), u("p", Fo, [
1779
1779
  Ue("绝密"),
1780
1780
  V(_e, {
1781
1781
  name: "fiveArrow",
@@ -1796,11 +1796,11 @@ 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 = (s) => {
1800
- t("change", s.target.innerHTML, a.name);
1799
+ const a = e, l = (n) => {
1800
+ t("change", n.target.innerHTML, a.name);
1801
1801
  };
1802
- return (s, r) => (i(), d("div", {
1803
- innerHTML: s.value,
1802
+ return (n, r) => (i(), u("div", {
1803
+ innerHTML: n.value,
1804
1804
  contenteditable: "",
1805
1805
  onBlur: l
1806
1806
  }, null, 40, Do));
@@ -1820,7 +1820,7 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1820
1820
  }, Qo = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "审核人:", -1), Uo = {
1821
1821
  key: 4,
1822
1822
  class: "flex items-center mx-4"
1823
- }, jo = /* @__PURE__ */ f("span", null, "总", -1), Ko = { key: 1 }, Vo = { key: 3 }, Xo = { key: 1 }, Jo = { key: 3 }, Zo = /* @__PURE__ */ f("span", null, ")", -1), ea = { key: 1 }, ta = /* @__PURE__ */ ee({
1823
+ }, Ko = /* @__PURE__ */ f("span", null, "总", -1), jo = { key: 1 }, Vo = { key: 3 }, Xo = { key: 1 }, Jo = { key: 3 }, Zo = /* @__PURE__ */ f("span", null, ")", -1), ea = { key: 1 }, ta = /* @__PURE__ */ ee({
1824
1824
  __name: "title",
1825
1825
  props: {
1826
1826
  info: {},
@@ -1830,8 +1830,8 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1830
1830
  },
1831
1831
  emits: ["change"],
1832
1832
  setup(e, { emit: t }) {
1833
- const a = e, l = N(() => a.data.filter((o) => ![ve.another, ve.another_choice, ve.one_choice].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, n) => o + n, 0)), s = N(() => a.data.filter((o) => [ve.another].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, n) => o + n, 0)), r = N(() => a.layout.scoreAddStars === Ze.star.code ? a.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
1834
- return (o, n) => (i(), d("div", Mo, [
1833
+ const a = e, l = N(() => a.data.filter((o) => ![ve.another, ve.another_choice, ve.one_choice].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), n = N(() => a.data.filter((o) => [ve.another].includes(o.problemType)).map((o) => o.totalScore || 0).reduce((o, s) => o + s, 0)), r = N(() => a.layout.scoreAddStars === Ze.star.code ? a.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
1834
+ return (o, s) => (i(), u("div", Mo, [
1835
1835
  f("img", {
1836
1836
  src: o.info.qrCode,
1837
1837
  alt: "QRCode",
@@ -1843,25 +1843,25 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1843
1843
  class: "w-full text-center border-2 border-transparent focus:border-current",
1844
1844
  value: o.info.title,
1845
1845
  style: q(o.fontConfig.titleStyle),
1846
- onChange: n[0] || (n[0] = (c) => t("change", { title: c }))
1846
+ onChange: s[0] || (s[0] = (c) => t("change", { title: c }))
1847
1847
  }, null, 8, ["value", "style"]),
1848
- o.layout.secTitleFlag ? (i(), K(Be, {
1848
+ o.layout.secTitleFlag ? (i(), j(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
1852
  style: q(o.fontConfig.halfTitleStyle),
1853
- onChange: n[1] || (n[1] = (c) => t("change", { secTitle: c }))
1853
+ onChange: s[1] || (s[1] = (c) => t("change", { secTitle: c }))
1854
1854
  }, null, 8, ["value", "style"])) : M("", !0),
1855
1855
  f("div", Bo, [
1856
- o.layout.examExtentFlag ? (i(), d("p", Oo, [
1856
+ o.layout.examExtentFlag ? (i(), u("p", Oo, [
1857
1857
  zo,
1858
1858
  V(Be, {
1859
1859
  class: "flex-1",
1860
1860
  value: o.info.extent,
1861
- onChange: n[2] || (n[2] = (c) => t("change", { extent: c }))
1861
+ onChange: s[2] || (s[2] = (c) => t("change", { extent: c }))
1862
1862
  }, null, 8, ["value"])
1863
1863
  ])) : M("", !0),
1864
- o.layout.examTimeFlag ? (i(), d("p", Ho, [
1864
+ o.layout.examTimeFlag ? (i(), u("p", Ho, [
1865
1865
  Ro,
1866
1866
  V(et, {
1867
1867
  value: o.info.time,
@@ -1870,61 +1870,61 @@ const _e = /* @__PURE__ */ de(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1870
1870
  autoLine: "",
1871
1871
  size: "small",
1872
1872
  placeholder: "",
1873
- onChange: n[3] || (n[3] = (c) => t("change", { time: c }))
1873
+ onChange: s[3] || (s[3] = (c) => t("change", { time: c }))
1874
1874
  }, null, 8, ["value"]),
1875
1875
  Wo
1876
1876
  ])) : M("", !0),
1877
- o.layout.authorFlag ? (i(), d("p", Go, [
1877
+ o.layout.authorFlag ? (i(), u("p", Go, [
1878
1878
  Yo,
1879
1879
  V(Be, {
1880
1880
  class: "flex-1",
1881
1881
  value: o.info.author,
1882
- onChange: n[4] || (n[4] = (c) => t("change", { author: c }))
1882
+ onChange: s[4] || (s[4] = (c) => t("change", { author: c }))
1883
1883
  }, null, 8, ["value"])
1884
1884
  ])) : M("", !0),
1885
- o.layout.reviewerFlag ? (i(), d("p", qo, [
1885
+ o.layout.reviewerFlag ? (i(), u("p", qo, [
1886
1886
  Qo,
1887
1887
  V(Be, {
1888
1888
  class: "flex-1",
1889
1889
  value: o.info.reviewer,
1890
- onChange: n[5] || (n[5] = (c) => t("change", { reviewer: c }))
1890
+ onChange: s[5] || (s[5] = (c) => t("change", { reviewer: c }))
1891
1891
  }, null, 8, ["value"])
1892
1892
  ])) : M("", !0),
1893
- o.layout.totalScoreFlag ? (i(), d("p", Uo, [
1894
- jo,
1895
- r.value ? (i(), K(_e, {
1893
+ o.layout.totalScoreFlag ? (i(), u("p", Uo, [
1894
+ Ko,
1895
+ r.value ? (i(), j(_e, {
1896
1896
  key: 0,
1897
1897
  name: r.value,
1898
1898
  class: "p-0 -translate-y-[1px]"
1899
- }, null, 8, ["name"])) : (i(), d("span", Ko, "分")),
1899
+ }, null, 8, ["name"])) : (i(), u("span", jo, "分")),
1900
1900
  f("span", null, ":" + J(l.value + (o.layout.writeScoreFlag ? o.info.writeScore : 0)), 1),
1901
- r.value ? (i(), K(_e, {
1901
+ r.value ? (i(), j(_e, {
1902
1902
  key: 2,
1903
1903
  name: r.value,
1904
1904
  class: "p-0 -translate-y-[1px]"
1905
- }, null, 8, ["name"])) : (i(), d("span", Vo, "分")),
1906
- o.layout.writeScoreFlag ? (i(), d(E, { key: 4 }, [
1905
+ }, null, 8, ["name"])) : (i(), u("span", Vo, "分")),
1906
+ o.layout.writeScoreFlag ? (i(), u(E, { key: 4 }, [
1907
1907
  f("span", null, "(试题" + J(l.value), 1),
1908
- r.value ? (i(), K(_e, {
1908
+ r.value ? (i(), j(_e, {
1909
1909
  key: 0,
1910
1910
  name: r.value,
1911
1911
  class: "p-0 -translate-y-[1px]"
1912
- }, null, 8, ["name"])) : (i(), d("span", Xo, "分")),
1912
+ }, null, 8, ["name"])) : (i(), u("span", Xo, "分")),
1913
1913
  f("span", null, "+卷面" + J(o.info.writeScore || 0), 1),
1914
- r.value ? (i(), K(_e, {
1914
+ r.value ? (i(), j(_e, {
1915
1915
  key: 2,
1916
1916
  name: r.value,
1917
1917
  class: "p-0 -translate-y-[1px]"
1918
- }, null, 8, ["name"])) : (i(), d("span", Jo, "分")),
1918
+ }, null, 8, ["name"])) : (i(), u("span", Jo, "分")),
1919
1919
  Zo
1920
1920
  ], 64)) : M("", !0),
1921
- s.value ? (i(), d(E, { key: 5 }, [
1922
- f("span", null, ";附加题:" + J(s.value), 1),
1923
- r.value ? (i(), K(_e, {
1921
+ n.value ? (i(), u(E, { key: 5 }, [
1922
+ f("span", null, ";附加题:" + J(n.value), 1),
1923
+ r.value ? (i(), j(_e, {
1924
1924
  key: 0,
1925
1925
  name: r.value,
1926
1926
  class: "p-0 -translate-y-[1px]"
1927
- }, null, 8, ["name"])) : (i(), d("span", ea, "分"))
1927
+ }, null, 8, ["name"])) : (i(), u("span", ea, "分"))
1928
1928
  ], 64)) : M("", !0)
1929
1929
  ])) : M("", !0)
1930
1930
  ])
@@ -1939,8 +1939,8 @@ 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, s) => (i(), d("ul", oa, [
1943
- (i(), d(E, null, Z(a, (r) => f("li", {
1942
+ return (l, n) => (i(), u("ul", oa, [
1943
+ (i(), u(E, null, Z(a, (r) => f("li", {
1944
1944
  key: r,
1945
1945
  class: "flex flex-1"
1946
1946
  }, [
@@ -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(), d("div", {
1960
+ return (t, a) => (i(), 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,12 +1972,12 @@ 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(), d(E, null, Z(3, (l, s) => f("p", {
1975
+ (i(), u(E, null, Z(3, (l, n) => 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(), d(E, null, Z(10, (r) => f("span", {
1980
+ (i(), u(E, null, Z(10, (r) => f("span", {
1981
1981
  key: r,
1982
1982
  class: "flex items-center justify-between flex-nowrap item",
1983
1983
  "data-xine": x(k).en_num_item
@@ -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(), d("div", {
1993
+ return (t, a) => (i(), u("div", {
1994
1994
  class: "flex-shrink-0 border ml-4 flex",
1995
1995
  "data-xine": x(k).en_num_view
1996
1996
  }, [
@@ -2005,12 +2005,12 @@ 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(), d(E, null, Z(4, (l, s) => f("p", {
2008
+ (i(), u(E, null, Z(4, (l, n) => f("p", {
2009
2009
  key: l,
2010
- class: oe(["flex-1 flex items-center text-0 px-1", s && "border-t"]),
2010
+ class: oe(["flex-1 flex items-center text-0 px-1", n && "border-t"]),
2011
2011
  "data-xine": x(k).en_num_group
2012
2012
  }, [
2013
- (i(), d(E, null, Z(10, (r) => f("span", {
2013
+ (i(), u(E, null, Z(10, (r) => f("span", {
2014
2014
  key: r,
2015
2015
  class: "flex items-center justify-between flex-nowrap item",
2016
2016
  "data-xine": x(k).en_num_item
@@ -2028,8 +2028,8 @@ 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, s) => (i(), d("ul", ya, [
2032
- (i(), d(E, null, Z(a, (r) => f("li", {
2031
+ return (l, n) => (i(), u("ul", ya, [
2032
+ (i(), u(E, null, Z(a, (r) => f("li", {
2033
2033
  key: r,
2034
2034
  class: "flex flex-1"
2035
2035
  }, [
@@ -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 = N(() => a.layout.column >= 3 && a.layout.seatType === xe.none);
2061
- return (s, r) => s.isBindFlag ? M("", !0) : (i(), d("div", ga, [
2062
- l.value ? (i(), d(E, { key: 0 }, [
2063
- s.layout.seatType === x(xe).none ? (i(), K(vt, {
2061
+ return (n, r) => n.isBindFlag ? M("", !0) : (i(), u("div", ga, [
2062
+ l.value ? (i(), u(E, { key: 0 }, [
2063
+ n.layout.seatType === x(xe).none ? (i(), j(vt, {
2064
2064
  key: 0,
2065
- extent: s.info.extentInfo,
2065
+ extent: n.info.extentInfo,
2066
2066
  onChange: r[0] || (r[0] = (o) => t("change", o))
2067
- }, null, 8, ["extent"])) : s.layout.seatType === x(xe).seat ? (i(), K(wt, { key: 1 })) : s.layout.seatType === x(xe).shortId ? (i(), K(xt, { key: 2 })) : M("", !0)
2067
+ }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (i(), j(wt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (i(), j(xt, { key: 2 })) : M("", !0)
2068
2068
  ], 64)) : M("", !0),
2069
2069
  V(_a, {
2070
- extent: s.info.extentInfo,
2070
+ extent: n.info.extentInfo,
2071
2071
  onChange: r[1] || (r[1] = (o) => t("change", o))
2072
2072
  }, null, 8, ["extent"]),
2073
- l.value ? M("", !0) : (i(), d(E, { key: 1 }, [
2074
- s.layout.seatType === x(xe).none ? (i(), K(vt, {
2073
+ l.value ? M("", !0) : (i(), u(E, { key: 1 }, [
2074
+ n.layout.seatType === x(xe).none ? (i(), j(vt, {
2075
2075
  key: 0,
2076
- extent: s.info.extentInfo,
2076
+ extent: n.info.extentInfo,
2077
2077
  onChange: r[2] || (r[2] = (o) => t("change", o))
2078
- }, null, 8, ["extent"])) : s.layout.seatType === x(xe).seat ? (i(), K(wt, { key: 1 })) : s.layout.seatType === x(xe).shortId ? (i(), K(xt, { key: 2 })) : M("", !0)
2078
+ }, null, 8, ["extent"])) : n.layout.seatType === x(xe).seat ? (i(), j(wt, { key: 1 })) : n.layout.seatType === x(xe).shortId ? (i(), j(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",
@@ -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, s) => (i(), d(E, null, [
2117
- l.layout.noteFlag ? (i(), d("div", Ca, [
2116
+ return (l, n) => (i(), u(E, null, [
2117
+ l.layout.noteFlag ? (i(), u("div", Ca, [
2118
2118
  $a,
2119
2119
  f("div", Sa, [
2120
- (i(!0), d(E, null, Z(a.value, (r) => (i(), d("p", {
2120
+ (i(!0), u(E, null, Z(a.value, (r) => (i(), u("p", {
2121
2121
  key: r,
2122
2122
  class: "px-2 origin-left scale-75 tip_item"
2123
2123
  }, J(r), 1))), 128))
2124
2124
  ])
2125
2125
  ])) : M("", !0),
2126
- l.layout.lackFlag ? (i(), d("div", {
2126
+ l.layout.lackFlag ? (i(), u("div", {
2127
2127
  key: 1,
2128
2128
  class: oe(["flex border text-sm red_sheet", l.layout.noteFlag ? "border-t-0" : "mt-2"])
2129
2129
  }, [
@@ -2144,18 +2144,18 @@ const ka = /* @__PURE__ */ de(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
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 s = [];
2147
+ let n = [];
2148
2148
  const r = (o) => {
2149
- (o[l] || []).length ? (a && s.push(t ? o[t] : o[l]), o[l].forEach((n) => r(n))) : s.push(t ? o[t] : o);
2149
+ (o[l] || []).length ? (a && n.push(t ? o[t] : o[l]), o[l].forEach((s) => r(s))) : n.push(t ? o[t] : o);
2150
2150
  };
2151
- return e.forEach((o) => r(o)), s.flat(5);
2151
+ return e.forEach((o) => r(o)), n.flat(5);
2152
2152
  };
2153
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, s) => {
2158
- const r = Math.floor(s / t.length), o = s % t.length;
2157
+ return [...Array(100)].map((l, n) => {
2158
+ const r = Math.floor(n / t.length), o = n % t.length;
2159
2159
  return r ? `${r > 1 ? t[r] : ""}十${o ? t[o] : ""}` : t[o];
2160
2160
  })[e + 1];
2161
2161
  }
@@ -2179,9 +2179,9 @@ const za = {
2179
2179
  },
2180
2180
  setup(e) {
2181
2181
  const t = e, a = N(() => t.data.filter((l) => l.problemType));
2182
- return (l, s) => l.layout.scoreFlag ? (i(), d("ul", za, [
2182
+ return (l, n) => l.layout.scoreFlag ? (i(), u("ul", za, [
2183
2183
  Ha,
2184
- (i(!0), d(E, null, Z(a.value, (r, o) => (i(), d("li", {
2184
+ (i(!0), u(E, null, Z(a.value, (r, o) => (i(), u("li", {
2185
2185
  key: r.id,
2186
2186
  class: "flex-1 flex flex-col border-l"
2187
2187
  }, [
@@ -2200,14 +2200,14 @@ const za = {
2200
2200
  styleInfo: {}
2201
2201
  },
2202
2202
  setup(e, { expose: t }) {
2203
- const a = e, l = Y(), s = Y();
2204
- t({ col: l, colView: s });
2203
+ const a = e, l = Y(), n = Y();
2204
+ t({ col: l, colView: n });
2205
2205
  const r = N(() => {
2206
- const { top: c, width: u, height: p, left: A } = a.styleInfo;
2206
+ const { top: c, width: d, height: p, left: A } = a.styleInfo;
2207
2207
  return {
2208
2208
  top: `${parseFloat(c) - (a.currentColumn ? $e.top : 1)}px`,
2209
2209
  left: `${parseFloat(A) - $e.left}px`,
2210
- width: `${parseFloat(u) + $e.left + $e.right}px`,
2210
+ width: `${parseFloat(d) + $e.left + $e.right}px`,
2211
2211
  height: `${parseFloat(p) + (a.currentColumn ? $e.top : 0) + $e.bottom}px`
2212
2212
  };
2213
2213
  }), o = N(() => ({
@@ -2215,11 +2215,11 @@ const za = {
2215
2215
  top: `${$e.top - 1}px`,
2216
2216
  bottom: `${$e.bottom - 1}px`,
2217
2217
  right: `${$e.right - 1}px`
2218
- })), n = N(() => a.column < 3 || a.currentColumn % 3 === 1);
2219
- return (c, u) => (i(), d(E, null, [
2220
- c.showColBorder ? (i(), d("div", {
2218
+ })), s = N(() => a.column < 3 || a.currentColumn % 3 === 1);
2219
+ return (c, d) => (i(), u(E, null, [
2220
+ c.showColBorder ? (i(), u("div", {
2221
2221
  key: 0,
2222
- class: oe(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", n.value && "tips"]),
2222
+ class: oe(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", s.value && "tips"]),
2223
2223
  style: q(r.value)
2224
2224
  }, [
2225
2225
  f("span", {
@@ -2230,7 +2230,7 @@ const za = {
2230
2230
  f("div", {
2231
2231
  class: "absolute overflow-hidden",
2232
2232
  ref_key: "colView",
2233
- ref: s,
2233
+ ref: n,
2234
2234
  style: q(c.styleInfo)
2235
2235
  }, [
2236
2236
  f("div", {
@@ -2245,8 +2245,8 @@ const za = {
2245
2245
  ], 64));
2246
2246
  }
2247
2247
  });
2248
- const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e) => (He("data-v-3f588317"), e = e(), Re(), e), Ua = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", { class: "flex-1 border-b" }, null, -1)), ja = ["data-xine"], Ka = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", null, "贴条码区域", -1)), Va = [
2249
- Ka
2248
+ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e) => (He("data-v-3f588317"), e = e(), Re(), e), Ua = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", { class: "flex-1 border-b" }, null, -1)), Ka = ["data-xine"], ja = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", null, "贴条码区域", -1)), Va = [
2249
+ ja
2250
2250
  ], Xa = ["data-xine"], Ja = /* @__PURE__ */ ee({
2251
2251
  __name: "bind",
2252
2252
  props: {
@@ -2257,23 +2257,23 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e)
2257
2257
  },
2258
2258
  setup(e) {
2259
2259
  const t = Y(), a = ["学校", "班级", "准考证号", "姓名"];
2260
- return (l, s) => l.isBindFlag ? (i(), d("div", {
2260
+ return (l, n) => l.isBindFlag ? (i(), u("div", {
2261
2261
  key: 0,
2262
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(), d("div", {
2267
+ l.currentPage % 2 ? (i(), u("div", {
2268
2268
  key: 0,
2269
2269
  class: "flex items-center justify-center origin-top-left border-b end_view",
2270
2270
  style: q({ width: `${l.height - 20}px`, height: `${l.width}px` })
2271
- }, "当前位置为密封线位置,请勿在此处作答", 4)) : (i(), d("div", {
2271
+ }, "当前位置为密封线位置,请勿在此处作答", 4)) : (i(), u("div", {
2272
2272
  key: 1,
2273
2273
  class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
2274
2274
  style: q({ width: `${l.height - 20}px` })
2275
2275
  }, [
2276
- (i(), d(E, null, Z(a, (r) => f("p", {
2276
+ (i(), u(E, null, Z(a, (r) => f("p", {
2277
2277
  key: r,
2278
2278
  class: "flex items-end flex-1 mr-4"
2279
2279
  }, [
@@ -2283,7 +2283,7 @@ const Qa = /* @__PURE__ */ de(qa, [["__scopeId", "data-v-e102e805"]]), At = (e)
2283
2283
  f("div", {
2284
2284
  class: "flex items-center justify-center border border-dashed font-bold w-80 h-40",
2285
2285
  "data-xine": x(k).en_code
2286
- }, Va, 8, ja),
2286
+ }, Va, 8, Ka),
2287
2287
  f("span", {
2288
2288
  "data-xine": x(k).bind_line
2289
2289
  }, null, 8, Xa)
@@ -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 = N(() => {
2302
- const s = t.item.score;
2303
- return [s, Math.round(s / 2 * 100) / 100, 0];
2302
+ const n = t.item.score;
2303
+ return [n, Math.round(n / 2 * 100) / 100, 0];
2304
2304
  });
2305
- return (s, r) => (i(), d("div", {
2305
+ return (n, r) => (i(), 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,15 +2311,15 @@ 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), d(E, null, Z(l.value, (o, n) => (i(), d("li", {
2314
+ (i(!0), u(E, null, Z(l.value, (o, s) => (i(), u("li", {
2315
2315
  class: "flex items-center justify-center relative score_line",
2316
- style: q({ width: `${x(Ke)[s.layout.scoreLineSize].value}px` }),
2316
+ style: q({ width: `${x(je)[n.layout.scoreLineSize].value}px` }),
2317
2317
  "data-xine": x(k).score_item
2318
2318
  }, [
2319
2319
  f("span", il, J(o), 1),
2320
2320
  V(_e, {
2321
2321
  class: "p-0",
2322
- name: a[n]
2322
+ name: a[s]
2323
2323
  }, null, 8, ["name"])
2324
2324
  ], 12, sl))), 256))
2325
2325
  ], 8, nl)
@@ -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), s = Y(!1), r = Y(!1), o = Y([]), n = N(() => t.layout.scoreAddStars === Ze.star.code);
2336
+ const t = e, a = Y(), l = Y(!1), n = Y(!1), r = Y(!1), o = Y([]), s = N(() => t.layout.scoreAddStars === Ze.star.code);
2337
2337
  Me(() => [t.item.score], () => c()), Xe(() => {
2338
2338
  c();
2339
2339
  });
2340
2340
  const c = () => {
2341
2341
  !t.layout.handReadFlag || t.layout.simpleScoreBarFlag && !t.static || Je(() => {
2342
2342
  let p = [];
2343
- if (t.item.scoreLineType === je.custom)
2343
+ if (t.item.scoreLineType === Ke.custom)
2344
2344
  p = [[...t.item.customScore, 0]];
2345
2345
  else if (t.item.scoreStep)
2346
2346
  p.push([...Array(Math.ceil((t.item.scoreStep || t.item.score || 0) + 1)).keys()].map((A) => Math.round(t.item.score / (t.item.scoreStep || t.item.score || 1) * A)).reverse());
2347
2347
  else {
2348
- const A = a.value.offsetWidth, h = Ke[t.layout.scoreLineSize].value + 1;
2349
- l.value = A - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, l.value ? (p.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((F) => F && F * 10).reverse()), p.push([...Array(10).keys()].reverse()), r.value = !0) : p.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
2348
+ const A = a.value.offsetWidth, h = je[t.layout.scoreLineSize].value + 1;
2349
+ l.value = A - 1 <= (Math.ceil(t.item.score + 1) + Number(t.layout.halfScoreFlag)) * h && t.item.score >= 10, l.value ? (p.push(["", ...Array(Math.ceil((t.item.score + 1) / 10)).keys()].map((T) => T && T * 10).reverse()), p.push([...Array(10).keys()].reverse()), r.value = !0) : p.push([...Array(Math.ceil((t.item.score || 0) + 1)).keys()].reverse());
2350
2350
  }
2351
- t.item.hasHalfScore && p.push([0.5]), o.value = p, s.value = !!p.flat().find((A) => `${A}`.length > 3);
2351
+ t.item.hasHalfScore && p.push([0.5]), o.value = p, n.value = !!p.flat().find((A) => `${A}`.length > 3);
2352
2352
  });
2353
- }, u = (p) => t.item.hasHalfScore ? [k.score_half, k.score_base, k.score_tenbit][o.value.length - p - 1] : [k.score_base, k.score_tenbit][o.value.length - p - 1];
2354
- return (p, A) => p.layout.handReadFlag ? (i(), d(E, { key: 0 }, [
2355
- p.layout.simpleScoreBarFlag && !p.static ? (i(), K(rl, {
2353
+ }, d = (p) => t.item.hasHalfScore ? [k.score_half, k.score_base, k.score_tenbit][o.value.length - p - 1] : [k.score_base, k.score_tenbit][o.value.length - p - 1];
2354
+ return (p, A) => p.layout.handReadFlag ? (i(), u(E, { key: 0 }, [
2355
+ p.layout.simpleScoreBarFlag && !p.static ? (i(), j(rl, {
2356
2356
  key: 0,
2357
2357
  item: p.item,
2358
2358
  layout: p.layout
2359
- }, null, 8, ["item", "layout"])) : (i(), d("div", {
2359
+ }, null, 8, ["item", "layout"])) : (i(), u("div", {
2360
2360
  key: 1,
2361
2361
  ref_key: "view",
2362
2362
  ref: a,
@@ -2364,23 +2364,23 @@ 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), d(E, null, Z(o.value, (h, F) => (i(), d("ul", {
2367
+ (i(!0), u(E, null, Z(o.value, (h, T) => (i(), u("ul", {
2368
2368
  class: "flex divide-x divide-solid",
2369
- "data-xine": u(F)
2369
+ "data-xine": d(T)
2370
2370
  }, [
2371
- (i(!0), d(E, null, Z(h, (U) => (i(), d("li", {
2371
+ (i(!0), u(E, null, Z(h, (Q) => (i(), 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": U.toString() ? x(k).score_item : ""
2373
+ style: q({ width: `${x(je)[p.layout.scoreLineSize].value}px` }),
2374
+ "data-xine": Q.toString() ? x(k).score_item : ""
2375
2375
  }, [
2376
2376
  f("span", {
2377
- class: oe(["whitespace-nowrap", n.value && "origin-right", s.value && "scale-75"])
2378
- }, J(p.layout.minusFlag && U.toString().length && !n.value ? "-" : "") + J(U), 3),
2379
- n.value && U.toString().length ? (i(), K(_e, {
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(), j(_e, {
2380
2380
  key: 0,
2381
2381
  class: "px-0 py-0 -translate-y-[1px]",
2382
2382
  name: p.layout.minusFlag ? "fiveArrowLine" : "fiveArrow",
2383
- width: s.value ? 0.9 : 1.2
2383
+ width: n.value ? 0.9 : 1.2
2384
2384
  }, null, 8, ["name", "width"])) : M("", !0)
2385
2385
  ], 12, ul))), 256))
2386
2386
  ], 8, dl))), 256))
@@ -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(), d("div", {
2397
+ return (t, a) => (i(), 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(), d("div", {
2418
+ return (a, l) => (i(), u("div", {
2419
2419
  innerHTML: t.data,
2420
2420
  class: "base-problem-font problem-base"
2421
2421
  }, null, 8, fl));
@@ -2427,7 +2427,7 @@ 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(), d("div", {
2430
+ return (t, a) => (i(), u("div", {
2431
2431
  class: "py-2 border border-dashed rounded-lg mx-1 my-2",
2432
2432
  "data-tag": t.item.__tag__,
2433
2433
  "data-block": x(ut)
@@ -2455,32 +2455,32 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2455
2455
  },
2456
2456
  emits: ["click", "dbclick"],
2457
2457
  setup(e, { emit: t }) {
2458
- const a = e, l = N(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.filter((n) => n.problemType) : null), s = N(() => [ve.another_choice].includes(a.item.problemType)), r = N(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.length : [...new Set(Oa(a.item.rawChildren.filter((n) => n.problemType), "sub").flat().map((n) => (n || "").split(".")[0]))].length), o = N(() => [...new Set(a.item.rawChildren.map((n) => [...new Set(n.sub.map((c) => c.split(".")[0]))]).map((n) => n.length > 1 ? `${n[0]}-${n[n.length - 1]}` : n[0]))]);
2459
- return (n, c) => n.item.problemType ? (i(), d("div", {
2458
+ const a = e, l = N(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.filter((s) => s.problemType) : null), n = N(() => [ve.another_choice].includes(a.item.problemType)), r = N(() => [ve.one_choice].includes(a.item.problemType) ? a.item.rawChildren.length : [...new Set(Oa(a.item.rawChildren.filter((s) => s.problemType), "sub").flat().map((s) => (s || "").split(".")[0]))].length), o = N(() => [...new Set(a.item.rawChildren.map((s) => [...new Set(s.sub.map((c) => c.split(".")[0]))]).map((s) => s.length > 1 ? `${s[0]}-${s[s.length - 1]}` : s[0]))]);
2459
+ return (s, c) => s.item.problemType ? (i(), u("div", {
2460
2460
  key: 1,
2461
- class: oe(["flex items-baseline relative headline_item", n.showColBorder && "pl-2 mx-1 z-2", !n.isFirst && "headline_view"]),
2462
- onClick: c[2] || (c[2] = Le((u) => t("click", n.item), ["stop"])),
2463
- "data-tag": n.item.__tag__,
2461
+ class: oe(["flex items-baseline relative headline_item", s.showColBorder && "pl-2 mx-1 z-2", !s.isFirst && "headline_view"]),
2462
+ onClick: c[2] || (c[2] = Le((d) => t("click", s.item), ["stop"])),
2463
+ "data-tag": s.item.__tag__,
2464
2464
  "data-block": x(ke),
2465
- onDblclick: c[3] || (c[3] = Le((u) => t("dbclick", n.item), ["stop"]))
2465
+ onDblclick: c[3] || (c[3] = Le((d) => t("dbclick", s.item), ["stop"]))
2466
2466
  }, [
2467
- !n.layout.listIndexFlag && n.item.sub ? (i(), d("span", kl, J(x(Mt)(n.item.sub - 1)) + "、", 1)) : M("", !0),
2467
+ !s.layout.listIndexFlag && s.item.sub ? (i(), u("span", kl, J(x(Mt)(s.item.sub - 1)) + "、", 1)) : M("", !0),
2468
2468
  f("div", null, [
2469
2469
  f("div", Cl, [
2470
- f("span", null, J(n.item.name), 1),
2471
- n.item.desc ? (i(), d("span", $l, "(" + J(n.item.desc) + ")", 1)) : M("", !0),
2472
- n.layout.scoreTipFlag ? (i(), d("span", Sl, "(共" + J(r.value) + "题,共" + J(n.item.totalScore) + "分)", 1)) : M("", !0)
2470
+ f("span", null, J(s.item.name), 1),
2471
+ s.item.desc ? (i(), u("span", $l, "(" + J(s.item.desc) + ")", 1)) : M("", !0),
2472
+ s.layout.scoreTipFlag ? (i(), u("span", Sl, "(共" + J(r.value) + "题,共" + J(s.item.totalScore) + "分)", 1)) : M("", !0)
2473
2473
  ]),
2474
- l.value || s.value ? (i(), d("div", Tl, [
2475
- l.value ? (i(), d("p", Il, "请在以下" + J(n.item.rawChildren.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (i(), d("p", Ll, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
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, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
2476
2476
  f("p", {
2477
2477
  class: "flex flex-wrap",
2478
2478
  "data-block": x(ke),
2479
- "data-xine": x(k).choice + n.item.id
2479
+ "data-xine": x(k).choice + s.item.id
2480
2480
  }, [
2481
2481
  El,
2482
- (i(!0), d(E, null, Z(o.value, (u, p) => (i(), d("span", Pl, [
2483
- f("span", null, J(u), 1),
2482
+ (i(!0), u(E, null, Z(o.value, (d, p) => (i(), u("span", Pl, [
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
@@ -2489,12 +2489,12 @@ const Ae = /* @__PURE__ */ de(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2489
2489
  ], 8, Fl)
2490
2490
  ])) : M("", !0)
2491
2491
  ])
2492
- ], 42, xl)) : (i(), K(vl, {
2492
+ ], 42, xl)) : (i(), j(vl, {
2493
2493
  key: 0,
2494
- class: oe([n.isActive && "border-current", n.isFirst && "mt-9"]),
2495
- item: n.item,
2496
- onClick: c[0] || (c[0] = Le((u) => t("click", n.item), ["stop"])),
2497
- onDblclick: c[1] || (c[1] = Le((u) => t("dbclick", n.item), ["stop"]))
2494
+ class: oe([s.isActive && "border-current", s.isFirst && "mt-9"]),
2495
+ item: s.item,
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
  });
@@ -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(), d("div", {
2512
+ return (t, a) => (i(), u("div", {
2513
2513
  class: "flex items-center red_sheet",
2514
2514
  "data-block": x(ke)
2515
2515
  }, [
2516
- (i(!0), d(E, null, Z(t.item.optList, (l, s) => (i(), d("span", {
2517
- class: oe(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(kt)[s]) && "bg-success border-success"]),
2516
+ (i(!0), u(E, 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
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 + s
2519
+ "data-xine": x(k).fill + n
2520
2520
  }, [
2521
2521
  V(_e, {
2522
2522
  width: 1,
2523
- name: x(kt)[s]
2523
+ name: x(kt)[n]
2524
2524
  }, null, 8, ["name"])
2525
2525
  ], 14, zl))), 256))
2526
2526
  ], 8, Ol));
@@ -2529,8 +2529,8 @@ const Bl = /* @__PURE__ */ de(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
2529
2529
  function Wl(e, t) {
2530
2530
  return null;
2531
2531
  }
2532
- const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"], jl = /* @__PURE__ */ f("span", { class: "text-sm scale-75" }, "T", -1), Kl = [
2533
- jl
2532
+ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"], Kl = /* @__PURE__ */ f("span", { class: "text-sm scale-75" }, "T", -1), jl = [
2533
+ Kl
2534
2534
  ], Vl = ["data-xine"], Xl = /* @__PURE__ */ f("span", { class: "text-sm scale-75" }, "F", -1), Jl = [
2535
2535
  Xl
2536
2536
  ], Zl = /* @__PURE__ */ ee({
@@ -2544,11 +2544,11 @@ 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, s) => (i(), d("div", {
2547
+ return (l, n) => (i(), 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(), d(E, { key: 0 }, [
2551
+ l.item.style[x(y)[l.layout.mode].decide_a] === x(F).decide_1 ? (i(), u(E, { 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
2554
  style: q(a.value),
@@ -2569,12 +2569,12 @@ const Gl = /* @__PURE__ */ de(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
2569
2569
  width: 1
2570
2570
  })
2571
2571
  ], 14, Ql)
2572
- ], 64)) : (i(), d(E, { key: 1 }, [
2572
+ ], 64)) : (i(), u(E, { 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
2575
  style: q(a.value),
2576
2576
  "data-xine": x(k).fill + "0"
2577
- }, Kl, 14, Ul),
2577
+ }, jl, 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
2580
  style: q(a.value),
@@ -2599,20 +2599,20 @@ const on = /* @__PURE__ */ de(en, [["render", tn]]), an = ["data-block", "data-x
2599
2599
  },
2600
2600
  setup(e) {
2601
2601
  const t = e, a = N(() => t.layout.scoreAddStars === Ze.star.code);
2602
- return (l, s) => l.layout.handReadFlag ? (i(), d("div", {
2602
+ return (l, n) => l.layout.handReadFlag ? (i(), 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(), d("span", ln, [
2608
+ l.showScoreCn ? (i(), u("span", ln, [
2609
2609
  f("span", null, J(l.layout.minusFlag && !a.value ? "-" : "") + J(l.item.score), 1),
2610
- a.value ? (i(), K(_e, {
2610
+ a.value ? (i(), j(_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(), d("span", nn, "分"))
2615
+ }, null, 8, ["name"])) : (i(), u("span", nn, "分"))
2616
2616
  ])) : M("", !0)
2617
2617
  ], 8, an)) : M("", !0);
2618
2618
  }
@@ -2624,13 +2624,13 @@ 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(), d(E, null, [
2627
+ return (a, l) => (i(), u(E, null, [
2628
2628
  f("div", {
2629
2629
  class: "flex-1 border-b self-stretch red_sheet",
2630
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(), K(sn, {
2633
+ a.layout.handReadFlag ? (i(), j(sn, {
2634
2634
  key: 0,
2635
2635
  item: a.item,
2636
2636
  layout: a.layout,
@@ -2650,10 +2650,10 @@ 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(), d("div", {
2653
+ return (t, a) => (i(), u("div", {
2654
2654
  class: oe(["w-full min-h-[5rem] pt-2", !t.isFirst && "border-t"])
2655
2655
  }, [
2656
- t.item.chunk ? M("", !0) : (i(), d("div", {
2656
+ t.item.chunk ? M("", !0) : (i(), u("div", {
2657
2657
  key: 0,
2658
2658
  class: "flex items-center",
2659
2659
  "data-block": x(ke)
@@ -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(), d(E, null, [
2686
+ return (t, a) => (i(), u(E, null, [
2687
2687
  bn,
2688
2688
  V(tt, {
2689
2689
  item: t.item,
@@ -2718,10 +2718,10 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2718
2718
  layout: {}
2719
2719
  },
2720
2720
  setup(e) {
2721
- const t = e, a = Y(0), l = Y({}), s = Y(), r = Y(), o = Y([]), n = N(() => {
2721
+ const t = e, a = Y(0), l = Y({}), n = Y(), r = Y(), o = Y([]), s = N(() => {
2722
2722
  const h = Math.max((t.item.endAnswerLen || parseInt(t.item.style[y[t.layout.mode].art_c]) || t.item.answerLen) - t.item.startAnswerLen, A.value.length, 0);
2723
2723
  return h ? Math.ceil(h / (a.value || h)) : 0;
2724
- }), c = N(() => parseInt(t.item.style[y[t.layout.mode].art_b])), u = N(() => ({
2724
+ }), c = N(() => parseInt(t.item.style[y[t.layout.mode].art_b])), d = N(() => ({
2725
2725
  width: `${a.value * c.value}px`,
2726
2726
  height: `${c.value}px`
2727
2727
  })), p = N(() => ({
@@ -2729,25 +2729,25 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2729
2729
  })), A = N(() => 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(s.value.offsetWidth / c.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
2733
- if (!s.value)
2732
+ a.value = Math.floor(n.value.offsetWidth / c.value), t.item.beforeGuide && !t.item.artBlock && setTimeout(() => {
2733
+ if (!n.value)
2734
2734
  return;
2735
- const T = s.value.getBoundingClientRect(), R = r.value[0].getBoundingClientRect();
2735
+ const I = n.value.getBoundingClientRect(), H = r.value[0].getBoundingClientRect();
2736
2736
  l.value = {
2737
- left: `${R.left - T.left}px`,
2738
- top: `${R.top - T.top}px`
2737
+ left: `${H.left - I.left}px`,
2738
+ top: `${H.top - I.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], U = Math.floor(h / F), G = Math.round(U / (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, U) - 1 || 0).keys()].map((T) => (T + 1) * G).concat(h / F < 2 ? F : h).filter((T) => T);
2744
- }), (h, F) => (i(), d("div", {
2742
+ const h = parseInt(t.item.style[y[t.layout.mode].art_c]), T = t.item.style[y[t.layout.mode].art_e], Q = Math.floor(h / T), G = Math.round(Q / (t.item.style[y[t.layout.mode].art_d] || 1) - 0.01) * T;
2743
+ o.value = [...Array(Math.min(t.item.style[y[t.layout.mode].art_d] || 1, Q) - 1 || 0).keys()].map((I) => (I + 1) * G).concat(h / T < 2 ? T : h).filter((I) => I);
2744
+ }), (h, T) => (i(), u("div", {
2745
2745
  class: "w-full relative min-h-[10rem]",
2746
2746
  ref_key: "view",
2747
- ref: s,
2747
+ ref: n,
2748
2748
  "data-viewid": h.item.id
2749
2749
  }, [
2750
- h.item.chunk ? M("", !0) : (i(), d("div", {
2750
+ h.item.chunk ? M("", !0) : (i(), u("div", {
2751
2751
  key: 0,
2752
2752
  class: "flex items-center mt-1 mb-4",
2753
2753
  "data-block": x(ke)
@@ -2760,42 +2760,42 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2760
2760
  }, null, 8, ["item", "layout"])
2761
2761
  ])
2762
2762
  ], 8, Bn)),
2763
- h.item.beforeArt && !h.item.startAnswerLen ? (i(), K(Ae, {
2763
+ h.item.beforeArt && !h.item.startAnswerLen ? (i(), j(Ae, {
2764
2764
  key: 1,
2765
2765
  data: h.item.beforeArt,
2766
2766
  "data-bart": h.item.id,
2767
2767
  class: "indent-[2em]"
2768
2768
  }, null, 8, ["data", "data-bart"])) : M("", !0),
2769
- h.item.beforeGuide && !h.item.artBlock ? (i(), d("p", {
2769
+ h.item.beforeGuide && !h.item.artBlock ? (i(), u("p", {
2770
2770
  key: 2,
2771
2771
  "data-block": x(Ee),
2772
2772
  "data-guide": h.item.id,
2773
2773
  class: oe(["absolute", !h.item.startAnswerLen && "indent-[2em]"]),
2774
- style: q({ ...l.value, width: u.value.width, lineHeight: `${c.value + 7}px` })
2774
+ style: q({ ...l.value, width: d.value.width, lineHeight: `${c.value + 7}px` })
2775
2775
  }, J(h.item.beforeGuide), 15, zn)) : M("", !0),
2776
- (i(!0), d(E, null, Z(n.value, (U, G) => (i(), d("p", {
2776
+ (i(!0), u(E, null, Z(s.value, (Q, G) => (i(), u("p", {
2777
2777
  ref_for: !0,
2778
2778
  ref_key: "line",
2779
2779
  ref: r,
2780
2780
  class: oe(["flex mx-auto mt-3 mb-1 relative red_sheet", h.item.artBlock ? "border divide-x divide-solid" : "border-b"]),
2781
2781
  "data-block": x(ke),
2782
2782
  "data-size": h.item.startAnswerLen + (G + 1) * a.value,
2783
- style: q(u.value)
2783
+ style: q(d.value)
2784
2784
  }, [
2785
- h.item.artBlock ? (i(!0), d(E, { key: 0 }, Z(a.value, (T, R) => (i(), d("span", {
2786
- class: oe([A.value[G * a.value + R] && "flex items-center justify-center"]),
2785
+ h.item.artBlock ? (i(!0), u(E, { key: 0 }, Z(a.value, (I, H) => (i(), u("span", {
2786
+ class: oe([A.value[G * a.value + H] && "flex items-center justify-center"]),
2787
2787
  style: q(p.value)
2788
- }, J(A.value[G * a.value + R]), 7))), 256)) : M("", !0),
2789
- (i(!0), d(E, null, Z(o.value, (T) => (i(), d(E, null, [
2790
- h.item.startAnswerLen + G * a.value < T && h.item.startAnswerLen + (G + 1) * a.value >= T ? (i(), d("span", {
2788
+ }, J(A.value[G * a.value + H]), 7))), 256)) : M("", !0),
2789
+ (i(!0), u(E, null, Z(o.value, (I) => (i(), u(E, null, [
2790
+ h.item.startAnswerLen + G * a.value < I && h.item.startAnswerLen + (G + 1) * a.value >= I ? (i(), u("span", {
2791
2791
  key: 0,
2792
2792
  class: "absolute leading-4 text-base -bottom-4 scale-50 border-transparent",
2793
- style: q({ left: `${(T - h.item.startAnswerLen) % a.value * c.value}px` }),
2793
+ style: q({ left: `${(I - h.item.startAnswerLen) % a.value * c.value}px` }),
2794
2794
  "data-block": x(Ee)
2795
- }, J(T), 13, Rn)) : M("", !0)
2795
+ }, J(I), 13, Rn)) : M("", !0)
2796
2796
  ], 64))), 256))
2797
2797
  ], 14, Hn))), 256)),
2798
- h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (i(), K(Ae, {
2798
+ h.item.afterArt && [-1, 0].includes(h.item.endAnswerLen) ? (i(), j(Ae, {
2799
2799
  key: 3,
2800
2800
  data: h.item.afterArt,
2801
2801
  "data-aart": h.item.id,
@@ -2811,7 +2811,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2811
2811
  },
2812
2812
  emits: ["change"],
2813
2813
  setup(e, { emit: t }) {
2814
- return (a, l) => (i(), d("div", {
2814
+ return (a, l) => (i(), u("div", {
2815
2815
  class: "px-2 py-3 w-full border border-dashed rounded-lg",
2816
2816
  "data-block": x(ut)
2817
2817
  }, [
@@ -2821,7 +2821,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2821
2821
  }, null, 8, ["data-content", "data"])
2822
2822
  ], 8, Gn));
2823
2823
  }
2824
- }), qn = ["data-block"], Qn = { key: 0 }, Un = { key: 1 }, jn = { key: 2 }, Kn = {
2824
+ }), qn = ["data-block"], Qn = { key: 0 }, Un = { key: 1 }, Kn = { key: 2 }, jn = {
2825
2825
  key: 3,
2826
2826
  class: "flex items-center justify-center w-8 h-8 border rounded-full scale-75"
2827
2827
  }, Vn = /* @__PURE__ */ ee({
@@ -2832,17 +2832,17 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2832
2832
  width: {}
2833
2833
  },
2834
2834
  setup(e) {
2835
- const t = e, a = N(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((r) => r.split(".")).map((r) => t.isFull ? r : r.map((o, n) => n === r.length - 1 ? o : ""))), l = N(() => t.width ? `${t.width}em` : "");
2836
- return (s, r) => (i(), d("span", {
2837
- class: oe(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", s.isFull && "justify-end"]),
2835
+ const t = e, a = N(() => (t.sub.length > 1 ? [t.sub[0], t.sub[t.sub.length - 1]] : t.sub).map((r) => r.split(".")).map((r) => t.isFull ? r : r.map((o, s) => s === r.length - 1 ? o : ""))), l = N(() => t.width ? `${t.width}em` : "");
2836
+ return (n, r) => (i(), u("span", {
2837
+ class: oe(["flex items-center flex-shrink-0 leading-none mr-2 mt-[1px]", n.isFull && "justify-end"]),
2838
2838
  style: q({ width: l.value }),
2839
2839
  "data-block": x(Ee)
2840
2840
  }, [
2841
- (i(!0), d(E, null, Z(a.value, (o, n) => (i(), d(E, null, [
2842
- n ? (i(), d("span", Qn, " - ")) : M("", !0),
2843
- o[0] ? (i(), d("span", Un, J(o[0]), 1)) : M("", !0),
2844
- o[1] ? (i(), d("span", jn, "(" + J(o[1]) + ")", 1)) : M("", !0),
2845
- o[2] ? (i(), d("span", Kn, J(o[2]), 1)) : M("", !0)
2841
+ (i(!0), u(E, null, Z(a.value, (o, s) => (i(), u(E, null, [
2842
+ s ? (i(), u("span", Qn, " - ")) : M("", !0),
2843
+ o[0] ? (i(), u("span", Un, J(o[0]), 1)) : M("", !0),
2844
+ o[1] ? (i(), u("span", Kn, "(" + J(o[1]) + ")", 1)) : M("", !0),
2845
+ o[2] ? (i(), u("span", jn, J(o[2]), 1)) : M("", !0)
2846
2846
  ], 64))), 256))
2847
2847
  ], 14, qn));
2848
2848
  }
@@ -2894,7 +2894,7 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2894
2894
  dbclick: null
2895
2895
  },
2896
2896
  setup(e, { emit: t }) {
2897
- const a = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Et), s = Y(""), r = N(() => {
2897
+ const a = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", l = Object.values(Et), n = Y(""), r = N(() => {
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,32 +2902,32 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), 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, v) => ({ ...C, [m[v]]: Object.keys(_).find((H) => _[H].includes(m[v])) || `${v}${a}` }), {});
2906
- }), o = N(() => [ve.one_choice, ve.another_choice].includes(e.data.problemType)), n = N(() => {
2905
+ return Object.keys(m).reduce((C, w) => ({ ...C, [m[w]]: Object.keys(_).find((R) => _[R].includes(m[w])) || `${w}${a}` }), {});
2906
+ }), o = N(() => [ve.one_choice, ve.another_choice].includes(e.data.problemType)), s = N(() => {
2907
2907
  let _ = [];
2908
2908
  return e.data.children.forEach((C) => {
2909
- let v = _[_.length - 1];
2910
- (C.polymerId || l.includes(e.data.problemType)) && l.includes(C.problemType) && C.style && (C.style[y[e.layout.mode].choice_a] !== L.choice_1 || C.style[y[e.layout.mode].choice_b] === L.portrait) ? (!v || v.type !== "polymer" || v.polymerId !== C.polymerId) && (_.push({
2909
+ let w = _[_.length - 1];
2910
+ (C.polymerId || l.includes(e.data.problemType)) && l.includes(C.problemType) && C.style && (C.style[y[e.layout.mode].choice_a] !== F.choice_1 || C.style[y[e.layout.mode].choice_b] === F.portrait) ? (!w || w.type !== "polymer" || w.polymerId !== C.polymerId) && (_.push({
2911
2911
  type: "polymer",
2912
2912
  problemType: C.problemType,
2913
2913
  polymerId: C.polymerId,
2914
2914
  styleInfo: C.polymerId ? C.style : e.data.style,
2915
2915
  children: [],
2916
2916
  rawChildren: e.data.rawChildren || []
2917
- }), v = _[_.length - 1]) : (!v || v.type !== "base") && (_.push({
2917
+ }), w = _[_.length - 1]) : (!w || w.type !== "base") && (_.push({
2918
2918
  type: "base",
2919
2919
  children: []
2920
- }), v = _[_.length - 1]), v.children.push(C);
2920
+ }), w = _[_.length - 1]), w.children.push(C);
2921
2921
  }), _ = _.map((C) => {
2922
- var v;
2923
- if (C.type === "polymer" && C.styleInfo[y[e.layout.mode].choice_a] === L.choice_3) {
2924
- const H = Math.floor(e.width / (Math.max(...C.children.map((B) => B.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((v = C.children[0]) == null ? void 0 : v.polymerId) || ""]) * 14 + 20));
2925
- if (C.children.length > H * 5) {
2922
+ var w;
2923
+ if (C.type === "polymer" && C.styleInfo[y[e.layout.mode].choice_a] === F.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
2926
  const B = C.children.length % 4 > 4 ? 5 : 4;
2927
- return [...Array(Math.ceil(C.children.length / (H * B))).keys()].map((ye, pe) => ({
2927
+ return [...Array(Math.ceil(C.children.length / (R * B))).keys()].map((ye, pe) => ({
2928
2928
  ...C,
2929
2929
  groupIndex: pe,
2930
- children: C.children.slice(pe * H * B, (pe + 1) * H * B)
2930
+ children: C.children.slice(pe * R * B, (pe + 1) * R * B)
2931
2931
  }));
2932
2932
  } else
2933
2933
  return C;
@@ -2939,13 +2939,13 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2939
2939
  return e.data.children.forEach((C) => {
2940
2940
  C.polymerId && (_[C.polymerId] || (_[C.polymerId] = []), _[C.polymerId][C.polymerOrder || 0] = C.id);
2941
2941
  }), _;
2942
- }), u = N(() => {
2942
+ }), d = N(() => {
2943
2943
  if (l.includes(e.data.problemType)) {
2944
2944
  const _ = (e.data.rawChildren || e.data.children).map((C) => C.subStr.length);
2945
2945
  return { [`h${e.data.id}`]: Math.max(..._) };
2946
2946
  } else
2947
2947
  return Object.keys(c.value).map((_) => {
2948
- const C = (e.data.rawChildren || e.data.children).filter((v) => v.polymerId === _).map((v) => v.subStr.length);
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)
2951
2951
  };
@@ -2953,39 +2953,39 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2953
2953
  });
2954
2954
  return {
2955
2955
  Gps_cls: k,
2956
- hoverActive: s,
2956
+ hoverActive: n,
2957
2957
  ModuleTag: a,
2958
2958
  ChoiceType: o,
2959
- GroupData: n,
2959
+ GroupData: s,
2960
2960
  PolymerData: c,
2961
- SubWidthInfo: u,
2961
+ SubWidthInfo: d,
2962
2962
  ComputName: (_) => _.problemType ? r.value[_.problemType] : "notArea",
2963
2963
  ComputAbs: (_) => a && [m.slove, m.art].includes(_.problemType),
2964
- ComputPolymerCls: (_) => [m.decide].includes(_.problemType) ? [] : _.styleInfo[y[e.layout.mode].choice_a] === L.choice_2 ? ["port_view"] : ["grid", _.groupIndex && "mt-8"],
2964
+ ComputPolymerCls: (_) => [m.decide].includes(_.problemType) ? [] : _.styleInfo[y[e.layout.mode].choice_a] === F.choice_2 ? ["port_view"] : ["grid", _.groupIndex && "mt-8"],
2965
2965
  ComputPolymerStyle: (_) => {
2966
2966
  var pe, ie;
2967
2967
  let C = {};
2968
- const v = Math.max(...(_.rawChildren || _.children).map((fe) => {
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) + (u.value[`h${e.data.id}`] || u.value[((pe = e.data.children[0]) == null ? void 0 : pe.polymerId) || ""]) * 14 + 20, H = 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, R = Math.floor(e.width / (Math.max(...(_.rawChildren || _.children).map((fe) => {
2972
2972
  var ue;
2973
2973
  return ((ue = fe.optList) == null ? void 0 : ue.length) || 0;
2974
- })) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((ie = _.children[0]) == null ? void 0 : ie.polymerId) || ""]) * 14 + 20)), B = Math.min(H, e.data.style[y[e.layout.mode].choice_d] || 10), ye = (e.width - v * 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)), B = Math.min(R, e.data.style[y[e.layout.mode].choice_d] || 10), ye = (e.width - w * B) / (B - 1) - 10;
2975
2975
  switch (_.styleInfo[y[e.layout.mode].choice_a]) {
2976
- case L.choice_1:
2977
- _.styleInfo[y[e.layout.mode].choice_b] === L.portrait && (C = {
2976
+ case F.choice_1:
2977
+ _.styleInfo[y[e.layout.mode].choice_b] === F.portrait && (C = {
2978
2978
  "grid-auto-flow": e.noPortrait ? "row" : "column",
2979
2979
  "grid-template-columns": `repeat(${B}, 1fr)`,
2980
2980
  "grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`,
2981
2981
  "column-gap": `${ye}px`
2982
2982
  });
2983
2983
  break;
2984
- case L.choice_3:
2984
+ case F.choice_3:
2985
2985
  C = {
2986
2986
  "grid-template-columns": `repeat(${B}, 1fr)`,
2987
2987
  "grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`
2988
- }, _.styleInfo[y[e.layout.mode].choice_b] === L.portrait && (C = {
2988
+ }, _.styleInfo[y[e.layout.mode].choice_b] === F.portrait && (C = {
2989
2989
  ...C,
2990
2990
  "grid-auto-flow": e.noPortrait ? "row" : "column",
2991
2991
  "column-gap": `${ye}px`
@@ -2995,9 +2995,9 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
2995
2995
  return C;
2996
2996
  },
2997
2997
  ComputPolymerItemStyle: (_, C) => {
2998
- var v;
2999
- if (l.includes(_.problemType) && _.style[y[e.layout.mode].choice_a] === L.choice_2) {
3000
- const H = Math.max(Ie[e.layout.fillSize].value + 4, (u.value[`h${e.data.id}`] || u.value[((v = _.children[0]) == null ? void 0 : v.polymerId) || ""]) * 14 + 8), B = Math.floor(e.width / (H * _.style[y[e.layout.mode].choice_c] + 10)), ye = (e.width - H * B * _.style[y[e.layout.mode].choice_c]) / (B - 1 || 1);
2998
+ var w;
2999
+ if (l.includes(_.problemType) && _.style[y[e.layout.mode].choice_a] === F.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
3001
  if (!((C + 1) % _.style[y[e.layout.mode].choice_c]) && ((C + 1) % (_.style[y[e.layout.mode].choice_c] * B) || B < 2))
3002
3002
  return {
3003
3003
  "margin-right": `${ye}px`
@@ -3006,29 +3006,29 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
3006
3006
  return {};
3007
3007
  },
3008
3008
  ComputStyle: (_, C) => {
3009
- var H;
3010
- let v = {};
3009
+ var R;
3010
+ let w = {};
3011
3011
  if (!a)
3012
- return v;
3012
+ return w;
3013
3013
  if (l.includes(_.problemType)) {
3014
3014
  let B = {};
3015
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) + (u.value[`h${e.data.id}`] || u.value[((H = e.data.children[0]) == null ? void 0 : H.polymerId) || ""]) * 14 + 20, pe = Math.min(Math.floor(e.width / ye), e.data.style[y[e.layout.mode].choice_d] || 10);
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
3017
  B = C % pe ? { minWidth: `${ye}px`, marginLeft: `${(e.width - ye * pe) / (pe - 1) - 5}px` } : { minWidth: `${ye}px` };
3018
3018
  }
3019
- v = {
3020
- ...v,
3019
+ w = {
3020
+ ...w,
3021
3021
  display: "inline-flex",
3022
3022
  ...B
3023
3023
  };
3024
3024
  } else
3025
- [m.fill, m.fill_english].includes(_.problemType) && (v = {
3026
- display: _.style[y[e.layout.mode].fill_c] === L.fill_1 && typeof _.order != "number" ? "flex" : "inline-flex",
3025
+ [m.fill, m.fill_english].includes(_.problemType) && (w = {
3026
+ display: _.style[y[e.layout.mode].fill_c] === F.fill_1 && typeof _.order != "number" ? "flex" : "inline-flex",
3027
3027
  alignItems: "flex-end",
3028
3028
  width: `calc(${100 / _.style[y[e.layout.mode].fill_d][_.order || 0]}% - 6px)`
3029
3029
  // paddingTop: `${10 + item.style[problemLayoutKey[props.layout.mode].fill_e]}px`
3030
3030
  });
3031
- return v;
3031
+ return w;
3032
3032
  },
3033
3033
  ComputBlock: (_) => {
3034
3034
  const C = [...l, m.fill, m.fill_english];
@@ -3044,10 +3044,10 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), Nn = ["data-viewid"], Bn =
3044
3044
  }
3045
3045
  },
3046
3046
  handleHoverIn: (_) => {
3047
- s.value = _.rootProblemId;
3047
+ n.value = _.rootProblemId;
3048
3048
  },
3049
3049
  handleHoverOut: (_) => {
3050
- s.value = "";
3050
+ n.value = "";
3051
3051
  },
3052
3052
  handleClick: (_, C) => {
3053
3053
  e.data.isPolymer || (_.stopPropagation(), t("click", C));
@@ -3058,42 +3058,42 @@ const An = /* @__PURE__ */ de(Dn, [["render", Mn]]), 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, s, r) {
3061
+ function os(e, t, a, l, n, r) {
3062
3062
  const o = Rt("Sub");
3063
- return i(!0), d(E, null, Z(l.GroupData, (n) => (i(), d(E, null, [
3064
- n.type === "polymer" ? (i(), d("div", {
3063
+ return i(!0), u(E, null, Z(l.GroupData, (s) => (i(), u(E, null, [
3064
+ s.type === "polymer" ? (i(), u("div", {
3065
3065
  key: 0,
3066
- "data-block": l.ComputBlock(n),
3067
- class: oe([...l.ComputPolymerCls(n)]),
3068
- style: q(l.ComputPolymerStyle(n))
3066
+ "data-block": l.ComputBlock(s),
3067
+ class: oe([...l.ComputPolymerCls(s)]),
3068
+ style: q(l.ComputPolymerStyle(s))
3069
3069
  }, [
3070
- (i(!0), d(E, null, Z(n.children, (c, u) => {
3070
+ (i(!0), u(E, null, Z(s.children, (c, d) => {
3071
3071
  var p;
3072
- return i(), d("div", {
3072
+ return i(), u("div", {
3073
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", ((p = a.target.value) == null ? void 0 : p.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
3074
- style: q(l.ComputPolymerItemStyle(c, u)),
3074
+ style: q(l.ComputPolymerItemStyle(c, d)),
3075
3075
  "data-tag": c.__tag__,
3076
3076
  "data-block": l.ComputBlock(c),
3077
3077
  "data-xine": l.Gps_cls.item + c._sub,
3078
3078
  onMouseenter: (A) => l.handleHoverIn(c),
3079
3079
  onMouseleave: (A) => l.handleHoverOut(c)
3080
3080
  }, [
3081
- c.problemType ? (i(), K(o, {
3081
+ c.problemType ? (i(), j(o, {
3082
3082
  key: 0,
3083
3083
  sub: c.sub,
3084
3084
  isFull: !!l.ModuleTag,
3085
3085
  width: l.SubWidthInfo[`h${c.headLineId}`] || l.SubWidthInfo[c.polymerId || ""] || 0,
3086
3086
  class: oe(["sub_item", l.ComputAbs(c) && "absolute left-0 top-3 left_sub"])
3087
3087
  }, null, 8, ["sub", "isFull", "width", "class"])) : M("", !0),
3088
- (i(), K(yt(l.ComputName(c)), _t(ft({ item: c, layout: a.layout, ...l.ComputPayload(c, u) })), null, 16))
3088
+ (i(), j(yt(l.ComputName(c)), _t(ft({ item: c, layout: a.layout, ...l.ComputPayload(c, d) })), null, 16))
3089
3089
  ], 46, Zn);
3090
3090
  }), 256))
3091
- ], 14, Jn)) : (i(!0), d(E, { key: 1 }, Z(n.children, (c, u) => {
3091
+ ], 14, Jn)) : (i(!0), u(E, { key: 1 }, Z(s.children, (c, d) => {
3092
3092
  var p;
3093
- return i(), d(E, null, [
3093
+ return i(), u(E, null, [
3094
3094
  f("div", {
3095
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", ((p = a.target.value) == null ? void 0 : p.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
3096
- style: q(l.ComputStyle(c, u)),
3096
+ style: q(l.ComputStyle(c, d)),
3097
3097
  "data-tag": c.__tag__,
3098
3098
  "data-block": l.ComputBlock(c),
3099
3099
  "data-xine": l.Gps_cls.item + c._sub,
@@ -3102,13 +3102,13 @@ function os(e, t, a, l, s, r) {
3102
3102
  onMouseenter: (A) => l.handleHoverIn(c),
3103
3103
  onMouseleave: (A) => l.handleHoverOut(c)
3104
3104
  }, [
3105
- c.problemType && !l.ComputAbs(c) ? (i(), K(o, {
3105
+ c.problemType && !l.ComputAbs(c) ? (i(), j(o, {
3106
3106
  key: 0,
3107
3107
  sub: c.sub,
3108
3108
  isFull: !!l.ModuleTag,
3109
3109
  width: l.SubWidthInfo[`h${c.headLineId}`] || l.SubWidthInfo[c.polymerId || ""] || 0
3110
3110
  }, null, 8, ["sub", "isFull", "width"])) : M("", !0),
3111
- (i(), K(yt(l.ComputName(c)), _t(ft({ item: c, layout: a.layout, ...l.ComputPayload(c, u) })), {
3111
+ (i(), j(yt(l.ComputName(c)), _t(ft({ item: c, layout: a.layout, ...l.ComputPayload(c, d) })), {
3112
3112
  default: Ft(() => [
3113
3113
  V(o, {
3114
3114
  sub: c.sub,
@@ -3119,7 +3119,7 @@ function os(e, t, a, l, s, r) {
3119
3119
  _: 2
3120
3120
  }, 1040))
3121
3121
  ], 46, es),
3122
- c.polymerId && l.PolymerData[c.polymerId][l.PolymerData[c.polymerId].length - 1] === c.id ? (i(), d("div", ts)) : M("", !0)
3122
+ c.polymerId && l.PolymerData[c.polymerId][l.PolymerData[c.polymerId].length - 1] === c.id ? (i(), u("div", ts)) : M("", !0)
3123
3123
  ], 64);
3124
3124
  }), 256))
3125
3125
  ], 64))), 256);
@@ -3132,7 +3132,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3132
3132
  y: e.y - t.y + (a ? 1 : 0),
3133
3133
  width: e.width,
3134
3134
  height: e.height - (a ? 2 : 0)
3135
- }, De = (e, t, a, l = !1, s = !1) => {
3135
+ }, De = (e, t, a, l = !1, n = !1) => {
3136
3136
  if (!e)
3137
3137
  return {
3138
3138
  x: 0,
@@ -3140,7 +3140,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3140
3140
  width: 0,
3141
3141
  height: 0
3142
3142
  };
3143
- const r = O(e), o = Math.min(t.height, r.y < t.y ? r.y + r.height - t.y : r.y + r.height > t.y + t.height || s ? t.y + t.height - r.y : r.height);
3143
+ const r = O(e), o = Math.min(t.height, r.y < t.y ? r.y + r.height - t.y : r.y + r.height > t.y + t.height || n ? t.y + t.height - r.y : r.height);
3144
3144
  return o > 5 ? {
3145
3145
  x: r.x - a.x,
3146
3146
  y: Math.max(r.y, t.y) + (l ? 1 : 0) - a.y,
@@ -3164,7 +3164,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3164
3164
  const l = {
3165
3165
  // area: GetPosition(el, config.pageDom[0]),
3166
3166
  area: ce(O(a), O(e.pageDom[0])),
3167
- list: Te(k.en_num_group, a).map((s) => Te(k.en_num_item, s).map((r) => ce(O(r), O(e.pageDom[0]), !0)))
3167
+ list: Te(k.en_num_group, a).map((n) => Te(k.en_num_item, n).map((r) => ce(O(r), O(e.pageDom[0]), !0)))
3168
3168
  };
3169
3169
  return {
3170
3170
  choiceGridSequenceNOList: [...Array(10).keys()],
@@ -3174,7 +3174,7 @@ 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((s, r) => r + 1)
3177
+ questionNOList: [...Array(l.list.length).keys()].map((n, r) => r + 1)
3178
3178
  };
3179
3179
  }, ns = (e) => ({
3180
3180
  cardSizeType: mo[e.layout.paper],
@@ -3184,15 +3184,15 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3184
3184
  paperWidth: Math.round(g[e.layout.paper].width * Fe),
3185
3185
  paperHeight: Math.round(g[e.layout.paper].height * Fe)
3186
3186
  }), ss = (e) => {
3187
- const t = O(e.pageDom[0]), a = O(e.pageDom[1]), l = (s) => {
3187
+ const t = O(e.pageDom[0]), a = O(e.pageDom[1]), l = (n) => {
3188
3188
  var o;
3189
3189
  const r = e.layout.backColumn > 2 ? {
3190
- trdLeftTopPos: ne(ce(O(Te(`${k.point}t`, e.pageDom[s])[1]), O(e.pageDom[s]))),
3191
- trdLeftBottomPos: ne(ce(O(Te(`${k.point}b`, e.pageDom[s])[1]), O(e.pageDom[s])))
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])))
3192
3192
  } : {};
3193
- return (o = Oe.find((n) => n.code === e.layout.paper)) != null && o.isMultCol ? {
3194
- secLeftTopPos: ne(ce(O(Te(`${k.point}t`, e.pageDom[s])[0]), O(e.pageDom[s]))),
3195
- secLeftBottomPos: ne(ce(O(Te(`${k.point}b`, e.pageDom[s])[0]), O(e.pageDom[s]))),
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
3196
  ...r
3197
3197
  } : null;
3198
3198
  };
@@ -3232,7 +3232,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3232
3232
  // 页码点区块第一个页码点的位置,部分需动态获取
3233
3233
  firstChoicePosition: ne(ce(O(se(`${k.page_item}0`, e.pageDom[e.pageTotal - 1])), O(e.pageDom[e.pageTotal - 1]))),
3234
3234
  // 页码点最大值,展开为数组
3235
- choiceGridSequenceNOList: dt.filter((l, s) => s < e.pageTotal),
3235
+ choiceGridSequenceNOList: dt.filter((l, n) => n < e.pageTotal),
3236
3236
  // 排列方向
3237
3237
  crosswised: !0,
3238
3238
  // 两个页码点之间的间距,纵排此项赋值
@@ -3273,29 +3273,29 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3273
3273
  id: "0",
3274
3274
  problemType: m.slove,
3275
3275
  position: ce(O(t), O(e.pageDom[0])),
3276
- scoreList: a.map((l, s) => ({
3277
- position: ce(O(a[s]), O(e.pageDom[0])),
3276
+ scoreList: a.map((l, n) => ({
3277
+ position: ce(O(a[n]), O(e.pageDom[0])),
3278
3278
  itemPosition: {
3279
- width: a[s].offsetWidth
3279
+ width: a[n].offsetWidth
3280
3280
  },
3281
- score: Math.abs(parseFloat(a[s].innerText))
3281
+ score: Math.abs(parseFloat(a[n].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, s = (r) => parseFloat(r.toFixed(2));
3285
+ const a = [m.slove, m.art, m.synthesis, m.fill, m.fill_english, m.mix], l = as + Bt, n = (r) => parseFloat(r.toFixed(2));
3286
3286
  return t.flat().filter((r) => a.includes(r.problemType) && r.colIndex < 2).map((r) => {
3287
3287
  switch (r.problemType) {
3288
3288
  case m.fill:
3289
3289
  case m.fill_english:
3290
3290
  return e.layout.notHandReadFlag && r.isHiddenContent ? [] : r.children.map((o) => {
3291
- const n = o.scorePosition;
3291
+ const s = o.scorePosition;
3292
3292
  return {
3293
3293
  sub: o.id,
3294
3294
  position: {
3295
- x: s(n.x - o.position.x),
3296
- y: s(n.y - o.position.y) + l * (r.colIndex - 1),
3297
- width: n.width,
3298
- height: n.height
3295
+ x: n(s.x - o.position.x),
3296
+ y: n(s.y - o.position.y) + l * (r.colIndex - 1),
3297
+ width: s.width,
3298
+ height: s.height
3299
3299
  }
3300
3300
  };
3301
3301
  });
@@ -3304,9 +3304,9 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3304
3304
  return e.notHandReadFlag ? [] : [{
3305
3305
  sub: r.id,
3306
3306
  position: {
3307
- x: s(r.scoreList[0].position.x - r.position.x),
3308
- y: s(r.scoreList[0].position.y - r.position.y) + l * (r.colIndex - 1),
3309
- width: r.scoreList.map((o) => o.position.width).reduce((o, n) => o + n, 0),
3307
+ x: n(r.scoreList[0].position.x - r.position.x),
3308
+ y: n(r.scoreList[0].position.y - r.position.y) + l * (r.colIndex - 1),
3309
+ width: r.scoreList.map((o) => o.position.width).reduce((o, s) => o + s, 0),
3310
3310
  height: r.scoreList[0].position.height
3311
3311
  }
3312
3312
  }];
@@ -3314,16 +3314,16 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3314
3314
  return e.notHandReadFlag && r.isHiddenContent ? [] : (r.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: s(o.scoreList[0].position.x - (o.isHiddenContent ? o.position.x : r.position.x)),
3318
- y: s(o.scoreList[0].position.y - (o.isHiddenContent ? o.position.y : r.position.y)) + l * (r.colIndex - 1),
3319
- width: o.scoreList.map((n) => n.position.width).reduce((n, c) => n + c, 0),
3317
+ x: n(o.scoreList[0].position.x - (o.isHiddenContent ? o.position.x : r.position.x)),
3318
+ y: n(o.scoreList[0].position.y - (o.isHiddenContent ? o.position.y : r.position.y)) + l * (r.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: s(o.scorePosition.x - (o.isHiddenContent ? o.rawPosition.x : r.position.x)),
3326
- y: s(o.scorePosition.y - (o.isHiddenContent ? o.rawPosition.y : r.position.y)) + l * (r.colIndex - 1),
3325
+ x: n(o.scorePosition.x - (o.isHiddenContent ? o.rawPosition.x : r.position.x)),
3326
+ y: n(o.scorePosition.y - (o.isHiddenContent ? o.rawPosition.y : r.position.y)) + l * (r.colIndex - 1),
3327
3327
  width: o.scorePosition.width,
3328
3328
  height: o.scorePosition.height
3329
3329
  }
@@ -3332,62 +3332,62 @@ 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((s) => {
3336
- const r = Math.floor(s / 2) * (e.layout.column + e.layout.backColumn) + (s % 2 ? e.layout.column : 0);
3337
- return [...Array(s % 2 ? e.layout.backColumn : e.layout.column).keys()].filter((o, n) => r + n < t.length).map((o, n) => {
3338
- const c = e.pageDom[s], u = O(c), p = e.colDom[r + n], A = O(p), h = e.colViewDom[r + n], F = O(h), U = t[r + n].data.map((T) => T.children.filter((R) => R.problemType)).flat(), G = t[r + n].data.filter((T) => [ve.one_choice, ve.another_choice].includes(T.problemType) && T.children.length).map((T) => {
3339
- const R = se(`${k.choice}${T.id}`, p);
3340
- return R ? {
3335
+ return [...Array(e.pageDom.length).keys()].map((n) => {
3336
+ const r = 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) => r + s < t.length).map((o, s) => {
3338
+ const c = e.pageDom[n], d = O(c), p = e.colDom[r + s], A = O(p), h = e.colViewDom[r + s], T = O(h), Q = t[r + s].data.map((I) => I.children.filter((H) => H.problemType)).flat(), G = t[r + s].data.filter((I) => [ve.one_choice, ve.another_choice].includes(I.problemType) && I.children.length).map((I) => {
3339
+ const H = se(`${k.choice}${I.id}`, p);
3340
+ return H ? {
3341
3341
  id: `${++a}`,
3342
- baseIndex: parseInt(T.children[0]._sub),
3343
- position: ce(O(R), u),
3344
- problemType: T.problemType,
3342
+ baseIndex: parseInt(I.children[0]._sub),
3343
+ position: ce(O(H), d),
3344
+ problemType: I.problemType,
3345
3345
  isOneChoice: !0,
3346
- optList: Te(k.fill, R).map((w, P) => ({
3346
+ optList: Te(k.fill, H).map((v, P) => ({
3347
3347
  id: `${a}.${P + 1}`,
3348
- position: ce(O(w), u)
3349
- })).filter((w) => w.position)
3348
+ position: ce(O(v), d)
3349
+ })).filter((v) => v.position)
3350
3350
  } : {};
3351
- }).filter((T) => T.position);
3352
- return U.filter((T) => ls(T, p, A)).map((T, R, w) => {
3351
+ }).filter((I) => I.position);
3352
+ return Q.filter((I) => ls(I, p, A)).map((I, H, v) => {
3353
3353
  let P = {};
3354
- l[T._sub] ? l[T._sub] += 1 : l[T._sub] = 1;
3355
- const X = se(`${k.item}${T._sub}`, p);
3356
- switch (T.problemType) {
3354
+ l[I._sub] ? l[I._sub] += 1 : l[I._sub] = 1;
3355
+ const X = se(`${k.item}${I._sub}`, p);
3356
+ switch (I.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
  P = {
3362
- score: T.score,
3363
- isColumn: T.style[y[e.layout.mode].choice_a] !== L.choice_2,
3364
- optList: T.optList.map((v, H) => ({
3365
- id: `${T._sub}.${H + 1}`,
3366
- position: De(se(`${k.fill}${H}`, X), F, u)
3367
- })).filter((v) => v.position)
3362
+ score: I.score,
3363
+ isColumn: I.style[y[e.layout.mode].choice_a] !== F.choice_2,
3364
+ optList: I.optList.map((w, R) => ({
3365
+ id: `${I._sub}.${R + 1}`,
3366
+ position: De(se(`${k.fill}${R}`, X), T, d)
3367
+ })).filter((w) => w.position)
3368
3368
  };
3369
3369
  break;
3370
3370
  case m.decide:
3371
3371
  P = {
3372
- optList: [0, 1].map((v, H) => ({
3373
- id: `${T._sub}.${H + 1}`,
3374
- position: De(se(`${k.fill}${H}`, X), F, u)
3375
- })).filter((v) => v.position)
3372
+ optList: [0, 1].map((w, R) => ({
3373
+ id: `${I._sub}.${R + 1}`,
3374
+ position: De(se(`${k.fill}${R}`, X), T, d)
3375
+ })).filter((w) => w.position)
3376
3376
  };
3377
3377
  break;
3378
3378
  case m.fill:
3379
3379
  case m.fill_english:
3380
3380
  const z = Te(k.fill, X), _ = Te(k.fill_line, X);
3381
3381
  P = {
3382
- children: [T.score].flat().map((v, H, B) => ({
3383
- id: B.length > 1 ? `${T._sub}.${H + 1}` : T._sub,
3384
- score: v,
3385
- problemType: T.problemType,
3386
- isHiddenContent: !T.style[y[e.layout.mode].fill_b],
3387
- position: De(X, F, u),
3388
- scorePosition: De(z[H], F, u),
3389
- answerPosition: De(_[H], F, u)
3390
- })).filter((v) => v.position)
3382
+ children: [I.score].flat().map((w, R, B) => ({
3383
+ id: B.length > 1 ? `${I._sub}.${R + 1}` : I._sub,
3384
+ score: w,
3385
+ problemType: I.problemType,
3386
+ isHiddenContent: !I.style[y[e.layout.mode].fill_b],
3387
+ position: De(X, T, d),
3388
+ scorePosition: De(z[R], T, d),
3389
+ answerPosition: De(_[R], T, d)
3390
+ })).filter((w) => w.position)
3391
3391
  };
3392
3392
  break;
3393
3393
  case m.slove:
@@ -3395,34 +3395,34 @@ 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, X);
3397
3397
  P = {
3398
- scoreList: C ? [se(k.score_tenbit, C), se(k.score_base, C), se(k.score_half, C)].map((v, H) => {
3399
- if (!v)
3398
+ scoreList: C ? [se(k.score_tenbit, C), se(k.score_base, C), se(k.score_half, C)].map((w, R) => {
3399
+ if (!w)
3400
3400
  return {};
3401
- const B = Te(k.score_item, v);
3401
+ const B = Te(k.score_item, w);
3402
3402
  return {
3403
- position: De(v, F, u, !0),
3403
+ position: De(w, T, d, !0),
3404
3404
  itemPosition: {
3405
3405
  width: B[0].offsetWidth
3406
3406
  },
3407
- score: B.map((ye) => Math.abs(parseFloat(ye.innerText)) * (H ? 1 : 10))
3407
+ score: B.map((ye) => Math.abs(parseFloat(ye.innerText)) * (R ? 1 : 10))
3408
3408
  };
3409
- }).filter((v) => v.position) : null
3409
+ }).filter((w) => w.position) : null
3410
3410
  };
3411
3411
  }
3412
3412
  return {
3413
- id: T._sub,
3414
- elId: T.id,
3415
- colIndex: l[T._sub],
3416
- problemType: T.problemType,
3417
- rootProblemType: T.rootProblemType,
3418
- position: De(X, F, u, !1, R === w.length - 1 && [m.slove].includes(T.problemType)),
3413
+ id: I._sub,
3414
+ elId: I.id,
3415
+ colIndex: l[I._sub],
3416
+ problemType: I.problemType,
3417
+ rootProblemType: I.rootProblemType,
3418
+ position: De(X, T, d, !1, H === v.length - 1 && [m.slove].includes(I.problemType)),
3419
3419
  ...P
3420
3420
  };
3421
- }).concat(G).filter((T) => T.position);
3421
+ }).concat(G).filter((I) => I.position);
3422
3422
  });
3423
- }).map((s) => s.flat());
3423
+ }).map((n) => n.flat());
3424
3424
  }, ps = (e) => {
3425
- const t = (l = e, s = !1) => ({
3425
+ const t = (l = e, n = !1) => ({
3426
3426
  // 块位置
3427
3427
  sectionPosition: ne(l.position, !0),
3428
3428
  // 块ID,前端生成,同一道题同一个ID
@@ -3430,7 +3430,7 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3430
3430
  // 块内序号ID,按切块自增
3431
3431
  secitonSeqID: l.colIndex || 1,
3432
3432
  // 需要保存文件,固定值
3433
- needSavedFile: !!s || [m.mix].includes(e.problemType),
3433
+ needSavedFile: !!n || [m.mix].includes(e.problemType),
3434
3434
  // 题型
3435
3435
  cuttingSectionQuestionType: bt[l.problemType || e.problemType]
3436
3436
  });
@@ -3449,10 +3449,10 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3449
3449
  // 选项是否为横排
3450
3450
  crosswised: e.isColumn,
3451
3451
  // 单个选项的信息数组
3452
- choiceUnitSectionList: e.optList.map((l, s) => ({
3452
+ choiceUnitSectionList: e.optList.map((l, n) => ({
3453
3453
  ...t(l, !0),
3454
3454
  choicePosition: ne(l.position),
3455
- choiceResult: [m.decide].includes(e.problemType) ? po[s] : dt[s]
3455
+ choiceResult: [m.decide].includes(e.problemType) ? po[n] : dt[n]
3456
3456
  }))
3457
3457
  }]
3458
3458
  };
@@ -3517,10 +3517,10 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3517
3517
  // 选项横排
3518
3518
  crosswised: !0,
3519
3519
  // 单个选项的信息数组
3520
- choiceUnitSectionList: e.optList.map((l, s) => ({
3520
+ choiceUnitSectionList: e.optList.map((l, n) => ({
3521
3521
  ...t(l),
3522
3522
  choicePosition: ne(l.position),
3523
- choiceResult: (e.baseIndex + s).toString()
3523
+ choiceResult: (e.baseIndex + n).toString()
3524
3524
  }))
3525
3525
  }]
3526
3526
  };
@@ -3550,66 +3550,67 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3550
3550
  }],
3551
3551
  // 按题切块信息
3552
3552
  cardCuttingSectionList: t[r].map((o) => ps(o)).flat()
3553
- })), l = (r, o) => (r.sectionID || "").split(".").filter((n, c) => c < o).join("."), s = a.map((r) => {
3554
- let o = [], n = [];
3555
- return r.cardCuttingSectionList.forEach((c, u, p) => {
3556
- const A = l(c, 1);
3557
- if (u < p.length - 1 && n.find((h) => l(h, 1) === A && h.secitonSeqID === c.secitonSeqID))
3558
- n.push(c);
3553
+ })), l = (r, o) => (r.sectionID || "").split(".").filter((s, c) => c < o).join("."), n = a.map((r) => {
3554
+ let o = [], s = [], c = [];
3555
+ return r.cardCuttingSectionList.forEach((d, p, A) => {
3556
+ const h = l(d, 1);
3557
+ if (p < A.length - 1 && c.find((T) => l(T, 1) === h && T.secitonSeqID === d.secitonSeqID) && !(d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable)
3558
+ c.push(d);
3559
3559
  else {
3560
- if (u === p.length - 1 && n.push(c), n.length) {
3561
- if (n.length === 1)
3562
- o.push(n[0]);
3560
+ let T = !1;
3561
+ if ((d.choiceQuestionPartialSectionList || [{}])[0].useForSelectable && (s.push(d), T = !0), c.length) {
3562
+ if (c.length === 1)
3563
+ o.push(c[0]);
3563
3564
  else {
3564
- const h = n.map((T) => T.subjectiveQuestionSectionList || []).flat(), F = n.map((T) => T.choiceQuestionPartialSectionList || []).flat(), U = F.length ? { choiceQuestionPartialSectionList: F } : {}, G = h.length ? { subjectiveQuestionSectionList: h } : {};
3565
+ const Q = c.map((v) => v.subjectiveQuestionSectionList || []).flat(), G = c.map((v) => v.choiceQuestionPartialSectionList || []).flat(), I = G.length ? { choiceQuestionPartialSectionList: G } : {}, H = Q.length ? { subjectiveQuestionSectionList: Q } : {};
3565
3566
  o.push({
3566
- ...n[0],
3567
- cuttingSectionQuestionType: n[0].rootProblemType,
3568
- ...U,
3569
- ...G
3567
+ ...c[0],
3568
+ cuttingSectionQuestionType: c[0].rootProblemType,
3569
+ ...I,
3570
+ ...H
3570
3571
  });
3571
3572
  }
3572
- n = [];
3573
+ c = [];
3573
3574
  }
3574
- if (u === p.length - 1)
3575
+ if (T)
3575
3576
  return;
3576
- n.push(c);
3577
+ p === A.length - 1 ? o.push(d) : c.push(d);
3577
3578
  }
3578
- }), o = o.map((c) => ({ ...c, sectionID: l(c, 1) })), { ...r, cardCuttingSectionList: o };
3579
+ }), o = o.map((d) => ({ ...d, sectionID: l(d, 1) })), { ...r, cardCuttingSectionList: [...o, ...s] };
3579
3580
  }).map((r) => {
3580
- const o = r.cardCuttingSectionList.map((n) => {
3581
+ const o = r.cardCuttingSectionList.map((s) => {
3581
3582
  var p;
3582
- let c = [], u = [];
3583
- return (p = n.subjectiveQuestionSectionList) == null || p.forEach((A, h, F) => {
3584
- const U = l(A, 1);
3585
- if (h < F.length - 1 && u.find((G) => l(G, 1) === U && G.secitonSeqID === A.secitonSeqID))
3586
- u.push(A);
3583
+ let c = [], d = [];
3584
+ return (p = s.subjectiveQuestionSectionList) == null || p.forEach((A, h, T) => {
3585
+ const Q = l(A, 2);
3586
+ if (h < T.length - 1 && d.find((G) => l(G, 2) === Q && G.secitonSeqID === A.secitonSeqID))
3587
+ d.push(A);
3587
3588
  else {
3588
- if (h === F.length - 1 && u.push(A), u.length) {
3589
- if (u.length === 1)
3590
- c.push(u[0]);
3589
+ if (h === T.length - 1 && d.push(A), d.length) {
3590
+ if (d.length === 1)
3591
+ c.push(d[0]);
3591
3592
  else {
3592
- const G = u.map((R) => R.singleBlankSectionList || []).flat(), T = G.length ? { singleBlankSectionList: G } : {};
3593
+ const G = d.map((H) => H.singleBlankSectionList || []).flat(), I = G.length ? { singleBlankSectionList: G } : {};
3593
3594
  c.push({
3594
- ...u[0],
3595
- sectionID: l(u[0], 1),
3596
- ...T
3595
+ ...d[0],
3596
+ sectionID: l(d[0], 2),
3597
+ ...I
3597
3598
  });
3598
3599
  }
3599
- u = [];
3600
+ d = [];
3600
3601
  }
3601
- if (h === F.length - 1)
3602
+ if (h === T.length - 1)
3602
3603
  return;
3603
- u.push(A);
3604
+ d.push(A);
3604
3605
  }
3605
3606
  }), c.length ? {
3606
- ...n,
3607
+ ...s,
3607
3608
  subjectiveQuestionSectionList: c
3608
- } : n;
3609
+ } : s;
3609
3610
  });
3610
3611
  return { ...r, cardCuttingSectionList: o };
3611
3612
  });
3612
- return console.log(s), console.log(a), s;
3613
+ return console.log(n), console.log(a), n;
3613
3614
  }, ys = (e, t) => {
3614
3615
  var l;
3615
3616
  const a = O(e.pageDom[0]);
@@ -3650,11 +3651,11 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3650
3651
  // 用来表示老师布置题的标识,固定值
3651
3652
  onlyAssignQuestions: null,
3652
3653
  // 有UserID的页面序号,一般情况是奇数面,例如1、3、5
3653
- userRegInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((s) => s % 2),
3654
+ userRegInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((n) => n % 2),
3654
3655
  // 有缺考标记的页面序号,一般情况是第一面,固定值1
3655
- absenceInfoIndexList: se(k.lack, e.pageDom[0]) ? [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((s) => s % 2) : null,
3656
+ absenceInfoIndexList: se(k.lack, e.pageDom[0]) ? [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((n) => n % 2) : null,
3656
3657
  // 有试卷ID的页面号列表,一般情况是第一面,该值为0时不校验
3657
- snInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((s) => s % 2),
3658
+ snInfoIndexList: [...Array(Math.ceil(e.pageTotal / 2) * 2).keys()].filter((n) => n % 2),
3658
3659
  // 哪些面有选做老师布置题的信息,固定值
3659
3660
  onlyAssignInfoList: [],
3660
3661
  // 页面布局信息
@@ -3670,11 +3671,11 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3670
3671
  oneFullPageCardList: t
3671
3672
  };
3672
3673
  }, _s = (e) => {
3673
- const { config: t, data: a } = e, l = ds(t), s = hs(t, a);
3674
- l && s[0].unshift(l);
3675
- const r = us(t, s), o = ms(t, s), n = ys(t, o), c = Ot(t, k.en_num_view) || {};
3674
+ const { config: t, data: a } = e, l = ds(t), n = hs(t, a);
3675
+ l && n[0].unshift(l);
3676
+ const r = us(t, n), o = ms(t, n), s = ys(t, o), c = Ot(t, k.en_num_view) || {};
3676
3677
  return {
3677
- engineData: n,
3678
+ engineData: s,
3678
3679
  pageTotal: t.pageTotal,
3679
3680
  format: g[t.layout.paper],
3680
3681
  localData: r,
@@ -3696,37 +3697,37 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3696
3697
  const a = e, l = Y([]);
3697
3698
  Me(() => [a.ColList, a.ImgData, a.TxtData], () => {
3698
3699
  l.value = [], setTimeout(() => {
3699
- var u;
3700
+ var d;
3700
3701
  a.ColList.forEach((p, A) => {
3701
3702
  p.data.map((h) => h.children).flat().filter((h) => [m.slove, m.art].includes(h.problemType) && !h.chunk).forEach((h) => {
3702
- var T;
3703
- const F = (T = a.ColDom[A].querySelector(`*[data-tag="${h.__tag__}"]`)) == null ? void 0 : T.querySelector(`*[data-xine="${k.score}"]`);
3704
- if (!F)
3703
+ var I;
3704
+ const T = (I = a.ColDom[A].querySelector(`*[data-tag="${h.__tag__}"]`)) == null ? void 0 : I.querySelector(`*[data-xine="${k.score}"]`);
3705
+ if (!T)
3705
3706
  return;
3706
- F.classList.remove("err_lack");
3707
- const U = window.getComputedStyle(F), G = [...Array.from(F.children)].map((R) => R.offsetWidth).reduce((R, w) => R + w, 0);
3708
- F.offsetWidth - parseFloat(U.borderLeft) - parseFloat(U.borderRight) < G && (l.value.push({ msg: `${h.subStr}题打分条超长` }), F.classList.add("err_lack"), F.title = "打分条超长,请调整排版或使用自编打分条");
3707
+ T.classList.remove("err_lack");
3708
+ const Q = window.getComputedStyle(T), G = [...Array.from(T.children)].map((H) => H.offsetWidth).reduce((H, v) => H + v, 0);
3709
+ T.offsetWidth - parseFloat(Q.borderLeft) - parseFloat(Q.borderRight) < G && (l.value.push({ msg: `${h.subStr}题打分条超长` }), T.classList.add("err_lack"), T.title = "打分条超长,请调整排版或使用自编打分条");
3709
3710
  });
3710
3711
  });
3711
- const o = (u = document.querySelector(".__layout__")) == null ? void 0 : u.getBoundingClientRect();
3712
+ const o = (d = document.querySelector(".__layout__")) == null ? void 0 : d.getBoundingClientRect();
3712
3713
  if (!o)
3713
3714
  return;
3714
- let n = [], c = [];
3715
+ let s = [], c = [];
3715
3716
  a.ImgData.forEach((p) => {
3716
- (p.left + p.width > o.width || p.top + p.height > o.height) && n.push(p);
3717
+ (p.left + p.width > o.width || p.top + p.height > o.height) && s.push(p);
3717
3718
  }), a.TxtData.forEach((p) => {
3718
3719
  (p.left + p.width > o.width || p.top + p.height > o.height) && c.push(p);
3719
- }), n.length && l.value.push({ type: "absImg", value: n, msg: `${n.length}张插入图片溢出`, fn: s }), c.length && l.value.push({ type: "absTxt", value: c, msg: `${c.length}条插入文本溢出`, fn: r }), t("changeLayoutStatus", l.value.length ? "error" : "ok");
3720
+ }), s.length && l.value.push({ type: "absImg", value: s, msg: `${s.length}张插入图片溢出`, fn: n }), c.length && l.value.push({ type: "absTxt", value: c, msg: `${c.length}条插入文本溢出`, fn: r }), t("changeLayoutStatus", l.value.length ? "error" : "ok");
3720
3721
  }, 500);
3721
3722
  });
3722
- const s = () => {
3723
- var n;
3724
- (((n = l.value.find((c) => c.type === "absImg")) == null ? void 0 : n.value) || []).forEach((c) => t("delAbsImgItem", c));
3723
+ const n = () => {
3724
+ var s;
3725
+ (((s = l.value.find((c) => c.type === "absImg")) == null ? void 0 : s.value) || []).forEach((c) => t("delAbsImgItem", c));
3725
3726
  }, r = () => {
3726
- var n;
3727
- (((n = l.value.find((c) => c.type === "absTxt")) == null ? void 0 : n.value) || []).forEach((c) => t("delAbsTxtItem", c));
3727
+ var s;
3728
+ (((s = l.value.find((c) => c.type === "absTxt")) == null ? void 0 : s.value) || []).forEach((c) => t("delAbsTxtItem", c));
3728
3729
  };
3729
- return (o, n) => (i(), d("div", fs, [
3730
+ return (o, s) => (i(), u("div", fs, [
3730
3731
  f("div", gs, [
3731
3732
  f("div", {
3732
3733
  class: oe(["layt-moni_status", l.value.length ? "layt-moni_err" : "layt-moni_success"])
@@ -3742,13 +3743,13 @@ const Ge = /* @__PURE__ */ de(Xn, [["render", os]]), Fe = 200 / 96, Bt = 4, as =
3742
3743
  ]),
3743
3744
  f("span", vs, "排版" + J(l.value.length ? "异常" : "良好"), 1)
3744
3745
  ], 2),
3745
- l.value.length ? (i(), d("ul", ws, [
3746
- (i(!0), d(E, null, Z(l.value, (c, u) => (i(), d("li", {
3747
- key: u,
3746
+ l.value.length ? (i(), u("ul", ws, [
3747
+ (i(!0), u(E, null, Z(l.value, (c, d) => (i(), u("li", {
3748
+ key: d,
3748
3749
  class: "layt-moni_err_item"
3749
3750
  }, [
3750
3751
  f("span", xs, J(c.msg), 1),
3751
- c.fn ? (i(), d("span", {
3752
+ c.fn ? (i(), u("span", {
3752
3753
  key: 0,
3753
3754
  class: "layt-moni_err_item_fn",
3754
3755
  onClick: c.fn
@@ -3763,84 +3764,84 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3763
3764
  const t = e.parentElement, a = document.createElement("span");
3764
3765
  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;
3765
3766
  }, Ts = (e, t, a, l) => {
3766
- let s = null;
3767
+ let n = null;
3767
3768
  if (e.dataset.block === ut && !e.dataset.used) {
3768
3769
  const r = window.getComputedStyle(e);
3769
- t - parseFloat(r.paddingTop) - parseFloat(r.borderTop) - 1 < 50 && (s = e.parentElement && e.parentElement.dataset.block === el ? e.parentElement : e), e.dataset.used = "1";
3770
+ t - parseFloat(r.paddingTop) - parseFloat(r.borderTop) - 1 < 50 && (n = e.parentElement && e.parentElement.dataset.block === el ? e.parentElement : e), e.dataset.used = "1";
3770
3771
  } else
3771
- e.dataset.block === $t ? s = e.parentElement : e.dataset.block === tl && !e.dataset.used ? e.offsetHeight < a - 20 ? s = 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" : s = e : (e.dataset.block === ol && l || al.includes(e.tagName.toLowerCase())) && (s = e);
3772
- return s;
3772
+ 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);
3773
+ return n;
3773
3774
  }, It = (e, t, a) => {
3774
- const l = e.textContent || "", s = l.split("").map((c) => `<span>${c}</span>`).join("");
3775
- e.innerHTML = s;
3775
+ const l = e.textContent || "", n = l.split("").map((c) => `<span>${c}</span>`).join("");
3776
+ e.innerHTML = n;
3776
3777
  const r = [...Array.from(e.children)].findIndex((c) => he(c).top - t + c.offsetHeight > a);
3777
3778
  if (r < 1)
3778
3779
  return e.innerHTML = l, e;
3779
3780
  const o = document.createElement("span");
3780
3781
  o.textContent = l.slice(0, r);
3781
- const n = document.createElement("span");
3782
- return n.textContent = l.slice(r), e.innerHTML = "", e.append(o, n), o;
3782
+ const s = document.createElement("span");
3783
+ return s.textContent = l.slice(r), e.innerHTML = "", e.append(o, s), o;
3783
3784
  }, st = (e, t, a) => {
3784
- const l = nt("", e.parentElement), s = l.findIndex((o) => o === e);
3785
- let r = l.filter((o, n) => he(o).top + o.offsetHeight - 1 < he(e).top || n < s && he(o).top < he(e).top).reverse()[0];
3785
+ const l = nt("", e.parentElement), n = l.findIndex((o) => o === e);
3786
+ let r = l.filter((o, s) => he(o).top + o.offsetHeight - 1 < he(e).top || s < n && he(o).top < he(e).top).reverse()[0];
3786
3787
  return r || (r = Ve(e), he(r).top + r.offsetHeight - t > a && (r = st(r, t, a))), r;
3787
3788
  }, Lt = (e, t, a, l) => {
3788
- const s = (o, n = a) => {
3789
- var G, T, R;
3790
- const c = o.map((w) => {
3791
- const P = he(w);
3789
+ const n = (o, s = a) => {
3790
+ var G, I, H;
3791
+ const c = o.map((v) => {
3792
+ const P = he(v);
3792
3793
  return {
3793
- el: w,
3794
+ el: v,
3794
3795
  top: P.top - t,
3795
3796
  left: P.left
3796
3797
  };
3797
- }), u = c.filter((w) => w.el.offsetHeight + w.top > n).sort((w, P) => w.top - P.top), p = (G = u.shift()) == null ? void 0 : G.el;
3798
+ }), d = c.filter((v) => v.el.offsetHeight + v.top > s).sort((v, P) => v.top - P.top), p = (G = d.shift()) == null ? void 0 : G.el;
3798
3799
  if (!p) {
3799
- const w = document.createElement("div");
3800
- return (T = o[0].parentElement) == null || T.appendChild(w), w.style.height = n - (he(w).top - t) + "px", w;
3800
+ const v = document.createElement("div");
3801
+ return (I = o[0].parentElement) == null || I.appendChild(v), v.style.height = s - (he(v).top - t) + "px", v;
3801
3802
  }
3802
- const A = he(p), h = A.top - t, F = A.left;
3803
- if (u.filter((w) => w.top < h + p.offsetHeight && w.top + w.el.offsetHeight - 1 > h && (w.left + w.el.offsetWidth - 1 < F || w.left + 1 > F + p.offsetWidth)).length) {
3804
- const w = (R = c.filter((P) => P.top < h).pop()) == null ? void 0 : R.el;
3805
- if (w != null && w.children.length) {
3806
- const P = nt(w);
3807
- return s(P, h) || w;
3803
+ const A = he(p), h = A.top - t, T = A.left;
3804
+ if (d.filter((v) => v.top < h + p.offsetHeight && v.top + v.el.offsetHeight - 1 > h && (v.left + v.el.offsetWidth - 1 < T || v.left + 1 > T + p.offsetWidth)).length) {
3805
+ const v = (H = c.filter((P) => P.top < h).pop()) == null ? void 0 : H.el;
3806
+ if (v != null && v.children.length) {
3807
+ const P = nt(v);
3808
+ return n(P, h) || v;
3808
3809
  } else
3809
- return w ? he(w).top - t + w.offsetHeight > h ? It(w, t, h) : w : st(p.parentElement, t, h);
3810
+ return v ? he(v).top - t + v.offsetHeight > h ? It(v, t, h) : v : st(p.parentElement, t, h);
3810
3811
  } else {
3811
- const w = getComputedStyle(p);
3812
- if (h + (parseFloat(w.fontSize) + (parseFloat(w.lineHeight) - parseFloat(w.fontSize)) / 2) > n)
3812
+ const v = getComputedStyle(p);
3813
+ if (h + (parseFloat(v.fontSize) + (parseFloat(v.lineHeight) - parseFloat(v.fontSize)) / 2) > s)
3813
3814
  return st(p, t, h);
3814
- const P = Ts(p, n - h, n, l);
3815
+ const P = Ts(p, s - h, s, l);
3815
3816
  if (P)
3816
3817
  return Ve(P);
3817
3818
  if (p.children.length) {
3818
3819
  const X = nt(p);
3819
- return s(X, n);
3820
+ return n(X, s);
3820
3821
  } else
3821
- return It(p, t, n);
3822
+ return It(p, t, s);
3822
3823
  }
3823
- }, r = s([e]);
3824
+ }, r = n([e]);
3824
3825
  return { cut: Ss(r), targetEl: r };
3825
3826
  }, Is = (e) => {
3826
- const { el: t, data: a, column: l, backColumn: s, getColSize: r, change: o } = e;
3827
+ const { el: t, data: a, column: l, backColumn: n, getColSize: r, change: o } = e;
3827
3828
  if (!t || !a.length) {
3828
3829
  o([], !0);
3829
3830
  return;
3830
3831
  }
3831
3832
  console.time("layout");
3832
- const n = he(t).top;
3833
- let c = {}, u = 0, p = 0;
3834
- const A = (w) => {
3835
- const P = w % (l + s), X = Math.floor(w / (l + s)) * 2 + (P >= l ? 1 : 0), z = r(w, X);
3833
+ const s = he(t).top;
3834
+ let c = {}, d = 0, p = 0;
3835
+ const A = (v) => {
3836
+ const P = v % (l + n), X = Math.floor(v / (l + n)) * 2 + (P >= l ? 1 : 0), z = r(v, X);
3836
3837
  c = {
3837
- top: n,
3838
+ top: s,
3838
3839
  width: parseFloat(z.width),
3839
3840
  height: parseFloat(z.height)
3840
3841
  };
3841
3842
  };
3842
- let h = [], F = 0;
3843
- const U = () => {
3843
+ let h = [], T = 0;
3844
+ const Q = () => {
3844
3845
  A(h.length), t.style.width = `${c.width}px`, h.push({
3845
3846
  top: 0,
3846
3847
  data: [],
@@ -3848,101 +3849,101 @@ const $s = /* @__PURE__ */ de(Cs, [["__scopeId", "data-v-90e967d8"]]), he = (e)
3848
3849
  height: c.height
3849
3850
  }), o([...h]);
3850
3851
  };
3851
- U();
3852
- const G = (w) => {
3853
- const P = getComputedStyle(w);
3854
- return he(w).top - c.top + parseFloat(P.borderTop) + parseFloat(P.paddingTop) + parseFloat(P.lineHeight) > h[h.length - 1].height;
3855
- }, T = (w) => {
3856
- const P = getComputedStyle(w);
3857
- return he(w).top + w.offsetHeight - c.top - (w.dataset.block === ke ? 0 : parseFloat(P.paddingBottom) - parseFloat(P.borderBottom)) <= h[h.length - 1].height;
3858
- }, R = (w = JSON.parse(JSON.stringify(a[F] || {}))) => {
3859
- if (F >= a.length || !Object.keys(w).length) {
3860
- o([...h], !0), console.timeEnd("layout"), h = [], u = 0;
3852
+ Q();
3853
+ const G = (v) => {
3854
+ const P = getComputedStyle(v);
3855
+ return he(v).top - c.top + parseFloat(P.borderTop) + parseFloat(P.paddingTop) + parseFloat(P.lineHeight) > h[h.length - 1].height;
3856
+ }, I = (v) => {
3857
+ const P = getComputedStyle(v);
3858
+ return he(v).top + v.offsetHeight - c.top - (v.dataset.block === ke ? 0 : parseFloat(P.paddingBottom) - parseFloat(P.borderBottom)) <= h[h.length - 1].height;
3859
+ }, H = (v = JSON.parse(JSON.stringify(a[T] || {}))) => {
3860
+ if (T >= a.length || !Object.keys(v).length) {
3861
+ o([...h], !0), console.timeEnd("layout"), h = [], d = 0;
3861
3862
  return;
3862
3863
  }
3863
- h[h.length - 1].data.push({ ...w }), o([...h]), window.requestAnimationFrame(() => {
3864
- const P = Tt(w.__tag__, t), X = !w.isHidden && he(P);
3864
+ h[h.length - 1].data.push({ ...v }), o([...h]), window.requestAnimationFrame(() => {
3865
+ const P = Tt(v.__tag__, t), X = !v.isHidden && he(P);
3865
3866
  let z = null;
3866
3867
  if (p) {
3867
3868
  const _ = P.querySelector(`*[data-hutkey="${p}"]`), C = he(_);
3868
3869
  h[h.length - 1].top = c.top - C.top, h[h.length - 1].height = c.height - h[h.length - 1].top, p = 0;
3869
3870
  }
3870
3871
  if (X && X.height + X.top - c.top > h[h.length - 1].height)
3871
- if (w.problemType)
3872
- h[h.length - 1].data.pop(), U(), R({ ...w });
3873
- else if (T(P))
3874
- U(), F++, R();
3872
+ if (v.problemType)
3873
+ h[h.length - 1].data.pop(), Q(), H({ ...v });
3874
+ else if (I(P))
3875
+ Q(), T++, H();
3875
3876
  else if (G(P))
3876
- h[h.length - 1].data.pop(), U(), R({ ...w });
3877
+ h[h.length - 1].data.pop(), Q(), H({ ...v });
3877
3878
  else {
3878
- z = Lt(P, c.top, h[h.length - 1].height, h.length % (l + s) >= l);
3879
- const _ = P.querySelector(`*[data-content="${w.id}"]`);
3880
- h[h.length - 1].height = he(z.cut).top - c.top, U(), _ != null && _.contains(z.cut) ? (p = Date.now(), z.cut.dataset.hutkey = p, R({ ...w, content: _.innerHTML })) : (h[h.length - 1].data.pop(), R({ ...w }));
3879
+ z = Lt(P, c.top, h[h.length - 1].height, h.length % (l + n) >= l);
3880
+ const _ = P.querySelector(`*[data-content="${v.id}"]`);
3881
+ h[h.length - 1].height = he(z.cut).top - c.top, Q(), _ != null && _.contains(z.cut) ? (p = Date.now(), z.cut.dataset.hutkey = p, H({ ...v, content: _.innerHTML })) : (h[h.length - 1].data.pop(), H({ ...v }));
3881
3882
  }
3882
3883
  else {
3883
3884
  let _ = [], C = [];
3884
- w.children.some((v, H) => {
3885
- const B = Tt(v.__tag__, t), ye = he(B);
3886
- if (u) {
3887
- const pe = B.querySelector(`*[data-cutkey="${u}"]`), ie = he(pe);
3888
- h[h.length - 1].top = c.top - ie.top, h[h.length - 1].height = c.height - h[h.length - 1].top, u = 0;
3885
+ v.children.some((w, R) => {
3886
+ const B = Tt(w.__tag__, t), ye = he(B);
3887
+ if (d) {
3888
+ const pe = B.querySelector(`*[data-cutkey="${d}"]`), ie = he(pe);
3889
+ h[h.length - 1].top = c.top - ie.top, h[h.length - 1].height = c.height - h[h.length - 1].top, d = 0;
3889
3890
  }
3890
3891
  if (ye.height + ye.top - c.top > h[h.length - 1].height) {
3891
- if (T(B))
3892
- _.push(v), C = H < w.children.length - 1 ? w.children.slice(H + 1) : [];
3892
+ if (I(B))
3893
+ _.push(w), C = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
3893
3894
  else if (G(B))
3894
- C = w.children.slice(H);
3895
+ C = v.children.slice(R);
3895
3896
  else {
3896
- z = Lt(B, c.top, h[h.length - 1].height, h.length % (l + s) >= l);
3897
- const pe = B.querySelector(`*[data-content="${v.id}"]`);
3897
+ z = Lt(B, c.top, h[h.length - 1].height, h.length % (l + n) >= l);
3898
+ const pe = B.querySelector(`*[data-content="${w.id}"]`);
3898
3899
  if (B === z.targetEl)
3899
- _.push(v), C = H < w.children.length - 1 ? w.children.slice(H + 1) : [];
3900
+ _.push(w), C = R < v.children.length - 1 ? v.children.slice(R + 1) : [];
3900
3901
  else if (pe && pe.contains(z.cut))
3901
- u = Date.now(), z.cut.dataset.cutkey = u, v.content = pe.innerHTML, _.push(v), C = [{ ...v, content: pe.innerHTML }, ...H < w.children.length - 1 ? w.children.slice(H + 1) : []], h[h.length - 1].height = he(z.cut).top - c.top;
3902
+ d = Date.now(), z.cut.dataset.cutkey = d, w.content = pe.innerHTML, _.push(w), C = [{ ...w, content: pe.innerHTML }, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []], h[h.length - 1].height = he(z.cut).top - c.top;
3902
3903
  else {
3903
3904
  if (!C.length) {
3904
- let ie = { ...v };
3905
- switch (v.problemType) {
3905
+ let ie = { ...w };
3906
+ switch (w.problemType) {
3906
3907
  case at.slove:
3907
- const fe = B.querySelector(`*[data-area="${v.id}"]`);
3908
- fe != null && fe.contains(z.cut) && (u = Date.now(), z.cut.dataset.cutkey = u, v.answerArea = fe.innerHTML), B.contains(z.targetEl) && (v.chunk += 1);
3908
+ const fe = B.querySelector(`*[data-area="${w.id}"]`);
3909
+ fe != null && fe.contains(z.cut) && (d = Date.now(), z.cut.dataset.cutkey = d, w.answerArea = fe.innerHTML), B.contains(z.targetEl) && (w.chunk += 1);
3909
3910
  break;
3910
3911
  case at.art:
3911
- const ue = B.querySelector(`*[data-bart="${v.id}"]`), D = z.targetEl.dataset.block === ke && z.targetEl.dataset.size ? z.targetEl : null, $ = B.querySelector(`*[data-aart="${v.id}"]`);
3912
+ const ue = B.querySelector(`*[data-bart="${w.id}"]`), D = z.targetEl.dataset.block === ke && z.targetEl.dataset.size ? z.targetEl : null, $ = B.querySelector(`*[data-aart="${w.id}"]`);
3912
3913
  if (ue != null && ue.contains(z.cut))
3913
- u = Date.now(), z.cut.dataset.cutkey = u, v.beforeArt = ue == null ? void 0 : ue.innerHTML, ie.beforeGuide = "", ie.afterArt = "", ie.endAnswerLen = -1;
3914
+ d = Date.now(), z.cut.dataset.cutkey = d, w.beforeArt = ue == null ? void 0 : ue.innerHTML, ie.beforeGuide = "", ie.afterArt = "", ie.endAnswerLen = -1;
3914
3915
  else if (D) {
3915
3916
  const S = parseInt(D.dataset.size);
3916
- if (!v.artBlock)
3917
- if (v.beforeGuide && v.beforeGuide.length + (v.startAnswerLen ? 0 : 2) - v.startAnswerLen > S) {
3918
- const j = B.querySelector(`*[data-guide="${v.id}"]`), we = he(j);
3917
+ if (!w.artBlock)
3918
+ if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen > S) {
3919
+ const K = B.querySelector(`*[data-guide="${w.id}"]`), we = he(K);
3919
3920
  if (we.height + we.top - c.top > c.height) {
3920
- j.innerHTML = v.beforeGuide.split("").map((be) => `<span>${be}</span>`).join("");
3921
- const ae = he(D).top + D.offsetHeight, re = [...Array.from(j.children)].findIndex((be) => he(be).top > ae);
3922
- ie.beforeGuide = v.beforeGuide.substring(0, re), v.beforeGuide = v.beforeGuide.substring(re);
3921
+ K.innerHTML = w.beforeGuide.split("").map((be) => `<span>${be}</span>`).join("");
3922
+ const ae = he(D).top + D.offsetHeight, re = [...Array.from(K.children)].findIndex((be) => he(be).top > ae);
3923
+ ie.beforeGuide = w.beforeGuide.substring(0, re), w.beforeGuide = w.beforeGuide.substring(re);
3923
3924
  } else
3924
- v.beforeGuide = "";
3925
+ w.beforeGuide = "";
3925
3926
  } else
3926
- v.beforeGuide = "";
3927
- ie.endAnswerLen = S, v.startAnswerLen = S;
3927
+ w.beforeGuide = "";
3928
+ ie.endAnswerLen = S, w.startAnswerLen = S;
3928
3929
  } else
3929
- $ != null && $.contains(z.cut) ? (u = Date.now(), z.cut.dataset.cutkey = u, v.beforeArt = "", v.beforeGuide = "", v.startAnswerLen = 1, v.endAnswerLen = -1, v.afterArt = $.innerHTML) : z.targetEl === ue ? (ie.endAnswerLen = -1, ie.beforeGuide = "", ie.afterArt = "", v.beforeArt = "") : (ue == null ? void 0 : ue.previousElementSibling) === z.cut && (ie.endAnswerLen = -1, ie.beforeArt = "", ie.beforeGuide = "", ie.afterArt = "");
3930
- B.contains(z.targetEl) && (v.chunk += 1);
3930
+ $ != null && $.contains(z.cut) ? (d = Date.now(), z.cut.dataset.cutkey = d, w.beforeArt = "", w.beforeGuide = "", w.startAnswerLen = 1, w.endAnswerLen = -1, w.afterArt = $.innerHTML) : z.targetEl === ue ? (ie.endAnswerLen = -1, ie.beforeGuide = "", ie.afterArt = "", w.beforeArt = "") : (ue == null ? void 0 : ue.previousElementSibling) === z.cut && (ie.endAnswerLen = -1, ie.beforeArt = "", ie.beforeGuide = "", ie.afterArt = "");
3931
+ B.contains(z.targetEl) && (w.chunk += 1);
3931
3932
  break;
3932
3933
  }
3933
- B.contains(z.targetEl) && _.push(ie), u && (h[h.length - 1].height = he(z.cut).top - c.top);
3934
+ B.contains(z.targetEl) && _.push(ie), d && (h[h.length - 1].height = he(z.cut).top - c.top);
3934
3935
  }
3935
- C = [v, ...H < w.children.length - 1 ? w.children.slice(H + 1) : []];
3936
+ C = [w, ...R < v.children.length - 1 ? v.children.slice(R + 1) : []];
3936
3937
  }
3937
3938
  }
3938
3939
  return !0;
3939
3940
  } else
3940
- _.push(v);
3941
- }), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, C.length ? (U(), R({ ...w, isHidden: !0, children: C })) : (o([...h]), F++, R());
3941
+ _.push(w);
3942
+ }), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, C.length ? (Q(), H({ ...v, isHidden: !0, children: C })) : (o([...h]), T++, H());
3942
3943
  }
3943
3944
  });
3944
3945
  };
3945
- R();
3946
+ H();
3946
3947
  }, zt = window.CKEDITOR;
3947
3948
  zt.disableAutoInline = !0;
3948
3949
  const pt = `dx${Math.random().toString(32).substring(2)}`;
@@ -3961,62 +3962,62 @@ const Fs = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3961
3962
  },
3962
3963
  emits: ["change", "focus", "blur"],
3963
3964
  setup(e, { emit: t }) {
3964
- const a = e, l = Wt("ckeditorOrigin", ""), s = Y();
3965
+ const a = e, l = Wt("ckeditorOrigin", ""), n = Y();
3965
3966
  Me(() => a.readonly, () => r()), Xe(() => r());
3966
3967
  const r = () => {
3967
3968
  if (window.CKEDITOR) {
3968
3969
  if (a.readonly) {
3969
- s.value && (s.value.destroy(), s.value = null);
3970
+ n.value && (n.value.destroy(), n.value = null);
3970
3971
  return;
3971
3972
  }
3972
3973
  Je(() => {
3973
- s.value = Ls("inline", l), s.value && s.value.on("instanceReady", (u) => {
3974
- s.value.setData(a.value);
3974
+ n.value = Ls("inline", l), n.value && n.value.on("instanceReady", (d) => {
3975
+ n.value.setData(a.value);
3975
3976
  });
3976
3977
  });
3977
3978
  } else {
3978
- const u = document.createElement("script");
3979
- u.type = "text/javascript", document.body.appendChild(u), u.onload = () => {
3979
+ const d = document.createElement("script");
3980
+ d.type = "text/javascript", document.body.appendChild(d), d.onload = () => {
3980
3981
  r();
3981
- }, u.src = "https://uat.ixueye.vip/ckeditor/ckeditor.js";
3982
+ }, d.src = "https://uat.ixueye.vip/ckeditor/ckeditor.js";
3982
3983
  }
3983
3984
  }, o = () => {
3984
3985
  t("blur");
3985
- const u = c(s.value.getData());
3986
- u !== a.value && t("change", u, a.name);
3987
- }, n = () => {
3986
+ const d = c(n.value.getData());
3987
+ d !== a.value && t("change", d, a.name);
3988
+ }, s = () => {
3988
3989
  t("focus");
3989
- }, c = (u) => {
3990
+ }, c = (d) => {
3990
3991
  const p = document.createElement("div");
3991
- p.innerHTML = u, [...Array.from(p.querySelectorAll("*"))].forEach((h) => {
3992
- const F = window.getComputedStyle(h);
3993
- (F.display === "none" || F.width === "0px" && F.height === "0px" || F.opacity === "0" || F.visibility === "hidden") && h.remove();
3992
+ p.innerHTML = d, [...Array.from(p.querySelectorAll("*"))].forEach((h) => {
3993
+ const T = window.getComputedStyle(h);
3994
+ (T.display === "none" || T.width === "0px" && T.height === "0px" || T.opacity === "0" || T.visibility === "hidden") && h.remove();
3994
3995
  });
3995
3996
  const A = (h = p) => {
3996
- [...Array.from(h.childNodes)].forEach((F) => {
3997
- var U;
3998
- if (F.nodeType === Node.ELEMENT_NODE && F.children.length)
3999
- A(F);
4000
- else if (F.nodeType === Node.TEXT_NODE) {
3997
+ [...Array.from(h.childNodes)].forEach((T) => {
3998
+ var Q;
3999
+ if (T.nodeType === Node.ELEMENT_NODE && T.children.length)
4000
+ A(T);
4001
+ else if (T.nodeType === Node.TEXT_NODE) {
4001
4002
  const G = document.createElement("span");
4002
- G.textContent = F.textContent, window.REGULAR.underscore.test(F.textContent || "") && (window.getComputedStyle(F.parentNode).wordBreak !== "break-all" || !(F.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (F.textContent || "").length > 5 && (G.innerHTML = (F.textContent || "").replace(window.REGULAR.underscore, (R) => R.length > 5 ? `<span style="word-break: break-all">${R}</span>` : R)), (U = F.parentElement) == null || U.replaceChild(G, F);
4003
+ G.textContent = T.textContent, window.REGULAR.underscore.test(T.textContent || "") && (window.getComputedStyle(T.parentNode).wordBreak !== "break-all" || !(T.parentNode.getAttribute("style") || "").includes("word-break: break-all")) && (T.textContent || "").length > 5 && (G.innerHTML = (T.textContent || "").replace(window.REGULAR.underscore, (H) => H.length > 5 ? `<span style="word-break: break-all">${H}</span>` : H)), (Q = T.parentElement) == null || Q.replaceChild(G, T);
4003
4004
  }
4004
4005
  });
4005
4006
  };
4006
4007
  return A(), p.innerHTML;
4007
4008
  };
4008
- return (u, p) => (i(), d("div", Fs, [
4009
- a.readonly ? (i(), K(Ae, {
4009
+ return (d, p) => (i(), u("div", Fs, [
4010
+ a.readonly ? (i(), j(Ae, {
4010
4011
  key: 1,
4011
4012
  data: a.value,
4012
4013
  class: "raw_view"
4013
- }, null, 8, ["data"])) : (i(), d("div", {
4014
+ }, null, 8, ["data"])) : (i(), u("div", {
4014
4015
  key: 0,
4015
4016
  class: "overflow-auto outline-none whitespace-normal editor_view",
4016
4017
  disabled: a.readonly,
4017
4018
  contentEditable: !a.readonly,
4018
4019
  id: x(pt),
4019
- onFocus: n,
4020
+ onFocus: s,
4020
4021
  onBlur: o
4021
4022
  }, null, 40, Es))
4022
4023
  ]));
@@ -4038,19 +4039,19 @@ const Ms = {
4038
4039
  let ot = null;
4039
4040
  const As = {
4040
4041
  mounted: (e, t) => {
4041
- let a = {}, l = !1, s = !1, r = e.offsetParent, o = {}, n = {};
4042
+ let a = {}, l = !1, n = !1, r = e.offsetParent, o = {}, s = {};
4042
4043
  const c = e.querySelector(".move-target") || e;
4043
- c.style.cursor = "move", c.addEventListener("mousedown", (u) => {
4044
- l = !0, s = !!e.dataset.safe, r = e.offsetParent;
4044
+ c.style.cursor = "move", c.addEventListener("mousedown", (d) => {
4045
+ l = !0, n = !!e.dataset.safe, r = e.offsetParent;
4045
4046
  const p = window.getComputedStyle(e);
4046
- a = { x: u.clientX, y: u.clientY }, o = { x: parseInt(p.left), y: parseInt(p.top) };
4047
- }), document.addEventListener("mouseup", (u) => {
4047
+ a = { x: d.clientX, y: d.clientY }, o = { x: parseInt(p.left), y: parseInt(p.top) };
4048
+ }), document.addEventListener("mouseup", (d) => {
4048
4049
  l = !1;
4049
- }), ot = (u) => {
4050
+ }), ot = (d) => {
4050
4051
  if (!l || e.getAttribute("disabled") === "true")
4051
4052
  return;
4052
- u.stopPropagation(), u.preventDefault(), n = { x: u.clientX, y: u.clientY };
4053
- const p = s ? Math.min(Math.max(n.x - a.x + o.x, 0), r.offsetWidth - e.offsetWidth) : n.x - a.x + o.x, A = s ? Math.min(Math.max(n.y - a.y + o.y, 0), r.offsetHeight - e.offsetHeight) : n.y - a.y + o.y;
4053
+ d.stopPropagation(), d.preventDefault(), s = { x: d.clientX, y: d.clientY };
4054
+ const p = n ? Math.min(Math.max(s.x - a.x + o.x, 0), r.offsetWidth - e.offsetWidth) : s.x - a.x + o.x, A = n ? Math.min(Math.max(s.y - a.y + o.y, 0), r.offsetHeight - e.offsetHeight) : s.y - a.y + o.y;
4054
4055
  e.style.left = `${p}px`, e.style.top = `${A}px`, t.value && typeof t.value == "function" && t.value({ x: p, y: A });
4055
4056
  }, document.addEventListener("mousemove", ot);
4056
4057
  },
@@ -4067,7 +4068,7 @@ const As = {
4067
4068
  },
4068
4069
  emits: ["changeAbsImgItem", "delAbsImgItem", "changeAbsTxtItem", "delAbsTxtItem"],
4069
4070
  setup(e, { emit: t }) {
4070
- const a = e, l = Ms, s = As, r = [
4071
+ const a = e, l = Ms, n = As, r = [
4071
4072
  { left: "0", top: "0", cursor: "nwse-resize" },
4072
4073
  { left: "50%", top: "0", cursor: "ns-resize" },
4073
4074
  { left: "100%", top: "0", cursor: "nesw-resize" },
@@ -4076,48 +4077,48 @@ const As = {
4076
4077
  { left: "0", top: "100%", cursor: "nesw-resize" },
4077
4078
  { left: "50%", top: "100%", cursor: "ns-resize" },
4078
4079
  { left: "100%", top: "100%", cursor: "nwse-resize" }
4079
- ], o = Y({}), n = Y(), c = Y(0), u = Y(0), p = Y(), A = Y(), h = Y({}), F = Y(!1), U = Y(), G = Y(), T = Y(), R = N(() => a.imgData.map((D) => ({
4080
+ ], o = Y({}), s = Y(), c = Y(0), d = Y(0), p = Y(), A = Y(), h = Y({}), T = Y(!1), Q = Y(), G = Y(), I = Y(), H = N(() => a.imgData.map((D) => ({
4080
4081
  ...D,
4081
4082
  top: D.top - Math.floor(D.top / (g[a.layout.paper].height + a.pageMargin)) * a.pageMargin
4082
- }))), w = N(() => a.txtData.map((D) => ({
4083
+ }))), v = N(() => a.txtData.map((D) => ({
4083
4084
  ...D,
4084
4085
  top: D.top - Math.floor(D.top / (g[a.layout.paper].height + a.pageMargin)) * a.pageMargin
4085
- }))), P = N(() => U.value ? U.value.split("-")[0] === "img" ? R.value.find(($) => $.key === U.value) : w.value.find(($) => $.key === U.value) : null), X = N(() => P.value ? { [P.value.key]: { ...n.value } } : {});
4086
+ }))), P = N(() => Q.value ? Q.value.split("-")[0] === "img" ? H.value.find(($) => $.key === Q.value) : v.value.find(($) => $.key === Q.value) : null), X = N(() => P.value ? { [P.value.key]: { ...s.value } } : {});
4086
4087
  Xe(() => {
4087
4088
  p.value = document.body.querySelector(".__layout__");
4088
4089
  });
4089
4090
  const z = (D) => {
4090
- n.value = { ...P.value, left: Math.max(D.x, 0), top: Math.max(D.y, 0) }, clearTimeout(A.value), A.value = setTimeout(() => {
4091
+ s.value = { ...P.value, left: Math.max(D.x, 0), top: Math.max(D.y, 0) }, clearTimeout(A.value), A.value = setTimeout(() => {
4091
4092
  var $;
4092
- (($ = P.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? t("changeAbsImgItem", n.value) : t("changeAbsTxtItem", n.value), n.value = null;
4093
+ (($ = P.value) == null ? void 0 : $.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
4093
4094
  }, 400);
4094
4095
  }, _ = (D) => {
4095
- F.value = D;
4096
+ T.value = D;
4096
4097
  }, C = () => {
4097
- const D = P.value, $ = D.left + D.width / 2, S = D.top + D.height / 2, j = p.value.getBoundingClientRect() || {};
4098
- h.value = { x: $ + j.left, y: S + j.top }, p.value.addEventListener("mousemove", v), p.value.addEventListener("mouseleave", H), p.value.addEventListener("mouseup", H);
4099
- }, v = (D) => {
4098
+ const D = P.value, $ = D.left + D.width / 2, S = D.top + D.height / 2, K = p.value.getBoundingClientRect() || {};
4099
+ h.value = { x: $ + K.left, y: S + K.top }, p.value.addEventListener("mousemove", w), p.value.addEventListener("mouseleave", R), p.value.addEventListener("mouseup", R);
4100
+ }, w = (D) => {
4100
4101
  D.stopPropagation(), D.preventDefault();
4101
- const $ = D.clientX - h.value.x, S = h.value.y - D.clientY, j = Math.atan2(S, $) / (Math.PI / 180);
4102
- n.value = { ...P.value, rotate: -parseInt(j.toString()) };
4103
- }, H = (D) => {
4104
- D.stopPropagation(), D.preventDefault(), t("changeAbsImgItem", n.value), p.value.removeEventListener("mousemove", v), p.value.removeEventListener("mouseleave", H), p.value.removeEventListener("mouseup", H);
4102
+ const $ = D.clientX - h.value.x, S = h.value.y - D.clientY, K = Math.atan2(S, $) / (Math.PI / 180);
4103
+ s.value = { ...P.value, rotate: -parseInt(K.toString()) };
4104
+ }, R = (D) => {
4105
+ D.stopPropagation(), D.preventDefault(), t("changeAbsImgItem", s.value), p.value.removeEventListener("mousemove", w), p.value.removeEventListener("mouseleave", R), p.value.removeEventListener("mouseup", R);
4105
4106
  }, B = (D, $) => {
4106
4107
  var S;
4107
4108
  D.stopPropagation(), c.value = $, o.value = { x: D.clientX, y: D.clientY, ...P.value }, ((S = P.value) == null ? void 0 : S.key.split("-")[0]) === "img" ? p.value.addEventListener("mousemove", ye) : p.value.addEventListener("mousemove", pe), p.value.addEventListener("mouseleave", ie), p.value.addEventListener("mouseup", ie);
4108
4109
  }, ye = (D) => {
4109
- const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...P.value }, j = $.x > $.y ? "width" : "height";
4110
+ const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...P.value }, K = $.x > $.y ? "width" : "height";
4110
4111
  [
4111
4112
  // 0
4112
4113
  () => {
4113
4114
  const ae = {
4114
4115
  width: o.value.width - $.x,
4115
4116
  height: o.value.width * (1 - $.y / o.value.height)
4116
- }[j], re = {
4117
+ }[K], re = {
4117
4118
  width: o.value.height * (1 - $.x / o.value.width),
4118
4119
  height: o.value.height - $.y
4119
- }[j];
4120
- n.value = {
4120
+ }[K];
4121
+ s.value = {
4121
4122
  ...S,
4122
4123
  width: ae,
4123
4124
  height: re,
@@ -4128,7 +4129,7 @@ const As = {
4128
4129
  // 1
4129
4130
  () => {
4130
4131
  const ae = o.value.width * (1 - $.y / o.value.height), re = o.value.height - $.y;
4131
- n.value = {
4132
+ s.value = {
4132
4133
  ...S,
4133
4134
  width: ae,
4134
4135
  height: re,
@@ -4141,13 +4142,13 @@ const As = {
4141
4142
  const ae = {
4142
4143
  width: o.value.height * (1 + $.x / o.value.width),
4143
4144
  height: o.value.height - $.y
4144
- }[j];
4145
- n.value = {
4145
+ }[K];
4146
+ s.value = {
4146
4147
  ...S,
4147
4148
  width: {
4148
4149
  width: o.value.width + $.x,
4149
4150
  height: o.value.width * (1 - $.y / o.value.height)
4150
- }[j],
4151
+ }[K],
4151
4152
  height: ae,
4152
4153
  top: o.value.top - (ae - o.value.height)
4153
4154
  };
@@ -4155,7 +4156,7 @@ const As = {
4155
4156
  // 3
4156
4157
  () => {
4157
4158
  const ae = o.value.width - $.x, re = o.value.height * (1 - $.x / o.value.width);
4158
- n.value = {
4159
+ s.value = {
4159
4160
  ...S,
4160
4161
  width: ae,
4161
4162
  height: re,
@@ -4166,7 +4167,7 @@ const As = {
4166
4167
  // 4
4167
4168
  () => {
4168
4169
  const ae = o.value.width + $.x, re = o.value.height * (1 + $.x / o.value.width);
4169
- n.value = {
4170
+ s.value = {
4170
4171
  ...S,
4171
4172
  width: ae,
4172
4173
  height: re,
@@ -4178,11 +4179,11 @@ const As = {
4178
4179
  const ae = {
4179
4180
  width: o.value.width - $.x,
4180
4181
  height: o.value.width * (1 + $.y / o.value.height)
4181
- }[j], re = {
4182
+ }[K], re = {
4182
4183
  width: o.value.height * (1 - $.x / o.value.width),
4183
4184
  height: o.value.height + $.y
4184
- }[j];
4185
- n.value = {
4185
+ }[K];
4186
+ s.value = {
4186
4187
  ...S,
4187
4188
  width: ae,
4188
4189
  height: re,
@@ -4192,7 +4193,7 @@ const As = {
4192
4193
  // 6
4193
4194
  () => {
4194
4195
  const ae = o.value.width * (1 + $.y / o.value.height), re = o.value.height + $.y;
4195
- n.value = {
4196
+ s.value = {
4196
4197
  ...S,
4197
4198
  width: ae,
4198
4199
  height: re,
@@ -4204,11 +4205,11 @@ const As = {
4204
4205
  const ae = {
4205
4206
  width: o.value.width + $.x,
4206
4207
  height: o.value.width * (1 + $.y / o.value.height)
4207
- }[j], re = {
4208
+ }[K], re = {
4208
4209
  width: o.value.height * (1 + $.x / o.value.width),
4209
4210
  height: o.value.height + $.y
4210
- }[j];
4211
- n.value = {
4211
+ }[K];
4212
+ s.value = {
4212
4213
  ...S,
4213
4214
  width: ae,
4214
4215
  height: re
@@ -4216,7 +4217,7 @@ const As = {
4216
4217
  }
4217
4218
  ][c.value]();
4218
4219
  }, pe = (D) => {
4219
- const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...P.value }, j = [
4220
+ const $ = { x: D.clientX - o.value.x, y: D.clientY - o.value.y }, S = { ...P.value }, K = [
4220
4221
  {
4221
4222
  ...S,
4222
4223
  width: o.value.width - $.x,
@@ -4260,31 +4261,31 @@ const As = {
4260
4261
  height: o.value.height + $.y
4261
4262
  }
4262
4263
  ];
4263
- n.value = j[c.value];
4264
+ s.value = K[c.value];
4264
4265
  }, ie = () => {
4265
4266
  var D;
4266
- p.value.removeEventListener("mousemove", ye), p.value.removeEventListener("mousemove", pe), p.value.removeEventListener("mouseleave", ie), p.value.removeEventListener("mouseup", ie), ((D = P.value) == null ? void 0 : D.key.split("-")[0]) === "img" ? t("changeAbsImgItem", n.value) : t("changeAbsTxtItem", n.value), n.value = null;
4267
+ p.value.removeEventListener("mousemove", ye), p.value.removeEventListener("mousemove", pe), p.value.removeEventListener("mouseleave", ie), p.value.removeEventListener("mouseup", ie), ((D = P.value) == null ? void 0 : D.key.split("-")[0]) === "img" ? t("changeAbsImgItem", s.value) : t("changeAbsTxtItem", s.value), s.value = null;
4267
4268
  }, fe = (D) => {
4268
4269
  if (!D || D === P.value.content) {
4269
- u.value++;
4270
+ d.value++;
4270
4271
  return;
4271
4272
  }
4272
4273
  t("changeAbsTxtItem", { ...P.value, content: D });
4273
4274
  }, ue = (D, $) => {
4274
- var j;
4275
+ var K;
4275
4276
  const S = document.body.querySelector(`.cke_editor_${pt}`);
4276
- !D && ((j = ($ == null ? void 0 : $.target).dataset) != null && j.safe || [...G.value, ...T.value].find((we) => we.contains($ == null ? void 0 : $.target)) || S && window.getComputedStyle(S).display !== "none") || (U.value = D == null ? void 0 : D.key, n.value = D ? { ...D } : null);
4277
+ !D && ((K = ($ == null ? void 0 : $.target).dataset) != null && K.safe || [...G.value, ...I.value].find((we) => we.contains($ == null ? void 0 : $.target)) || S && window.getComputedStyle(S).display !== "none") || (Q.value = D == null ? void 0 : D.key, s.value = D ? { ...D } : null);
4277
4278
  };
4278
- return (D, $) => (i(), d(E, null, [
4279
- (i(!0), d(E, null, Z(R.value, (S) => {
4280
- var j, we, ae, re, be, b, I;
4281
- return gt((i(), d("div", {
4279
+ return (D, $) => (i(), u(E, null, [
4280
+ (i(!0), u(E, null, Z(H.value, (S) => {
4281
+ var K, we, ae, re, be, b, L;
4282
+ return gt((i(), u("div", {
4282
4283
  key: S.id,
4283
4284
  ref_for: !0,
4284
4285
  ref_key: "imgViewList",
4285
4286
  ref: G,
4286
4287
  "data-safe": "true",
4287
- class: oe(["absolute", ((j = P.value) == null ? void 0 : j.key) === S.key ? "z-8" : "z-7"]),
4288
+ class: oe(["absolute", ((K = P.value) == null ? void 0 : K.key) === S.key ? "z-8" : "z-7"]),
4288
4289
  style: q({ left: Math.max(((we = X.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = X.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = X.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = X.value[S.key]) == null ? void 0 : be.height) || S.height) + "px", transform: `rotate(${((b = X.value[S.key]) == null ? void 0 : b.rotate) || S.rotate}deg)` }),
4289
4290
  onMousedown: Le((le) => ue(S), ["stop"]),
4290
4291
  "data-block": x(Ee)
@@ -4292,7 +4293,7 @@ const As = {
4292
4293
  f("img", {
4293
4294
  src: S.url
4294
4295
  }, null, 8, Bs),
4295
- ((I = P.value) == null ? void 0 : I.key) === S.key ? (i(), d(E, { key: 0 }, [
4296
+ ((L = P.value) == null ? void 0 : L.key) === S.key ? (i(), u(E, { key: 0 }, [
4296
4297
  f("span", Os, [
4297
4298
  V(_e, {
4298
4299
  name: "close",
@@ -4302,7 +4303,7 @@ const As = {
4302
4303
  }, null, 8, ["onClick"])
4303
4304
  ]),
4304
4305
  f("div", zs, [
4305
- (i(), d(E, null, Z(8, (le, W) => f("div", {
4306
+ (i(), u(E, null, Z(8, (le, W) => f("div", {
4306
4307
  key: le,
4307
4308
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4308
4309
  style: q({ ...r[W], transform: "translate(-50%, -50%)" }),
@@ -4320,26 +4321,26 @@ const As = {
4320
4321
  ], 40, Rs)
4321
4322
  ], 64)) : M("", !0)
4322
4323
  ], 46, Ns)), [
4323
- [x(s), z],
4324
+ [x(n), z],
4324
4325
  [x(l), (le) => ue(null, le)]
4325
4326
  ]);
4326
4327
  }), 128)),
4327
- (i(!0), d(E, null, Z(w.value, (S) => {
4328
- var j, we, ae, re, be, b, I;
4329
- return gt((i(), d("div", {
4328
+ (i(!0), u(E, null, Z(v.value, (S) => {
4329
+ var K, we, ae, re, be, b, L;
4330
+ return gt((i(), u("div", {
4330
4331
  key: S.id,
4331
4332
  ref_for: !0,
4332
4333
  ref_key: "txtViewList",
4333
- ref: T,
4334
- disabled: F.value,
4334
+ ref: I,
4335
+ disabled: T.value,
4335
4336
  "data-safe": "true",
4336
- class: oe(["absolute", ((j = P.value) == null ? void 0 : j.key) === S.key ? "z-8 bg-white" : "z-7"]),
4337
+ class: oe(["absolute", ((K = P.value) == null ? void 0 : K.key) === S.key ? "z-8 bg-white" : "z-7"]),
4337
4338
  style: q({ left: Math.max(((we = X.value[S.key]) == null ? void 0 : we.left) || S.left, 0) + "px", top: Math.max(((ae = X.value[S.key]) == null ? void 0 : ae.top) || S.top, 0) + "px", width: (((re = X.value[S.key]) == null ? void 0 : re.width) || S.width) + "px", height: (((be = X.value[S.key]) == null ? void 0 : be.height) || S.height) + "px" }),
4338
4339
  onMousedown: Le((le) => ue(S), ["stop"]),
4339
4340
  "data-block": x(Ee)
4340
4341
  }, [
4341
- (i(), K(Ds, {
4342
- key: u.value,
4342
+ (i(), j(Ds, {
4343
+ key: d.value,
4343
4344
  class: "border-0 relative z-4",
4344
4345
  readonly: ((b = P.value) == null ? void 0 : b.key) !== S.key,
4345
4346
  value: S.content,
@@ -4348,7 +4349,7 @@ const As = {
4348
4349
  onFocus: $[0] || ($[0] = (le) => _(!0)),
4349
4350
  onBlur: $[1] || ($[1] = (le) => _(!1))
4350
4351
  }, null, 8, ["readonly", "value", "name"])),
4351
- ((I = P.value) == null ? void 0 : I.key) === S.key ? (i(), d(E, { key: 0 }, [
4352
+ ((L = P.value) == null ? void 0 : L.key) === S.key ? (i(), u(E, { key: 0 }, [
4352
4353
  f("span", Gs, [
4353
4354
  V(_e, {
4354
4355
  name: "close",
@@ -4358,7 +4359,7 @@ const As = {
4358
4359
  }, null, 8, ["onClick"])
4359
4360
  ]),
4360
4361
  f("div", Ys, [
4361
- (i(), d(E, null, Z(8, (le, W) => f("div", {
4362
+ (i(), u(E, null, Z(8, (le, W) => f("div", {
4362
4363
  key: le,
4363
4364
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4364
4365
  style: q({ ...r[W], transform: "translate(-50%, -50%)" }),
@@ -4367,14 +4368,14 @@ const As = {
4367
4368
  ])
4368
4369
  ], 64)) : M("", !0)
4369
4370
  ], 46, Ws)), [
4370
- [x(s), z],
4371
+ [x(n), z],
4371
4372
  [x(l), (le) => ue(null, le)]
4372
4373
  ]);
4373
4374
  }), 128))
4374
4375
  ], 64));
4375
4376
  }
4376
4377
  });
4377
- const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["viewBox"], Ks = {
4378
+ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), Ks = ["viewBox"], js = {
4378
4379
  x: "0",
4379
4380
  y: "0",
4380
4381
  width: "100%",
@@ -4397,32 +4398,32 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4397
4398
  setup(e, { emit: t }) {
4398
4399
  const a = e;
4399
4400
  Gt("ckeditorOrigin", a.ckeditorOrigin);
4400
- const l = Y([]), s = Y([]), r = Y(2), o = Y(0), n = Y(0), c = Y(), u = Y([]), p = Y([]), A = Y([]), h = Y([]), F = N(() => a.data.map((b) => ({
4401
+ const l = Y([]), n = Y([]), r = Y(2), o = Y(0), s = Y(0), c = Y(), d = Y([]), p = Y([]), A = Y([]), h = Y([]), T = N(() => a.data.map((b) => ({
4401
4402
  ...b,
4402
4403
  __tag__: Ct(),
4403
4404
  rawChildren: b.children,
4404
- children: b.children.map((I) => ({ ...I, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: Ct() }))
4405
- }))), U = N(() => {
4406
- const b = F.value[F.value.length - 1], I = b.rawChildren[b.rawChildren.length - 1];
4407
- return X.value && [m.slove].includes(I == null ? void 0 : I.problemType) && I.id;
4405
+ children: b.children.map((L) => ({ ...L, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: Ct() }))
4406
+ }))), Q = N(() => {
4407
+ const b = T.value[T.value.length - 1], L = b.rawChildren[b.rawChildren.length - 1];
4408
+ return X.value && [m.slove].includes(L == null ? void 0 : L.problemType) && L.id;
4408
4409
  }), G = N(() => {
4409
4410
  var b;
4410
- return a.layout.bindFlag && !!((b = Oe.find((I) => I.code === a.layout.paper)) != null && b.isMultCol);
4411
- }), T = N(() => a.isFinal ? 0 : 10), R = N(() => a.isFinal ? 10 : 0), w = N(() => Math.floor(l.value.length / (a.layout.column + a.layout.backColumn)) * 2 + Math.ceil(l.value.length % (a.layout.column + a.layout.backColumn) / a.layout.column) || r.value || 1), P = N(() => Math.ceil(w.value / 2) * 2), X = N(() => ["sheet", "sheetCard"].includes(a.layout.mode)), z = N(() => X.value ? $e : { top: 0, right: 0, bottom: 0, left: 0 }), _ = N(() => typeof a.layout.padding == "number" ? { left: a.layout.padding, top: a.layout.padding, right: a.layout.padding, bottom: a.layout.padding } : a.layout.padding || ct[a.layout.mode][a.layout.paper]), C = N(() => g[a.layout.paper].width - _.value.left - _.value.right), v = N(() => g[a.layout.paper].height - _.value.top - _.value.bottom), H = N(() => (C.value - (n.value ? n.value + S(0) : 0) + S(0)) / a.layout.column - S(0)), B = N(() => ({
4411
+ return a.layout.bindFlag && !!((b = Oe.find((L) => L.code === a.layout.paper)) != null && b.isMultCol);
4412
+ }), I = N(() => a.isFinal ? 0 : 10), H = N(() => a.isFinal ? 10 : 0), v = N(() => Math.floor(l.value.length / (a.layout.column + a.layout.backColumn)) * 2 + Math.ceil(l.value.length % (a.layout.column + a.layout.backColumn) / a.layout.column) || r.value || 1), P = N(() => Math.ceil(v.value / 2) * 2), X = N(() => ["sheet", "sheetCard"].includes(a.layout.mode)), z = N(() => X.value ? $e : { top: 0, right: 0, bottom: 0, left: 0 }), _ = N(() => typeof a.layout.padding == "number" ? { left: a.layout.padding, top: a.layout.padding, right: a.layout.padding, bottom: a.layout.padding } : a.layout.padding || ct[a.layout.mode][a.layout.paper]), C = N(() => g[a.layout.paper].width - _.value.left - _.value.right), w = N(() => g[a.layout.paper].height - _.value.top - _.value.bottom), R = N(() => (C.value - (s.value ? s.value + S(0) : 0) + S(0)) / a.layout.column - S(0)), B = N(() => ({
4412
4413
  width: `${g[a.layout.paper].width}px`,
4413
- height: `${(g[a.layout.paper].height + T.value) * P.value - T.value}px`
4414
+ height: `${(g[a.layout.paper].height + I.value) * P.value - I.value}px`
4414
4415
  })), ye = N(() => ({
4415
4416
  width: `${g[a.layout.paper].width}px`,
4416
4417
  height: `${g[a.layout.paper].height}px`,
4417
4418
  padding: `${_.value.top}px ${_.value.right}px ${_.value.bottom}px ${_.value.left}px`,
4418
- marginBottom: `${T.value}px`
4419
+ marginBottom: `${I.value}px`
4419
4420
  })), pe = N(() => {
4420
- var I;
4421
- const b = (I = Oe.find((le) => le.code === a.layout.paper)) == null ? void 0 : I.isMultCol;
4421
+ var L;
4422
+ const b = (L = Oe.find((le) => le.code === a.layout.paper)) == null ? void 0 : L.isMultCol;
4422
4423
  return {
4423
- left: `${_.value.left + (n.value ? n.value + S(0) : 0)}px`,
4424
+ left: `${_.value.left + (s.value ? s.value + S(0) : 0)}px`,
4424
4425
  top: `${_.value.top}px`,
4425
- width: b ? `${H.value}px` : `${C.value}px`
4426
+ width: b ? `${R.value}px` : `${C.value}px`
4426
4427
  };
4427
4428
  });
4428
4429
  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(""), () => {
@@ -4430,28 +4431,28 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4430
4431
  re();
4431
4432
  }, 100);
4432
4433
  }, { immediate: !0 }), Me(() => G.value, () => {
4433
- n.value = G.value ? 100 : 0;
4434
+ s.value = G.value ? 100 : 0;
4434
4435
  }, { immediate: !0 });
4435
- 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) => {
4436
- const I = b % (a.layout.column + a.layout.backColumn);
4437
- return I >= a.layout.column ? I - a.layout.column : I;
4438
- }, D = (b, I) => {
4439
- b ? u.value[I] = b : u.value.splice(I, 1);
4440
- }, $ = (b, I) => {
4441
- b ? p.value[I] = b : p.value.splice(I, 1);
4442
- }, S = (b) => Pt[a.layout.mode][a.layout.paper][ie(b)] || 0, j = (b, I = !1) => (C.value - (n.value ? n.value + S(b) : 0) + S(b)) / ie(b) - S(b) - z.value.left - z.value.right + (I ? z.value.left + z.value.right : 0), we = (b, I) => {
4436
+ const ie = (b) => b % (a.layout.column + a.layout.backColumn) >= a.layout.column ? a.layout.backColumn : a.layout.column, fe = (b, L) => Math.floor(L / 2) * (a.layout.column + a.layout.backColumn) + L % 2 * a.layout.column + b, ue = (b) => {
4437
+ const L = b % (a.layout.column + a.layout.backColumn);
4438
+ return L >= a.layout.column ? L - a.layout.column : L;
4439
+ }, D = (b, L) => {
4440
+ b ? d.value[L] = b : d.value.splice(L, 1);
4441
+ }, $ = (b, L) => {
4442
+ b ? p.value[L] = b : p.value.splice(L, 1);
4443
+ }, S = (b) => Pt[a.layout.mode][a.layout.paper][ie(b)] || 0, K = (b, L = !1) => (C.value - (s.value ? s.value + S(b) : 0) + S(b)) / ie(b) - S(b) - z.value.left - z.value.right + (L ? z.value.left + z.value.right : 0), we = (b, L) => {
4443
4444
  var W, te;
4444
- const le = b % (a.layout.column + a.layout.backColumn) ? 0 : ((W = A.value[Math.min(I, 1)]) == null ? void 0 : W.offsetHeight) || 0;
4445
+ const le = b % (a.layout.column + a.layout.backColumn) ? 0 : ((W = A.value[Math.min(L, 1)]) == null ? void 0 : W.offsetHeight) || 0;
4445
4446
  return {
4446
- left: `${_.value.left + (I % 2 ? 0 : n.value ? n.value + S(b) : 0) + z.value.left + ue(b) * (j(b) + S(b) + z.value.left + z.value.right)}px`,
4447
- top: `${le + _.value.top + (!I && !b ? 0 : z.value.top)}px`,
4448
- width: `${j(b)}px`,
4449
- height: `${v.value - le - (!I && !b ? 0 : z.value.top) - z.value.bottom}px`,
4447
+ left: `${_.value.left + (L % 2 ? 0 : s.value ? s.value + S(b) : 0) + z.value.left + ue(b) * (K(b) + S(b) + z.value.left + z.value.right)}px`,
4448
+ top: `${le + _.value.top + (!L && !b ? 0 : z.value.top)}px`,
4449
+ width: `${K(b)}px`,
4450
+ height: `${w.value - le - (!L && !b ? 0 : z.value.top) - z.value.bottom}px`,
4450
4451
  contentHeight: `${(te = l.value[b]) == null ? void 0 : te.height}px`
4451
4452
  };
4452
- }, ae = (b, I = !1) => {
4453
- s.value = b.map((le) => ({ ...le })), I && (l.value = [...b], o.value += 1, Je(() => {
4454
- r.value = Math.ceil(l.value.length / a.layout.column), s.value = [], p.value.forEach((le, W) => {
4453
+ }, ae = (b, L = !1) => {
4454
+ n.value = b.map((le) => ({ ...le })), L && (l.value = [...b], o.value += 1, Je(() => {
4455
+ r.value = Math.ceil(l.value.length / a.layout.column), n.value = [], p.value.forEach((le, W) => {
4455
4456
  var te, Se;
4456
4457
  !le || !le.col || ((te = l.value[W]) != null && te.top ? le.col.style.marginTop = `${(Se = l.value[W]) == null ? void 0 : Se.top}px` : le.col.style.marginTop = "");
4457
4458
  }), setTimeout(() => {
@@ -4459,10 +4460,10 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4459
4460
  config: {
4460
4461
  ...a.info,
4461
4462
  layout: a.layout,
4462
- pageTotal: w.value,
4463
- bindWidth: n.value,
4464
- pageMargin: T.value,
4465
- pageDom: u.value.slice(0, w.value),
4463
+ pageTotal: v.value,
4464
+ bindWidth: s.value,
4465
+ pageMargin: I.value,
4466
+ pageDom: d.value.slice(0, v.value),
4466
4467
  colDom: p.value.map((W) => W.col),
4467
4468
  colViewDom: p.value.map((W) => W.colView)
4468
4469
  },
@@ -4474,64 +4475,64 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4474
4475
  }, re = () => {
4475
4476
  Is({
4476
4477
  el: c.value,
4477
- data: F.value,
4478
+ data: T.value,
4478
4479
  column: a.layout.column,
4479
4480
  backColumn: a.layout.backColumn || a.layout.column,
4480
4481
  getColSize: we,
4481
4482
  change: ae
4482
4483
  });
4483
- }, be = (b = { type: Q.page, value: {} }) => {
4484
+ }, be = (b = { type: U.page, value: {} }) => {
4484
4485
  t("toggleActive", b);
4485
4486
  };
4486
- return (b, I) => {
4487
+ return (b, L) => {
4487
4488
  var le;
4488
- return i(), d(E, null, [
4489
- b.readonly ? M("", !0) : (i(), K($s, {
4489
+ return i(), u(E, null, [
4490
+ b.readonly ? M("", !0) : (i(), j($s, {
4490
4491
  key: 0,
4491
4492
  ColList: l.value,
4492
4493
  ColDom: p.value.map((W) => W.col),
4493
4494
  ImgData: b.imgData,
4494
4495
  TxtData: b.txtData,
4495
- onDelAbsImgItem: I[0] || (I[0] = (W) => t("delAbsImgItem", W)),
4496
- onDelAbsTxtItem: I[1] || (I[1] = (W) => t("delAbsTxtItem", W)),
4497
- onChangeLayoutStatus: I[2] || (I[2] = (W) => t("changeLayoutStatus", W))
4496
+ onDelAbsImgItem: L[0] || (L[0] = (W) => t("delAbsImgItem", W)),
4497
+ onDelAbsTxtItem: L[1] || (L[1] = (W) => t("delAbsTxtItem", W)),
4498
+ onChangeLayoutStatus: L[2] || (L[2] = (W) => t("changeLayoutStatus", W))
4498
4499
  }, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
4499
4500
  f("div", {
4500
4501
  class: "flex-1 overflow-auto relative z-1",
4501
4502
  id: "alit-layout",
4502
- onClick: I[14] || (I[14] = (W) => be())
4503
+ onClick: L[14] || (L[14] = (W) => be())
4503
4504
  }, [
4504
4505
  f("div", {
4505
4506
  class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
4506
4507
  ref_key: "rawDom",
4507
4508
  ref: c
4508
4509
  }, [
4509
- s.value.length ? (i(!0), d(E, { key: 0 }, Z((le = s.value[s.value.length - 1]) == null ? void 0 : le.data, (W, te) => (i(), d(E, null, [
4510
- W.isHidden ? M("", !0) : (i(), K(St, {
4510
+ n.value.length ? (i(!0), u(E, { key: 0 }, Z((le = n.value[n.value.length - 1]) == null ? void 0 : le.data, (W, te) => (i(), u(E, null, [
4511
+ W.isHidden ? M("", !0) : (i(), j(St, {
4511
4512
  key: 0,
4512
4513
  item: W,
4513
4514
  showColBorder: X.value,
4514
- isFirst: !te && s.value.length === 1,
4515
+ isFirst: !te && n.value.length === 1,
4515
4516
  layout: b.layout
4516
4517
  }, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
4517
- X.value ? (i(), d("div", {
4518
+ X.value ? (i(), u("div", {
4518
4519
  key: 1,
4519
4520
  class: oe([!W.children.length && W.problemType && "p-1 min-h-[2rem]"])
4520
4521
  }, [
4521
- (i(), K(Ge, {
4522
+ (i(), j(Ge, {
4522
4523
  data: W,
4523
- key: s.value.length,
4524
+ key: n.value.length,
4524
4525
  layout: b.layout,
4525
4526
  target: b.target,
4526
4527
  noPortrait: "",
4527
- width: j(s.value.length - 1) - 10
4528
+ width: K(n.value.length - 1) - 10
4528
4529
  }, null, 8, ["data", "layout", "target", "width"]))
4529
- ], 2)) : (i(), K(Ge, {
4530
+ ], 2)) : (i(), j(Ge, {
4530
4531
  data: W,
4531
- key: s.value.length,
4532
+ key: n.value.length,
4532
4533
  layout: b.layout,
4533
4534
  target: b.target,
4534
- width: j(s.value.length - 1)
4535
+ width: K(n.value.length - 1)
4535
4536
  }, null, 8, ["data", "layout", "target", "width"]))
4536
4537
  ], 64))), 256)) : M("", !0)
4537
4538
  ], 512),
@@ -4543,57 +4544,57 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4543
4544
  imgData: b.imgData,
4544
4545
  txtData: b.txtData,
4545
4546
  layout: b.layout,
4546
- pageMargin: R.value,
4547
- onChangeAbsImgItem: I[3] || (I[3] = (W) => t("changeAbsImgItem", W)),
4548
- onDelAbsImgItem: I[4] || (I[4] = (W) => t("delAbsImgItem", W)),
4549
- onChangeAbsTxtItem: I[5] || (I[5] = (W) => t("changeAbsTxtItem", W)),
4550
- onDelAbsTxtItem: I[6] || (I[6] = (W) => t("delAbsTxtItem", W))
4547
+ pageMargin: H.value,
4548
+ onChangeAbsImgItem: L[3] || (L[3] = (W) => t("changeAbsImgItem", W)),
4549
+ onDelAbsImgItem: L[4] || (L[4] = (W) => t("delAbsImgItem", W)),
4550
+ onChangeAbsTxtItem: L[5] || (L[5] = (W) => t("changeAbsTxtItem", W)),
4551
+ onDelAbsTxtItem: L[6] || (L[6] = (W) => t("delAbsTxtItem", W))
4551
4552
  }, null, 8, ["imgData", "txtData", "layout", "pageMargin"]),
4552
- (i(), d("svg", {
4553
+ (i(), u("svg", {
4553
4554
  viewBox: `0 0 ${parseFloat(B.value.width)} ${parseFloat(B.value.height)}`,
4554
4555
  version: "1.1",
4555
4556
  xmlns: "http://www.w3.org/2000/svg",
4556
4557
  key: o.value
4557
4558
  }, [
4558
- (i(), d("foreignObject", Ks, [
4559
- (i(!0), d(E, null, Z(P.value, (W, te) => (i(), d("div", {
4559
+ (i(), u("foreignObject", js, [
4560
+ (i(!0), u(E, null, Z(P.value, (W, te) => (i(), u("div", {
4560
4561
  key: W,
4561
4562
  class: "bg-white relative flex justify-between overflow-hidden box-border",
4562
4563
  ref_for: !0,
4563
4564
  ref: (Se) => D(Se, te),
4564
4565
  style: q(ye.value)
4565
4566
  }, [
4566
- te < w.value ? (i(), d(E, { key: 0 }, [
4567
+ te < v.value ? (i(), u(E, { key: 0 }, [
4567
4568
  V(wo, {
4568
4569
  layout: b.layout,
4569
4570
  currentPage: te,
4570
- totalPage: w.value,
4571
- columnContentWidth: j(te % 2 ? b.layout.column : 0, !0),
4571
+ totalPage: v.value,
4572
+ columnContentWidth: K(te % 2 ? b.layout.column : 0, !0),
4572
4573
  columnMargin: S(te % 2 ? b.layout.column : 0),
4573
- bindWidth: n.value,
4574
+ bindWidth: s.value,
4574
4575
  padding: _.value
4575
4576
  }, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
4576
- b.layout.sloganFlag ? (i(), K($o, {
4577
+ b.layout.sloganFlag ? (i(), j($o, {
4577
4578
  key: 0,
4578
4579
  info: b.info,
4579
4580
  layout: b.layout,
4580
- onChange: I[7] || (I[7] = (Se) => t("changeInfo", Se))
4581
+ onChange: L[7] || (L[7] = (Se) => t("changeInfo", Se))
4581
4582
  }, null, 8, ["info", "layout"])) : M("", !0),
4582
4583
  V(Za, {
4583
4584
  ref_for: !0,
4584
4585
  ref_key: "bindDom",
4585
4586
  ref: h,
4586
4587
  currentPage: te,
4587
- width: n.value,
4588
- height: v.value,
4588
+ width: s.value,
4589
+ height: w.value,
4589
4590
  isBindFlag: G.value
4590
4591
  }, null, 8, ["currentPage", "width", "height", "isBindFlag"]),
4591
- !(te % 2) || te === 1 && w.value < 3 ? (i(), d("div", {
4592
+ !(te % 2) || te === 1 && v.value < 3 ? (i(), u("div", {
4592
4593
  key: 1,
4593
4594
  ref_for: !0,
4594
4595
  ref_key: "titleDom",
4595
4596
  ref: A,
4596
- class: oe(["absolute text-black", te === 1 && w.value < 3 && "opacity-0 pointer-events-none"]),
4597
+ class: oe(["absolute text-black", te === 1 && v.value < 3 && "opacity-0 pointer-events-none"]),
4597
4598
  style: q(pe.value)
4598
4599
  }, [
4599
4600
  V(Po, {
@@ -4605,30 +4606,30 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4605
4606
  layout: b.layout,
4606
4607
  fontConfig: b.fontConfig,
4607
4608
  data: b.data,
4608
- onChange: I[8] || (I[8] = (Se) => t("changeInfo", Se))
4609
+ onChange: L[8] || (L[8] = (Se) => t("changeInfo", Se))
4609
4610
  }, null, 8, ["info", "layout", "fontConfig", "data"]),
4610
4611
  V(ka, {
4611
4612
  layout: b.layout,
4612
4613
  info: b.info,
4613
4614
  isBindFlag: G.value,
4614
- onChange: I[9] || (I[9] = (Se) => t("changeExtentInfo", Se))
4615
+ onChange: L[9] || (L[9] = (Se) => t("changeExtentInfo", Se))
4615
4616
  }, null, 8, ["layout", "info", "isBindFlag"]),
4616
4617
  V(Ba, {
4617
4618
  layout: b.layout,
4618
4619
  isBindFlag: G.value
4619
4620
  }, null, 8, ["layout", "isBindFlag"]),
4620
- te ? M("", !0) : (i(), K(Ya, {
4621
+ te ? M("", !0) : (i(), j(Ya, {
4621
4622
  key: 0,
4622
4623
  layout: b.layout,
4623
4624
  data: b.data
4624
4625
  }, null, 8, ["layout", "data"])),
4625
- b.layout.writeScoreFlag && !te ? (i(), K(_l, {
4626
+ b.layout.writeScoreFlag && !te ? (i(), j(_l, {
4626
4627
  key: 1,
4627
4628
  info: b.info,
4628
4629
  layout: b.layout
4629
4630
  }, null, 8, ["info", "layout"])) : M("", !0)
4630
4631
  ], 6)) : M("", !0),
4631
- (i(!0), d(E, null, Z(te % 2 ? b.layout.backColumn : b.layout.column, (Se, Pe) => (i(), K(Qa, {
4632
+ (i(!0), u(E, null, Z(te % 2 ? b.layout.backColumn : b.layout.column, (Se, Pe) => (i(), j(Qa, {
4632
4633
  ref_for: !0,
4633
4634
  ref: (We) => $(We, fe(Pe, te)),
4634
4635
  styleInfo: we(fe(Pe, te), te),
@@ -4639,46 +4640,46 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4639
4640
  default: Ft(() => {
4640
4641
  var We;
4641
4642
  return [
4642
- (i(!0), d(E, null, Z(((We = l.value[fe(Pe, te)]) == null ? void 0 : We.data) || [], (ge, Ht) => {
4643
+ (i(!0), u(E, null, Z(((We = l.value[fe(Pe, te)]) == null ? void 0 : We.data) || [], (ge, Ht) => {
4643
4644
  var mt;
4644
- return i(), d(E, null, [
4645
- ge.isHidden ? M("", !0) : (i(), K(St, {
4645
+ return i(), u(E, null, [
4646
+ ge.isHidden ? M("", !0) : (i(), j(St, {
4646
4647
  key: 0,
4647
4648
  item: ge,
4648
4649
  showColBorder: X.value,
4649
4650
  isFirst: !te && !Pe && !Ht,
4650
4651
  layout: b.layout,
4651
4652
  isActive: ((mt = b.target.value) == null ? void 0 : mt.id) === ge.id,
4652
- onClick: (Ce) => be({ type: ge.problemType ? x(Q).headline : x(Q).headlineNotarea, value: ge }),
4653
+ onClick: (Ce) => be({ type: ge.problemType ? x(U).headline : x(U).headlineNotarea, value: ge }),
4653
4654
  onDbclick: (Ce) => t("dbHeadLineClick", ge)
4654
4655
  }, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
4655
- X.value ? (i(), d("div", {
4656
+ X.value ? (i(), u("div", {
4656
4657
  key: 1,
4657
- class: oe([!ge.children.length && ge.problemType && "p-1 min-h-[2rem]", b.target.type === x(Q).headline && b.target.value.id === ge.id && "active_headline"]),
4658
- onClick: Le((Ce) => be({ type: ge.problemType ? x(Q).headline : x(Q).headlineNotarea, value: ge }), ["stop"]),
4658
+ 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"]),
4659
+ onClick: Le((Ce) => be({ type: ge.problemType ? x(U).headline : x(U).headlineNotarea, value: ge }), ["stop"]),
4659
4660
  onDblclick: (Ce) => t("dbHeadLineClick", ge)
4660
4661
  }, [
4661
4662
  V(Ge, {
4662
4663
  data: ge,
4663
4664
  layout: b.layout,
4664
4665
  target: b.target,
4665
- width: j(fe(Pe, te)) - 10,
4666
- onClick: I[10] || (I[10] = (Ce) => be({ type: Ce.problemType ? x(Q).problem : x(Q).problemNotarea, value: Ce })),
4667
- onDbclick: I[11] || (I[11] = (Ce) => t("dbProblemClick", Ce))
4666
+ width: K(fe(Pe, te)) - 10,
4667
+ onClick: L[10] || (L[10] = (Ce) => be({ type: Ce.problemType ? x(U).problem : x(U).problemNotarea, value: Ce })),
4668
+ onDbclick: L[11] || (L[11] = (Ce) => t("dbProblemClick", Ce))
4668
4669
  }, null, 8, ["data", "layout", "target", "width"]),
4669
- ge.children.length && ge.children[ge.children.length - 1].id === U.value ? (i(), d("div", {
4670
+ ge.children.length && ge.children[ge.children.length - 1].id === Q.value ? (i(), u("div", {
4670
4671
  key: 0,
4671
4672
  class: "border-t",
4672
4673
  "data-block": x(Ee)
4673
4674
  }, null, 8, Xs)) : M("", !0)
4674
- ], 42, Vs)) : (i(), K(Ge, {
4675
+ ], 42, Vs)) : (i(), j(Ge, {
4675
4676
  key: 2,
4676
4677
  data: ge,
4677
4678
  layout: b.layout,
4678
4679
  target: b.target,
4679
- width: j(fe(Pe, te)),
4680
- onClick: I[12] || (I[12] = (Ce) => be({ type: Ce.problemType ? x(Q).problem : x(Q).problemNotarea, value: Ce })),
4681
- onDbclick: I[13] || (I[13] = (Ce) => t("dbProblemClick", Ce))
4680
+ width: K(fe(Pe, te)),
4681
+ onClick: L[12] || (L[12] = (Ce) => be({ type: Ce.problemType ? x(U).problem : x(U).problemNotarea, value: Ce })),
4682
+ onDbclick: L[13] || (L[13] = (Ce) => t("dbProblemClick", Ce))
4682
4683
  }, null, 8, ["data", "layout", "target", "width"]))
4683
4684
  ], 64);
4684
4685
  }), 256))
@@ -4689,7 +4690,7 @@ const Us = /* @__PURE__ */ de(Qs, [["__scopeId", "data-v-410db2aa"]]), js = ["vi
4689
4690
  ], 64)) : M("", !0)
4690
4691
  ], 4))), 128))
4691
4692
  ]))
4692
- ], 8, js))
4693
+ ], 8, Ks))
4693
4694
  ], 6)
4694
4695
  ])
4695
4696
  ], 64);