@yungu-fed/question-editor 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -868,15 +868,15 @@ var Et = {
868
868
  },
869
869
  serialize: function serialize(_ref21) {
870
870
  var e = _ref21.node;
871
- return e.type === "blank" ? "<span data-rte-node=\"blank\" data-blank-id=\"".concat(O(e.blankId), "\" data-label=\"").concat(O(e.label), "\"></span>") : null;
871
+ return e.type === "blank" ? "<span data-rte-node=\"blank\" data-blank-id=\"".concat(jt(e.blankId), "\" data-label=\"").concat(jt(e.label), "\"></span>") : null;
872
872
  }
873
873
  },
874
874
  json: {
875
875
  deserialize: function deserialize(_ref22) {
876
876
  var e = _ref22.input;
877
877
  return Ot(e) ? {
878
- blankId: O(e.blankId),
879
- label: O(e.label),
878
+ blankId: jt(e.blankId),
879
+ label: jt(e.label),
880
880
  children: [{
881
881
  text: ""
882
882
  }],
@@ -886,8 +886,8 @@ var Et = {
886
886
  serialize: function serialize(_ref23) {
887
887
  var e = _ref23.node;
888
888
  return e.type === "blank" ? {
889
- blankId: O(e.blankId),
890
- label: O(e.label),
889
+ blankId: jt(e.blankId),
890
+ label: jt(e.label),
891
891
  type: "blank"
892
892
  } : null;
893
893
  }
@@ -912,7 +912,7 @@ var Et = {
912
912
  return (0, t.jsx)("span", {
913
913
  className: Et["blank-underline"],
914
914
  "data-selected": n ? "true" : void 0,
915
- children: O(e.label) || O(e.blankId) || "Blank"
915
+ children: jt(e.label) || jt(e.blankId) || "Blank"
916
916
  });
917
917
  }
918
918
  },
@@ -923,20 +923,20 @@ function Ot(e) {
923
923
  return !!(e && _typeof(e) == "object" && "type" in e && e.type === "blank");
924
924
  }
925
925
  function kt(e) {
926
- return e && _typeof(e) == "object" && "blankId" in e ? O(e.blankId) : "";
926
+ return e && _typeof(e) == "object" && "blankId" in e ? jt(e.blankId) : "";
927
927
  }
928
928
  function At(e) {
929
- return e && _typeof(e) == "object" && "label" in e ? O(e.label) : "";
929
+ return e && _typeof(e) == "object" && "label" in e ? jt(e.label) : "";
930
930
  }
931
- function O(e) {
931
+ function jt(e) {
932
932
  return _typeof(e) == "string" ? e : "";
933
933
  }
934
- var jt = 1,
935
- Mt = 4,
936
- Nt = 2,
937
- Pt = 4,
938
- Ft = 2,
939
- It = {
934
+ var Mt = 1,
935
+ Nt = 4,
936
+ Pt = 2,
937
+ Ft = 4,
938
+ It = 2,
939
+ Lt = {
940
940
  lowerAlpha: function lowerAlpha(e) {
941
941
  return String.fromCharCode(97 + e);
942
942
  },
@@ -947,38 +947,38 @@ var jt = 1,
947
947
  return String.fromCharCode(65 + e);
948
948
  }
949
949
  };
950
- function Lt(e) {
950
+ function Rt(e) {
951
951
  return e.isComposite;
952
952
  }
953
- function Rt(e) {
953
+ function zt(e) {
954
954
  var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
955
955
  return {
956
956
  questionTypeKey: t,
957
957
  children: [],
958
958
  elements: e.elements.map(function (t) {
959
- return Pr(t, e.hasAnswer);
959
+ return Fr(t, e.hasAnswer);
960
960
  }),
961
- extras: e.extras.map(Ur),
961
+ extras: e.extras.map(Wr),
962
962
  id: null,
963
963
  version: "1"
964
964
  };
965
965
  }
966
- function zt(e, t) {
966
+ function Bt(e, t) {
967
967
  var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "question";
968
968
  return C(C({}, t), {}, {
969
- elements: Bt({
969
+ elements: Vt({
970
970
  createDefault: function createDefault(t) {
971
- return Pr(t, e.hasAnswer);
971
+ return Fr(t, e.hasAnswer);
972
972
  },
973
973
  items: t.elements,
974
974
  normalize: function normalize(t, n) {
975
- return zi(t, n, e.hasAnswer);
975
+ return Bi(t, n, e.hasAnswer);
976
976
  },
977
977
  path: "".concat(n, ".elements"),
978
978
  templates: e.elements
979
979
  }),
980
- extras: Bt({
981
- createDefault: Ur,
980
+ extras: Vt({
981
+ createDefault: Wr,
982
982
  items: t.extras,
983
983
  normalize: function normalize(e) {
984
984
  return e;
@@ -988,19 +988,19 @@ function zt(e, t) {
988
988
  })
989
989
  });
990
990
  }
991
- function Bt(_ref26) {
991
+ function Vt(_ref26) {
992
992
  var e = _ref26.createDefault,
993
993
  t = _ref26.items,
994
994
  n = _ref26.normalize,
995
995
  r = _ref26.path,
996
996
  i = _ref26.templates;
997
- var a = Vt(i),
997
+ var a = Ht(i),
998
998
  o = new Map();
999
999
  t.forEach(function (e, t) {
1000
1000
  var n, i;
1001
1001
  var s = ((n = o.get(e.type)) == null ? 0 : n) + 1,
1002
1002
  c = (i = a.get(e.type)) == null ? 0 : i;
1003
- o.set(e.type, s), s > c && Ht("".concat(r, "[").concat(t, "].type"), "\u6A21\u677F\u6700\u591A\u5305\u542B".concat(c, "\u4E2A").concat(e.type), "\u7B2C".concat(s, "\u4E2A").concat(e.type));
1003
+ o.set(e.type, s), s > c && Ut("".concat(r, "[").concat(t, "].type"), "\u6A21\u677F\u6700\u591A\u5305\u542B".concat(c, "\u4E2A").concat(e.type), "\u7B2C".concat(s, "\u4E2A").concat(e.type));
1004
1004
  });
1005
1005
  var s = t.reduce(function (e, t) {
1006
1006
  var n;
@@ -1015,53 +1015,53 @@ function Bt(_ref26) {
1015
1015
  return s.set(t.type, a), i ? n(i, t) : e(t);
1016
1016
  });
1017
1017
  }
1018
- function Vt(e) {
1018
+ function Ht(e) {
1019
1019
  return e.reduce(function (e, t) {
1020
1020
  var n;
1021
1021
  return e.set(t.type, ((n = e.get(t.type)) == null ? 0 : n) + 1), e;
1022
1022
  }, new Map());
1023
1023
  }
1024
- function Ht(e, t, n) {
1024
+ function Ut(e, t, n) {
1025
1025
  throw Error("\u9898\u76EE\u6570\u636E\u4E0E\u9898\u578B\u6A21\u677F\u4E0D\u4E00\u81F4\uFF0Cpath=".concat(e, "\uFF0Cexpected=").concat(String(t), "\uFF0Cactual=").concat(String(n)));
1026
1026
  }
1027
- function k() {
1027
+ function O() {
1028
1028
  var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
1029
1029
  var t = arguments.length > 1 ? arguments[1] : undefined;
1030
- return Ut(t == null ? hi(e) : t);
1030
+ return Wt(t == null ? gi(e) : t);
1031
1031
  }
1032
- function Ut(t) {
1032
+ function Wt(t) {
1033
1033
  var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [Dt];
1034
- var r = Ci(t, n);
1034
+ var r = wi(t, n);
1035
1035
  return {
1036
1036
  html: (0, e.serializeRichTextEditorHtml)(r, {
1037
1037
  plugins: n
1038
1038
  }),
1039
1039
  json: r,
1040
- text: gi(r)
1040
+ text: _i(r)
1041
1041
  };
1042
1042
  }
1043
- function Wt() {
1043
+ function Gt() {
1044
1044
  var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
1045
1045
  var t = arguments.length > 1 ? arguments[1] : undefined;
1046
1046
  var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
1047
- return Ut(Gt(e, t, n), [gt]);
1047
+ return Wt(Kt(e, t, n), [gt]);
1048
1048
  }
1049
- function Gt(t, n, r) {
1050
- return n && Si(n) ? n : r ? (0, e.deserializeRichTextEditorHtml)(r, {
1049
+ function Kt(t, n, r) {
1050
+ return n && Ci(n) ? n : r ? (0, e.deserializeRichTextEditorHtml)(r, {
1051
1051
  plugins: [gt]
1052
- }) : hi(t);
1052
+ }) : gi(t);
1053
1053
  }
1054
- function Kt(e) {
1054
+ function qt(e) {
1055
1055
  return yt(e.content.json).filter(function (t) {
1056
1056
  return e.answers.includes(t.markerId);
1057
1057
  }).map(function (e) {
1058
1058
  return e.text.trim();
1059
1059
  }).filter(Boolean).join(" / ");
1060
1060
  }
1061
- function qt(e) {
1062
- return Si(e.json) ? e.json : hi(e.text);
1061
+ function Jt(e) {
1062
+ return Ci(e.json) ? e.json : gi(e.text);
1063
1063
  }
1064
- function Jt(e, t, n) {
1064
+ function Yt(e, t, n) {
1065
1065
  var r = e.elements[t];
1066
1066
  if (!r || r.type !== n.type) {
1067
1067
  var i;
@@ -1069,7 +1069,7 @@ function Jt(e, t, n) {
1069
1069
  }
1070
1070
  return r;
1071
1071
  }
1072
- function Yt(e, t, n) {
1072
+ function Xt(e, t, n) {
1073
1073
  var r = e.extras[t];
1074
1074
  if (!r || r.type !== n.type) {
1075
1075
  var i;
@@ -1077,16 +1077,16 @@ function Yt(e, t, n) {
1077
1077
  }
1078
1078
  return r;
1079
1079
  }
1080
- function Xt(e, t) {
1081
- return It[e](t);
1082
- }
1083
1080
  function Zt(e, t) {
1084
- return it(e, t);
1081
+ return Lt[e](t);
1085
1082
  }
1086
1083
  function Qt(e, t) {
1084
+ return it(e, t);
1085
+ }
1086
+ function $t(e, t) {
1087
1087
  return pt(e, t);
1088
1088
  }
1089
- function $t(e) {
1089
+ function en(e) {
1090
1090
  switch (e) {
1091
1091
  case "checkCross":
1092
1092
  return ["\u2713", "\u2715"];
@@ -1102,11 +1102,11 @@ function $t(e) {
1102
1102
  return ["\u662F", "\u5426"];
1103
1103
  }
1104
1104
  }
1105
- function en(e) {
1106
- var _$t = $t(e),
1107
- _$t2 = _slicedToArray(_$t, 2),
1108
- t = _$t2[0],
1109
- n = _$t2[1];
1105
+ function tn(e) {
1106
+ var _en = en(e),
1107
+ _en2 = _slicedToArray(_en, 2),
1108
+ t = _en2[0],
1109
+ n = _en2[1];
1110
1110
  return [{
1111
1111
  label: t,
1112
1112
  value: !0
@@ -1115,8 +1115,8 @@ function en(e) {
1115
1115
  value: !1
1116
1116
  }];
1117
1117
  }
1118
- function tn(e, t) {
1119
- return en(e).filter(function (_ref29) {
1118
+ function nn(e, t) {
1119
+ return tn(e).filter(function (_ref29) {
1120
1120
  var e = _ref29.value;
1121
1121
  return t[0] === e;
1122
1122
  }).map(function (_ref30) {
@@ -1124,13 +1124,13 @@ function tn(e, t) {
1124
1124
  return e;
1125
1125
  });
1126
1126
  }
1127
- function nn(e, t) {
1127
+ function rn(e, t) {
1128
1128
  return e.options.map(function (e, n) {
1129
- return Qn(e, n, t);
1129
+ return $n(e, n, t);
1130
1130
  });
1131
1131
  }
1132
- function rn(e, t) {
1133
- var n = nn(e, t);
1132
+ function an(e, t) {
1133
+ var n = rn(e, t);
1134
1134
  return e.answers.optionIds.reduce(function (e, t) {
1135
1135
  var r = n.find(function (e) {
1136
1136
  return e.optionId === t;
@@ -1138,32 +1138,32 @@ function rn(e, t) {
1138
1138
  return r ? [].concat(_toConsumableArray(e), [r]) : e;
1139
1139
  }, []);
1140
1140
  }
1141
- function an(e) {
1142
- return e.elements.every(wi) && e.extras.every(function (e) {
1143
- return j(e.content);
1144
- }) && e.children.every(an);
1145
- }
1146
1141
  function on(e) {
1142
+ return e.elements.every(Ti) && e.extras.every(function (e) {
1143
+ return A(e.content);
1144
+ }) && e.children.every(on);
1145
+ }
1146
+ function sn(e) {
1147
1147
  return {
1148
1148
  questionTypeKey: e.questionTypeKey,
1149
- children: e.children.map(on),
1150
- elements: e.elements.map(Li),
1151
- extras: e.extras.map(Gi),
1149
+ children: e.children.map(sn),
1150
+ elements: e.elements.map(Ri),
1151
+ extras: e.extras.map(Ki),
1152
1152
  id: e.id,
1153
1153
  version: e.version
1154
1154
  };
1155
1155
  }
1156
- function sn(e, t) {
1157
- return zt(e, C(C({}, t), {}, {
1156
+ function cn(e, t) {
1157
+ return Bt(e, C(C({}, t), {}, {
1158
1158
  children: t.children,
1159
1159
  elements: t.elements,
1160
1160
  extras: t.extras
1161
1161
  }));
1162
1162
  }
1163
- function cn(e, t) {
1164
- return zt(e, t);
1163
+ function ln(e, t) {
1164
+ return Bt(e, t);
1165
1165
  }
1166
- function ln(e, t, n) {
1166
+ function un(e, t, n) {
1167
1167
  var r = e.elements[t];
1168
1168
  if (!r || r.type !== n.type) {
1169
1169
  var i;
@@ -1175,7 +1175,7 @@ function ln(e, t, n) {
1175
1175
  })
1176
1176
  });
1177
1177
  }
1178
- function un(e, t, n) {
1178
+ function dn(e, t, n) {
1179
1179
  var r = e.extras[t];
1180
1180
  if (!r || r.type !== n.type) {
1181
1181
  var i;
@@ -1187,52 +1187,52 @@ function un(e, t, n) {
1187
1187
  })
1188
1188
  });
1189
1189
  }
1190
- function dn(e) {
1190
+ function fn(e) {
1191
1191
  var t = [];
1192
- return vi(e, function (e) {
1193
- if (!bi(e) || e.type !== "blank") return;
1194
- var n = yi(e, "blankId");
1192
+ return yi(e, function (e) {
1193
+ if (!xi(e) || e.type !== "blank") return;
1194
+ var n = bi(e, "blankId");
1195
1195
  n && !t.includes(n) && t.push(n);
1196
1196
  }), t;
1197
1197
  }
1198
- function fn() {
1198
+ function pn() {
1199
1199
  return g();
1200
1200
  }
1201
- function pn(e, t, n, r) {
1202
- var i = dn(t.json);
1203
- return _n(C(C({}, e), {}, {
1201
+ function mn(e, t, n, r) {
1202
+ var i = fn(t.json);
1203
+ return vn(C(C({}, e), {}, {
1204
1204
  blanks: i,
1205
1205
  content: t
1206
1206
  }), r, n);
1207
1207
  }
1208
- function mn(e, t, n, r) {
1209
- var i = dn(t.json);
1210
- return gn(C(C({}, e), {}, {
1208
+ function hn(e, t, n, r) {
1209
+ var i = fn(t.json);
1210
+ return _n(C(C({}, e), {}, {
1211
1211
  blanks: i,
1212
1212
  content: t
1213
1213
  }), n, r);
1214
1214
  }
1215
- function hn(e, t, n) {
1216
- var r = Wt(t.text, t.json, t.html),
1215
+ function gn(e, t, n) {
1216
+ var r = Gt(t.text, t.json, t.html),
1217
1217
  i = vt(r.json);
1218
1218
  return C(C({}, e), {}, {
1219
- answers: n ? ci(e.answers, i) : [],
1219
+ answers: n ? li(e.answers, i) : [],
1220
1220
  content: r,
1221
1221
  markers: i
1222
1222
  });
1223
1223
  }
1224
- function gn(e, t, n) {
1225
- var r = Cn(e);
1224
+ function _n(e, t, n) {
1225
+ var r = wn(e);
1226
1226
  return C(C(C({}, e), r), {}, {
1227
1227
  answers: t ? r.answers : {},
1228
- candidateOptions: bn(e.candidateOptions, n.config.builderMode)
1228
+ candidateOptions: xn(e.candidateOptions, n.config.builderMode)
1229
1229
  });
1230
1230
  }
1231
- function _n(e, t, n) {
1231
+ function vn(e, t, n) {
1232
1232
  if (t.config.candidateMode === "sharedPool") {
1233
- var _r2 = yn(e.candidateOptions);
1233
+ var _r2 = bn(e.candidateOptions);
1234
1234
  return C(C({}, e), {}, {
1235
- answers: n ? Mn(e.answers, e.blanks, _r2.map(function (e) {
1235
+ answers: n ? Nn(e.answers, e.blanks, _r2.map(function (e) {
1236
1236
  return e.optionId;
1237
1237
  }), t.config.allowCandidateReuse) : [],
1238
1238
  blankOptionGroups: void 0,
@@ -1240,72 +1240,72 @@ function _n(e, t, n) {
1240
1240
  });
1241
1241
  }
1242
1242
  if (t.config.candidateMode === "perBlankOptions") {
1243
- var _t2 = An(e.blankOptionGroups, e.blanks),
1243
+ var _t2 = jn(e.blankOptionGroups, e.blanks),
1244
1244
  _r3 = new Map(_t2.map(function (e) {
1245
1245
  return [e.blankId, e.options.map(function (e) {
1246
1246
  return e.optionId;
1247
1247
  })];
1248
1248
  }));
1249
1249
  return C(C({}, e), {}, {
1250
- answers: n ? Nn(e.answers, e.blanks, _r3) : [],
1250
+ answers: n ? Pn(e.answers, e.blanks, _r3) : [],
1251
1251
  blankOptionGroups: _t2,
1252
1252
  candidateOptions: void 0
1253
1253
  });
1254
1254
  }
1255
1255
  return C(C({}, e), {}, {
1256
- answers: n ? A(e.answers, e.blanks) : [],
1256
+ answers: n ? k(e.answers, e.blanks) : [],
1257
1257
  blankOptionGroups: void 0,
1258
1258
  candidateOptions: void 0
1259
1259
  });
1260
1260
  }
1261
- function vn(e) {
1262
- var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : k();
1261
+ function yn(e) {
1262
+ var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : O();
1263
1263
  return {
1264
1264
  content: t,
1265
1265
  optionId: e
1266
1266
  };
1267
1267
  }
1268
- function yn(e) {
1268
+ function bn(e) {
1269
1269
  var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
1270
1270
  var n;
1271
1271
  var r = new Set(),
1272
1272
  i = (n = e == null ? void 0 : e.map(function (e) {
1273
- return vn(_(e.optionId, r), e.content);
1273
+ return yn(_(e.optionId, r), e.content);
1274
1274
  }).filter(function (e) {
1275
1275
  return e.optionId.length > 0;
1276
1276
  })) == null ? [] : n;
1277
1277
  return i.length ? i : Array.from({
1278
1278
  length: t
1279
1279
  }, function (e, n) {
1280
- return vn(_(void 0, r), t === Mt ? k("\u9009\u9879 ".concat(Xt("upperAlpha", n))) : k());
1280
+ return yn(_(void 0, r), t === Nt ? O("\u9009\u9879 ".concat(Zt("upperAlpha", n))) : O());
1281
1281
  });
1282
1282
  }
1283
- function bn(e, t) {
1283
+ function xn(e, t) {
1284
1284
  var n = (e == null ? [] : e).map(function (e) {
1285
1285
  return e.trim();
1286
1286
  }).filter(function (e) {
1287
1287
  return e.length > 0;
1288
1288
  });
1289
- return n.length > 0 ? n : xn(t);
1289
+ return n.length > 0 ? n : Sn(t);
1290
1290
  }
1291
- function xn(e) {
1291
+ function Sn(e) {
1292
1292
  return e === "sentence" ? ["This helped them save time."] : ["c", "l", "e", "a", "n"];
1293
1293
  }
1294
- function Sn(e) {
1294
+ function Cn(e) {
1295
1295
  return e.filter(function (e, t, n) {
1296
1296
  return e.length > 0 && n.indexOf(e) === t;
1297
1297
  });
1298
1298
  }
1299
- function Cn(e) {
1299
+ function wn(e) {
1300
1300
  var t = new Map(e.blanks.map(function (e) {
1301
- return [e, e.trim() || fn()];
1301
+ return [e, e.trim() || pn()];
1302
1302
  }).filter(function (_ref31) {
1303
1303
  var _ref32 = _slicedToArray(_ref31, 2),
1304
1304
  e = _ref32[0],
1305
1305
  t = _ref32[1];
1306
1306
  return e !== t;
1307
1307
  })),
1308
- n = Sn(e.blanks.map(function (e) {
1308
+ n = Cn(e.blanks.map(function (e) {
1309
1309
  var n;
1310
1310
  return (n = t.get(e)) == null ? e : n;
1311
1311
  })),
@@ -1316,44 +1316,44 @@ function Cn(e) {
1316
1316
  var i;
1317
1317
  return C(C({}, e), {}, _defineProperty({}, (i = t.get(n)) == null ? n : i, r));
1318
1318
  }, {}),
1319
- i = t.size > 0 ? Ut(wn(e.content.json, t)) : e.content;
1319
+ i = t.size > 0 ? Wt(Tn(e.content.json, t)) : e.content;
1320
1320
  return {
1321
- answers: Dn(r, n),
1321
+ answers: On(r, n),
1322
1322
  blanks: n,
1323
1323
  content: i
1324
1324
  };
1325
1325
  }
1326
- function wn(e, t) {
1326
+ function Tn(e, t) {
1327
1327
  return e.map(function (e) {
1328
- return Tn(e, t);
1328
+ return En(e, t);
1329
1329
  });
1330
1330
  }
1331
- function Tn(e, t) {
1331
+ function En(e, t) {
1332
1332
  var n;
1333
- if (!En(e)) return e;
1333
+ if (!Dn(e)) return e;
1334
1334
  var r = e.children.map(function (e) {
1335
- return Tn(e, t);
1335
+ return En(e, t);
1336
1336
  });
1337
1337
  if (e.type !== "blank") return C(C({}, e), {}, {
1338
1338
  children: r
1339
1339
  });
1340
- var i = yi(e, "blankId");
1340
+ var i = bi(e, "blankId");
1341
1341
  return C(C({}, e), {}, {
1342
1342
  blankId: (n = t.get(i)) == null ? i : n,
1343
1343
  children: r
1344
1344
  });
1345
1345
  }
1346
- function En(e) {
1346
+ function Dn(e) {
1347
1347
  return "children" in e && Array.isArray(e.children) && "type" in e && _typeof(e.type) == "string";
1348
1348
  }
1349
- function Dn(e, t) {
1349
+ function On(e, t) {
1350
1350
  return t.reduce(function (t, n) {
1351
1351
  var r;
1352
1352
  return C(C({}, t), {}, _defineProperty({}, n, (r = e[n]) == null ? "" : r));
1353
1353
  }, {});
1354
1354
  }
1355
- function On(e) {
1356
- return Ut([{
1355
+ function kn(e) {
1356
+ return Wt([{
1357
1357
  children: [{
1358
1358
  text: "Complete: "
1359
1359
  }, {
@@ -1367,24 +1367,24 @@ function On(e) {
1367
1367
  type: "paragraph"
1368
1368
  }]);
1369
1369
  }
1370
- function kn(e, t) {
1370
+ function An(e, t) {
1371
1371
  return {
1372
1372
  blankId: t,
1373
- options: yn(e == null ? void 0 : e.options, Mt)
1373
+ options: bn(e == null ? void 0 : e.options, Nt)
1374
1374
  };
1375
1375
  }
1376
- function An(e, t) {
1376
+ function jn(e, t) {
1377
1377
  var n = new Map((e == null ? [] : e).map(function (e) {
1378
1378
  return [e.blankId, e];
1379
1379
  }));
1380
1380
  return t.map(function (e) {
1381
- return C({}, kn(n.get(e), e));
1381
+ return C({}, An(n.get(e), e));
1382
1382
  });
1383
1383
  }
1384
- function jn(e) {
1384
+ function Mn(e) {
1385
1385
  return e && "answerOptionIds" in e ? e.answerOptionIds : [];
1386
1386
  }
1387
- function Mn(e, t, n, r) {
1387
+ function Nn(e, t, n, r) {
1388
1388
  var i = new Set(),
1389
1389
  a = new Set(),
1390
1390
  o = new Set(n);
@@ -1395,7 +1395,7 @@ function Mn(e, t, n, r) {
1395
1395
  return !t.includes(e) || i.has(e) ? !1 : (i.add(e), !0);
1396
1396
  });
1397
1397
  return {
1398
- answerOptionIds: jn(e).filter(function (e) {
1398
+ answerOptionIds: Mn(e).filter(function (e) {
1399
1399
  return !o.has(e) || !r && a.has(e) ? !1 : (a.add(e), !0);
1400
1400
  }),
1401
1401
  blankIds: n
@@ -1411,7 +1411,7 @@ function Mn(e, t, n, r) {
1411
1411
  };
1412
1412
  })));
1413
1413
  }
1414
- function Nn(e, t, n) {
1414
+ function Pn(e, t, n) {
1415
1415
  var r = new Map(e.filter(function (e) {
1416
1416
  return "answerOptionId" in e;
1417
1417
  }).map(function (e) {
@@ -1427,23 +1427,23 @@ function Nn(e, t, n) {
1427
1427
  };
1428
1428
  });
1429
1429
  }
1430
- function Pn(e) {
1431
- var t = fn(),
1430
+ function Fn(e) {
1431
+ var t = pn(),
1432
1432
  n = [].concat(_toConsumableArray(e.blanks), [t]);
1433
1433
  return C(C({}, e), {}, {
1434
- answers: A([].concat(_toConsumableArray(e.answers), [{
1435
- answerPools: [k()],
1434
+ answers: k([].concat(_toConsumableArray(e.answers), [{
1435
+ answerPools: [O()],
1436
1436
  blankIds: [t]
1437
1437
  }]), n),
1438
1438
  blanks: n
1439
1439
  });
1440
1440
  }
1441
- function Fn(e, t) {
1441
+ function In(e, t) {
1442
1442
  if (e.blanks.length <= 1) return e;
1443
1443
  var n = e.blanks.filter(function (e) {
1444
1444
  return e !== t;
1445
1445
  }),
1446
- r = A(e.answers.map(function (e) {
1446
+ r = k(e.answers.map(function (e) {
1447
1447
  return C(C({}, e), {}, {
1448
1448
  blankIds: e.blankIds.filter(function (e) {
1449
1449
  return e !== t;
@@ -1457,7 +1457,7 @@ function Fn(e, t) {
1457
1457
  blanks: n.length ? n : e.blanks
1458
1458
  });
1459
1459
  }
1460
- function A(e, t) {
1460
+ function k(e, t) {
1461
1461
  var n = new Set();
1462
1462
  return [].concat(_toConsumableArray(e.filter(function (e) {
1463
1463
  return "answerPools" in e;
@@ -1466,7 +1466,7 @@ function A(e, t) {
1466
1466
  return !t.includes(e) || n.has(e) ? !1 : (n.add(e), !0);
1467
1467
  });
1468
1468
  return {
1469
- answerPools: Ii("answerPools" in e ? e.answerPools : []),
1469
+ answerPools: Li("answerPools" in e ? e.answerPools : []),
1470
1470
  blankIds: r
1471
1471
  };
1472
1472
  }).filter(function (e) {
@@ -1475,12 +1475,12 @@ function A(e, t) {
1475
1475
  return !n.has(e);
1476
1476
  }).map(function (e) {
1477
1477
  return {
1478
- answerPools: [k()],
1478
+ answerPools: [O()],
1479
1479
  blankIds: [e]
1480
1480
  };
1481
1481
  })));
1482
1482
  }
1483
- function In(e) {
1483
+ function Ln(e) {
1484
1484
  return e.reduce(function (e, t, n) {
1485
1485
  return t.blankIds.length >= 2 && e.push({
1486
1486
  group: t,
@@ -1488,18 +1488,18 @@ function In(e) {
1488
1488
  }), e;
1489
1489
  }, []);
1490
1490
  }
1491
- function Ln(e, t, n) {
1491
+ function Rn(e, t, n) {
1492
1492
  var r = e.answers.find(function (e) {
1493
1493
  return e.blankIds.includes(t);
1494
1494
  }),
1495
1495
  i = e.answers.slice(n, n + 1)[0];
1496
1496
  return !i || i.blankIds.length < 2 || i.blankIds.includes(t) ? e : C(C({}, e), {}, {
1497
- answers: A(e.answers.map(function (e, r) {
1497
+ answers: k(e.answers.map(function (e, r) {
1498
1498
  return r === n ? C(C({}, e), {}, {
1499
- answerPools: Ii(e.answerPools),
1499
+ answerPools: Li(e.answerPools),
1500
1500
  blankIds: [].concat(_toConsumableArray(e.blankIds), [t])
1501
1501
  }) : C(C({}, e), {}, {
1502
- answerPools: Ii(e.answerPools),
1502
+ answerPools: Li(e.answerPools),
1503
1503
  blankIds: e.blankIds.filter(function (e) {
1504
1504
  return e !== t;
1505
1505
  })
@@ -1507,61 +1507,61 @@ function Ln(e, t, n) {
1507
1507
  }), e.blanks).map(function (e) {
1508
1508
  var n;
1509
1509
  return e.blankIds.includes(t) && e.blankIds.length > 1 ? C(C({}, e), {}, {
1510
- answerPools: i.answerPools.length > 0 ? Ii(i.answerPools) : Ii((n = r == null ? void 0 : r.answerPools) == null ? [] : n)
1510
+ answerPools: i.answerPools.length > 0 ? Li(i.answerPools) : Li((n = r == null ? void 0 : r.answerPools) == null ? [] : n)
1511
1511
  }) : e;
1512
1512
  })
1513
1513
  });
1514
1514
  }
1515
- function Rn(e, t, n) {
1515
+ function zn(e, t, n) {
1516
1516
  var r;
1517
1517
  if (t === n || !e.blanks.includes(t) || !e.blanks.includes(n)) return e;
1518
1518
  var i = e.answers.find(function (e) {
1519
1519
  return e.blankIds.includes(t);
1520
1520
  });
1521
1521
  return C(C({}, e), {}, {
1522
- answers: A([].concat(_toConsumableArray(e.answers.map(function (e) {
1522
+ answers: k([].concat(_toConsumableArray(e.answers.map(function (e) {
1523
1523
  return C(C({}, e), {}, {
1524
1524
  blankIds: e.blankIds.filter(function (e) {
1525
1525
  return e !== t && e !== n;
1526
1526
  })
1527
1527
  });
1528
1528
  })), [{
1529
- answerPools: Ii((r = i == null ? void 0 : i.answerPools) == null ? [] : r),
1529
+ answerPools: Li((r = i == null ? void 0 : i.answerPools) == null ? [] : r),
1530
1530
  blankIds: [t, n]
1531
1531
  }]), e.blanks)
1532
1532
  });
1533
1533
  }
1534
- function zn(e, t) {
1534
+ function Bn(e, t) {
1535
1535
  var n;
1536
1536
  var r = e.answers.find(function (e) {
1537
1537
  return e.blankIds.includes(t);
1538
1538
  });
1539
1539
  return C(C({}, e), {}, {
1540
- answers: A([].concat(_toConsumableArray(e.answers.map(function (e) {
1540
+ answers: k([].concat(_toConsumableArray(e.answers.map(function (e) {
1541
1541
  return C(C({}, e), {}, {
1542
1542
  blankIds: e.blankIds.filter(function (e) {
1543
1543
  return e !== t;
1544
1544
  })
1545
1545
  });
1546
1546
  })), [{
1547
- answerPools: Ii((n = r == null ? void 0 : r.answerPools) == null ? [] : n),
1547
+ answerPools: Li((n = r == null ? void 0 : r.answerPools) == null ? [] : n),
1548
1548
  blankIds: [t]
1549
1549
  }]), e.blanks)
1550
1550
  });
1551
1551
  }
1552
- function Bn(e, t, n) {
1552
+ function Vn(e, t, n) {
1553
1553
  return C(C({}, e), {}, {
1554
- answers: A(e.answers.map(function (e, r) {
1554
+ answers: k(e.answers.map(function (e, r) {
1555
1555
  return r === t ? C(C({}, e), {}, {
1556
- answerPools: Ii(n)
1556
+ answerPools: Li(n)
1557
1557
  }) : e;
1558
1558
  }), e.blanks)
1559
1559
  });
1560
1560
  }
1561
- function Vn(e) {
1562
- return er(e);
1561
+ function Hn(e) {
1562
+ return tr(e);
1563
1563
  }
1564
- function Hn(e, t, n) {
1564
+ function Un(e, t, n) {
1565
1565
  return C(C({}, e), {}, {
1566
1566
  options: e.options.map(function (e, r) {
1567
1567
  return r === t ? C(C({}, e), {}, {
@@ -1572,7 +1572,7 @@ function Hn(e, t, n) {
1572
1572
  })
1573
1573
  });
1574
1574
  }
1575
- function Un(e, t) {
1575
+ function Wn(e, t) {
1576
1576
  if (!e.options[t] || e.options.length <= 1) return e;
1577
1577
  var n = e.options.filter(function (e, n) {
1578
1578
  return n !== t;
@@ -1582,27 +1582,27 @@ function Un(e, t) {
1582
1582
  options: n
1583
1583
  });
1584
1584
  }
1585
- function Wn(e, t, n) {
1585
+ function Gn(e, t, n) {
1586
1586
  return Fe(e, t, n);
1587
1587
  }
1588
- function Gn(e) {
1588
+ function Kn(e) {
1589
1589
  var t = [].concat(_toConsumableArray(e.columns), [He(e.columns)]);
1590
1590
  return C(C({}, e), {}, {
1591
1591
  columns: t,
1592
1592
  options: e.options.map(function (e) {
1593
1593
  return C(C({}, e), {}, {
1594
- cells: [].concat(_toConsumableArray(e.cells), [k()])
1594
+ cells: [].concat(_toConsumableArray(e.cells), [O()])
1595
1595
  });
1596
1596
  })
1597
1597
  });
1598
1598
  }
1599
- function Kn(e, t) {
1599
+ function qn(e, t) {
1600
1600
  return Pe(e, t);
1601
1601
  }
1602
- function qn(e) {
1603
- return er(e);
1602
+ function Jn(e) {
1603
+ return tr(e);
1604
1604
  }
1605
- function Jn(e, t) {
1605
+ function Yn(e, t) {
1606
1606
  if (!e.options[t] || e.options.length <= 1) return e;
1607
1607
  var n = e.options.filter(function (e, n) {
1608
1608
  return n !== t;
@@ -1612,7 +1612,7 @@ function Jn(e, t) {
1612
1612
  options: n
1613
1613
  });
1614
1614
  }
1615
- function Yn(e, t, n, r) {
1615
+ function Xn(e, t, n, r) {
1616
1616
  return C(C({}, e), {}, {
1617
1617
  options: e.options.map(function (e, i) {
1618
1618
  return i === t ? C(C({}, e), {}, {
@@ -1623,7 +1623,7 @@ function Yn(e, t, n, r) {
1623
1623
  })
1624
1624
  });
1625
1625
  }
1626
- function Xn(e, t, n) {
1626
+ function Zn(e, t, n) {
1627
1627
  return C(C({}, e), {}, {
1628
1628
  columns: e.columns.map(function (e, r) {
1629
1629
  return r === t ? C(C({}, e), {}, {
@@ -1632,8 +1632,8 @@ function Xn(e, t, n) {
1632
1632
  })
1633
1633
  });
1634
1634
  }
1635
- function Zn(e, t, n) {
1636
- $n(e);
1635
+ function Qn(e, t, n) {
1636
+ er(e);
1637
1637
  var r = Le(e.columns, t.config.renderer),
1638
1638
  i = Be(e.options, r);
1639
1639
  return C(C({}, e), {}, {
@@ -1644,58 +1644,58 @@ function Zn(e, t, n) {
1644
1644
  options: i
1645
1645
  });
1646
1646
  }
1647
- function Qn(e, t, n) {
1647
+ function $n(e, t, n) {
1648
1648
  var r;
1649
1649
  return {
1650
1650
  cells: e.cells,
1651
- marker: Xt(n, t),
1651
+ marker: Zt(n, t),
1652
1652
  option: e,
1653
1653
  optionId: e.id,
1654
1654
  optionIndex: t,
1655
- standardContent: (r = e.cells[0]) == null ? k() : r
1655
+ standardContent: (r = e.cells[0]) == null ? O() : r
1656
1656
  };
1657
1657
  }
1658
- function $n(e) {
1658
+ function er(e) {
1659
1659
  var t = e,
1660
1660
  n = t.answers;
1661
1661
  if (!n || !Array.isArray(n.optionIds) || !Array.isArray(t.columns) || !Array.isArray(t.options)) throw Error("Invalid choice content shape. Expected columns, options, and answers.optionIds.");
1662
1662
  }
1663
- function er(e) {
1663
+ function tr(e) {
1664
1664
  return C(C({}, e), {}, {
1665
1665
  options: [].concat(_toConsumableArray(e.options), [ze(e.options, e.columns)])
1666
1666
  });
1667
1667
  }
1668
- function tr(e, t, n) {
1669
- var r = Xr(e.columns, t);
1668
+ function nr(e, t, n) {
1669
+ var r = Zr(e.columns, t);
1670
1670
  return C(C({}, e), {}, {
1671
- answers: n ? ri(e.answers, r) : {},
1671
+ answers: n ? ii(e.answers, r) : {},
1672
1672
  columns: r
1673
1673
  });
1674
1674
  }
1675
- function nr(e) {
1675
+ function rr(e) {
1676
1676
  if (e.columns.length >= Je.max) return e;
1677
1677
  var t = e.columns.length;
1678
1678
  return C(C({}, e), {}, {
1679
- columns: [].concat(_toConsumableArray(e.columns), [ti($r(t))])
1679
+ columns: [].concat(_toConsumableArray(e.columns), [ni(ei(t))])
1680
1680
  });
1681
1681
  }
1682
- function rr(e, t) {
1682
+ function ir(e, t) {
1683
1683
  if (e.columns.length <= Je.min) return e;
1684
1684
  var n = e.columns.filter(function (e) {
1685
1685
  return e.columnId !== t;
1686
1686
  });
1687
1687
  return C(C({}, e), {}, {
1688
- answers: ri(e.answers, n),
1688
+ answers: ii(e.answers, n),
1689
1689
  columns: n
1690
1690
  });
1691
1691
  }
1692
- function ir(e, t, n) {
1693
- return gr(e, t, n);
1694
- }
1695
- function ar(e, t) {
1696
- return fr(e, t);
1692
+ function ar(e, t, n) {
1693
+ return _r(e, t, n);
1697
1694
  }
1698
1695
  function or(e, t) {
1696
+ return pr(e, t);
1697
+ }
1698
+ function sr(e, t) {
1699
1699
  var n = e.columns.map(function (e) {
1700
1700
  return e.items.length <= 1 ? e : C(C({}, e), {}, {
1701
1701
  items: e.items.filter(function (e) {
@@ -1704,42 +1704,42 @@ function or(e, t) {
1704
1704
  });
1705
1705
  });
1706
1706
  return C(C({}, e), {}, {
1707
- answers: ri(e.answers, n),
1707
+ answers: ii(e.answers, n),
1708
1708
  columns: n
1709
1709
  });
1710
1710
  }
1711
- function sr(e, t, n) {
1712
- return _r(e, t, n);
1713
- }
1714
1711
  function cr(e, t, n) {
1715
- return nt(e, t, n);
1712
+ return vr(e, t, n);
1716
1713
  }
1717
1714
  function lr(e, t, n) {
1718
- var r = ii(e.columns, t);
1715
+ return nt(e, t, n);
1716
+ }
1717
+ function ur(e, t, n) {
1718
+ var r = ai(e.columns, t);
1719
1719
  return C(C({}, e), {}, {
1720
- answers: n ? si(e.answers, r) : {},
1720
+ answers: n ? ci(e.answers, r) : {},
1721
1721
  columns: r
1722
1722
  });
1723
1723
  }
1724
- function ur(e, t, n) {
1725
- return gr(e, t, n);
1726
- }
1727
- function dr(e, t) {
1728
- return fr(e, t);
1724
+ function dr(e, t, n) {
1725
+ return _r(e, t, n);
1729
1726
  }
1730
1727
  function fr(e, t) {
1728
+ return pr(e, t);
1729
+ }
1730
+ function pr(e, t) {
1731
1731
  return C(C({}, e), {}, {
1732
1732
  columns: e.columns.map(function (n) {
1733
1733
  return n.columnId === t ? C(C({}, n), {}, {
1734
1734
  items: [].concat(_toConsumableArray(n.items), [{
1735
- content: k(),
1736
- itemId: _(void 0, new Set(mi(e.columns)))
1735
+ content: O(),
1736
+ itemId: _(void 0, new Set(hi(e.columns)))
1737
1737
  }])
1738
1738
  }) : n;
1739
1739
  })
1740
1740
  });
1741
1741
  }
1742
- function pr(e, t) {
1742
+ function mr(e, t) {
1743
1743
  var n = e.columns.map(function (e) {
1744
1744
  return e.items.length <= 1 ? e : C(C({}, e), {}, {
1745
1745
  items: e.items.filter(function (e) {
@@ -1748,17 +1748,17 @@ function pr(e, t) {
1748
1748
  });
1749
1749
  });
1750
1750
  return C(C({}, e), {}, {
1751
- answers: si(e.answers, n),
1751
+ answers: ci(e.answers, n),
1752
1752
  columns: n
1753
1753
  });
1754
1754
  }
1755
- function mr(e, t, n) {
1756
- return _r(e, t, n);
1757
- }
1758
1755
  function hr(e, t, n) {
1759
- return dt(e, t, n);
1756
+ return vr(e, t, n);
1760
1757
  }
1761
1758
  function gr(e, t, n) {
1759
+ return dt(e, t, n);
1760
+ }
1761
+ function _r(e, t, n) {
1762
1762
  return C(C({}, e), {}, {
1763
1763
  columns: e.columns.map(function (e) {
1764
1764
  return e.columnId === t ? C(C({}, e), {}, {
@@ -1767,7 +1767,7 @@ function gr(e, t, n) {
1767
1767
  })
1768
1768
  });
1769
1769
  }
1770
- function _r(e, t, n) {
1770
+ function vr(e, t, n) {
1771
1771
  return C(C({}, e), {}, {
1772
1772
  columns: e.columns.map(function (e) {
1773
1773
  return C(C({}, e), {}, {
@@ -1780,23 +1780,23 @@ function _r(e, t, n) {
1780
1780
  })
1781
1781
  });
1782
1782
  }
1783
- function vr(e, t) {
1784
- var n = Kr(e.categories),
1785
- r = qr(e.items);
1783
+ function yr(e, t) {
1784
+ var n = qr(e.categories),
1785
+ r = Jr(e.items);
1786
1786
  return C(C({}, e), {}, {
1787
1787
  answers: t ? Ge(e.answers, n, r) : {},
1788
1788
  categories: n,
1789
1789
  items: r
1790
1790
  });
1791
1791
  }
1792
- function yr(e) {
1792
+ function br(e) {
1793
1793
  return C(C({}, e), {}, {
1794
- categories: [].concat(_toConsumableArray(e.categories), [Jr(e.categories.length, new Set(e.categories.map(function (e) {
1794
+ categories: [].concat(_toConsumableArray(e.categories), [Yr(e.categories.length, new Set(e.categories.map(function (e) {
1795
1795
  return e.id;
1796
1796
  })))])
1797
1797
  });
1798
1798
  }
1799
- function br(e, t) {
1799
+ function xr(e, t) {
1800
1800
  if (e.categories.length <= 1) return e;
1801
1801
  var n = e.categories.filter(function (e) {
1802
1802
  return e.id !== t;
@@ -1806,7 +1806,7 @@ function br(e, t) {
1806
1806
  categories: n
1807
1807
  });
1808
1808
  }
1809
- function xr(e, t, n) {
1809
+ function Sr(e, t, n) {
1810
1810
  return C(C({}, e), {}, {
1811
1811
  categories: e.categories.map(function (e) {
1812
1812
  return e.id === t ? C(C({}, e), {}, {
@@ -1815,14 +1815,14 @@ function xr(e, t, n) {
1815
1815
  })
1816
1816
  });
1817
1817
  }
1818
- function Sr(e) {
1818
+ function Cr(e) {
1819
1819
  return C(C({}, e), {}, {
1820
- items: [].concat(_toConsumableArray(e.items), [Yr(e.items.length, new Set(e.items.map(function (e) {
1820
+ items: [].concat(_toConsumableArray(e.items), [Xr(e.items.length, new Set(e.items.map(function (e) {
1821
1821
  return e.id;
1822
1822
  })))])
1823
1823
  });
1824
1824
  }
1825
- function Cr(e, t) {
1825
+ function wr(e, t) {
1826
1826
  if (e.items.length <= 1) return e;
1827
1827
  var n = e.items.filter(function (e) {
1828
1828
  return e.id !== t;
@@ -1832,7 +1832,7 @@ function Cr(e, t) {
1832
1832
  items: n
1833
1833
  });
1834
1834
  }
1835
- function wr(e, t, n) {
1835
+ function Tr(e, t, n) {
1836
1836
  return C(C({}, e), {}, {
1837
1837
  items: e.items.map(function (e) {
1838
1838
  return e.id === t ? C(C({}, e), {}, {
@@ -1841,27 +1841,27 @@ function wr(e, t, n) {
1841
1841
  })
1842
1842
  });
1843
1843
  }
1844
- function Tr(e, t, n) {
1844
+ function Er(e, t, n) {
1845
1845
  return Ke(e, t, n);
1846
1846
  }
1847
- function Er(e, t) {
1848
- var n = li(e.sortOptions);
1847
+ function Dr(e, t) {
1848
+ var n = ui(e.sortOptions);
1849
1849
  return C(C({}, e), {}, {
1850
- answers: t ? ui(e.answers, n) : [],
1850
+ answers: t ? di(e.answers, n) : [],
1851
1851
  sortOptions: n
1852
1852
  });
1853
1853
  }
1854
- function Dr(e, t) {
1855
- var n = di(_(void 0, new Set(e.sortOptions.map(function (e) {
1854
+ function Or(e, t) {
1855
+ var n = fi(_(void 0, new Set(e.sortOptions.map(function (e) {
1856
1856
  return e.id;
1857
1857
  }))));
1858
- return Er(C(C({}, e), {}, {
1858
+ return Dr(C(C({}, e), {}, {
1859
1859
  answers: [].concat(_toConsumableArray(e.answers), [n.id]),
1860
1860
  sortOptions: [].concat(_toConsumableArray(e.sortOptions), [n])
1861
1861
  }), t);
1862
1862
  }
1863
- function Or(e, t, n) {
1864
- return e.sortOptions.length <= 1 ? e : Er(C(C({}, e), {}, {
1863
+ function kr(e, t, n) {
1864
+ return e.sortOptions.length <= 1 ? e : Dr(C(C({}, e), {}, {
1865
1865
  answers: e.answers.filter(function (e) {
1866
1866
  return e !== t;
1867
1867
  }),
@@ -1870,8 +1870,8 @@ function Or(e, t, n) {
1870
1870
  })
1871
1871
  }), n);
1872
1872
  }
1873
- function kr(e, t, n, r) {
1874
- return Er(C(C({}, e), {}, {
1873
+ function Ar(e, t, n, r) {
1874
+ return Dr(C(C({}, e), {}, {
1875
1875
  sortOptions: e.sortOptions.map(function (e) {
1876
1876
  return e.id === t ? C(C({}, e), {}, {
1877
1877
  content: n
@@ -1879,8 +1879,8 @@ function kr(e, t, n, r) {
1879
1879
  })
1880
1880
  }), r);
1881
1881
  }
1882
- function Ar(e, t, n, r) {
1883
- var i = ui(e.answers, e.sortOptions),
1882
+ function jr(e, t, n, r) {
1883
+ var i = di(e.answers, e.sortOptions),
1884
1884
  a = i.indexOf(t),
1885
1885
  o = a + n;
1886
1886
  if (a < 0 || o < 0 || o >= i.length) return e;
@@ -1888,12 +1888,12 @@ function Ar(e, t, n, r) {
1888
1888
  _s$splice = s.splice(a, 1),
1889
1889
  _s$splice2 = _slicedToArray(_s$splice, 1),
1890
1890
  c = _s$splice2[0];
1891
- return s.splice(o, 0, c), Er(C(C({}, e), {}, {
1891
+ return s.splice(o, 0, c), Dr(C(C({}, e), {}, {
1892
1892
  answers: s
1893
1893
  }), r);
1894
1894
  }
1895
- function jr(e, t, n, r) {
1896
- var i = ui(e, t),
1895
+ function Mr(e, t, n, r) {
1896
+ var i = di(e, t),
1897
1897
  a = i.indexOf(n),
1898
1898
  o = a + r;
1899
1899
  if (a < 0 || o < 0 || o >= i.length) return i;
@@ -1903,142 +1903,142 @@ function jr(e, t, n, r) {
1903
1903
  c = _s$splice4[0];
1904
1904
  return s.splice(o, 0, c), s;
1905
1905
  }
1906
- var Mr = {
1907
- choice: Fr("choice"),
1908
- classification: Br,
1906
+ var Nr = {
1907
+ choice: Ir("choice"),
1908
+ classification: Vr,
1909
1909
  fill: function fill(e, t) {
1910
- return Hr(t);
1910
+ return Ur(t);
1911
1911
  },
1912
- inlineFill: Fr("inlineFill"),
1913
- judgement: Fr("judgement"),
1914
- lineConnect: Fr("lineConnect"),
1915
- matching: Fr("matching"),
1916
- ordering: zr,
1917
- richText: Lr,
1918
- textMarker: Rr,
1912
+ inlineFill: Ir("inlineFill"),
1913
+ judgement: Ir("judgement"),
1914
+ lineConnect: Ir("lineConnect"),
1915
+ matching: Ir("matching"),
1916
+ ordering: Br,
1917
+ richText: Rr,
1918
+ textMarker: zr,
1919
1919
  textResponse: function textResponse() {
1920
1920
  return {
1921
1921
  type: "textResponse"
1922
1922
  };
1923
1923
  },
1924
- wordBuilder: Fr("wordBuilder")
1924
+ wordBuilder: Ir("wordBuilder")
1925
1925
  },
1926
- Nr = {
1927
- commonMistake: Wr,
1928
- extensionExplanation: Wr,
1929
- keyInformation: Wr,
1930
- sampleAnswer: Wr,
1931
- scoringRule: Wr,
1932
- solvingHint: Wr,
1933
- solvingProcess: Wr,
1934
- solvingStrategy: Wr
1926
+ Pr = {
1927
+ commonMistake: Gr,
1928
+ extensionExplanation: Gr,
1929
+ keyInformation: Gr,
1930
+ sampleAnswer: Gr,
1931
+ scoringRule: Gr,
1932
+ solvingHint: Gr,
1933
+ solvingProcess: Gr,
1934
+ solvingStrategy: Gr
1935
1935
  };
1936
- function Pr(e, t) {
1937
- return Mr[e.type](e, t);
1936
+ function Fr(e, t) {
1937
+ return Nr[e.type](e, t);
1938
1938
  }
1939
- function Fr(e) {
1939
+ function Ir(e) {
1940
1940
  return function (t, n) {
1941
- return Vr(Ir(t, e), n);
1941
+ return Hr(Lr(t, e), n);
1942
1942
  };
1943
1943
  }
1944
- function Ir(e, t) {
1945
- return e.type !== t && Ht("question.elements.type", t, e.type), e;
1944
+ function Lr(e, t) {
1945
+ return e.type !== t && Ut("question.elements.type", t, e.type), e;
1946
1946
  }
1947
- function Lr() {
1947
+ function Rr() {
1948
1948
  return {
1949
- content: k(),
1949
+ content: O(),
1950
1950
  type: "richText"
1951
1951
  };
1952
1952
  }
1953
- function Rr() {
1953
+ function zr() {
1954
1954
  return {
1955
1955
  answers: [],
1956
- content: Wt(),
1956
+ content: Gt(),
1957
1957
  markers: [],
1958
1958
  type: "textMarker"
1959
1959
  };
1960
1960
  }
1961
- function zr(e, t) {
1962
- return Er({
1961
+ function Br(e, t) {
1962
+ return Dr({
1963
1963
  answers: [],
1964
1964
  sortOptions: [],
1965
1965
  type: "ordering"
1966
1966
  }, t);
1967
1967
  }
1968
- function Br(e, t) {
1969
- return vr({
1968
+ function Vr(e, t) {
1969
+ return yr({
1970
1970
  answers: {},
1971
1971
  categories: [],
1972
1972
  items: [],
1973
1973
  type: "classification"
1974
1974
  }, t);
1975
1975
  }
1976
- function Vr(e, t) {
1976
+ function Hr(e, t) {
1977
1977
  switch (e.type) {
1978
1978
  case "inlineFill":
1979
- return _n({
1979
+ return vn({
1980
1980
  answers: [],
1981
1981
  blanks: [],
1982
- content: k(),
1982
+ content: O(),
1983
1983
  type: "inlineFill"
1984
1984
  }, e, t);
1985
1985
  case "wordBuilder":
1986
1986
  {
1987
- var _n3 = fn();
1988
- return gn({
1987
+ var _n3 = pn();
1988
+ return _n({
1989
1989
  answers: {},
1990
1990
  blanks: [_n3],
1991
- candidateOptions: xn(e.config.builderMode),
1992
- content: On(_n3),
1991
+ candidateOptions: Sn(e.config.builderMode),
1992
+ content: kn(_n3),
1993
1993
  type: "wordBuilder"
1994
1994
  }, t, e);
1995
1995
  }
1996
1996
  case "choice":
1997
- return Gr(e);
1997
+ return Kr(e);
1998
1998
  case "judgement":
1999
1999
  return {
2000
2000
  answers: [],
2001
2001
  type: "judgement"
2002
2002
  };
2003
2003
  case "lineConnect":
2004
- return tr({
2004
+ return nr({
2005
2005
  answers: {},
2006
2006
  columns: [],
2007
2007
  type: "lineConnect"
2008
2008
  }, e, t);
2009
2009
  case "matching":
2010
- return lr({
2010
+ return ur({
2011
2011
  answers: {},
2012
2012
  columns: [],
2013
2013
  type: "matching"
2014
2014
  }, e, t);
2015
2015
  }
2016
2016
  }
2017
- function Hr(e) {
2017
+ function Ur(e) {
2018
2018
  var t = Array.from({
2019
- length: jt
2019
+ length: Mt
2020
2020
  }, function () {
2021
- return fn();
2021
+ return pn();
2022
2022
  });
2023
2023
  return {
2024
2024
  answers: e ? [{
2025
- answerPools: [k()],
2025
+ answerPools: [O()],
2026
2026
  blankIds: t
2027
2027
  }] : [],
2028
2028
  blanks: t,
2029
2029
  type: "fill"
2030
2030
  };
2031
2031
  }
2032
- function Ur(e) {
2033
- return Nr[e.type](e);
2034
- }
2035
2032
  function Wr(e) {
2033
+ return Pr[e.type](e);
2034
+ }
2035
+ function Gr(e) {
2036
2036
  return {
2037
- content: k(),
2037
+ content: O(),
2038
2038
  type: e.type
2039
2039
  };
2040
2040
  }
2041
- function Gr(e) {
2041
+ function Kr(e) {
2042
2042
  var t = Ie(e.config.renderer);
2043
2043
  return {
2044
2044
  answers: {
@@ -2049,7 +2049,7 @@ function Gr(e) {
2049
2049
  type: "choice"
2050
2050
  };
2051
2051
  }
2052
- function Kr(e) {
2052
+ function qr(e) {
2053
2053
  var t = new Set(),
2054
2054
  n = e.map(function (e) {
2055
2055
  return {
@@ -2058,12 +2058,12 @@ function Kr(e) {
2058
2058
  };
2059
2059
  });
2060
2060
  return n.length > 0 ? n : Array.from({
2061
- length: Nt
2061
+ length: Pt
2062
2062
  }, function (e, n) {
2063
- return Jr(n, t);
2063
+ return Yr(n, t);
2064
2064
  });
2065
2065
  }
2066
- function qr(e) {
2066
+ function Jr(e) {
2067
2067
  var t = new Set(),
2068
2068
  n = e.map(function (e) {
2069
2069
  return {
@@ -2072,81 +2072,81 @@ function qr(e) {
2072
2072
  };
2073
2073
  });
2074
2074
  return n.length > 0 ? n : Array.from({
2075
- length: Pt
2075
+ length: Ft
2076
2076
  }, function (e, n) {
2077
- return Yr(n, t);
2077
+ return Xr(n, t);
2078
2078
  });
2079
2079
  }
2080
- function Jr(e, t) {
2080
+ function Yr(e, t) {
2081
2081
  return {
2082
- content: k("\u5206\u7C7B ".concat(e + 1)),
2082
+ content: O("\u5206\u7C7B ".concat(e + 1)),
2083
2083
  id: _(void 0, t)
2084
2084
  };
2085
2085
  }
2086
- function Yr(e, t) {
2086
+ function Xr(e, t) {
2087
2087
  return {
2088
- content: k("\u5361\u7247 ".concat(e + 1)),
2088
+ content: O("\u5361\u7247 ".concat(e + 1)),
2089
2089
  id: _(void 0, t)
2090
2090
  };
2091
2091
  }
2092
- function Xr(e, t) {
2093
- var n = e.length > 0 ? e : Zr(t),
2092
+ function Zr(e, t) {
2093
+ var n = e.length > 0 ? e : Qr(t),
2094
2094
  r = new Set(),
2095
2095
  i = new Set(),
2096
- a = Qr(t);
2096
+ a = $r(t);
2097
2097
  return n.slice(0, Je.max).map(function (e, t) {
2098
2098
  var n, o;
2099
2099
  return {
2100
2100
  columnId: _(e.columnId, r),
2101
- items: ei(e.items, i),
2101
+ items: ti(e.items, i),
2102
2102
  labelStyle: at(e.labelStyle, (n = (o = a[t]) == null ? void 0 : o.labelStyle) == null ? "number" : n)
2103
2103
  };
2104
2104
  });
2105
2105
  }
2106
- function Zr(e) {
2107
- return Qr(e).map(function (e) {
2108
- return ti(e.labelStyle);
2106
+ function Qr(e) {
2107
+ return $r(e).map(function (e) {
2108
+ return ni(e.labelStyle);
2109
2109
  });
2110
2110
  }
2111
- function Qr(e) {
2111
+ function $r(e) {
2112
2112
  return rt(e.config.columns);
2113
2113
  }
2114
- function $r(e) {
2114
+ function ei(e) {
2115
2115
  var t, n;
2116
2116
  return (t = (n = rt([])[e]) == null ? void 0 : n.labelStyle) == null ? "number" : t;
2117
2117
  }
2118
- function ei(e, t) {
2118
+ function ti(e, t) {
2119
2119
  var n = e.map(function (e) {
2120
2120
  return {
2121
2121
  content: e.content,
2122
2122
  itemId: _(e.itemId, t)
2123
2123
  };
2124
2124
  });
2125
- return n.length > 0 ? n : ni(t);
2125
+ return n.length > 0 ? n : ri(t);
2126
2126
  }
2127
- function ti(e) {
2127
+ function ni(e) {
2128
2128
  var t = new Set();
2129
2129
  return {
2130
2130
  columnId: g(),
2131
- items: ni(t),
2131
+ items: ri(t),
2132
2132
  labelStyle: e
2133
2133
  };
2134
2134
  }
2135
- function ni(e) {
2135
+ function ri(e) {
2136
2136
  return Array.from({
2137
- length: Ft
2137
+ length: It
2138
2138
  }, function (t, n) {
2139
2139
  return {
2140
- content: k("\u8FDE\u7EBF\u9879 ".concat(n + 1)),
2140
+ content: O("\u8FDE\u7EBF\u9879 ".concat(n + 1)),
2141
2141
  itemId: _(void 0, e)
2142
2142
  };
2143
2143
  });
2144
2144
  }
2145
- function ri(e, t) {
2146
- return tt(e, pi(t));
2147
- }
2148
2145
  function ii(e, t) {
2149
- var n = e.length > 0 ? e : ai(t),
2146
+ return tt(e, mi(t));
2147
+ }
2148
+ function ai(e, t) {
2149
+ var n = e.length > 0 ? e : oi(t),
2150
2150
  r = new Set(),
2151
2151
  i = new Set(),
2152
2152
  a = ft(t.config.columns);
@@ -2154,50 +2154,50 @@ function ii(e, t) {
2154
2154
  var n, o;
2155
2155
  return {
2156
2156
  columnId: _(e.columnId, r),
2157
- items: ei(e.items, i),
2157
+ items: ti(e.items, i),
2158
2158
  labelStyle: at(e.labelStyle, (n = (o = a[t]) == null ? void 0 : o.labelStyle) == null ? "number" : n)
2159
2159
  };
2160
2160
  });
2161
2161
  }
2162
- function ai(e) {
2162
+ function oi(e) {
2163
2163
  return ft(e.config.columns).map(function (e) {
2164
- return oi(e.labelStyle);
2164
+ return si(e.labelStyle);
2165
2165
  });
2166
2166
  }
2167
- function oi(e) {
2167
+ function si(e) {
2168
2168
  var t = new Set();
2169
2169
  return {
2170
2170
  columnId: g(),
2171
2171
  items: Array.from({
2172
- length: Ft
2172
+ length: It
2173
2173
  }, function (e, n) {
2174
2174
  return {
2175
- content: k("\u5339\u914D\u9879 ".concat(n + 1)),
2175
+ content: O("\u5339\u914D\u9879 ".concat(n + 1)),
2176
2176
  itemId: _(void 0, t)
2177
2177
  };
2178
2178
  }),
2179
2179
  labelStyle: e
2180
2180
  };
2181
2181
  }
2182
- function si(e, t) {
2183
- return ut(e, pi(t));
2184
- }
2185
2182
  function ci(e, t) {
2183
+ return ut(e, mi(t));
2184
+ }
2185
+ function li(e, t) {
2186
2186
  var n = new Set(t);
2187
2187
  return e.filter(function (e, t, r) {
2188
2188
  return n.has(e) && r.indexOf(e) === t;
2189
2189
  });
2190
2190
  }
2191
- function li(e) {
2191
+ function ui(e) {
2192
2192
  var t = new Set(),
2193
2193
  n = (e == null ? [] : e).map(function (e) {
2194
- return di(_(e.id, t), e.content);
2194
+ return fi(_(e.id, t), e.content);
2195
2195
  }).filter(function (e) {
2196
2196
  return e.id.length > 0;
2197
2197
  });
2198
- return n.length > 0 ? n : fi();
2198
+ return n.length > 0 ? n : pi();
2199
2199
  }
2200
- function ui(e, t) {
2200
+ function di(e, t) {
2201
2201
  var n = t.map(function (e) {
2202
2202
  return e.id;
2203
2203
  }),
@@ -2209,36 +2209,36 @@ function ui(e, t) {
2209
2209
  return !i.includes(e);
2210
2210
  })));
2211
2211
  }
2212
- function di(e) {
2213
- var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : k();
2212
+ function fi(e) {
2213
+ var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : O();
2214
2214
  return {
2215
2215
  content: t,
2216
2216
  id: e
2217
2217
  };
2218
2218
  }
2219
- function fi() {
2219
+ function pi() {
2220
2220
  return ["\u6B65\u9AA4\u4E00", "\u6B65\u9AA4\u4E8C", "\u6B65\u9AA4\u4E09"].map(function (e) {
2221
- return di(g(), k(e));
2221
+ return fi(g(), O(e));
2222
2222
  });
2223
2223
  }
2224
- function pi(e) {
2224
+ function mi(e) {
2225
2225
  return e.reduce(function (e, t, n) {
2226
2226
  return t.items.forEach(function (t) {
2227
2227
  return e.set(t.itemId, n);
2228
2228
  }), e;
2229
2229
  }, new Map());
2230
2230
  }
2231
- function mi(e) {
2231
+ function hi(e) {
2232
2232
  return e.reduce(function (e, t) {
2233
2233
  return [].concat(_toConsumableArray(e), _toConsumableArray(t.items.map(function (e) {
2234
2234
  return e.itemId;
2235
2235
  })));
2236
2236
  }, []);
2237
2237
  }
2238
- function j(e) {
2238
+ function A(e) {
2239
2239
  return e.text.trim() === "";
2240
2240
  }
2241
- function hi(e) {
2241
+ function gi(e) {
2242
2242
  return [{
2243
2243
  children: [{
2244
2244
  text: e
@@ -2246,127 +2246,127 @@ function hi(e) {
2246
2246
  type: "paragraph"
2247
2247
  }];
2248
2248
  }
2249
- function gi(e) {
2249
+ function _i(e) {
2250
2250
  return e.map(function (e) {
2251
- return _i(e);
2251
+ return vi(e);
2252
2252
  }).filter(function (e) {
2253
2253
  return e.length > 0;
2254
2254
  }).join("\n");
2255
2255
  }
2256
- function _i(e) {
2257
- return xi(e) ? e.text : bi(e) ? e.type === "blank" ? "[".concat(yi(e, "label") || yi(e, "blankId") || "Blank", "]") : e.children.map(function (e) {
2258
- return _i(e);
2256
+ function vi(e) {
2257
+ return Si(e) ? e.text : xi(e) ? e.type === "blank" ? "[".concat(bi(e, "label") || bi(e, "blankId") || "Blank", "]") : e.children.map(function (e) {
2258
+ return vi(e);
2259
2259
  }).join("") : "";
2260
2260
  }
2261
- function vi(e, t) {
2261
+ function yi(e, t) {
2262
2262
  e.forEach(function (e) {
2263
- t(e), bi(e) && vi(e.children, t);
2263
+ t(e), xi(e) && yi(e.children, t);
2264
2264
  });
2265
2265
  }
2266
- function yi(e, t) {
2266
+ function bi(e, t) {
2267
2267
  var n = t === "blankId" ? e.blankId : e.label;
2268
2268
  return _typeof(n) == "string" ? n : "";
2269
2269
  }
2270
- function bi(e) {
2270
+ function xi(e) {
2271
2271
  return _typeof(e) == "object" && !!e && "type" in e && _typeof(e.type) == "string" && "children" in e && Array.isArray(e.children);
2272
2272
  }
2273
- function xi(e) {
2273
+ function Si(e) {
2274
2274
  return _typeof(e) == "object" && !!e && "text" in e && _typeof(e.text) == "string";
2275
2275
  }
2276
- function Si(e) {
2276
+ function Ci(e) {
2277
2277
  return Array.isArray(e) && e.length > 0;
2278
2278
  }
2279
- function Ci(t) {
2279
+ function wi(t) {
2280
2280
  var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [Dt];
2281
- return Si(t) ? (0, e.deserializeRichTextEditorJson)(t, {
2281
+ return Ci(t) ? (0, e.deserializeRichTextEditorJson)(t, {
2282
2282
  plugins: n
2283
- }) : hi("");
2284
- }
2285
- function wi(e) {
2286
- return e.type === "textResponse" ? !0 : e.type === "richText" ? j(e.content) : e.type === "textMarker" ? j(e.content) && e.markers.length === 0 : e.type === "classification" ? ji(e) : e.type === "fill" ? e.answers.every(Oi) : Ti(e);
2283
+ }) : gi("");
2287
2284
  }
2288
2285
  function Ti(e) {
2286
+ return e.type === "textResponse" ? !0 : e.type === "richText" ? A(e.content) : e.type === "textMarker" ? A(e.content) && e.markers.length === 0 : e.type === "classification" ? Mi(e) : e.type === "fill" ? e.answers.every(ki) : Ei(e);
2287
+ }
2288
+ function Ei(e) {
2289
2289
  switch (e.type) {
2290
2290
  case "inlineFill":
2291
- return Ei(e);
2292
- case "wordBuilder":
2293
2291
  return Di(e);
2292
+ case "wordBuilder":
2293
+ return Oi(e);
2294
2294
  case "choice":
2295
- return Ai(e);
2295
+ return ji(e);
2296
2296
  case "judgement":
2297
2297
  return e.answers.length === 0;
2298
2298
  case "lineConnect":
2299
- return Mi(e);
2299
+ return Ni(e);
2300
2300
  case "matching":
2301
- return Pi(e);
2302
- case "ordering":
2303
2301
  return Fi(e);
2302
+ case "ordering":
2303
+ return Ii(e);
2304
2304
  }
2305
2305
  }
2306
- function Ei(e) {
2306
+ function Di(e) {
2307
2307
  var t, n, r, i;
2308
- return j(e.content) && e.answers.every(Oi) && ((t = (n = e.candidateOptions) == null ? void 0 : n.every(function (e) {
2309
- return j(e.content);
2310
- })) == null ? !0 : t) && ((r = (i = e.blankOptionGroups) == null ? void 0 : i.every(ki)) == null ? !0 : r);
2308
+ return A(e.content) && e.answers.every(ki) && ((t = (n = e.candidateOptions) == null ? void 0 : n.every(function (e) {
2309
+ return A(e.content);
2310
+ })) == null ? !0 : t) && ((r = (i = e.blankOptionGroups) == null ? void 0 : i.every(Ai)) == null ? !0 : r);
2311
2311
  }
2312
- function Di(e) {
2313
- return j(e.content) && e.candidateOptions.every(function (e) {
2312
+ function Oi(e) {
2313
+ return A(e.content) && e.candidateOptions.every(function (e) {
2314
2314
  return e.trim() === "";
2315
2315
  }) && Object.values(e.answers).every(function (e) {
2316
2316
  return e.trim() === "";
2317
2317
  });
2318
2318
  }
2319
- function Oi(e) {
2320
- return "answerOptionIds" in e ? e.answerOptionIds.length === 0 : "answerOptionId" in e ? e.answerOptionId.length === 0 : e.answerPools.every(j);
2321
- }
2322
2319
  function ki(e) {
2320
+ return "answerOptionIds" in e ? e.answerOptionIds.length === 0 : "answerOptionId" in e ? e.answerOptionId.length === 0 : e.answerPools.every(A);
2321
+ }
2322
+ function Ai(e) {
2323
2323
  var t;
2324
2324
  return (t = e == null ? void 0 : e.options.every(function (e) {
2325
- return j(e.content);
2325
+ return A(e.content);
2326
2326
  })) == null ? !0 : t;
2327
2327
  }
2328
- function Ai(e) {
2328
+ function ji(e) {
2329
2329
  return e.answers.optionIds.length === 0 && e.options.every(function (e) {
2330
- return e.cells.every(j);
2330
+ return e.cells.every(A);
2331
2331
  });
2332
2332
  }
2333
- function ji(e) {
2333
+ function Mi(e) {
2334
2334
  return Object.keys(e.answers).length === 0 && e.categories.every(function (e) {
2335
- return j(e.content);
2335
+ return A(e.content);
2336
2336
  }) && e.items.every(function (e) {
2337
- return j(e.content);
2337
+ return A(e.content);
2338
2338
  });
2339
2339
  }
2340
- function Mi(e) {
2341
- return Ni(e);
2342
- }
2343
2340
  function Ni(e) {
2341
+ return Pi(e);
2342
+ }
2343
+ function Pi(e) {
2344
2344
  return Object.keys(e.answers).length === 0 && e.columns.every(function (e) {
2345
2345
  return e.items.every(function (e) {
2346
- return j(e.content);
2346
+ return A(e.content);
2347
2347
  });
2348
2348
  });
2349
2349
  }
2350
- function Pi(e) {
2351
- return Ni(e);
2352
- }
2353
2350
  function Fi(e) {
2354
- return e.answers.length === 0 && e.sortOptions.every(function (e) {
2355
- return j(e.content);
2356
- });
2351
+ return Pi(e);
2357
2352
  }
2358
2353
  function Ii(e) {
2359
- return e.length ? e : [k()];
2354
+ return e.answers.length === 0 && e.sortOptions.every(function (e) {
2355
+ return A(e.content);
2356
+ });
2360
2357
  }
2361
2358
  function Li(e) {
2359
+ return e.length ? e : [O()];
2360
+ }
2361
+ function Ri(e) {
2362
2362
  return e.type === "richText" ? {
2363
2363
  content: e.content,
2364
2364
  type: "richText"
2365
2365
  } : e.type === "textResponse" ? {
2366
2366
  type: "textResponse"
2367
2367
  } : e.type === "ordering" ? {
2368
- answers: ui(e.answers, e.sortOptions),
2369
- sortOptions: li(e.sortOptions),
2368
+ answers: di(e.answers, e.sortOptions),
2369
+ sortOptions: ui(e.sortOptions),
2370
2370
  type: "ordering"
2371
2371
  } : e.type === "classification" ? {
2372
2372
  answers: e.answers,
@@ -2377,12 +2377,12 @@ function Li(e) {
2377
2377
  answers: e.answers,
2378
2378
  blanks: e.blanks,
2379
2379
  type: "fill"
2380
- } : Ri(e);
2380
+ } : zi(e);
2381
2381
  }
2382
- function Ri(e) {
2382
+ function zi(e) {
2383
2383
  switch (e.type) {
2384
2384
  case "inlineFill":
2385
- return Ki(e);
2385
+ return qi(e);
2386
2386
  case "wordBuilder":
2387
2387
  return {
2388
2388
  answers: e.answers,
@@ -2392,7 +2392,7 @@ function Ri(e) {
2392
2392
  type: "wordBuilder"
2393
2393
  };
2394
2394
  case "choice":
2395
- return qi(e);
2395
+ return Ji(e);
2396
2396
  case "judgement":
2397
2397
  return {
2398
2398
  answers: e.answers,
@@ -2412,51 +2412,51 @@ function Ri(e) {
2412
2412
  };
2413
2413
  case "textMarker":
2414
2414
  return {
2415
- answers: ci(e.answers, e.markers),
2416
- content: Wt(e.content.text, e.content.json, e.content.html),
2415
+ answers: li(e.answers, e.markers),
2416
+ content: Gt(e.content.text, e.content.json, e.content.html),
2417
2417
  markers: e.markers,
2418
2418
  type: "textMarker"
2419
2419
  };
2420
2420
  }
2421
2421
  }
2422
- function zi(e, t, n) {
2422
+ function Bi(e, t, n) {
2423
2423
  switch (e.type) {
2424
2424
  case "choice":
2425
- return Bi(e, t, n);
2426
- case "wordBuilder":
2427
2425
  return Vi(e, t, n);
2428
- case "textMarker":
2426
+ case "wordBuilder":
2429
2427
  return Hi(e, t, n);
2430
- case "ordering":
2428
+ case "textMarker":
2431
2429
  return Ui(e, t, n);
2432
- case "classification":
2430
+ case "ordering":
2433
2431
  return Wi(e, t, n);
2432
+ case "classification":
2433
+ return Gi(e, t, n);
2434
2434
  default:
2435
2435
  return e;
2436
2436
  }
2437
2437
  }
2438
- function Bi(e, t, n) {
2439
- return t.type === "choice" ? Zn(e, t, n) : e;
2440
- }
2441
2438
  function Vi(e, t, n) {
2442
- return t.type === "wordBuilder" ? gn(e, n, t) : e;
2439
+ return t.type === "choice" ? Qn(e, t, n) : e;
2443
2440
  }
2444
2441
  function Hi(e, t, n) {
2445
- return t.type === "textMarker" ? hn(e, e.content, n) : e;
2442
+ return t.type === "wordBuilder" ? _n(e, n, t) : e;
2446
2443
  }
2447
2444
  function Ui(e, t, n) {
2448
- return t.type === "ordering" ? Er(e, n) : e;
2445
+ return t.type === "textMarker" ? gn(e, e.content, n) : e;
2449
2446
  }
2450
2447
  function Wi(e, t, n) {
2451
- return t.type === "classification" ? vr(e, n) : e;
2448
+ return t.type === "ordering" ? Dr(e, n) : e;
2452
2449
  }
2453
- function Gi(e) {
2450
+ function Gi(e, t, n) {
2451
+ return t.type === "classification" ? yr(e, n) : e;
2452
+ }
2453
+ function Ki(e) {
2454
2454
  return {
2455
2455
  content: e.content,
2456
2456
  type: e.type
2457
2457
  };
2458
2458
  }
2459
- function Ki(e) {
2459
+ function qi(e) {
2460
2460
  return C(C(C({
2461
2461
  answers: e.answers
2462
2462
  }, e.blankOptionGroups ? {
@@ -2470,7 +2470,7 @@ function Ki(e) {
2470
2470
  type: "inlineFill"
2471
2471
  });
2472
2472
  }
2473
- function qi(e) {
2473
+ function Ji(e) {
2474
2474
  return {
2475
2475
  answers: e.answers,
2476
2476
  columns: e.columns,
@@ -2478,30 +2478,30 @@ function qi(e) {
2478
2478
  type: "choice"
2479
2479
  };
2480
2480
  }
2481
- function Ji(e, t) {
2481
+ function Yi(e, t) {
2482
2482
  var n;
2483
- return (n = Qi(e, t)) == null ? void 0 : n.structure;
2483
+ return (n = $i(e, t)) == null ? void 0 : n.structure;
2484
2484
  }
2485
- function Yi(e, t) {
2485
+ function Xi(e, t) {
2486
2486
  return C(C({}, e), {}, {
2487
2487
  hasAnswer: t && e.hasAnswer
2488
2488
  });
2489
2489
  }
2490
- function Xi(e, t) {
2491
- return Ji(e, t.questionTypeKey);
2492
- }
2493
2490
  function Zi(e, t) {
2494
- return t !== null && e.questionTypeKey === t;
2491
+ return Yi(e, t.questionTypeKey);
2495
2492
  }
2496
2493
  function Qi(e, t) {
2494
+ return t !== null && e.questionTypeKey === t;
2495
+ }
2496
+ function $i(e, t) {
2497
2497
  return e.find(function (e) {
2498
- return Zi(e, t);
2498
+ return Qi(e, t);
2499
2499
  });
2500
2500
  }
2501
- function $i(e, t) {
2502
- return ea(e, t, "question");
2501
+ function ea(e, t) {
2502
+ return ta(e, t, "question");
2503
2503
  }
2504
- function ea(e, t, n) {
2504
+ function ta(e, t, n) {
2505
2505
  var r = t.filter(function (t) {
2506
2506
  return t.questionTypeKey === e.questionTypeKey;
2507
2507
  });
@@ -2509,35 +2509,35 @@ function ea(e, t, n) {
2509
2509
  var i;
2510
2510
  throw Error("\u9898\u76EE\u6570\u636E\u4E0E\u9898\u578B\u6A21\u677F\u4E0D\u4E00\u81F4\uFF0Cpath=".concat(n, ".questionTypeKey\uFF0Cexpected=\u552F\u4E00\u6A21\u677F\uFF0Cactual=").concat(r.length, "\uFF0CquestionTypeKey=").concat((i = e.questionTypeKey) == null ? "null" : i));
2511
2511
  }
2512
- var a = Qi(t, e.questionTypeKey);
2512
+ var a = $i(t, e.questionTypeKey);
2513
2513
  if (!a) throw Error("\u9898\u76EE\u6570\u636E\u4E0E\u9898\u578B\u6A21\u677F\u4E0D\u4E00\u81F4\uFF0Cpath=".concat(n, ".questionTypeKey"));
2514
- return C(C({}, zt(a.structure, e, n)), {}, {
2514
+ return C(C({}, Bt(a.structure, e, n)), {}, {
2515
2515
  children: e.children.map(function (e, r) {
2516
- return ea(e, t, "".concat(n, ".children[").concat(r, "]"));
2516
+ return ta(e, t, "".concat(n, ".children[").concat(r, "]"));
2517
2517
  })
2518
2518
  });
2519
2519
  }
2520
- var ta = {
2520
+ var na = {
2521
2521
  marker: "_marker_rlnj7_1"
2522
2522
  },
2523
- na = {
2523
+ ra = {
2524
2524
  marks: [_t(function (_ref35) {
2525
2525
  var e = _ref35.children,
2526
2526
  t = _ref35.leaf;
2527
- return xt(t) ? ra(e) : e;
2527
+ return xt(t) ? ia(e) : e;
2528
2528
  })]
2529
2529
  };
2530
- function ra(e) {
2530
+ function ia(e) {
2531
2531
  return (0, t.jsx)("span", {
2532
- className: ta.marker,
2532
+ className: na.marker,
2533
2533
  children: e
2534
2534
  });
2535
2535
  }
2536
- var ia = (0, n.createContext)(!1);
2537
- function aa() {
2538
- return (0, n.useContext)(ia);
2536
+ var aa = (0, n.createContext)(!1);
2537
+ function oa() {
2538
+ return (0, n.useContext)(aa);
2539
2539
  }
2540
- var oa = {
2540
+ var sa = {
2541
2541
  "en-US": {
2542
2542
  actions: {
2543
2543
  addAnswerGroup: "Add Answer Group",
@@ -2911,16 +2911,16 @@ var oa = {
2911
2911
  }
2912
2912
  }
2913
2913
  };
2914
- function sa() {
2914
+ function ca() {
2915
2915
  var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "zh-CN";
2916
- var _t3 = la(e);
2916
+ var _t3 = ua(e);
2917
2917
  return {
2918
2918
  t: function t(e, n) {
2919
- return ua(ca(_t3, e), n);
2919
+ return da(la(_t3, e), n);
2920
2920
  }
2921
2921
  };
2922
2922
  }
2923
- function ca(e, t) {
2923
+ function la(e, t) {
2924
2924
  var n = (t.startsWith("questionContentEditor.") ? t.slice(22) : t).split(".").reduce(function (e, t) {
2925
2925
  var n;
2926
2926
  return _typeof(e) == "object" && e ? (n = Object.entries(e).find(function (_ref36) {
@@ -2931,15 +2931,15 @@ function ca(e, t) {
2931
2931
  }, e);
2932
2932
  return _typeof(n) == "string" ? n : t;
2933
2933
  }
2934
- function la(e) {
2934
+ function ua(e) {
2935
2935
  switch (e) {
2936
2936
  case "en-US":
2937
- return oa["en-US"];
2937
+ return sa["en-US"];
2938
2938
  case "zh-CN":
2939
- return oa["zh-CN"];
2939
+ return sa["zh-CN"];
2940
2940
  }
2941
2941
  }
2942
- function ua(e) {
2942
+ function da(e) {
2943
2943
  var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2944
2944
  return Object.entries(t).reduce(function (e, _ref38) {
2945
2945
  var _ref39 = _slicedToArray(_ref38, 2),
@@ -2948,12 +2948,12 @@ function ua(e) {
2948
2948
  return e.split("{{".concat(t, "}}")).join(n == null ? "" : String(n));
2949
2949
  }, e);
2950
2950
  }
2951
- var da = {
2951
+ var fa = {
2952
2952
  root: "_root_1ojgr_1",
2953
2953
  "rich-text-root": "_rich-text-root_1ojgr_28",
2954
2954
  "rich-text-toolbar": "_rich-text-toolbar_1ojgr_37"
2955
2955
  },
2956
- M = {
2956
+ j = {
2957
2957
  button: "_button_8wkgm_1",
2958
2958
  "button-small": "_button-small_8wkgm_35",
2959
2959
  "button-danger": "_button-danger_8wkgm_41",
@@ -2976,7 +2976,7 @@ var da = {
2976
2976
  "table-wrap": "_table-wrap_8wkgm_175",
2977
2977
  table: "_table_8wkgm_175"
2978
2978
  };
2979
- function fa(e, t) {
2979
+ function pa(e, t) {
2980
2980
  if (e == null) return {};
2981
2981
  var n = {};
2982
2982
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -2985,19 +2985,19 @@ function fa(e, t) {
2985
2985
  }
2986
2986
  return n;
2987
2987
  }
2988
- function pa(e, t) {
2988
+ function ma(e, t) {
2989
2989
  if (e == null) return {};
2990
2990
  var n,
2991
2991
  r,
2992
- i = fa(e, t);
2992
+ i = pa(e, t);
2993
2993
  if (Object.getOwnPropertySymbols) {
2994
2994
  var a = Object.getOwnPropertySymbols(e);
2995
2995
  for (r = 0; r < a.length; r++) n = a[r], t.includes(n) || {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
2996
2996
  }
2997
2997
  return i;
2998
2998
  }
2999
- var ma = ["children", "className", "danger", "icon", "size", "type"];
3000
- function N(e) {
2999
+ var ha = ["children", "className", "danger", "icon", "size", "type"];
3000
+ function M(e) {
3001
3001
  var n = e.children,
3002
3002
  r = e.className,
3003
3003
  _e$danger = e.danger,
@@ -3005,18 +3005,18 @@ function N(e) {
3005
3005
  a = e.icon,
3006
3006
  o = e.size,
3007
3007
  s = e.type,
3008
- c = pa(e, ma);
3008
+ c = ma(e, ha);
3009
3009
  return (0, t.jsxs)("button", C(C({
3010
- className: [M.button, i ? M["button-danger"] : "", o === "small" ? M["button-small"] : "", s === "dashed" ? M["button-dashed"] : "", r == null ? "" : r].filter(Boolean).join(" "),
3010
+ className: [j.button, i ? j["button-danger"] : "", o === "small" ? j["button-small"] : "", s === "dashed" ? j["button-dashed"] : "", r == null ? "" : r].filter(Boolean).join(" "),
3011
3011
  type: "button"
3012
3012
  }, c), {}, {
3013
3013
  children: [a ? (0, t.jsx)("span", {
3014
- className: M.icon,
3014
+ className: j.icon,
3015
3015
  children: a
3016
3016
  }) : null, n]
3017
3017
  }));
3018
3018
  }
3019
- function ha(_ref40) {
3019
+ function ga(_ref40) {
3020
3020
  var e = _ref40["aria-label"],
3021
3021
  _ref40$allowClear = _ref40.allowClear,
3022
3022
  n = _ref40$allowClear === void 0 ? !1 : _ref40$allowClear,
@@ -3032,7 +3032,7 @@ function ha(_ref40) {
3032
3032
  }
3033
3033
  return (0, t.jsxs)("select", {
3034
3034
  "aria-label": e,
3035
- className: [M.select, r == null ? "" : r].filter(Boolean).join(" "),
3035
+ className: [j.select, r == null ? "" : r].filter(Boolean).join(" "),
3036
3036
  disabled: i,
3037
3037
  onChange: l,
3038
3038
  value: c == null ? "" : c,
@@ -3048,7 +3048,7 @@ function ha(_ref40) {
3048
3048
  })]
3049
3049
  });
3050
3050
  }
3051
- function ga(_ref41) {
3051
+ function _a(_ref41) {
3052
3052
  var e = _ref41.cancelText,
3053
3053
  n = _ref41.children,
3054
3054
  r = _ref41.closeLabel,
@@ -3059,29 +3059,29 @@ function ga(_ref41) {
3059
3059
  c = _ref41.open,
3060
3060
  l = _ref41.title;
3061
3061
  return c ? (0, t.jsx)("div", {
3062
- className: M["modal-backdrop"],
3062
+ className: j["modal-backdrop"],
3063
3063
  role: "presentation",
3064
3064
  children: (0, t.jsxs)("section", {
3065
3065
  "aria-modal": "true",
3066
- className: M["modal-panel"],
3066
+ className: j["modal-panel"],
3067
3067
  role: "dialog",
3068
3068
  children: [(0, t.jsxs)("div", {
3069
- className: M["modal-head"],
3069
+ className: j["modal-head"],
3070
3070
  children: [(0, t.jsx)("strong", {
3071
- className: M["modal-title"],
3071
+ className: j["modal-title"],
3072
3072
  children: l
3073
- }), (0, t.jsx)(N, {
3073
+ }), (0, t.jsx)(M, {
3074
3074
  "aria-label": r,
3075
3075
  onClick: o,
3076
3076
  size: "small",
3077
3077
  children: "x"
3078
3078
  })]
3079
3079
  }), n, (0, t.jsxs)("div", {
3080
- className: M["modal-actions"],
3081
- children: [(0, t.jsx)(N, {
3080
+ className: j["modal-actions"],
3081
+ children: [(0, t.jsx)(M, {
3082
3082
  onClick: o,
3083
3083
  children: e
3084
- }), (0, t.jsx)(N, {
3084
+ }), (0, t.jsx)(M, {
3085
3085
  disabled: i == null ? void 0 : i.disabled,
3086
3086
  onClick: s,
3087
3087
  children: a
@@ -3090,15 +3090,15 @@ function ga(_ref41) {
3090
3090
  })
3091
3091
  }) : null;
3092
3092
  }
3093
- function _a(_ref42) {
3093
+ function va(_ref42) {
3094
3094
  var e = _ref42.onChange,
3095
3095
  n = _ref42.options,
3096
3096
  r = _ref42.value;
3097
3097
  return (0, t.jsx)("div", {
3098
- className: M["radio-group"],
3098
+ className: j["radio-group"],
3099
3099
  children: n.map(function (n) {
3100
3100
  return (0, t.jsxs)("label", {
3101
- className: M["radio-item"],
3101
+ className: j["radio-item"],
3102
3102
  children: [(0, t.jsx)("input", {
3103
3103
  checked: r === n.value,
3104
3104
  disabled: n.disabled,
@@ -3117,17 +3117,17 @@ function _a(_ref42) {
3117
3117
  })
3118
3118
  });
3119
3119
  }
3120
- var va = {
3121
- Group: _a
3120
+ var ya = {
3121
+ Group: va
3122
3122
  };
3123
- function ya(_ref43) {
3123
+ function ba(_ref43) {
3124
3124
  var e = _ref43.description;
3125
3125
  return (0, t.jsx)("div", {
3126
- className: M.empty,
3126
+ className: j.empty,
3127
3127
  children: e
3128
3128
  });
3129
3129
  }
3130
- function ba(_ref44) {
3130
+ function xa(_ref44) {
3131
3131
  var e = _ref44.children,
3132
3132
  n = _ref44.className,
3133
3133
  _ref44$size = _ref44.size,
@@ -3135,35 +3135,35 @@ function ba(_ref44) {
3135
3135
  _ref44$wrap = _ref44.wrap,
3136
3136
  i = _ref44$wrap === void 0 ? !1 : _ref44$wrap;
3137
3137
  return (0, t.jsx)("span", {
3138
- className: [M.space, i ? M["space-wrap"] : "", n == null ? "" : n].filter(Boolean).join(" "),
3138
+ className: [j.space, i ? j["space-wrap"] : "", n == null ? "" : n].filter(Boolean).join(" "),
3139
3139
  style: {
3140
3140
  gap: r
3141
3141
  },
3142
3142
  children: e
3143
3143
  });
3144
3144
  }
3145
- function xa(_ref45) {
3145
+ function Sa(_ref45) {
3146
3146
  var e = _ref45.children,
3147
3147
  n = _ref45.className,
3148
3148
  _ref45$strong = _ref45.strong,
3149
3149
  r = _ref45$strong === void 0 ? !1 : _ref45$strong,
3150
3150
  i = _ref45.type;
3151
3151
  return (0, t.jsx)("span", {
3152
- className: [M.text, r ? M.strong : "", i === "secondary" ? M.secondary : "", n == null ? "" : n].filter(Boolean).join(" "),
3152
+ className: [j.text, r ? j.strong : "", i === "secondary" ? j.secondary : "", n == null ? "" : n].filter(Boolean).join(" "),
3153
3153
  children: e
3154
3154
  });
3155
3155
  }
3156
- var P = {
3157
- Text: xa
3156
+ var N = {
3157
+ Text: Sa
3158
3158
  };
3159
- function Sa(_ref46) {
3159
+ function Ca(_ref46) {
3160
3160
  var e = _ref46.columns,
3161
3161
  n = _ref46.dataSource,
3162
3162
  r = _ref46.rowKey;
3163
3163
  return (0, t.jsx)("div", {
3164
- className: M["table-wrap"],
3164
+ className: j["table-wrap"],
3165
3165
  children: (0, t.jsxs)("table", {
3166
- className: M.table,
3166
+ className: j.table,
3167
3167
  children: [(0, t.jsx)("thead", {
3168
3168
  children: (0, t.jsx)("tr", {
3169
3169
  children: e.map(function (e) {
@@ -3179,9 +3179,9 @@ function Sa(_ref46) {
3179
3179
  children: n.map(function (n, i) {
3180
3180
  return (0, t.jsx)("tr", {
3181
3181
  children: e.map(function (e) {
3182
- var r = Ca(n, e.dataIndex);
3182
+ var r = wa(n, e.dataIndex);
3183
3183
  return (0, t.jsx)("td", {
3184
- children: e.render ? e.render(r, n, i) : wa(r)
3184
+ children: e.render ? e.render(r, n, i) : Ta(r)
3185
3185
  }, e.key);
3186
3186
  })
3187
3187
  }, r(n));
@@ -3190,7 +3190,7 @@ function Sa(_ref46) {
3190
3190
  })
3191
3191
  });
3192
3192
  }
3193
- function Ca(e, t) {
3193
+ function wa(e, t) {
3194
3194
  var n;
3195
3195
  if (!t || _typeof(e) != "object" || !e) return;
3196
3196
  var r = String(t);
@@ -3200,10 +3200,10 @@ function Ca(e, t) {
3200
3200
  return e === r;
3201
3201
  })) == null ? void 0 : n[1];
3202
3202
  }
3203
- function wa(e) {
3203
+ function Ta(e) {
3204
3204
  return _typeof(e) == "boolean" || _typeof(e) == "number" || _typeof(e) == "string" ? String(e) : "";
3205
3205
  }
3206
- var F = {
3206
+ var P = {
3207
3207
  field: "_field_1e4cl_1",
3208
3208
  toolbar: "_toolbar_1e4cl_6",
3209
3209
  "toolbar-button": "_toolbar-button_1e4cl_10",
@@ -3211,31 +3211,31 @@ var F = {
3211
3211
  compact: "_compact_1e4cl_45",
3212
3212
  textarea: "_textarea_1e4cl_61"
3213
3213
  };
3214
- function Ta(_ref49) {
3214
+ function Ea(_ref49) {
3215
3215
  var e = _ref49.toolbarExtra;
3216
3216
  return (0, t.jsxs)("div", {
3217
- className: F.toolbar,
3217
+ className: P.toolbar,
3218
3218
  role: "toolbar",
3219
3219
  children: [(0, t.jsx)("button", {
3220
- className: F["toolbar-button"],
3220
+ className: P["toolbar-button"],
3221
3221
  type: "button",
3222
3222
  children: "B"
3223
3223
  }), (0, t.jsx)("button", {
3224
- className: F["toolbar-button"],
3224
+ className: P["toolbar-button"],
3225
3225
  type: "button",
3226
3226
  children: "I"
3227
3227
  }), (0, t.jsx)("button", {
3228
- className: F["toolbar-button"],
3228
+ className: P["toolbar-button"],
3229
3229
  type: "button",
3230
3230
  children: "U"
3231
3231
  }), (0, t.jsx)("button", {
3232
- className: F["toolbar-button"],
3232
+ className: P["toolbar-button"],
3233
3233
  type: "button",
3234
3234
  children: "Table"
3235
3235
  }), e]
3236
3236
  });
3237
3237
  }
3238
- function Ea(_ref50) {
3238
+ function Da(_ref50) {
3239
3239
  var n = _ref50.apiRef,
3240
3240
  r = _ref50.ariaLabel,
3241
3241
  _ref50$compact = _ref50.compact,
@@ -3250,18 +3250,18 @@ function Ea(_ref50) {
3250
3250
  u = _ref50$toolbarMode === void 0 ? "auto" : _ref50$toolbarMode,
3251
3251
  d = _ref50.uploadImage,
3252
3252
  f = _ref50.value;
3253
- var p = Da({
3254
- hasSharedToolbar: aa(),
3253
+ var p = Oa({
3254
+ hasSharedToolbar: oa(),
3255
3255
  hasToolbarExtra: !!l,
3256
3256
  toolbarMode: u
3257
3257
  });
3258
- return Oa() ? (0, t.jsxs)("div", {
3259
- className: ka(i),
3260
- children: [(0, t.jsx)(Ta, {
3258
+ return ka() ? (0, t.jsxs)("div", {
3259
+ className: Aa(i),
3260
+ children: [(0, t.jsx)(Ea, {
3261
3261
  toolbarExtra: l
3262
3262
  }), (0, t.jsx)("textarea", {
3263
3263
  "aria-label": r,
3264
- className: "".concat(F.textarea, " rich-content-editor-surface"),
3264
+ className: "".concat(P.textarea, " rich-content-editor-surface"),
3265
3265
  onChange: function onChange(e) {
3266
3266
  return a(Te(e.target.value));
3267
3267
  },
@@ -3269,8 +3269,8 @@ function Ea(_ref50) {
3269
3269
  value: f.text
3270
3270
  })]
3271
3271
  }) : p ? (0, t.jsx)("div", {
3272
- className: ka(i),
3273
- children: ja({
3272
+ className: Aa(i),
3273
+ children: Ma({
3274
3274
  apiRef: n,
3275
3275
  ariaLabel: r,
3276
3276
  compact: i,
@@ -3279,7 +3279,7 @@ function Ea(_ref50) {
3279
3279
  value: f
3280
3280
  })
3281
3281
  }) : (0, t.jsx)("div", {
3282
- className: ka(i),
3282
+ className: Aa(i),
3283
3283
  children: (0, t.jsxs)(e.RichTextEditor.Root, {
3284
3284
  locale: o,
3285
3285
  plugins: c,
@@ -3313,7 +3313,7 @@ function Ea(_ref50) {
3313
3313
  }), (0, t.jsx)(e.RichTextEditor.Editor, {
3314
3314
  apiRef: n,
3315
3315
  "aria-label": r,
3316
- className: Aa(i),
3316
+ className: ja(i),
3317
3317
  initialValue: f.json,
3318
3318
  onChange: function onChange(e) {
3319
3319
  return a(Ee({
@@ -3325,22 +3325,22 @@ function Ea(_ref50) {
3325
3325
  })
3326
3326
  });
3327
3327
  }
3328
- function Da(_ref51) {
3328
+ function Oa(_ref51) {
3329
3329
  var e = _ref51.hasSharedToolbar,
3330
3330
  t = _ref51.hasToolbarExtra,
3331
3331
  n = _ref51.toolbarMode;
3332
3332
  return n === "auto" && e && !t;
3333
3333
  }
3334
- function Oa() {
3334
+ function ka() {
3335
3335
  return (typeof navigator === "undefined" ? "undefined" : _typeof(navigator)) < "u" && navigator.userAgent.toLowerCase().includes("jsdom");
3336
3336
  }
3337
- function ka(e) {
3338
- return e ? "".concat(F.field, " ").concat(F.compact, " rich-content-editor is-compact") : "".concat(F.field, " rich-content-editor");
3339
- }
3340
3337
  function Aa(e) {
3341
- return e ? "".concat(F.editor, " ").concat(F.compact, " rich-content-editor-surface is-compact") : "".concat(F.editor, " rich-content-editor-surface");
3338
+ return e ? "".concat(P.field, " ").concat(P.compact, " rich-content-editor is-compact") : "".concat(P.field, " rich-content-editor");
3342
3339
  }
3343
- function ja(_ref52) {
3340
+ function ja(e) {
3341
+ return e ? "".concat(P.editor, " ").concat(P.compact, " rich-content-editor-surface is-compact") : "".concat(P.editor, " rich-content-editor-surface");
3342
+ }
3343
+ function Ma(_ref52) {
3344
3344
  var n = _ref52.apiRef,
3345
3345
  r = _ref52.ariaLabel,
3346
3346
  i = _ref52.compact,
@@ -3350,7 +3350,7 @@ function ja(_ref52) {
3350
3350
  return (0, t.jsx)(e.RichTextEditor.Editor, {
3351
3351
  apiRef: n,
3352
3352
  "aria-label": r,
3353
- className: Aa(i),
3353
+ className: ja(i),
3354
3354
  initialValue: s.json,
3355
3355
  onChange: function onChange(e) {
3356
3356
  return a(Ee({
@@ -3360,7 +3360,7 @@ function ja(_ref52) {
3360
3360
  placeholder: o
3361
3361
  });
3362
3362
  }
3363
- function I(_ref53) {
3363
+ function F(_ref53) {
3364
3364
  var e = _ref53.controls,
3365
3365
  n = _ref53.disabled,
3366
3366
  r = _ref53.editorRef,
@@ -3373,7 +3373,7 @@ function I(_ref53) {
3373
3373
  return (0, t.jsxs)("div", {
3374
3374
  "aria-disabled": n,
3375
3375
  className: n ? "pointer-events-none opacity-70" : void 0,
3376
- children: [(0, t.jsx)(Ea, {
3376
+ children: [(0, t.jsx)(Da, {
3377
3377
  apiRef: r,
3378
3378
  ariaLabel: i,
3379
3379
  compact: c === "compact",
@@ -3387,7 +3387,7 @@ function I(_ref53) {
3387
3387
  }) : null]
3388
3388
  });
3389
3389
  }
3390
- function Ma(_ref54) {
3390
+ function Na(_ref54) {
3391
3391
  var e = _ref54.disabled,
3392
3392
  r = _ref54.hasAnswer,
3393
3393
  i = _ref54.item,
@@ -3403,30 +3403,30 @@ function Ma(_ref54) {
3403
3403
  _ref58 = _slicedToArray(_ref57, 2),
3404
3404
  d = _ref58[0],
3405
3405
  f = _ref58[1],
3406
- p = r ? A(i.answers, i.blanks) : [],
3407
- m = In(p);
3406
+ p = r ? k(i.answers, i.blanks) : [],
3407
+ m = Ln(p);
3408
3408
  function h(e) {
3409
3409
  a(C(C({}, e), {}, {
3410
- answers: r ? A(e.answers, e.blanks) : []
3410
+ answers: r ? k(e.answers, e.blanks) : []
3411
3411
  }));
3412
3412
  }
3413
3413
  function g(e, t, n) {
3414
- var r = Na(p, e);
3415
- r && h(Bn(C(C({}, i), {}, {
3414
+ var r = Pa(p, e);
3415
+ r && h(Vn(C(C({}, i), {}, {
3416
3416
  answers: p
3417
3417
  }), e, r.answerPools.map(function (e, r) {
3418
3418
  return r === t ? n : e;
3419
3419
  })));
3420
3420
  }
3421
3421
  function _(e) {
3422
- var t = Na(p, e);
3423
- t && h(Bn(C(C({}, i), {}, {
3422
+ var t = Pa(p, e);
3423
+ t && h(Vn(C(C({}, i), {}, {
3424
3424
  answers: p
3425
- }), e, [].concat(_toConsumableArray(t.answerPools), [k()])));
3425
+ }), e, [].concat(_toConsumableArray(t.answerPools), [O()])));
3426
3426
  }
3427
3427
  function v(e, t) {
3428
- var n = Na(p, e);
3429
- n && h(Bn(C(C({}, i), {}, {
3428
+ var n = Pa(p, e);
3429
+ n && h(Vn(C(C({}, i), {}, {
3430
3430
  answers: p
3431
3431
  }), e, n.answerPools.filter(function (e, n) {
3432
3432
  return n !== t;
@@ -3434,7 +3434,7 @@ function Ma(_ref54) {
3434
3434
  }
3435
3435
  function y(e, t) {
3436
3436
  if (t === "__single__") {
3437
- h(zn(C(C({}, i), {}, {
3437
+ h(Bn(C(C({}, i), {}, {
3438
3438
  answers: p
3439
3439
  }), e));
3440
3440
  return;
@@ -3444,7 +3444,7 @@ function Ma(_ref54) {
3444
3444
  return;
3445
3445
  }
3446
3446
  var n = Number(t.replace("group:", ""));
3447
- Number.isNaN(n) || h(Ln(C(C({}, i), {}, {
3447
+ Number.isNaN(n) || h(Rn(C(C({}, i), {}, {
3448
3448
  answers: p
3449
3449
  }), e, n));
3450
3450
  }
@@ -3465,7 +3465,7 @@ function Ma(_ref54) {
3465
3465
  u(null), f(null);
3466
3466
  }
3467
3467
  function ee() {
3468
- !l || !d || (h(Rn(C(C({}, i), {}, {
3468
+ !l || !d || (h(zn(C(C({}, i), {}, {
3469
3469
  answers: p
3470
3470
  }), l, d)), S());
3471
3471
  }
@@ -3477,7 +3477,7 @@ function Ma(_ref54) {
3477
3477
  className: "flex max-w-xl min-w-72 flex-1 items-start gap-2",
3478
3478
  children: [(0, t.jsx)("div", {
3479
3479
  className: "min-w-0 flex-1",
3480
- children: (0, t.jsx)(I, {
3480
+ children: (0, t.jsx)(F, {
3481
3481
  controls: o,
3482
3482
  disabled: e,
3483
3483
  label: c("questionContentEditor.blank.answerPool", {
@@ -3491,7 +3491,7 @@ function Ma(_ref54) {
3491
3491
  value: i,
3492
3492
  variant: "compact"
3493
3493
  })
3494
- }), r.answerPools.length > 1 ? (0, t.jsx)(N, {
3494
+ }), r.answerPools.length > 1 ? (0, t.jsx)(M, {
3495
3495
  "aria-label": c("questionContentEditor.actions.deleteAnswerPool"),
3496
3496
  danger: !0,
3497
3497
  disabled: e,
@@ -3501,7 +3501,7 @@ function Ma(_ref54) {
3501
3501
  children: c("questionContentEditor.actions.deleteAnswerPool")
3502
3502
  }) : null]
3503
3503
  }, a);
3504
- }), (0, t.jsx)(N, {
3504
+ }), (0, t.jsx)(M, {
3505
3505
  "aria-label": c("questionContentEditor.actions.addAnswerPool"),
3506
3506
  disabled: e,
3507
3507
  icon: "+",
@@ -3517,7 +3517,7 @@ function Ma(_ref54) {
3517
3517
  var s = b(n);
3518
3518
  return (0, t.jsxs)("section", {
3519
3519
  className: "flex min-w-0 flex-wrap items-center gap-4 rounded-md border border-slate-200 bg-white px-4 py-3",
3520
- children: [(0, t.jsx)(P.Text, {
3520
+ children: [(0, t.jsx)(N.Text, {
3521
3521
  className: "w-20",
3522
3522
  strong: !0,
3523
3523
  children: c("questionContentEditor.blank.shortLabel", {
@@ -3525,9 +3525,9 @@ function Ma(_ref54) {
3525
3525
  })
3526
3526
  }), (0, t.jsxs)("label", {
3527
3527
  className: "flex min-w-0 items-center gap-2",
3528
- children: [(0, t.jsx)(P.Text, {
3528
+ children: [(0, t.jsx)(N.Text, {
3529
3529
  children: c("questionContentEditor.blank.answers")
3530
- }), (0, t.jsx)(ha, {
3530
+ }), (0, t.jsx)(ga, {
3531
3531
  "aria-label": c("questionContentEditor.blank.answerSelectAria", {
3532
3532
  index: r + 1
3533
3533
  }),
@@ -3556,14 +3556,14 @@ function Ma(_ref54) {
3556
3556
  }), (0, t.jsx)("div", {
3557
3557
  className: "min-w-72 flex-1",
3558
3558
  children: w(a, o)
3559
- }), (0, t.jsx)(N, {
3559
+ }), (0, t.jsx)(M, {
3560
3560
  "aria-label": c("questionContentEditor.actions.deleteBlank", {
3561
3561
  index: r + 1
3562
3562
  }),
3563
3563
  danger: !0,
3564
3564
  disabled: e || i.blanks.length <= 1,
3565
3565
  onClick: function onClick() {
3566
- return h(Fn(C(C({}, i), {}, {
3566
+ return h(In(C(C({}, i), {}, {
3567
3567
  answers: p
3568
3568
  }), n));
3569
3569
  },
@@ -3580,16 +3580,16 @@ function Ma(_ref54) {
3580
3580
  className: "flex flex-wrap items-center justify-between gap-3",
3581
3581
  children: [(0, t.jsxs)("div", {
3582
3582
  className: "flex min-w-0 flex-wrap items-center gap-2",
3583
- children: [(0, t.jsx)(P.Text, {
3583
+ children: [(0, t.jsx)(N.Text, {
3584
3584
  strong: !0,
3585
3585
  children: c("questionContentEditor.blank.answerGroup", {
3586
3586
  index: a + 1
3587
3587
  })
3588
3588
  }), n.blankIds.map(function (n) {
3589
- return (0, t.jsx)(N, {
3589
+ return (0, t.jsx)(M, {
3590
3590
  disabled: e,
3591
3591
  onClick: function onClick() {
3592
- return h(zn(C(C({}, i), {}, {
3592
+ return h(Bn(C(C({}, i), {}, {
3593
3593
  answers: p
3594
3594
  }), n));
3595
3595
  },
@@ -3599,7 +3599,7 @@ function Ma(_ref54) {
3599
3599
  })
3600
3600
  }, n);
3601
3601
  })]
3602
- }), (0, t.jsx)(P.Text, {
3602
+ }), (0, t.jsx)(N.Text, {
3603
3603
  strong: !0,
3604
3604
  children: c("questionContentEditor.blank.sharedAnswer")
3605
3605
  })]
@@ -3612,7 +3612,7 @@ function Ma(_ref54) {
3612
3612
  var i = p.findIndex(function (e) {
3613
3613
  return e.blankIds.includes(n);
3614
3614
  }),
3615
- a = Na(p, i);
3615
+ a = Pa(p, i);
3616
3616
  if (!a) return t;
3617
3617
  if (a.blankIds.length > 1) {
3618
3618
  if (e.has(i)) return t;
@@ -3631,7 +3631,7 @@ function Ma(_ref54) {
3631
3631
  className: "flex min-w-0 flex-col gap-3",
3632
3632
  children: ne()
3633
3633
  })
3634
- }), (0, t.jsx)(ga, {
3634
+ }), (0, t.jsx)(_a, {
3635
3635
  cancelText: c("questionContentEditor.actions.cancel"),
3636
3636
  closeLabel: c("questionContentEditor.actions.close"),
3637
3637
  okButtonProps: {
@@ -3644,10 +3644,10 @@ function Ma(_ref54) {
3644
3644
  title: c("questionContentEditor.blank.createGroupTitle"),
3645
3645
  children: (0, t.jsxs)("div", {
3646
3646
  className: "flex min-w-0 flex-col gap-3",
3647
- children: [(0, t.jsx)(P.Text, {
3647
+ children: [(0, t.jsx)(N.Text, {
3648
3648
  type: "secondary",
3649
3649
  children: c("questionContentEditor.blank.createGroupDescription")
3650
- }), (0, t.jsx)(va.Group, {
3650
+ }), (0, t.jsx)(ya.Group, {
3651
3651
  onChange: function onChange(e) {
3652
3652
  return f(String(e.target.value));
3653
3653
  },
@@ -3665,7 +3665,7 @@ function Ma(_ref54) {
3665
3665
  })]
3666
3666
  }) : (0, t.jsx)("div", {
3667
3667
  className: "flex min-w-0 flex-col gap-4",
3668
- children: (0, t.jsx)(P.Text, {
3668
+ children: (0, t.jsx)(N.Text, {
3669
3669
  type: "secondary",
3670
3670
  children: c("questionContentEditor.blank.count", {
3671
3671
  count: i.blanks.length
@@ -3673,10 +3673,10 @@ function Ma(_ref54) {
3673
3673
  })
3674
3674
  });
3675
3675
  }
3676
- function Na(e, t) {
3676
+ function Pa(e, t) {
3677
3677
  return e.slice(t, t + 1)[0];
3678
3678
  }
3679
- var L = {
3679
+ var I = {
3680
3680
  board: "_board_1w0i4_1",
3681
3681
  panel: "_panel_1w0i4_7",
3682
3682
  "section-head": "_section-head_1w0i4_18",
@@ -3696,7 +3696,7 @@ var L = {
3696
3696
  select: "_select_1w0i4_119",
3697
3697
  "visually-hidden": "_visually-hidden_1w0i4_125"
3698
3698
  };
3699
- function Pa(_ref60) {
3699
+ function Fa(_ref60) {
3700
3700
  var e = _ref60.disabled,
3701
3701
  n = _ref60.hasAnswer,
3702
3702
  r = _ref60.item,
@@ -3704,61 +3704,61 @@ function Pa(_ref60) {
3704
3704
  a = _ref60.richTextControls,
3705
3705
  o = _ref60.translator;
3706
3706
  var s = o.t,
3707
- c = vr(r, n);
3707
+ c = yr(r, n);
3708
3708
  function l(e) {
3709
- i(vr(e, n));
3709
+ i(yr(e, n));
3710
3710
  }
3711
3711
  function u(e, t) {
3712
- l(xr(c, e, t));
3712
+ l(Sr(c, e, t));
3713
3713
  }
3714
3714
  function d(e, t) {
3715
- l(wr(c, e, t));
3715
+ l(Tr(c, e, t));
3716
3716
  }
3717
3717
  function f(e, t) {
3718
3718
  l(C(C({}, c), {}, {
3719
- answers: Tr(c.answers, e, t == null ? "" : t)
3719
+ answers: Er(c.answers, e, t == null ? "" : t)
3720
3720
  }));
3721
3721
  }
3722
3722
  return (0, t.jsxs)("div", {
3723
- className: L.board,
3723
+ className: I.board,
3724
3724
  children: [(0, t.jsxs)("section", {
3725
- className: L.panel,
3725
+ className: I.panel,
3726
3726
  children: [(0, t.jsxs)("div", {
3727
- className: L["section-head"],
3727
+ className: I["section-head"],
3728
3728
  children: [(0, t.jsxs)("div", {
3729
- className: L["title-wrap"],
3730
- children: [(0, t.jsx)(P.Text, {
3729
+ className: I["title-wrap"],
3730
+ children: [(0, t.jsx)(N.Text, {
3731
3731
  strong: !0,
3732
3732
  children: s("questionContentEditor.classification.categoryConfigTitle")
3733
- }), (0, t.jsx)(P.Text, {
3734
- className: L.count,
3733
+ }), (0, t.jsx)(N.Text, {
3734
+ className: I.count,
3735
3735
  type: "secondary",
3736
3736
  children: s("questionContentEditor.classification.categoryCount", {
3737
3737
  count: c.categories.length
3738
3738
  })
3739
3739
  })]
3740
- }), (0, t.jsx)(N, {
3740
+ }), (0, t.jsx)(M, {
3741
3741
  disabled: e,
3742
3742
  icon: "+",
3743
3743
  onClick: function onClick() {
3744
- return l(yr(c));
3744
+ return l(br(c));
3745
3745
  },
3746
3746
  size: "small",
3747
3747
  children: s("questionContentEditor.classification.addCategory")
3748
3748
  })]
3749
3749
  }), (0, t.jsx)("div", {
3750
- className: L["category-grid"],
3750
+ className: I["category-grid"],
3751
3751
  children: c.categories.map(function (n, r) {
3752
3752
  return (0, t.jsx)("article", {
3753
- className: L["category-card"],
3753
+ className: I["category-card"],
3754
3754
  children: (0, t.jsxs)("div", {
3755
- className: L["category-field-row"],
3755
+ className: I["category-field-row"],
3756
3756
  children: [(0, t.jsx)("span", {
3757
- className: L["field-label"],
3757
+ className: I["field-label"],
3758
3758
  children: s("questionContentEditor.classification.categoryName")
3759
3759
  }), (0, t.jsx)("div", {
3760
- className: L["field-control"],
3761
- children: (0, t.jsx)(I, {
3760
+ className: I["field-control"],
3761
+ children: (0, t.jsx)(F, {
3762
3762
  controls: a,
3763
3763
  disabled: e,
3764
3764
  label: "".concat(s("questionContentEditor.classification.category"), " ").concat(r + 1),
@@ -3768,13 +3768,13 @@ function Pa(_ref60) {
3768
3768
  value: n.content,
3769
3769
  variant: "compact"
3770
3770
  })
3771
- }), Fa({
3771
+ }), Ia({
3772
3772
  ariaLabel: s("questionContentEditor.classification.deleteCategory", {
3773
3773
  index: r + 1
3774
3774
  }),
3775
3775
  disabled: e || c.categories.length <= 1,
3776
3776
  onClick: function onClick() {
3777
- return l(br(c, n.id));
3777
+ return l(xr(c, n.id));
3778
3778
  }
3779
3779
  })]
3780
3780
  })
@@ -3782,42 +3782,42 @@ function Pa(_ref60) {
3782
3782
  })
3783
3783
  })]
3784
3784
  }), (0, t.jsxs)("section", {
3785
- className: L.panel,
3785
+ className: I.panel,
3786
3786
  children: [(0, t.jsxs)("div", {
3787
- className: L["section-head"],
3787
+ className: I["section-head"],
3788
3788
  children: [(0, t.jsxs)("div", {
3789
- className: L["title-wrap"],
3790
- children: [(0, t.jsx)(P.Text, {
3789
+ className: I["title-wrap"],
3790
+ children: [(0, t.jsx)(N.Text, {
3791
3791
  strong: !0,
3792
3792
  children: s("questionContentEditor.classification.cardLinkTitle")
3793
- }), (0, t.jsx)(P.Text, {
3794
- className: L.count,
3793
+ }), (0, t.jsx)(N.Text, {
3794
+ className: I.count,
3795
3795
  type: "secondary",
3796
3796
  children: s("questionContentEditor.classification.cardCount", {
3797
3797
  count: c.items.length
3798
3798
  })
3799
3799
  })]
3800
- }), (0, t.jsx)(N, {
3800
+ }), (0, t.jsx)(M, {
3801
3801
  disabled: e,
3802
3802
  icon: "+",
3803
3803
  onClick: function onClick() {
3804
- return l(Sr(c));
3804
+ return l(Cr(c));
3805
3805
  },
3806
3806
  size: "small",
3807
3807
  children: s("questionContentEditor.classification.addCard")
3808
3808
  })]
3809
3809
  }), (0, t.jsx)("div", {
3810
- className: L["card-grid"],
3810
+ className: I["card-grid"],
3811
3811
  children: c.items.map(function (r, i) {
3812
3812
  var o;
3813
3813
  var u = (o = c.answers[r.id]) == null ? "" : o;
3814
3814
  return (0, t.jsxs)("article", {
3815
- className: L["content-card"],
3815
+ className: I["content-card"],
3816
3816
  children: [(0, t.jsxs)("div", {
3817
- className: L["content-field-row"],
3817
+ className: I["content-field-row"],
3818
3818
  children: [(0, t.jsx)("div", {
3819
- className: L["field-control"],
3820
- children: (0, t.jsx)(I, {
3819
+ className: I["field-control"],
3820
+ children: (0, t.jsx)(F, {
3821
3821
  controls: a,
3822
3822
  disabled: e,
3823
3823
  label: "".concat(s("questionContentEditor.classification.card"), " ").concat(i + 1),
@@ -3827,24 +3827,24 @@ function Pa(_ref60) {
3827
3827
  value: r.content,
3828
3828
  variant: "compact"
3829
3829
  })
3830
- }), Fa({
3830
+ }), Ia({
3831
3831
  ariaLabel: s("questionContentEditor.classification.deleteCard", {
3832
3832
  index: i + 1
3833
3833
  }),
3834
3834
  disabled: e || c.items.length <= 1,
3835
3835
  onClick: function onClick() {
3836
- return l(Cr(c, r.id));
3836
+ return l(wr(c, r.id));
3837
3837
  }
3838
3838
  })]
3839
3839
  }), n ? (0, t.jsxs)("label", {
3840
- className: L["field-stack"],
3840
+ className: I["field-stack"],
3841
3841
  children: [(0, t.jsx)("span", {
3842
- className: L["answer-label"],
3842
+ className: I["answer-label"],
3843
3843
  children: s("questionContentEditor.classification.correctCategory")
3844
- }), (0, t.jsx)(ha, {
3844
+ }), (0, t.jsx)(ga, {
3845
3845
  allowClear: !0,
3846
3846
  "aria-label": "".concat(s("questionContentEditor.blank.correctAnswer"), " ").concat(i + 1),
3847
- className: L.select,
3847
+ className: I.select,
3848
3848
  disabled: e,
3849
3849
  onChange: function onChange(e) {
3850
3850
  return f(r.id, e);
@@ -3865,25 +3865,25 @@ function Pa(_ref60) {
3865
3865
  })]
3866
3866
  });
3867
3867
  }
3868
- function Fa(_ref61) {
3868
+ function Ia(_ref61) {
3869
3869
  var e = _ref61.ariaLabel,
3870
3870
  n = _ref61.disabled,
3871
3871
  r = _ref61.onClick;
3872
- return (0, t.jsx)(N, {
3872
+ return (0, t.jsx)(M, {
3873
3873
  "aria-label": e,
3874
- className: L["icon-button"],
3874
+ className: I["icon-button"],
3875
3875
  danger: !0,
3876
3876
  disabled: n,
3877
3877
  icon: "\xD7",
3878
3878
  onClick: r,
3879
3879
  size: "small",
3880
3880
  children: (0, t.jsx)("span", {
3881
- className: L["visually-hidden"],
3881
+ className: I["visually-hidden"],
3882
3882
  children: e
3883
3883
  })
3884
3884
  });
3885
3885
  }
3886
- function Ia(_ref62) {
3886
+ function La(_ref62) {
3887
3887
  var e = _ref62.disabled,
3888
3888
  r = _ref62.element,
3889
3889
  i = _ref62.hasAnswer,
@@ -3906,7 +3906,7 @@ function Ia(_ref62) {
3906
3906
  _ref68 = _slicedToArray(_ref67, 2),
3907
3907
  g = _ref68[0],
3908
3908
  _ = _ref68[1],
3909
- v = _n(a, r, i),
3909
+ v = vn(a, r, i),
3910
3910
  y = {
3911
3911
  answers: v.answers.filter(function (e) {
3912
3912
  return "answerPools" in e;
@@ -3916,7 +3916,7 @@ function Ia(_ref62) {
3916
3916
  };
3917
3917
  function b() {
3918
3918
  var e;
3919
- var t = fn();
3919
+ var t = pn();
3920
3920
  (e = d.current) == null || e.insertNode("blank", {
3921
3921
  blankId: t,
3922
3922
  label: u("questionContentEditor.blank.shortLabel", {
@@ -3925,7 +3925,7 @@ function Ia(_ref62) {
3925
3925
  });
3926
3926
  }
3927
3927
  function x(e) {
3928
- o(_n(e, r, i));
3928
+ o(vn(e, r, i));
3929
3929
  }
3930
3930
  function S(e) {
3931
3931
  e.type === "fill" && x(C(C({}, v), {}, {
@@ -3935,11 +3935,11 @@ function Ia(_ref62) {
3935
3935
  }
3936
3936
  function ee(e) {
3937
3937
  x(C(C({}, v), {}, {
3938
- candidateOptions: yn(e)
3938
+ candidateOptions: bn(e)
3939
3939
  }));
3940
3940
  }
3941
3941
  function w(e, t) {
3942
- var n = An(v.blankOptionGroups, v.blanks).map(function (n) {
3942
+ var n = jn(v.blankOptionGroups, v.blanks).map(function (n) {
3943
3943
  return n.blankId === e ? C(C({}, t), {}, {
3944
3944
  blankId: e
3945
3945
  }) : n;
@@ -3972,7 +3972,7 @@ function Ia(_ref62) {
3972
3972
  return !!e && n.indexOf(e) === t;
3973
3973
  });
3974
3974
  t >= i.answerOptionIds.length && n && p(function (e) {
3975
- return C(C({}, e), {}, _defineProperty({}, a, Math.max(0, La(e, a) - 1)));
3975
+ return C(C({}, e), {}, _defineProperty({}, a, Math.max(0, Ra(e, a) - 1)));
3976
3976
  }), ne(r.map(function (t, n) {
3977
3977
  return n === e ? C(C({}, t), {}, {
3978
3978
  answerOptionIds: o
@@ -3980,7 +3980,7 @@ function Ia(_ref62) {
3980
3980
  }));
3981
3981
  }
3982
3982
  function ie(e) {
3983
- var t = An(v.blankOptionGroups, v.blanks).find(function (t) {
3983
+ var t = jn(v.blankOptionGroups, v.blanks).find(function (t) {
3984
3984
  return t.blankId === e;
3985
3985
  });
3986
3986
  if (!t) throw Error("Missing option group for blank ".concat(e, "."));
@@ -4094,7 +4094,7 @@ function Ia(_ref62) {
4094
4094
  function E(e) {
4095
4095
  var t = te(e);
4096
4096
  p(function (e) {
4097
- return C(C({}, e), {}, _defineProperty({}, t, La(e, t) + 1));
4097
+ return C(C({}, e), {}, _defineProperty({}, t, Ra(e, t) + 1));
4098
4098
  });
4099
4099
  }
4100
4100
  function D(e, t) {
@@ -4137,14 +4137,14 @@ function Ia(_ref62) {
4137
4137
  return (0, t.jsx)("div", {
4138
4138
  className: "flex min-w-0 flex-col gap-2",
4139
4139
  children: n.map(function (i, a) {
4140
- var o = Xt("upperAlpha", a);
4140
+ var o = Zt("upperAlpha", a);
4141
4141
  return (0, t.jsxs)("div", {
4142
4142
  className: "grid min-w-0 grid-cols-[2rem_minmax(0,1fr)_auto] items-center gap-2",
4143
- children: [(0, t.jsx)(P.Text, {
4143
+ children: [(0, t.jsx)(N.Text, {
4144
4144
  className: "text-center",
4145
4145
  strong: !0,
4146
4146
  children: o
4147
- }), (0, t.jsx)(I, {
4147
+ }), (0, t.jsx)(F, {
4148
4148
  controls: s,
4149
4149
  disabled: e,
4150
4150
  label: u("questionContentEditor.fields.candidateOption", {
@@ -4156,7 +4156,7 @@ function Ia(_ref62) {
4156
4156
  placeholder: u("questionContentEditor.placeholders.candidateOption"),
4157
4157
  value: i.content,
4158
4158
  variant: "compact"
4159
- }), (0, t.jsx)(N, {
4159
+ }), (0, t.jsx)(M, {
4160
4160
  "aria-label": u("questionContentEditor.actions.deleteOption", {
4161
4161
  marker: o
4162
4162
  }),
@@ -4177,14 +4177,14 @@ function Ia(_ref62) {
4177
4177
  className: "flex min-w-0 flex-col gap-3 rounded-md border border-slate-200 bg-white px-4 py-3",
4178
4178
  children: [(0, t.jsxs)("div", {
4179
4179
  className: "flex flex-wrap items-center justify-between gap-2",
4180
- children: [(0, t.jsx)(P.Text, {
4180
+ children: [(0, t.jsx)(N.Text, {
4181
4181
  strong: !0,
4182
4182
  children: i
4183
- }), (0, t.jsx)(N, {
4183
+ }), (0, t.jsx)(M, {
4184
4184
  disabled: e,
4185
4185
  icon: "+",
4186
4186
  onClick: function onClick() {
4187
- return r([].concat(_toConsumableArray(n), [vn(_e(n, a))]));
4187
+ return r([].concat(_toConsumableArray(n), [yn(_e(n, a))]));
4188
4188
  },
4189
4189
  size: "small",
4190
4190
  children: u("questionContentEditor.actions.addCandidateOption")
@@ -4209,19 +4209,19 @@ function Ia(_ref62) {
4209
4209
  }
4210
4210
  function Se(n, r) {
4211
4211
  var i = te(n),
4212
- a = jn(n),
4212
+ a = Mn(n),
4213
4213
  o = a.length ? [].concat(_toConsumableArray(a), _toConsumableArray(Array.from({
4214
- length: La(f, i)
4214
+ length: Ra(f, i)
4215
4215
  }, function () {
4216
4216
  return "";
4217
4217
  }))) : Array.from({
4218
- length: La(f, i) + 1
4218
+ length: Ra(f, i) + 1
4219
4219
  }, function () {
4220
4220
  return "";
4221
4221
  }),
4222
4222
  s = xe(n),
4223
4223
  c = be().map(function (e, t) {
4224
- var n = Xt("upperAlpha", t),
4224
+ var n = Zt("upperAlpha", t),
4225
4225
  r = a.includes(e.optionId);
4226
4226
  return {
4227
4227
  disabled: s.has(e.optionId) && !r,
@@ -4234,7 +4234,7 @@ function Ia(_ref62) {
4234
4234
  return (0, t.jsxs)("div", {
4235
4235
  className: "flex min-w-0 flex-wrap items-center gap-3",
4236
4236
  children: [o.map(function (n, a) {
4237
- return (0, t.jsx)(ha, {
4237
+ return (0, t.jsx)(ga, {
4238
4238
  allowClear: !0,
4239
4239
  "aria-label": u("questionContentEditor.blank.answerPool", {
4240
4240
  groupIndex: r + 1,
@@ -4249,7 +4249,7 @@ function Ia(_ref62) {
4249
4249
  placeholder: u("questionContentEditor.placeholders.blankAnswer"),
4250
4250
  value: n || void 0
4251
4251
  }, "".concat(i, "-").concat(a));
4252
- }), (0, t.jsx)(N, {
4252
+ }), (0, t.jsx)(M, {
4253
4253
  "aria-label": u("questionContentEditor.actions.addAnswerPool"),
4254
4254
  disabled: e,
4255
4255
  icon: "+",
@@ -4262,7 +4262,7 @@ function Ia(_ref62) {
4262
4262
  });
4263
4263
  }
4264
4264
  function Ce(n) {
4265
- return (0, t.jsx)(N, {
4265
+ return (0, t.jsx)(M, {
4266
4266
  disabled: e,
4267
4267
  onClick: function onClick() {
4268
4268
  return he(n);
@@ -4280,13 +4280,13 @@ function Ia(_ref62) {
4280
4280
  className: "flex flex-wrap items-center justify-between gap-3",
4281
4281
  children: [(0, t.jsxs)("div", {
4282
4282
  className: "flex min-w-0 flex-wrap items-center gap-2",
4283
- children: [(0, t.jsx)(P.Text, {
4283
+ children: [(0, t.jsx)(N.Text, {
4284
4284
  strong: !0,
4285
4285
  children: u("questionContentEditor.blank.answerGroup", {
4286
4286
  index: r + 1
4287
4287
  })
4288
4288
  }), e.blankIds.map(Ce)]
4289
- }), (0, t.jsx)(P.Text, {
4289
+ }), (0, t.jsx)(N.Text, {
4290
4290
  strong: !0,
4291
4291
  children: u("questionContentEditor.blank.sharedAnswer")
4292
4292
  })]
@@ -4296,13 +4296,13 @@ function Ia(_ref62) {
4296
4296
  function Te(n, r, i, a, o) {
4297
4297
  return (0, t.jsxs)("section", {
4298
4298
  className: "flex min-w-0 flex-wrap items-center gap-4 rounded-md border border-slate-200 bg-white px-4 py-3",
4299
- children: [(0, t.jsx)(P.Text, {
4299
+ children: [(0, t.jsx)(N.Text, {
4300
4300
  className: "w-20",
4301
4301
  strong: !0,
4302
4302
  children: u("questionContentEditor.blank.shortLabel", {
4303
4303
  index: r + 1
4304
4304
  })
4305
- }), (0, t.jsx)(ha, {
4305
+ }), (0, t.jsx)(ga, {
4306
4306
  "aria-label": u("questionContentEditor.blank.answerAssignmentAria", {
4307
4307
  index: r + 1
4308
4308
  }),
@@ -4336,7 +4336,7 @@ function Ia(_ref62) {
4336
4336
  var e = se();
4337
4337
  return (0, t.jsxs)("div", {
4338
4338
  className: "flex min-w-0 flex-col gap-3",
4339
- children: [(0, t.jsx)(P.Text, {
4339
+ children: [(0, t.jsx)(N.Text, {
4340
4340
  strong: !0,
4341
4341
  children: u("questionContentEditor.blank.groupsTitle")
4342
4342
  }), Ee().map(function (_ref70) {
@@ -4380,7 +4380,7 @@ function Ia(_ref62) {
4380
4380
  var a = Oe(n.blankId),
4381
4381
  o = n.options.map(function (e, t) {
4382
4382
  return {
4383
- label: "".concat(Xt("upperAlpha", t), ". ").concat(e.content.text || u("questionContentEditor.fields.candidateOption", {
4383
+ label: "".concat(Zt("upperAlpha", t), ". ").concat(e.content.text || u("questionContentEditor.fields.candidateOption", {
4384
4384
  index: t + 1
4385
4385
  })),
4386
4386
  value: e.optionId
@@ -4390,7 +4390,7 @@ function Ia(_ref62) {
4390
4390
  className: "flex min-w-0 flex-col gap-3 rounded-md border border-slate-200 bg-white px-4 py-3",
4391
4391
  children: [(0, t.jsxs)("div", {
4392
4392
  className: "flex flex-wrap items-center justify-between gap-3",
4393
- children: [(0, t.jsx)(P.Text, {
4393
+ children: [(0, t.jsx)(N.Text, {
4394
4394
  strong: !0,
4395
4395
  children: u("questionContentEditor.blank.shortLabel", {
4396
4396
  index: r + 1
@@ -4399,10 +4399,10 @@ function Ia(_ref62) {
4399
4399
  className: "flex flex-wrap items-center gap-3",
4400
4400
  children: [i ? (0, t.jsxs)("label", {
4401
4401
  className: "flex items-center gap-2",
4402
- children: [(0, t.jsx)(P.Text, {
4402
+ children: [(0, t.jsx)(N.Text, {
4403
4403
  strong: !0,
4404
4404
  children: u("questionContentEditor.blank.correctAnswer")
4405
- }), (0, t.jsx)(ha, {
4405
+ }), (0, t.jsx)(ga, {
4406
4406
  "aria-label": u("questionContentEditor.blank.correctAnswerAria", {
4407
4407
  index: r + 1
4408
4408
  }),
@@ -4414,10 +4414,10 @@ function Ia(_ref62) {
4414
4414
  options: o,
4415
4415
  value: a.answerOptionId
4416
4416
  })]
4417
- }) : null, (0, t.jsx)(N, {
4417
+ }) : null, (0, t.jsx)(M, {
4418
4418
  disabled: e,
4419
4419
  onClick: function onClick() {
4420
- return Ae(n.blankId, [].concat(_toConsumableArray(n.options), [vn(_e(n.options, "".concat(n.blankId, "_option_")))]));
4420
+ return Ae(n.blankId, [].concat(_toConsumableArray(n.options), [yn(_e(n.options, "".concat(n.blankId, "_option_")))]));
4421
4421
  },
4422
4422
  size: "small",
4423
4423
  children: u("questionContentEditor.actions.addBlankOption")
@@ -4435,10 +4435,10 @@ function Ia(_ref62) {
4435
4435
  children: [ye((e = v.candidateOptions) == null ? [] : e, ee, u("questionContentEditor.fields.candidateOptions"), "option_"), i ? De() : null]
4436
4436
  });
4437
4437
  }
4438
- var n = An(v.blankOptionGroups, v.blanks);
4438
+ var n = jn(v.blankOptionGroups, v.blanks);
4439
4439
  return (0, t.jsxs)("div", {
4440
4440
  className: "flex min-w-0 flex-col gap-3",
4441
- children: [(0, t.jsx)(P.Text, {
4441
+ children: [(0, t.jsx)(N.Text, {
4442
4442
  strong: !0,
4443
4443
  children: u("questionContentEditor.blank.perBlankOptionsTitle")
4444
4444
  }), n.map(je)]
@@ -4448,10 +4448,10 @@ function Ia(_ref62) {
4448
4448
  className: "flex min-w-0 flex-col gap-4",
4449
4449
  children: [(0, t.jsxs)("div", {
4450
4450
  className: "flex min-w-0 flex-wrap items-center justify-between gap-2",
4451
- children: [(0, t.jsx)(P.Text, {
4451
+ children: [(0, t.jsx)(N.Text, {
4452
4452
  strong: !0,
4453
4453
  children: c
4454
- }), (0, t.jsx)(N, {
4454
+ }), (0, t.jsx)(M, {
4455
4455
  "aria-label": u("questionContentEditor.actions.insertInlineBlank"),
4456
4456
  disabled: e,
4457
4457
  icon: "+",
@@ -4459,24 +4459,24 @@ function Ia(_ref62) {
4459
4459
  size: "small",
4460
4460
  children: u("questionContentEditor.actions.insertInlineBlank")
4461
4461
  })]
4462
- }), (0, t.jsx)(I, {
4462
+ }), (0, t.jsx)(F, {
4463
4463
  controls: s,
4464
4464
  disabled: e,
4465
4465
  editorRef: d,
4466
4466
  label: u("questionContentEditor.fields.fillTextContent"),
4467
4467
  onChange: function onChange(e) {
4468
- o(pn(v, e, i, r));
4468
+ o(mn(v, e, i, r));
4469
4469
  },
4470
4470
  placeholder: u("questionContentEditor.placeholders.fillTextContent"),
4471
4471
  value: v.content
4472
- }), r.config.candidateMode === "none" ? (0, t.jsx)(Ma, {
4472
+ }), r.config.candidateMode === "none" ? (0, t.jsx)(Na, {
4473
4473
  disabled: e,
4474
4474
  hasAnswer: i,
4475
4475
  item: y,
4476
4476
  onChange: S,
4477
4477
  richTextControls: s,
4478
4478
  translator: l
4479
- }) : Me(), (0, t.jsx)(ga, {
4479
+ }) : Me(), (0, t.jsx)(_a, {
4480
4480
  cancelText: u("questionContentEditor.actions.cancel"),
4481
4481
  closeLabel: u("questionContentEditor.actions.close"),
4482
4482
  okButtonProps: {
@@ -4489,10 +4489,10 @@ function Ia(_ref62) {
4489
4489
  title: u("questionContentEditor.blank.createGroupTitle"),
4490
4490
  children: (0, t.jsxs)("div", {
4491
4491
  className: "flex min-w-0 flex-col gap-3",
4492
- children: [(0, t.jsx)(P.Text, {
4492
+ children: [(0, t.jsx)(N.Text, {
4493
4493
  type: "secondary",
4494
4494
  children: u("questionContentEditor.blank.createGroupDescription")
4495
- }), (0, t.jsx)(va.Group, {
4495
+ }), (0, t.jsx)(ya.Group, {
4496
4496
  onChange: function onChange(e) {
4497
4497
  return _(String(e.target.value));
4498
4498
  },
@@ -4503,7 +4503,7 @@ function Ia(_ref62) {
4503
4503
  })]
4504
4504
  });
4505
4505
  }
4506
- function La(e, t) {
4506
+ function Ra(e, t) {
4507
4507
  var n, r;
4508
4508
  return (n = (r = Object.entries(e).find(function (_ref71) {
4509
4509
  var _ref72 = _slicedToArray(_ref71, 1),
@@ -4511,7 +4511,7 @@ function La(e, t) {
4511
4511
  return e === t;
4512
4512
  })) == null ? void 0 : r[1]) == null ? 0 : n;
4513
4513
  }
4514
- function Ra(_ref73) {
4514
+ function za(_ref73) {
4515
4515
  var e = _ref73.disabled,
4516
4516
  n = _ref73.element,
4517
4517
  r = _ref73.hasAnswer,
@@ -4519,7 +4519,7 @@ function Ra(_ref73) {
4519
4519
  a = _ref73.onChange,
4520
4520
  o = _ref73.translator;
4521
4521
  var s = o.t,
4522
- c = en(n.config.judgeAnswerMode),
4522
+ c = tn(n.config.judgeAnswerMode),
4523
4523
  l = r ? i.answers.slice(0, 1) : [];
4524
4524
  function u(e) {
4525
4525
  a(C(C({}, i), {}, {
@@ -4547,29 +4547,29 @@ function Ra(_ref73) {
4547
4547
  children: n
4548
4548
  }, String(r));
4549
4549
  })
4550
- }) : (0, t.jsx)(P.Text, {
4550
+ }) : (0, t.jsx)(N.Text, {
4551
4551
  type: "secondary",
4552
4552
  children: s("questionContentEditor.judgement.noAnswer")
4553
4553
  })
4554
4554
  });
4555
4555
  }
4556
- function za() {
4556
+ function Ba() {
4557
4557
  for (var _len = arguments.length, e = new Array(_len), _key = 0; _key < _len; _key++) {
4558
4558
  e[_key] = arguments[_key];
4559
4559
  }
4560
4560
  return e.reduce(function (e, t) {
4561
- return [].concat(_toConsumableArray(e), _toConsumableArray(Ba(t)));
4561
+ return [].concat(_toConsumableArray(e), _toConsumableArray(Va(t)));
4562
4562
  }, []).join(" ");
4563
4563
  }
4564
- function Ba(e) {
4565
- return e ? Va(e) ? e.reduce(function (e, t) {
4566
- return [].concat(_toConsumableArray(e), _toConsumableArray(Ba(t)));
4564
+ function Va(e) {
4565
+ return e ? Ha(e) ? e.reduce(function (e, t) {
4566
+ return [].concat(_toConsumableArray(e), _toConsumableArray(Va(t)));
4567
4567
  }, []) : [e] : [];
4568
4568
  }
4569
- function Va(e) {
4569
+ function Ha(e) {
4570
4570
  return Array.isArray(e);
4571
4571
  }
4572
- function Ha(e, t) {
4572
+ function Ua(e, t) {
4573
4573
  var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Ye;
4574
4574
  var r = e.columns.reduce(function (e, t, n) {
4575
4575
  return t.items.forEach(function (t, r) {
@@ -4598,32 +4598,32 @@ function Ha(e, t) {
4598
4598
  }, []))) : e;
4599
4599
  }, []);
4600
4600
  }
4601
- function Ua(e, t, n) {
4601
+ function Wa(e, t, n) {
4602
4602
  return e.left - t.left + n + e.width / 2;
4603
4603
  }
4604
- function Wa(e, t, n) {
4604
+ function Ga(e, t, n) {
4605
4605
  return e.top - t.top + n + e.height / 2;
4606
4606
  }
4607
- function Ga(e, t, n) {
4607
+ function Ka(e, t, n) {
4608
4608
  return e.left - t.left + n;
4609
4609
  }
4610
- function Ka(e, t, n) {
4610
+ function qa(e, t, n) {
4611
4611
  return e.right - t.left + n;
4612
4612
  }
4613
- function qa(e, t) {
4613
+ function Ja(e, t) {
4614
4614
  e(function (e) {
4615
- return Ja(e, t) ? e : t;
4615
+ return Ya(e, t) ? e : t;
4616
4616
  });
4617
4617
  }
4618
- function Ja(e, t) {
4618
+ function Ya(e, t) {
4619
4619
  return (e == null ? void 0 : e.height) === t.height && e.width === t.width && e.lines.length === t.lines.length && e.lines.every(function (e, n) {
4620
- return Ya(e, t.lines[n]);
4620
+ return Xa(e, t.lines[n]);
4621
4621
  });
4622
4622
  }
4623
- function Ya(e, t) {
4623
+ function Xa(e, t) {
4624
4624
  return t !== void 0 && e.key === t.key && e.x1 === t.x1 && e.x2 === t.x2 && e.y1 === t.y1 && e.y2 === t.y2;
4625
4625
  }
4626
- var R = {
4626
+ var L = {
4627
4627
  board: "_board_1h4i1_1",
4628
4628
  columns: "_columns_1h4i1_9",
4629
4629
  column: "_column_1h4i1_9",
@@ -4635,7 +4635,7 @@ var R = {
4635
4635
  lines: "_lines_1h4i1_91",
4636
4636
  line: "_line_1h4i1_91"
4637
4637
  },
4638
- z = {
4638
+ R = {
4639
4639
  "connect-handle": "_connect-handle_1cqr2_1",
4640
4640
  marker: "_marker_1cqr2_19",
4641
4641
  "incoming-marker": "_incoming-marker_1cqr2_29",
@@ -4644,8 +4644,8 @@ var R = {
4644
4644
  "connect-button-connected": "_connect-button-connected_1cqr2_64",
4645
4645
  "connect-button-selected": "_connect-button-selected_1cqr2_70"
4646
4646
  },
4647
- Xa = ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"];
4648
- function Za(_ref77) {
4647
+ Za = ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"];
4648
+ function Qa(_ref77) {
4649
4649
  var e = _ref77.disabled,
4650
4650
  r = _ref77.element,
4651
4651
  i = _ref77.hasAnswer,
@@ -4664,7 +4664,7 @@ function Za(_ref77) {
4664
4664
  p = _ref81[1],
4665
4665
  m = (0, n.useRef)(null),
4666
4666
  h = (0, n.useRef)(new Map()),
4667
- g = tr(a, r, i),
4667
+ g = nr(a, r, i),
4668
4668
  _ = {
4669
4669
  gridTemplateColumns: "repeat(".concat(g.columns.length, ", minmax(16rem, 1fr))")
4670
4670
  },
@@ -4679,7 +4679,7 @@ function Za(_ref77) {
4679
4679
  });
4680
4680
  }, [g.answers, g.columns]),
4681
4681
  y = (0, n.useMemo)(function () {
4682
- return i ? Ha(g, g.answers) : [];
4682
+ return i ? Ua(g, g.answers) : [];
4683
4683
  }, [i, g]),
4684
4684
  b = (0, n.useCallback)(function () {
4685
4685
  var e = m.current;
@@ -4689,20 +4689,20 @@ function Za(_ref77) {
4689
4689
  }
4690
4690
  var t = e.getBoundingClientRect(),
4691
4691
  n = y.reduce(function (n, r) {
4692
- var i = h.current.get(ro(r.fromItemId, "outgoing")),
4693
- a = h.current.get(ro(r.toItemId, "incoming"));
4692
+ var i = h.current.get(io(r.fromItemId, "outgoing")),
4693
+ a = h.current.get(io(r.toItemId, "incoming"));
4694
4694
  if (!i || !a) return n;
4695
4695
  var o = i.getBoundingClientRect(),
4696
4696
  s = a.getBoundingClientRect();
4697
4697
  return [].concat(_toConsumableArray(n), [{
4698
4698
  key: r.key,
4699
- x1: Ua(o, t, e.scrollLeft),
4700
- x2: Ua(s, t, e.scrollLeft),
4701
- y1: Wa(o, t, e.scrollTop),
4702
- y2: Wa(s, t, e.scrollTop)
4699
+ x1: Wa(o, t, e.scrollLeft),
4700
+ x2: Wa(s, t, e.scrollLeft),
4701
+ y1: Ga(o, t, e.scrollTop),
4702
+ y2: Ga(s, t, e.scrollTop)
4703
4703
  }]);
4704
4704
  }, []);
4705
- qa(p, {
4705
+ Ja(p, {
4706
4706
  height: e.scrollHeight,
4707
4707
  lines: n,
4708
4708
  width: e.scrollWidth
@@ -4726,7 +4726,7 @@ function Za(_ref77) {
4726
4726
  }, [i, v, b]);
4727
4727
  function x(e, t) {
4728
4728
  return function (n) {
4729
- var r = ro(e, t);
4729
+ var r = io(e, t);
4730
4730
  if (n) {
4731
4731
  h.current.set(r, n);
4732
4732
  return;
@@ -4735,14 +4735,14 @@ function Za(_ref77) {
4735
4735
  };
4736
4736
  }
4737
4737
  function S(e) {
4738
- o(tr(e, r, i));
4738
+ o(nr(e, r, i));
4739
4739
  }
4740
4740
  function ee(e, t) {
4741
- S(sr(g, e, t));
4741
+ S(cr(g, e, t));
4742
4742
  }
4743
4743
  function w(e, t) {
4744
4744
  S(C(C({}, g), {}, {
4745
- answers: cr(g.answers, e, t)
4745
+ answers: lr(g.answers, e, t)
4746
4746
  }));
4747
4747
  }
4748
4748
  function T(t, n, r) {
@@ -4770,32 +4770,32 @@ function Za(_ref77) {
4770
4770
  }
4771
4771
  function ne(n, r) {
4772
4772
  return (0, t.jsxs)("section", {
4773
- className: R.column,
4773
+ className: L.column,
4774
4774
  children: [(0, t.jsxs)("div", {
4775
4775
  className: "flex min-w-0 flex-wrap items-center justify-between gap-2",
4776
- children: [(0, t.jsx)(P.Text, {
4776
+ children: [(0, t.jsx)(N.Text, {
4777
4777
  strong: !0,
4778
4778
  children: l("questionContentEditor.lineConnect.column", {
4779
4779
  index: r + 1
4780
4780
  })
4781
4781
  }), (0, t.jsxs)("div", {
4782
4782
  className: "flex items-center gap-2",
4783
- children: [(0, t.jsx)(ha, {
4783
+ children: [(0, t.jsx)(ga, {
4784
4784
  "aria-label": l("questionContentEditor.lineConnect.labelStyle", {
4785
4785
  index: r + 1
4786
4786
  }),
4787
4787
  disabled: e,
4788
4788
  onChange: function onChange(e) {
4789
- return e ? S(ir(g, n.columnId, e)) : void 0;
4789
+ return e ? S(ar(g, n.columnId, e)) : void 0;
4790
4790
  },
4791
- options: Xa.map(function (e) {
4791
+ options: Za.map(function (e) {
4792
4792
  return {
4793
4793
  label: l("questionContentEditor.lineConnect.labels.".concat(e)),
4794
4794
  value: e
4795
4795
  };
4796
4796
  }),
4797
4797
  value: n.labelStyle
4798
- }), (0, t.jsx)(N, {
4798
+ }), (0, t.jsx)(M, {
4799
4799
  "aria-label": l("questionContentEditor.lineConnect.deleteColumn", {
4800
4800
  index: r + 1
4801
4801
  }),
@@ -4803,7 +4803,7 @@ function Za(_ref77) {
4803
4803
  disabled: e || g.columns.length <= 2,
4804
4804
  icon: "\xD7",
4805
4805
  onClick: function onClick() {
4806
- return S(rr(g, n.columnId));
4806
+ return S(ir(g, n.columnId));
4807
4807
  },
4808
4808
  size: "small"
4809
4809
  })]
@@ -4813,14 +4813,14 @@ function Za(_ref77) {
4813
4813
  children: n.items.map(function (e, t) {
4814
4814
  return re(n, r, e, t);
4815
4815
  })
4816
- }), (0, t.jsx)(N, {
4816
+ }), (0, t.jsx)(M, {
4817
4817
  "aria-label": l("questionContentEditor.lineConnect.addItem", {
4818
4818
  index: r + 1
4819
4819
  }),
4820
4820
  disabled: e,
4821
4821
  icon: "+",
4822
4822
  onClick: function onClick() {
4823
- return S(ar(g, n.columnId));
4823
+ return S(or(g, n.columnId));
4824
4824
  },
4825
4825
  size: "small",
4826
4826
  children: l("questionContentEditor.lineConnect.addItem", {
@@ -4830,18 +4830,18 @@ function Za(_ref77) {
4830
4830
  }, n.columnId);
4831
4831
  }
4832
4832
  function re(n, r, a, o) {
4833
- var c = Zt(n.labelStyle, o),
4833
+ var c = Qt(n.labelStyle, o),
4834
4834
  d = c ? "".concat(c, ". ").concat(a.content.text) : a.content.text,
4835
4835
  f = (u == null ? void 0 : u.itemId) === a.itemId,
4836
- p = Qa(g, a.itemId),
4837
- m = $a(g, a.itemId),
4838
- h = eo(p, m),
4839
- _ = to(i);
4836
+ p = $a(g, a.itemId),
4837
+ m = eo(g, a.itemId),
4838
+ h = to(p, m),
4839
+ _ = no(i);
4840
4840
  return (0, t.jsxs)("div", {
4841
- className: no(f, h),
4841
+ className: ro(f, h),
4842
4842
  "data-testid": "line-connect-item-".concat(a.itemId),
4843
4843
  style: _,
4844
- children: [ie(r, a, o, c, d, p), (0, t.jsx)(I, {
4844
+ children: [ie(r, a, o, c, d, p), (0, t.jsx)(F, {
4845
4845
  controls: s,
4846
4846
  disabled: e,
4847
4847
  label: l("questionContentEditor.lineConnect.itemAria", {
@@ -4856,7 +4856,7 @@ function Za(_ref77) {
4856
4856
  }),
4857
4857
  value: a.content,
4858
4858
  variant: "compact"
4859
- }), (0, t.jsx)(N, {
4859
+ }), (0, t.jsx)(M, {
4860
4860
  "aria-label": l("questionContentEditor.lineConnect.deleteItem", {
4861
4861
  column: r + 1,
4862
4862
  index: o + 1
@@ -4865,7 +4865,7 @@ function Za(_ref77) {
4865
4865
  disabled: e || n.items.length <= 1,
4866
4866
  icon: "\xD7",
4867
4867
  onClick: function onClick() {
4868
- return S(or(g, a.itemId));
4868
+ return S(sr(g, a.itemId));
4869
4869
  },
4870
4870
  size: "small"
4871
4871
  }), ae(r, a, o, d, f, m)]
@@ -4875,7 +4875,7 @@ function Za(_ref77) {
4875
4875
  return i ? (0, t.jsx)("button", {
4876
4876
  "aria-label": oe("incoming", n, a, r.content.text),
4877
4877
  "aria-pressed": c,
4878
- className: za(z.marker, z["incoming-marker"], c && z["connect-button-connected"]),
4878
+ className: Ba(R.marker, R["incoming-marker"], c && R["connect-button-connected"]),
4879
4879
  disabled: e,
4880
4880
  onClick: function onClick() {
4881
4881
  return T(n, r.itemId, s);
@@ -4887,10 +4887,10 @@ function Za(_ref77) {
4887
4887
  type: "button",
4888
4888
  children: o || (0, t.jsx)("span", {
4889
4889
  "aria-hidden": "true",
4890
- className: z["connect-dot"]
4890
+ className: R["connect-dot"]
4891
4891
  })
4892
- }) : (0, t.jsx)(P.Text, {
4893
- className: z.marker,
4892
+ }) : (0, t.jsx)(N.Text, {
4893
+ className: R.marker,
4894
4894
  strong: !0,
4895
4895
  children: o
4896
4896
  });
@@ -4899,7 +4899,7 @@ function Za(_ref77) {
4899
4899
  return i ? (0, t.jsx)("button", {
4900
4900
  "aria-label": oe("outgoing", n, a, r.content.text),
4901
4901
  "aria-pressed": s,
4902
- className: za(z["connect-handle"], z["connect-handle-outgoing"], s && z["connect-button-selected"], c && z["connect-button-connected"]),
4902
+ className: Ba(R["connect-handle"], R["connect-handle-outgoing"], s && R["connect-button-selected"], c && R["connect-button-connected"]),
4903
4903
  disabled: e,
4904
4904
  ref: x(r.itemId, "outgoing"),
4905
4905
  onClick: function onClick() {
@@ -4911,7 +4911,7 @@ function Za(_ref77) {
4911
4911
  type: "button",
4912
4912
  children: (0, t.jsx)("span", {
4913
4913
  "aria-hidden": "true",
4914
- className: z["connect-dot"]
4914
+ className: R["connect-dot"]
4915
4915
  })
4916
4916
  }) : null;
4917
4917
  }
@@ -4925,12 +4925,12 @@ function Za(_ref77) {
4925
4925
  return (0, t.jsxs)("div", {
4926
4926
  className: "flex min-w-0 flex-col gap-4",
4927
4927
  children: [te(), (0, t.jsxs)("div", {
4928
- className: R.board,
4928
+ className: L.board,
4929
4929
  "data-testid": "line-connect-editor-board",
4930
4930
  ref: m,
4931
4931
  children: [i && f ? (0, t.jsx)("svg", {
4932
4932
  "aria-hidden": "true",
4933
- className: R.lines,
4933
+ className: L.lines,
4934
4934
  "data-testid": "line-connect-editor-lines",
4935
4935
  style: {
4936
4936
  height: "".concat(f.height, "px"),
@@ -4940,7 +4940,7 @@ function Za(_ref77) {
4940
4940
  viewBox: "0 0 ".concat(f.width, " ").concat(f.height),
4941
4941
  children: f.lines.map(function (e) {
4942
4942
  return (0, t.jsx)("line", {
4943
- className: R.line,
4943
+ className: L.line,
4944
4944
  x1: e.x1,
4945
4945
  x2: e.x2,
4946
4946
  y1: e.y1,
@@ -4948,45 +4948,45 @@ function Za(_ref77) {
4948
4948
  }, e.key);
4949
4949
  })
4950
4950
  }) : null, (0, t.jsx)("div", {
4951
- className: R.columns,
4951
+ className: L.columns,
4952
4952
  style: _,
4953
4953
  children: g.columns.map(ne)
4954
4954
  })]
4955
- }), (0, t.jsx)(N, {
4955
+ }), (0, t.jsx)(M, {
4956
4956
  "aria-label": l("questionContentEditor.lineConnect.addColumn"),
4957
4957
  disabled: e || g.columns.length >= 5,
4958
4958
  icon: "+",
4959
4959
  onClick: function onClick() {
4960
- return S(nr(g));
4960
+ return S(rr(g));
4961
4961
  },
4962
4962
  children: l("questionContentEditor.lineConnect.addColumn")
4963
4963
  })]
4964
4964
  });
4965
4965
  }
4966
- function Qa(e, t) {
4966
+ function $a(e, t) {
4967
4967
  return Object.values(e.answers).some(function (e) {
4968
4968
  return e.includes(t);
4969
4969
  });
4970
4970
  }
4971
- function $a(e, t) {
4971
+ function eo(e, t) {
4972
4972
  var n;
4973
4973
  return ((n = e.answers[t]) == null ? [] : n).length > 0;
4974
4974
  }
4975
- function eo(e, t) {
4975
+ function to(e, t) {
4976
4976
  return e || t;
4977
4977
  }
4978
- function to(e) {
4978
+ function no(e) {
4979
4979
  return {
4980
4980
  gridTemplateColumns: e ? "2rem minmax(0, 1fr) auto auto" : "2rem minmax(0, 1fr) auto"
4981
4981
  };
4982
4982
  }
4983
- function no(e, t) {
4984
- return za("grid min-w-0 items-center gap-2 rounded-md border border-slate-200 bg-white p-2", e && "border-blue-600 bg-blue-50", t && !e && "border-blue-200 bg-blue-50/40");
4985
- }
4986
4983
  function ro(e, t) {
4984
+ return Ba("grid min-w-0 items-center gap-2 rounded-md border border-slate-200 bg-white p-2", e && "border-blue-600 bg-blue-50", t && !e && "border-blue-200 bg-blue-50/40");
4985
+ }
4986
+ function io(e, t) {
4987
4987
  return "".concat(t, ":").concat(e);
4988
4988
  }
4989
- var io = {
4989
+ var z = {
4990
4990
  board: "_board_30ao0_1",
4991
4991
  "connect-board": "_connect-board_30ao0_7",
4992
4992
  columns: "_columns_30ao0_14",
@@ -5017,12 +5017,12 @@ function oo(_ref82) {
5017
5017
  p = _ref86[1],
5018
5018
  m = (0, n.useRef)(null),
5019
5019
  h = (0, n.useRef)(new Map()),
5020
- g = lr(a, r, i),
5020
+ g = ur(a, r, i),
5021
5021
  _ = {
5022
5022
  gridTemplateColumns: "repeat(".concat(g.columns.length, ", minmax(16rem, 1fr))")
5023
5023
  },
5024
5024
  v = (0, n.useMemo)(function () {
5025
- return i ? Ha(g, g.answers, st) : [];
5025
+ return i ? Ua(g, g.answers, st) : [];
5026
5026
  }, [i, g]),
5027
5027
  y = (0, n.useMemo)(function () {
5028
5028
  return JSON.stringify({
@@ -5049,13 +5049,13 @@ function oo(_ref82) {
5049
5049
  s = a.getBoundingClientRect();
5050
5050
  return [].concat(_toConsumableArray(n), [{
5051
5051
  key: r.key,
5052
- x1: Ua(o, t, e.scrollLeft),
5053
- x2: Ua(s, t, e.scrollLeft),
5054
- y1: Wa(o, t, e.scrollTop),
5055
- y2: Wa(s, t, e.scrollTop)
5052
+ x1: Wa(o, t, e.scrollLeft),
5053
+ x2: Wa(s, t, e.scrollLeft),
5054
+ y1: Ga(o, t, e.scrollTop),
5055
+ y2: Ga(s, t, e.scrollTop)
5056
5056
  }]);
5057
5057
  }, []);
5058
- qa(p, {
5058
+ Ja(p, {
5059
5059
  height: e.scrollHeight,
5060
5060
  lines: n,
5061
5061
  width: e.scrollWidth
@@ -5088,10 +5088,10 @@ function oo(_ref82) {
5088
5088
  };
5089
5089
  }
5090
5090
  function S(e) {
5091
- o(lr(e, r, i));
5091
+ o(ur(e, r, i));
5092
5092
  }
5093
5093
  function ee(e, t) {
5094
- S(mr(g, e, t));
5094
+ S(hr(g, e, t));
5095
5095
  }
5096
5096
  function w(t, n, r) {
5097
5097
  if (e || !i) return;
@@ -5103,7 +5103,7 @@ function oo(_ref82) {
5103
5103
  o = u ? ct(u, a) : null;
5104
5104
  if (o) {
5105
5105
  S(C(C({}, g), {}, {
5106
- answers: hr(g.answers, o.fromItemId, o.toItemId)
5106
+ answers: gr(g.answers, o.fromItemId, o.toItemId)
5107
5107
  })), d(null);
5108
5108
  return;
5109
5109
  }
@@ -5111,16 +5111,16 @@ function oo(_ref82) {
5111
5111
  }
5112
5112
  function T(n, r) {
5113
5113
  return (0, t.jsxs)("section", {
5114
- className: io.column,
5114
+ className: z.column,
5115
5115
  children: [(0, t.jsx)("div", {
5116
5116
  className: "flex min-w-0 flex-wrap items-center justify-end gap-2",
5117
- children: (0, t.jsx)(ha, {
5117
+ children: (0, t.jsx)(ga, {
5118
5118
  "aria-label": l("questionContentEditor.matching.labelStyle", {
5119
5119
  index: r + 1
5120
5120
  }),
5121
5121
  disabled: e,
5122
5122
  onChange: function onChange(e) {
5123
- return e ? S(ur(g, n.columnId, e)) : void 0;
5123
+ return e ? S(dr(g, n.columnId, e)) : void 0;
5124
5124
  },
5125
5125
  options: ao.map(function (e) {
5126
5126
  return {
@@ -5131,18 +5131,18 @@ function oo(_ref82) {
5131
5131
  value: n.labelStyle
5132
5132
  })
5133
5133
  }), (0, t.jsx)("div", {
5134
- className: io.items,
5134
+ className: z.items,
5135
5135
  children: n.items.map(function (e, t) {
5136
5136
  return te(n, r, e, t);
5137
5137
  })
5138
- }), (0, t.jsx)(N, {
5138
+ }), (0, t.jsx)(M, {
5139
5139
  "aria-label": l("questionContentEditor.matching.addItem", {
5140
5140
  index: r + 1
5141
5141
  }),
5142
5142
  disabled: e,
5143
5143
  icon: "+",
5144
5144
  onClick: function onClick() {
5145
- return S(dr(g, n.columnId));
5145
+ return S(fr(g, n.columnId));
5146
5146
  },
5147
5147
  size: "small",
5148
5148
  children: l("questionContentEditor.matching.addItemButton")
@@ -5150,7 +5150,7 @@ function oo(_ref82) {
5150
5150
  }, n.columnId);
5151
5151
  }
5152
5152
  function te(n, r, a, o) {
5153
- var c = Qt(n.labelStyle, o),
5153
+ var c = $t(n.labelStyle, o),
5154
5154
  d = (u == null ? void 0 : u.itemId) === a.itemId,
5155
5155
  f = so(g, a.itemId),
5156
5156
  p = co(g, a.itemId),
@@ -5158,10 +5158,10 @@ function oo(_ref82) {
5158
5158
  h = c ? "".concat(c, ". ").concat(a.content.text) : a.content.text,
5159
5159
  _ = lo(i);
5160
5160
  return (0, t.jsxs)("div", {
5161
- className: za(io.item, d ? io.selected : "", m ? io.matched : ""),
5161
+ className: Ba(z.item, d ? z.selected : "", m ? z.matched : ""),
5162
5162
  "data-testid": "matching-editor-item-".concat(a.itemId),
5163
5163
  style: _,
5164
- children: [ne(r, a, o, c, h, f), (0, t.jsx)(I, {
5164
+ children: [ne(r, a, o, c, h, f), (0, t.jsx)(F, {
5165
5165
  controls: s,
5166
5166
  disabled: e,
5167
5167
  label: l("questionContentEditor.matching.itemAria", {
@@ -5176,7 +5176,7 @@ function oo(_ref82) {
5176
5176
  }),
5177
5177
  value: a.content,
5178
5178
  variant: "compact"
5179
- }), (0, t.jsx)(N, {
5179
+ }), (0, t.jsx)(M, {
5180
5180
  "aria-label": l("questionContentEditor.matching.deleteItem", {
5181
5181
  column: r + 1,
5182
5182
  index: o + 1
@@ -5185,7 +5185,7 @@ function oo(_ref82) {
5185
5185
  disabled: e || n.items.length <= 1,
5186
5186
  icon: "\xD7",
5187
5187
  onClick: function onClick() {
5188
- return S(pr(g, a.itemId));
5188
+ return S(mr(g, a.itemId));
5189
5189
  },
5190
5190
  size: "small"
5191
5191
  }), re(r, a, o, h, d, p)]
@@ -5195,7 +5195,7 @@ function oo(_ref82) {
5195
5195
  return i ? (0, t.jsx)("button", {
5196
5196
  "aria-label": ie("incoming", n, a, r.content.text),
5197
5197
  "aria-pressed": c,
5198
- className: za(io.marker, z["incoming-marker"], c && z["connect-button-connected"]),
5198
+ className: Ba(z.marker, R["incoming-marker"], c && R["connect-button-connected"]),
5199
5199
  disabled: e,
5200
5200
  onClick: function onClick() {
5201
5201
  return w(n, r.itemId, s);
@@ -5207,10 +5207,10 @@ function oo(_ref82) {
5207
5207
  type: "button",
5208
5208
  children: o || (0, t.jsx)("span", {
5209
5209
  "aria-hidden": "true",
5210
- className: z["connect-dot"]
5210
+ className: R["connect-dot"]
5211
5211
  })
5212
5212
  }) : o ? (0, t.jsx)("span", {
5213
- className: io.marker,
5213
+ className: z.marker,
5214
5214
  children: o
5215
5215
  }) : (0, t.jsx)("span", {});
5216
5216
  }
@@ -5218,7 +5218,7 @@ function oo(_ref82) {
5218
5218
  return i ? (0, t.jsx)("button", {
5219
5219
  "aria-label": ie("outgoing", n, a, r.content.text),
5220
5220
  "aria-pressed": s,
5221
- className: za(z["connect-handle"], z["connect-handle-outgoing"], s && z["connect-button-selected"], c && z["connect-button-connected"]),
5221
+ className: Ba(R["connect-handle"], R["connect-handle-outgoing"], s && R["connect-button-selected"], c && R["connect-button-connected"]),
5222
5222
  disabled: e,
5223
5223
  onClick: function onClick() {
5224
5224
  return w(n, r.itemId, o);
@@ -5230,7 +5230,7 @@ function oo(_ref82) {
5230
5230
  type: "button",
5231
5231
  children: (0, t.jsx)("span", {
5232
5232
  "aria-hidden": "true",
5233
- className: z["connect-dot"]
5233
+ className: R["connect-dot"]
5234
5234
  })
5235
5235
  }) : null;
5236
5236
  }
@@ -5242,7 +5242,7 @@ function oo(_ref82) {
5242
5242
  });
5243
5243
  }
5244
5244
  return (0, t.jsxs)("div", {
5245
- className: io.board,
5245
+ className: z.board,
5246
5246
  children: [i ? (0, t.jsx)("div", {
5247
5247
  "aria-live": "polite",
5248
5248
  className: "rounded-md border border-blue-100 bg-blue-50 px-3 py-2 text-sm text-blue-700",
@@ -5250,12 +5250,12 @@ function oo(_ref82) {
5250
5250
  label: u.label
5251
5251
  }) : l("questionContentEditor.matching.connectHintIdle")
5252
5252
  }) : null, (0, t.jsxs)("div", {
5253
- className: io["connect-board"],
5253
+ className: z["connect-board"],
5254
5254
  "data-testid": "matching-editor-board",
5255
5255
  ref: m,
5256
5256
  children: [i && f ? (0, t.jsx)("svg", {
5257
5257
  "aria-hidden": "true",
5258
- className: R.lines,
5258
+ className: L.lines,
5259
5259
  "data-testid": "matching-editor-lines",
5260
5260
  style: {
5261
5261
  height: "".concat(f.height, "px"),
@@ -5265,7 +5265,7 @@ function oo(_ref82) {
5265
5265
  viewBox: "0 0 ".concat(f.width, " ").concat(f.height),
5266
5266
  children: f.lines.map(function (e) {
5267
5267
  return (0, t.jsx)("line", {
5268
- className: R.line,
5268
+ className: L.line,
5269
5269
  x1: e.x1,
5270
5270
  x2: e.x2,
5271
5271
  y1: e.y1,
@@ -5273,7 +5273,7 @@ function oo(_ref82) {
5273
5273
  }, e.key);
5274
5274
  })
5275
5275
  }) : null, (0, t.jsx)("div", {
5276
- className: io.columns,
5276
+ className: z.columns,
5277
5277
  style: _,
5278
5278
  children: g.columns.map(function (e, t) {
5279
5279
  return T(e, t);
@@ -5310,7 +5310,7 @@ function fo(_ref87) {
5310
5310
  var c = s.t,
5311
5311
  l = r ? i.answers.optionIds : [],
5312
5312
  u = n.config.renderer === "table",
5313
- d = nn(i, n.config.optionLabelStyle);
5313
+ d = rn(i, n.config.optionLabelStyle);
5314
5314
  function f(e) {
5315
5315
  a(C(C({}, e), {}, {
5316
5316
  answers: r ? e.answers : {
@@ -5319,18 +5319,18 @@ function fo(_ref87) {
5319
5319
  }));
5320
5320
  }
5321
5321
  function p(e, t) {
5322
- f(Hn(i, e, t));
5322
+ f(Un(i, e, t));
5323
5323
  }
5324
5324
  function m(e, t, n) {
5325
- f(Yn(i, e, t, n));
5325
+ f(Xn(i, e, t, n));
5326
5326
  }
5327
5327
  function h(e, t) {
5328
- f(Xn(i, e, t));
5328
+ f(Zn(i, e, t));
5329
5329
  }
5330
5330
  function g(e) {
5331
5331
  f(C(C({}, i), {}, {
5332
5332
  answers: {
5333
- optionIds: Wn(l, e, n.config.selectionType)
5333
+ optionIds: Gn(l, e, n.config.selectionType)
5334
5334
  }
5335
5335
  }));
5336
5336
  }
@@ -5361,11 +5361,11 @@ function fo(_ref87) {
5361
5361
  u = (a = l == null ? void 0 : l.marker) == null ? "" : a;
5362
5362
  return (0, t.jsxs)("div", {
5363
5363
  className: "grid min-w-0 grid-cols-[2rem_minmax(0,1fr)_auto] items-center gap-2",
5364
- children: [(0, t.jsx)(P.Text, {
5364
+ children: [(0, t.jsx)(N.Text, {
5365
5365
  className: "text-center",
5366
5366
  strong: !0,
5367
5367
  children: u
5368
- }), (0, t.jsx)(I, {
5368
+ }), (0, t.jsx)(F, {
5369
5369
  controls: o,
5370
5370
  disabled: e,
5371
5371
  label: c("questionContentEditor.option.optionAria", {
@@ -5377,9 +5377,9 @@ function fo(_ref87) {
5377
5377
  placeholder: c("questionContentEditor.placeholders.option", {
5378
5378
  marker: u
5379
5379
  }),
5380
- value: (s = l == null ? void 0 : l.standardContent) == null ? k() : s,
5380
+ value: (s = l == null ? void 0 : l.standardContent) == null ? O() : s,
5381
5381
  variant: "compact"
5382
- }), (0, t.jsx)(N, {
5382
+ }), (0, t.jsx)(M, {
5383
5383
  "aria-label": c("questionContentEditor.actions.deleteOption", {
5384
5384
  marker: u
5385
5385
  }),
@@ -5387,18 +5387,18 @@ function fo(_ref87) {
5387
5387
  disabled: e || i.options.length <= 1,
5388
5388
  icon: "\xD7",
5389
5389
  onClick: function onClick() {
5390
- return f(Un(i, r));
5390
+ return f(Wn(i, r));
5391
5391
  },
5392
5392
  size: "small"
5393
5393
  })]
5394
5394
  }, n.id);
5395
5395
  })
5396
- }), (0, t.jsx)(N, {
5396
+ }), (0, t.jsx)(M, {
5397
5397
  "aria-label": c("questionContentEditor.actions.addOption"),
5398
5398
  disabled: e,
5399
5399
  icon: "+",
5400
5400
  onClick: function onClick() {
5401
- return f(Vn(i));
5401
+ return f(Hn(i));
5402
5402
  },
5403
5403
  children: c("questionContentEditor.actions.addOption")
5404
5404
  })]
@@ -5406,7 +5406,7 @@ function fo(_ref87) {
5406
5406
  }
5407
5407
  function y(n, r) {
5408
5408
  var i;
5409
- return (0, t.jsx)(I, {
5409
+ return (0, t.jsx)(F, {
5410
5410
  controls: o,
5411
5411
  disabled: e,
5412
5412
  label: c("questionContentEditor.table.cellAria", {
@@ -5416,7 +5416,7 @@ function fo(_ref87) {
5416
5416
  onChange: function onChange(e) {
5417
5417
  return m(r.view.optionIndex, n, e);
5418
5418
  },
5419
- value: (i = r.view.cells[n]) == null ? k() : i,
5419
+ value: (i = r.view.cells[n]) == null ? O() : i,
5420
5420
  variant: "compact"
5421
5421
  });
5422
5422
  }
@@ -5430,33 +5430,33 @@ function fo(_ref87) {
5430
5430
  className: "flex min-w-0 flex-col gap-3",
5431
5431
  children: [(0, t.jsxs)("div", {
5432
5432
  className: "flex flex-wrap gap-2",
5433
- children: [(0, t.jsx)(N, {
5433
+ children: [(0, t.jsx)(M, {
5434
5434
  "aria-label": c("questionContentEditor.actions.addTableColumn"),
5435
5435
  disabled: e,
5436
5436
  icon: "+",
5437
5437
  onClick: function onClick() {
5438
- return f(Gn(i));
5438
+ return f(Kn(i));
5439
5439
  },
5440
5440
  size: "small",
5441
5441
  children: c("questionContentEditor.actions.addTableColumn")
5442
- }), (0, t.jsx)(N, {
5442
+ }), (0, t.jsx)(M, {
5443
5443
  "aria-label": c("questionContentEditor.actions.addTableRow"),
5444
5444
  disabled: e,
5445
5445
  icon: "+",
5446
5446
  onClick: function onClick() {
5447
- return f(qn(i));
5447
+ return f(Jn(i));
5448
5448
  },
5449
5449
  size: "small",
5450
5450
  children: c("questionContentEditor.actions.addTableRow")
5451
5451
  })]
5452
5452
  }), (0, t.jsx)("div", {
5453
5453
  className: "max-w-full overflow-x-auto",
5454
- children: (0, t.jsx)(Sa, {
5454
+ children: (0, t.jsx)(Ca, {
5455
5455
  columns: [{
5456
5456
  dataIndex: "rowIndex",
5457
5457
  key: "answer",
5458
5458
  render: function render(e, n) {
5459
- return (0, t.jsx)(P.Text, {
5459
+ return (0, t.jsx)(N.Text, {
5460
5460
  strong: !0,
5461
5461
  children: n.view.marker
5462
5462
  });
@@ -5474,7 +5474,7 @@ function fo(_ref87) {
5474
5474
  className: "flex min-w-72 items-start gap-2",
5475
5475
  children: [(0, t.jsx)("div", {
5476
5476
  className: "min-w-0 flex-1",
5477
- children: (0, t.jsx)(I, {
5477
+ children: (0, t.jsx)(F, {
5478
5478
  controls: o,
5479
5479
  disabled: e,
5480
5480
  label: c("questionContentEditor.table.headerAria", {
@@ -5489,12 +5489,12 @@ function fo(_ref87) {
5489
5489
  value: n.content,
5490
5490
  variant: "compact"
5491
5491
  })
5492
- }), (0, t.jsx)(N, {
5492
+ }), (0, t.jsx)(M, {
5493
5493
  "aria-label": c("questionContentEditor.actions.deleteTableColumn"),
5494
5494
  danger: !0,
5495
5495
  disabled: e || i.columns.length <= 1,
5496
5496
  onClick: function onClick() {
5497
- return f(Kn(i, r));
5497
+ return f(qn(i, r));
5498
5498
  },
5499
5499
  children: c("questionContentEditor.actions.deleteTableColumn")
5500
5500
  })]
@@ -5505,12 +5505,12 @@ function fo(_ref87) {
5505
5505
  dataIndex: "rowIndex",
5506
5506
  key: "actions",
5507
5507
  render: function render(n, r) {
5508
- return (0, t.jsx)(N, {
5508
+ return (0, t.jsx)(M, {
5509
5509
  "aria-label": c("questionContentEditor.actions.deleteTableRow"),
5510
5510
  danger: !0,
5511
5511
  disabled: e || i.options.length <= 1,
5512
5512
  onClick: function onClick() {
5513
- return f(Jn(i, r.view.optionIndex));
5513
+ return f(Yn(i, r.view.optionIndex));
5514
5514
  },
5515
5515
  size: "small",
5516
5516
  children: c("questionContentEditor.actions.deleteTableRow")
@@ -5562,7 +5562,7 @@ function fo(_ref87) {
5562
5562
  var e = u ? S() : x();
5563
5563
  return (0, t.jsxs)("div", {
5564
5564
  className: "mt-2 border-t border-slate-200 pt-4",
5565
- children: [(0, t.jsx)(P.Text, {
5565
+ children: [(0, t.jsx)(N.Text, {
5566
5566
  className: "mb-3 block text-base",
5567
5567
  strong: !0,
5568
5568
  children: c("questionContentEditor.option.answerSettings")
@@ -5590,15 +5590,15 @@ function po(_ref89) {
5590
5590
  a = _ref89.richTextControls,
5591
5591
  o = _ref89.translator;
5592
5592
  var s = o.t,
5593
- c = Er(r, n),
5593
+ c = Dr(r, n),
5594
5594
  l = new Map(c.sortOptions.map(function (e) {
5595
5595
  return [e.id, e];
5596
5596
  }));
5597
5597
  function u(e) {
5598
- i(Er(e, n));
5598
+ i(Dr(e, n));
5599
5599
  }
5600
5600
  function d(e, t) {
5601
- u(kr(c, e, t, n));
5601
+ u(Ar(c, e, t, n));
5602
5602
  }
5603
5603
  return (0, t.jsxs)("div", {
5604
5604
  className: "flex min-w-0 flex-col gap-3",
@@ -5607,11 +5607,11 @@ function po(_ref89) {
5607
5607
  children: c.sortOptions.map(function (r, i) {
5608
5608
  return (0, t.jsxs)("div", {
5609
5609
  className: "grid min-w-0 grid-cols-[2rem_minmax(0,1fr)_auto] items-center gap-2",
5610
- children: [(0, t.jsx)(P.Text, {
5610
+ children: [(0, t.jsx)(N.Text, {
5611
5611
  className: "text-center",
5612
5612
  strong: !0,
5613
5613
  children: i + 1
5614
- }), (0, t.jsx)(I, {
5614
+ }), (0, t.jsx)(F, {
5615
5615
  controls: a,
5616
5616
  disabled: e,
5617
5617
  label: s("questionContentEditor.ordering.optionAria", {
@@ -5625,7 +5625,7 @@ function po(_ref89) {
5625
5625
  }),
5626
5626
  value: r.content,
5627
5627
  variant: "compact"
5628
- }), (0, t.jsx)(N, {
5628
+ }), (0, t.jsx)(M, {
5629
5629
  "aria-label": s("questionContentEditor.ordering.deleteOption", {
5630
5630
  index: i + 1
5631
5631
  }),
@@ -5633,55 +5633,55 @@ function po(_ref89) {
5633
5633
  disabled: e || c.sortOptions.length <= 1,
5634
5634
  icon: "\xD7",
5635
5635
  onClick: function onClick() {
5636
- return u(Or(c, r.id, n));
5636
+ return u(kr(c, r.id, n));
5637
5637
  },
5638
5638
  size: "small"
5639
5639
  })]
5640
5640
  }, r.id);
5641
5641
  })
5642
- }), (0, t.jsx)(N, {
5642
+ }), (0, t.jsx)(M, {
5643
5643
  "aria-label": s("questionContentEditor.ordering.addOption"),
5644
5644
  disabled: e,
5645
5645
  icon: "+",
5646
5646
  onClick: function onClick() {
5647
- return u(Dr(c, n));
5647
+ return u(Or(c, n));
5648
5648
  },
5649
5649
  children: s("questionContentEditor.ordering.addOption")
5650
5650
  }), n ? (0, t.jsxs)("section", {
5651
5651
  className: "flex min-w-0 flex-col gap-2",
5652
- children: [(0, t.jsx)(P.Text, {
5652
+ children: [(0, t.jsx)(N.Text, {
5653
5653
  strong: !0,
5654
5654
  children: s("questionContentEditor.ordering.answerTitle")
5655
5655
  }), c.answers.map(function (r, i) {
5656
5656
  var a = l.get(r);
5657
5657
  return a ? (0, t.jsxs)("div", {
5658
5658
  className: "grid min-w-0 grid-cols-[2rem_minmax(0,1fr)_auto] items-center gap-2 rounded-md border border-slate-200 bg-white p-2",
5659
- children: [(0, t.jsx)(P.Text, {
5659
+ children: [(0, t.jsx)(N.Text, {
5660
5660
  className: "text-center",
5661
5661
  strong: !0,
5662
5662
  children: i + 1
5663
- }), (0, t.jsx)(P.Text, {
5663
+ }), (0, t.jsx)(N.Text, {
5664
5664
  children: a.content.text
5665
5665
  }), (0, t.jsxs)("div", {
5666
5666
  className: "flex items-center gap-1",
5667
- children: [(0, t.jsx)(N, {
5667
+ children: [(0, t.jsx)(M, {
5668
5668
  "aria-label": s("questionContentEditor.ordering.moveUp", {
5669
5669
  index: i + 1
5670
5670
  }),
5671
5671
  disabled: e || i === 0,
5672
5672
  icon: "\u2191",
5673
5673
  onClick: function onClick() {
5674
- return u(Ar(c, r, -1, n));
5674
+ return u(jr(c, r, -1, n));
5675
5675
  },
5676
5676
  size: "small"
5677
- }), (0, t.jsx)(N, {
5677
+ }), (0, t.jsx)(M, {
5678
5678
  "aria-label": s("questionContentEditor.ordering.moveDown", {
5679
5679
  index: i + 1
5680
5680
  }),
5681
5681
  disabled: e || i === c.answers.length - 1,
5682
5682
  icon: "\u2193",
5683
5683
  onClick: function onClick() {
5684
- return u(Ar(c, r, 1, n));
5684
+ return u(jr(c, r, 1, n));
5685
5685
  },
5686
5686
  size: "small"
5687
5687
  })]
@@ -5698,7 +5698,7 @@ function mo(_ref90) {
5698
5698
  i = _ref90.richTextControls,
5699
5699
  a = _ref90.translator;
5700
5700
  var o = a.t;
5701
- return (0, t.jsx)(I, {
5701
+ return (0, t.jsx)(F, {
5702
5702
  controls: i,
5703
5703
  disabled: e,
5704
5704
  label: o("questionContentEditor.fields.textContent"),
@@ -5732,7 +5732,7 @@ function go(_ref91) {
5732
5732
  u = c.t,
5733
5733
  d = yt(i.content.json);
5734
5734
  function f(e) {
5735
- a(hn(e, e.content, r));
5735
+ a(gn(e, e.content, r));
5736
5736
  }
5737
5737
  function p() {
5738
5738
  var e;
@@ -5754,10 +5754,10 @@ function go(_ref91) {
5754
5754
  className: ho.stack,
5755
5755
  children: [(0, t.jsxs)("div", {
5756
5756
  className: ho.header,
5757
- children: [(0, t.jsx)(P.Text, {
5757
+ children: [(0, t.jsx)(N.Text, {
5758
5758
  strong: !0,
5759
5759
  children: s
5760
- }), (0, t.jsx)(N, {
5760
+ }), (0, t.jsx)(M, {
5761
5761
  disabled: e,
5762
5762
  onClick: p,
5763
5763
  onMouseDown: function onMouseDown(e) {
@@ -5766,21 +5766,21 @@ function go(_ref91) {
5766
5766
  size: "small",
5767
5767
  children: u("questionContentEditor.actions.markTextSelection")
5768
5768
  })]
5769
- }), (0, t.jsx)(I, {
5769
+ }), (0, t.jsx)(F, {
5770
5770
  controls: o,
5771
5771
  disabled: e,
5772
5772
  editorRef: l,
5773
5773
  label: u("questionContentEditor.fields.textMarkerContent"),
5774
5774
  onChange: function onChange(e) {
5775
5775
  return f(C(C({}, i), {}, {
5776
- content: Wt(e.text, e.json)
5776
+ content: Gt(e.text, e.json)
5777
5777
  }));
5778
5778
  },
5779
5779
  placeholder: u("questionContentEditor.placeholders.textMarkerContent"),
5780
5780
  value: i.content
5781
5781
  }), (0, t.jsxs)("div", {
5782
5782
  className: ho["marker-list"],
5783
- children: [(0, t.jsx)(P.Text, {
5783
+ children: [(0, t.jsx)(N.Text, {
5784
5784
  strong: !0,
5785
5785
  children: u("questionContentEditor.textMarker.markersTitle")
5786
5786
  }), d.length === 0 ? (0, t.jsx)("div", {
@@ -5833,13 +5833,13 @@ function _o(_ref92) {
5833
5833
  l = _ref92.translator;
5834
5834
  var u = l.t,
5835
5835
  d = (0, n.useRef)(null),
5836
- f = gn(a, i, r);
5836
+ f = _n(a, i, r);
5837
5837
  function p(e) {
5838
- o(gn(e, i, r));
5838
+ o(_n(e, i, r));
5839
5839
  }
5840
5840
  function m() {
5841
5841
  var e;
5842
- var t = fn();
5842
+ var t = pn();
5843
5843
  (e = d.current) == null || e.insertNode("blank", {
5844
5844
  blankId: t,
5845
5845
  label: u("questionContentEditor.blank.shortLabel", {
@@ -5877,10 +5877,10 @@ function _o(_ref92) {
5877
5877
  className: B.root,
5878
5878
  children: [(0, t.jsxs)("div", {
5879
5879
  className: B.head,
5880
- children: [(0, t.jsx)(P.Text, {
5880
+ children: [(0, t.jsx)(N.Text, {
5881
5881
  strong: !0,
5882
5882
  children: c
5883
- }), (0, t.jsx)(N, {
5883
+ }), (0, t.jsx)(M, {
5884
5884
  "aria-label": u("questionContentEditor.actions.insertInlineBlank"),
5885
5885
  disabled: e,
5886
5886
  icon: "+",
@@ -5888,13 +5888,13 @@ function _o(_ref92) {
5888
5888
  size: "small",
5889
5889
  children: u("questionContentEditor.actions.insertInlineBlank")
5890
5890
  })]
5891
- }), (0, t.jsx)(I, {
5891
+ }), (0, t.jsx)(F, {
5892
5892
  controls: s,
5893
5893
  disabled: e,
5894
5894
  editorRef: d,
5895
5895
  label: u("questionContentEditor.fields.wordBuilderContent"),
5896
5896
  onChange: function onChange(e) {
5897
- return o(mn(f, e, i, r));
5897
+ return o(hn(f, e, i, r));
5898
5898
  },
5899
5899
  placeholder: u("questionContentEditor.placeholders.wordBuilderContent"),
5900
5900
  value: f.content
@@ -5902,10 +5902,10 @@ function _o(_ref92) {
5902
5902
  className: B.section,
5903
5903
  children: [(0, t.jsxs)("div", {
5904
5904
  className: B["section-head"],
5905
- children: [(0, t.jsx)(P.Text, {
5905
+ children: [(0, t.jsx)(N.Text, {
5906
5906
  strong: !0,
5907
5907
  children: u("questionContentEditor.fields.candidateOptions")
5908
- }), (0, t.jsx)(N, {
5908
+ }), (0, t.jsx)(M, {
5909
5909
  disabled: e,
5910
5910
  icon: "+",
5911
5911
  onClick: g,
@@ -5927,7 +5927,7 @@ function _o(_ref92) {
5927
5927
  return h(r, e.target.value);
5928
5928
  },
5929
5929
  value: n
5930
- }), (0, t.jsx)(N, {
5930
+ }), (0, t.jsx)(M, {
5931
5931
  "aria-label": u("questionContentEditor.actions.deleteOption", {
5932
5932
  marker: r + 1
5933
5933
  }),
@@ -5944,7 +5944,7 @@ function _o(_ref92) {
5944
5944
  })]
5945
5945
  }), i ? (0, t.jsxs)("section", {
5946
5946
  className: B.section,
5947
- children: [(0, t.jsx)(P.Text, {
5947
+ children: [(0, t.jsx)(N.Text, {
5948
5948
  strong: !0,
5949
5949
  children: u("questionContentEditor.blank.correctAnswer")
5950
5950
  }), (0, t.jsx)("div", {
@@ -5981,7 +5981,7 @@ function vo(_ref93) {
5981
5981
  s = _ref93.title,
5982
5982
  c = _ref93.translator;
5983
5983
  var l = c.t;
5984
- return n.type === "inlineFill" ? (0, t.jsx)(Ia, {
5984
+ return n.type === "inlineFill" ? (0, t.jsx)(La, {
5985
5985
  disabled: e,
5986
5986
  element: n,
5987
5987
  hasAnswer: r,
@@ -5999,7 +5999,7 @@ function vo(_ref93) {
5999
5999
  richTextControls: o,
6000
6000
  title: s,
6001
6001
  translator: c
6002
- }) : n.type === "classification" ? bo(s, null, (0, t.jsx)(Pa, {
6002
+ }) : n.type === "classification" ? bo(s, null, (0, t.jsx)(Fa, {
6003
6003
  disabled: e,
6004
6004
  hasAnswer: r,
6005
6005
  item: i,
@@ -6036,7 +6036,7 @@ function yo(_ref94) {
6036
6036
  l = _ref94.t;
6037
6037
  switch (n.type) {
6038
6038
  case "fill":
6039
- return bo(s, (0, t.jsx)(N, {
6039
+ return bo(s, (0, t.jsx)(M, {
6040
6040
  "aria-label": l("questionContentEditor.actions.addBlank"),
6041
6041
  disabled: e,
6042
6042
  icon: "+",
@@ -6044,7 +6044,7 @@ function yo(_ref94) {
6044
6044
  return a(xo(i, r));
6045
6045
  },
6046
6046
  children: l("questionContentEditor.actions.addBlank")
6047
- }), (0, t.jsx)(Ma, {
6047
+ }), (0, t.jsx)(Na, {
6048
6048
  disabled: e,
6049
6049
  hasAnswer: r,
6050
6050
  item: i,
@@ -6063,7 +6063,7 @@ function yo(_ref94) {
6063
6063
  translator: c
6064
6064
  }));
6065
6065
  case "judgement":
6066
- return bo(s, null, (0, t.jsx)(Ra, {
6066
+ return bo(s, null, (0, t.jsx)(za, {
6067
6067
  disabled: e,
6068
6068
  element: n,
6069
6069
  hasAnswer: r,
@@ -6072,7 +6072,7 @@ function yo(_ref94) {
6072
6072
  translator: c
6073
6073
  }));
6074
6074
  case "lineConnect":
6075
- return bo(s, null, (0, t.jsx)(Za, {
6075
+ return bo(s, null, (0, t.jsx)(Qa, {
6076
6076
  disabled: e,
6077
6077
  element: n,
6078
6078
  hasAnswer: r,
@@ -6117,7 +6117,7 @@ function bo(e, n, r) {
6117
6117
  className: "flex min-w-0 flex-col gap-3",
6118
6118
  children: [(0, t.jsxs)("div", {
6119
6119
  className: "flex min-w-0 flex-wrap items-center justify-between gap-2",
6120
- children: [(0, t.jsx)(P.Text, {
6120
+ children: [(0, t.jsx)(N.Text, {
6121
6121
  strong: !0,
6122
6122
  children: e
6123
6123
  }), n]
@@ -6125,13 +6125,13 @@ function bo(e, n, r) {
6125
6125
  });
6126
6126
  }
6127
6127
  function xo(e, t) {
6128
- var n = Pn(e);
6128
+ var n = Fn(e);
6129
6129
  return t ? n : C(C({}, n), {}, {
6130
6130
  answers: []
6131
6131
  });
6132
6132
  }
6133
6133
  function So(e, t) {
6134
- return Rt(Yi(e.structure, t), e.questionTypeKey);
6134
+ return zt(Xi(e.structure, t), e.questionTypeKey);
6135
6135
  }
6136
6136
  function Co(e) {
6137
6137
  return e;
@@ -6186,7 +6186,7 @@ function To(_ref95) {
6186
6186
  var v = e || d.length === 0;
6187
6187
  return (0, t.jsxs)("span", {
6188
6188
  className: "flex min-w-0 flex-wrap items-center gap-2",
6189
- children: [p.length > 1 ? (0, t.jsx)(ha, {
6189
+ children: [p.length > 1 ? (0, t.jsx)(ga, {
6190
6190
  "aria-label": u("questionContentEditor.subquestion.selectTemplate"),
6191
6191
  disabled: e,
6192
6192
  onChange: function onChange(e) {
@@ -6194,7 +6194,7 @@ function To(_ref95) {
6194
6194
  },
6195
6195
  options: p,
6196
6196
  value: g
6197
- }) : null, (0, t.jsx)(N, {
6197
+ }) : null, (0, t.jsx)(M, {
6198
6198
  disabled: v,
6199
6199
  icon: "+",
6200
6200
  onClick: _,
@@ -6211,22 +6211,25 @@ function Do(e, t) {
6211
6211
  return e.length > 1 || t > 1;
6212
6212
  }
6213
6213
  var Oo = {
6214
- root: "_root_1okst_1",
6215
- number: "_number_1okst_9",
6216
- content: "_content_1okst_17"
6214
+ root: "_root_1phv3_1",
6215
+ indented: "_indented_1phv3_9",
6216
+ number: "_number_1phv3_14",
6217
+ content: "_content_1phv3_22"
6217
6218
  };
6218
6219
  function ko(_ref98) {
6219
6220
  var e = _ref98.children,
6220
- n = _ref98.number;
6221
- return n === null ? (0, t.jsx)(t.Fragment, {
6221
+ _ref98$indented = _ref98.indented,
6222
+ n = _ref98$indented === void 0 ? !1 : _ref98$indented,
6223
+ r = _ref98.number;
6224
+ return r === null ? (0, t.jsx)(t.Fragment, {
6222
6225
  children: e
6223
6226
  }) : (0, t.jsxs)("div", {
6224
- className: Oo.root,
6227
+ className: n ? "".concat(Oo.root, " ").concat(Oo.indented) : Oo.root,
6225
6228
  "data-subquestion-numbered-content": !0,
6226
6229
  children: [(0, t.jsx)("span", {
6227
6230
  className: Oo.number,
6228
6231
  "data-subquestion-number": !0,
6229
- children: n
6232
+ children: r
6230
6233
  }), (0, t.jsx)("div", {
6231
6234
  className: Oo.content,
6232
6235
  children: e
@@ -6242,12 +6245,12 @@ function Ao(_ref99) {
6242
6245
  o = _ref99.translator;
6243
6246
  var s = o.t;
6244
6247
  function c(t, n) {
6245
- r(C(C({}, e), ln(e, t, n)));
6248
+ r(C(C({}, e), un(e, t, n)));
6246
6249
  }
6247
6250
  function l(t, n) {
6248
- r(C(C({}, e), un(e, t, n)));
6251
+ r(C(C({}, e), dn(e, t, n)));
6249
6252
  }
6250
- return a.elements.length === 0 && a.extras.length === 0 ? (0, t.jsx)(ya, {
6253
+ return a.elements.length === 0 && a.extras.length === 0 ? (0, t.jsx)(ba, {
6251
6254
  description: s("questionContentEditor.subquestion.emptyTemplate")
6252
6255
  }) : (0, t.jsxs)("div", {
6253
6256
  className: "flex min-w-0 flex-col",
@@ -6258,7 +6261,7 @@ function Ao(_ref99) {
6258
6261
  disabled: n,
6259
6262
  element: r,
6260
6263
  hasAnswer: a.hasAnswer,
6261
- item: Jt(e, l, r),
6264
+ item: Yt(e, l, r),
6262
6265
  onChange: function onChange(e) {
6263
6266
  return c(l, e);
6264
6267
  },
@@ -6268,7 +6271,7 @@ function Ao(_ref99) {
6268
6271
  })
6269
6272
  }, "".concat(r.type, "-").concat(l));
6270
6273
  }), a.extras.map(function (r, s) {
6271
- var c = Yt(e, s, r);
6274
+ var c = Xt(e, s, r);
6272
6275
  return (0, t.jsx)("section", {
6273
6276
  className: "flex min-w-0 flex-col gap-3 border-t border-slate-100 py-3 first:border-t-0 first:pt-0 last:pb-0",
6274
6277
  children: (0, t.jsx)(vo, {
@@ -6350,12 +6353,12 @@ function zo(_ref100) {
6350
6353
  m = a == null ? [n] : a,
6351
6354
  h = Eo(m),
6352
6355
  g = Bo(e, d),
6353
- _ = g ? Yi(g.structure, i) : void 0,
6354
- v = _ ? cn(_, e) : e,
6356
+ _ = g ? Xi(g.structure, i) : void 0,
6357
+ v = _ ? ln(_, e) : e,
6355
6358
  y = Fo(_ ? v.children : []);
6356
6359
  if (!_) return (0, t.jsxs)("section", {
6357
6360
  className: "flex min-w-0 flex-col gap-3 border-b border-l-2 border-slate-200 border-l-blue-600 bg-white py-4 pr-0 pl-3 last:border-b-0 sm:pl-4",
6358
- children: [w(null), T((0, t.jsx)(ya, {
6361
+ children: [w(null), T((0, t.jsx)(ba, {
6359
6362
  description: p("questionContentEditor.subquestion.missingTemplate")
6360
6363
  }))]
6361
6364
  });
@@ -6419,11 +6422,11 @@ function zo(_ref100) {
6419
6422
  className: "flex min-w-0 flex-wrap items-start justify-between gap-3",
6420
6423
  children: [(0, t.jsx)("span", {
6421
6424
  className: "min-w-0",
6422
- children: (0, t.jsxs)(P.Text, {
6425
+ children: (0, t.jsxs)(N.Text, {
6423
6426
  type: "secondary",
6424
6427
  children: [p("questionContentEditor.subquestion.questionKind"), " \xB7", " ", Vo(g, e)]
6425
6428
  })
6426
- }), (0, t.jsxs)(ba, {
6429
+ }), (0, t.jsxs)(xa, {
6427
6430
  size: 4,
6428
6431
  wrap: !0,
6429
6432
  children: [a ? (0, t.jsx)(To, {
@@ -6432,7 +6435,7 @@ function zo(_ref100) {
6432
6435
  onAddChild: a,
6433
6436
  questionTypeTemplates: d,
6434
6437
  translator: f
6435
- }) : null, (0, t.jsx)(N, {
6438
+ }) : null, (0, t.jsx)(M, {
6436
6439
  "aria-label": p("questionContentEditor.subquestion.moveChildUp", {
6437
6440
  index: h
6438
6441
  }),
@@ -6442,7 +6445,7 @@ function zo(_ref100) {
6442
6445
  return c(-1);
6443
6446
  },
6444
6447
  size: "small"
6445
- }), (0, t.jsx)(N, {
6448
+ }), (0, t.jsx)(M, {
6446
6449
  "aria-label": p("questionContentEditor.subquestion.moveChildDown", {
6447
6450
  index: h
6448
6451
  }),
@@ -6452,7 +6455,7 @@ function zo(_ref100) {
6452
6455
  return c(1);
6453
6456
  },
6454
6457
  size: "small"
6455
- }), (0, t.jsx)(N, {
6458
+ }), (0, t.jsx)(M, {
6456
6459
  "aria-label": p("questionContentEditor.subquestion.deleteChild", {
6457
6460
  index: h
6458
6461
  }),
@@ -6473,7 +6476,7 @@ function zo(_ref100) {
6473
6476
  }
6474
6477
  }
6475
6478
  function Bo(e, t) {
6476
- return Qi(t, e.questionTypeKey);
6479
+ return $i(t, e.questionTypeKey);
6477
6480
  }
6478
6481
  function Vo(e, t) {
6479
6482
  return e ? e.label : t.questionTypeKey;
@@ -6555,17 +6558,17 @@ function Wo(_ref101) {
6555
6558
  className: "flex min-w-0 flex-wrap items-start justify-between gap-3 border-b border-slate-200 pb-3",
6556
6559
  children: [(0, t.jsxs)("span", {
6557
6560
  className: "min-w-0",
6558
- children: [(0, t.jsx)(P.Text, {
6561
+ children: [(0, t.jsx)(N.Text, {
6559
6562
  strong: !0,
6560
6563
  children: c("questionContentEditor.subquestion.editorTitle")
6561
- }), (0, t.jsx)(P.Text, {
6564
+ }), (0, t.jsx)(N.Text, {
6562
6565
  className: "block",
6563
6566
  type: "secondary",
6564
6567
  children: c("questionContentEditor.subquestion.structureCheck", {
6565
6568
  nodeCount: u
6566
6569
  })
6567
6570
  })]
6568
- }), (0, t.jsx)(ba, {
6571
+ }), (0, t.jsx)(xa, {
6569
6572
  className: "min-w-0 justify-end",
6570
6573
  wrap: !0,
6571
6574
  children: (0, t.jsx)(To, {
@@ -6578,7 +6581,7 @@ function Wo(_ref101) {
6578
6581
  })]
6579
6582
  }), (0, t.jsx)("div", {
6580
6583
  className: "flex min-w-0 flex-col",
6581
- children: u === 0 ? (0, t.jsx)(ya, {
6584
+ children: u === 0 ? (0, t.jsx)(ba, {
6582
6585
  description: c("questionContentEditor.subquestion.emptyNodes")
6583
6586
  }) : l.map(g)
6584
6587
  })]
@@ -6598,29 +6601,29 @@ function Ko(_ref102) {
6598
6601
  o = _ref102.questionTypeTemplates,
6599
6602
  s = _ref102.uploadImage,
6600
6603
  c = _ref102.value;
6601
- var l = $i(c, o);
6604
+ var l = ea(c, o);
6602
6605
  Lo(c.children, l.children);
6603
- var u = sa(i),
6606
+ var u = ca(i),
6604
6607
  d = u.t,
6605
- f = Xi(o, l),
6608
+ f = Zi(o, l),
6606
6609
  p = (0, n.useMemo)(function () {
6607
6610
  return {
6608
- plugins: [Dt, na],
6611
+ plugins: [Dt, ra],
6609
6612
  uploadImage: s
6610
6613
  };
6611
6614
  }, [s]);
6612
6615
  function m(e, t) {
6613
- a(ln(l, e, t));
6616
+ a(un(l, e, t));
6614
6617
  }
6615
6618
  function h(e, t) {
6616
- a(un(l, e, t));
6619
+ a(dn(l, e, t));
6617
6620
  }
6618
6621
  function g(e, n, i) {
6619
6622
  return (0, t.jsx)(vo, {
6620
6623
  disabled: r,
6621
6624
  element: e,
6622
6625
  hasAnswer: i,
6623
- item: Jt(l, n, e),
6626
+ item: Yt(l, n, e),
6624
6627
  onChange: function onChange(e) {
6625
6628
  return m(n, e);
6626
6629
  },
@@ -6630,7 +6633,7 @@ function Ko(_ref102) {
6630
6633
  });
6631
6634
  }
6632
6635
  function _(e, n, i) {
6633
- var a = Yt(l, n, e);
6636
+ var a = Xt(l, n, e);
6634
6637
  return (0, t.jsx)(vo, {
6635
6638
  disabled: r,
6636
6639
  element: qo(e),
@@ -6654,7 +6657,7 @@ function Ko(_ref102) {
6654
6657
  className: "flex min-w-0 flex-col gap-3 rounded-md border border-slate-200 bg-white p-4",
6655
6658
  children: g(e, n, f.hasAnswer)
6656
6659
  }, "".concat(e.type, "-").concat(n));
6657
- }), Lt(f) || l.children.length > 0 ? (0, t.jsx)(Wo, {
6660
+ }), Rt(f) || l.children.length > 0 ? (0, t.jsx)(Wo, {
6658
6661
  disabled: r,
6659
6662
  hasAnswer: f.hasAnswer,
6660
6663
  item: l,
@@ -6668,17 +6671,17 @@ function Ko(_ref102) {
6668
6671
  children: _(e, n, f.hasAnswer)
6669
6672
  }, "".concat(e.type, "-").concat(n));
6670
6673
  })]
6671
- }) : (0, t.jsx)(ya, {
6674
+ }) : (0, t.jsx)(ba, {
6672
6675
  description: d("questionContentEditor.subquestion.missingTemplate")
6673
6676
  });
6674
6677
  return (0, t.jsxs)(e.RichTextEditor.Root, {
6675
- className: ["question-content-editor", da.root, da["rich-text-root"]].join(" "),
6678
+ className: ["question-content-editor", fa.root, fa["rich-text-root"]].join(" "),
6676
6679
  plugins: p.plugins,
6677
6680
  uploadImage: s,
6678
6681
  children: [r ? null : (0, t.jsx)(e.RichTextEditor.Toolbar, {
6679
6682
  "aria-label": "Rich text toolbar",
6680
- className: da["rich-text-toolbar"]
6681
- }), (0, t.jsx)(ia.Provider, {
6683
+ className: fa["rich-text-toolbar"]
6684
+ }), (0, t.jsx)(aa.Provider, {
6682
6685
  value: !0,
6683
6686
  children: v
6684
6687
  })]
@@ -6714,8 +6717,8 @@ function Yo(e, t) {
6714
6717
  }
6715
6718
  function Xo(e, t) {
6716
6719
  if (!e) return null;
6717
- var n = Ji(t, e.questionTypeKey);
6718
- return n ? C(C({}, sn(n, $o(e))), {}, {
6720
+ var n = Yi(t, e.questionTypeKey);
6721
+ return n ? C(C({}, cn(n, $o(e))), {}, {
6719
6722
  children: e.children.map(function (e) {
6720
6723
  var n = Xo(e, t);
6721
6724
  if (!n) throw Error("\u5B50\u9898\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");
@@ -6897,7 +6900,7 @@ function cs(e, t, n, r) {
6897
6900
  return ((i = e.name) == null ? void 0 : i.trim()) || t;
6898
6901
  }
6899
6902
  function ls(e, t) {
6900
- return $i(us(e), t);
6903
+ return ea(us(e), t);
6901
6904
  }
6902
6905
  function us(e) {
6903
6906
  return {
@@ -7092,7 +7095,7 @@ function bs(e) {
7092
7095
  }
7093
7096
  }
7094
7097
  function xs(e, t) {
7095
- return A(e.answers, e.blanks).map(function (e) {
7098
+ return k(e.answers, e.blanks).map(function (e) {
7096
7099
  var n;
7097
7100
  return {
7098
7101
  answerPools: [Os((n = e.blankIds.map(function (e) {
@@ -7185,8 +7188,8 @@ function Ns(e, t) {
7185
7188
  return ps(Ps(n, t), n);
7186
7189
  }
7187
7190
  function Ps(e, t) {
7188
- var n = Ji(t, e.questionTypeKey),
7189
- r = n ? Lt(n) : !1;
7191
+ var n = Yi(t, e.questionTypeKey),
7192
+ r = n ? Rt(n) : !1;
7190
7193
  return {
7191
7194
  questionTypeKey: e.questionTypeKey,
7192
7195
  children: e.children.map(function (e) {
@@ -7194,7 +7197,7 @@ function Ps(e, t) {
7194
7197
  }),
7195
7198
  id: e.id,
7196
7199
  items: !n || r ? [] : n.elements.reduce(function (t, n, r) {
7197
- var i = tc(n, Jt(e, r, n));
7200
+ var i = tc(n, Yt(e, r, n));
7198
7201
  return i ? [].concat(_toConsumableArray(t), [i]) : t;
7199
7202
  }, []),
7200
7203
  version: e.version
@@ -7275,7 +7278,7 @@ function Ws(e, t) {
7275
7278
  function Gs(e, t) {
7276
7279
  var n;
7277
7280
  return (n = V(e, t, "textResponse")) == null ? {
7278
- content: k(),
7281
+ content: O(),
7279
7282
  type: "textResponse"
7280
7283
  } : n;
7281
7284
  }
@@ -7313,7 +7316,7 @@ function Qs(e, t, n) {
7313
7316
  return Ke(e, t, n);
7314
7317
  }
7315
7318
  function $s(e, t, n, r) {
7316
- return jr(e, t.sortOptions, n, r);
7319
+ return Mr(e, t.sortOptions, n, r);
7317
7320
  }
7318
7321
  function ec(e, t) {
7319
7322
  return e.includes(t) ? e.filter(function (e) {
@@ -7322,7 +7325,7 @@ function ec(e, t) {
7322
7325
  }
7323
7326
  function tc(e, t) {
7324
7327
  return e.type === "richText" ? null : e.type === "textResponse" ? {
7325
- content: k(),
7328
+ content: O(),
7326
7329
  type: "textResponse"
7327
7330
  } : e.type === "ordering" ? fc(t) : e.type === "classification" ? rc(t) : e.type === "fill" ? oc(t) : nc(e, t);
7328
7331
  }
@@ -7656,18 +7659,18 @@ function Oc(_ref105) {
7656
7659
  });
7657
7660
  }
7658
7661
  var U = {
7659
- root: "_root_zh20x_1",
7660
- "element-list": "_element-list_zh20x_19",
7661
- children: "_children_zh20x_20",
7662
- "control-list": "_control-list_zh20x_21",
7663
- "fill-text": "_fill-text_zh20x_22",
7664
- element: "_element_zh20x_19",
7665
- extra: "_extra_zh20x_32",
7666
- child: "_child_zh20x_20",
7667
- "field-label": "_field-label_zh20x_46",
7668
- empty: "_empty_zh20x_52",
7669
- input: "_input_zh20x_64",
7670
- field: "_field_zh20x_46"
7662
+ root: "_root_1owdb_1",
7663
+ "element-list": "_element-list_1owdb_19",
7664
+ children: "_children_1owdb_20",
7665
+ "control-list": "_control-list_1owdb_21",
7666
+ "fill-text": "_fill-text_1owdb_22",
7667
+ element: "_element_1owdb_19",
7668
+ extra: "_extra_1owdb_32",
7669
+ child: "_child_1owdb_20",
7670
+ "field-label": "_field-label_1owdb_44",
7671
+ empty: "_empty_1owdb_50",
7672
+ input: "_input_1owdb_62",
7673
+ field: "_field_1owdb_44"
7671
7674
  };
7672
7675
  function kc(_ref106) {
7673
7676
  var e = _ref106.messages,
@@ -7684,11 +7687,13 @@ function kc(_ref106) {
7684
7687
  className: U.children,
7685
7688
  children: o.children.map(function (s, c) {
7686
7689
  var l = [].concat(_toConsumableArray(n), [c]),
7687
- u = a.children.slice(c, c + 1)[0];
7690
+ u = a.children.slice(c, c + 1)[0],
7691
+ d = Do(l, o.children.length) ? Eo(l) : null;
7688
7692
  return (0, t.jsx)("section", {
7689
7693
  className: U.child,
7690
7694
  children: (0, t.jsx)(ko, {
7691
- number: Do(l, o.children.length) ? Eo(l) : null,
7695
+ indented: !0,
7696
+ number: d,
7692
7697
  children: u ? i(s, u, function (e) {
7693
7698
  return r(c, e);
7694
7699
  }, l) : (0, t.jsx)("div", {
@@ -7718,7 +7723,7 @@ var W = {
7718
7723
  function G(_ref107) {
7719
7724
  var n = _ref107.className,
7720
7725
  r = _ref107.content;
7721
- var i = r.html || (0, e.serializeRichTextEditorHtml)(qt(r), {
7726
+ var i = r.html || (0, e.serializeRichTextEditorHtml)(Jt(r), {
7722
7727
  plugins: [Dt]
7723
7728
  });
7724
7729
  return (0, t.jsx)("div", {
@@ -7779,7 +7784,7 @@ function jc(_ref109) {
7779
7784
  o = _ref109.responseIndex,
7780
7785
  s = _ref109.showAnswer;
7781
7786
  var c = Is(a, o, n.blanks),
7782
- l = A(n.answers, n.blanks).map(function (e, i) {
7787
+ l = k(n.answers, n.blanks).map(function (e, i) {
7783
7788
  return {
7784
7789
  kind: "detailed",
7785
7790
  contents: e.answerPools.map(function (e, n) {
@@ -8220,7 +8225,7 @@ function $c(_ref119) {
8220
8225
  o = _ref119.response,
8221
8226
  s = _ref119.responseIndex,
8222
8227
  c = _ref119.showAnswer;
8223
- var l = _n(r, n, !0),
8228
+ var l = vn(r, n, !0),
8224
8229
  u = Tc(l),
8225
8230
  d = Ls(o, s, n, l.blanks),
8226
8231
  f = u.map(function (e, n) {
@@ -8382,10 +8387,10 @@ function il(_ref124) {
8382
8387
  s = _ref124.responseIndex,
8383
8388
  c = _ref124.showAnswer;
8384
8389
  var l = zs(o, s),
8385
- u = en(n.config.judgeAnswerMode),
8390
+ u = tn(n.config.judgeAnswerMode),
8386
8391
  d = [{
8387
8392
  kind: "detailed",
8388
- contents: tn(n.config.judgeAnswerMode, r.answers),
8393
+ contents: nn(n.config.judgeAnswerMode, r.answers),
8389
8394
  marker: ""
8390
8395
  }];
8391
8396
  function f(e) {
@@ -8439,7 +8444,7 @@ function al(e) {
8439
8444
  content: e.content
8440
8445
  }, "".concat(r.itemId, "-").concat(e.itemId, "-").concat(n));
8441
8446
  }),
8442
- marker: Zt(i.labelStyle, o)
8447
+ marker: Qt(i.labelStyle, o)
8443
8448
  };
8444
8449
  });
8445
8450
  return [].concat(_toConsumableArray(r), _toConsumableArray(o));
@@ -8478,7 +8483,7 @@ function sl(_ref126) {
8478
8483
  gridTemplateColumns: "repeat(".concat(r.columns.length, ", minmax(12rem, 1fr))")
8479
8484
  },
8480
8485
  _ = (0, n.useMemo)(function () {
8481
- return Ha(r, h.connections);
8486
+ return Ua(r, h.connections);
8482
8487
  }, [r, h.connections]),
8483
8488
  v = (0, n.useMemo)(function () {
8484
8489
  return JSON.stringify({
@@ -8505,13 +8510,13 @@ function sl(_ref126) {
8505
8510
  s = a.getBoundingClientRect();
8506
8511
  return [].concat(_toConsumableArray(n), [{
8507
8512
  key: r.key,
8508
- x1: Ka(o, t, e.scrollLeft),
8509
- x2: Ga(s, t, e.scrollLeft),
8510
- y1: Wa(o, t, e.scrollTop),
8511
- y2: Wa(s, t, e.scrollTop)
8513
+ x1: qa(o, t, e.scrollLeft),
8514
+ x2: Ka(s, t, e.scrollLeft),
8515
+ y1: Ga(o, t, e.scrollTop),
8516
+ y2: Ga(s, t, e.scrollTop)
8512
8517
  }]);
8513
8518
  }, []);
8514
- qa(f, {
8519
+ Ja(f, {
8515
8520
  height: e.scrollHeight,
8516
8521
  lines: n,
8517
8522
  width: e.scrollWidth
@@ -8562,12 +8567,12 @@ function sl(_ref126) {
8562
8567
  return (0, t.jsxs)("div", {
8563
8568
  className: W.element,
8564
8569
  children: [(0, t.jsxs)("div", {
8565
- className: R.board,
8570
+ className: L.board,
8566
8571
  "data-testid": "line-connect-player-board",
8567
8572
  ref: p,
8568
8573
  children: [d ? (0, t.jsx)("svg", {
8569
8574
  "aria-hidden": "true",
8570
- className: R.lines,
8575
+ className: L.lines,
8571
8576
  "data-testid": "line-connect-player-lines",
8572
8577
  style: {
8573
8578
  height: "".concat(d.height, "px"),
@@ -8576,7 +8581,7 @@ function sl(_ref126) {
8576
8581
  viewBox: "0 0 ".concat(d.width, " ").concat(d.height),
8577
8582
  children: d.lines.map(function (e) {
8578
8583
  return (0, t.jsx)("line", {
8579
- className: R.line,
8584
+ className: L.line,
8580
8585
  x1: e.x1,
8581
8586
  x2: e.x2,
8582
8587
  y1: e.y1,
@@ -8584,32 +8589,32 @@ function sl(_ref126) {
8584
8589
  }, e.key);
8585
8590
  })
8586
8591
  }) : null, (0, t.jsx)("div", {
8587
- className: R.columns,
8592
+ className: L.columns,
8588
8593
  style: g,
8589
8594
  children: r.columns.map(function (n, r) {
8590
8595
  return (0, t.jsxs)("section", {
8591
- className: R.column,
8596
+ className: L.column,
8592
8597
  children: [(0, t.jsxs)("span", {
8593
- className: R["column-title"],
8598
+ className: L["column-title"],
8594
8599
  children: [i.tableColumn, " ", r + 1]
8595
8600
  }), n.items.map(function (i, a) {
8596
- var o = Zt(n.labelStyle, a),
8601
+ var o = Qt(n.labelStyle, a),
8597
8602
  s = (l == null ? void 0 : l.itemId) === i.itemId;
8598
8603
  return (0, t.jsx)("div", {
8599
- className: H(R.item, s && R.selected),
8604
+ className: H(L.item, s && L.selected),
8600
8605
  "data-selected": s ? "true" : void 0,
8601
8606
  "data-testid": "line-connect-player-item-".concat(i.itemId),
8602
8607
  ref: b(i.itemId),
8603
8608
  children: (0, t.jsxs)("button", {
8604
8609
  "aria-pressed": s,
8605
- className: R.button,
8610
+ className: L.button,
8606
8611
  disabled: e,
8607
8612
  onClick: function onClick() {
8608
8613
  return x(r, i.itemId);
8609
8614
  },
8610
8615
  type: "button",
8611
8616
  children: [o ? (0, t.jsx)("span", {
8612
- className: R.marker,
8617
+ className: L.marker,
8613
8618
  children: o
8614
8619
  }) : null, (0, t.jsx)(G, {
8615
8620
  content: i.content
@@ -8645,7 +8650,7 @@ function cl(e) {
8645
8650
  content: e.content
8646
8651
  }, "".concat(n.itemId, "-").concat(e.itemId, "-").concat(r));
8647
8652
  }),
8648
- marker: Qt((s = i == null ? void 0 : i.labelStyle) == null ? "number" : s, r)
8653
+ marker: $t((s = i == null ? void 0 : i.labelStyle) == null ? "number" : s, r)
8649
8654
  };
8650
8655
  });
8651
8656
  }
@@ -8750,7 +8755,7 @@ function dl(e, t) {
8750
8755
  return {
8751
8756
  columnIndex: t,
8752
8757
  item: n,
8753
- marker: Qt(e.labelStyle, r)
8758
+ marker: $t(e.labelStyle, r)
8754
8759
  };
8755
8760
  });
8756
8761
  }),
@@ -8782,7 +8787,7 @@ function dl(e, t) {
8782
8787
  };
8783
8788
  }
8784
8789
  function fl(e, t) {
8785
- return rn(t, e.config.optionLabelStyle).map(function (e) {
8790
+ return an(t, e.config.optionLabelStyle).map(function (e) {
8786
8791
  return {
8787
8792
  kind: "markerOnly",
8788
8793
  marker: e.marker
@@ -8805,7 +8810,7 @@ function ml(_ref134) {
8805
8810
  s = _ref134.responseIndex,
8806
8811
  c = _ref134.showAnswer;
8807
8812
  var l = Fs(o, s),
8808
- u = nn(r, n.config.optionLabelStyle);
8813
+ u = rn(r, n.config.optionLabelStyle);
8809
8814
  function d(e) {
8810
8815
  a(C(C({}, l), {}, {
8811
8816
  selectedOptionIds: Js(l.selectedOptionIds, e, n.config.selectionType)
@@ -9054,7 +9059,7 @@ function vl(_ref136) {
9054
9059
  r = s && e.includes(t);
9055
9060
  return {
9056
9061
  answer: r,
9057
- className: za(_l.marker, a ? _l["marker-button"] : "", n ? _l["marker-selected"] : "", r ? _l["marker-answer"] : ""),
9062
+ className: Ba(_l.marker, a ? _l["marker-button"] : "", n ? _l["marker-selected"] : "", r ? _l["marker-answer"] : ""),
9058
9063
  selected: n
9059
9064
  };
9060
9065
  }
@@ -9158,11 +9163,11 @@ function Tl(_ref140) {
9158
9163
  s = _ref140.responseIndex,
9159
9164
  c = _ref140.uploadImage;
9160
9165
  var l = Gs(o, s);
9161
- return e ? j(l.content) ? (0, t.jsx)(wl, {
9166
+ return e ? A(l.content) ? (0, t.jsx)(wl, {
9162
9167
  label: i.textResponsePlaceholder
9163
9168
  }) : (0, t.jsx)(G, {
9164
9169
  content: l.content
9165
- }) : (0, t.jsx)(Ea, {
9170
+ }) : (0, t.jsx)(Da, {
9166
9171
  ariaLabel: r,
9167
9172
  locale: n,
9168
9173
  onChange: function onChange(e) {
@@ -9184,7 +9189,7 @@ function El(e, n) {
9184
9189
  return o ? [].concat(_toConsumableArray(r), [{
9185
9190
  kind: "detailed",
9186
9191
  contents: [(0, t.jsx)(G, {
9187
- content: k(o)
9192
+ content: O(o)
9188
9193
  }, "".concat(i, "-answer"))],
9189
9194
  marker: yc([i], e.blanks, n)
9190
9195
  }]) : r;
@@ -9203,7 +9208,7 @@ function Ol(_ref141) {
9203
9208
  o = _ref141.response,
9204
9209
  s = _ref141.responseIndex,
9205
9210
  c = _ref141.showAnswer;
9206
- var l = gn(r, !0, n),
9211
+ var l = _n(r, !0, n),
9207
9212
  u = Rs(o, s, l.blanks),
9208
9213
  d = El(l, i.blankLabel);
9209
9214
  function f(e, t) {
@@ -9448,7 +9453,7 @@ var Ml = ["locale"];
9448
9453
  function Nl(e) {
9449
9454
  var _e$locale = e.locale,
9450
9455
  n = _e$locale === void 0 ? "zh-CN" : _e$locale,
9451
- r = pa(e, Ml),
9456
+ r = ma(e, Ml),
9452
9457
  i = ls(r.value, r.questionTypeTemplates),
9453
9458
  a = ms(r.response, i);
9454
9459
  return (0, t.jsx)(Pl, C(C({}, r), {}, {
@@ -9479,7 +9484,7 @@ function Pl(_ref146) {
9479
9484
  u = _ref146.questionTypeTemplates,
9480
9485
  d = _ref146.uploadImage,
9481
9486
  f = _ref146.value;
9482
- var p = Xi(u, f);
9487
+ var p = Zi(u, f);
9483
9488
  if (!p) return (0, t.jsx)("div", {
9484
9489
  className: H(U.root, e),
9485
9490
  children: (0, t.jsx)("div", {
@@ -9524,10 +9529,10 @@ function Il(_ref147) {
9524
9529
  s = _ref147.structure,
9525
9530
  c = _ref147.uploadImage,
9526
9531
  l = _ref147.value;
9527
- return (0, t.jsx)("div", {
9532
+ return s.elements.length === 0 ? null : (0, t.jsx)("div", {
9528
9533
  className: U["element-list"],
9529
9534
  children: s.elements.map(function (u, d) {
9530
- var f = Jt(l, d, u),
9535
+ var f = Yt(l, d, u),
9531
9536
  p = s.elements.slice(0, d).filter(function (e) {
9532
9537
  return e.type !== "richText";
9533
9538
  }).length;
@@ -9563,8 +9568,8 @@ function Ll(_ref148) {
9563
9568
  return a ? (0, t.jsx)("div", {
9564
9569
  className: U["element-list"],
9565
9570
  children: o.extras.map(function (a, o) {
9566
- var l = Yt(c, o, a);
9567
- return j(l.content) ? null : (0, t.jsxs)("section", {
9571
+ var l = Xt(c, o, a);
9572
+ return A(l.content) ? null : (0, t.jsxs)("section", {
9568
9573
  className: U.extra,
9569
9574
  children: [(0, t.jsx)(Oc, {
9570
9575
  children: a.name
@@ -9649,7 +9654,7 @@ function Ul(_ref150) {
9649
9654
  var e = _ref150.item,
9650
9655
  n = _ref150.messages,
9651
9656
  r = _ref150.showAnswer;
9652
- var i = A(e.answers, e.blanks).map(function (r, i) {
9657
+ var i = k(e.answers, e.blanks).map(function (r, i) {
9653
9658
  return {
9654
9659
  kind: "detailed",
9655
9660
  contents: r.answerPools.map(function (e, n) {
@@ -9728,7 +9733,7 @@ function Kl(_ref152) {
9728
9733
  n = _ref152.item,
9729
9734
  r = _ref152.messages,
9730
9735
  i = _ref152.showAnswer;
9731
- var a = _n(n, e, !0),
9736
+ var a = vn(n, e, !0),
9732
9737
  o = Tc(a).map(function (e, n) {
9733
9738
  return {
9734
9739
  kind: "detailed",
@@ -9786,10 +9791,10 @@ function Jl(_ref153) {
9786
9791
  n = _ref153.item,
9787
9792
  r = _ref153.messages,
9788
9793
  i = _ref153.showAnswer;
9789
- var a = en(e.config.judgeAnswerMode),
9794
+ var a = tn(e.config.judgeAnswerMode),
9790
9795
  o = [{
9791
9796
  kind: "detailed",
9792
- contents: tn(e.config.judgeAnswerMode, n.answers),
9797
+ contents: nn(e.config.judgeAnswerMode, n.answers),
9793
9798
  marker: ""
9794
9799
  }];
9795
9800
  return (0, t.jsxs)("div", {
@@ -9820,22 +9825,22 @@ function Yl(_ref155) {
9820
9825
  return (0, t.jsxs)("div", {
9821
9826
  className: W.element,
9822
9827
  children: [(0, t.jsx)("div", {
9823
- className: R.board,
9828
+ className: L.board,
9824
9829
  children: (0, t.jsx)("div", {
9825
- className: R.columns,
9830
+ className: L.columns,
9826
9831
  style: i,
9827
9832
  children: e.columns.map(function (e, r) {
9828
9833
  return (0, t.jsxs)("section", {
9829
- className: R.column,
9834
+ className: L.column,
9830
9835
  children: [(0, t.jsxs)("span", {
9831
- className: R["column-title"],
9836
+ className: L["column-title"],
9832
9837
  children: [n.tableColumn, " ", r + 1]
9833
9838
  }), e.items.map(function (n, r) {
9834
- var i = Zt(e.labelStyle, r);
9839
+ var i = Qt(e.labelStyle, r);
9835
9840
  return (0, t.jsxs)("div", {
9836
- className: R.item,
9841
+ className: L.item,
9837
9842
  children: [i ? (0, t.jsx)("span", {
9838
- className: R.marker,
9843
+ className: L.marker,
9839
9844
  children: i
9840
9845
  }) : null, (0, t.jsx)(G, {
9841
9846
  content: n.content
@@ -9872,7 +9877,7 @@ function Zl(_ref156) {
9872
9877
  return (0, t.jsx)("section", {
9873
9878
  className: Xl.column,
9874
9879
  children: e.items.map(function (n, r) {
9875
- var i = Qt(e.labelStyle, r);
9880
+ var i = $t(e.labelStyle, r);
9876
9881
  return (0, t.jsxs)("div", {
9877
9882
  className: Xl.item,
9878
9883
  children: [i ? (0, t.jsx)("span", {
@@ -9897,7 +9902,7 @@ function Ql(_ref157) {
9897
9902
  n = _ref157.item,
9898
9903
  r = _ref157.messages,
9899
9904
  i = _ref157.showAnswer;
9900
- var a = nn(n, e.config.optionLabelStyle);
9905
+ var a = rn(n, e.config.optionLabelStyle);
9901
9906
  if (e.config.renderer === "table") {
9902
9907
  var _o3 = fl(e, n);
9903
9908
  return (0, t.jsxs)("div", {
@@ -10001,7 +10006,7 @@ function eu(_ref159) {
10001
10006
  n = _ref159.item,
10002
10007
  r = _ref159.messages,
10003
10008
  i = _ref159.showAnswer;
10004
- var a = gn(n, !0, e),
10009
+ var a = _n(n, !0, e),
10005
10010
  o = El(a, r.blankLabel);
10006
10011
  return (0, t.jsxs)("div", {
10007
10012
  className: W.element,
@@ -10119,13 +10124,13 @@ function nu(_ref162) {
10119
10124
  }
10120
10125
  }
10121
10126
  var X = {
10122
- root: "_root_1vkxi_1",
10123
- empty: "_empty_1vkxi_18",
10124
- "element-list": "_element-list_1vkxi_30",
10125
- children: "_children_1vkxi_31",
10126
- element: "_element_1vkxi_30",
10127
- extra: "_extra_1vkxi_41",
10128
- child: "_child_1vkxi_31"
10127
+ root: "_root_1jseb_1",
10128
+ empty: "_empty_1jseb_18",
10129
+ "element-list": "_element-list_1jseb_30",
10130
+ children: "_children_1jseb_31",
10131
+ element: "_element_1jseb_30",
10132
+ extra: "_extra_1jseb_41",
10133
+ child: "_child_1jseb_31"
10129
10134
  };
10130
10135
  function ru(_ref163) {
10131
10136
  var e = _ref163.messages,
@@ -10139,11 +10144,13 @@ function ru(_ref163) {
10139
10144
  }) : (0, t.jsx)("div", {
10140
10145
  className: X.children,
10141
10146
  children: i.children.map(function (e, a) {
10142
- var o = [].concat(_toConsumableArray(n), [a]);
10147
+ var o = [].concat(_toConsumableArray(n), [a]),
10148
+ s = Do(o, i.children.length) ? Eo(o) : null;
10143
10149
  return (0, t.jsx)("section", {
10144
10150
  className: X.child,
10145
10151
  children: (0, t.jsx)(ko, {
10146
- number: Do(o, i.children.length) ? Eo(o) : null,
10152
+ indented: !0,
10153
+ number: s,
10147
10154
  children: r(e, o)
10148
10155
  })
10149
10156
  }, e.id || a);
@@ -10154,7 +10161,7 @@ var iu = ["locale"];
10154
10161
  function au(e) {
10155
10162
  var _e$locale2 = e.locale,
10156
10163
  n = _e$locale2 === void 0 ? "zh-CN" : _e$locale2,
10157
- r = pa(e, iu),
10164
+ r = ma(e, iu),
10158
10165
  i = ls(r.value, r.questionTypeTemplates);
10159
10166
  return (0, t.jsx)(ou, C(C({}, r), {}, {
10160
10167
  messages: vc(n),
@@ -10172,7 +10179,7 @@ function ou(_ref164) {
10172
10179
  a = _ref164$showExtraAttr === void 0 ? !1 : _ref164$showExtraAttr,
10173
10180
  o = _ref164.questionTypeTemplates,
10174
10181
  s = _ref164.value;
10175
- var c = Xi(o, s);
10182
+ var c = Zi(o, s);
10176
10183
  if (!c) return (0, t.jsx)("div", {
10177
10184
  className: H(X.root, e),
10178
10185
  children: (0, t.jsx)("div", {
@@ -10180,10 +10187,10 @@ function ou(_ref164) {
10180
10187
  children: n.missingQuestionTypeTemplate
10181
10188
  })
10182
10189
  });
10183
- var l = (0, t.jsx)("div", {
10190
+ var l = c.elements.length === 0 ? null : (0, t.jsx)("div", {
10184
10191
  className: X["element-list"],
10185
10192
  children: c.elements.map(function (e, r) {
10186
- var a = Jt(s, r, e);
10193
+ var a = Yt(s, r, e);
10187
10194
  return (0, t.jsx)("section", {
10188
10195
  className: X.element,
10189
10196
  children: (0, t.jsx)(tu, {
@@ -10198,8 +10205,8 @@ function ou(_ref164) {
10198
10205
  u = a ? (0, t.jsx)("div", {
10199
10206
  className: X["element-list"],
10200
10207
  children: c.extras.map(function (e, r) {
10201
- var i = Yt(s, r, e);
10202
- return j(i.content) ? null : (0, t.jsxs)("section", {
10208
+ var i = Xt(s, r, e);
10209
+ return A(i.content) ? null : (0, t.jsxs)("section", {
10203
10210
  className: X.extra,
10204
10211
  children: [(0, t.jsx)(Oc, {
10205
10212
  children: e.name
@@ -11355,4 +11362,4 @@ function Ku(e) {
11355
11362
  var t, n, r, i;
11356
11363
  return (t = (n = (r = e.elements[0]) == null ? void 0 : r.clientId) == null ? (i = e.extras[0]) == null ? void 0 : i.clientId : n) == null ? null : t;
11357
11364
  }
11358
- exports.QuestionContentEditor = Ko, exports.QuestionPlayer = Nl, exports.QuestionPreview = au, exports.QuestionRichContentView = G, exports.QuestionStructureEditor = Wu, exports.addBlankToGroup = Pn, exports.alignQuestionContentDraftWithStructure = cn, exports.assignBlankToAnswerGroup = Ln, exports.cn = za, exports.createBlankAnswerGroupWithBlank = Rn, exports.createEmptyQuestionContentDraft = Rt, exports.createEmptyQuestionPlayerResponse = Ns, exports.createEmptyQuestionStructureDraft = ie, exports.createQuestionContentDraftFromSerialized = sn, exports.createQuestionContentId = g, exports.createQuestionContentStructureFromDraft = Yo, exports.createQuestionPreviewDraft = Xo, exports.createQuestionStructureElement = oe, exports.createQuestionStructureExtra = ae, exports.createRichContentValue = k, exports.createRichContentValueFromDocument = Ut, exports.createRichTextContent = Te, exports.deleteBlankFromGroup = Fn, exports.deleteQuestionStructureElement = ue, exports.deleteQuestionStructureExtra = le, exports.detachBlankFromAnswerGroup = zn, exports.findQuestionContentQuestionTypeStructure = Ji, exports.findQuestionContentQuestionTypeTemplate = Qi, exports.getQuestionContentJudgementOptions = $t, exports.getQuestionContentOptionMarker = Xt, exports.getQuestionContentTextMarkerAnswerText = Kt, exports.getQuestionStructureDraftChangeKind = Qo, exports.getQuestionStructureElementDefaultEnName = D, exports.getQuestionStructureElementDefaultName = E, exports.getQuestionStructureExtraDefaultEnName = _e, exports.getQuestionStructureExtraDefaultName = ge, exports.getRichContentDocument = qt, exports.getSharedBlankAnswerGroups = In, exports.isCompositeQuestionContentStructure = Lt, exports.isQuestionContentDraftEmpty = an, exports.moveQuestionStructureElement = de, exports.normalizeFillTextCandidateState = _n, exports.normalizeRichTextContent = Ee, exports.questionStructureElementTypes = ee, exports.questionStructureExtraTypes = w, exports.reconcileQuestionContentDraftWithTemplates = $i, exports.serializeQuestionContentDraft = on, exports.serializeQuestionStructureDraft = Zo, exports.updateQuestionStructureElement = pe, exports.updateQuestionStructureExtra = fe, exports.updateQuestionStructureGlobalConfig = me, exports.updateQuestionStructureMetadata = he;
11365
+ exports.QuestionContentEditor = Ko, exports.QuestionPlayer = Nl, exports.QuestionPreview = au, exports.QuestionRichContentView = G, exports.QuestionStructureEditor = Wu, exports.addBlankToGroup = Fn, exports.alignQuestionContentDraftWithStructure = ln, exports.assignBlankToAnswerGroup = Rn, exports.cn = Ba, exports.createBlankAnswerGroupWithBlank = zn, exports.createEmptyQuestionContentDraft = zt, exports.createEmptyQuestionPlayerResponse = Ns, exports.createEmptyQuestionStructureDraft = ie, exports.createQuestionContentDraftFromSerialized = cn, exports.createQuestionContentId = g, exports.createQuestionContentStructureFromDraft = Yo, exports.createQuestionPreviewDraft = Xo, exports.createQuestionStructureElement = oe, exports.createQuestionStructureExtra = ae, exports.createRichContentValue = O, exports.createRichContentValueFromDocument = Wt, exports.createRichTextContent = Te, exports.deleteBlankFromGroup = In, exports.deleteQuestionStructureElement = ue, exports.deleteQuestionStructureExtra = le, exports.detachBlankFromAnswerGroup = Bn, exports.findQuestionContentQuestionTypeStructure = Yi, exports.findQuestionContentQuestionTypeTemplate = $i, exports.getQuestionContentJudgementOptions = en, exports.getQuestionContentOptionMarker = Zt, exports.getQuestionContentTextMarkerAnswerText = qt, exports.getQuestionStructureDraftChangeKind = Qo, exports.getQuestionStructureElementDefaultEnName = D, exports.getQuestionStructureElementDefaultName = E, exports.getQuestionStructureExtraDefaultEnName = _e, exports.getQuestionStructureExtraDefaultName = ge, exports.getRichContentDocument = Jt, exports.getSharedBlankAnswerGroups = Ln, exports.isCompositeQuestionContentStructure = Rt, exports.isQuestionContentDraftEmpty = on, exports.moveQuestionStructureElement = de, exports.normalizeFillTextCandidateState = vn, exports.normalizeRichTextContent = Ee, exports.questionStructureElementTypes = ee, exports.questionStructureExtraTypes = w, exports.reconcileQuestionContentDraftWithTemplates = ea, exports.serializeQuestionContentDraft = sn, exports.serializeQuestionStructureDraft = Zo, exports.updateQuestionStructureElement = pe, exports.updateQuestionStructureExtra = fe, exports.updateQuestionStructureGlobalConfig = me, exports.updateQuestionStructureMetadata = he;