@pie-element/explicit-constructed-response 7.3.2-next.54 → 7.3.2
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/CHANGELOG.md +11 -0
- package/configure/CHANGELOG.md +11 -0
- package/configure/package.json +2 -2
- package/controller/CHANGELOG.md +11 -0
- package/controller/package.json +2 -2
- package/module/configure.js +1 -1
- package/module/element.js +301 -204
- package/module/manifest.json +1 -1
- package/module/print.js +301 -204
- package/package.json +3 -3
package/module/element.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.3.0/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.10.0/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
5
5
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -7198,7 +7198,7 @@ function quoteString(value) {
|
|
|
7198
7198
|
function has$1(collection, key) {
|
|
7199
7199
|
return isImmutable(collection) ? collection.has(key) : isDataStructure(collection) && hasOwnProperty$2.call(collection, key);
|
|
7200
7200
|
}
|
|
7201
|
-
function get$
|
|
7201
|
+
function get$3(collection, key, notSetValue) {
|
|
7202
7202
|
return isImmutable(collection) ? collection.get(key, notSetValue) : !has$1(collection, key) ? notSetValue : typeof collection.get === 'function' ? collection.get(key) : collection[key];
|
|
7203
7203
|
}
|
|
7204
7204
|
function shallowCopy(from) {
|
|
@@ -7270,7 +7270,7 @@ function updateInDeeply(inImmutable, existing, keyPath, i, notSetValue, updater)
|
|
|
7270
7270
|
throw new TypeError('Cannot update within non-data-structure value in path [' + keyPath.slice(0, i).map(quoteString) + ']: ' + existing);
|
|
7271
7271
|
}
|
|
7272
7272
|
var key = keyPath[i];
|
|
7273
|
-
var nextExisting = wasNotSet ? NOT_SET : get$
|
|
7273
|
+
var nextExisting = wasNotSet ? NOT_SET : get$3(existing, key, NOT_SET);
|
|
7274
7274
|
var nextUpdated = updateInDeeply(nextExisting === NOT_SET ? inImmutable : isImmutable(nextExisting), nextExisting, keyPath, i + 1, notSetValue, updater);
|
|
7275
7275
|
return nextUpdated === nextExisting ? existing : nextUpdated === NOT_SET ? remove(existing, key) : set$h(wasNotSet ? inImmutable ? emptyMap() : {} : existing, key, nextUpdated);
|
|
7276
7276
|
}
|
|
@@ -9223,7 +9223,7 @@ function getIn$1(collection, searchKeyPath, notSetValue) {
|
|
|
9223
9223
|
var keyPath = coerceKeyPath(searchKeyPath);
|
|
9224
9224
|
var i = 0;
|
|
9225
9225
|
while (i !== keyPath.length) {
|
|
9226
|
-
collection = get$
|
|
9226
|
+
collection = get$3(collection, keyPath[i++], NOT_SET);
|
|
9227
9227
|
if (collection === NOT_SET) {
|
|
9228
9228
|
return notSetValue;
|
|
9229
9229
|
}
|
|
@@ -10099,7 +10099,7 @@ var Immutable$1 = {
|
|
|
10099
10099
|
isSet: isSet,
|
|
10100
10100
|
isOrderedSet: isOrderedSet,
|
|
10101
10101
|
isRecord: isRecord,
|
|
10102
|
-
get: get$
|
|
10102
|
+
get: get$3,
|
|
10103
10103
|
getIn: getIn$1,
|
|
10104
10104
|
has: has$1,
|
|
10105
10105
|
hasIn: hasIn$1,
|
|
@@ -10131,7 +10131,7 @@ var immutable_es = Object.freeze({
|
|
|
10131
10131
|
Set: Set$1,
|
|
10132
10132
|
Stack: Stack$2,
|
|
10133
10133
|
fromJS: fromJS,
|
|
10134
|
-
get: get$
|
|
10134
|
+
get: get$3,
|
|
10135
10135
|
getIn: getIn$1,
|
|
10136
10136
|
has: has$1,
|
|
10137
10137
|
hasIn: hasIn$1,
|
|
@@ -19519,6 +19519,45 @@ getDefaultExportFromCjs(nonIterableSpread.exports);
|
|
|
19519
19519
|
(module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports);
|
|
19520
19520
|
})(toConsumableArray$1);
|
|
19521
19521
|
getDefaultExportFromCjs(toConsumableArray$1.exports);
|
|
19522
|
+
var get$2 = {
|
|
19523
|
+
exports: {}
|
|
19524
|
+
};
|
|
19525
|
+
var superPropBase = {
|
|
19526
|
+
exports: {}
|
|
19527
|
+
};
|
|
19528
|
+
(function (module) {
|
|
19529
|
+
var getPrototypeOf = getPrototypeOf$2.exports;
|
|
19530
|
+
function _superPropBase(object, property) {
|
|
19531
|
+
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
|
19532
|
+
object = getPrototypeOf(object);
|
|
19533
|
+
if (object === null) break;
|
|
19534
|
+
}
|
|
19535
|
+
return object;
|
|
19536
|
+
}
|
|
19537
|
+
(module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports);
|
|
19538
|
+
})(superPropBase);
|
|
19539
|
+
getDefaultExportFromCjs(superPropBase.exports);
|
|
19540
|
+
(function (module) {
|
|
19541
|
+
var superPropBase$1 = superPropBase.exports;
|
|
19542
|
+
function _get() {
|
|
19543
|
+
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
19544
|
+
(module.exports = _get = Reflect.get, module.exports.__esModule = true, module.exports["default"] = module.exports);
|
|
19545
|
+
} else {
|
|
19546
|
+
(module.exports = _get = function _get(target, property, receiver) {
|
|
19547
|
+
var base = superPropBase$1(target, property);
|
|
19548
|
+
if (!base) return;
|
|
19549
|
+
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
19550
|
+
if (desc.get) {
|
|
19551
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
19552
|
+
}
|
|
19553
|
+
return desc.value;
|
|
19554
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports);
|
|
19555
|
+
}
|
|
19556
|
+
return _get.apply(this, arguments);
|
|
19557
|
+
}
|
|
19558
|
+
(module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports);
|
|
19559
|
+
})(get$2);
|
|
19560
|
+
getDefaultExportFromCjs(get$2.exports);
|
|
19522
19561
|
var mathjax = {};
|
|
19523
19562
|
var version = {};
|
|
19524
19563
|
Object.defineProperty(version, "__esModule", {
|
|
@@ -49118,10 +49157,198 @@ function MenuHandler(handler) {
|
|
|
49118
49157
|
return handler;
|
|
49119
49158
|
}
|
|
49120
49159
|
MenuHandler$1.MenuHandler = MenuHandler;
|
|
49160
|
+
var FindMathML$1 = {};
|
|
49161
|
+
var FindMath = {};
|
|
49162
|
+
Object.defineProperty(FindMath, "__esModule", {
|
|
49163
|
+
value: true
|
|
49164
|
+
});
|
|
49165
|
+
FindMath.AbstractFindMath = void 0;
|
|
49166
|
+
var Options_js_1$d = Options$2;
|
|
49167
|
+
var AbstractFindMath = (function () {
|
|
49168
|
+
function AbstractFindMath(options) {
|
|
49169
|
+
var CLASS = this.constructor;
|
|
49170
|
+
this.options = (0, Options_js_1$d.userOptions)((0, Options_js_1$d.defaultOptions)({}, CLASS.OPTIONS), options);
|
|
49171
|
+
}
|
|
49172
|
+
AbstractFindMath.OPTIONS = {};
|
|
49173
|
+
return AbstractFindMath;
|
|
49174
|
+
})();
|
|
49175
|
+
FindMath.AbstractFindMath = AbstractFindMath;
|
|
49176
|
+
var __extends$1K = commonjsGlobal && commonjsGlobal.__extends || (function () {
|
|
49177
|
+
var extendStatics = function (d, b) {
|
|
49178
|
+
extendStatics = Object.setPrototypeOf || ({
|
|
49179
|
+
__proto__: []
|
|
49180
|
+
}) instanceof Array && (function (d, b) {
|
|
49181
|
+
d.__proto__ = b;
|
|
49182
|
+
}) || (function (d, b) {
|
|
49183
|
+
for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
49184
|
+
});
|
|
49185
|
+
return extendStatics(d, b);
|
|
49186
|
+
};
|
|
49187
|
+
return function (d, b) {
|
|
49188
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
49189
|
+
extendStatics(d, b);
|
|
49190
|
+
function __() {
|
|
49191
|
+
this.constructor = d;
|
|
49192
|
+
}
|
|
49193
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49194
|
+
};
|
|
49195
|
+
})();
|
|
49196
|
+
var __values$G = commonjsGlobal && commonjsGlobal.__values || (function (o) {
|
|
49197
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
49198
|
+
if (m) return m.call(o);
|
|
49199
|
+
if (o && typeof o.length === "number") return {
|
|
49200
|
+
next: function () {
|
|
49201
|
+
if (o && i >= o.length) o = void 0;
|
|
49202
|
+
return {
|
|
49203
|
+
value: o && o[i++],
|
|
49204
|
+
done: !o
|
|
49205
|
+
};
|
|
49206
|
+
}
|
|
49207
|
+
};
|
|
49208
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
49209
|
+
});
|
|
49210
|
+
Object.defineProperty(FindMathML$1, "__esModule", {
|
|
49211
|
+
value: true
|
|
49212
|
+
});
|
|
49213
|
+
FindMathML$1.FindMathML = void 0;
|
|
49214
|
+
var FindMath_js_1$1 = FindMath;
|
|
49215
|
+
var NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
|
|
49216
|
+
var FindMathML = (function (_super) {
|
|
49217
|
+
__extends$1K(FindMathML, _super);
|
|
49218
|
+
function FindMathML() {
|
|
49219
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
49220
|
+
}
|
|
49221
|
+
FindMathML.prototype.findMath = function (node) {
|
|
49222
|
+
var set = new Set();
|
|
49223
|
+
this.findMathNodes(node, set);
|
|
49224
|
+
this.findMathPrefixed(node, set);
|
|
49225
|
+
var html = this.adaptor.root(this.adaptor.document);
|
|
49226
|
+
if (this.adaptor.kind(html) === 'html' && set.size === 0) {
|
|
49227
|
+
this.findMathNS(node, set);
|
|
49228
|
+
}
|
|
49229
|
+
return this.processMath(set);
|
|
49230
|
+
};
|
|
49231
|
+
FindMathML.prototype.findMathNodes = function (node, set) {
|
|
49232
|
+
var e_1, _a;
|
|
49233
|
+
try {
|
|
49234
|
+
for (var _b = __values$G(this.adaptor.tags(node, 'math')), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49235
|
+
var math = _c.value;
|
|
49236
|
+
set.add(math);
|
|
49237
|
+
}
|
|
49238
|
+
} catch (e_1_1) {
|
|
49239
|
+
e_1 = {
|
|
49240
|
+
error: e_1_1
|
|
49241
|
+
};
|
|
49242
|
+
} finally {
|
|
49243
|
+
try {
|
|
49244
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49245
|
+
} finally {
|
|
49246
|
+
if (e_1) throw e_1.error;
|
|
49247
|
+
}
|
|
49248
|
+
}
|
|
49249
|
+
};
|
|
49250
|
+
FindMathML.prototype.findMathPrefixed = function (node, set) {
|
|
49251
|
+
var e_2, _a, e_3, _b;
|
|
49252
|
+
var html = this.adaptor.root(this.adaptor.document);
|
|
49253
|
+
try {
|
|
49254
|
+
for (var _c = __values$G(this.adaptor.allAttributes(html)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
49255
|
+
var attr = _d.value;
|
|
49256
|
+
if (attr.name.substr(0, 6) === 'xmlns:' && attr.value === NAMESPACE) {
|
|
49257
|
+
var prefix = attr.name.substr(6);
|
|
49258
|
+
try {
|
|
49259
|
+
for (var _e = (e_3 = void 0, __values$G(this.adaptor.tags(node, prefix + ':math'))), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
49260
|
+
var math = _f.value;
|
|
49261
|
+
set.add(math);
|
|
49262
|
+
}
|
|
49263
|
+
} catch (e_3_1) {
|
|
49264
|
+
e_3 = {
|
|
49265
|
+
error: e_3_1
|
|
49266
|
+
};
|
|
49267
|
+
} finally {
|
|
49268
|
+
try {
|
|
49269
|
+
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
|
49270
|
+
} finally {
|
|
49271
|
+
if (e_3) throw e_3.error;
|
|
49272
|
+
}
|
|
49273
|
+
}
|
|
49274
|
+
}
|
|
49275
|
+
}
|
|
49276
|
+
} catch (e_2_1) {
|
|
49277
|
+
e_2 = {
|
|
49278
|
+
error: e_2_1
|
|
49279
|
+
};
|
|
49280
|
+
} finally {
|
|
49281
|
+
try {
|
|
49282
|
+
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
49283
|
+
} finally {
|
|
49284
|
+
if (e_2) throw e_2.error;
|
|
49285
|
+
}
|
|
49286
|
+
}
|
|
49287
|
+
};
|
|
49288
|
+
FindMathML.prototype.findMathNS = function (node, set) {
|
|
49289
|
+
var e_4, _a;
|
|
49290
|
+
try {
|
|
49291
|
+
for (var _b = __values$G(this.adaptor.tags(node, 'math', NAMESPACE)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49292
|
+
var math = _c.value;
|
|
49293
|
+
set.add(math);
|
|
49294
|
+
}
|
|
49295
|
+
} catch (e_4_1) {
|
|
49296
|
+
e_4 = {
|
|
49297
|
+
error: e_4_1
|
|
49298
|
+
};
|
|
49299
|
+
} finally {
|
|
49300
|
+
try {
|
|
49301
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49302
|
+
} finally {
|
|
49303
|
+
if (e_4) throw e_4.error;
|
|
49304
|
+
}
|
|
49305
|
+
}
|
|
49306
|
+
};
|
|
49307
|
+
FindMathML.prototype.processMath = function (set) {
|
|
49308
|
+
var e_5, _a;
|
|
49309
|
+
var math = [];
|
|
49310
|
+
try {
|
|
49311
|
+
for (var _b = __values$G(Array.from(set)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49312
|
+
var mml = _c.value;
|
|
49313
|
+
var display = this.adaptor.getAttribute(mml, 'display') === 'block' || this.adaptor.getAttribute(mml, 'mode') === 'display';
|
|
49314
|
+
var start = {
|
|
49315
|
+
node: mml,
|
|
49316
|
+
n: 0,
|
|
49317
|
+
delim: ''
|
|
49318
|
+
};
|
|
49319
|
+
var end = {
|
|
49320
|
+
node: mml,
|
|
49321
|
+
n: 0,
|
|
49322
|
+
delim: ''
|
|
49323
|
+
};
|
|
49324
|
+
math.push({
|
|
49325
|
+
math: this.adaptor.outerHTML(mml),
|
|
49326
|
+
start: start,
|
|
49327
|
+
end: end,
|
|
49328
|
+
display: display
|
|
49329
|
+
});
|
|
49330
|
+
}
|
|
49331
|
+
} catch (e_5_1) {
|
|
49332
|
+
e_5 = {
|
|
49333
|
+
error: e_5_1
|
|
49334
|
+
};
|
|
49335
|
+
} finally {
|
|
49336
|
+
try {
|
|
49337
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49338
|
+
} finally {
|
|
49339
|
+
if (e_5) throw e_5.error;
|
|
49340
|
+
}
|
|
49341
|
+
}
|
|
49342
|
+
return math;
|
|
49343
|
+
};
|
|
49344
|
+
FindMathML.OPTIONS = {};
|
|
49345
|
+
return FindMathML;
|
|
49346
|
+
})(FindMath_js_1$1.AbstractFindMath);
|
|
49347
|
+
FindMathML$1.FindMathML = FindMathML;
|
|
49121
49348
|
var mathml = {};
|
|
49122
49349
|
var InputJax = {};
|
|
49123
49350
|
var FunctionList$1 = {};
|
|
49124
|
-
var __extends$
|
|
49351
|
+
var __extends$1J = commonjsGlobal && commonjsGlobal.__extends || (function () {
|
|
49125
49352
|
var extendStatics = function (d, b) {
|
|
49126
49353
|
extendStatics = Object.setPrototypeOf || ({
|
|
49127
49354
|
__proto__: []
|
|
@@ -49141,7 +49368,7 @@ var __extends$1K = commonjsGlobal && commonjsGlobal.__extends || (function () {
|
|
|
49141
49368
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49142
49369
|
};
|
|
49143
49370
|
})();
|
|
49144
|
-
var __values$
|
|
49371
|
+
var __values$F = commonjsGlobal && commonjsGlobal.__values || (function (o) {
|
|
49145
49372
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
49146
49373
|
if (m) return m.call(o);
|
|
49147
49374
|
if (o && typeof o.length === "number") return {
|
|
@@ -49189,7 +49416,7 @@ Object.defineProperty(FunctionList$1, "__esModule", {
|
|
|
49189
49416
|
FunctionList$1.FunctionList = void 0;
|
|
49190
49417
|
var PrioritizedList_js_1 = PrioritizedList$1;
|
|
49191
49418
|
var FunctionList = (function (_super) {
|
|
49192
|
-
__extends$
|
|
49419
|
+
__extends$1J(FunctionList, _super);
|
|
49193
49420
|
function FunctionList() {
|
|
49194
49421
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
49195
49422
|
}
|
|
@@ -49200,7 +49427,7 @@ var FunctionList = (function (_super) {
|
|
|
49200
49427
|
data[_i] = arguments[_i];
|
|
49201
49428
|
}
|
|
49202
49429
|
try {
|
|
49203
|
-
for (var _b = __values$
|
|
49430
|
+
for (var _b = __values$F(this), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49204
49431
|
var item = _c.value;
|
|
49205
49432
|
var result = item.item.apply(item, __spreadArray$s([], __read$P(data), false));
|
|
49206
49433
|
if (result === false) {
|
|
@@ -49254,7 +49481,7 @@ Object.defineProperty(InputJax, "__esModule", {
|
|
|
49254
49481
|
value: true
|
|
49255
49482
|
});
|
|
49256
49483
|
InputJax.AbstractInputJax = void 0;
|
|
49257
|
-
var Options_js_1$
|
|
49484
|
+
var Options_js_1$c = Options$2;
|
|
49258
49485
|
var FunctionList_js_1$2 = FunctionList$1;
|
|
49259
49486
|
var AbstractInputJax = (function () {
|
|
49260
49487
|
function AbstractInputJax(options) {
|
|
@@ -49264,7 +49491,7 @@ var AbstractInputJax = (function () {
|
|
|
49264
49491
|
this.adaptor = null;
|
|
49265
49492
|
this.mmlFactory = null;
|
|
49266
49493
|
var CLASS = this.constructor;
|
|
49267
|
-
this.options = (0, Options_js_1$
|
|
49494
|
+
this.options = (0, Options_js_1$c.userOptions)((0, Options_js_1$c.defaultOptions)({}, CLASS.OPTIONS), options);
|
|
49268
49495
|
this.preFilters = new FunctionList_js_1$2.FunctionList();
|
|
49269
49496
|
this.postFilters = new FunctionList_js_1$2.FunctionList();
|
|
49270
49497
|
}
|
|
@@ -49312,194 +49539,6 @@ var AbstractInputJax = (function () {
|
|
|
49312
49539
|
return AbstractInputJax;
|
|
49313
49540
|
})();
|
|
49314
49541
|
InputJax.AbstractInputJax = AbstractInputJax;
|
|
49315
|
-
var FindMathML$1 = {};
|
|
49316
|
-
var FindMath = {};
|
|
49317
|
-
Object.defineProperty(FindMath, "__esModule", {
|
|
49318
|
-
value: true
|
|
49319
|
-
});
|
|
49320
|
-
FindMath.AbstractFindMath = void 0;
|
|
49321
|
-
var Options_js_1$c = Options$2;
|
|
49322
|
-
var AbstractFindMath = (function () {
|
|
49323
|
-
function AbstractFindMath(options) {
|
|
49324
|
-
var CLASS = this.constructor;
|
|
49325
|
-
this.options = (0, Options_js_1$c.userOptions)((0, Options_js_1$c.defaultOptions)({}, CLASS.OPTIONS), options);
|
|
49326
|
-
}
|
|
49327
|
-
AbstractFindMath.OPTIONS = {};
|
|
49328
|
-
return AbstractFindMath;
|
|
49329
|
-
})();
|
|
49330
|
-
FindMath.AbstractFindMath = AbstractFindMath;
|
|
49331
|
-
var __extends$1J = commonjsGlobal && commonjsGlobal.__extends || (function () {
|
|
49332
|
-
var extendStatics = function (d, b) {
|
|
49333
|
-
extendStatics = Object.setPrototypeOf || ({
|
|
49334
|
-
__proto__: []
|
|
49335
|
-
}) instanceof Array && (function (d, b) {
|
|
49336
|
-
d.__proto__ = b;
|
|
49337
|
-
}) || (function (d, b) {
|
|
49338
|
-
for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
49339
|
-
});
|
|
49340
|
-
return extendStatics(d, b);
|
|
49341
|
-
};
|
|
49342
|
-
return function (d, b) {
|
|
49343
|
-
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
49344
|
-
extendStatics(d, b);
|
|
49345
|
-
function __() {
|
|
49346
|
-
this.constructor = d;
|
|
49347
|
-
}
|
|
49348
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
49349
|
-
};
|
|
49350
|
-
})();
|
|
49351
|
-
var __values$F = commonjsGlobal && commonjsGlobal.__values || (function (o) {
|
|
49352
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
49353
|
-
if (m) return m.call(o);
|
|
49354
|
-
if (o && typeof o.length === "number") return {
|
|
49355
|
-
next: function () {
|
|
49356
|
-
if (o && i >= o.length) o = void 0;
|
|
49357
|
-
return {
|
|
49358
|
-
value: o && o[i++],
|
|
49359
|
-
done: !o
|
|
49360
|
-
};
|
|
49361
|
-
}
|
|
49362
|
-
};
|
|
49363
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
49364
|
-
});
|
|
49365
|
-
Object.defineProperty(FindMathML$1, "__esModule", {
|
|
49366
|
-
value: true
|
|
49367
|
-
});
|
|
49368
|
-
FindMathML$1.FindMathML = void 0;
|
|
49369
|
-
var FindMath_js_1$1 = FindMath;
|
|
49370
|
-
var NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
|
|
49371
|
-
var FindMathML = (function (_super) {
|
|
49372
|
-
__extends$1J(FindMathML, _super);
|
|
49373
|
-
function FindMathML() {
|
|
49374
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
49375
|
-
}
|
|
49376
|
-
FindMathML.prototype.findMath = function (node) {
|
|
49377
|
-
var set = new Set();
|
|
49378
|
-
this.findMathNodes(node, set);
|
|
49379
|
-
this.findMathPrefixed(node, set);
|
|
49380
|
-
var html = this.adaptor.root(this.adaptor.document);
|
|
49381
|
-
if (this.adaptor.kind(html) === 'html' && set.size === 0) {
|
|
49382
|
-
this.findMathNS(node, set);
|
|
49383
|
-
}
|
|
49384
|
-
return this.processMath(set);
|
|
49385
|
-
};
|
|
49386
|
-
FindMathML.prototype.findMathNodes = function (node, set) {
|
|
49387
|
-
var e_1, _a;
|
|
49388
|
-
try {
|
|
49389
|
-
for (var _b = __values$F(this.adaptor.tags(node, 'math')), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49390
|
-
var math = _c.value;
|
|
49391
|
-
set.add(math);
|
|
49392
|
-
}
|
|
49393
|
-
} catch (e_1_1) {
|
|
49394
|
-
e_1 = {
|
|
49395
|
-
error: e_1_1
|
|
49396
|
-
};
|
|
49397
|
-
} finally {
|
|
49398
|
-
try {
|
|
49399
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49400
|
-
} finally {
|
|
49401
|
-
if (e_1) throw e_1.error;
|
|
49402
|
-
}
|
|
49403
|
-
}
|
|
49404
|
-
};
|
|
49405
|
-
FindMathML.prototype.findMathPrefixed = function (node, set) {
|
|
49406
|
-
var e_2, _a, e_3, _b;
|
|
49407
|
-
var html = this.adaptor.root(this.adaptor.document);
|
|
49408
|
-
try {
|
|
49409
|
-
for (var _c = __values$F(this.adaptor.allAttributes(html)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
49410
|
-
var attr = _d.value;
|
|
49411
|
-
if (attr.name.substr(0, 6) === 'xmlns:' && attr.value === NAMESPACE) {
|
|
49412
|
-
var prefix = attr.name.substr(6);
|
|
49413
|
-
try {
|
|
49414
|
-
for (var _e = (e_3 = void 0, __values$F(this.adaptor.tags(node, prefix + ':math'))), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
49415
|
-
var math = _f.value;
|
|
49416
|
-
set.add(math);
|
|
49417
|
-
}
|
|
49418
|
-
} catch (e_3_1) {
|
|
49419
|
-
e_3 = {
|
|
49420
|
-
error: e_3_1
|
|
49421
|
-
};
|
|
49422
|
-
} finally {
|
|
49423
|
-
try {
|
|
49424
|
-
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
|
49425
|
-
} finally {
|
|
49426
|
-
if (e_3) throw e_3.error;
|
|
49427
|
-
}
|
|
49428
|
-
}
|
|
49429
|
-
}
|
|
49430
|
-
}
|
|
49431
|
-
} catch (e_2_1) {
|
|
49432
|
-
e_2 = {
|
|
49433
|
-
error: e_2_1
|
|
49434
|
-
};
|
|
49435
|
-
} finally {
|
|
49436
|
-
try {
|
|
49437
|
-
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
49438
|
-
} finally {
|
|
49439
|
-
if (e_2) throw e_2.error;
|
|
49440
|
-
}
|
|
49441
|
-
}
|
|
49442
|
-
};
|
|
49443
|
-
FindMathML.prototype.findMathNS = function (node, set) {
|
|
49444
|
-
var e_4, _a;
|
|
49445
|
-
try {
|
|
49446
|
-
for (var _b = __values$F(this.adaptor.tags(node, 'math', NAMESPACE)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49447
|
-
var math = _c.value;
|
|
49448
|
-
set.add(math);
|
|
49449
|
-
}
|
|
49450
|
-
} catch (e_4_1) {
|
|
49451
|
-
e_4 = {
|
|
49452
|
-
error: e_4_1
|
|
49453
|
-
};
|
|
49454
|
-
} finally {
|
|
49455
|
-
try {
|
|
49456
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49457
|
-
} finally {
|
|
49458
|
-
if (e_4) throw e_4.error;
|
|
49459
|
-
}
|
|
49460
|
-
}
|
|
49461
|
-
};
|
|
49462
|
-
FindMathML.prototype.processMath = function (set) {
|
|
49463
|
-
var e_5, _a;
|
|
49464
|
-
var math = [];
|
|
49465
|
-
try {
|
|
49466
|
-
for (var _b = __values$F(Array.from(set)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
49467
|
-
var mml = _c.value;
|
|
49468
|
-
var display = this.adaptor.getAttribute(mml, 'display') === 'block' || this.adaptor.getAttribute(mml, 'mode') === 'display';
|
|
49469
|
-
var start = {
|
|
49470
|
-
node: mml,
|
|
49471
|
-
n: 0,
|
|
49472
|
-
delim: ''
|
|
49473
|
-
};
|
|
49474
|
-
var end = {
|
|
49475
|
-
node: mml,
|
|
49476
|
-
n: 0,
|
|
49477
|
-
delim: ''
|
|
49478
|
-
};
|
|
49479
|
-
math.push({
|
|
49480
|
-
math: this.adaptor.outerHTML(mml),
|
|
49481
|
-
start: start,
|
|
49482
|
-
end: end,
|
|
49483
|
-
display: display
|
|
49484
|
-
});
|
|
49485
|
-
}
|
|
49486
|
-
} catch (e_5_1) {
|
|
49487
|
-
e_5 = {
|
|
49488
|
-
error: e_5_1
|
|
49489
|
-
};
|
|
49490
|
-
} finally {
|
|
49491
|
-
try {
|
|
49492
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
49493
|
-
} finally {
|
|
49494
|
-
if (e_5) throw e_5.error;
|
|
49495
|
-
}
|
|
49496
|
-
}
|
|
49497
|
-
return math;
|
|
49498
|
-
};
|
|
49499
|
-
FindMathML.OPTIONS = {};
|
|
49500
|
-
return FindMathML;
|
|
49501
|
-
})(FindMath_js_1$1.AbstractFindMath);
|
|
49502
|
-
FindMathML$1.FindMathML = FindMathML;
|
|
49503
49542
|
var MathMLCompile$1 = {};
|
|
49504
49543
|
var Entities$1 = {};
|
|
49505
49544
|
var AsyncLoad = {};
|
|
@@ -92091,7 +92130,7 @@ var unWrapMath = function unWrapMath(content) {
|
|
|
92091
92130
|
};
|
|
92092
92131
|
};
|
|
92093
92132
|
normalization.unWrapMath = unWrapMath;
|
|
92094
|
-
const require$$
|
|
92133
|
+
const require$$22$2 = _dll_debug;
|
|
92095
92134
|
(function (exports) {
|
|
92096
92135
|
var _interopRequireDefault = interopRequireDefault.exports;
|
|
92097
92136
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -92101,10 +92140,17 @@ const require$$15$4 = _dll_debug;
|
|
|
92101
92140
|
var _toConsumableArray2 = _interopRequireDefault(toConsumableArray$1.exports);
|
|
92102
92141
|
var _typeof2 = _interopRequireDefault(_typeof$g.exports);
|
|
92103
92142
|
var _defineProperty2 = _interopRequireDefault(defineProperty$6.exports);
|
|
92143
|
+
var _classCallCheck2 = _interopRequireDefault(classCallCheck$5.exports);
|
|
92144
|
+
var _createClass2 = _interopRequireDefault(createClass$4.exports);
|
|
92145
|
+
var _get2 = _interopRequireDefault(get$2.exports);
|
|
92146
|
+
var _inherits2 = _interopRequireDefault(inherits$3.exports);
|
|
92147
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(possibleConstructorReturn$3.exports);
|
|
92148
|
+
var _getPrototypeOf2 = _interopRequireDefault(getPrototypeOf$2.exports);
|
|
92104
92149
|
var _mathjax = mathjax;
|
|
92105
92150
|
var _assistiveMml = assistiveMml;
|
|
92106
92151
|
var _semanticEnrich = semanticEnrich;
|
|
92107
92152
|
var _MenuHandler = MenuHandler$1;
|
|
92153
|
+
var _FindMathML2 = FindMathML$1;
|
|
92108
92154
|
var _mathml = mathml;
|
|
92109
92155
|
var _tex = tex$2;
|
|
92110
92156
|
var _chtml = chtml$1;
|
|
@@ -92112,12 +92158,13 @@ const require$$15$4 = _dll_debug;
|
|
|
92112
92158
|
var _browserAdaptor = browserAdaptor$1;
|
|
92113
92159
|
var _AllPackages = AllPackages;
|
|
92114
92160
|
var _mstack = mstack;
|
|
92115
|
-
var _debug = _interopRequireDefault(require$$
|
|
92161
|
+
var _debug = _interopRequireDefault(require$$22$2);
|
|
92116
92162
|
var _normalization = normalization;
|
|
92117
92163
|
var _MmlFactory = MmlFactory$1;
|
|
92118
92164
|
var _SerializedMmlVisitor = SerializedMmlVisitor;
|
|
92119
92165
|
var _WrapperFactory = WrapperFactory$2;
|
|
92120
92166
|
var _mspace = mspace$1;
|
|
92167
|
+
var _HTMLDomStrings = HTMLDomStrings$1;
|
|
92121
92168
|
function ownKeys(object, enumerableOnly) {
|
|
92122
92169
|
var keys = Object.keys(object);
|
|
92123
92170
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -92139,6 +92186,30 @@ const require$$15$4 = _dll_debug;
|
|
|
92139
92186
|
}
|
|
92140
92187
|
return target;
|
|
92141
92188
|
}
|
|
92189
|
+
function _createSuper(Derived) {
|
|
92190
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
92191
|
+
return function _createSuperInternal() {
|
|
92192
|
+
var Super = (0, _getPrototypeOf2["default"])(Derived), result;
|
|
92193
|
+
if (hasNativeReflectConstruct) {
|
|
92194
|
+
var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor;
|
|
92195
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
92196
|
+
} else {
|
|
92197
|
+
result = Super.apply(this, arguments);
|
|
92198
|
+
}
|
|
92199
|
+
return (0, _possibleConstructorReturn2["default"])(this, result);
|
|
92200
|
+
};
|
|
92201
|
+
}
|
|
92202
|
+
function _isNativeReflectConstruct() {
|
|
92203
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
92204
|
+
if (Reflect.construct.sham) return false;
|
|
92205
|
+
if (typeof Proxy === "function") return true;
|
|
92206
|
+
try {
|
|
92207
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
92208
|
+
return true;
|
|
92209
|
+
} catch (e) {
|
|
92210
|
+
return false;
|
|
92211
|
+
}
|
|
92212
|
+
}
|
|
92142
92213
|
if (typeof window !== 'undefined') {
|
|
92143
92214
|
(0, _html.RegisterHTMLHandler)((0, _browserAdaptor.browserAdaptor)());
|
|
92144
92215
|
}
|
|
@@ -92193,6 +92264,28 @@ const require$$15$4 = _dll_debug;
|
|
|
92193
92264
|
return node.setAttribute('displaystyle', 'true');
|
|
92194
92265
|
});
|
|
92195
92266
|
};
|
|
92267
|
+
var myFindMathML = (function (_FindMathML) {
|
|
92268
|
+
(0, _inherits2["default"])(myFindMathML, _FindMathML);
|
|
92269
|
+
var _super = _createSuper(myFindMathML);
|
|
92270
|
+
function myFindMathML() {
|
|
92271
|
+
(0, _classCallCheck2["default"])(this, myFindMathML);
|
|
92272
|
+
return _super.apply(this, arguments);
|
|
92273
|
+
}
|
|
92274
|
+
(0, _createClass2["default"])(myFindMathML, [{
|
|
92275
|
+
key: "processMath",
|
|
92276
|
+
value: function processMath(set) {
|
|
92277
|
+
var adaptor = this.adaptor;
|
|
92278
|
+
for (var _i = 0, _Array$from = Array.from(set); _i < _Array$from.length; _i++) {
|
|
92279
|
+
var mml = _Array$from[_i];
|
|
92280
|
+
if (adaptor.kind(adaptor.parent(mml)) === 'mjx-assistive-mml') {
|
|
92281
|
+
set["delete"](mml);
|
|
92282
|
+
}
|
|
92283
|
+
}
|
|
92284
|
+
return (0, _get2["default"])((0, _getPrototypeOf2["default"])(myFindMathML.prototype), "processMath", this).call(this, set);
|
|
92285
|
+
}
|
|
92286
|
+
}]);
|
|
92287
|
+
return myFindMathML;
|
|
92288
|
+
})(_FindMathML2.FindMathML);
|
|
92196
92289
|
var createMathMLInstance = function createMathMLInstance(opts) {
|
|
92197
92290
|
var docProvided = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
|
|
92198
92291
|
opts = opts || defaultOpts();
|
|
@@ -92222,7 +92315,8 @@ const require$$15$4 = _dll_debug;
|
|
|
92222
92315
|
parseError: function parseError(node) {
|
|
92223
92316
|
console.log('error:', node);
|
|
92224
92317
|
this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
|
|
92225
|
-
}
|
|
92318
|
+
},
|
|
92319
|
+
FindMathML: new myFindMathML()
|
|
92226
92320
|
};
|
|
92227
92321
|
var fontURL = ("https://unpkg.com/mathjax-full@").concat(_mathjax.mathjax.version, "/ts/output/chtml/fonts/tex-woff-v2");
|
|
92228
92322
|
var htmlConfig = {
|
|
@@ -92247,7 +92341,10 @@ const require$$15$4 = _dll_debug;
|
|
|
92247
92341
|
},
|
|
92248
92342
|
enrichSpeech: 'deep',
|
|
92249
92343
|
InputJax: [new _tex.TeX(texConfig), mml],
|
|
92250
|
-
OutputJax: new _chtml.CHTML(htmlConfig)
|
|
92344
|
+
OutputJax: new _chtml.CHTML(htmlConfig),
|
|
92345
|
+
DomStrings: new _HTMLDomStrings.HTMLDomStrings({
|
|
92346
|
+
skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code', 'annotation', 'annotation-xml', 'mjx-assistive-mml', 'mjx-container']
|
|
92347
|
+
})
|
|
92251
92348
|
});
|
|
92252
92349
|
mml.setMmlFactory(customMmlFactory);
|
|
92253
92350
|
return html;
|