@pie-element/math-inline 8.8.10 → 8.8.11-next.87
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/configure/lib/configure.js +3 -3
- package/configure/lib/configure.js.map +1 -1
- package/configure/lib/general-config-block.js +5 -5
- package/configure/lib/general-config-block.js.map +1 -1
- package/configure/lib/response.js +3 -3
- package/configure/lib/response.js.map +1 -1
- package/configure/package.json +6 -1
- package/controller/lib/index.js +2 -2
- package/controller/lib/index.js.map +1 -1
- package/controller/package.json +2 -1
- package/lib/main.js +6 -6
- package/lib/main.js.map +1 -1
- package/lib/print.js +1 -1
- package/lib/print.js.map +1 -1
- package/lib/simple-question-block.js +3 -3
- package/lib/simple-question-block.js.map +1 -1
- package/module/configure.js +1 -16645
- package/module/controller.js +171 -521
- package/module/element.js +1 -12966
- package/module/index.html +1 -1
- package/module/manifest.json +5 -5
- package/module/print.html +1 -1
- package/module/print.js +1 -12696
- package/package.json +8 -3
package/module/controller.js
CHANGED
|
@@ -4,10 +4,6 @@ var debug = () => () => {};
|
|
|
4
4
|
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
6
|
|
|
7
|
-
function getDefaultExportFromCjs (x) {
|
|
8
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
7
|
/** Used for built-in method references. */
|
|
12
8
|
|
|
13
9
|
var objectProto$6 = Object.prototype;
|
|
@@ -980,169 +976,42 @@ function isEmpty(value) {
|
|
|
980
976
|
|
|
981
977
|
var isEmpty_1 = isEmpty;
|
|
982
978
|
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
var interopRequireDefault = {exports: {}};
|
|
988
|
-
|
|
989
|
-
(function (module) {
|
|
990
|
-
function _interopRequireDefault(obj) {
|
|
991
|
-
return obj && obj.__esModule ? obj : {
|
|
992
|
-
"default": obj
|
|
993
|
-
};
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
997
|
-
}(interopRequireDefault));
|
|
998
|
-
|
|
999
|
-
var defineProperty$1 = {exports: {}};
|
|
1000
|
-
|
|
1001
|
-
(function (module) {
|
|
1002
|
-
function _defineProperty(obj, key, value) {
|
|
1003
|
-
if (key in obj) {
|
|
1004
|
-
Object.defineProperty(obj, key, {
|
|
1005
|
-
value: value,
|
|
1006
|
-
enumerable: true,
|
|
1007
|
-
configurable: true,
|
|
1008
|
-
writable: true
|
|
1009
|
-
});
|
|
1010
|
-
} else {
|
|
1011
|
-
obj[key] = value;
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
return obj;
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1018
|
-
}(defineProperty$1));
|
|
1019
|
-
|
|
1020
|
-
var _interopRequireDefault = interopRequireDefault.exports;
|
|
1021
|
-
|
|
1022
|
-
Object.defineProperty(feedback, "__esModule", {
|
|
1023
|
-
value: true
|
|
1024
|
-
});
|
|
1025
|
-
feedback.getFeedbackForCorrectness = feedback.getFeedback = feedback.getActualFeedbackForCorrectness = feedback.getActualFeedback = feedback.defaults = void 0;
|
|
1026
|
-
|
|
1027
|
-
var _defineProperty2 = _interopRequireDefault(defineProperty$1.exports);
|
|
1028
|
-
|
|
1029
|
-
function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1030
|
-
|
|
1031
|
-
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1032
|
-
|
|
1033
|
-
var defaults$1 = {
|
|
1034
|
-
correct: {
|
|
1035
|
-
type: 'default',
|
|
1036
|
-
"default": 'Correct',
|
|
1037
|
-
custom: 'Correct'
|
|
1038
|
-
},
|
|
1039
|
-
incorrect: {
|
|
1040
|
-
type: 'default',
|
|
1041
|
-
"default": 'Incorrect',
|
|
1042
|
-
custom: 'Incorrect'
|
|
1043
|
-
},
|
|
1044
|
-
partial: {
|
|
1045
|
-
type: 'default',
|
|
1046
|
-
"default": 'Nearly',
|
|
1047
|
-
custom: 'Nearly'
|
|
1048
|
-
},
|
|
979
|
+
const defaults$1 = {
|
|
980
|
+
correct: { type: 'default', default: 'Correct', custom: 'Correct' },
|
|
981
|
+
incorrect: { type: 'default', default: 'Incorrect', custom: 'Incorrect' },
|
|
982
|
+
partial: { type: 'default', default: 'Nearly', custom: 'Nearly' },
|
|
1049
983
|
unanswered: {
|
|
1050
984
|
type: 'default',
|
|
1051
|
-
|
|
1052
|
-
custom: 'You have not entered a response'
|
|
1053
|
-
}
|
|
1054
|
-
};
|
|
1055
|
-
/**
|
|
1056
|
-
* @typedef {Object} FeedbackConfig
|
|
1057
|
-
* @property {'default'|'none'|'custom'} type
|
|
1058
|
-
* @property {string} default
|
|
1059
|
-
* @property {string} custom
|
|
1060
|
-
*
|
|
1061
|
-
* @typedef {Object} Feedback
|
|
1062
|
-
* @property {FeedbackConfig} correct
|
|
1063
|
-
* @property {FeedbackConfig} incorrect
|
|
1064
|
-
* @property {FeedbackConfig} partial
|
|
1065
|
-
*/
|
|
1066
|
-
|
|
1067
|
-
feedback.defaults = defaults$1;
|
|
1068
|
-
|
|
1069
|
-
var normalizeCorrectness = function normalizeCorrectness(c) {
|
|
1070
|
-
if (c === 'partially-correct') {
|
|
1071
|
-
return 'partial';
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
return c;
|
|
1075
|
-
};
|
|
1076
|
-
/**
|
|
1077
|
-
* Get the feedback for the correctness
|
|
1078
|
-
*
|
|
1079
|
-
* @param {'correct'|'incorrect'|'partial'} correctness
|
|
1080
|
-
* @param {Feedback} feedback
|
|
1081
|
-
*/
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
var getFeedbackForCorrectness = function getFeedbackForCorrectness(correctness, feedback) {
|
|
1085
|
-
return new Promise(function (resolve) {
|
|
1086
|
-
feedback = _objectSpread$7(_objectSpread$7({}, defaults$1), feedback);
|
|
1087
|
-
correctness = normalizeCorrectness(correctness);
|
|
1088
|
-
var fb = feedback[correctness] || defaults$1[correctness] || {};
|
|
1089
|
-
var d = defaults$1[correctness] || {};
|
|
1090
|
-
getFeedback(fb, d[fb.type || 'default']).then(function (result) {
|
|
1091
|
-
return resolve(result);
|
|
1092
|
-
});
|
|
1093
|
-
});
|
|
985
|
+
default: 'You have not entered a response',
|
|
986
|
+
custom: 'You have not entered a response',
|
|
987
|
+
},
|
|
1094
988
|
};
|
|
1095
|
-
/**
|
|
1096
|
-
* Get the feedback from a {FeedbackConfig}
|
|
1097
|
-
*
|
|
1098
|
-
* @param {FeedbackConfig} feedback
|
|
1099
|
-
* @param {string} fallback
|
|
1100
|
-
*/
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
feedback.getFeedbackForCorrectness = getFeedbackForCorrectness;
|
|
1104
|
-
|
|
1105
|
-
var getFeedback = function getFeedback(feedback, fallback) {
|
|
1106
|
-
return new Promise(function (resolve) {
|
|
1107
|
-
if (!feedback || feedback.type === 'none') {
|
|
1108
|
-
resolve(undefined);
|
|
1109
|
-
return;
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
feedback = feedback || {};
|
|
1113
|
-
var out = feedback[feedback.type] || fallback;
|
|
1114
|
-
resolve(out);
|
|
1115
|
-
});
|
|
1116
|
-
}; // TODO: should replace getFeedbackForCorrectness
|
|
1117
989
|
|
|
990
|
+
// TODO: should replace getFeedbackForCorrectness
|
|
1118
991
|
/**
|
|
1119
992
|
* Get feedback for correctness
|
|
1120
993
|
* @param {'correct'|'incorrect'|'partial'} correctness
|
|
1121
994
|
* @param {Feedback} feedback
|
|
1122
995
|
*/
|
|
996
|
+
const getActualFeedbackForCorrectness = (correctness, feedback) => {
|
|
997
|
+
feedback = { ...defaults$1, ...feedback };
|
|
1123
998
|
|
|
999
|
+
// normalize correctness
|
|
1000
|
+
correctness = correctness === 'partially-correct' ? 'partial' : correctness;
|
|
1124
1001
|
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
var getActualFeedbackForCorrectness = function getActualFeedbackForCorrectness(correctness, feedback) {
|
|
1128
|
-
feedback = _objectSpread$7(_objectSpread$7({}, defaults$1), feedback); // normalize correctness
|
|
1002
|
+
const defaultFeedback = defaults$1[correctness] || {};
|
|
1003
|
+
const fb = feedback[correctness] || defaultFeedback;
|
|
1129
1004
|
|
|
1130
|
-
correctness = correctness === 'partially-correct' ? 'partial' : correctness;
|
|
1131
|
-
var defaultFeedback = defaults$1[correctness] || {};
|
|
1132
|
-
var fb = feedback[correctness] || defaultFeedback;
|
|
1133
1005
|
return getActualFeedback(fb, defaultFeedback[fb.type || 'default']);
|
|
1134
|
-
};
|
|
1006
|
+
};
|
|
1135
1007
|
|
|
1008
|
+
// TODO: should replace getFeedback
|
|
1136
1009
|
/**
|
|
1137
1010
|
* Get the feedback from a {FeedbackConfig}
|
|
1138
1011
|
* @param {FeedbackConfig} feedback
|
|
1139
1012
|
* @param {string} fallback
|
|
1140
1013
|
*/
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
feedback.getActualFeedbackForCorrectness = getActualFeedbackForCorrectness;
|
|
1144
|
-
|
|
1145
|
-
var getActualFeedback = function getActualFeedback(feedback, fallback) {
|
|
1014
|
+
const getActualFeedback = (feedback, fallback) => {
|
|
1146
1015
|
if (!feedback || feedback.type === 'none') {
|
|
1147
1016
|
return undefined;
|
|
1148
1017
|
}
|
|
@@ -1150,91 +1019,27 @@ var getActualFeedback = function getActualFeedback(feedback, fallback) {
|
|
|
1150
1019
|
return feedback[feedback.type] || fallback;
|
|
1151
1020
|
};
|
|
1152
1021
|
|
|
1153
|
-
feedback.getActualFeedback = getActualFeedback;
|
|
1154
|
-
|
|
1155
|
-
(function (exports) {
|
|
1156
|
-
|
|
1157
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1158
|
-
value: true
|
|
1159
|
-
});
|
|
1160
|
-
Object.defineProperty(exports, "defaults", {
|
|
1161
|
-
enumerable: true,
|
|
1162
|
-
get: function get() {
|
|
1163
|
-
return _feedback.defaults;
|
|
1164
|
-
}
|
|
1165
|
-
});
|
|
1166
|
-
Object.defineProperty(exports, "getActualFeedback", {
|
|
1167
|
-
enumerable: true,
|
|
1168
|
-
get: function get() {
|
|
1169
|
-
return _feedback.getActualFeedback;
|
|
1170
|
-
}
|
|
1171
|
-
});
|
|
1172
|
-
Object.defineProperty(exports, "getActualFeedbackForCorrectness", {
|
|
1173
|
-
enumerable: true,
|
|
1174
|
-
get: function get() {
|
|
1175
|
-
return _feedback.getActualFeedbackForCorrectness;
|
|
1176
|
-
}
|
|
1177
|
-
});
|
|
1178
|
-
Object.defineProperty(exports, "getFeedback", {
|
|
1179
|
-
enumerable: true,
|
|
1180
|
-
get: function get() {
|
|
1181
|
-
return _feedback.getFeedback;
|
|
1182
|
-
}
|
|
1183
|
-
});
|
|
1184
|
-
Object.defineProperty(exports, "getFeedbackForCorrectness", {
|
|
1185
|
-
enumerable: true,
|
|
1186
|
-
get: function get() {
|
|
1187
|
-
return _feedback.getFeedbackForCorrectness;
|
|
1188
|
-
}
|
|
1189
|
-
});
|
|
1190
|
-
|
|
1191
|
-
var _feedback = feedback;
|
|
1192
|
-
|
|
1193
|
-
}(feedback$1));
|
|
1194
|
-
|
|
1195
1022
|
const ResponseTypes = {
|
|
1196
1023
|
advanced: 'Advanced Multi',
|
|
1197
1024
|
simple: 'Simple',
|
|
1198
1025
|
};
|
|
1199
1026
|
|
|
1200
|
-
var translator$2 = {};
|
|
1201
|
-
|
|
1202
|
-
var translator$1 = {};
|
|
1203
|
-
|
|
1204
|
-
var _typeof$1 = {exports: {}};
|
|
1205
|
-
|
|
1206
|
-
(function (module) {
|
|
1207
1027
|
function _typeof(obj) {
|
|
1208
1028
|
"@babel/helpers - typeof";
|
|
1209
1029
|
|
|
1210
|
-
return
|
|
1030
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
1211
1031
|
return typeof obj;
|
|
1212
1032
|
} : function (obj) {
|
|
1213
1033
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
1214
|
-
},
|
|
1034
|
+
}, _typeof(obj);
|
|
1215
1035
|
}
|
|
1216
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1217
|
-
}(_typeof$1));
|
|
1218
1036
|
|
|
1219
|
-
var classCallCheck = {exports: {}};
|
|
1220
|
-
|
|
1221
|
-
(function (module) {
|
|
1222
1037
|
function _classCallCheck(instance, Constructor) {
|
|
1223
1038
|
if (!(instance instanceof Constructor)) {
|
|
1224
1039
|
throw new TypeError("Cannot call a class as a function");
|
|
1225
1040
|
}
|
|
1226
1041
|
}
|
|
1227
|
-
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1228
|
-
}(classCallCheck));
|
|
1229
|
-
|
|
1230
|
-
var createClass = {exports: {}};
|
|
1231
1042
|
|
|
1232
|
-
var toPropertyKey = {exports: {}};
|
|
1233
|
-
|
|
1234
|
-
var toPrimitive = {exports: {}};
|
|
1235
|
-
|
|
1236
|
-
(function (module) {
|
|
1237
|
-
var _typeof = _typeof$1.exports["default"];
|
|
1238
1043
|
function _toPrimitive(input, hint) {
|
|
1239
1044
|
if (_typeof(input) !== "object" || input === null) return input;
|
|
1240
1045
|
var prim = input[Symbol.toPrimitive];
|
|
@@ -1245,28 +1050,19 @@ function _toPrimitive(input, hint) {
|
|
|
1245
1050
|
}
|
|
1246
1051
|
return (hint === "string" ? String : Number)(input);
|
|
1247
1052
|
}
|
|
1248
|
-
module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1249
|
-
}(toPrimitive));
|
|
1250
1053
|
|
|
1251
|
-
(function (module) {
|
|
1252
|
-
var _typeof = _typeof$1.exports["default"];
|
|
1253
|
-
var toPrimitive$1 = toPrimitive.exports;
|
|
1254
1054
|
function _toPropertyKey(arg) {
|
|
1255
|
-
var key =
|
|
1055
|
+
var key = _toPrimitive(arg, "string");
|
|
1256
1056
|
return _typeof(key) === "symbol" ? key : String(key);
|
|
1257
1057
|
}
|
|
1258
|
-
module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1259
|
-
}(toPropertyKey));
|
|
1260
1058
|
|
|
1261
|
-
(function (module) {
|
|
1262
|
-
var toPropertyKey$1 = toPropertyKey.exports;
|
|
1263
1059
|
function _defineProperties(target, props) {
|
|
1264
1060
|
for (var i = 0; i < props.length; i++) {
|
|
1265
1061
|
var descriptor = props[i];
|
|
1266
1062
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
1267
1063
|
descriptor.configurable = true;
|
|
1268
1064
|
if ("value" in descriptor) descriptor.writable = true;
|
|
1269
|
-
Object.defineProperty(target,
|
|
1065
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
1270
1066
|
}
|
|
1271
1067
|
}
|
|
1272
1068
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -1277,38 +1073,22 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
1277
1073
|
});
|
|
1278
1074
|
return Constructor;
|
|
1279
1075
|
}
|
|
1280
|
-
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1281
|
-
}(createClass));
|
|
1282
|
-
|
|
1283
|
-
var assertThisInitialized = {exports: {}};
|
|
1284
1076
|
|
|
1285
|
-
(function (module) {
|
|
1286
1077
|
function _assertThisInitialized(self) {
|
|
1287
1078
|
if (self === void 0) {
|
|
1288
1079
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1289
1080
|
}
|
|
1290
1081
|
return self;
|
|
1291
1082
|
}
|
|
1292
|
-
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1293
|
-
}(assertThisInitialized));
|
|
1294
|
-
|
|
1295
|
-
var inherits = {exports: {}};
|
|
1296
|
-
|
|
1297
|
-
var setPrototypeOf = {exports: {}};
|
|
1298
1083
|
|
|
1299
|
-
(function (module) {
|
|
1300
1084
|
function _setPrototypeOf(o, p) {
|
|
1301
|
-
|
|
1085
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
1302
1086
|
o.__proto__ = p;
|
|
1303
1087
|
return o;
|
|
1304
|
-
}
|
|
1088
|
+
};
|
|
1305
1089
|
return _setPrototypeOf(o, p);
|
|
1306
1090
|
}
|
|
1307
|
-
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1308
|
-
}(setPrototypeOf));
|
|
1309
1091
|
|
|
1310
|
-
(function (module) {
|
|
1311
|
-
var setPrototypeOf$1 = setPrototypeOf.exports;
|
|
1312
1092
|
function _inherits(subClass, superClass) {
|
|
1313
1093
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
1314
1094
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -1323,45 +1103,27 @@ function _inherits(subClass, superClass) {
|
|
|
1323
1103
|
Object.defineProperty(subClass, "prototype", {
|
|
1324
1104
|
writable: false
|
|
1325
1105
|
});
|
|
1326
|
-
if (superClass)
|
|
1106
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
1327
1107
|
}
|
|
1328
|
-
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1329
|
-
}(inherits));
|
|
1330
|
-
|
|
1331
|
-
var possibleConstructorReturn = {exports: {}};
|
|
1332
1108
|
|
|
1333
|
-
(function (module) {
|
|
1334
|
-
var _typeof = _typeof$1.exports["default"];
|
|
1335
|
-
var assertThisInitialized$1 = assertThisInitialized.exports;
|
|
1336
1109
|
function _possibleConstructorReturn(self, call) {
|
|
1337
1110
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
1338
1111
|
return call;
|
|
1339
1112
|
} else if (call !== void 0) {
|
|
1340
1113
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1341
1114
|
}
|
|
1342
|
-
return
|
|
1115
|
+
return _assertThisInitialized(self);
|
|
1343
1116
|
}
|
|
1344
|
-
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1345
|
-
}(possibleConstructorReturn));
|
|
1346
|
-
|
|
1347
|
-
var getPrototypeOf = {exports: {}};
|
|
1348
1117
|
|
|
1349
|
-
(function (module) {
|
|
1350
1118
|
function _getPrototypeOf(o) {
|
|
1351
|
-
|
|
1119
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
1352
1120
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
1353
|
-
}
|
|
1121
|
+
};
|
|
1354
1122
|
return _getPrototypeOf(o);
|
|
1355
1123
|
}
|
|
1356
|
-
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1357
|
-
}(getPrototypeOf));
|
|
1358
|
-
|
|
1359
|
-
var defineProperty = {exports: {}};
|
|
1360
1124
|
|
|
1361
|
-
(function (module) {
|
|
1362
|
-
var toPropertyKey$1 = toPropertyKey.exports;
|
|
1363
1125
|
function _defineProperty(obj, key, value) {
|
|
1364
|
-
key =
|
|
1126
|
+
key = _toPropertyKey(key);
|
|
1365
1127
|
if (key in obj) {
|
|
1366
1128
|
Object.defineProperty(obj, key, {
|
|
1367
1129
|
value: value,
|
|
@@ -1374,99 +1136,40 @@ function _defineProperty(obj, key, value) {
|
|
|
1374
1136
|
}
|
|
1375
1137
|
return obj;
|
|
1376
1138
|
}
|
|
1377
|
-
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1378
|
-
}(defineProperty));
|
|
1379
|
-
|
|
1380
|
-
var toArray = {exports: {}};
|
|
1381
1139
|
|
|
1382
|
-
var arrayWithHoles = {exports: {}};
|
|
1383
|
-
|
|
1384
|
-
(function (module) {
|
|
1385
1140
|
function _arrayWithHoles(arr) {
|
|
1386
1141
|
if (Array.isArray(arr)) return arr;
|
|
1387
1142
|
}
|
|
1388
|
-
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1389
|
-
}(arrayWithHoles));
|
|
1390
|
-
|
|
1391
|
-
var iterableToArray = {exports: {}};
|
|
1392
1143
|
|
|
1393
|
-
(function (module) {
|
|
1394
1144
|
function _iterableToArray(iter) {
|
|
1395
1145
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1396
1146
|
}
|
|
1397
|
-
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1398
|
-
}(iterableToArray));
|
|
1399
|
-
|
|
1400
|
-
var unsupportedIterableToArray = {exports: {}};
|
|
1401
1147
|
|
|
1402
|
-
var arrayLikeToArray = {exports: {}};
|
|
1403
|
-
|
|
1404
|
-
(function (module) {
|
|
1405
1148
|
function _arrayLikeToArray(arr, len) {
|
|
1406
1149
|
if (len == null || len > arr.length) len = arr.length;
|
|
1407
1150
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
1408
1151
|
return arr2;
|
|
1409
1152
|
}
|
|
1410
|
-
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1411
|
-
}(arrayLikeToArray));
|
|
1412
1153
|
|
|
1413
|
-
(function (module) {
|
|
1414
|
-
var arrayLikeToArray$1 = arrayLikeToArray.exports;
|
|
1415
1154
|
function _unsupportedIterableToArray(o, minLen) {
|
|
1416
1155
|
if (!o) return;
|
|
1417
|
-
if (typeof o === "string") return
|
|
1156
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
1418
1157
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1419
1158
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1420
1159
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1421
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
1160
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
1422
1161
|
}
|
|
1423
|
-
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1424
|
-
}(unsupportedIterableToArray));
|
|
1425
|
-
|
|
1426
|
-
var nonIterableRest = {exports: {}};
|
|
1427
1162
|
|
|
1428
|
-
(function (module) {
|
|
1429
1163
|
function _nonIterableRest() {
|
|
1430
1164
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1431
1165
|
}
|
|
1432
|
-
|
|
1433
|
-
}(nonIterableRest));
|
|
1434
|
-
|
|
1435
|
-
(function (module) {
|
|
1436
|
-
var arrayWithHoles$1 = arrayWithHoles.exports;
|
|
1437
|
-
var iterableToArray$1 = iterableToArray.exports;
|
|
1438
|
-
var unsupportedIterableToArray$1 = unsupportedIterableToArray.exports;
|
|
1439
|
-
var nonIterableRest$1 = nonIterableRest.exports;
|
|
1166
|
+
|
|
1440
1167
|
function _toArray(arr) {
|
|
1441
|
-
return
|
|
1168
|
+
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
1442
1169
|
}
|
|
1443
|
-
module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1444
|
-
}(toArray));
|
|
1445
|
-
|
|
1446
|
-
var _typeof = _typeof$1.exports;
|
|
1447
|
-
var _classCallCheck = classCallCheck.exports;
|
|
1448
|
-
var _createClass = createClass.exports;
|
|
1449
|
-
var _assertThisInitialized = assertThisInitialized.exports;
|
|
1450
|
-
var _inherits = inherits.exports;
|
|
1451
|
-
var _possibleConstructorReturn = possibleConstructorReturn.exports;
|
|
1452
|
-
var _getPrototypeOf = getPrototypeOf.exports;
|
|
1453
|
-
var _defineProperty = defineProperty.exports;
|
|
1454
|
-
var _toArray = toArray.exports;
|
|
1455
|
-
|
|
1456
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
1457
|
-
|
|
1458
|
-
var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
|
|
1459
|
-
var _classCallCheck__default = /*#__PURE__*/_interopDefaultLegacy(_classCallCheck);
|
|
1460
|
-
var _createClass__default = /*#__PURE__*/_interopDefaultLegacy(_createClass);
|
|
1461
|
-
var _assertThisInitialized__default = /*#__PURE__*/_interopDefaultLegacy(_assertThisInitialized);
|
|
1462
|
-
var _inherits__default = /*#__PURE__*/_interopDefaultLegacy(_inherits);
|
|
1463
|
-
var _possibleConstructorReturn__default = /*#__PURE__*/_interopDefaultLegacy(_possibleConstructorReturn);
|
|
1464
|
-
var _getPrototypeOf__default = /*#__PURE__*/_interopDefaultLegacy(_getPrototypeOf);
|
|
1465
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
1466
|
-
var _toArray__default = /*#__PURE__*/_interopDefaultLegacy(_toArray);
|
|
1467
1170
|
|
|
1468
1171
|
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1469
|
-
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) {
|
|
1172
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1470
1173
|
var consoleLogger = {
|
|
1471
1174
|
type: 'logger',
|
|
1472
1175
|
log: function log(args) {
|
|
@@ -1485,10 +1188,10 @@ var consoleLogger = {
|
|
|
1485
1188
|
var Logger = function () {
|
|
1486
1189
|
function Logger(concreteLogger) {
|
|
1487
1190
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1488
|
-
|
|
1191
|
+
_classCallCheck(this, Logger);
|
|
1489
1192
|
this.init(concreteLogger, options);
|
|
1490
1193
|
}
|
|
1491
|
-
|
|
1194
|
+
_createClass(Logger, [{
|
|
1492
1195
|
key: "init",
|
|
1493
1196
|
value: function init(concreteLogger) {
|
|
1494
1197
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -1562,10 +1265,10 @@ var baseLogger = new Logger();
|
|
|
1562
1265
|
|
|
1563
1266
|
var EventEmitter = function () {
|
|
1564
1267
|
function EventEmitter() {
|
|
1565
|
-
|
|
1268
|
+
_classCallCheck(this, EventEmitter);
|
|
1566
1269
|
this.observers = {};
|
|
1567
1270
|
}
|
|
1568
|
-
|
|
1271
|
+
_createClass(EventEmitter, [{
|
|
1569
1272
|
key: "on",
|
|
1570
1273
|
value: function on(events, listener) {
|
|
1571
1274
|
var _this = this;
|
|
@@ -1774,11 +1477,11 @@ function deepFind(obj, path) {
|
|
|
1774
1477
|
}
|
|
1775
1478
|
|
|
1776
1479
|
function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1777
|
-
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) {
|
|
1778
|
-
function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super =
|
|
1480
|
+
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1481
|
+
function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1779
1482
|
function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1780
1483
|
var ResourceStore = function (_EventEmitter) {
|
|
1781
|
-
|
|
1484
|
+
_inherits(ResourceStore, _EventEmitter);
|
|
1782
1485
|
var _super = _createSuper$3(ResourceStore);
|
|
1783
1486
|
function ResourceStore(data) {
|
|
1784
1487
|
var _this;
|
|
@@ -1786,10 +1489,10 @@ var ResourceStore = function (_EventEmitter) {
|
|
|
1786
1489
|
ns: ['translation'],
|
|
1787
1490
|
defaultNS: 'translation'
|
|
1788
1491
|
};
|
|
1789
|
-
|
|
1492
|
+
_classCallCheck(this, ResourceStore);
|
|
1790
1493
|
_this = _super.call(this);
|
|
1791
1494
|
if (isIE10) {
|
|
1792
|
-
EventEmitter.call(
|
|
1495
|
+
EventEmitter.call(_assertThisInitialized(_this));
|
|
1793
1496
|
}
|
|
1794
1497
|
_this.data = data || {};
|
|
1795
1498
|
_this.options = options;
|
|
@@ -1801,7 +1504,7 @@ var ResourceStore = function (_EventEmitter) {
|
|
|
1801
1504
|
}
|
|
1802
1505
|
return _this;
|
|
1803
1506
|
}
|
|
1804
|
-
|
|
1507
|
+
_createClass(ResourceStore, [{
|
|
1805
1508
|
key: "addNamespaces",
|
|
1806
1509
|
value: function addNamespaces(ns) {
|
|
1807
1510
|
if (this.options.ns.indexOf(ns) < 0) {
|
|
@@ -1946,22 +1649,22 @@ var postProcessor = {
|
|
|
1946
1649
|
};
|
|
1947
1650
|
|
|
1948
1651
|
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1949
|
-
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) {
|
|
1950
|
-
function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super =
|
|
1652
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1653
|
+
function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1951
1654
|
function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1952
1655
|
var checkedLoadedFor = {};
|
|
1953
1656
|
var Translator$1 = function (_EventEmitter) {
|
|
1954
|
-
|
|
1657
|
+
_inherits(Translator, _EventEmitter);
|
|
1955
1658
|
var _super = _createSuper$2(Translator);
|
|
1956
1659
|
function Translator(services) {
|
|
1957
1660
|
var _this;
|
|
1958
1661
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1959
|
-
|
|
1662
|
+
_classCallCheck(this, Translator);
|
|
1960
1663
|
_this = _super.call(this);
|
|
1961
1664
|
if (isIE10) {
|
|
1962
|
-
EventEmitter.call(
|
|
1665
|
+
EventEmitter.call(_assertThisInitialized(_this));
|
|
1963
1666
|
}
|
|
1964
|
-
copy(['resourceStore', 'languageUtils', 'pluralResolver', 'interpolator', 'backendConnector', 'i18nFormat', 'utils'], services,
|
|
1667
|
+
copy(['resourceStore', 'languageUtils', 'pluralResolver', 'interpolator', 'backendConnector', 'i18nFormat', 'utils'], services, _assertThisInitialized(_this));
|
|
1965
1668
|
_this.options = options;
|
|
1966
1669
|
if (_this.options.keySeparator === undefined) {
|
|
1967
1670
|
_this.options.keySeparator = '.';
|
|
@@ -1969,7 +1672,7 @@ var Translator$1 = function (_EventEmitter) {
|
|
|
1969
1672
|
_this.logger = baseLogger.create('translator');
|
|
1970
1673
|
return _this;
|
|
1971
1674
|
}
|
|
1972
|
-
|
|
1675
|
+
_createClass(Translator, [{
|
|
1973
1676
|
key: "changeLanguage",
|
|
1974
1677
|
value: function changeLanguage(lng) {
|
|
1975
1678
|
if (lng) this.language = lng;
|
|
@@ -2017,10 +1720,10 @@ var Translator$1 = function (_EventEmitter) {
|
|
|
2017
1720
|
key: "translate",
|
|
2018
1721
|
value: function translate(keys, options, lastKey) {
|
|
2019
1722
|
var _this2 = this;
|
|
2020
|
-
if (
|
|
1723
|
+
if (_typeof(options) !== 'object' && this.options.overloadTranslationOptionHandler) {
|
|
2021
1724
|
options = this.options.overloadTranslationOptionHandler(arguments);
|
|
2022
1725
|
}
|
|
2023
|
-
if (
|
|
1726
|
+
if (_typeof(options) === 'object') options = _objectSpread$4({}, options);
|
|
2024
1727
|
if (!options) options = {};
|
|
2025
1728
|
if (keys === undefined || keys === null) return '';
|
|
2026
1729
|
if (!Array.isArray(keys)) keys = [String(keys)];
|
|
@@ -2327,12 +2030,12 @@ function capitalize(string) {
|
|
|
2327
2030
|
}
|
|
2328
2031
|
var LanguageUtil = function () {
|
|
2329
2032
|
function LanguageUtil(options) {
|
|
2330
|
-
|
|
2033
|
+
_classCallCheck(this, LanguageUtil);
|
|
2331
2034
|
this.options = options;
|
|
2332
2035
|
this.supportedLngs = this.options.supportedLngs || false;
|
|
2333
2036
|
this.logger = baseLogger.create('languageUtils');
|
|
2334
2037
|
}
|
|
2335
|
-
|
|
2038
|
+
_createClass(LanguageUtil, [{
|
|
2336
2039
|
key: "getScriptPartFromCode",
|
|
2337
2040
|
value: function getScriptPartFromCode(code) {
|
|
2338
2041
|
if (!code || code.indexOf('-') < 0) return null;
|
|
@@ -2638,7 +2341,7 @@ function createRules() {
|
|
|
2638
2341
|
var PluralResolver = function () {
|
|
2639
2342
|
function PluralResolver(languageUtils) {
|
|
2640
2343
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2641
|
-
|
|
2344
|
+
_classCallCheck(this, PluralResolver);
|
|
2642
2345
|
this.languageUtils = languageUtils;
|
|
2643
2346
|
this.options = options;
|
|
2644
2347
|
this.logger = baseLogger.create('pluralResolver');
|
|
@@ -2648,7 +2351,7 @@ var PluralResolver = function () {
|
|
|
2648
2351
|
}
|
|
2649
2352
|
this.rules = createRules();
|
|
2650
2353
|
}
|
|
2651
|
-
|
|
2354
|
+
_createClass(PluralResolver, [{
|
|
2652
2355
|
key: "addRule",
|
|
2653
2356
|
value: function addRule(lng, obj) {
|
|
2654
2357
|
this.rules[lng] = obj;
|
|
@@ -2757,7 +2460,7 @@ var PluralResolver = function () {
|
|
|
2757
2460
|
}();
|
|
2758
2461
|
|
|
2759
2462
|
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2760
|
-
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) {
|
|
2463
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2761
2464
|
function deepFindWithDefaults(data, defaultData, key) {
|
|
2762
2465
|
var keySeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '.';
|
|
2763
2466
|
var ignoreJSONStructure = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
|
|
@@ -2771,7 +2474,7 @@ function deepFindWithDefaults(data, defaultData, key) {
|
|
|
2771
2474
|
var Interpolator = function () {
|
|
2772
2475
|
function Interpolator() {
|
|
2773
2476
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
2774
|
-
|
|
2477
|
+
_classCallCheck(this, Interpolator);
|
|
2775
2478
|
this.logger = baseLogger.create('interpolator');
|
|
2776
2479
|
this.options = options;
|
|
2777
2480
|
this.format = options.interpolation && options.interpolation.format || function (value) {
|
|
@@ -2779,7 +2482,7 @@ var Interpolator = function () {
|
|
|
2779
2482
|
};
|
|
2780
2483
|
this.init(options);
|
|
2781
2484
|
}
|
|
2782
|
-
|
|
2485
|
+
_createClass(Interpolator, [{
|
|
2783
2486
|
key: "init",
|
|
2784
2487
|
value: function init() {
|
|
2785
2488
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -2962,7 +2665,7 @@ var Interpolator = function () {
|
|
|
2962
2665
|
}();
|
|
2963
2666
|
|
|
2964
2667
|
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2965
|
-
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) {
|
|
2668
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2966
2669
|
function parseFormatStr(formatStr) {
|
|
2967
2670
|
var formatName = formatStr.toLowerCase().trim();
|
|
2968
2671
|
var formatOptions = {};
|
|
@@ -2979,7 +2682,7 @@ function parseFormatStr(formatStr) {
|
|
|
2979
2682
|
opts.forEach(function (opt) {
|
|
2980
2683
|
if (!opt) return;
|
|
2981
2684
|
var _opt$split = opt.split(':'),
|
|
2982
|
-
_opt$split2 =
|
|
2685
|
+
_opt$split2 = _toArray(_opt$split),
|
|
2983
2686
|
key = _opt$split2[0],
|
|
2984
2687
|
rest = _opt$split2.slice(1);
|
|
2985
2688
|
var val = rest.join(':').trim().replace(/^'+|'+$/g, '');
|
|
@@ -3010,7 +2713,7 @@ function createCachedFormatter(fn) {
|
|
|
3010
2713
|
var Formatter = function () {
|
|
3011
2714
|
function Formatter() {
|
|
3012
2715
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
3013
|
-
|
|
2716
|
+
_classCallCheck(this, Formatter);
|
|
3014
2717
|
this.logger = baseLogger.create('formatter');
|
|
3015
2718
|
this.options = options;
|
|
3016
2719
|
this.formats = {
|
|
@@ -3049,7 +2752,7 @@ var Formatter = function () {
|
|
|
3049
2752
|
};
|
|
3050
2753
|
this.init(options);
|
|
3051
2754
|
}
|
|
3052
|
-
|
|
2755
|
+
_createClass(Formatter, [{
|
|
3053
2756
|
key: "init",
|
|
3054
2757
|
value: function init(services) {
|
|
3055
2758
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
@@ -3100,8 +2803,8 @@ var Formatter = function () {
|
|
|
3100
2803
|
}();
|
|
3101
2804
|
|
|
3102
2805
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3103
|
-
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
|
|
3104
|
-
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super =
|
|
2806
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2807
|
+
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3105
2808
|
function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
3106
2809
|
function removePending(q, name) {
|
|
3107
2810
|
if (q.pending[name] !== undefined) {
|
|
@@ -3110,15 +2813,15 @@ function removePending(q, name) {
|
|
|
3110
2813
|
}
|
|
3111
2814
|
}
|
|
3112
2815
|
var Connector = function (_EventEmitter) {
|
|
3113
|
-
|
|
2816
|
+
_inherits(Connector, _EventEmitter);
|
|
3114
2817
|
var _super = _createSuper$1(Connector);
|
|
3115
2818
|
function Connector(backend, store, services) {
|
|
3116
2819
|
var _this;
|
|
3117
2820
|
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
3118
|
-
|
|
2821
|
+
_classCallCheck(this, Connector);
|
|
3119
2822
|
_this = _super.call(this);
|
|
3120
2823
|
if (isIE10) {
|
|
3121
|
-
EventEmitter.call(
|
|
2824
|
+
EventEmitter.call(_assertThisInitialized(_this));
|
|
3122
2825
|
}
|
|
3123
2826
|
_this.backend = backend;
|
|
3124
2827
|
_this.store = store;
|
|
@@ -3138,7 +2841,7 @@ var Connector = function (_EventEmitter) {
|
|
|
3138
2841
|
}
|
|
3139
2842
|
return _this;
|
|
3140
2843
|
}
|
|
3141
|
-
|
|
2844
|
+
_createClass(Connector, [{
|
|
3142
2845
|
key: "queueLoad",
|
|
3143
2846
|
value: function queueLoad(languages, namespaces, options, callback) {
|
|
3144
2847
|
var _this2 = this;
|
|
@@ -3398,10 +3101,10 @@ function get() {
|
|
|
3398
3101
|
appendNamespaceToCIMode: false,
|
|
3399
3102
|
overloadTranslationOptionHandler: function handle(args) {
|
|
3400
3103
|
var ret = {};
|
|
3401
|
-
if (
|
|
3104
|
+
if (_typeof(args[1]) === 'object') ret = args[1];
|
|
3402
3105
|
if (typeof args[1] === 'string') ret.defaultValue = args[1];
|
|
3403
3106
|
if (typeof args[2] === 'string') ret.tDescription = args[2];
|
|
3404
|
-
if (
|
|
3107
|
+
if (_typeof(args[2]) === 'object' || _typeof(args[3]) === 'object') {
|
|
3405
3108
|
var options = args[3] || args[2];
|
|
3406
3109
|
Object.keys(options).forEach(function (key) {
|
|
3407
3110
|
ret[key] = options[key];
|
|
@@ -3437,8 +3140,8 @@ function transformOptions(options) {
|
|
|
3437
3140
|
}
|
|
3438
3141
|
|
|
3439
3142
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3440
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
3441
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super =
|
|
3143
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3144
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3442
3145
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
3443
3146
|
function noop() {}
|
|
3444
3147
|
function bindMemberFunctions(inst) {
|
|
@@ -3450,16 +3153,16 @@ function bindMemberFunctions(inst) {
|
|
|
3450
3153
|
});
|
|
3451
3154
|
}
|
|
3452
3155
|
var I18n = function (_EventEmitter) {
|
|
3453
|
-
|
|
3156
|
+
_inherits(I18n, _EventEmitter);
|
|
3454
3157
|
var _super = _createSuper(I18n);
|
|
3455
3158
|
function I18n() {
|
|
3456
3159
|
var _this;
|
|
3457
3160
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
3458
3161
|
var callback = arguments.length > 1 ? arguments[1] : undefined;
|
|
3459
|
-
|
|
3162
|
+
_classCallCheck(this, I18n);
|
|
3460
3163
|
_this = _super.call(this);
|
|
3461
3164
|
if (isIE10) {
|
|
3462
|
-
EventEmitter.call(
|
|
3165
|
+
EventEmitter.call(_assertThisInitialized(_this));
|
|
3463
3166
|
}
|
|
3464
3167
|
_this.options = transformOptions(options);
|
|
3465
3168
|
_this.services = {};
|
|
@@ -3467,11 +3170,11 @@ var I18n = function (_EventEmitter) {
|
|
|
3467
3170
|
_this.modules = {
|
|
3468
3171
|
external: []
|
|
3469
3172
|
};
|
|
3470
|
-
bindMemberFunctions(
|
|
3173
|
+
bindMemberFunctions(_assertThisInitialized(_this));
|
|
3471
3174
|
if (callback && !_this.isInitialized && !options.isClone) {
|
|
3472
3175
|
if (!_this.options.initImmediate) {
|
|
3473
3176
|
_this.init(options, callback);
|
|
3474
|
-
return
|
|
3177
|
+
return _possibleConstructorReturn(_this, _assertThisInitialized(_this));
|
|
3475
3178
|
}
|
|
3476
3179
|
setTimeout(function () {
|
|
3477
3180
|
_this.init(options, callback);
|
|
@@ -3479,7 +3182,7 @@ var I18n = function (_EventEmitter) {
|
|
|
3479
3182
|
}
|
|
3480
3183
|
return _this;
|
|
3481
3184
|
}
|
|
3482
|
-
|
|
3185
|
+
_createClass(I18n, [{
|
|
3483
3186
|
key: "init",
|
|
3484
3187
|
value: function init() {
|
|
3485
3188
|
var _this2 = this;
|
|
@@ -3771,7 +3474,7 @@ var I18n = function (_EventEmitter) {
|
|
|
3771
3474
|
var _this5 = this;
|
|
3772
3475
|
var fixedT = function fixedT(key, opts) {
|
|
3773
3476
|
var options;
|
|
3774
|
-
if (
|
|
3477
|
+
if (_typeof(opts) !== 'object') {
|
|
3775
3478
|
for (var _len3 = arguments.length, rest = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) {
|
|
3776
3479
|
rest[_key3 - 2] = arguments[_key3];
|
|
3777
3480
|
}
|
|
@@ -3947,7 +3650,7 @@ var I18n = function (_EventEmitter) {
|
|
|
3947
3650
|
}]);
|
|
3948
3651
|
return I18n;
|
|
3949
3652
|
}(EventEmitter);
|
|
3950
|
-
|
|
3653
|
+
_defineProperty(I18n, "createInstance", function () {
|
|
3951
3654
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
3952
3655
|
var callback = arguments.length > 1 ? arguments[1] : undefined;
|
|
3953
3656
|
return new I18n(options, callback);
|
|
@@ -3955,33 +3658,41 @@ _defineProperty__default["default"](I18n, "createInstance", function () {
|
|
|
3955
3658
|
var instance = I18n.createInstance();
|
|
3956
3659
|
instance.createInstance = I18n.createInstance;
|
|
3957
3660
|
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3661
|
+
instance.createInstance;
|
|
3662
|
+
instance.dir;
|
|
3663
|
+
instance.init;
|
|
3664
|
+
instance.loadResources;
|
|
3665
|
+
instance.reloadResources;
|
|
3666
|
+
instance.use;
|
|
3667
|
+
instance.changeLanguage;
|
|
3668
|
+
instance.getFixedT;
|
|
3669
|
+
instance.t;
|
|
3670
|
+
instance.exists;
|
|
3671
|
+
instance.setDefaultNamespace;
|
|
3672
|
+
instance.hasLoadedNamespace;
|
|
3673
|
+
instance.loadNamespaces;
|
|
3674
|
+
instance.loadLanguages;
|
|
3675
|
+
|
|
3676
|
+
var en = {
|
|
3969
3677
|
translation: {
|
|
3970
3678
|
categorize: {
|
|
3971
|
-
limitMaxChoicesPerCategory:
|
|
3972
|
-
|
|
3679
|
+
limitMaxChoicesPerCategory:
|
|
3680
|
+
"You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
|
|
3681
|
+
maxChoicesPerCategoryRestriction:
|
|
3682
|
+
'To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].',
|
|
3973
3683
|
},
|
|
3974
3684
|
ebsr: {
|
|
3975
|
-
part: 'Part {{index}}'
|
|
3685
|
+
part: 'Part {{index}}',
|
|
3976
3686
|
},
|
|
3977
3687
|
numberLine: {
|
|
3978
3688
|
addElementLimit_one: 'You can only add {{count}} element',
|
|
3979
3689
|
addElementLimit_other: 'You can only add {{count}} elements',
|
|
3980
|
-
clearAll: 'Clear all'
|
|
3690
|
+
clearAll: 'Clear all',
|
|
3981
3691
|
},
|
|
3982
3692
|
imageClozeAssociation: {
|
|
3983
|
-
reachedLimit_one:
|
|
3984
|
-
|
|
3693
|
+
reachedLimit_one:
|
|
3694
|
+
'You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.',
|
|
3695
|
+
reachedLimit_other: 'Full',
|
|
3985
3696
|
},
|
|
3986
3697
|
drawingResponse: {
|
|
3987
3698
|
fillColor: 'Fill color',
|
|
@@ -3997,20 +3708,20 @@ var _default = {
|
|
|
3997
3708
|
green: 'Green',
|
|
3998
3709
|
white: 'White',
|
|
3999
3710
|
black: 'Black',
|
|
4000
|
-
onDoubleClick: 'Double click to edit this text. Press Enter to submit.'
|
|
3711
|
+
onDoubleClick: 'Double click to edit this text. Press Enter to submit.',
|
|
4001
3712
|
},
|
|
4002
3713
|
charting: {
|
|
4003
3714
|
addCategory: 'Add category',
|
|
4004
3715
|
actions: 'Actions',
|
|
4005
3716
|
add: 'Add',
|
|
4006
|
-
|
|
3717
|
+
delete: 'Delete',
|
|
4007
3718
|
newLabel: 'New label',
|
|
4008
3719
|
reachedLimit_other: "There can't be more than {{count}} categories.",
|
|
4009
3720
|
keyLegend: {
|
|
4010
3721
|
incorrectAnswer: 'Student incorrect answer',
|
|
4011
3722
|
correctAnswer: 'Student correct answer',
|
|
4012
|
-
correctKeyAnswer: 'Answer key correct'
|
|
4013
|
-
}
|
|
3723
|
+
correctKeyAnswer: 'Answer key correct',
|
|
3724
|
+
},
|
|
4014
3725
|
},
|
|
4015
3726
|
graphing: {
|
|
4016
3727
|
point: 'Point',
|
|
@@ -4026,24 +3737,25 @@ var _default = {
|
|
|
4026
3737
|
vector: 'Vector',
|
|
4027
3738
|
label: 'Label',
|
|
4028
3739
|
redo: 'Redo',
|
|
4029
|
-
reset: 'Reset'
|
|
3740
|
+
reset: 'Reset',
|
|
4030
3741
|
},
|
|
4031
3742
|
mathInline: {
|
|
4032
|
-
primaryCorrectWithAlternates:
|
|
3743
|
+
primaryCorrectWithAlternates:
|
|
3744
|
+
'Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.',
|
|
4033
3745
|
},
|
|
4034
3746
|
multipleChoice: {
|
|
4035
3747
|
minSelections: 'Select at least {{minSelections}}.',
|
|
4036
3748
|
maxSelections_one: 'Only {{maxSelections}} answer is allowed.',
|
|
4037
3749
|
maxSelections_other: 'Only {{maxSelections}} answers are allowed.',
|
|
4038
3750
|
minmaxSelections_equal: 'Select {{minSelections}}.',
|
|
4039
|
-
minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.'
|
|
3751
|
+
minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.',
|
|
4040
3752
|
},
|
|
4041
3753
|
selectText: {
|
|
4042
3754
|
correctAnswerSelected: 'Correct',
|
|
4043
3755
|
correctAnswerNotSelected: 'Correct Answer Not Selected',
|
|
4044
3756
|
incorrectSelection: 'Incorrect Selection',
|
|
4045
|
-
key: 'Key'
|
|
4046
|
-
}
|
|
3757
|
+
key: 'Key',
|
|
3758
|
+
},
|
|
4047
3759
|
},
|
|
4048
3760
|
common: {
|
|
4049
3761
|
undo: 'Undo',
|
|
@@ -4052,42 +3764,35 @@ var _default = {
|
|
|
4052
3764
|
incorrect: 'Incorrect',
|
|
4053
3765
|
showCorrectAnswer: 'Show correct answer',
|
|
4054
3766
|
hideCorrectAnswer: 'Hide correct answer',
|
|
4055
|
-
commonCorrectAnswerWithAlternates:
|
|
3767
|
+
commonCorrectAnswerWithAlternates:
|
|
3768
|
+
'Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.',
|
|
4056
3769
|
warning: 'Warning',
|
|
4057
3770
|
showNote: 'Show Note',
|
|
4058
3771
|
hideNote: 'Hide Note',
|
|
4059
|
-
cancel: 'Cancel'
|
|
4060
|
-
}
|
|
3772
|
+
cancel: 'Cancel',
|
|
3773
|
+
},
|
|
4061
3774
|
};
|
|
4062
|
-
exports["default"] = _default;
|
|
4063
|
-
|
|
4064
|
-
}(en));
|
|
4065
|
-
|
|
4066
|
-
var es = {};
|
|
4067
3775
|
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4071
|
-
value: true
|
|
4072
|
-
});
|
|
4073
|
-
exports["default"] = void 0;
|
|
4074
|
-
var _default = {
|
|
3776
|
+
var es = {
|
|
4075
3777
|
translation: {
|
|
4076
3778
|
categorize: {
|
|
4077
|
-
limitMaxChoicesPerCategory:
|
|
4078
|
-
|
|
3779
|
+
limitMaxChoicesPerCategory:
|
|
3780
|
+
'Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
|
|
3781
|
+
maxChoicesPerCategoryRestriction:
|
|
3782
|
+
'Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta',
|
|
4079
3783
|
},
|
|
4080
3784
|
ebsr: {
|
|
4081
|
-
part: 'Parte {{index}}'
|
|
3785
|
+
part: 'Parte {{index}}',
|
|
4082
3786
|
},
|
|
4083
3787
|
numberLine: {
|
|
4084
3788
|
addElementLimit_one: 'Solo puedes agregar {{count}} elemento',
|
|
4085
3789
|
addElementLimit_other: 'Solo puedes agregar {{count}} elementos',
|
|
4086
|
-
clearAll: 'Borrar todo'
|
|
3790
|
+
clearAll: 'Borrar todo',
|
|
4087
3791
|
},
|
|
4088
3792
|
imageClozeAssociation: {
|
|
4089
|
-
reachedLimit_one:
|
|
4090
|
-
|
|
3793
|
+
reachedLimit_one:
|
|
3794
|
+
'Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
|
|
3795
|
+
reachedLimit_other: 'Lleno',
|
|
4091
3796
|
},
|
|
4092
3797
|
drawingResponse: {
|
|
4093
3798
|
fillColor: 'Color de relleno',
|
|
@@ -4103,20 +3808,20 @@ var _default = {
|
|
|
4103
3808
|
green: 'Verde',
|
|
4104
3809
|
white: 'Blanco',
|
|
4105
3810
|
black: 'Negro',
|
|
4106
|
-
onDoubleClick: 'Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar'
|
|
3811
|
+
onDoubleClick: 'Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar',
|
|
4107
3812
|
},
|
|
4108
3813
|
charting: {
|
|
4109
3814
|
addCategory: 'Añadir categoría',
|
|
4110
3815
|
actions: 'Acciones',
|
|
4111
3816
|
add: 'Añadir',
|
|
4112
|
-
|
|
3817
|
+
delete: 'Eliminar',
|
|
4113
3818
|
newLabel: 'Nueva etiqueta',
|
|
4114
3819
|
reachedLimit_other: 'No puede haber más de {{count}} categorías.',
|
|
4115
3820
|
keyLegend: {
|
|
4116
3821
|
incorrectAnswer: 'Respuesta incorrecta del estudiante',
|
|
4117
3822
|
correctAnswer: 'Respuesta correcta del estudiante',
|
|
4118
|
-
correctKeyAnswer: 'Clave de respuesta correcta'
|
|
4119
|
-
}
|
|
3823
|
+
correctKeyAnswer: 'Clave de respuesta correcta',
|
|
3824
|
+
},
|
|
4120
3825
|
},
|
|
4121
3826
|
graphing: {
|
|
4122
3827
|
point: 'Punto',
|
|
@@ -4132,24 +3837,25 @@ var _default = {
|
|
|
4132
3837
|
vector: 'Vector',
|
|
4133
3838
|
label: 'Etiqueta',
|
|
4134
3839
|
redo: 'Rehacer',
|
|
4135
|
-
reset: 'Reiniciar'
|
|
3840
|
+
reset: 'Reiniciar',
|
|
4136
3841
|
},
|
|
4137
3842
|
mathInline: {
|
|
4138
|
-
primaryCorrectWithAlternates:
|
|
3843
|
+
primaryCorrectWithAlternates:
|
|
3844
|
+
'Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.',
|
|
4139
3845
|
},
|
|
4140
3846
|
multipleChoice: {
|
|
4141
3847
|
minSelections: 'Seleccione al menos {{minSelections}}.',
|
|
4142
3848
|
maxSelections_one: 'Sólo se permite {{maxSelections}} respuesta.',
|
|
4143
3849
|
maxSelections_other: 'Sólo se permiten {{maxSelections}} respuestas.',
|
|
4144
3850
|
minmaxSelections_equal: 'Seleccione {{minSelections}}.',
|
|
4145
|
-
minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.'
|
|
3851
|
+
minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.',
|
|
4146
3852
|
},
|
|
4147
3853
|
selectText: {
|
|
4148
3854
|
correctAnswerSelected: 'Respuesta Correcta',
|
|
4149
3855
|
correctAnswerNotSelected: 'Respuesta Correcta No Seleccionada',
|
|
4150
3856
|
incorrectSelection: 'Selección Incorrecta',
|
|
4151
|
-
key: 'Clave'
|
|
4152
|
-
}
|
|
3857
|
+
key: 'Clave',
|
|
3858
|
+
},
|
|
4153
3859
|
},
|
|
4154
3860
|
common: {
|
|
4155
3861
|
undo: 'Deshacer',
|
|
@@ -4158,108 +3864,52 @@ var _default = {
|
|
|
4158
3864
|
incorrect: 'Incorrect',
|
|
4159
3865
|
showCorrectAnswer: 'Mostrar respuesta correcta',
|
|
4160
3866
|
hideCorrectAnswer: 'Ocultar respuesta correcta',
|
|
4161
|
-
commonCorrectAnswerWithAlternates:
|
|
3867
|
+
commonCorrectAnswerWithAlternates:
|
|
3868
|
+
'Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.',
|
|
4162
3869
|
warning: 'Advertencia',
|
|
4163
3870
|
showNote: 'Mostrar Nota',
|
|
4164
3871
|
hideNote: 'Ocultar Nota',
|
|
4165
|
-
cancel: 'Cancelar'
|
|
4166
|
-
}
|
|
3872
|
+
cancel: 'Cancelar',
|
|
3873
|
+
},
|
|
4167
3874
|
};
|
|
4168
|
-
exports["default"] = _default;
|
|
4169
|
-
|
|
4170
|
-
}(es));
|
|
4171
|
-
|
|
4172
|
-
(function (exports) {
|
|
4173
|
-
|
|
4174
|
-
var _interopRequireDefault = interopRequireDefault.exports;
|
|
4175
|
-
|
|
4176
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4177
|
-
value: true
|
|
4178
|
-
});
|
|
4179
|
-
exports["default"] = void 0;
|
|
4180
|
-
|
|
4181
|
-
var _defineProperty2 = _interopRequireDefault(defineProperty$1.exports);
|
|
4182
|
-
|
|
4183
|
-
var _i18next = _interopRequireDefault(i18next);
|
|
4184
|
-
|
|
4185
|
-
var _en = _interopRequireDefault(en);
|
|
4186
|
-
|
|
4187
|
-
var _es = _interopRequireDefault(es);
|
|
4188
|
-
|
|
4189
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4190
|
-
|
|
4191
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4192
3875
|
|
|
4193
|
-
|
|
4194
|
-
fallbackLng:
|
|
4195
|
-
lng:
|
|
3876
|
+
instance.init({
|
|
3877
|
+
fallbackLng: 'en',
|
|
3878
|
+
lng: 'en',
|
|
4196
3879
|
debug: true,
|
|
4197
3880
|
resources: {
|
|
4198
|
-
en:
|
|
4199
|
-
es:
|
|
4200
|
-
}
|
|
3881
|
+
en: en,
|
|
3882
|
+
es: es,
|
|
3883
|
+
},
|
|
4201
3884
|
});
|
|
4202
3885
|
|
|
4203
|
-
var
|
|
4204
|
-
translator:
|
|
4205
|
-
|
|
4206
|
-
|
|
3886
|
+
var Translator = {
|
|
3887
|
+
translator: {
|
|
3888
|
+
...instance,
|
|
3889
|
+
t: (key, options) => {
|
|
3890
|
+
const { lng } = options;
|
|
4207
3891
|
|
|
4208
3892
|
switch (lng) {
|
|
4209
3893
|
// these keys don't work with plurals, don't know why, so I added a workaround to convert them to the correct lng
|
|
4210
|
-
case
|
|
4211
|
-
case
|
|
4212
|
-
options.lng =
|
|
3894
|
+
case 'en_US':
|
|
3895
|
+
case 'en-US':
|
|
3896
|
+
options.lng = 'en';
|
|
4213
3897
|
break;
|
|
4214
|
-
|
|
4215
|
-
case
|
|
4216
|
-
case
|
|
4217
|
-
case
|
|
4218
|
-
|
|
4219
|
-
options.lng = "es";
|
|
3898
|
+
case 'es_ES':
|
|
3899
|
+
case 'es-ES':
|
|
3900
|
+
case 'es_MX':
|
|
3901
|
+
case 'es-MX':
|
|
3902
|
+
options.lng = 'es';
|
|
4220
3903
|
break;
|
|
4221
3904
|
}
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
}
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
value: "en_US",
|
|
4230
|
-
label: "English (US)"
|
|
4231
|
-
}, {
|
|
4232
|
-
value: "es_ES",
|
|
4233
|
-
label: "Spanish"
|
|
4234
|
-
}]
|
|
3905
|
+
return instance.t(key, { lng, ...options });
|
|
3906
|
+
},
|
|
3907
|
+
},
|
|
3908
|
+
languageOptions: [
|
|
3909
|
+
{ value: 'en_US', label: 'English (US)' },
|
|
3910
|
+
{ value: 'es_ES', label: 'Spanish' },
|
|
3911
|
+
],
|
|
4235
3912
|
};
|
|
4236
|
-
exports["default"] = _default;
|
|
4237
|
-
|
|
4238
|
-
}(translator$1));
|
|
4239
|
-
|
|
4240
|
-
(function (exports) {
|
|
4241
|
-
|
|
4242
|
-
var _interopRequireDefault = interopRequireDefault.exports;
|
|
4243
|
-
|
|
4244
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4245
|
-
value: true
|
|
4246
|
-
});
|
|
4247
|
-
Object.defineProperty(exports, "Translator", {
|
|
4248
|
-
enumerable: true,
|
|
4249
|
-
get: function get() {
|
|
4250
|
-
return _translator["default"];
|
|
4251
|
-
}
|
|
4252
|
-
});
|
|
4253
|
-
exports["default"] = void 0;
|
|
4254
|
-
|
|
4255
|
-
var _translator = _interopRequireDefault(translator$1);
|
|
4256
|
-
|
|
4257
|
-
var _default = _translator["default"];
|
|
4258
|
-
exports["default"] = _default;
|
|
4259
|
-
|
|
4260
|
-
}(translator$2));
|
|
4261
|
-
|
|
4262
|
-
var Translator = /*@__PURE__*/getDefaultExportFromCjs(translator$2);
|
|
4263
3913
|
|
|
4264
3914
|
var defaults = {
|
|
4265
3915
|
allowTrailingZerosDefault: false,
|
|
@@ -4423,7 +4073,7 @@ const model = (question, session, env) =>
|
|
|
4423
4073
|
|
|
4424
4074
|
const feedback =
|
|
4425
4075
|
env.mode === 'evaluate' && normalizedQuestion.feedbackEnabled
|
|
4426
|
-
?
|
|
4076
|
+
? getActualFeedbackForCorrectness(correctness?.correctness, normalizedQuestion.feedback)
|
|
4427
4077
|
: undefined;
|
|
4428
4078
|
|
|
4429
4079
|
const out = {
|