mathjaxr/0000755000176200001440000000000015004373372012074 5ustar liggesusersmathjaxr/MD50000644000176200001440000001334015004373372012405 0ustar liggesusersfbf90701e5f5dc6da695e0b32f3d11fa *DESCRIPTION b2563da97de523a627abacdde57bef1d *NAMESPACE 28cf4beef3b6d53a435a04dc5fbf1dee *NEWS.md d452f28887af76954f68ed91c765625a *R/preview_rd.r 4d28c86a521a6784fe5ecff301598ea6 *README.md de94cffbd37cf7f6ad821f65ddab0005 *build/mathjaxr.pdf b02c57536942d62ed5ba2bb0b339bb73 *build/stage23.rdb c5355fd7da08e039f3b48816d7a37f99 *inst/doc/R_dark.css a07fc87737a6f4686b29668ea807ca7f *man/macros/mathjax.Rd ce3aece8dd6f00d333bc9891c3a5e640 *man/mathjaxr-package.Rd 21df09151e141088a06489f25ce0271a *man/preview_rd.Rd 6f2d2fb37fc4d2e3fb6f437deb3e77fa *src/Makefile 7138ea656c8259fae050adc873675193 *src/install.libs.R 3b83ef96387f14655fc854ddc3c6bd57 *src/mathjax/LICENSE 4bfe5c8fb6734d0f0c410cb7d3deda1f *src/mathjax/README.md 85929950ff57099e4845dc83fc564f8e *src/mathjax/es5/a11y/assistive-mml.js 4a649d50f6c8aeef3e99e1f067a49375 *src/mathjax/es5/a11y/complexity.js 37ebbc3a1a8d48527f7a97361b6d0624 *src/mathjax/es5/a11y/explorer.js bc34dddf17eace3eb6a305c8065199ad *src/mathjax/es5/a11y/semantic-enrich.js 169542eeaf8cde901c3f102ca7dab6a6 *src/mathjax/es5/input/tex/extensions/action.js cc015f0b5e0889ce13ec17a668890c43 *src/mathjax/es5/input/tex/extensions/all-packages.js 56bd96cd315aba5b7f6650098888575f *src/mathjax/es5/input/tex/extensions/ams.js 749b1aa6b4ee1122a9077f2d63f1062a *src/mathjax/es5/input/tex/extensions/amscd.js 0c0a976b2e4feb837dca4fd50fac5ad5 *src/mathjax/es5/input/tex/extensions/autoload.js 0f9969a3f4fcfece949ac4bada39ef34 *src/mathjax/es5/input/tex/extensions/bbox.js 27c4164c0369e642364bfd7ed3f07345 *src/mathjax/es5/input/tex/extensions/boldsymbol.js 88310efde276ac5f3e473fd9abfb37e2 *src/mathjax/es5/input/tex/extensions/braket.js 386c14dc33c5013d64fce2cf4099deb7 *src/mathjax/es5/input/tex/extensions/bussproofs.js c41170e60db416c3245a8cc1bf91b357 *src/mathjax/es5/input/tex/extensions/cancel.js bdf4a10b90021342a2a0162a2bde67f8 *src/mathjax/es5/input/tex/extensions/color.js 2e3a4f60528b264a6508db0a205fc47d *src/mathjax/es5/input/tex/extensions/colorv2.js 573742edb6d8d963d92f52c082bf0693 *src/mathjax/es5/input/tex/extensions/configmacros.js 9fa7c459d765e6ecaf6328735bc4cfce *src/mathjax/es5/input/tex/extensions/enclose.js df4e02dd502deac79bf23690458bd3e7 *src/mathjax/es5/input/tex/extensions/extpfeil.js 66bdfcc456a5717e1d9a5e67837863a1 *src/mathjax/es5/input/tex/extensions/html.js 0805d9529b2031886a4f59013bc239a5 *src/mathjax/es5/input/tex/extensions/mhchem.js 679d1f951dacb2d57624ff358f85d885 *src/mathjax/es5/input/tex/extensions/newcommand.js fb6be37033d24c669a5d6c08fb777007 *src/mathjax/es5/input/tex/extensions/noerrors.js dfab05632aa7fd388e92ab8a920ad028 *src/mathjax/es5/input/tex/extensions/noundefined.js ae48e8938130b2da1864332b3db1a36d *src/mathjax/es5/input/tex/extensions/physics.js c6c69dc95cb35871ba03ef83806000b8 *src/mathjax/es5/input/tex/extensions/require.js e760f3eabeccff6af24779633ece5247 *src/mathjax/es5/input/tex/extensions/tagformat.js 63c7bdbd66584d980c2295e2cb319640 *src/mathjax/es5/input/tex/extensions/textmacros.js 966bb0731c8bb7f1aeeef8d5b9182e38 *src/mathjax/es5/input/tex/extensions/unicode.js 8e831b42b9031b00ffa6eed68d31e2fb *src/mathjax/es5/input/tex/extensions/verb.js 672e295a00fe5caee6943211adba556c *src/mathjax/es5/output/chtml.js 9b83addff8be6251a1f05d14f06235dd *src/mathjax/es5/output/chtml/fonts/tex.js 07173fb77d2ee655811499d40c8388e7 *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff c2704fb5d3a6f94fa839d7cd46935a58 *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff c8f163c30c75aa2818c77d80a99ede24 *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff bc42125861bd5bfc8686deeb612dcbb3 *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff b80e08d5a79acbd1fafb1ca6f3515664 *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff c9423d5dc9d82a38ca215f74e9cdd9f2 *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff 7e83626ba8bf2d20dc41565f1e6d0afc *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff 9995de4787f908d8237dba7007f6c3fe *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff 77dbcee3c3d9a82a0c04a4ae7992b895 *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff 5589d1a8fc62be6613020ef2fa13e410 *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff ede66e09bbe848ef0b2f36ef048995ea *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff 07281897a98a61c3733e1670f82a9fd5 *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff 3d580bd561716bfb1f0b4fdd7063a802 *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff bc3af04f9a671fcabd6498042c57478f *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff 4c74e33b0feb1fdbda49403a5e7ed604 *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff 7ee67b5348ee634dd16b968d281cb882 *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff 23a68923a42edaa3b7e6bc8a3917d388 *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff a7860eaf63c39f2603165893ce61a878 *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff 3b232dcedebc60224f28318bceb3ad42 *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff 72815766b08ca24d4d29ad1f5d4ecb45 *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff 77dd7f101fe6e19aeb5845f9592f7ee2 *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff 06568d8d53fb00816d101164854d8c6f *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff b26f96047d1cb466c83e9b27bf353c1f *src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Zero.woff 2c672731fa164e13d9c7bfec61ce9c6b *src/mathjax/es5/output/svg.js 486ab23e71f37a14251ae309fef8f571 *src/mathjax/es5/tex-chtml-full.js mathjaxr/R/0000755000176200001440000000000013657037177012311 5ustar liggesusersmathjaxr/R/preview_rd.r0000644000176200001440000001644414207131663014636 0ustar liggesuserspreview_rd <- function(Rdfile, view = TRUE, type = "html", verbose = FALSE, dark = FALSE, ...) { if (missing(Rdfile)) stop("Must specify the 'Rdfile' argument.") type <- match.arg(type, c("html", "txt", "text", "pdf")) if (type == "text") type <- "txt" ddd <- list(...) # need to load MathJax from the CDN since the \mathjaxr macro # won't be able to load MathJax from the local installation mjcdn <- Sys.getenv("MATHJAXR_USECDN") on.exit(Sys.setenv(MATHJAXR_USECDN = mjcdn)) Sys.setenv(MATHJAXR_USECDN = "TRUE") # temporarily set working dir to location of Rdfile wd <- getwd() dn <- dirname(Rdfile) setwd(dn) on.exit(setwd(wd), add=TRUE) # strip path from Rdfile Rdfile <- basename(Rdfile) # list all .Rd and .rd files in the current dir Rdfiles <- list.files(pattern = ".*\\.Rd$") rdfiles <- list.files(pattern = ".*\\.rd$") # do the same for all files in the man subdir Rdfiles.man <- list.files(path = "man", pattern = ".*\\.Rd$") rdfiles.man <- list.files(path = "man", pattern = ".*\\.rd$") # check if Rdfile has an .Rd or .rd extension noext <- !is.element(substr(Rdfile, nchar(Rdfile)-2, nchar(Rdfile)), c(".Rd", ".rd")) # try to find the Rdfile first in the man subdir and then in the current dir if (paste0(Rdfile, ifelse(noext, ".Rd", "")) %in% Rdfiles.man) { Rdfile.loc <- paste0("man/", Rdfile, ifelse(noext, ".Rd", "")) } else if (paste0(Rdfile, ifelse(noext, ".rd", "")) %in% rdfiles.man) { Rdfile.loc <- paste0("man/", Rdfile, ifelse(noext, ".rd", "")) } else if (paste0(Rdfile, ifelse(noext, ".Rd", "")) %in% Rdfiles) { Rdfile.loc <- paste0(Rdfile, ifelse(noext, ".Rd", "")) } else if (paste0(Rdfile, ifelse(noext, ".rd", "")) %in% rdfiles) { Rdfile.loc <- paste0(Rdfile, ifelse(noext, ".rd", "")) } else { stop(paste0("Cannot find the specified Rd file in the current directory or in the 'man' subdirectory.")) } if (verbose) message("Found Rd file: ", Rdfile.loc) # get environment with the mathjaxr, package, and system macros macros <- tools::loadPkgRdMacros(system.file(package = "mathjaxr")) macros <- tools::loadPkgRdMacros(ifelse(basename(getwd()) == "man", "..", "."), macros = macros) macros <- tools::loadRdMacros(file.path(R.home("share"), "Rd", "macros", "system.Rd"), macros = macros) # generate name of temp file tmpdir <- tempdir() outfile <- paste0(file.path(tmpdir, Rdfile), ".", type) if (verbose) message("Creating preview file: ", outfile) if (type == "html") { if (.Platform$OS.type == "windows") { prefix <- "file://" } else { prefix <- "" } if (!is.null(ddd$css)) { css <- paste0(prefix, ddd$css) } else { if (dark) { css <- paste0(prefix, system.file("doc/R_dark.css", package = "mathjaxr")) } else { css <- paste0(prefix, system.file("html/R.css", package = "mathjaxr")) } } # copy figures to tmpdir if there are any if (file.exists(paste0(dirname(Rdfile.loc), "/figures"))) { rdtxt <- readLines(Rdfile.loc, warn = FALSE) figloc <- grep("\\figure{", rdtxt, fixed = TRUE) if (length(figloc) > 0L) { figs <- rdtxt[figloc] figs <- sapply(strsplit(figs, "\\figure{", fixed = TRUE), function(x) x[2]) figs <- sapply(strsplit(figs, "}", fixed = TRUE), function(x) x[1]) status <- TRUE if (!file.exists(paste0(tmpdir, "/figures"))) status <- dir.create(paste0(tmpdir, "/figures"), showWarnings = FALSE) if (status) { if (verbose) message("Copying figure(s) to: ", paste0(tmpdir, "/figures")) file.copy(paste0(dirname(Rdfile.loc), "/figures/", figs), paste0(tmpdir, "/figures"), overwrite = TRUE) } } } # convert Rd to HTML version html <- tools::Rd2HTML(Rdfile.loc, out = outfile, macros = macros, permissive = TRUE, dynamic = TRUE, stylesheet = css, stages = c("build", "install", "render")) # use viewer if available (as in RStudio); otherwise use browseURL() viewer <- getOption("viewer") if (!is.null(viewer)) { viewer(html) } else { if (view) utils::browseURL(html) } } if (type == "txt") { # convert Rd to text version and show file txt <- tools::Rd2txt(Rdfile.loc, out = outfile, macros = macros, permissive = TRUE) if (.Platform$GUI == "RStudio") { # RStudio tries to use its own pager for file.show(), but this doesn't work so well here # so we just brute-force the display on the console with readLines() and cat() ... :/ out <- readLines(txt) for (i in seq_along(out)) { cat(out[i], "\n") } } else { if (view) file.show(txt) } } if (type == "pdf") { pkg <- character(0) # try to get the package name and RdMacros field from DESCRIPTION if (file.exists(ifelse(basename(getwd()) == "man", "../DESCRIPTION", "DESCRIPTION"))) { pkg <- suppressWarnings(try(read.dcf(ifelse(basename(getwd()) == "man", "../DESCRIPTION", "DESCRIPTION"), fields="Package"), silent = TRUE)) RdMacros <- suppressWarnings(try(read.dcf(ifelse(basename(getwd()) == "man", "../DESCRIPTION", "DESCRIPTION"), fields="RdMacros"), silent = TRUE)) if (inherits(pkg, "try-error") || is.na(pkg[1]) || !dir.exists(ifelse(basename(getwd()) == "man", "macros", "man/macros"))) # if there is no man/macros dir, the package has no macros pkg <- character(0) if (inherits(RdMacros, "try-error") || is.na(RdMacros[1])) RdMacros <- character(0) } if (length(RdMacros) > 0L) { # remove mathjaxr from RdMacros RdMacros <- trimws(strsplit(RdMacros, ",", fixed = TRUE)[[1]]) RdMacros <- RdMacros[RdMacros != "mathjaxr"] if (length(RdMacros) > 1L) RdMacros <- paste0(RdMacros, collapse=",") if (length(RdMacros) > 0L) { RdMacros <- paste0("mathjaxr,", RdMacros) } else { RdMacros <- "mathjaxr" } } else { RdMacros <- "mathjaxr" } if (length(pkg) > 0L) RdMacros <- paste0(RdMacros, ",", pkg) #cmd <- paste0("CMD Rd2pdf --no-index --no-description --force --batch --RdMacros=mathjaxr ", ifelse(view, "", "--no-preview"), " --output=", outfile, " ", Rdfile.loc) #cmd <- paste0("CMD Rd2pdf --no-index --no-description --force --batch --RdMacros=mathjaxr --no-preview --output=", outfile, " ", Rdfile.loc) cmd <- paste0("CMD Rd2pdf --no-index --no-description --force --batch --RdMacros=", RdMacros, " --no-preview --output=", outfile, " ", Rdfile.loc) #system2("R", cmd, wait = TRUE, stderr = if (verbose >=2) "" else NULL, stdout = if (verbose >= 2) "" else tempfile("stdout")) system2("R", cmd, wait = TRUE, stdout = ifelse(verbose >= 2, "", tempfile("stdout"))) if (.Platform$OS.type == "windows") { shell.exec(outfile) } else { optb <- getOption("browser") if (is.function(optb)) { invisible(optb(outfile)) } else { system(paste0(optb, " '", outfile, "'")) } } } } mathjaxr/src/0000755000176200001440000000000014005301544012653 5ustar liggesusersmathjaxr/src/mathjax/0000755000176200001440000000000014005301544014307 5ustar liggesusersmathjaxr/src/mathjax/es5/0000755000176200001440000000000014005301544015003 5ustar liggesusersmathjaxr/src/mathjax/es5/a11y/0000755000176200001440000000000014005301544015556 5ustar liggesusersmathjaxr/src/mathjax/es5/a11y/complexity.js0000644000176200001440000011361214005301544020315 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 9); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ComplexityHandler = exports.ComplexityMathDocumentMixin = exports.ComplexityMathItemMixin = void 0; var MathItem_js_1 = __webpack_require__(7); var semantic_enrich_js_1 = __webpack_require__(2); var visitor_js_1 = __webpack_require__(3); var Options_js_1 = __webpack_require__(5); MathItem_js_1.newState('COMPLEXITY', 40); function ComplexityMathItemMixin(BaseMathItem, computeComplexity) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.complexity = function (document, force) { if (force === void 0) { force = false; } if (this.state() >= MathItem_js_1.STATE.COMPLEXITY) return; if (!this.isEscaped && (document.options.enableComplexity || force)) { this.enrich(document, true); computeComplexity(this.root); } this.state(MathItem_js_1.STATE.COMPLEXITY); }; return class_1; }(BaseMathItem)); } exports.ComplexityMathItemMixin = ComplexityMathItemMixin; function ComplexityMathDocumentMixin(BaseDocument) { var _a; return _a = (function (_super) { __extends(class_2, _super); function class_2() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; var ProcessBits = _this.constructor.ProcessBits; if (!ProcessBits.has('complexity')) { ProcessBits.allocate('complexity'); } var visitorOptions = Options_js_1.selectOptionsFromKeys(_this.options, _this.options.ComplexityVisitor.OPTIONS); _this.complexityVisitor = new _this.options.ComplexityVisitor(_this.mmlFactory, visitorOptions); var computeComplexity = (function (node) { return _this.complexityVisitor.visitTree(node); }); _this.options.MathItem = ComplexityMathItemMixin(_this.options.MathItem, computeComplexity); return _this; } class_2.prototype.complexity = function () { var e_1, _a; if (!this.processed.isSet('complexity')) { if (this.options.enableComplexity) { try { for (var _b = __values(this.math), _c = _b.next(); !_c.done; _c = _b.next()) { var math = _c.value; math.complexity(this); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } this.processed.set('complexity'); } return this; }; class_2.prototype.state = function (state, restore) { if (restore === void 0) { restore = false; } _super.prototype.state.call(this, state, restore); if (state < MathItem_js_1.STATE.COMPLEXITY) { this.processed.clear('complexity'); } return this; }; return class_2; }(BaseDocument)), _a.OPTIONS = __assign(__assign(__assign({}, BaseDocument.OPTIONS), visitor_js_1.ComplexityVisitor.OPTIONS), { enableComplexity: true, ComplexityVisitor: visitor_js_1.ComplexityVisitor, renderActions: Options_js_1.expandable(__assign(__assign({}, BaseDocument.OPTIONS.renderActions), { complexity: [MathItem_js_1.STATE.COMPLEXITY] })) }), _a; } exports.ComplexityMathDocumentMixin = ComplexityMathDocumentMixin; function ComplexityHandler(handler, MmlJax) { if (MmlJax === void 0) { MmlJax = null; } if (!handler.documentClass.prototype.enrich && MmlJax) { handler = semantic_enrich_js_1.EnrichHandler(handler, MmlJax); } handler.documentClass = ComplexityMathDocumentMixin(handler.documentClass); return handler; } exports.ComplexityHandler = ComplexityHandler; //# sourceMappingURL=complexity.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.EnrichedMathItemMixin = MathJax._.a11y['semantic-enrich'].EnrichedMathItemMixin; exports.EnrichedMathDocumentMixin = MathJax._.a11y['semantic-enrich'].EnrichedMathDocumentMixin; exports.EnrichHandler = MathJax._.a11y['semantic-enrich'].EnrichHandler; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ComplexityVisitor = void 0; var MmlVisitor_js_1 = __webpack_require__(8); var collapse_js_1 = __webpack_require__(4); var Options_js_1 = __webpack_require__(5); var ComplexityVisitor = (function (_super) { __extends(ComplexityVisitor, _super); function ComplexityVisitor(factory, options) { var _this = _super.call(this, factory) || this; _this.complexity = { text: .5, token: .5, child: 1, script: .8, sqrt: 2, subsup: 2, underover: 2, fraction: 2, enclose: 2, action: 2, phantom: 0, xml: 2, glyph: 2 }; var CLASS = _this.constructor; _this.options = Options_js_1.userOptions(Options_js_1.defaultOptions({}, CLASS.OPTIONS), options); _this.collapse = new _this.options.Collapse(_this); _this.factory = factory; return _this; } ComplexityVisitor.prototype.visitTree = function (node) { _super.prototype.visitTree.call(this, node, true); if (this.options.makeCollapsible) { this.collapse.makeCollapse(node); } }; ComplexityVisitor.prototype.visitNode = function (node, save) { if (node.attributes.get('data-semantic-complexity')) return; return _super.prototype.visitNode.call(this, node, save); }; ComplexityVisitor.prototype.visitDefault = function (node, save) { var complexity; if (node.isToken) { var text = node.getText(); complexity = this.complexity.text * text.length + this.complexity.token; } else { complexity = this.childrenComplexity(node); } return this.setComplexity(node, complexity, save); }; ComplexityVisitor.prototype.visitMfracNode = function (node, save) { var complexity = this.childrenComplexity(node) * this.complexity.script + this.complexity.fraction; return this.setComplexity(node, complexity, save); }; ComplexityVisitor.prototype.visitMsqrtNode = function (node, save) { var complexity = this.childrenComplexity(node) + this.complexity.sqrt; return this.setComplexity(node, complexity, save); }; ComplexityVisitor.prototype.visitMrootNode = function (node, save) { var complexity = this.childrenComplexity(node) + this.complexity.sqrt - (1 - this.complexity.script) * this.getComplexity(node.childNodes[1]); return this.setComplexity(node, complexity, save); }; ComplexityVisitor.prototype.visitMphantomNode = function (node, save) { return this.setComplexity(node, this.complexity.phantom, save); }; ComplexityVisitor.prototype.visitMsNode = function (node, save) { var text = node.attributes.get('lquote') + node.getText() + node.attributes.get('rquote'); var complexity = text.length * this.complexity.text; return this.setComplexity(node, complexity, save); }; ComplexityVisitor.prototype.visitMsubsupNode = function (node, save) { _super.prototype.visitDefault.call(this, node, true); var sub = node.childNodes[node.sub]; var sup = node.childNodes[node.sup]; var base = node.childNodes[node.base]; var complexity = Math.max(sub ? this.getComplexity(sub) : 0, sup ? this.getComplexity(sup) : 0) * this.complexity.script; complexity += this.complexity.child * ((sub ? 1 : 0) + (sup ? 1 : 0)); complexity += (base ? this.getComplexity(base) + this.complexity.child : 0); complexity += this.complexity.subsup; return this.setComplexity(node, complexity, save); }; ComplexityVisitor.prototype.visitMsubNode = function (node, save) { return this.visitMsubsupNode(node, save); }; ComplexityVisitor.prototype.visitMsupNode = function (node, save) { return this.visitMsubsupNode(node, save); }; ComplexityVisitor.prototype.visitMunderoverNode = function (node, save) { _super.prototype.visitDefault.call(this, node, true); var under = node.childNodes[node.under]; var over = node.childNodes[node.over]; var base = node.childNodes[node.base]; var complexity = Math.max(under ? this.getComplexity(under) : 0, over ? this.getComplexity(over) : 0) * this.complexity.script; if (base) { complexity = Math.max(this.getComplexity(base), complexity); } complexity += this.complexity.child * ((under ? 1 : 0) + (over ? 1 : 0) + (base ? 1 : 0)); complexity += this.complexity.underover; return this.setComplexity(node, complexity, save); }; ComplexityVisitor.prototype.visitMunderNode = function (node, save) { return this.visitMunderoverNode(node, save); }; ComplexityVisitor.prototype.visitMoverNode = function (node, save) { return this.visitMunderoverNode(node, save); }; ComplexityVisitor.prototype.visitMencloseNode = function (node, save) { var complexity = this.childrenComplexity(node) + this.complexity.enclose; return this.setComplexity(node, complexity, save); }; ComplexityVisitor.prototype.visitMactionNode = function (node, save) { this.childrenComplexity(node); var complexity = this.getComplexity(node.selected); return this.setComplexity(node, complexity, save); }; ComplexityVisitor.prototype.visitMsemanticsNode = function (node, save) { var child = node.childNodes[0]; var complexity = 0; if (child) { this.visitNode(child, true); complexity = this.getComplexity(child); } return this.setComplexity(node, complexity, save); }; ComplexityVisitor.prototype.visitAnnotationNode = function (node, save) { return this.setComplexity(node, this.complexity.xml, save); }; ComplexityVisitor.prototype.visitAnnotation_xmlNode = function (node, save) { return this.setComplexity(node, this.complexity.xml, save); }; ComplexityVisitor.prototype.visitMglyphNode = function (node, save) { return this.setComplexity(node, this.complexity.glyph, save); }; ComplexityVisitor.prototype.getComplexity = function (node) { var collapsed = node.getProperty('collapsedComplexity'); return (collapsed != null ? collapsed : node.attributes.get('data-semantic-complexity')); }; ComplexityVisitor.prototype.setComplexity = function (node, complexity, save) { if (save) { if (this.options.identifyCollapsible) { complexity = this.collapse.check(node, complexity); } node.attributes.set('data-semantic-complexity', complexity); } return complexity; }; ComplexityVisitor.prototype.childrenComplexity = function (node) { var e_1, _a; _super.prototype.visitDefault.call(this, node, true); var complexity = 0; try { for (var _b = __values(node.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; complexity += this.getComplexity(child); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } if (node.childNodes.length > 1) { complexity += node.childNodes.length * this.complexity.child; } return complexity; }; ComplexityVisitor.OPTIONS = { identifyCollapsible: true, makeCollapsible: true, Collapse: collapse_js_1.Collapse }; return ComplexityVisitor; }(MmlVisitor_js_1.MmlVisitor)); exports.ComplexityVisitor = ComplexityVisitor; //# sourceMappingURL=visitor.js.map /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Collapse = void 0; var Collapse = (function () { function Collapse(visitor) { var _this = this; this.cutoff = { identifier: 3, number: 3, text: 10, infixop: 15, relseq: 15, multirel: 15, fenced: 18, bigop: 20, integral: 20, fraction: 12, sqrt: 9, root: 12, vector: 15, matrix: 15, cases: 15, superscript: 9, subscript: 9, subsup: 9, punctuated: { endpunct: Collapse.NOCOLLAPSE, startpunct: Collapse.NOCOLLAPSE, value: 12 } }; this.marker = { identifier: 'x', number: '#', text: '...', appl: { 'limit function': 'lim', value: 'f()' }, fraction: '/', sqrt: '\u221A', root: '\u221A', superscript: '\u25FD\u02D9', subscript: '\u25FD.', subsup: '\u25FD:', vector: { binomial: '(:)', determinant: '|:|', value: '\u27E8:\u27E9' }, matrix: { squarematrix: '[::]', rowvector: '\u27E8\u22EF\u27E9', columnvector: '\u27E8\u22EE\u27E9', determinant: '|::|', value: '(::)' }, cases: '{:', infixop: { addition: '+', subtraction: '\u2212', multiplication: '\u22C5', implicit: '\u22C5', value: '+' }, punctuated: { text: '...', value: ',' } }; this.collapse = new Map([ ['fenced', function (node, complexity) { complexity = _this.uncollapseChild(complexity, node, 1); if (complexity > _this.cutoff.fenced && node.attributes.get('data-semantic-role') === 'leftright') { complexity = _this.recordCollapse(node, complexity, _this.getText(node.childNodes[0]) + _this.getText(node.childNodes[node.childNodes.length - 1])); } return complexity; }], ['appl', function (node, complexity) { if (_this.canUncollapse(node, 2, 2)) { complexity = _this.complexity.visitNode(node, false); var marker = _this.marker.appl; var text = marker[node.attributes.get('data-semantic-role')] || marker.value; complexity = _this.recordCollapse(node, complexity, text); } return complexity; }], ['sqrt', function (node, complexity) { complexity = _this.uncollapseChild(complexity, node, 0); if (complexity > _this.cutoff.sqrt) { complexity = _this.recordCollapse(node, complexity, _this.marker.sqrt); } return complexity; }], ['root', function (node, complexity) { complexity = _this.uncollapseChild(complexity, node, 0, 2); if (complexity > _this.cutoff.sqrt) { complexity = _this.recordCollapse(node, complexity, _this.marker.sqrt); } return complexity; }], ['enclose', function (node, complexity) { if (_this.splitAttribute(node, 'children').length === 1) { var child = _this.canUncollapse(node, 1); if (child) { var marker = child.getProperty('collapse-marker'); _this.unrecordCollapse(child); complexity = _this.recordCollapse(node, _this.complexity.visitNode(node, false), marker); } } return complexity; }], ['bigop', function (node, complexity) { if (complexity > _this.cutoff.bigop || !node.isKind('mo')) { var id = _this.splitAttribute(node, 'content').pop(); var op = _this.findChildText(node, id); complexity = _this.recordCollapse(node, complexity, op); } return complexity; }], ['integral', function (node, complexity) { if (complexity > _this.cutoff.integral || !node.isKind('mo')) { var id = _this.splitAttribute(node, 'content').pop(); var op = _this.findChildText(node, id); complexity = _this.recordCollapse(node, complexity, op); } return complexity; }], ['relseq', function (node, complexity) { if (complexity > _this.cutoff.relseq) { var id = _this.splitAttribute(node, 'content')[0]; var text = _this.findChildText(node, id); complexity = _this.recordCollapse(node, complexity, text); } return complexity; }], ['multirel', function (node, complexity) { if (complexity > _this.cutoff.relseq) { var id = _this.splitAttribute(node, 'content')[0]; var text = _this.findChildText(node, id) + '\u22EF'; complexity = _this.recordCollapse(node, complexity, text); } return complexity; }], ['superscript', function (node, complexity) { complexity = _this.uncollapseChild(complexity, node, 0, 2); if (complexity > _this.cutoff.superscript) { complexity = _this.recordCollapse(node, complexity, _this.marker.superscript); } return complexity; }], ['subscript', function (node, complexity) { complexity = _this.uncollapseChild(complexity, node, 0, 2); if (complexity > _this.cutoff.subscript) { complexity = _this.recordCollapse(node, complexity, _this.marker.subscript); } return complexity; }], ['subsup', function (node, complexity) { complexity = _this.uncollapseChild(complexity, node, 0, 3); if (complexity > _this.cutoff.subsup) { complexity = _this.recordCollapse(node, complexity, _this.marker.subsup); } return complexity; }] ]); this.idCount = 0; this.complexity = visitor; } Collapse.prototype.check = function (node, complexity) { var type = node.attributes.get('data-semantic-type'); if (this.collapse.has(type)) { return this.collapse.get(type).call(this, node, complexity); } if (this.cutoff.hasOwnProperty(type)) { return this.defaultCheck(node, complexity, type); } return complexity; }; Collapse.prototype.defaultCheck = function (node, complexity, type) { var role = node.attributes.get('data-semantic-role'); var check = this.cutoff[type]; var cutoff = (typeof check === 'number' ? check : check[role] || check.value); if (complexity > cutoff) { var marker = this.marker[type] || '??'; var text = (typeof marker === 'string' ? marker : marker[role] || marker.value); complexity = this.recordCollapse(node, complexity, text); } return complexity; }; Collapse.prototype.recordCollapse = function (node, complexity, text) { text = '\u25C2' + text + '\u25B8'; node.setProperty('collapse-marker', text); node.setProperty('collapse-complexity', complexity); return text.length * this.complexity.complexity.text; }; Collapse.prototype.unrecordCollapse = function (node) { var complexity = node.getProperty('collapse-complexity'); if (complexity != null) { node.attributes.set('data-semantic-complexity', complexity); node.removeProperty('collapse-complexity'); node.removeProperty('collapse-marker'); } }; Collapse.prototype.canUncollapse = function (node, n, m) { if (m === void 0) { m = 1; } if (this.splitAttribute(node, 'children').length === m) { var mml = (node.childNodes.length === 1 && node.childNodes[0].isInferred ? node.childNodes[0] : node); if (mml && mml.childNodes[n]) { var child = mml.childNodes[n]; if (child.getProperty('collapse-marker')) { return child; } } } return null; }; Collapse.prototype.uncollapseChild = function (complexity, node, n, m) { if (m === void 0) { m = 1; } var child = this.canUncollapse(node, n, m); if (child) { this.unrecordCollapse(child); if (child.parent !== node) { child.parent.attributes.set('data-semantic-complexity', undefined); } complexity = this.complexity.visitNode(node, false); } return complexity; }; Collapse.prototype.splitAttribute = function (node, id) { return (node.attributes.get('data-semantic-' + id) || '').split(/,/); }; Collapse.prototype.getText = function (node) { var _this = this; if (node.isToken) return node.getText(); return node.childNodes.map(function (n) { return _this.getText(n); }).join(''); }; Collapse.prototype.findChildText = function (node, id) { var child = this.findChild(node, id); return this.getText(child.coreMO() || child); }; Collapse.prototype.findChild = function (node, id) { var e_1, _a; if (!node || node.attributes.get('data-semantic-id') === id) return node; if (!node.isToken) { try { for (var _b = __values(node.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var mml = _c.value; var child = this.findChild(mml, id); if (child) return child; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } return null; }; Collapse.prototype.makeCollapse = function (node) { var nodes = []; node.walkTree(function (child) { if (child.getProperty('collapse-marker')) { nodes.push(child); } }); this.makeActions(nodes); }; Collapse.prototype.makeActions = function (nodes) { var e_2, _a; try { for (var nodes_1 = __values(nodes), nodes_1_1 = nodes_1.next(); !nodes_1_1.done; nodes_1_1 = nodes_1.next()) { var node = nodes_1_1.value; this.makeAction(node); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (nodes_1_1 && !nodes_1_1.done && (_a = nodes_1.return)) _a.call(nodes_1); } finally { if (e_2) throw e_2.error; } } }; Collapse.prototype.makeId = function () { return 'mjx-collapse-' + this.idCount++; }; Collapse.prototype.makeAction = function (node) { if (node.isKind('math')) { node = this.addMrow(node); } var factory = this.complexity.factory; var marker = node.getProperty('collapse-marker'); var parent = node.parent; var maction = factory.create('maction', { actiontype: 'toggle', selection: 2, 'data-collapsible': true, id: this.makeId(), 'data-semantic-complexity': node.attributes.get('data-semantic-complexity') }, [ factory.create('mtext', { mathcolor: 'blue' }, [ factory.create('text').setText(marker) ]) ]); maction.inheritAttributesFrom(node); node.attributes.set('data-semantic-complexity', node.getProperty('collapse-complexity')); node.removeProperty('collapse-marker'); node.removeProperty('collapse-complexity'); parent.replaceChild(maction, node); maction.appendChild(node); }; Collapse.prototype.addMrow = function (node) { var e_3, _a; var mrow = this.complexity.factory.create('mrow', null, node.childNodes[0].childNodes); node.childNodes[0].setChildren([mrow]); var attributes = node.attributes.getAllAttributes(); try { for (var _b = __values(Object.keys(attributes)), _c = _b.next(); !_c.done; _c = _b.next()) { var name_1 = _c.value; if (name_1.substr(0, 14) === 'data-semantic-') { mrow.attributes.set(name_1, attributes[name_1]); delete attributes[name_1]; } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } mrow.setProperty('collapse-marker', node.getProperty('collapse-marker')); mrow.setProperty('collapse-complexity', node.getProperty('collapse-complexity')); node.removeProperty('collapse-marker'); node.removeProperty('collapse-complexity'); return mrow; }; Collapse.NOCOLLAPSE = 10000000; return Collapse; }()); exports.Collapse = Collapse; //# sourceMappingURL=collapse.js.map /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.APPEND = MathJax._.util.Options.APPEND; exports.REMOVE = MathJax._.util.Options.REMOVE; exports.Expandable = MathJax._.util.Options.Expandable; exports.expandable = MathJax._.util.Options.expandable; exports.makeArray = MathJax._.util.Options.makeArray; exports.keys = MathJax._.util.Options.keys; exports.copy = MathJax._.util.Options.copy; exports.insert = MathJax._.util.Options.insert; exports.defaultOptions = MathJax._.util.Options.defaultOptions; exports.userOptions = MathJax._.util.Options.userOptions; exports.selectOptions = MathJax._.util.Options.selectOptions; exports.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys; exports.separateOptions = MathJax._.util.Options.separateOptions; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.sreReady = MathJax._.a11y.sre.sreReady; /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.protoItem = MathJax._.core.MathItem.protoItem; exports.AbstractMathItem = MathJax._.core.MathItem.AbstractMathItem; exports.STATE = MathJax._.core.MathItem.STATE; exports.newState = MathJax._.core.MathItem.newState; /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlVisitor = MathJax._.core.MmlTree.MmlVisitor.MmlVisitor; /***/ }), /* 9 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/a11y/complexity.js var complexity = __webpack_require__(1); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/a11y/complexity/collapse.js var collapse = __webpack_require__(4); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/a11y/complexity/visitor.js var visitor = __webpack_require__(3); // EXTERNAL MODULE: ../semantic-enrich/lib/a11y/semantic-enrich.js var semantic_enrich = __webpack_require__(2); // EXTERNAL MODULE: ../semantic-enrich/lib/a11y/sre.js var sre = __webpack_require__(6); // CONCATENATED MODULE: ./lib/complexity.js Object(global["combineWithMathJax"])({ _: { a11y: { complexity_ts: complexity, complexity: { collapse: collapse, visitor: visitor }, "semantic-enrich": semantic_enrich, sre: sre } } }); // CONCATENATED MODULE: ./complexity.js if (MathJax.startup) { MathJax.startup.extendHandler(function (handler) { return Object(complexity["ComplexityHandler"])(handler); }); Object(global["combineDefaults"])(MathJax.config, 'options', MathJax.config['a11y/complexity'] || {}); } /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/a11y/semantic-enrich.js0000644000176200001440000004647714005301544021207 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 9); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sreReady = void 0; var AsyncLoad_js_1 = __webpack_require__(8); var SRELIB = (typeof window === 'undefined' ? './a11y/sre-node.js' : '../../../speech-rule-engine/lib/sre_browser.js'); var srePromise = (typeof sre === 'undefined' ? AsyncLoad_js_1.asyncLoad(SRELIB) : Promise.resolve()); var SRE_DELAY = 100; var SRE_TIMEOUT = 20 * 1000; exports.sreReady = function () { return new Promise(function (resolve, reject) { srePromise.then(function () { var start = new Date().getTime(); var checkSRE = function () { if (sre.Engine.isReady()) { resolve(); } else { if (new Date().getTime() - start < SRE_TIMEOUT) { setTimeout(checkSRE, SRE_DELAY); } else { reject('Timed out waiting for Speech-Rule-Engine'); } } }; checkSRE(); }).catch(function (error) { return reject(error.message || error); }); }); }; //# sourceMappingURL=sre.js.map /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.EnrichHandler = exports.EnrichedMathDocumentMixin = exports.EnrichedMathItemMixin = void 0; var mathjax_js_1 = __webpack_require__(4); var MathItem_js_1 = __webpack_require__(5); var SerializedMmlVisitor_js_1 = __webpack_require__(6); var Options_js_1 = __webpack_require__(7); var sre_js_1 = __webpack_require__(0); var currentSpeech = 'none'; MathItem_js_1.newState('ENRICHED', 30); MathItem_js_1.newState('ATTACHSPEECH', 155); function EnrichedMathItemMixin(BaseMathItem, MmlJax, toMathML) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.serializeMml = function (node) { if ('outerHTML' in node) { return node.outerHTML; } if (typeof Element !== 'undefined' && typeof window !== 'undefined' && node instanceof Element) { var div = window.document.createElement('div'); div.appendChild(node); return div.innerHTML; } return node.toString(); }; class_1.prototype.enrich = function (document, force) { if (force === void 0) { force = false; } if (this.state() >= MathItem_js_1.STATE.ENRICHED) return; if (!this.isEscaped && (document.options.enableEnrichment || force)) { if (typeof sre === 'undefined' || !sre.Engine.isReady()) { mathjax_js_1.mathjax.retryAfter(sre_js_1.sreReady()); } if (document.options.enrichSpeech !== currentSpeech) { SRE.setupEngine({ speech: document.options.enrichSpeech }); currentSpeech = document.options.enrichSpeech; } var math = new document.options.MathItem('', MmlJax); math.math = this.serializeMml(SRE.toEnriched(toMathML(this.root))); math.display = this.display; math.compile(document); this.root = math.root; this.inputData.originalMml = math.math; } this.state(MathItem_js_1.STATE.ENRICHED); }; class_1.prototype.attachSpeech = function (document) { var e_1, _a; if (this.state() >= MathItem_js_1.STATE.ATTACHSPEECH) return; var attributes = this.root.attributes; var speech = (attributes.get('aria-label') || this.getSpeech(this.root)); if (speech) { var adaptor = document.adaptor; var node = this.typesetRoot; adaptor.setAttribute(node, 'aria-label', speech); try { for (var _b = __values(adaptor.childNodes(node)), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; adaptor.setAttribute(child, 'aria-hidden', 'true'); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } this.state(MathItem_js_1.STATE.ATTACHSPEECH); }; class_1.prototype.getSpeech = function (node) { var e_2, _a; var attributes = node.attributes; if (!attributes) return ''; var speech = attributes.getExplicit('data-semantic-speech'); if (!attributes.getExplicit('data-semantic-parent') && speech) { return speech; } try { for (var _b = __values(node.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; var value = this.getSpeech(child); if (value != null) { return value; } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } return ''; }; return class_1; }(BaseMathItem)); } exports.EnrichedMathItemMixin = EnrichedMathItemMixin; function EnrichedMathDocumentMixin(BaseDocument, MmlJax) { var _a; return _a = (function (_super) { __extends(class_2, _super); function class_2() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; MmlJax.setMmlFactory(_this.mmlFactory); var ProcessBits = _this.constructor.ProcessBits; if (!ProcessBits.has('enriched')) { ProcessBits.allocate('enriched'); ProcessBits.allocate('attach-speech'); } var visitor = new SerializedMmlVisitor_js_1.SerializedMmlVisitor(_this.mmlFactory); var toMathML = (function (node) { return visitor.visitTree(node); }); _this.options.MathItem = EnrichedMathItemMixin(_this.options.MathItem, MmlJax, toMathML); return _this; } class_2.prototype.attachSpeech = function () { var e_3, _a; if (!this.processed.isSet('attach-speech')) { try { for (var _b = __values(this.math), _c = _b.next(); !_c.done; _c = _b.next()) { var math = _c.value; math.attachSpeech(this); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } this.processed.set('attach-speech'); } return this; }; class_2.prototype.enrich = function () { var e_4, _a; if (!this.processed.isSet('enriched')) { if (this.options.enableEnrichment) { try { for (var _b = __values(this.math), _c = _b.next(); !_c.done; _c = _b.next()) { var math = _c.value; math.enrich(this); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } } this.processed.set('enriched'); } return this; }; class_2.prototype.state = function (state, restore) { if (restore === void 0) { restore = false; } _super.prototype.state.call(this, state, restore); if (state < MathItem_js_1.STATE.ENRICHED) { this.processed.clear('enriched'); } return this; }; return class_2; }(BaseDocument)), _a.OPTIONS = __assign(__assign({}, BaseDocument.OPTIONS), { enableEnrichment: true, enrichSpeech: 'none', renderActions: Options_js_1.expandable(__assign(__assign({}, BaseDocument.OPTIONS.renderActions), { enrich: [MathItem_js_1.STATE.ENRICHED], attachSpeech: [MathItem_js_1.STATE.ATTACHSPEECH] })) }), _a; } exports.EnrichedMathDocumentMixin = EnrichedMathDocumentMixin; function EnrichHandler(handler, MmlJax) { MmlJax.setAdaptor(handler.adaptor); handler.documentClass = EnrichedMathDocumentMixin(handler.documentClass, MmlJax); return handler; } exports.EnrichHandler = EnrichHandler; //# sourceMappingURL=semantic-enrich.js.map /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MathML = MathJax._.input.mathml_ts.MathML; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.mathjax = MathJax._.mathjax.mathjax; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.protoItem = MathJax._.core.MathItem.protoItem; exports.AbstractMathItem = MathJax._.core.MathItem.AbstractMathItem; exports.STATE = MathJax._.core.MathItem.STATE; exports.newState = MathJax._.core.MathItem.newState; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.DATAMJX = MathJax._.core.MmlTree.SerializedMmlVisitor.DATAMJX; exports.toEntity = MathJax._.core.MmlTree.SerializedMmlVisitor.toEntity; exports.SerializedMmlVisitor = MathJax._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor; /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.APPEND = MathJax._.util.Options.APPEND; exports.REMOVE = MathJax._.util.Options.REMOVE; exports.Expandable = MathJax._.util.Options.Expandable; exports.expandable = MathJax._.util.Options.expandable; exports.makeArray = MathJax._.util.Options.makeArray; exports.keys = MathJax._.util.Options.keys; exports.copy = MathJax._.util.Options.copy; exports.insert = MathJax._.util.Options.insert; exports.defaultOptions = MathJax._.util.Options.defaultOptions; exports.userOptions = MathJax._.util.Options.userOptions; exports.selectOptions = MathJax._.util.Options.selectOptions; exports.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys; exports.separateOptions = MathJax._.util.Options.separateOptions; /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.asyncLoad = MathJax._.util.AsyncLoad.asyncLoad; /***/ }), /* 9 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(1); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/a11y/semantic-enrich.js var semantic_enrich = __webpack_require__(2); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/a11y/sre.js var sre = __webpack_require__(0); // CONCATENATED MODULE: ./lib/semantic-enrich.js Object(global["combineWithMathJax"])({ _: { a11y: { "semantic-enrich": semantic_enrich, sre: sre } } }); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/input/mml/lib/input/mathml.js var mathml = __webpack_require__(3); // CONCATENATED MODULE: ./semantic-enrich.js if (MathJax.loader) { Object(global["combineDefaults"])(MathJax.config.loader, 'a11y/semantic-enrich', { checkReady: function checkReady() { return Object(sre["sreReady"])(); } }); } if (MathJax.startup) { MathJax.startup.extendHandler(function (handler) { return Object(semantic_enrich["EnrichHandler"])(handler, new mathml["MathML"]()); }); } /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/a11y/explorer.js0000644000176200001440000017734414005301544017774 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 14); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.sreReady = MathJax._.a11y.sre.sreReady; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractExplorer = void 0; __webpack_require__(0); var AbstractExplorer = (function () { function AbstractExplorer(document, region, node) { var _rest = []; for (var _i = 3; _i < arguments.length; _i++) { _rest[_i - 3] = arguments[_i]; } this.document = document; this.region = region; this.node = node; this.stoppable = true; this.events = []; this.highlighter = this.getHighlighter(); this._active = false; } AbstractExplorer.stopEvent = function (event) { if (event.preventDefault) { event.preventDefault(); } else { event.returnValue = false; } if (event.stopImmediatePropagation) { event.stopImmediatePropagation(); } else if (event.stopPropagation) { event.stopPropagation(); } event.cancelBubble = true; }; AbstractExplorer.create = function (document, region, node) { var rest = []; for (var _i = 3; _i < arguments.length; _i++) { rest[_i - 3] = arguments[_i]; } var explorer = new (this.bind.apply(this, __spread([void 0, document, region, node], rest)))(); return explorer; }; AbstractExplorer.prototype.Events = function () { return this.events; }; Object.defineProperty(AbstractExplorer.prototype, "active", { get: function () { return this._active; }, set: function (flag) { this._active = flag; }, enumerable: false, configurable: true }); AbstractExplorer.prototype.Attach = function () { this.AddEvents(); }; AbstractExplorer.prototype.Detach = function () { this.RemoveEvents(); }; AbstractExplorer.prototype.Start = function () { this.highlighter = this.getHighlighter(); this.active = true; }; AbstractExplorer.prototype.Stop = function () { if (this.active) { this.region.Clear(); this.region.Hide(); this.active = false; } }; AbstractExplorer.prototype.AddEvents = function () { var e_1, _a; try { for (var _b = __values(this.events), _c = _b.next(); !_c.done; _c = _b.next()) { var _d = __read(_c.value, 2), eventkind = _d[0], eventfunc = _d[1]; this.node.addEventListener(eventkind, eventfunc); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; AbstractExplorer.prototype.RemoveEvents = function () { var e_2, _a; try { for (var _b = __values(this.events), _c = _b.next(); !_c.done; _c = _b.next()) { var _d = __read(_c.value, 2), eventkind = _d[0], eventfunc = _d[1]; this.node.removeEventListener(eventkind, eventfunc); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } }; AbstractExplorer.prototype.Update = function (force) { if (force === void 0) { force = false; } }; AbstractExplorer.prototype.getHighlighter = function () { var opts = this.document.options.a11y; var foreground = { color: opts.foregroundColor.toLowerCase(), alpha: opts.foregroundOpacity / 100 }; var background = { color: opts.backgroundColor.toLowerCase(), alpha: opts.backgroundOpacity / 100 }; return sre.HighlighterFactory.highlighter(background, foreground, { renderer: this.document.outputJax.name, browser: 'v3' }); }; AbstractExplorer.prototype.stopEvent = function (event) { if (this.stoppable) { AbstractExplorer.stopEvent(event); } }; return AbstractExplorer; }()); exports.AbstractExplorer = AbstractExplorer; //# sourceMappingURL=Explorer.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var _a, _b, _c; Object.defineProperty(exports, "__esModule", { value: true }); exports.HoverRegion = exports.LiveRegion = exports.ToolTip = exports.StringRegion = exports.DummyRegion = exports.AbstractRegion = void 0; var StyleList_js_1 = __webpack_require__(13); __webpack_require__(0); var AbstractRegion = (function () { function AbstractRegion(document) { this.document = document; this.CLASS = this.constructor; this.AddStyles(); this.AddElement(); } AbstractRegion.prototype.AddStyles = function () { if (this.CLASS.styleAdded) { return; } var node = this.document.adaptor.node('style'); node.innerHTML = this.CLASS.style.cssText; this.document.adaptor.head(this.document.adaptor.document). appendChild(node); this.CLASS.styleAdded = true; }; AbstractRegion.prototype.AddElement = function () { var element = this.document.adaptor.node('div'); element.classList.add(this.CLASS.className); element.style.backgroundColor = 'white'; this.div = element; this.inner = this.document.adaptor.node('div'); this.div.appendChild(this.inner); this.document.adaptor. body(this.document.adaptor.document). appendChild(this.div); }; AbstractRegion.prototype.Show = function (node, highlighter) { this.position(node); this.highlight(highlighter); this.div.classList.add(this.CLASS.className + '_Show'); }; AbstractRegion.prototype.Hide = function () { this.div.classList.remove(this.CLASS.className + '_Show'); }; AbstractRegion.prototype.stackRegions = function (node) { var rect = node.getBoundingClientRect(); var baseBottom = 0; var baseLeft = Number.POSITIVE_INFINITY; var regions = this.document.adaptor.document.getElementsByClassName(this.CLASS.className + '_Show'); for (var i = 0, region = void 0; region = regions[i]; i++) { if (region !== this.div) { baseBottom = Math.max(region.getBoundingClientRect().bottom, baseBottom); baseLeft = Math.min(region.getBoundingClientRect().left, baseLeft); } } var bot = (baseBottom ? baseBottom : rect.bottom + 10) + window.pageYOffset; var left = (baseLeft < Number.POSITIVE_INFINITY ? baseLeft : rect.left) + window.pageXOffset; this.div.style.top = bot + 'px'; this.div.style.left = left + 'px'; }; AbstractRegion.styleAdded = false; return AbstractRegion; }()); exports.AbstractRegion = AbstractRegion; var DummyRegion = (function (_super) { __extends(DummyRegion, _super); function DummyRegion() { return _super !== null && _super.apply(this, arguments) || this; } DummyRegion.prototype.Clear = function () { }; DummyRegion.prototype.Update = function () { }; DummyRegion.prototype.Hide = function () { }; DummyRegion.prototype.Show = function () { }; DummyRegion.prototype.AddElement = function () { }; DummyRegion.prototype.AddStyles = function () { }; DummyRegion.prototype.position = function () { }; DummyRegion.prototype.highlight = function (_highlighter) { }; return DummyRegion; }(AbstractRegion)); exports.DummyRegion = DummyRegion; var StringRegion = (function (_super) { __extends(StringRegion, _super); function StringRegion() { return _super !== null && _super.apply(this, arguments) || this; } StringRegion.prototype.Clear = function () { this.Update(''); this.inner.style.top = ''; this.inner.style.backgroundColor = ''; }; StringRegion.prototype.Update = function (speech) { this.inner.textContent = ''; this.inner.textContent = speech; }; StringRegion.prototype.position = function (node) { this.stackRegions(node); }; StringRegion.prototype.highlight = function (highlighter) { var color = highlighter.colorString(); this.inner.style.backgroundColor = color.background; this.inner.style.color = color.foreground; }; return StringRegion; }(AbstractRegion)); exports.StringRegion = StringRegion; var ToolTip = (function (_super) { __extends(ToolTip, _super); function ToolTip() { return _super !== null && _super.apply(this, arguments) || this; } ToolTip.className = 'MJX_ToolTip'; ToolTip.style = new StyleList_js_1.CssStyles((_a = {}, _a['.' + ToolTip.className] = { position: 'absolute', display: 'inline-block', height: '1px', width: '1px' }, _a['.' + ToolTip.className + '_Show'] = { width: 'auto', height: 'auto', opacity: 1, 'text-align': 'center', 'border-radius': '6px', padding: '0px 0px', 'border-bottom': '1px dotted black', position: 'absolute', 'z-index': 202 }, _a)); return ToolTip; }(StringRegion)); exports.ToolTip = ToolTip; var LiveRegion = (function (_super) { __extends(LiveRegion, _super); function LiveRegion(document) { var _this = _super.call(this, document) || this; _this.document = document; _this.div.setAttribute('aria-live', 'assertive'); return _this; } LiveRegion.className = 'MJX_LiveRegion'; LiveRegion.style = new StyleList_js_1.CssStyles((_b = {}, _b['.' + LiveRegion.className] = { position: 'absolute', top: '0', height: '1px', width: '1px', padding: '1px', overflow: 'hidden' }, _b['.' + LiveRegion.className + '_Show'] = { top: '0', position: 'absolute', width: 'auto', height: 'auto', padding: '0px 0px', opacity: 1, 'z-index': '202', left: 0, right: 0, 'margin': '0 auto', 'background-color': 'rgba(0, 0, 255, 0.2)', 'box-shadow': '0px 10px 20px #888', border: '2px solid #CCCCCC' }, _b)); return LiveRegion; }(StringRegion)); exports.LiveRegion = LiveRegion; var HoverRegion = (function (_super) { __extends(HoverRegion, _super); function HoverRegion(document) { var _this = _super.call(this, document) || this; _this.document = document; _this.inner.style.lineHeight = '0'; return _this; } HoverRegion.prototype.position = function (node) { var nodeRect = node.getBoundingClientRect(); var divRect = this.div.getBoundingClientRect(); var xCenter = nodeRect.left + (nodeRect.width / 2); var left = xCenter - (divRect.width / 2); left = (left < 0) ? 0 : left; left = left + window.pageXOffset; var top; switch (this.document.options.a11y.align) { case 'top': top = nodeRect.top - divRect.height - 10; break; case 'bottom': top = nodeRect.bottom + 10; break; case 'center': default: var yCenter = nodeRect.top + (nodeRect.height / 2); top = yCenter - (divRect.height / 2); } top = top + window.pageYOffset; top = (top < 0) ? 0 : top; this.div.style.top = top + 'px'; this.div.style.left = left + 'px'; }; HoverRegion.prototype.highlight = function (highlighter) { if (this.inner.firstChild && !this.inner.firstChild.hasAttribute('sre-highlight')) { return; } var color = highlighter.colorString(); this.inner.style.backgroundColor = color.background; this.inner.style.color = color.foreground; }; HoverRegion.prototype.Show = function (node, highlighter) { this.div.style.fontSize = this.document.options.a11y.magnify; this.Update(node); _super.prototype.Show.call(this, node, highlighter); }; HoverRegion.prototype.Clear = function () { this.inner.textContent = ''; this.inner.style.top = ''; this.inner.style.backgroundColor = ''; }; HoverRegion.prototype.Update = function (node) { this.Clear(); var mjx = this.cloneNode(node); this.inner.appendChild(mjx); }; HoverRegion.prototype.cloneNode = function (node) { var mjx = node.cloneNode(true); if (mjx.nodeName !== 'MJX-CONTAINER') { if (mjx.nodeName !== 'g') { mjx.style.marginLeft = mjx.style.marginRight = '0'; } var container = node; while (container && container.nodeName !== 'MJX-CONTAINER') { container = container.parentNode; } if (mjx.nodeName !== 'MJX-MATH' && mjx.nodeName !== 'svg') { var child = container.firstChild; mjx = child.cloneNode(false).appendChild(mjx).parentNode; if (mjx.nodeName === 'svg') { mjx.firstChild.setAttribute('transform', 'matrix(1 0 0 -1 0 0)'); var W = parseFloat(mjx.getAttribute('viewBox').split(/ /)[2]); var w = parseFloat(mjx.getAttribute('width')); var _a = node.getBBox(), x = _a.x, y = _a.y, width = _a.width, height = _a.height; mjx.setAttribute('viewBox', [x, -(y + height), width, height].join(' ')); mjx.removeAttribute('style'); mjx.setAttribute('width', (w / W * width) + 'ex'); mjx.setAttribute('height', (w / W * height) + 'ex'); container.setAttribute('sre-highlight', 'false'); } } mjx = container.cloneNode(false).appendChild(mjx).parentNode; mjx.style.margin = '0'; } return mjx; }; HoverRegion.className = 'MJX_HoverRegion'; HoverRegion.style = new StyleList_js_1.CssStyles((_c = {}, _c['.' + HoverRegion.className] = { position: 'absolute', height: '1px', width: '1px', padding: '1px', overflow: 'hidden' }, _c['.' + HoverRegion.className + '_Show'] = { position: 'absolute', width: 'max-content', height: 'auto', padding: '0px 0px', opacity: 1, 'z-index': '202', 'margin': '0 auto', 'background-color': 'rgba(0, 0, 255, 0.2)', 'box-shadow': '0px 10px 20px #888', border: '2px solid #CCCCCC' }, _c)); return HoverRegion; }(AbstractRegion)); exports.HoverRegion = HoverRegion; //# sourceMappingURL=Region.js.map /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.setA11yOption = exports.setA11yOptions = exports.ExplorerHandler = exports.ExplorerMathDocumentMixin = exports.ExplorerMathItemMixin = void 0; var MathItem_js_1 = __webpack_require__(8); var semantic_enrich_js_1 = __webpack_require__(9); var Options_js_1 = __webpack_require__(10); var SerializedMmlVisitor_js_1 = __webpack_require__(11); var MJContextMenu_js_1 = __webpack_require__(12); var ke = __webpack_require__(5); var me = __webpack_require__(6); var TreeExplorer_js_1 = __webpack_require__(7); var Region_js_1 = __webpack_require__(2); MathItem_js_1.newState('EXPLORER', 160); function ExplorerMathItemMixin(BaseMathItem, toMathML) { return (function (_super) { __extends(class_1, _super); function class_1() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.explorers = {}; _this.attached = []; _this.restart = false; _this.refocus = false; _this.savedId = null; return _this; } class_1.prototype.explorable = function (document, force) { if (force === void 0) { force = false; } if (this.state() >= MathItem_js_1.STATE.EXPLORER) return; if (!this.isEscaped && (document.options.enableExplorer || force)) { var node = this.typesetRoot; var mml = toMathML(this.root); if (this.savedId) { this.typesetRoot.setAttribute('sre-explorer-id', this.savedId); this.savedId = null; } this.explorers = initExplorers(document, node, mml); this.attachExplorers(document); } this.state(MathItem_js_1.STATE.EXPLORER); }; class_1.prototype.attachExplorers = function (document) { var e_1, _a; this.attached = []; try { for (var _b = __values(Object.keys(this.explorers)), _c = _b.next(); !_c.done; _c = _b.next()) { var key = _c.value; var explorer = this.explorers[key]; if (document.options.a11y[key]) { explorer.Attach(); this.attached.push(explorer); } else { explorer.Detach(); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this.addExplorers(this.attached); }; class_1.prototype.rerender = function (document, start) { var e_2, _a; if (start === void 0) { start = MathItem_js_1.STATE.RERENDER; } this.savedId = this.typesetRoot.getAttribute('sre-explorer-id'); this.refocus = (window.document.activeElement === this.typesetRoot); try { for (var _b = __values(this.attached), _c = _b.next(); !_c.done; _c = _b.next()) { var explorer = _c.value; if (explorer.active) { this.restart = true; explorer.Stop(); } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } _super.prototype.rerender.call(this, document, start); }; class_1.prototype.updateDocument = function (document) { _super.prototype.updateDocument.call(this, document); this.refocus && this.typesetRoot.focus(); this.restart && this.attached.forEach(function (x) { return x.Start(); }); this.refocus = this.restart = false; }; class_1.prototype.addExplorers = function (explorers) { var e_3, _a; if (explorers.length <= 1) return; var lastKeyExplorer = null; try { for (var _b = __values(this.attached), _c = _b.next(); !_c.done; _c = _b.next()) { var explorer = _c.value; if (!(explorer instanceof ke.AbstractKeyExplorer)) continue; explorer.stoppable = false; lastKeyExplorer = explorer; } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } if (lastKeyExplorer) { lastKeyExplorer.stoppable = true; } }; return class_1; }(BaseMathItem)); } exports.ExplorerMathItemMixin = ExplorerMathItemMixin; function ExplorerMathDocumentMixin(BaseDocument) { var _a; return _a = (function (_super) { __extends(class_2, _super); function class_2() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; var ProcessBits = _this.constructor.ProcessBits; if (!ProcessBits.has('explorer')) { ProcessBits.allocate('explorer'); } var visitor = new SerializedMmlVisitor_js_1.SerializedMmlVisitor(_this.mmlFactory); var toMathML = (function (node) { return visitor.visitTree(node); }); _this.options.MathItem = ExplorerMathItemMixin(_this.options.MathItem, toMathML); _this.explorerRegions = initExplorerRegions(_this); return _this; } class_2.prototype.explorable = function () { var e_4, _a; if (!this.processed.isSet('explorer')) { if (this.options.enableExplorer) { try { for (var _b = __values(this.math), _c = _b.next(); !_c.done; _c = _b.next()) { var math = _c.value; math.explorable(this); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } } this.processed.set('explorer'); } return this; }; class_2.prototype.state = function (state, restore) { if (restore === void 0) { restore = false; } _super.prototype.state.call(this, state, restore); if (state < MathItem_js_1.STATE.EXPLORER) { this.processed.clear('explorer'); } return this; }; return class_2; }(BaseDocument)), _a.OPTIONS = __assign(__assign({}, BaseDocument.OPTIONS), { enrichSpeech: 'shallow', enableExplorer: true, renderActions: Options_js_1.expandable(__assign(__assign({}, BaseDocument.OPTIONS.renderActions), { explorable: [MathItem_js_1.STATE.EXPLORER] })), a11y: { align: 'top', backgroundColor: 'Blue', backgroundOpacity: 20, braille: false, flame: false, foregroundColor: 'Black', foregroundOpacity: 100, highlight: 'None', hover: false, infoPrefix: false, infoRole: false, infoType: false, keyMagnifier: false, locale: 'en', magnification: 'None', magnify: '400%', mouseMagnifier: false, speech: true, speechRules: 'mathspeak-default', subtitles: true, treeColoring: false, viewBraille: false } }), _a; } exports.ExplorerMathDocumentMixin = ExplorerMathDocumentMixin; function ExplorerHandler(handler, MmlJax) { if (MmlJax === void 0) { MmlJax = null; } if (!handler.documentClass.prototype.enrich && MmlJax) { handler = semantic_enrich_js_1.EnrichHandler(handler, MmlJax); } handler.documentClass = ExplorerMathDocumentMixin(handler.documentClass); return handler; } exports.ExplorerHandler = ExplorerHandler; function initExplorerRegions(document) { return { speechRegion: new Region_js_1.LiveRegion(document), brailleRegion: new Region_js_1.LiveRegion(document), magnifier: new Region_js_1.HoverRegion(document), tooltip1: new Region_js_1.ToolTip(document), tooltip2: new Region_js_1.ToolTip(document), tooltip3: new Region_js_1.ToolTip(document) }; } var allExplorers = { speech: function (doc, node) { var _a; var rest = []; for (var _i = 2; _i < arguments.length; _i++) { rest[_i - 2] = arguments[_i]; } var explorer = (_a = ke.SpeechExplorer).create.apply(_a, __spread([doc, doc.explorerRegions.speechRegion, node], rest)); var _b = __read(doc.options.a11y.speechRules.split('-'), 2), domain = _b[0], style = _b[1]; explorer.speechGenerator.setOptions({ locale: doc.options.a11y.locale, domain: domain, style: style, modality: 'speech', cache: false }); explorer.showRegion = 'subtitles'; return explorer; }, braille: function (doc, node) { var _a; var rest = []; for (var _i = 2; _i < arguments.length; _i++) { rest[_i - 2] = arguments[_i]; } var explorer = (_a = ke.SpeechExplorer).create.apply(_a, __spread([doc, doc.explorerRegions.brailleRegion, node], rest)); explorer.speechGenerator.setOptions({ locale: 'nemeth', domain: 'default', style: 'default', modality: 'braille' }); explorer.showRegion = 'viewBraille'; return explorer; }, keyMagnifier: function (doc, node) { var _a; var rest = []; for (var _i = 2; _i < arguments.length; _i++) { rest[_i - 2] = arguments[_i]; } return (_a = ke.Magnifier).create.apply(_a, __spread([doc, doc.explorerRegions.magnifier, node], rest)); }, mouseMagnifier: function (doc, node) { var _rest = []; for (var _i = 2; _i < arguments.length; _i++) { _rest[_i - 2] = arguments[_i]; } return me.ContentHoverer.create(doc, doc.explorerRegions.magnifier, node, function (x) { return x.hasAttribute('data-semantic-type'); }, function (x) { return x; }); }, hover: function (doc, node) { var _rest = []; for (var _i = 2; _i < arguments.length; _i++) { _rest[_i - 2] = arguments[_i]; } return me.FlameHoverer.create(doc, null, node); }, infoType: function (doc, node) { var _rest = []; for (var _i = 2; _i < arguments.length; _i++) { _rest[_i - 2] = arguments[_i]; } return me.ValueHoverer.create(doc, doc.explorerRegions.tooltip1, node, function (x) { return x.hasAttribute('data-semantic-type'); }, function (x) { return x.getAttribute('data-semantic-type'); }); }, infoRole: function (doc, node) { var _rest = []; for (var _i = 2; _i < arguments.length; _i++) { _rest[_i - 2] = arguments[_i]; } return me.ValueHoverer.create(doc, doc.explorerRegions.tooltip2, node, function (x) { return x.hasAttribute('data-semantic-role'); }, function (x) { return x.getAttribute('data-semantic-role'); }); }, infoPrefix: function (doc, node) { var _rest = []; for (var _i = 2; _i < arguments.length; _i++) { _rest[_i - 2] = arguments[_i]; } return me.ValueHoverer.create(doc, doc.explorerRegions.tooltip3, node, function (x) { return x.hasAttribute('data-semantic-prefix'); }, function (x) { return x.getAttribute('data-semantic-prefix'); }); }, flame: function (doc, node) { var _rest = []; for (var _i = 2; _i < arguments.length; _i++) { _rest[_i - 2] = arguments[_i]; } return TreeExplorer_js_1.FlameColorer.create(doc, null, node); }, treeColoring: function (doc, node) { var rest = []; for (var _i = 2; _i < arguments.length; _i++) { rest[_i - 2] = arguments[_i]; } return TreeExplorer_js_1.TreeColorer.create.apply(TreeExplorer_js_1.TreeColorer, __spread([doc, null, node], rest)); } }; function initExplorers(document, node, mml) { var e_5, _a; var explorers = {}; try { for (var _b = __values(Object.keys(allExplorers)), _c = _b.next(); !_c.done; _c = _b.next()) { var key = _c.value; explorers[key] = allExplorers[key](document, node, mml); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_5) throw e_5.error; } } return explorers; } function setA11yOptions(document, options) { var e_6, _a; for (var key in options) { if (document.options.a11y[key] !== undefined) { setA11yOption(document, key, options[key]); } } try { for (var _b = __values(document.math), _c = _b.next(); !_c.done; _c = _b.next()) { var item = _c.value; item.attachExplorers(document); } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_6) throw e_6.error; } } } exports.setA11yOptions = setA11yOptions; function setA11yOption(document, option, value) { switch (option) { case 'magnification': switch (value) { case 'None': document.options.a11y.magnification = value; document.options.a11y.keyMagnifier = false; document.options.a11y.mouseMagnifier = false; break; case 'Keyboard': document.options.a11y.magnification = value; document.options.a11y.keyMagnifier = true; document.options.a11y.mouseMagnifier = false; break; case 'Mouse': document.options.a11y.magnification = value; document.options.a11y.keyMagnifier = false; document.options.a11y.mouseMagnifier = true; break; } break; case 'highlight': switch (value) { case 'None': document.options.a11y.highlight = value; document.options.a11y.hover = false; document.options.a11y.flame = false; break; case 'Hover': document.options.a11y.highlight = value; document.options.a11y.hover = true; document.options.a11y.flame = false; break; case 'Flame': document.options.a11y.highlight = value; document.options.a11y.hover = false; document.options.a11y.flame = true; break; } break; default: document.options.a11y[option] = value; } } exports.setA11yOption = setA11yOption; var csPrefsSetting = {}; var csPrefsVariables = function (menu, prefs) { var e_7, _a; var srVariable = menu.pool.lookup('speechRules'); var _loop_1 = function (pref) { if (csPrefsSetting[pref]) return "continue"; menu.factory.get('variable')(menu.factory, { name: 'csprf_' + pref, setter: function (value) { csPrefsSetting[pref] = value; srVariable.setValue('clearspeak-' + sre.ClearspeakPreferences.addPreference(sre.Engine.DOMAIN_TO_STYLES['clearspeak'], pref, value)); }, getter: function () { return csPrefsSetting[pref] || 'Auto'; } }, menu.pool); }; try { for (var prefs_1 = __values(prefs), prefs_1_1 = prefs_1.next(); !prefs_1_1.done; prefs_1_1 = prefs_1.next()) { var pref = prefs_1_1.value; _loop_1(pref); } } catch (e_7_1) { e_7 = { error: e_7_1 }; } finally { try { if (prefs_1_1 && !prefs_1_1.done && (_a = prefs_1.return)) _a.call(prefs_1); } finally { if (e_7) throw e_7.error; } } }; var csSelectionBox = function (menu, locale) { var e_8, _a; var prefs = sre.ClearspeakPreferences.getLocalePreferences(); var props = prefs[locale]; if (!props) { var csEntry = menu.findID('Accessibility', 'Speech', 'Clearspeak'); if (csEntry) { csEntry.disable(); } return null; } csPrefsVariables(menu, Object.keys(props)); var items = []; var _loop_2 = function (prop) { items.push({ 'title': prop, 'values': props[prop].map(function (x) { return x.replace(RegExp('^' + prop + '_'), ''); }), 'variable': 'csprf_' + prop }); }; try { for (var _b = __values(Object.getOwnPropertyNames(props)), _c = _b.next(); !_c.done; _c = _b.next()) { var prop = _c.value; _loop_2(prop); } } catch (e_8_1) { e_8 = { error: e_8_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_8) throw e_8.error; } } var sb = menu.factory.get('selectionBox')(menu.factory, { 'title': 'Clearspeak Preferences', 'signature': '', 'order': 'alphabetic', 'grid': 'square', 'selections': items }, menu); return { 'type': 'command', 'id': 'ClearspeakPreferences', 'content': 'Select Preferences', 'action': function () { return sb.post(0, 0); } }; }; var csMenu = function (menu, sub) { var locale = menu.pool.lookup('locale').getValue(); var box = csSelectionBox(menu, locale); var items = sre.ClearspeakPreferences.smartPreferences(menu.mathItem, locale); if (box) { items.splice(2, 0, box); } return menu.factory.get('subMenu')(menu.factory, { items: items, id: 'Clearspeak' }, sub); }; MJContextMenu_js_1.MJContextMenu.DynamicSubmenus.set('Clearspeak', csMenu); var iso = { 'de': 'German', 'en': 'English', 'es': 'Spanish', 'fr': 'French' }; var language = function (menu, sub) { var e_9, _a; var radios = []; try { for (var _b = __values(sre.Variables.LOCALES), _c = _b.next(); !_c.done; _c = _b.next()) { var lang = _c.value; if (lang === 'nemeth') continue; radios.push({ type: 'radio', id: lang, content: iso[lang] || lang, variable: 'locale' }); } } catch (e_9_1) { e_9 = { error: e_9_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_9) throw e_9.error; } } radios.sort(function (x, y) { return x.content.localeCompare(y.content, 'en'); }); return menu.factory.get('subMenu')(menu.factory, { items: radios, id: 'Language' }, sub); }; MJContextMenu_js_1.MJContextMenu.DynamicSubmenus.set('A11yLanguage', language); //# sourceMappingURL=explorer.js.map /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Magnifier = exports.SpeechExplorer = exports.AbstractKeyExplorer = void 0; var Explorer_js_1 = __webpack_require__(1); var sre_js_1 = __webpack_require__(0); var AbstractKeyExplorer = (function (_super) { __extends(AbstractKeyExplorer, _super); function AbstractKeyExplorer() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.events = _super.prototype.Events.call(_this).concat([['keydown', _this.KeyDown.bind(_this)], ['focusin', _this.FocusIn.bind(_this)], ['focusout', _this.FocusOut.bind(_this)]]); _this.oldIndex = null; return _this; } AbstractKeyExplorer.prototype.FocusIn = function (_event) { }; AbstractKeyExplorer.prototype.FocusOut = function (_event) { this.Stop(); }; AbstractKeyExplorer.prototype.Update = function (force) { if (force === void 0) { force = false; } if (!this.active && !force) return; this.highlighter.unhighlight(); this.highlighter.highlight(this.walker.getFocus(true).getNodes()); }; AbstractKeyExplorer.prototype.Attach = function () { _super.prototype.Attach.call(this); this.oldIndex = this.node.tabIndex; this.node.tabIndex = 1; this.node.setAttribute('role', 'application'); }; AbstractKeyExplorer.prototype.Detach = function () { this.node.tabIndex = this.oldIndex; this.oldIndex = null; this.node.removeAttribute('role'); _super.prototype.Detach.call(this); }; AbstractKeyExplorer.prototype.Stop = function () { if (this.active) { this.highlighter.unhighlight(); this.walker.deactivate(); } _super.prototype.Stop.call(this); }; return AbstractKeyExplorer; }(Explorer_js_1.AbstractExplorer)); exports.AbstractKeyExplorer = AbstractKeyExplorer; var SpeechExplorer = (function (_super) { __extends(SpeechExplorer, _super); function SpeechExplorer(document, region, node, mml) { var _this = _super.call(this, document, region, node) || this; _this.document = document; _this.region = region; _this.node = node; _this.mml = mml; _this.showRegion = 'subtitles'; _this.init = false; _this.restarted = false; _this.initWalker(); return _this; } SpeechExplorer.prototype.Start = function () { var _this = this; var options = this.getOptions(); if (!this.init) { this.init = true; sre_js_1.sreReady().then(function () { if (SRE.engineSetup().locale !== options.locale) { SRE.setupEngine({ locale: options.locale }); } sre_js_1.sreReady().then(function () { _this.Speech(_this.walker); _this.Start(); }); }).catch(function (error) { return console.log(error.message); }); return; } _super.prototype.Start.call(this); this.speechGenerator = sre.SpeechGeneratorFactory.generator('Direct'); this.speechGenerator.setOptions(options); this.walker = sre.WalkerFactory.walker('table', this.node, this.speechGenerator, this.highlighter, this.mml); this.walker.activate(); this.Update(); if (this.document.options.a11y[this.showRegion]) { this.region.Show(this.node, this.highlighter); } this.restarted = true; }; SpeechExplorer.prototype.Update = function (force) { if (force === void 0) { force = false; } _super.prototype.Update.call(this, force); this.region.Update(this.walker.speech()); var options = this.speechGenerator.getOptions(); if (options.modality === 'speech') { this.document.options.a11y.speechRules = options.domain + '-' + options.style; } }; SpeechExplorer.prototype.Speech = function (walker) { walker.speech(); this.node.setAttribute('hasspeech', 'true'); this.Update(); if (this.restarted && this.document.options.a11y[this.showRegion]) { this.region.Show(this.node, this.highlighter); } }; SpeechExplorer.prototype.KeyDown = function (event) { var code = event.keyCode; if (code === 27) { this.Stop(); this.stopEvent(event); return; } if (this.active) { this.Move(code); this.stopEvent(event); return; } if (code === 32 && event.shiftKey || code === 13) { this.Start(); this.stopEvent(event); } }; SpeechExplorer.prototype.Move = function (key) { this.walker.move(key); this.Update(); }; SpeechExplorer.prototype.initWalker = function () { this.speechGenerator = sre.SpeechGeneratorFactory.generator('Tree'); var dummy = sre.WalkerFactory.walker('dummy', this.node, this.speechGenerator, this.highlighter, this.mml); this.walker = dummy; }; SpeechExplorer.prototype.getOptions = function () { var options = this.speechGenerator.getOptions(); var _a = __read(this.document.options.a11y.speechRules.split('-'), 2), domain = _a[0], style = _a[1]; if (options.modality === 'speech' && (options.locale !== this.document.options.a11y.locale || options.domain !== domain || options.style !== style)) { options.domain = domain; options.style = style; options.locale = this.document.options.a11y.locale; this.walker.update(options); } return options; }; return SpeechExplorer; }(AbstractKeyExplorer)); exports.SpeechExplorer = SpeechExplorer; var Magnifier = (function (_super) { __extends(Magnifier, _super); function Magnifier(document, region, node, mml) { var _this = _super.call(this, document, region, node) || this; _this.document = document; _this.region = region; _this.node = node; _this.mml = mml; _this.walker = sre.WalkerFactory.walker('table', _this.node, sre.SpeechGeneratorFactory.generator('Dummy'), _this.highlighter, _this.mml); return _this; } Magnifier.prototype.Update = function (force) { if (force === void 0) { force = false; } _super.prototype.Update.call(this, force); this.showFocus(); }; Magnifier.prototype.Start = function () { _super.prototype.Start.call(this); this.region.Show(this.node, this.highlighter); this.walker.activate(); this.Update(); }; Magnifier.prototype.showFocus = function () { var node = this.walker.getFocus().getNodes()[0]; this.region.Show(node, this.highlighter); }; Magnifier.prototype.Move = function (key) { var result = this.walker.move(key); if (result) { this.Update(); } }; Magnifier.prototype.KeyDown = function (event) { var code = event.keyCode; if (code === 27) { this.Stop(); this.stopEvent(event); return; } if (this.active && code !== 13) { this.Move(code); this.stopEvent(event); return; } if (code === 32 && event.shiftKey || code === 13) { this.Start(); this.stopEvent(event); } }; return Magnifier; }(AbstractKeyExplorer)); exports.Magnifier = Magnifier; //# sourceMappingURL=KeyExplorer.js.map /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.FlameHoverer = exports.ContentHoverer = exports.ValueHoverer = exports.Hoverer = exports.AbstractMouseExplorer = void 0; var Region_js_1 = __webpack_require__(2); var Explorer_js_1 = __webpack_require__(1); __webpack_require__(0); var AbstractMouseExplorer = (function (_super) { __extends(AbstractMouseExplorer, _super); function AbstractMouseExplorer() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.events = _super.prototype.Events.call(_this).concat([ ['mouseover', _this.MouseOver.bind(_this)], ['mouseout', _this.MouseOut.bind(_this)] ]); return _this; } AbstractMouseExplorer.prototype.MouseOver = function (_event) { this.Start(); }; AbstractMouseExplorer.prototype.MouseOut = function (_event) { this.Stop(); }; return AbstractMouseExplorer; }(Explorer_js_1.AbstractExplorer)); exports.AbstractMouseExplorer = AbstractMouseExplorer; var Hoverer = (function (_super) { __extends(Hoverer, _super); function Hoverer(document, region, node, nodeQuery, nodeAccess) { var _this = _super.call(this, document, region, node) || this; _this.document = document; _this.region = region; _this.node = node; _this.nodeQuery = nodeQuery; _this.nodeAccess = nodeAccess; return _this; } Hoverer.prototype.MouseOut = function (event) { if (event.clientX === this.coord[0] && event.clientY === this.coord[1]) { return; } this.highlighter.unhighlight(); this.region.Hide(); _super.prototype.MouseOut.call(this, event); }; Hoverer.prototype.MouseOver = function (event) { _super.prototype.MouseOver.call(this, event); var target = event.target; this.coord = [event.clientX, event.clientY]; var _a = __read(this.getNode(target), 2), node = _a[0], kind = _a[1]; if (!node) { return; } this.highlighter.unhighlight(); this.highlighter.highlight([node]); this.region.Update(kind); this.region.Show(node, this.highlighter); }; Hoverer.prototype.getNode = function (node) { var original = node; while (node && node !== this.node) { if (this.nodeQuery(node)) { return [node, this.nodeAccess(node)]; } node = node.parentNode; } node = original; while (node) { if (this.nodeQuery(node)) { return [node, this.nodeAccess(node)]; } var child = node.childNodes[0]; node = (child && child.tagName === 'defs') ? node.childNodes[1] : child; } return [null, null]; }; return Hoverer; }(AbstractMouseExplorer)); exports.Hoverer = Hoverer; var ValueHoverer = (function (_super) { __extends(ValueHoverer, _super); function ValueHoverer() { return _super !== null && _super.apply(this, arguments) || this; } return ValueHoverer; }(Hoverer)); exports.ValueHoverer = ValueHoverer; var ContentHoverer = (function (_super) { __extends(ContentHoverer, _super); function ContentHoverer() { return _super !== null && _super.apply(this, arguments) || this; } return ContentHoverer; }(Hoverer)); exports.ContentHoverer = ContentHoverer; var FlameHoverer = (function (_super) { __extends(FlameHoverer, _super); function FlameHoverer(document, _ignore, node) { var _this = _super.call(this, document, new Region_js_1.DummyRegion(document), node, function (x) { return _this.highlighter.isMactionNode(x); }, function () { }) || this; _this.document = document; _this.node = node; return _this; } return FlameHoverer; }(Hoverer)); exports.FlameHoverer = FlameHoverer; //# sourceMappingURL=MouseExplorer.js.map /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.TreeColorer = exports.FlameColorer = exports.AbstractTreeExplorer = void 0; var Explorer_js_1 = __webpack_require__(1); __webpack_require__(0); var AbstractTreeExplorer = (function (_super) { __extends(AbstractTreeExplorer, _super); function AbstractTreeExplorer(document, region, node, mml) { var _this = _super.call(this, document, null, node) || this; _this.document = document; _this.region = region; _this.node = node; _this.mml = mml; _this.stoppable = false; return _this; } AbstractTreeExplorer.prototype.Attach = function () { _super.prototype.Attach.call(this); this.Start(); }; AbstractTreeExplorer.prototype.Detach = function () { this.Stop(); _super.prototype.Detach.call(this); }; return AbstractTreeExplorer; }(Explorer_js_1.AbstractExplorer)); exports.AbstractTreeExplorer = AbstractTreeExplorer; var FlameColorer = (function (_super) { __extends(FlameColorer, _super); function FlameColorer() { return _super !== null && _super.apply(this, arguments) || this; } FlameColorer.prototype.Start = function () { if (this.active) return; this.active = true; this.highlighter.highlightAll(this.node); }; FlameColorer.prototype.Stop = function () { if (this.active) { this.highlighter.unhighlightAll(this.node); } this.active = false; }; return FlameColorer; }(AbstractTreeExplorer)); exports.FlameColorer = FlameColorer; var TreeColorer = (function (_super) { __extends(TreeColorer, _super); function TreeColorer() { return _super !== null && _super.apply(this, arguments) || this; } TreeColorer.prototype.Start = function () { if (this.active) return; this.active = true; var generator = sre.SpeechGeneratorFactory.generator('Color'); if (!this.node.hasAttribute('hasforegroundcolor')) { generator.generateSpeech(this.node, this.mml); this.node.setAttribute('hasforegroundcolor', 'true'); } this.highlighter.colorizeAll(this.node); }; TreeColorer.prototype.Stop = function () { if (this.active) { this.highlighter.uncolorizeAll(this.node); } this.active = false; }; return TreeColorer; }(AbstractTreeExplorer)); exports.TreeColorer = TreeColorer; //# sourceMappingURL=TreeExplorer.js.map /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.protoItem = MathJax._.core.MathItem.protoItem; exports.AbstractMathItem = MathJax._.core.MathItem.AbstractMathItem; exports.STATE = MathJax._.core.MathItem.STATE; exports.newState = MathJax._.core.MathItem.newState; /***/ }), /* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.EnrichedMathItemMixin = MathJax._.a11y['semantic-enrich'].EnrichedMathItemMixin; exports.EnrichedMathDocumentMixin = MathJax._.a11y['semantic-enrich'].EnrichedMathDocumentMixin; exports.EnrichHandler = MathJax._.a11y['semantic-enrich'].EnrichHandler; /***/ }), /* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.APPEND = MathJax._.util.Options.APPEND; exports.REMOVE = MathJax._.util.Options.REMOVE; exports.Expandable = MathJax._.util.Options.Expandable; exports.expandable = MathJax._.util.Options.expandable; exports.makeArray = MathJax._.util.Options.makeArray; exports.keys = MathJax._.util.Options.keys; exports.copy = MathJax._.util.Options.copy; exports.insert = MathJax._.util.Options.insert; exports.defaultOptions = MathJax._.util.Options.defaultOptions; exports.userOptions = MathJax._.util.Options.userOptions; exports.selectOptions = MathJax._.util.Options.selectOptions; exports.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys; exports.separateOptions = MathJax._.util.Options.separateOptions; /***/ }), /* 11 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.DATAMJX = MathJax._.core.MmlTree.SerializedMmlVisitor.DATAMJX; exports.toEntity = MathJax._.core.MmlTree.SerializedMmlVisitor.toEntity; exports.SerializedMmlVisitor = MathJax._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor; /***/ }), /* 12 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MJContextMenu = MathJax._.ui.menu.MJContextMenu.MJContextMenu; /***/ }), /* 13 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.CssStyles = MathJax._.util.StyleList.CssStyles; /***/ }), /* 14 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(4); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/a11y/explorer.js var explorer = __webpack_require__(3); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/a11y/explorer/Explorer.js var Explorer = __webpack_require__(1); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/a11y/explorer/KeyExplorer.js var KeyExplorer = __webpack_require__(5); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/a11y/explorer/MouseExplorer.js var MouseExplorer = __webpack_require__(6); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/a11y/explorer/Region.js var Region = __webpack_require__(2); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/a11y/explorer/TreeExplorer.js var TreeExplorer = __webpack_require__(7); // EXTERNAL MODULE: ../semantic-enrich/lib/a11y/sre.js var sre = __webpack_require__(0); // CONCATENATED MODULE: ./lib/explorer.js Object(global["combineWithMathJax"])({ _: { a11y: { explorer_ts: explorer, explorer: { Explorer: Explorer, KeyExplorer: KeyExplorer, MouseExplorer: MouseExplorer, Region: Region, TreeExplorer: TreeExplorer }, sre: sre } } }); // CONCATENATED MODULE: ./explorer.js if (MathJax.startup) { MathJax.startup.extendHandler(function (handler) { return Object(explorer["ExplorerHandler"])(handler); }); } /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/a11y/assistive-mml.js0000644000176200001440000003514614005301544020722 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 5); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AssistiveMmlHandler = exports.AssistiveMmlMathDocumentMixin = exports.AssistiveMmlMathItemMixin = exports.LimitedMmlVisitor = void 0; var MathItem_js_1 = __webpack_require__(2); var SerializedMmlVisitor_js_1 = __webpack_require__(3); var Options_js_1 = __webpack_require__(4); var LimitedMmlVisitor = (function (_super) { __extends(LimitedMmlVisitor, _super); function LimitedMmlVisitor() { return _super !== null && _super.apply(this, arguments) || this; } LimitedMmlVisitor.prototype.getAttributes = function (node) { return _super.prototype.getAttributes.call(this, node).replace(/ ?id=".*?"/, ''); }; return LimitedMmlVisitor; }(SerializedMmlVisitor_js_1.SerializedMmlVisitor)); exports.LimitedMmlVisitor = LimitedMmlVisitor; MathItem_js_1.newState('ASSISTIVEMML', 153); function AssistiveMmlMathItemMixin(BaseMathItem) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.assistiveMml = function (document, force) { if (force === void 0) { force = false; } if (this.state() >= MathItem_js_1.STATE.ASSISTIVEMML) return; if (!this.isEscaped && (document.options.enableAssistiveMml || force)) { var adaptor = document.adaptor; var mml = document.toMML(this.root).replace(/\n */g, '').replace(//g, ''); var mmlNodes = adaptor.firstChild(adaptor.body(adaptor.parse(mml, 'text/html'))); var node = adaptor.node('mjx-assistive-mml', { role: 'presentation', unselectable: 'on', display: (this.display ? 'block' : 'inline') }, [mmlNodes]); adaptor.setAttribute(this.typesetRoot, 'role', 'presentation'); adaptor.setAttribute(adaptor.firstChild(this.typesetRoot), 'aria-hidden', 'true'); adaptor.setStyle(this.typesetRoot, 'position', 'relative'); adaptor.append(this.typesetRoot, node); } this.state(MathItem_js_1.STATE.ASSISTIVEMML); }; return class_1; }(BaseMathItem)); } exports.AssistiveMmlMathItemMixin = AssistiveMmlMathItemMixin; function AssistiveMmlMathDocumentMixin(BaseDocument) { var _a; return _a = (function (_super) { __extends(BaseClass, _super); function BaseClass() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; var CLASS = _this.constructor; var ProcessBits = CLASS.ProcessBits; if (!ProcessBits.has('assistive-mml')) { ProcessBits.allocate('assistive-mml'); } _this.visitor = new LimitedMmlVisitor(_this.mmlFactory); _this.options.MathItem = AssistiveMmlMathItemMixin(_this.options.MathItem); if ('addStyles' in _this) { _this.addStyles(CLASS.assistiveStyles); } return _this; } BaseClass.prototype.toMML = function (node) { return this.visitor.visitTree(node); }; BaseClass.prototype.assistiveMml = function () { var e_1, _a; if (!this.processed.isSet('assistive-mml')) { try { for (var _b = __values(this.math), _c = _b.next(); !_c.done; _c = _b.next()) { var math = _c.value; math.assistiveMml(this); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this.processed.set('assistive-mml'); } return this; }; BaseClass.prototype.state = function (state, restore) { if (restore === void 0) { restore = false; } _super.prototype.state.call(this, state, restore); if (state < MathItem_js_1.STATE.ASSISTIVEMML) { this.processed.clear('assistive-mml'); } return this; }; return BaseClass; }(BaseDocument)), _a.OPTIONS = __assign(__assign({}, BaseDocument.OPTIONS), { enableAssistiveMml: true, renderActions: Options_js_1.expandable(__assign(__assign({}, BaseDocument.OPTIONS.renderActions), { assistiveMml: [MathItem_js_1.STATE.ASSISTIVEMML] })) }), _a.assistiveStyles = { 'mjx-assistive-mml': { position: 'absolute !important', top: '0px', left: '0px', clip: 'rect(1px, 1px, 1px, 1px)', padding: '1px 0px 0px 0px !important', border: '0px !important', display: 'block !important', width: 'auto !important', overflow: 'hidden !important', '-webkit-touch-callout': 'none', '-webkit-user-select': 'none', '-khtml-user-select': 'none', '-moz-user-select': 'none', '-ms-user-select': 'none', 'user-select': 'none' }, 'mjx-assistive-mml[display="block"]': { width: '100% !important' } }, _a; } exports.AssistiveMmlMathDocumentMixin = AssistiveMmlMathDocumentMixin; function AssistiveMmlHandler(handler) { handler.documentClass = AssistiveMmlMathDocumentMixin(handler.documentClass); return handler; } exports.AssistiveMmlHandler = AssistiveMmlHandler; //# sourceMappingURL=assistive-mml.js.map /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.protoItem = MathJax._.core.MathItem.protoItem; exports.AbstractMathItem = MathJax._.core.MathItem.AbstractMathItem; exports.STATE = MathJax._.core.MathItem.STATE; exports.newState = MathJax._.core.MathItem.newState; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.DATAMJX = MathJax._.core.MmlTree.SerializedMmlVisitor.DATAMJX; exports.toEntity = MathJax._.core.MmlTree.SerializedMmlVisitor.toEntity; exports.SerializedMmlVisitor = MathJax._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.APPEND = MathJax._.util.Options.APPEND; exports.REMOVE = MathJax._.util.Options.REMOVE; exports.Expandable = MathJax._.util.Options.Expandable; exports.expandable = MathJax._.util.Options.expandable; exports.makeArray = MathJax._.util.Options.makeArray; exports.keys = MathJax._.util.Options.keys; exports.copy = MathJax._.util.Options.copy; exports.insert = MathJax._.util.Options.insert; exports.defaultOptions = MathJax._.util.Options.defaultOptions; exports.userOptions = MathJax._.util.Options.userOptions; exports.selectOptions = MathJax._.util.Options.selectOptions; exports.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys; exports.separateOptions = MathJax._.util.Options.separateOptions; /***/ }), /* 5 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(1); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/a11y/assistive-mml.js var assistive_mml = __webpack_require__(0); // CONCATENATED MODULE: ./lib/assistive-mml.js Object(global["combineWithMathJax"])({ _: { a11y: { "assistive-mml": assistive_mml } } }); // CONCATENATED MODULE: ./assistive-mml.js if (MathJax.startup) { MathJax.startup.extendHandler(function (handler) { return Object(assistive_mml["AssistiveMmlHandler"])(handler); }); } /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/0000755000176200001440000000000014005301544016142 5ustar liggesusersmathjaxr/src/mathjax/es5/input/tex/0000755000176200001440000000000014005301544016742 5ustar liggesusersmathjaxr/src/mathjax/es5/input/tex/extensions/0000755000176200001440000000000014005301544021141 5ustar liggesusersmathjaxr/src/mathjax/es5/input/tex/extensions/physics.js0000644000176200001440000012737714005301544023202 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 17); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.AutoOpen = void 0; var StackItem_js_1 = __webpack_require__(8); var ParseUtil_js_1 = __webpack_require__(2); var TexParser_js_1 = __webpack_require__(3); var AutoOpen = (function (_super) { __extends(AutoOpen, _super); function AutoOpen() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(AutoOpen.prototype, "kind", { get: function () { return 'auto open'; }, enumerable: false, configurable: true }); Object.defineProperty(AutoOpen.prototype, "isOpen", { get: function () { return true; }, enumerable: false, configurable: true }); AutoOpen.prototype.toMml = function () { var parser = this.factory.configuration.parser; var right = this.getProperty('right'); if (this.getProperty('smash')) { var mml_1 = _super.prototype.toMml.call(this); var smash = parser.create('node', 'mpadded', [mml_1], { height: 0, depth: 0 }); this.Clear(); this.Push(parser.create('node', 'TeXAtom', [smash])); } if (right) { this.Push(new TexParser_js_1.default(right, parser.stack.env, parser.configuration).mml()); } var mml = _super.prototype.toMml.call(this); return ParseUtil_js_1.default.fenced(this.factory.configuration, this.getProperty('open'), mml, this.getProperty('close'), this.getProperty('big')); }; AutoOpen.prototype.checkItem = function (item) { var close = item.getProperty('autoclose'); if (close && close === this.getProperty('close')) { if (this.getProperty('ignore')) { this.Clear(); return [[], true]; } return [[this.toMml()], true]; } return _super.prototype.checkItem.call(this, item); }; return AutoOpen; }(StackItem_js_1.BaseItem)); exports.AutoOpen = AutoOpen; //# sourceMappingURL=PhysicsItems.js.map /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); var BaseMethods_js_1 = __webpack_require__(11); var TexParser_js_1 = __webpack_require__(3); var TexError_js_1 = __webpack_require__(12); var MmlNode_js_1 = __webpack_require__(4); var ParseUtil_js_1 = __webpack_require__(2); var NodeUtil_js_1 = __webpack_require__(13); var NodeFactory_js_1 = __webpack_require__(14); var PhysicsMethods = {}; var pairs = { '(': ')', '[': ']', '{': '}', '|': '|', }; var biggs = /^(b|B)i(g{1,2})$/; PhysicsMethods.Quantity = function (parser, name, open, close, arg, named, variant) { if (open === void 0) { open = '('; } if (close === void 0) { close = ')'; } if (arg === void 0) { arg = false; } if (named === void 0) { named = ''; } if (variant === void 0) { variant = ''; } var star = arg ? parser.GetStar() : false; var next = parser.GetNext(); var position = parser.i; var big = null; if (next === '\\') { parser.i++; big = parser.GetCS(); if (!big.match(biggs)) { var empty = parser.create('node', 'mrow'); parser.Push(ParseUtil_js_1.default.fenced(parser.configuration, open, empty, close)); parser.i = position; return; } next = parser.GetNext(); } var right = pairs[next]; if (arg && next !== '{') { throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', parser.currentCS); } if (!right) { var empty = parser.create('node', 'mrow'); parser.Push(ParseUtil_js_1.default.fenced(parser.configuration, open, empty, close)); parser.i = position; return; } if (named) { var mml = parser.create('token', 'mi', { texClass: MmlNode_js_1.TEXCLASS.OP }, named); if (variant) { NodeUtil_js_1.default.setAttribute(mml, 'mathvariant', variant); } parser.Push(parser.itemFactory.create('fn', mml)); } if (next === '{') { var argument = parser.GetArgument(name); next = arg ? open : '\\{'; right = arg ? close : '\\}'; argument = star ? next + ' ' + argument + ' ' + right : (big ? '\\' + big + 'l' + next + ' ' + argument + ' ' + '\\' + big + 'r' + right : '\\left' + next + ' ' + argument + ' ' + '\\right' + right); parser.Push(new TexParser_js_1.default(argument, parser.stack.env, parser.configuration).mml()); return; } if (arg) { next = open; right = close; } parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: next, close: right, big: big })); }; PhysicsMethods.Eval = function (parser, name) { var star = parser.GetStar(); var next = parser.GetNext(); if (next === '{') { var arg = parser.GetArgument(name); var replace = '\\left. ' + (star ? '\\smash{' + arg + '}' : arg) + ' ' + '\\vphantom{\\int}\\right|'; parser.string = parser.string.slice(0, parser.i) + replace + parser.string.slice(parser.i); return; } if (next === '(' || next === '[') { parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: next, close: '|', smash: star, right: '\\vphantom{\\int}' })); return; } throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', parser.currentCS); }; PhysicsMethods.Commutator = function (parser, name, open, close) { if (open === void 0) { open = '['; } if (close === void 0) { close = ']'; } var star = parser.GetStar(); var next = parser.GetNext(); var big = null; if (next === '\\') { parser.i++; big = parser.GetCS(); if (!big.match(biggs)) { throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', parser.currentCS); } next = parser.GetNext(); } if (next !== '{') { throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', parser.currentCS); } var arg1 = parser.GetArgument(name); var arg2 = parser.GetArgument(name); var argument = arg1 + ',' + arg2; argument = star ? open + ' ' + argument + ' ' + close : (big ? '\\' + big + 'l' + open + ' ' + argument + ' ' + '\\' + big + 'r' + close : '\\left' + open + ' ' + argument + ' ' + '\\right' + close); parser.Push(new TexParser_js_1.default(argument, parser.stack.env, parser.configuration).mml()); }; var latinCap = [0x41, 0x5A]; var latinSmall = [0x61, 0x7A]; var greekCap = [0x391, 0x3A9]; var greekSmall = [0x3B1, 0x3C9]; var digits = [0x30, 0x39]; function inRange(value, range) { return (value >= range[0] && value <= range[1]); } function createVectorToken(factory, kind, def, text) { var parser = factory.configuration.parser; var token = NodeFactory_js_1.NodeFactory.createToken(factory, kind, def, text); var code = text.codePointAt(0); if (text.length === 1 && !parser.stack.env.font && parser.stack.env.vectorFont && (inRange(code, latinCap) || inRange(code, latinSmall) || inRange(code, greekCap) || inRange(code, digits) || (inRange(code, greekSmall) && parser.stack.env.vectorStar) || NodeUtil_js_1.default.getAttribute(token, 'accent'))) { NodeUtil_js_1.default.setAttribute(token, 'mathvariant', parser.stack.env.vectorFont); } return token; } PhysicsMethods.VectorBold = function (parser, name) { var star = parser.GetStar(); var arg = parser.GetArgument(name); var oldToken = parser.configuration.nodeFactory.get('token'); var oldFont = parser.stack.env.font; delete parser.stack.env.font; parser.configuration.nodeFactory.set('token', createVectorToken); parser.stack.env.vectorFont = star ? 'bold-italic' : 'bold'; parser.stack.env.vectorStar = star; var node = new TexParser_js_1.default(arg, parser.stack.env, parser.configuration).mml(); if (oldFont) { parser.stack.env.font = oldFont; } delete parser.stack.env.vectorFont; delete parser.stack.env.vectorStar; parser.configuration.nodeFactory.set('token', oldToken); parser.Push(node); }; PhysicsMethods.StarMacro = function (parser, name, argcount) { var parts = []; for (var _i = 3; _i < arguments.length; _i++) { parts[_i - 3] = arguments[_i]; } var star = parser.GetStar(); var args = []; if (argcount) { for (var i = args.length; i < argcount; i++) { args.push(parser.GetArgument(name)); } } var macro = parts.join(star ? '*' : ''); macro = ParseUtil_js_1.default.substituteArgs(parser, args, macro); parser.string = ParseUtil_js_1.default.addArgs(parser, macro, parser.string.slice(parser.i)); parser.i = 0; if (++parser.macroCount > parser.configuration.options['maxMacros']) { throw new TexError_js_1.default('MaxMacroSub1', 'MathJax maximum macro substitution count exceeded; ' + 'is there a recursive macro call?'); } }; var vectorApplication = function (parser, kind, name, operator, fences) { var op = new TexParser_js_1.default(operator, parser.stack.env, parser.configuration).mml(); parser.Push(parser.itemFactory.create(kind, op)); var left = parser.GetNext(); var right = pairs[left]; if (!right) { return; } var lfence = '', rfence = '', arg = ''; var enlarge = fences.indexOf(left) !== -1; if (left === '{') { arg = parser.GetArgument(name); lfence = enlarge ? '\\left\\{' : ''; rfence = enlarge ? '\\right\\}' : ''; var macro = lfence + ' ' + arg + ' ' + rfence; parser.string = macro + parser.string.slice(parser.i); parser.i = 0; return; } if (!enlarge) { return; } parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: left, close: right })); }; PhysicsMethods.OperatorApplication = function (parser, name, operator) { var fences = []; for (var _i = 3; _i < arguments.length; _i++) { fences[_i - 3] = arguments[_i]; } vectorApplication(parser, 'fn', name, operator, fences); }; PhysicsMethods.VectorOperator = function (parser, name, operator) { var fences = []; for (var _i = 3; _i < arguments.length; _i++) { fences[_i - 3] = arguments[_i]; } vectorApplication(parser, 'mml', name, operator, fences); }; PhysicsMethods.Expression = function (parser, name, opt, id) { if (opt === void 0) { opt = true; } if (id === void 0) { id = ''; } id = id || name.slice(1); var exp = opt ? parser.GetBrackets(name) : null; var mml = parser.create('token', 'mi', { texClass: MmlNode_js_1.TEXCLASS.OP }, id); if (exp) { var sup = new TexParser_js_1.default(exp, parser.stack.env, parser.configuration).mml(); mml = parser.create('node', 'msup', [mml, sup]); } parser.Push(parser.itemFactory.create('fn', mml)); if (parser.GetNext() !== '(') { return; } parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: '(', close: ')' })); }; PhysicsMethods.Qqtext = function (parser, name, text) { var star = parser.GetStar(); var arg = text ? text : parser.GetArgument(name); var replace = (star ? '' : '\\quad') + '\\text{' + arg + '}\\quad '; parser.string = parser.string.slice(0, parser.i) + replace + parser.string.slice(parser.i); }; PhysicsMethods.Differential = function (parser, name, op) { var optArg = parser.GetBrackets(name); var power = optArg != null ? '^{' + optArg + '}' : ' '; var parens = parser.GetNext() === '('; var braces = parser.GetNext() === '{'; var macro = op + power; if (!(parens || braces)) { macro += parser.GetArgument(name, true) || ''; var mml = new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml(); parser.Push(mml); return; } if (braces) { macro += parser.GetArgument(name); var mml = new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml(); parser.Push(parser.create('node', 'TeXAtom', [mml], { texClass: MmlNode_js_1.TEXCLASS.OP })); return; } parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: '(', close: ')' })); }; PhysicsMethods.Derivative = function (parser, name, argMax, op) { var star = parser.GetStar(); var optArg = parser.GetBrackets(name); var argCounter = 1; var args = []; args.push(parser.GetArgument(name)); while (parser.GetNext() === '{' && argCounter < argMax) { args.push(parser.GetArgument(name)); argCounter++; } var ignore = false; var power1 = ' '; var power2 = ' '; if (argMax > 2 && args.length > 2) { power1 = '^{' + (args.length - 1) + '}'; ignore = true; } else if (optArg != null) { if (argMax > 2 && args.length > 1) { ignore = true; } power1 = '^{' + optArg + '}'; power2 = power1; } var frac = star ? '\\flatfrac' : '\\frac'; var first = args.length > 1 ? args[0] : ''; var second = args.length > 1 ? args[1] : args[0]; var rest = ''; for (var i = 2, arg = void 0; arg = args[i]; i++) { rest += op + ' ' + arg; } var macro = frac + '{' + op + power1 + first + '}' + '{' + op + ' ' + second + power2 + ' ' + rest + '}'; parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); if (parser.GetNext() === '(') { parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: '(', close: ')', ignore: ignore })); } }; PhysicsMethods.Bra = function (parser, name) { var starBra = parser.GetStar(); var bra = parser.GetArgument(name); var ket = ''; var hasKet = false; var starKet = false; if (parser.GetNext() === '\\') { var saveI = parser.i; parser.i++; var cs = parser.GetCS(); var symbol = parser.lookup('macro', cs); if (symbol && symbol.symbol === 'ket') { hasKet = true; saveI = parser.i; starKet = parser.GetStar(); if (parser.GetNext() === '{') { ket = parser.GetArgument(cs, true); } else { parser.i = saveI; starKet = false; } } else { parser.i = saveI; } } var macro = ''; if (hasKet) { macro = (starBra || starKet) ? "\\langle{" + bra + "}\\vert{" + ket + "}\\rangle" : "\\left\\langle{" + bra + "}\\middle\\vert{" + ket + "}\\right\\rangle"; } else { macro = (starBra || starKet) ? "\\langle{" + bra + "}\\vert" : "\\left\\langle{" + bra + "}\\right\\vert{" + ket + "}"; } parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.Ket = function (parser, name) { var star = parser.GetStar(); var ket = parser.GetArgument(name); var macro = star ? "\\vert{" + ket + "}\\rangle" : "\\left\\vert{" + ket + "}\\right\\rangle"; parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.BraKet = function (parser, name) { var star = parser.GetStar(); var bra = parser.GetArgument(name); var ket = null; if (parser.GetNext() === '{') { ket = parser.GetArgument(name, true); } var macro = ''; if (ket == null) { macro = star ? "\\langle{" + bra + "}\\vert{" + bra + "}\\rangle" : "\\left\\langle{" + bra + "}\\middle\\vert{" + bra + "}\\right\\rangle"; } else { macro = star ? "\\langle{" + bra + "}\\vert{" + ket + "}\\rangle" : "\\left\\langle{" + bra + "}\\middle\\vert{" + ket + "}\\right\\rangle"; } parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.KetBra = function (parser, name) { var star = parser.GetStar(); var ket = parser.GetArgument(name); var bra = null; if (parser.GetNext() === '{') { bra = parser.GetArgument(name, true); } var macro = ''; if (bra == null) { macro = star ? "\\vert{" + ket + "}\\rangle\\!\\langle{" + ket + "}\\vert" : "\\left\\vert{" + ket + "}\\middle\\rangle\\!\\middle\\langle{" + ket + "}\\right\\vert"; } else { macro = star ? "\\vert{" + ket + "}\\rangle\\!\\langle{" + bra + "}\\vert" : "\\left\\vert{" + ket + "}\\middle\\rangle\\!\\middle\\langle{" + bra + "}\\right\\vert"; } parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; function outputBraket(_a, star1, star2) { var _b = __read(_a, 3), arg1 = _b[0], arg2 = _b[1], arg3 = _b[2]; return (star1 && star2) ? "\\left\\langle{" + arg1 + "}\\middle\\vert{" + arg2 + "}\\middle\\vert{" + arg3 + "}\\right\\rangle" : (star1 ? "\\langle{" + arg1 + "}\\vert{" + arg2 + "}\\vert{" + arg3 + "}\\rangle" : "\\left\\langle{" + arg1 + "}\\right\\vert{" + arg2 + "}\\left\\vert{" + arg3 + "}\\right\\rangle"); } PhysicsMethods.Expectation = function (parser, name) { var star1 = parser.GetStar(); var star2 = star1 && parser.GetStar(); var arg1 = parser.GetArgument(name); var arg2 = null; if (parser.GetNext() === '{') { arg2 = parser.GetArgument(name, true); } var macro = (arg1 && arg2) ? outputBraket([arg2, arg1, arg2], star1, star2) : (star1 ? "\\langle {" + arg1 + "} \\rangle" : "\\left\\langle {" + arg1 + "} \\right\\rangle"); parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.MatrixElement = function (parser, name) { var star1 = parser.GetStar(); var star2 = star1 && parser.GetStar(); var arg1 = parser.GetArgument(name); var arg2 = parser.GetArgument(name); var arg3 = parser.GetArgument(name); var macro = outputBraket([arg1, arg2, arg3], star1, star2); parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.MatrixQuantity = function (parser, name, small) { var star = parser.GetStar(); var next = parser.GetNext(); var array = small ? 'smallmatrix' : 'array'; var arg = ''; var open = ''; var close = ''; switch (next) { case '{': arg = parser.GetArgument(name); break; case '(': parser.i++; open = star ? '\\lgroup' : '('; close = star ? '\\rgroup' : ')'; arg = parser.GetUpTo(name, ')'); break; case '[': parser.i++; open = '['; close = ']'; arg = parser.GetUpTo(name, ']'); break; case '|': parser.i++; open = '|'; close = '|'; arg = parser.GetUpTo(name, '|'); break; default: open = '('; close = ')'; break; } var macro = (open ? '\\left' : '') + open + '\\begin{' + array + '}{} ' + arg + '\\end{' + array + '}' + (open ? '\\right' : '') + close; parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.IdentityMatrix = function (parser, name) { var arg = parser.GetArgument(name); var size = parseInt(arg, 10); if (isNaN(size)) { throw new TexError_js_1.default('InvalidNumber', 'Invalid number'); } if (size <= 1) { parser.string = '1' + parser.string.slice(parser.i); parser.i = 0; return; } var zeros = Array(size).fill('0'); var columns = []; for (var i = 0; i < size; i++) { var row = zeros.slice(); row[i] = '1'; columns.push(row.join(' & ')); } parser.string = columns.join('\\\\ ') + parser.string.slice(parser.i); parser.i = 0; }; PhysicsMethods.XMatrix = function (parser, name) { var star = parser.GetStar(); var arg1 = parser.GetArgument(name); var arg2 = parser.GetArgument(name); var arg3 = parser.GetArgument(name); var n = parseInt(arg2, 10); var m = parseInt(arg3, 10); if (isNaN(n) || isNaN(m) || m.toString() !== arg3 || n.toString() !== arg2) { throw new TexError_js_1.default('InvalidNumber', 'Invalid number'); } n = n < 1 ? 1 : n; m = m < 1 ? 1 : m; if (!star) { var row = Array(m).fill(arg1).join(' & '); var matrix_1 = Array(n).fill(row).join('\\\\ '); parser.string = matrix_1 + parser.string.slice(parser.i); parser.i = 0; return; } var matrix = ''; if (n === 1 && m === 1) { matrix = arg1; } else if (n === 1) { var row = []; for (var i = 1; i <= m; i++) { row.push(arg1 + "_{" + i + "}"); } matrix = row.join(' & '); } else if (m === 1) { var row = []; for (var i = 1; i <= n; i++) { row.push(arg1 + "_{" + i + "}"); } matrix = row.join('\\\\ '); } else { var rows = []; for (var i = 1; i <= n; i++) { var row = []; for (var j = 1; j <= m; j++) { row.push(arg1 + "_{{" + i + "}{" + j + "}}"); } rows.push(row.join(' & ')); } matrix = rows.join('\\\\ '); } parser.string = matrix + parser.string.slice(parser.i); parser.i = 0; return; }; PhysicsMethods.PauliMatrix = function (parser, name) { var arg = parser.GetArgument(name); var matrix = arg.slice(1); switch (arg[0]) { case '0': matrix += ' 1 & 0\\\\ 0 & 1'; break; case '1': case 'x': matrix += ' 0 & 1\\\\ 1 & 0'; break; case '2': case 'y': matrix += ' 0 & -i\\\\ i & 0'; break; case '3': case 'z': matrix += ' 1 & 0\\\\ 0 & -1'; break; default: } parser.string = matrix + parser.string.slice(parser.i); parser.i = 0; }; PhysicsMethods.DiagonalMatrix = function (parser, name, anti) { if (parser.GetNext() !== '{') { return; } var startI = parser.i; parser.GetArgument(name); var endI = parser.i; parser.i = startI + 1; var elements = []; var element = ''; var currentI = parser.i; while (currentI < endI) { try { element = parser.GetUpTo(name, ','); } catch (e) { parser.i = endI; elements.push(parser.string.slice(currentI, endI - 1)); break; } if (parser.i >= endI) { elements.push(parser.string.slice(currentI, endI)); break; } currentI = parser.i; elements.push(element); } parser.string = makeDiagMatrix(elements, anti) + parser.string.slice(endI); parser.i = 0; }; function makeDiagMatrix(elements, anti) { var length = elements.length; var matrix = []; for (var i = 0; i < length; i++) { matrix.push(Array(anti ? length - i : i + 1).join('&') + '\\mqty{' + elements[i] + '}'); } return matrix.join('\\\\ '); } PhysicsMethods.AutoClose = function (parser, fence, _texclass) { var mo = parser.create('token', 'mo', { stretchy: false }, fence); var item = parser.itemFactory.create('mml', mo). setProperties({ autoclose: fence }); parser.Push(item); }; PhysicsMethods.Macro = BaseMethods_js_1.default.Macro; PhysicsMethods.NamedFn = BaseMethods_js_1.default.NamedFn; PhysicsMethods.Array = BaseMethods_js_1.default.Array; exports.default = PhysicsMethods; //# sourceMappingURL=PhysicsMethods.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseUtil["default"]; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexParser["default"]; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.TEXCLASS = MathJax._.core.MmlTree.MmlNode.TEXCLASS; exports.TEXCLASSNAMES = MathJax._.core.MmlTree.MmlNode.TEXCLASSNAMES; exports.indentAttributes = MathJax._.core.MmlTree.MmlNode.indentAttributes; exports.AbstractMmlNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlNode; exports.AbstractMmlTokenNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlTokenNode; exports.AbstractMmlLayoutNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlLayoutNode; exports.AbstractMmlBaseNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlBaseNode; exports.AbstractMmlEmptyNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlEmptyNode; exports.TextNode = MathJax._.core.MmlTree.MmlNode.TextNode; exports.XMLNode = MathJax._.core.MmlTree.MmlNode.XMLNode; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.PhysicsConfiguration = void 0; var Configuration_js_1 = __webpack_require__(7); var PhysicsItems_js_1 = __webpack_require__(0); __webpack_require__(9); exports.PhysicsConfiguration = Configuration_js_1.Configuration.create('physics', { handler: { macro: [ 'Physics-automatic-bracing-macros', 'Physics-vector-macros', 'Physics-vector-chars', 'Physics-derivative-macros', 'Physics-expressions-macros', 'Physics-quick-quad-macros', 'Physics-bra-ket-macros', 'Physics-matrix-macros' ], character: ['Physics-characters'], environment: ['Physics-aux-envs'] }, items: (_a = {}, _a[PhysicsItems_js_1.AutoOpen.prototype.kind] = PhysicsItems_js_1.AutoOpen, _a) }); //# sourceMappingURL=PhysicsConfiguration.js.map /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlStack = MathJax._.input.tex.StackItem.MmlStack; exports.BaseItem = MathJax._.input.tex.StackItem.BaseItem; /***/ }), /* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var SymbolMap_js_1 = __webpack_require__(10); var PhysicsMethods_js_1 = __webpack_require__(1); var TexConstants_js_1 = __webpack_require__(15); var ParseMethods_js_1 = __webpack_require__(16); var MmlNode_js_1 = __webpack_require__(4); new SymbolMap_js_1.CommandMap('Physics-automatic-bracing-macros', { 'quantity': 'Quantity', 'qty': 'Quantity', 'pqty': ['Quantity', '(', ')', true], 'bqty': ['Quantity', '[', ']', true], 'vqty': ['Quantity', '|', '|', true], 'Bqty': ['Quantity', '{', '}', true], 'absolutevalue': ['Quantity', '|', '|', true], 'abs': ['Quantity', '|', '|', true], 'norm': ['Quantity', '\\|', '\\|', true], 'evaluated': 'Eval', 'eval': 'Eval', 'order': ['Quantity', '(', ')', true, 'O', TexConstants_js_1.TexConstant.Variant.CALLIGRAPHIC], 'commutator': 'Commutator', 'comm': 'Commutator', 'anticommutator': ['Commutator', '\\{', '\\}'], 'acomm': ['Commutator', '\\{', '\\}'], 'poissonbracket': ['Commutator', '\\{', '\\}'], 'pb': ['Commutator', '\\{', '\\}'] }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CharacterMap('Physics-vector-chars', ParseMethods_js_1.default.mathchar0mi, { dotproduct: ['\u22C5', { mathvariant: TexConstants_js_1.TexConstant.Variant.BOLD }], vdot: ['\u22C5', { mathvariant: TexConstants_js_1.TexConstant.Variant.BOLD }], crossproduct: '\u00D7', cross: '\u00D7', cp: '\u00D7', gradientnabla: ['\u2207', { mathvariant: TexConstants_js_1.TexConstant.Variant.BOLD }], real: ['\u211C', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], imaginary: ['\u2111', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }] }); new SymbolMap_js_1.CommandMap('Physics-vector-macros', { 'vectorbold': 'VectorBold', 'vb': 'VectorBold', 'vectorarrow': ['StarMacro', 1, '\\vec{\\vb', '{#1}}'], 'va': ['StarMacro', 1, '\\vec{\\vb', '{#1}}'], 'vectorunit': ['StarMacro', 1, '\\hat{\\vb', '{#1}}'], 'vu': ['StarMacro', 1, '\\hat{\\vb', '{#1}}'], 'gradient': ['OperatorApplication', '\\gradientnabla', '(', '['], 'grad': ['OperatorApplication', '\\gradientnabla', '(', '['], 'divergence': ['VectorOperator', '\\gradientnabla\\vdot', '(', '['], 'div': ['VectorOperator', '\\gradientnabla\\vdot', '(', '['], 'curl': ['VectorOperator', '\\gradientnabla\\crossproduct', '(', '['], 'laplacian': ['OperatorApplication', '\\nabla^2', '(', '['], }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CommandMap('Physics-expressions-macros', { 'sin': 'Expression', 'sinh': 'Expression', 'arcsin': 'Expression', 'asin': 'Expression', 'cos': 'Expression', 'cosh': 'Expression', 'arccos': 'Expression', 'acos': 'Expression', 'tan': 'Expression', 'tanh': 'Expression', 'arctan': 'Expression', 'atan': 'Expression', 'csc': 'Expression', 'csch': 'Expression', 'arccsc': 'Expression', 'acsc': 'Expression', 'sec': 'Expression', 'sech': 'Expression', 'arcsec': 'Expression', 'asec': 'Expression', 'cot': 'Expression', 'coth': 'Expression', 'arccot': 'Expression', 'acot': 'Expression', 'exp': ['Expression', false], 'log': 'Expression', 'ln': 'Expression', 'det': ['Expression', false], 'Pr': ['Expression', false], 'tr': ['Expression', false], 'trace': ['Expression', false, 'tr'], 'Tr': ['Expression', false], 'Trace': ['Expression', false, 'Tr'], 'rank': 'NamedFn', 'erf': ['Expression', false], 'Res': ['OperatorApplication', '{\\rm Res}', '(', '[', '{'], 'principalvalue': ['OperatorApplication', '{\\cal P}'], 'pv': ['OperatorApplication', '{\\cal P}'], 'PV': ['OperatorApplication', '{\\rm P.V.}'], 'Re': ['OperatorApplication', '{\\rm Re}', '{'], 'Im': ['OperatorApplication', '{\\rm Im}', '{'], 'sine': ['NamedFn', 'sin'], 'hypsine': ['NamedFn', 'sinh'], 'arcsine': ['NamedFn', 'arcsin'], 'asine': ['NamedFn', 'asin'], 'cosine': ['NamedFn', 'cos'], 'hypcosine': ['NamedFn', 'cosh'], 'arccosine': ['NamedFn', 'arccos'], 'acosine': ['NamedFn', 'acos'], 'tangent': ['NamedFn', 'tan'], 'hyptangent': ['NamedFn', 'tanh'], 'arctangent': ['NamedFn', 'arctan'], 'atangent': ['NamedFn', 'atan'], 'cosecant': ['NamedFn', 'csc'], 'hypcosecant': ['NamedFn', 'csch'], 'arccosecant': ['NamedFn', 'arccsc'], 'acosecant': ['NamedFn', 'acsc'], 'secant': ['NamedFn', 'sec'], 'hypsecant': ['NamedFn', 'sech'], 'arcsecant': ['NamedFn', 'arcsec'], 'asecant': ['NamedFn', 'asec'], 'cotangent': ['NamedFn', 'cot'], 'hypcotangent': ['NamedFn', 'coth'], 'arccotangent': ['NamedFn', 'arccot'], 'acotangent': ['NamedFn', 'acot'], 'exponential': ['NamedFn', 'exp'], 'logarithm': ['NamedFn', 'log'], 'naturallogarithm': ['NamedFn', 'ln'], 'determinant': ['NamedFn', 'det'], 'Probability': ['NamedFn', 'Pr'], }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CommandMap('Physics-quick-quad-macros', { 'qqtext': 'Qqtext', 'qq': 'Qqtext', 'qcomma': ['Macro', '\\qqtext*{,}'], 'qc': ['Macro', '\\qqtext*{,}'], 'qcc': ['Qqtext', 'c.c.'], 'qif': ['Qqtext', 'if'], 'qthen': ['Qqtext', 'then'], 'qelse': ['Qqtext', 'else'], 'qotherwise': ['Qqtext', 'otherwise'], 'qunless': ['Qqtext', 'unless'], 'qgiven': ['Qqtext', 'given'], 'qusing': ['Qqtext', 'using'], 'qassume': ['Qqtext', 'assume'], 'qsince,': ['Qqtext', 'since,'], 'qlet': ['Qqtext', 'let'], 'qfor': ['Qqtext', 'for'], 'qall': ['Qqtext', 'all'], 'qeven': ['Qqtext', 'even'], 'qodd': ['Qqtext', 'odd'], 'qinteger': ['Qqtext', 'integer'], 'qand': ['Qqtext', 'and'], 'qor': ['Qqtext', 'or'], 'qas': ['Qqtext', 'as'], 'qin': ['Qqtext', 'in'], }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CommandMap('Physics-derivative-macros', { 'flatfrac': ['Macro', '\\left.#1\\middle/#2\\right.', 2], 'differential': ['Differential', '{\\rm d}'], 'dd': ['Differential', '{\\rm d}'], 'variation': ['Differential', '\\delta'], 'var': ['Differential', '\\delta'], 'derivative': ['Derivative', 2, '{\\rm d}'], 'dv': ['Derivative', 2, '{\\rm d}'], 'partialderivative': ['Derivative', 3, '\\partial'], 'pderivative': ['Derivative', 3, '\\partial'], 'pdv': ['Derivative', 3, '\\partial'], 'functionalderivative': ['Derivative', 2, '\\delta'], 'fderivative': ['Derivative', 2, '\\delta'], 'fdv': ['Derivative', 2, '\\delta'], }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CommandMap('Physics-bra-ket-macros', { 'bra': 'Bra', 'ket': 'Ket', 'innerproduct': 'BraKet', 'braket': 'BraKet', 'outerproduct': 'KetBra', 'dyad': 'KetBra', 'ketbra': 'KetBra', 'op': 'KetBra', 'expectationvalue': 'Expectation', 'expval': 'Expectation', 'ev': 'Expectation', 'matrixelement': 'MatrixElement', 'matrixel': 'MatrixElement', 'mel': 'MatrixElement', }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CommandMap('Physics-matrix-macros', { 'matrixquantity': 'MatrixQuantity', 'mqty': 'MatrixQuantity', 'pmqty': ['Macro', '\\mqty(#1)', 1], 'Pmqty': ['Macro', '\\mqty*(#1)', 1], 'bmqty': ['Macro', '\\mqty[#1]', 1], 'vmqty': ['Macro', '\\mqty|#1|', 1], 'smallmatrixquantity': ['MatrixQuantity', true], 'smqty': ['MatrixQuantity', true], 'spmqty': ['Macro', '\\smqty(#1)', 1], 'sPmqty': ['Macro', '\\smqty*(#1)', 1], 'sbmqty': ['Macro', '\\smqty[#1]', 1], 'svmqty': ['Macro', '\\smqty|#1|', 1], 'matrixdeterminant': ['Macro', '\\vmqty{#1}', 1], 'mdet': ['Macro', '\\vmqty{#1}', 1], 'smdet': ['Macro', '\\svmqty{#1}', 1], 'identitymatrix': 'IdentityMatrix', 'imat': 'IdentityMatrix', 'xmatrix': 'XMatrix', 'xmat': 'XMatrix', 'zeromatrix': ['Macro', '\\xmat{0}{#1}{#2}', 2], 'zmat': ['Macro', '\\xmat{0}{#1}{#2}', 2], 'paulimatrix': 'PauliMatrix', 'pmat': 'PauliMatrix', 'diagonalmatrix': 'DiagonalMatrix', 'dmat': 'DiagonalMatrix', 'antidiagonalmatrix': ['DiagonalMatrix', true], 'admat': ['DiagonalMatrix', true] }, PhysicsMethods_js_1.default); new SymbolMap_js_1.EnvironmentMap('Physics-aux-envs', ParseMethods_js_1.default.environment, { smallmatrix: ['Array', null, null, null, 'c', '0.333em', '.2em', 'S', 1] }, PhysicsMethods_js_1.default); new SymbolMap_js_1.MacroMap('Physics-characters', { '|': ['AutoClose', MmlNode_js_1.TEXCLASS.ORD], ')': 'AutoClose', ']': 'AutoClose' }, PhysicsMethods_js_1.default); //# sourceMappingURL=PhysicsMappings.js.map /***/ }), /* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 11 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.base.BaseMethods["default"]; /***/ }), /* 12 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexError["default"]; /***/ }), /* 13 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.NodeUtil["default"]; /***/ }), /* 14 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.NodeFactory = MathJax._.input.tex.NodeFactory.NodeFactory; /***/ }), /* 15 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.TexConstant = MathJax._.input.tex.TexConstants.TexConstant; /***/ }), /* 16 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseMethods["default"]; /***/ }), /* 17 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(5); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/physics/PhysicsConfiguration.js var PhysicsConfiguration = __webpack_require__(6); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/physics/PhysicsItems.js var PhysicsItems = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/physics/PhysicsMethods.js var PhysicsMethods = __webpack_require__(1); // CONCATENATED MODULE: ./lib/physics.js Object(global["combineWithMathJax"])({ _: { input: { tex: { physics: { PhysicsConfiguration: PhysicsConfiguration, PhysicsItems: PhysicsItems, PhysicsMethods: PhysicsMethods } } } } }); // CONCATENATED MODULE: ./physics.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/ams.js0000644000176200001440000011421614005301544022264 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 18); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NEW_OPS = exports.AmsMethods = void 0; var ParseUtil_js_1 = __webpack_require__(1); var NodeUtil_js_1 = __webpack_require__(4); var TexConstants_js_1 = __webpack_require__(2); var TexParser_js_1 = __webpack_require__(13); var TexError_js_1 = __webpack_require__(5); var Symbol_js_1 = __webpack_require__(14); var BaseMethods_js_1 = __webpack_require__(15); var MmlNode_js_1 = __webpack_require__(6); exports.AmsMethods = {}; exports.AmsMethods.AmsEqnArray = function (parser, begin, numbered, taggable, align, spacing, style) { var args = parser.GetBrackets('\\begin{' + begin.getName() + '}'); var array = BaseMethods_js_1.default.EqnArray(parser, begin, numbered, taggable, align, spacing, style); return ParseUtil_js_1.default.setArrayAlign(array, args); }; exports.AmsMethods.AlignAt = function (parser, begin, numbered, taggable) { var name = begin.getName(); var n, valign, align = '', spacing = []; if (!taggable) { valign = parser.GetBrackets('\\begin{' + name + '}'); } n = parser.GetArgument('\\begin{' + name + '}'); if (n.match(/[^0-9]/)) { throw new TexError_js_1.default('PositiveIntegerArg', 'Argument to %1 must me a positive integer', '\\begin{' + name + '}'); } var count = parseInt(n, 10); while (count > 0) { align += 'rl'; spacing.push('0em 0em'); count--; } var spaceStr = spacing.join(' '); if (taggable) { return exports.AmsMethods.EqnArray(parser, begin, numbered, taggable, align, spaceStr); } var array = exports.AmsMethods.EqnArray(parser, begin, numbered, taggable, align, spaceStr); return ParseUtil_js_1.default.setArrayAlign(array, valign); }; exports.AmsMethods.Multline = function (parser, begin, numbered) { parser.Push(begin); ParseUtil_js_1.default.checkEqnEnv(parser); var item = parser.itemFactory.create('multline', numbered, parser.stack); item.arraydef = { displaystyle: true, rowspacing: '.5em', columnwidth: '100%', width: parser.options['multlineWidth'], side: parser.options['tagSide'], minlabelspacing: parser.options['tagIndent'] }; return item; }; exports.NEW_OPS = 'ams-declare-ops'; exports.AmsMethods.HandleDeclareOp = function (parser, name) { var limits = (parser.GetStar() ? '' : '\\nolimits\\SkipLimits'); var cs = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); if (cs.charAt(0) === '\\') { cs = cs.substr(1); } var op = parser.GetArgument(name); if (!op.match(/\\text/)) { op = op.replace(/\*/g, '\\text{*}').replace(/-/g, '\\text{-}'); } parser.configuration.handlers.retrieve(exports.NEW_OPS). add(cs, new Symbol_js_1.Macro(cs, exports.AmsMethods.Macro, ['\\mathop{\\rm ' + op + '}' + limits])); }; exports.AmsMethods.HandleOperatorName = function (parser, name) { var limits = (parser.GetStar() ? '' : '\\nolimits\\SkipLimits'); var op = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); if (!op.match(/\\text/)) { op = op.replace(/\*/g, '\\text{*}').replace(/-/g, '\\text{-}'); } parser.string = '\\mathop{\\rm ' + op + '}' + limits + ' ' + parser.string.slice(parser.i); parser.i = 0; }; exports.AmsMethods.SkipLimits = function (parser, _name) { var c = parser.GetNext(), i = parser.i; if (c === '\\' && ++parser.i && parser.GetCS() !== 'limits') { parser.i = i; } }; exports.AmsMethods.MultiIntegral = function (parser, name, integral) { var next = parser.GetNext(); if (next === '\\') { var i = parser.i; next = parser.GetArgument(name); parser.i = i; if (next === '\\limits') { if (name === '\\idotsint') { integral = '\\!\\!\\mathop{\\,\\,' + integral + '}'; } else { integral = '\\!\\!\\!\\mathop{\\,\\,\\,' + integral + '}'; } } } parser.string = integral + ' ' + parser.string.slice(parser.i); parser.i = 0; }; exports.AmsMethods.xArrow = function (parser, name, chr, l, r) { var def = { width: '+' + ParseUtil_js_1.default.Em((l + r) / 18), lspace: ParseUtil_js_1.default.Em(l / 18) }; var bot = parser.GetBrackets(name); var first = parser.ParseArg(name); var arrow = parser.create('token', 'mo', { stretchy: true, texClass: MmlNode_js_1.TEXCLASS.REL }, String.fromCodePoint(chr)); var mml = parser.create('node', 'munderover', [arrow]); var mpadded = parser.create('node', 'mpadded', [first], def); NodeUtil_js_1.default.setAttribute(mpadded, 'voffset', '.15em'); NodeUtil_js_1.default.setChild(mml, mml.over, mpadded); if (bot) { var bottom = new TexParser_js_1.default(bot, parser.stack.env, parser.configuration).mml(); mpadded = parser.create('node', 'mpadded', [bottom], def); NodeUtil_js_1.default.setAttribute(mpadded, 'voffset', '-.24em'); NodeUtil_js_1.default.setChild(mml, mml.under, mpadded); } NodeUtil_js_1.default.setProperty(mml, 'subsupOK', true); parser.Push(mml); }; exports.AmsMethods.HandleShove = function (parser, _name, shove) { var top = parser.stack.Top(); if (top.kind !== 'multline') { throw new TexError_js_1.default('CommandOnlyAllowedInEnv', '%1 only allowed in %2 environment', parser.currentCS, 'multline'); } if (top.Size()) { throw new TexError_js_1.default('CommandAtTheBeginingOfLine', '%1 must come at the beginning of the line', parser.currentCS); } top.setProperty('shove', shove); }; exports.AmsMethods.CFrac = function (parser, name) { var lr = ParseUtil_js_1.default.trimSpaces(parser.GetBrackets(name, '')); var num = parser.GetArgument(name); var den = parser.GetArgument(name); var lrMap = { l: TexConstants_js_1.TexConstant.Align.LEFT, r: TexConstants_js_1.TexConstant.Align.RIGHT, '': '' }; var numNode = new TexParser_js_1.default('\\strut\\textstyle{' + num + '}', parser.stack.env, parser.configuration).mml(); var denNode = new TexParser_js_1.default('\\strut\\textstyle{' + den + '}', parser.stack.env, parser.configuration).mml(); var frac = parser.create('node', 'mfrac', [numNode, denNode]); lr = lrMap[lr]; if (lr == null) { throw new TexError_js_1.default('IllegalAlign', 'Illegal alignment specified in %1', parser.currentCS); } if (lr) { NodeUtil_js_1.default.setProperties(frac, { numalign: lr, denomalign: lr }); } parser.Push(frac); }; exports.AmsMethods.Genfrac = function (parser, name, left, right, thick, style) { if (left == null) { left = parser.GetDelimiterArg(name); } if (right == null) { right = parser.GetDelimiterArg(name); } if (thick == null) { thick = parser.GetArgument(name); } if (style == null) { style = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); } var num = parser.ParseArg(name); var den = parser.ParseArg(name); var frac = parser.create('node', 'mfrac', [num, den]); if (thick !== '') { NodeUtil_js_1.default.setAttribute(frac, 'linethickness', thick); } if (left || right) { NodeUtil_js_1.default.setProperty(frac, 'withDelims', true); frac = ParseUtil_js_1.default.fixedFence(parser.configuration, left, frac, right); } if (style !== '') { var styleDigit = parseInt(style, 10); var styleAlpha = ['D', 'T', 'S', 'SS'][styleDigit]; if (styleAlpha == null) { throw new TexError_js_1.default('BadMathStyleFor', 'Bad math style for %1', parser.currentCS); } frac = parser.create('node', 'mstyle', [frac]); if (styleAlpha === 'D') { NodeUtil_js_1.default.setProperties(frac, { displaystyle: true, scriptlevel: 0 }); } else { NodeUtil_js_1.default.setProperties(frac, { displaystyle: false, scriptlevel: styleDigit - 1 }); } } parser.Push(frac); }; exports.AmsMethods.HandleTag = function (parser, name) { if (!parser.tags.currentTag.taggable && parser.tags.env) { throw new TexError_js_1.default('CommandNotAllowedInEnv', '%1 not allowed in %2 environment', parser.currentCS, parser.tags.env); } if (parser.tags.currentTag.tag) { throw new TexError_js_1.default('MultipleCommand', 'Multiple %1', parser.currentCS); } var star = parser.GetStar(); var tagId = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); parser.tags.tag(tagId, star); }; exports.AmsMethods.HandleNoTag = BaseMethods_js_1.default.HandleNoTag; exports.AmsMethods.HandleRef = BaseMethods_js_1.default.HandleRef; exports.AmsMethods.Macro = BaseMethods_js_1.default.Macro; exports.AmsMethods.Accent = BaseMethods_js_1.default.Accent; exports.AmsMethods.Tilde = BaseMethods_js_1.default.Tilde; exports.AmsMethods.Array = BaseMethods_js_1.default.Array; exports.AmsMethods.Spacer = BaseMethods_js_1.default.Spacer; exports.AmsMethods.NamedOp = BaseMethods_js_1.default.NamedOp; exports.AmsMethods.EqnArray = BaseMethods_js_1.default.EqnArray; //# sourceMappingURL=AmsMethods.js.map /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseUtil["default"]; /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.TexConstant = MathJax._.input.tex.TexConstants.TexConstant; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.MultlineItem = void 0; var BaseItems_js_1 = __webpack_require__(11); var ParseUtil_js_1 = __webpack_require__(1); var NodeUtil_js_1 = __webpack_require__(4); var TexError_js_1 = __webpack_require__(5); var TexConstants_js_1 = __webpack_require__(2); var MultlineItem = (function (_super) { __extends(MultlineItem, _super); function MultlineItem(factory) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } var _this = _super.call(this, factory) || this; _this.factory.configuration.tags.start('multline', true, args[0]); return _this; } Object.defineProperty(MultlineItem.prototype, "kind", { get: function () { return 'multline'; }, enumerable: false, configurable: true }); MultlineItem.prototype.EndEntry = function () { if (this.table.length) { ParseUtil_js_1.default.fixInitialMO(this.factory.configuration, this.nodes); } var shove = this.getProperty('shove'); var mtd = this.create('node', 'mtd', this.nodes, shove ? { columnalign: shove } : {}); this.setProperty('shove', null); this.row.push(mtd); this.Clear(); }; MultlineItem.prototype.EndRow = function () { if (this.row.length !== 1) { throw new TexError_js_1.default('MultlineRowsOneCol', 'The rows within the %1 environment must have exactly one column', 'multline'); } var row = this.create('node', 'mtr', this.row); this.table.push(row); this.row = []; }; MultlineItem.prototype.EndTable = function () { _super.prototype.EndTable.call(this); if (this.table.length) { var m = this.table.length - 1, label = -1; if (!NodeUtil_js_1.default.getAttribute(NodeUtil_js_1.default.getChildren(this.table[0])[0], 'columnalign')) { NodeUtil_js_1.default.setAttribute(NodeUtil_js_1.default.getChildren(this.table[0])[0], 'columnalign', TexConstants_js_1.TexConstant.Align.LEFT); } if (!NodeUtil_js_1.default.getAttribute(NodeUtil_js_1.default.getChildren(this.table[m])[0], 'columnalign')) { NodeUtil_js_1.default.setAttribute(NodeUtil_js_1.default.getChildren(this.table[m])[0], 'columnalign', TexConstants_js_1.TexConstant.Align.RIGHT); } var tag = this.factory.configuration.tags.getTag(); if (tag) { label = (this.arraydef.side === TexConstants_js_1.TexConstant.Align.LEFT ? 0 : this.table.length - 1); var mtr = this.table[label]; var mlabel = this.create('node', 'mlabeledtr', [tag].concat(NodeUtil_js_1.default.getChildren(mtr))); NodeUtil_js_1.default.copyAttributes(mtr, mlabel); this.table[label] = mlabel; } } this.factory.configuration.tags.end(); }; return MultlineItem; }(BaseItems_js_1.ArrayItem)); exports.MultlineItem = MultlineItem; //# sourceMappingURL=AmsItems.js.map /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.NodeUtil["default"]; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexError["default"]; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.TEXCLASS = MathJax._.core.MmlTree.MmlNode.TEXCLASS; exports.TEXCLASSNAMES = MathJax._.core.MmlTree.MmlNode.TEXCLASSNAMES; exports.indentAttributes = MathJax._.core.MmlTree.MmlNode.indentAttributes; exports.AbstractMmlNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlNode; exports.AbstractMmlTokenNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlTokenNode; exports.AbstractMmlLayoutNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlLayoutNode; exports.AbstractMmlBaseNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlBaseNode; exports.AbstractMmlEmptyNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlEmptyNode; exports.TextNode = MathJax._.core.MmlTree.MmlNode.TextNode; exports.XMLNode = MathJax._.core.MmlTree.MmlNode.XMLNode; /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.AmsConfiguration = exports.AmsTags = void 0; var Configuration_js_1 = __webpack_require__(10); var AmsItems_js_1 = __webpack_require__(3); var Tags_js_1 = __webpack_require__(12); var AmsMethods_js_1 = __webpack_require__(0); __webpack_require__(16); var SymbolMap_js_1 = __webpack_require__(7); var AmsTags = (function (_super) { __extends(AmsTags, _super); function AmsTags() { return _super !== null && _super.apply(this, arguments) || this; } return AmsTags; }(Tags_js_1.AbstractTags)); exports.AmsTags = AmsTags; var init = function (config) { new SymbolMap_js_1.CommandMap(AmsMethods_js_1.NEW_OPS, {}, {}); config.append(Configuration_js_1.Configuration.local({ handler: { macro: [AmsMethods_js_1.NEW_OPS] }, priority: -1 })); }; exports.AmsConfiguration = Configuration_js_1.Configuration.create('ams', { handler: { delimiter: ['AMSsymbols-delimiter', 'AMSmath-delimiter'], macro: ['AMSsymbols-mathchar0mi', 'AMSsymbols-mathchar0m0', 'AMSsymbols-delimiter', 'AMSsymbols-macros', 'AMSmath-mathchar0mo', 'AMSmath-macros', 'AMSmath-delimiter'], environment: ['AMSmath-environment'] }, items: (_a = {}, _a[AmsItems_js_1.MultlineItem.prototype.kind] = AmsItems_js_1.MultlineItem, _a), tags: { 'ams': AmsTags }, init: init }); //# sourceMappingURL=AmsConfiguration.js.map /***/ }), /* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 11 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.StartItem = MathJax._.input.tex.base.BaseItems.StartItem; exports.StopItem = MathJax._.input.tex.base.BaseItems.StopItem; exports.OpenItem = MathJax._.input.tex.base.BaseItems.OpenItem; exports.CloseItem = MathJax._.input.tex.base.BaseItems.CloseItem; exports.PrimeItem = MathJax._.input.tex.base.BaseItems.PrimeItem; exports.SubsupItem = MathJax._.input.tex.base.BaseItems.SubsupItem; exports.OverItem = MathJax._.input.tex.base.BaseItems.OverItem; exports.LeftItem = MathJax._.input.tex.base.BaseItems.LeftItem; exports.RightItem = MathJax._.input.tex.base.BaseItems.RightItem; exports.BeginItem = MathJax._.input.tex.base.BaseItems.BeginItem; exports.EndItem = MathJax._.input.tex.base.BaseItems.EndItem; exports.StyleItem = MathJax._.input.tex.base.BaseItems.StyleItem; exports.PositionItem = MathJax._.input.tex.base.BaseItems.PositionItem; exports.CellItem = MathJax._.input.tex.base.BaseItems.CellItem; exports.MmlItem = MathJax._.input.tex.base.BaseItems.MmlItem; exports.FnItem = MathJax._.input.tex.base.BaseItems.FnItem; exports.NotItem = MathJax._.input.tex.base.BaseItems.NotItem; exports.DotsItem = MathJax._.input.tex.base.BaseItems.DotsItem; exports.ArrayItem = MathJax._.input.tex.base.BaseItems.ArrayItem; exports.EqnArrayItem = MathJax._.input.tex.base.BaseItems.EqnArrayItem; exports.EquationItem = MathJax._.input.tex.base.BaseItems.EquationItem; /***/ }), /* 12 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Label = MathJax._.input.tex.Tags.Label; exports.TagInfo = MathJax._.input.tex.Tags.TagInfo; exports.AbstractTags = MathJax._.input.tex.Tags.AbstractTags; exports.NoTags = MathJax._.input.tex.Tags.NoTags; exports.AllTags = MathJax._.input.tex.Tags.AllTags; exports.TagsFactory = MathJax._.input.tex.Tags.TagsFactory; /***/ }), /* 13 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexParser["default"]; /***/ }), /* 14 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Symbol = MathJax._.input.tex.Symbol.Symbol; exports.Macro = MathJax._.input.tex.Symbol.Macro; /***/ }), /* 15 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.base.BaseMethods["default"]; /***/ }), /* 16 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var AmsMethods_js_1 = __webpack_require__(0); var sm = __webpack_require__(7); var TexConstants_js_1 = __webpack_require__(2); var ParseMethods_js_1 = __webpack_require__(17); var ParseUtil_js_1 = __webpack_require__(1); var MmlNode_js_1 = __webpack_require__(6); var COLS = function (W) { var WW = []; for (var i = 0, m = W.length; i < m; i++) { WW[i] = ParseUtil_js_1.default.Em(W[i]); } return WW.join(' '); }; new sm.CharacterMap('AMSmath-mathchar0mo', ParseMethods_js_1.default.mathchar0mo, { iiiint: ['\u2A0C', { texClass: MmlNode_js_1.TEXCLASS.OP }] }); new sm.CommandMap('AMSmath-macros', { mathring: ['Accent', '02DA'], nobreakspace: 'Tilde', negmedspace: ['Spacer', TexConstants_js_1.TexConstant.Length.NEGATIVEMEDIUMMATHSPACE], negthickspace: ['Spacer', TexConstants_js_1.TexConstant.Length.NEGATIVETHICKMATHSPACE], idotsint: ['MultiIntegral', '\\int\\cdots\\int'], dddot: ['Accent', '20DB'], ddddot: ['Accent', '20DC'], sideset: ['Macro', '\\mathop{\\mathop{\\rlap{\\phantom{#3}}}\\nolimits#1' + '\\!\\mathop{#3}\\nolimits#2}', 3], boxed: ['Macro', '\\fbox{$\\displaystyle{#1}$}', 1], tag: 'HandleTag', notag: 'HandleNoTag', eqref: ['HandleRef', true], substack: ['Macro', '\\begin{subarray}{c}#1\\end{subarray}', 1], injlim: ['NamedOp', 'inj lim'], projlim: ['NamedOp', 'proj lim'], varliminf: ['Macro', '\\mathop{\\underline{\\mmlToken{mi}{lim}}}'], varlimsup: ['Macro', '\\mathop{\\overline{\\mmlToken{mi}{lim}}}'], varinjlim: ['Macro', '\\mathop{\\underrightarrow{\\mmlToken{mi}{lim}}}'], varprojlim: ['Macro', '\\mathop{\\underleftarrow{\\mmlToken{mi}{lim}}}'], DeclareMathOperator: 'HandleDeclareOp', operatorname: 'HandleOperatorName', SkipLimits: 'SkipLimits', genfrac: 'Genfrac', frac: ['Genfrac', '', '', '', ''], tfrac: ['Genfrac', '', '', '', '1'], dfrac: ['Genfrac', '', '', '', '0'], binom: ['Genfrac', '(', ')', '0', ''], tbinom: ['Genfrac', '(', ')', '0', '1'], dbinom: ['Genfrac', '(', ')', '0', '0'], cfrac: 'CFrac', shoveleft: ['HandleShove', TexConstants_js_1.TexConstant.Align.LEFT], shoveright: ['HandleShove', TexConstants_js_1.TexConstant.Align.RIGHT], xrightarrow: ['xArrow', 0x2192, 5, 6], xleftarrow: ['xArrow', 0x2190, 7, 3] }, AmsMethods_js_1.AmsMethods); new sm.EnvironmentMap('AMSmath-environment', ParseMethods_js_1.default.environment, { 'eqnarray*': ['EqnArray', null, false, true, 'rcl', '0 ' + TexConstants_js_1.TexConstant.Length.THICKMATHSPACE, '.5em'], align: ['EqnArray', null, true, true, 'rlrlrlrlrlrl', COLS([0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0])], 'align*': ['EqnArray', null, false, true, 'rlrlrlrlrlrl', COLS([0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0])], multline: ['Multline', null, true], 'multline*': ['Multline', null, false], split: ['EqnArray', null, false, false, 'rl', COLS([0])], gather: ['EqnArray', null, true, true, 'c'], 'gather*': ['EqnArray', null, false, true, 'c'], alignat: ['AlignAt', null, true, true], 'alignat*': ['AlignAt', null, false, true], alignedat: ['AlignAt', null, false, false], aligned: ['AmsEqnArray', null, null, null, 'rlrlrlrlrlrl', COLS([0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0]), '.5em', 'D'], gathered: ['AmsEqnArray', null, null, null, 'c', null, '.5em', 'D'], subarray: ['Array', null, null, null, null, COLS([0]), '0.1em', 'S', 1], smallmatrix: ['Array', null, null, null, 'c', COLS([1 / 3]), '.2em', 'S', 1], matrix: ['Array', null, null, null, 'c'], pmatrix: ['Array', null, '(', ')', 'c'], bmatrix: ['Array', null, '[', ']', 'c'], Bmatrix: ['Array', null, '\\{', '\\}', 'c'], vmatrix: ['Array', null, '\\vert', '\\vert', 'c'], Vmatrix: ['Array', null, '\\Vert', '\\Vert', 'c'], cases: ['Array', null, '\\{', '.', 'll', null, '.2em', 'T'] }, AmsMethods_js_1.AmsMethods); new sm.DelimiterMap('AMSmath-delimiter', ParseMethods_js_1.default.delimiter, { '\\lvert': ['\u007C', { texClass: MmlNode_js_1.TEXCLASS.OPEN }], '\\rvert': ['\u007C', { texClass: MmlNode_js_1.TEXCLASS.CLOSE }], '\\lVert': ['\u2016', { texClass: MmlNode_js_1.TEXCLASS.OPEN }], '\\rVert': ['\u2016', { texClass: MmlNode_js_1.TEXCLASS.CLOSE }] }); new sm.CharacterMap('AMSsymbols-mathchar0mi', ParseMethods_js_1.default.mathchar0mi, { digamma: '\u03DD', varkappa: '\u03F0', varGamma: ['\u0393', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varDelta: ['\u0394', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varTheta: ['\u0398', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varLambda: ['\u039B', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varXi: ['\u039E', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varPi: ['\u03A0', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varSigma: ['\u03A3', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varUpsilon: ['\u03A5', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varPhi: ['\u03A6', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varPsi: ['\u03A8', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varOmega: ['\u03A9', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], beth: '\u2136', gimel: '\u2137', daleth: '\u2138', backprime: ['\u2035', { variantForm: true }], hslash: '\u210F', varnothing: ['\u2205', { variantForm: true }], blacktriangle: '\u25B4', triangledown: ['\u25BD', { variantForm: true }], blacktriangledown: '\u25BE', square: '\u25FB', Box: '\u25FB', blacksquare: '\u25FC', lozenge: '\u25CA', Diamond: '\u25CA', blacklozenge: '\u29EB', circledS: ['\u24C8', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], bigstar: '\u2605', sphericalangle: '\u2222', measuredangle: '\u2221', nexists: '\u2204', complement: '\u2201', mho: '\u2127', eth: ['\u00F0', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], Finv: '\u2132', diagup: '\u2571', Game: '\u2141', diagdown: '\u2572', Bbbk: ['\u006B', { mathvariant: TexConstants_js_1.TexConstant.Variant.DOUBLESTRUCK }], yen: '\u00A5', circledR: '\u00AE', checkmark: '\u2713', maltese: '\u2720' }); new sm.CharacterMap('AMSsymbols-mathchar0m0', ParseMethods_js_1.default.mathchar0mo, { dotplus: '\u2214', ltimes: '\u22C9', smallsetminus: ['\u2216', { variantForm: true }], rtimes: '\u22CA', Cap: '\u22D2', doublecap: '\u22D2', leftthreetimes: '\u22CB', Cup: '\u22D3', doublecup: '\u22D3', rightthreetimes: '\u22CC', barwedge: '\u22BC', curlywedge: '\u22CF', veebar: '\u22BB', curlyvee: '\u22CE', doublebarwedge: '\u2A5E', boxminus: '\u229F', circleddash: '\u229D', boxtimes: '\u22A0', circledast: '\u229B', boxdot: '\u22A1', circledcirc: '\u229A', boxplus: '\u229E', centerdot: ['\u22C5', { variantForm: true }], divideontimes: '\u22C7', intercal: '\u22BA', leqq: '\u2266', geqq: '\u2267', leqslant: '\u2A7D', geqslant: '\u2A7E', eqslantless: '\u2A95', eqslantgtr: '\u2A96', lesssim: '\u2272', gtrsim: '\u2273', lessapprox: '\u2A85', gtrapprox: '\u2A86', approxeq: '\u224A', lessdot: '\u22D6', gtrdot: '\u22D7', lll: '\u22D8', llless: '\u22D8', ggg: '\u22D9', gggtr: '\u22D9', lessgtr: '\u2276', gtrless: '\u2277', lesseqgtr: '\u22DA', gtreqless: '\u22DB', lesseqqgtr: '\u2A8B', gtreqqless: '\u2A8C', doteqdot: '\u2251', Doteq: '\u2251', eqcirc: '\u2256', risingdotseq: '\u2253', circeq: '\u2257', fallingdotseq: '\u2252', triangleq: '\u225C', backsim: '\u223D', thicksim: ['\u223C', { variantForm: true }], backsimeq: '\u22CD', thickapprox: ['\u2248', { variantForm: true }], subseteqq: '\u2AC5', supseteqq: '\u2AC6', Subset: '\u22D0', Supset: '\u22D1', sqsubset: '\u228F', sqsupset: '\u2290', preccurlyeq: '\u227C', succcurlyeq: '\u227D', curlyeqprec: '\u22DE', curlyeqsucc: '\u22DF', precsim: '\u227E', succsim: '\u227F', precapprox: '\u2AB7', succapprox: '\u2AB8', vartriangleleft: '\u22B2', lhd: '\u22B2', vartriangleright: '\u22B3', rhd: '\u22B3', trianglelefteq: '\u22B4', unlhd: '\u22B4', trianglerighteq: '\u22B5', unrhd: '\u22B5', vDash: ['\u22A8', { variantForm: true }], Vdash: '\u22A9', Vvdash: '\u22AA', smallsmile: ['\u2323', { variantForm: true }], shortmid: ['\u2223', { variantForm: true }], smallfrown: ['\u2322', { variantForm: true }], shortparallel: ['\u2225', { variantForm: true }], bumpeq: '\u224F', between: '\u226C', Bumpeq: '\u224E', pitchfork: '\u22D4', varpropto: ['\u221D', { variantForm: true }], backepsilon: '\u220D', blacktriangleleft: '\u25C2', blacktriangleright: '\u25B8', therefore: '\u2234', because: '\u2235', eqsim: '\u2242', vartriangle: ['\u25B3', { variantForm: true }], Join: '\u22C8', nless: '\u226E', ngtr: '\u226F', nleq: '\u2270', ngeq: '\u2271', nleqslant: ['\u2A87', { variantForm: true }], ngeqslant: ['\u2A88', { variantForm: true }], nleqq: ['\u2270', { variantForm: true }], ngeqq: ['\u2271', { variantForm: true }], lneq: '\u2A87', gneq: '\u2A88', lneqq: '\u2268', gneqq: '\u2269', lvertneqq: ['\u2268', { variantForm: true }], gvertneqq: ['\u2269', { variantForm: true }], lnsim: '\u22E6', gnsim: '\u22E7', lnapprox: '\u2A89', gnapprox: '\u2A8A', nprec: '\u2280', nsucc: '\u2281', npreceq: ['\u22E0', { variantForm: true }], nsucceq: ['\u22E1', { variantForm: true }], precneqq: '\u2AB5', succneqq: '\u2AB6', precnsim: '\u22E8', succnsim: '\u22E9', precnapprox: '\u2AB9', succnapprox: '\u2ABA', nsim: '\u2241', ncong: '\u2247', nshortmid: ['\u2224', { variantForm: true }], nshortparallel: ['\u2226', { variantForm: true }], nmid: '\u2224', nparallel: '\u2226', nvdash: '\u22AC', nvDash: '\u22AD', nVdash: '\u22AE', nVDash: '\u22AF', ntriangleleft: '\u22EA', ntriangleright: '\u22EB', ntrianglelefteq: '\u22EC', ntrianglerighteq: '\u22ED', nsubseteq: '\u2288', nsupseteq: '\u2289', nsubseteqq: ['\u2288', { variantForm: true }], nsupseteqq: ['\u2289', { variantForm: true }], subsetneq: '\u228A', supsetneq: '\u228B', varsubsetneq: ['\u228A', { variantForm: true }], varsupsetneq: ['\u228B', { variantForm: true }], subsetneqq: '\u2ACB', supsetneqq: '\u2ACC', varsubsetneqq: ['\u2ACB', { variantForm: true }], varsupsetneqq: ['\u2ACC', { variantForm: true }], leftleftarrows: '\u21C7', rightrightarrows: '\u21C9', leftrightarrows: '\u21C6', rightleftarrows: '\u21C4', Lleftarrow: '\u21DA', Rrightarrow: '\u21DB', twoheadleftarrow: '\u219E', twoheadrightarrow: '\u21A0', leftarrowtail: '\u21A2', rightarrowtail: '\u21A3', looparrowleft: '\u21AB', looparrowright: '\u21AC', leftrightharpoons: '\u21CB', rightleftharpoons: ['\u21CC', { variantForm: true }], curvearrowleft: '\u21B6', curvearrowright: '\u21B7', circlearrowleft: '\u21BA', circlearrowright: '\u21BB', Lsh: '\u21B0', Rsh: '\u21B1', upuparrows: '\u21C8', downdownarrows: '\u21CA', upharpoonleft: '\u21BF', upharpoonright: '\u21BE', downharpoonleft: '\u21C3', restriction: '\u21BE', multimap: '\u22B8', downharpoonright: '\u21C2', leftrightsquigarrow: '\u21AD', rightsquigarrow: '\u21DD', leadsto: '\u21DD', dashrightarrow: '\u21E2', dashleftarrow: '\u21E0', nleftarrow: '\u219A', nrightarrow: '\u219B', nLeftarrow: '\u21CD', nRightarrow: '\u21CF', nleftrightarrow: '\u21AE', nLeftrightarrow: '\u21CE' }); new sm.DelimiterMap('AMSsymbols-delimiter', ParseMethods_js_1.default.delimiter, { '\\ulcorner': '\u231C', '\\urcorner': '\u231D', '\\llcorner': '\u231E', '\\lrcorner': '\u231F' }); new sm.CommandMap('AMSsymbols-macros', { implies: ['Macro', '\\;\\Longrightarrow\\;'], impliedby: ['Macro', '\\;\\Longleftarrow\\;'] }, AmsMethods_js_1.AmsMethods); //# sourceMappingURL=AmsMappings.js.map /***/ }), /* 17 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseMethods["default"]; /***/ }), /* 18 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(8); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/ams/AmsConfiguration.js var AmsConfiguration = __webpack_require__(9); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/ams/AmsItems.js var AmsItems = __webpack_require__(3); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/ams/AmsMethods.js var AmsMethods = __webpack_require__(0); // CONCATENATED MODULE: ./lib/ams.js Object(global["combineWithMathJax"])({ _: { input: { tex: { ams: { AmsConfiguration: AmsConfiguration, AmsItems: AmsItems, AmsMethods: AmsMethods } } } } }); // CONCATENATED MODULE: ./ams.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/amscd.js0000644000176200001440000003535514005301544022601 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 11); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var TexParser_js_1 = __webpack_require__(7); var BaseConfiguration_js_1 = __webpack_require__(8); var MmlNode_js_1 = __webpack_require__(9); var NodeUtil_js_1 = __webpack_require__(10); var AmsCdMethods = {}; AmsCdMethods.CD = function (parser, begin) { parser.Push(begin); var item = parser.itemFactory.create('array'); var options = parser.configuration.options.amscd; item.setProperties({ minw: parser.stack.env.CD_minw || options.harrowsize, minh: parser.stack.env.CD_minh || options.varrowsize }); item.arraydef = { columnalign: 'center', columnspacing: options.colspace, rowspacing: options.rowspace, displaystyle: true }; return item; }; AmsCdMethods.arrow = function (parser, name) { var c = parser.string.charAt(parser.i); if (!c.match(/[>': '\u2192', '<': '\u2190', 'V': '\u2193', 'A': '\u2191' }[c]; var a = parser.GetUpTo(name + c, c); var b = parser.GetUpTo(name + c, c); if (c === '>' || c === '<') { mml = parser.create('token', 'mo', hdef, arrow); if (!a) { a = '\\kern ' + top.getProperty('minw'); } if (a || b) { var pad = { width: '.67em', lspace: '.33em' }; mml = parser.create('node', 'munderover', [mml]); if (a) { var nodeA = new TexParser_js_1.default(a, parser.stack.env, parser.configuration).mml(); var mpadded = parser.create('node', 'mpadded', [nodeA], pad); NodeUtil_js_1.default.setAttribute(mpadded, 'voffset', '.1em'); NodeUtil_js_1.default.setChild(mml, mml.over, mpadded); } if (b) { var nodeB = new TexParser_js_1.default(b, parser.stack.env, parser.configuration).mml(); NodeUtil_js_1.default.setChild(mml, mml.under, parser.create('node', 'mpadded', [nodeB], pad)); } if (parser.configuration.options.amscd.hideHorizontalLabels) { mml = parser.create('node', 'mpadded', mml, { depth: 0, height: '.67em' }); } } } else { var arrowNode = parser.create('token', 'mo', vdef, arrow); mml = arrowNode; if (a || b) { mml = parser.create('node', 'mrow'); if (a) { NodeUtil_js_1.default.appendChildren(mml, [new TexParser_js_1.default('\\scriptstyle\\llap{' + a + '}', parser.stack.env, parser.configuration).mml()]); } arrowNode.texClass = MmlNode_js_1.TEXCLASS.ORD; NodeUtil_js_1.default.appendChildren(mml, [arrowNode]); if (b) { NodeUtil_js_1.default.appendChildren(mml, [new TexParser_js_1.default('\\scriptstyle\\rlap{' + b + '}', parser.stack.env, parser.configuration).mml()]); } } } } if (mml) { parser.Push(mml); } AmsCdMethods.cell(parser, name); }; AmsCdMethods.cell = function (parser, name) { var top = parser.stack.Top(); if ((top.table || []).length % 2 === 0 && (top.row || []).length === 0) { parser.Push(parser.create('node', 'mpadded', [], { height: '8.5pt', depth: '2pt' })); } parser.Push(parser.itemFactory.create('cell').setProperties({ isEntry: true, name: name })); }; AmsCdMethods.minCDarrowwidth = function (parser, name) { parser.stack.env.CD_minw = parser.GetDimen(name); }; AmsCdMethods.minCDarrowheight = function (parser, name) { parser.stack.env.CD_minh = parser.GetDimen(name); }; exports.default = AmsCdMethods; //# sourceMappingURL=AmsCdMethods.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AmsCdConfiguration = void 0; var Configuration_js_1 = __webpack_require__(3); __webpack_require__(4); exports.AmsCdConfiguration = Configuration_js_1.Configuration.create('amscd', { handler: { character: ['amscd_special'], macro: ['amscd_macros'], environment: ['amscd_environment'] }, options: { amscd: { colspace: '5pt', rowspace: '5pt', harrowsize: '2.75em', varrowsize: '1.75em', hideHorizontalLabels: false } } }); //# sourceMappingURL=AmsCdConfiguration.js.map /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var sm = __webpack_require__(5); var ParseMethods_js_1 = __webpack_require__(6); var AmsCdMethods_js_1 = __webpack_require__(1); new sm.EnvironmentMap('amscd_environment', ParseMethods_js_1.default.environment, { CD: 'CD' }, AmsCdMethods_js_1.default); new sm.CommandMap('amscd_macros', { minCDarrowwidth: 'minCDarrowwidth', minCDarrowheight: 'minCDarrowheight', }, AmsCdMethods_js_1.default); new sm.MacroMap('amscd_special', { '@': 'arrow' }, AmsCdMethods_js_1.default); //# sourceMappingURL=AmsCdMappings.js.map /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseMethods["default"]; /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexParser["default"]; /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Other = MathJax._.input.tex.base.BaseConfiguration.Other; exports.BaseTags = MathJax._.input.tex.base.BaseConfiguration.BaseTags; exports.BaseConfiguration = MathJax._.input.tex.base.BaseConfiguration.BaseConfiguration; /***/ }), /* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.TEXCLASS = MathJax._.core.MmlTree.MmlNode.TEXCLASS; exports.TEXCLASSNAMES = MathJax._.core.MmlTree.MmlNode.TEXCLASSNAMES; exports.indentAttributes = MathJax._.core.MmlTree.MmlNode.indentAttributes; exports.AbstractMmlNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlNode; exports.AbstractMmlTokenNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlTokenNode; exports.AbstractMmlLayoutNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlLayoutNode; exports.AbstractMmlBaseNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlBaseNode; exports.AbstractMmlEmptyNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlEmptyNode; exports.TextNode = MathJax._.core.MmlTree.MmlNode.TextNode; exports.XMLNode = MathJax._.core.MmlTree.MmlNode.XMLNode; /***/ }), /* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.NodeUtil["default"]; /***/ }), /* 11 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/amscd/AmsCdConfiguration.js var AmsCdConfiguration = __webpack_require__(2); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/amscd/AmsCdMethods.js var AmsCdMethods = __webpack_require__(1); // CONCATENATED MODULE: ./lib/amscd.js Object(global["combineWithMathJax"])({ _: { input: { tex: { amscd: { AmsCdConfiguration: AmsCdConfiguration, AmsCdMethods: AmsCdMethods } } } } }); // CONCATENATED MODULE: ../rename.js function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } // // Look for a package name in the package list and change it to a new name // and rename tex options for it, if there are any. // function rename(oname, nname, options) { var tex = MathJax.config.tex; if (tex && tex.packages) { var packages = tex.packages; var n = packages.indexOf(oname); if (n >= 0) packages[n] = nname; if (options && tex[oname]) { Object(global["combineConfig"])(tex, _defineProperty({}, nname, tex[oname])); delete tex[oname]; } } } // CONCATENATED MODULE: ./amscd.js rename('amsCd', 'amscd', true); /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/cancel.js0000644000176200001440000002135514005301544022732 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 7); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CancelConfiguration = exports.CancelMethods = void 0; var Configuration_js_1 = __webpack_require__(2); var TexConstants_js_1 = __webpack_require__(3); var SymbolMap_js_1 = __webpack_require__(4); var ParseUtil_js_1 = __webpack_require__(5); var EncloseConfiguration_js_1 = __webpack_require__(6); exports.CancelMethods = {}; exports.CancelMethods.Cancel = function (parser, name, notation) { var attr = parser.GetBrackets(name, ''); var math = parser.ParseArg(name); var def = ParseUtil_js_1.default.keyvalOptions(attr, EncloseConfiguration_js_1.ENCLOSE_OPTIONS); def['notation'] = notation; parser.Push(parser.create('node', 'menclose', [math], def)); }; exports.CancelMethods.CancelTo = function (parser, name) { var attr = parser.GetBrackets(name, ''); var value = parser.ParseArg(name); var math = parser.ParseArg(name); var def = ParseUtil_js_1.default.keyvalOptions(attr, EncloseConfiguration_js_1.ENCLOSE_OPTIONS); def['notation'] = [TexConstants_js_1.TexConstant.Notation.UPDIAGONALSTRIKE, TexConstants_js_1.TexConstant.Notation.UPDIAGONALARROW, TexConstants_js_1.TexConstant.Notation.NORTHEASTARROW].join(' '); value = parser.create('node', 'mpadded', [value], { depth: '-.1em', height: '+.1em', voffset: '.1em' }); parser.Push(parser.create('node', 'msup', [parser.create('node', 'menclose', [math], def), value])); }; new SymbolMap_js_1.CommandMap('cancel', { cancel: ['Cancel', TexConstants_js_1.TexConstant.Notation.UPDIAGONALSTRIKE], bcancel: ['Cancel', TexConstants_js_1.TexConstant.Notation.DOWNDIAGONALSTRIKE], xcancel: ['Cancel', TexConstants_js_1.TexConstant.Notation.UPDIAGONALSTRIKE + ' ' + TexConstants_js_1.TexConstant.Notation.DOWNDIAGONALSTRIKE], cancelto: 'CancelTo' }, exports.CancelMethods); exports.CancelConfiguration = Configuration_js_1.Configuration.create('cancel', { handler: { macro: ['cancel'] } }); //# sourceMappingURL=CancelConfiguration.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.TexConstant = MathJax._.input.tex.TexConstants.TexConstant; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseUtil["default"]; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.ENCLOSE_OPTIONS = MathJax._.input.tex.enclose.EncloseConfiguration.ENCLOSE_OPTIONS; exports.EncloseMethods = MathJax._.input.tex.enclose.EncloseConfiguration.EncloseMethods; exports.EncloseConfiguration = MathJax._.input.tex.enclose.EncloseConfiguration.EncloseConfiguration; /***/ }), /* 7 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/cancel/CancelConfiguration.js var CancelConfiguration = __webpack_require__(1); // CONCATENATED MODULE: ./lib/cancel.js Object(global["combineWithMathJax"])({ _: { input: { tex: { cancel: { CancelConfiguration: CancelConfiguration } } } } }); // CONCATENATED MODULE: ./cancel.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/action.js0000644000176200001440000001715114005301544022761 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 6); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ActionConfiguration = exports.ActionMethods = void 0; var Configuration_js_1 = __webpack_require__(2); var TexParser_js_1 = __webpack_require__(3); var SymbolMap_js_1 = __webpack_require__(4); var BaseMethods_js_1 = __webpack_require__(5); exports.ActionMethods = {}; exports.ActionMethods.Macro = BaseMethods_js_1.default.Macro; exports.ActionMethods.Toggle = function (parser, name) { var children = []; var arg; while ((arg = parser.GetArgument(name)) !== '\\endtoggle') { children.push(new TexParser_js_1.default(arg, parser.stack.env, parser.configuration).mml()); } parser.Push(parser.create('node', 'maction', children, { actiontype: 'toggle' })); }; exports.ActionMethods.Mathtip = function (parser, name) { var arg = parser.ParseArg(name); var tip = parser.ParseArg(name); parser.Push(parser.create('node', 'maction', [arg, tip], { actiontype: 'tooltip' })); }; new SymbolMap_js_1.CommandMap('action-macros', { toggle: 'Toggle', mathtip: 'Mathtip', texttip: ['Macro', '\\mathtip{#1}{\\text{#2}}', 2] }, exports.ActionMethods); exports.ActionConfiguration = Configuration_js_1.Configuration.create('action', { handler: { macro: ['action-macros'] } }); //# sourceMappingURL=ActionConfiguration.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexParser["default"]; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.base.BaseMethods["default"]; /***/ }), /* 6 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/action/ActionConfiguration.js var ActionConfiguration = __webpack_require__(1); // CONCATENATED MODULE: ./lib/action.js Object(global["combineWithMathJax"])({ _: { input: { tex: { action: { ActionConfiguration: ActionConfiguration } } } } }); // CONCATENATED MODULE: ./action.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/colorv2.js0000644000176200001440000001714214005301544023072 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 4); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ColorConfiguration = exports.ColorV2Methods = void 0; var SymbolMap_js_1 = __webpack_require__(2); var Configuration_js_1 = __webpack_require__(3); exports.ColorV2Methods = { Color: function (parser, name) { var color = parser.GetArgument(name); var old = parser.stack.env['color']; parser.stack.env['color'] = color; var math = parser.ParseArg(name); if (old) { parser.stack.env['color'] = old; } else { delete parser.stack.env['color']; } var node = parser.create('node', 'mstyle', [math], { mathcolor: color }); parser.Push(node); } }; new SymbolMap_js_1.CommandMap('colorv2', { color: 'Color' }, exports.ColorV2Methods); exports.ColorConfiguration = Configuration_js_1.Configuration.create('colorv2', { handler: { macro: ['colorv2'] } }); //# sourceMappingURL=ColorV2Configuration.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 4 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/colorv2/ColorV2Configuration.js var ColorV2Configuration = __webpack_require__(1); // CONCATENATED MODULE: ./lib/colorv2.js Object(global["combineWithMathJax"])({ _: { input: { tex: { colorv2: { ColorV2Configuration: ColorV2Configuration } } } } }); // CONCATENATED MODULE: ../rename.js function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } // // Look for a package name in the package list and change it to a new name // and rename tex options for it, if there are any. // function rename(oname, nname, options) { var tex = MathJax.config.tex; if (tex && tex.packages) { var packages = tex.packages; var n = packages.indexOf(oname); if (n >= 0) packages[n] = nname; if (options && tex[oname]) { Object(global["combineConfig"])(tex, _defineProperty({}, nname, tex[oname])); delete tex[oname]; } } } // CONCATENATED MODULE: ./colorv2.js rename('colorV2', 'colorv2', false); /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/bussproofs.js0000644000176200001440000010461114005301544023707 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 15); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.clearDocument = exports.saveDocument = exports.makeBsprAttributes = exports.removeProperty = exports.getProperty = exports.setProperty = exports.balanceRules = void 0; var NodeUtil_js_1 = __webpack_require__(10); var ParseUtil_js_1 = __webpack_require__(4); var doc = null; var item = null; var getBBox = function (node) { item.root = node; var width = doc.outputJax.getBBox(item, doc).w; return width; }; var getRule = function (node) { var i = 0; while (node && !NodeUtil_js_1.default.isType(node, 'mtable')) { if (NodeUtil_js_1.default.isType(node, 'text')) { return null; } if (NodeUtil_js_1.default.isType(node, 'mrow')) { node = node.childNodes[0]; i = 0; continue; } node = node.parent.childNodes[i]; i++; } return node; }; var getPremises = function (rule, direction) { return rule.childNodes[direction === 'up' ? 1 : 0].childNodes[0]. childNodes[0].childNodes[0].childNodes[0]; }; var getPremise = function (premises, n) { return premises.childNodes[n].childNodes[0].childNodes[0]; }; var firstPremise = function (premises) { return getPremise(premises, 0); }; var lastPremise = function (premises) { return getPremise(premises, premises.childNodes.length - 1); }; var getConclusion = function (rule, direction) { return rule.childNodes[direction === 'up' ? 0 : 1].childNodes[0].childNodes[0].childNodes[0]; }; var getColumn = function (inf) { while (inf && !NodeUtil_js_1.default.isType(inf, 'mtd')) { inf = inf.parent; } return inf; }; var nextSibling = function (inf) { return inf.parent.childNodes[inf.parent.childNodes.indexOf(inf) + 1]; }; var previousSibling = function (inf) { return inf.parent.childNodes[inf.parent.childNodes.indexOf(inf) - 1]; }; var getParentInf = function (inf) { while (inf && exports.getProperty(inf, 'inference') == null) { inf = inf.parent; } return inf; }; var getSpaces = function (inf, rule, right) { if (right === void 0) { right = false; } var result = 0; if (inf === rule) { return result; } if (inf !== rule.parent) { var children_1 = inf.childNodes; var index_1 = right ? children_1.length - 1 : 0; if (NodeUtil_js_1.default.isType(children_1[index_1], 'mspace')) { result += getBBox(children_1[index_1]); } inf = rule.parent; } if (inf === rule) { return result; } var children = inf.childNodes; var index = right ? children.length - 1 : 0; if (children[index] !== rule) { result += getBBox(children[index]); } return result; }; var adjustValue = function (inf, right) { if (right === void 0) { right = false; } var rule = getRule(inf); var conc = getConclusion(rule, exports.getProperty(rule, 'inferenceRule')); var w = getSpaces(inf, rule, right); var x = getBBox(rule); var y = getBBox(conc); return w + ((x - y) / 2); }; var addSpace = function (config, inf, space, right) { if (right === void 0) { right = false; } if (exports.getProperty(inf, 'inferenceRule') || exports.getProperty(inf, 'labelledRule')) { var mrow = config.nodeFactory.create('node', 'mrow'); inf.parent.replaceChild(mrow, inf); mrow.setChildren([inf]); moveProperties(inf, mrow); inf = mrow; } var index = right ? inf.childNodes.length - 1 : 0; var mspace = inf.childNodes[index]; if (NodeUtil_js_1.default.isType(mspace, 'mspace')) { NodeUtil_js_1.default.setAttribute(mspace, 'width', ParseUtil_js_1.default.Em(ParseUtil_js_1.default.dimen2em(NodeUtil_js_1.default.getAttribute(mspace, 'width')) + space)); return; } mspace = config.nodeFactory.create('node', 'mspace', [], { width: ParseUtil_js_1.default.Em(space) }); if (right) { inf.appendChild(mspace); return; } mspace.parent = inf; inf.childNodes.unshift(mspace); }; var moveProperties = function (src, dest) { var props = ['inference', 'proof', 'maxAdjust', 'labelledRule']; props.forEach(function (x) { var value = exports.getProperty(src, x); if (value != null) { exports.setProperty(dest, x, value); exports.removeProperty(src, x); } }); }; var adjustSequents = function (config) { var sequents = config.nodeLists['sequent']; if (!sequents) { return; } for (var i = sequents.length - 1, seq = void 0; seq = sequents[i]; i--) { if (exports.getProperty(seq, 'sequentProcessed')) { exports.removeProperty(seq, 'sequentProcessed'); continue; } var collect = []; var inf = getParentInf(seq); if (exports.getProperty(inf, 'inference') !== 1) { continue; } collect.push(seq); while (exports.getProperty(inf, 'inference') === 1) { inf = getRule(inf); var premise = firstPremise(getPremises(inf, exports.getProperty(inf, 'inferenceRule'))); var sequent = (exports.getProperty(premise, 'inferenceRule')) ? getConclusion(premise, exports.getProperty(premise, 'inferenceRule')) : premise; if (exports.getProperty(sequent, 'sequent')) { seq = sequent.childNodes[0]; collect.push(seq); exports.setProperty(seq, 'sequentProcessed', true); } inf = premise; } adjustSequentPairwise(config, collect); } }; var addSequentSpace = function (config, sequent, position, direction, width) { var mspace = config.nodeFactory.create('node', 'mspace', [], { width: ParseUtil_js_1.default.Em(width) }); if (direction === 'left') { var row = sequent.childNodes[position].childNodes[0]; mspace.parent = row; row.childNodes.unshift(mspace); } else { sequent.childNodes[position].appendChild(mspace); } exports.setProperty(sequent.parent, 'sequentAdjust_' + direction, width); }; var adjustSequentPairwise = function (config, sequents) { var top = sequents.pop(); while (sequents.length) { var bottom = sequents.pop(); var _a = __read(compareSequents(top, bottom), 2), left = _a[0], right = _a[1]; if (exports.getProperty(top.parent, 'axiom')) { addSequentSpace(config, left < 0 ? top : bottom, 0, 'left', Math.abs(left)); addSequentSpace(config, right < 0 ? top : bottom, 2, 'right', Math.abs(right)); } top = bottom; } }; var compareSequents = function (top, bottom) { var tr = getBBox(top.childNodes[2]); var br = getBBox(bottom.childNodes[2]); var tl = getBBox(top.childNodes[0]); var bl = getBBox(bottom.childNodes[0]); var dl = tl - bl; var dr = tr - br; return [dl, dr]; }; exports.balanceRules = function (arg) { var e_1, _a; item = new arg.document.options.MathItem('', null, arg.math.display); var config = arg.data; adjustSequents(config); var inferences = config.nodeLists['inference'] || []; try { for (var inferences_1 = __values(inferences), inferences_1_1 = inferences_1.next(); !inferences_1_1.done; inferences_1_1 = inferences_1.next()) { var inf = inferences_1_1.value; var isProof = exports.getProperty(inf, 'proof'); var rule = getRule(inf); var premises = getPremises(rule, exports.getProperty(rule, 'inferenceRule')); var premiseF = firstPremise(premises); if (exports.getProperty(premiseF, 'inference')) { var adjust_1 = adjustValue(premiseF); if (adjust_1) { addSpace(config, premiseF, -adjust_1); var w_1 = getSpaces(inf, rule, false); addSpace(config, inf, adjust_1 - w_1); } } var premiseL = lastPremise(premises); if (exports.getProperty(premiseL, 'inference') == null) { continue; } var adjust = adjustValue(premiseL, true); addSpace(config, premiseL, -adjust, true); var w = getSpaces(inf, rule, true); var maxAdjust = exports.getProperty(inf, 'maxAdjust'); if (maxAdjust != null) { adjust = Math.max(adjust, maxAdjust); } var column = void 0; if (isProof || !(column = getColumn(inf))) { addSpace(config, exports.getProperty(inf, 'proof') ? inf : inf.parent, adjust - w, true); continue; } var sibling = nextSibling(column); if (sibling) { var pos = config.nodeFactory.create('node', 'mspace', [], { width: adjust - w + 'em' }); sibling.appendChild(pos); inf.removeProperty('maxAdjust'); continue; } var parentRule = getParentInf(column); if (!parentRule) { continue; } adjust = exports.getProperty(parentRule, 'maxAdjust') ? Math.max(exports.getProperty(parentRule, 'maxAdjust'), adjust) : adjust; exports.setProperty(parentRule, 'maxAdjust', adjust); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (inferences_1_1 && !inferences_1_1.done && (_a = inferences_1.return)) _a.call(inferences_1); } finally { if (e_1) throw e_1.error; } } }; var property_prefix = 'bspr_'; var blacklistedProperties = (_a = {}, _a[property_prefix + 'maxAdjust'] = true, _a); exports.setProperty = function (node, property, value) { NodeUtil_js_1.default.setProperty(node, property_prefix + property, value); }; exports.getProperty = function (node, property) { return NodeUtil_js_1.default.getProperty(node, property_prefix + property); }; exports.removeProperty = function (node, property) { node.removeProperty(property_prefix + property); }; exports.makeBsprAttributes = function (arg) { arg.data.root.walkTree(function (mml, _data) { var attr = []; mml.getPropertyNames().forEach(function (x) { if (!blacklistedProperties[x] && x.match(RegExp('^' + property_prefix))) { attr.push(x + ':' + mml.getProperty(x)); } }); if (attr.length) { NodeUtil_js_1.default.setAttribute(mml, 'semantics', attr.join(';')); } }); }; exports.saveDocument = function (arg) { doc = arg.document; if (!('getBBox' in doc.outputJax)) { throw Error('The bussproofs extension requires an output jax with a getBBox() method'); } }; exports.clearDocument = function (_arg) { doc = null; }; //# sourceMappingURL=BussproofsUtil.js.map /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.ProofTreeItem = void 0; var TexError_js_1 = __webpack_require__(3); var StackItem_js_1 = __webpack_require__(8); var Stack_js_1 = __webpack_require__(9); var BussproofsUtil = __webpack_require__(0); var ProofTreeItem = (function (_super) { __extends(ProofTreeItem, _super); function ProofTreeItem() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.leftLabel = null; _this.rigthLabel = null; _this.innerStack = new Stack_js_1.default(_this.factory, {}, true); return _this; } Object.defineProperty(ProofTreeItem.prototype, "kind", { get: function () { return 'proofTree'; }, enumerable: false, configurable: true }); ProofTreeItem.prototype.checkItem = function (item) { if (item.isKind('end') && item.getName() === 'prooftree') { var node = this.toMml(); BussproofsUtil.setProperty(node, 'proof', true); return [[this.factory.create('mml', node), item], true]; } if (item.isKind('stop')) { throw new TexError_js_1.default('EnvMissingEnd', 'Missing \\end{%1}', this.getName()); } this.innerStack.Push(item); return StackItem_js_1.BaseItem.fail; }; ProofTreeItem.prototype.toMml = function () { var tree = _super.prototype.toMml.call(this); var start = this.innerStack.Top(); if (start.isKind('start') && !start.Size()) { return tree; } this.innerStack.Push(this.factory.create('stop')); var prefix = this.innerStack.Top().toMml(); return this.create('node', 'mrow', [prefix, tree], {}); }; return ProofTreeItem; }(StackItem_js_1.BaseItem)); exports.ProofTreeItem = ProofTreeItem; //# sourceMappingURL=BussproofsItems.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); var TexError_js_1 = __webpack_require__(3); var TexParser_js_1 = __webpack_require__(12); var ParseUtil_js_1 = __webpack_require__(4); var BussproofsUtil = __webpack_require__(0); var BussproofsMethods = {}; BussproofsMethods.Prooftree = function (parser, begin) { parser.Push(begin); var newItem = parser.itemFactory.create('proofTree'). setProperties({ name: begin.getName(), line: 'solid', currentLine: 'solid', rootAtTop: false }); return newItem; }; BussproofsMethods.Axiom = function (parser, name) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } var content = paddedContent(parser, parser.GetArgument(name)); BussproofsUtil.setProperty(content, 'axiom', true); top.Push(content); }; var paddedContent = function (parser, content) { var nodes = ParseUtil_js_1.default.internalMath(parser, ParseUtil_js_1.default.trimSpaces(content), 0); if (!nodes[0].childNodes[0].childNodes.length) { return parser.create('node', 'mrow', []); } var lpad = parser.create('node', 'mspace', [], { width: '.5ex' }); var rpad = parser.create('node', 'mspace', [], { width: '.5ex' }); return parser.create('node', 'mrow', __spread([lpad], nodes, [rpad])); }; BussproofsMethods.Inference = function (parser, name, n) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } if (top.Size() < n) { throw new TexError_js_1.default('BadProofTree', 'Proof tree badly specified.'); } var rootAtTop = top.getProperty('rootAtTop'); var childCount = (n === 1 && !top.Peek()[0].childNodes.length) ? 0 : n; var children = []; do { if (children.length) { children.unshift(parser.create('node', 'mtd', [], {})); } children.unshift(parser.create('node', 'mtd', [top.Pop()], { 'rowalign': (rootAtTop ? 'top' : 'bottom') })); n--; } while (n > 0); var row = parser.create('node', 'mtr', children, {}); var table = parser.create('node', 'mtable', [row], { framespacing: '0 0' }); var conclusion = paddedContent(parser, parser.GetArgument(name)); var style = top.getProperty('currentLine'); if (style !== top.getProperty('line')) { top.setProperty('currentLine', top.getProperty('line')); } var rule = createRule(parser, table, [conclusion], top.getProperty('left'), top.getProperty('right'), style, rootAtTop); top.setProperty('left', null); top.setProperty('right', null); BussproofsUtil.setProperty(rule, 'inference', childCount); parser.configuration.addNode('inference', rule); top.Push(rule); }; function createRule(parser, premise, conclusions, left, right, style, rootAtTop) { var upper = parser.create('node', 'mtr', [parser.create('node', 'mtd', [premise], {})], {}); var lower = parser.create('node', 'mtr', [parser.create('node', 'mtd', conclusions, {})], {}); var rule = parser.create('node', 'mtable', rootAtTop ? [lower, upper] : [upper, lower], { align: 'top 2', rowlines: style, framespacing: '0 0' }); BussproofsUtil.setProperty(rule, 'inferenceRule', rootAtTop ? 'up' : 'down'); var leftLabel, rightLabel; if (left) { leftLabel = parser.create('node', 'mpadded', [left], { height: '+.5em', width: '+.5em', voffset: '-.15em' }); BussproofsUtil.setProperty(leftLabel, 'prooflabel', 'left'); } if (right) { rightLabel = parser.create('node', 'mpadded', [right], { height: '+.5em', width: '+.5em', voffset: '-.15em' }); BussproofsUtil.setProperty(rightLabel, 'prooflabel', 'right'); } var children, label; if (left && right) { children = [leftLabel, rule, rightLabel]; label = 'both'; } else if (left) { children = [leftLabel, rule]; label = 'left'; } else if (right) { children = [rule, rightLabel]; label = 'right'; } else { return rule; } rule = parser.create('node', 'mrow', children); BussproofsUtil.setProperty(rule, 'labelledRule', label); return rule; } BussproofsMethods.Label = function (parser, name, side) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } var content = ParseUtil_js_1.default.internalMath(parser, parser.GetArgument(name), 0); var label = (content.length > 1) ? parser.create('node', 'mrow', content, {}) : content[0]; top.setProperty(side, label); }; BussproofsMethods.SetLine = function (parser, _name, style, always) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } top.setProperty('currentLine', style); if (always) { top.setProperty('line', style); } }; BussproofsMethods.RootAtTop = function (parser, _name, where) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } top.setProperty('rootAtTop', where); }; BussproofsMethods.AxiomF = function (parser, name) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } var line = parseFCenterLine(parser, name); BussproofsUtil.setProperty(line, 'axiom', true); top.Push(line); }; function parseFCenterLine(parser, name) { var dollar = parser.GetNext(); if (dollar !== '$') { throw new TexError_js_1.default('IllegalUseOfCommand', 'Use of %1 does not match it\'s definition.', name); } parser.i++; var axiom = parser.GetUpTo(name, '$'); if (axiom.indexOf('\\fCenter') === -1) { throw new TexError_js_1.default('IllegalUseOfCommand', 'Missing \\fCenter in %1.', name); } var _a = __read(axiom.split('\\fCenter'), 2), prem = _a[0], conc = _a[1]; var premise = (new TexParser_js_1.default(prem, parser.stack.env, parser.configuration)).mml(); var conclusion = (new TexParser_js_1.default(conc, parser.stack.env, parser.configuration)).mml(); var fcenter = (new TexParser_js_1.default('\\fCenter', parser.stack.env, parser.configuration)).mml(); var left = parser.create('node', 'mtd', [premise], {}); var middle = parser.create('node', 'mtd', [fcenter], {}); var right = parser.create('node', 'mtd', [conclusion], {}); var row = parser.create('node', 'mtr', [left, middle, right], {}); var table = parser.create('node', 'mtable', [row], { columnspacing: '.5ex', columnalign: 'center 2' }); BussproofsUtil.setProperty(table, 'sequent', true); parser.configuration.addNode('sequent', row); return table; } BussproofsMethods.FCenter = function (_parser, _name) { }; BussproofsMethods.InferenceF = function (parser, name, n) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } if (top.Size() < n) { throw new TexError_js_1.default('BadProofTree', 'Proof tree badly specified.'); } var rootAtTop = top.getProperty('rootAtTop'); var childCount = (n === 1 && !top.Peek()[0].childNodes.length) ? 0 : n; var children = []; do { if (children.length) { children.unshift(parser.create('node', 'mtd', [], {})); } children.unshift(parser.create('node', 'mtd', [top.Pop()], { 'rowalign': (rootAtTop ? 'top' : 'bottom') })); n--; } while (n > 0); var row = parser.create('node', 'mtr', children, {}); var table = parser.create('node', 'mtable', [row], { framespacing: '0 0' }); var conclusion = parseFCenterLine(parser, name); var style = top.getProperty('currentLine'); if (style !== top.getProperty('line')) { top.setProperty('currentLine', top.getProperty('line')); } var rule = createRule(parser, table, [conclusion], top.getProperty('left'), top.getProperty('right'), style, rootAtTop); top.setProperty('left', null); top.setProperty('right', null); BussproofsUtil.setProperty(rule, 'inference', childCount); parser.configuration.addNode('inference', rule); top.Push(rule); }; exports.default = BussproofsMethods; //# sourceMappingURL=BussproofsMethods.js.map /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexError["default"]; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseUtil["default"]; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.BussproofsConfiguration = void 0; var Configuration_js_1 = __webpack_require__(7); var BussproofsItems_js_1 = __webpack_require__(1); var BussproofsUtil_js_1 = __webpack_require__(0); __webpack_require__(11); exports.BussproofsConfiguration = Configuration_js_1.Configuration.create('bussproofs', { handler: { macro: ['Bussproofs-macros'], environment: ['Bussproofs-environments'] }, items: (_a = {}, _a[BussproofsItems_js_1.ProofTreeItem.prototype.kind] = BussproofsItems_js_1.ProofTreeItem, _a), preprocessors: [ [BussproofsUtil_js_1.saveDocument, 1] ], postprocessors: [ [BussproofsUtil_js_1.clearDocument, 3], [BussproofsUtil_js_1.makeBsprAttributes, 2], [BussproofsUtil_js_1.balanceRules, 1] ] }); //# sourceMappingURL=BussproofsConfiguration.js.map /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlStack = MathJax._.input.tex.StackItem.MmlStack; exports.BaseItem = MathJax._.input.tex.StackItem.BaseItem; /***/ }), /* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.Stack["default"]; /***/ }), /* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.NodeUtil["default"]; /***/ }), /* 11 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var BussproofsMethods_js_1 = __webpack_require__(2); var ParseMethods_js_1 = __webpack_require__(13); var SymbolMap_js_1 = __webpack_require__(14); new SymbolMap_js_1.CommandMap('Bussproofs-macros', { AxiomC: 'Axiom', UnaryInfC: ['Inference', 1], BinaryInfC: ['Inference', 2], TrinaryInfC: ['Inference', 3], QuaternaryInfC: ['Inference', 4], QuinaryInfC: ['Inference', 5], RightLabel: ['Label', 'right'], LeftLabel: ['Label', 'left'], AXC: 'Axiom', UIC: ['Inference', 1], BIC: ['Inference', 2], TIC: ['Inference', 3], RL: ['Label', 'right'], LL: ['Label', 'left'], noLine: ['SetLine', 'none', false], singleLine: ['SetLine', 'solid', false], solidLine: ['SetLine', 'solid', false], dashedLine: ['SetLine', 'dashed', false], alwaysNoLine: ['SetLine', 'none', true], alwaysSingleLine: ['SetLine', 'solid', true], alwaysSolidLine: ['SetLine', 'solid', true], alwaysDashedLine: ['SetLine', 'dashed', true], rootAtTop: ['RootAtTop', true], alwaysRootAtTop: ['RootAtTop', true], rootAtBottom: ['RootAtTop', false], alwaysRootAtBottom: ['RootAtTop', false], fCenter: 'FCenter', Axiom: 'AxiomF', UnaryInf: ['InferenceF', 1], BinaryInf: ['InferenceF', 2], TrinaryInf: ['InferenceF', 3], QuaternaryInf: ['InferenceF', 4], QuinaryInf: ['InferenceF', 5] }, BussproofsMethods_js_1.default); new SymbolMap_js_1.EnvironmentMap('Bussproofs-environments', ParseMethods_js_1.default.environment, { prooftree: ['Prooftree', null, false] }, BussproofsMethods_js_1.default); //# sourceMappingURL=BussproofsMappings.js.map /***/ }), /* 12 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexParser["default"]; /***/ }), /* 13 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseMethods["default"]; /***/ }), /* 14 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 15 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(5); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/bussproofs/BussproofsConfiguration.js var BussproofsConfiguration = __webpack_require__(6); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/bussproofs/BussproofsItems.js var BussproofsItems = __webpack_require__(1); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/bussproofs/BussproofsMethods.js var BussproofsMethods = __webpack_require__(2); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/bussproofs/BussproofsUtil.js var BussproofsUtil = __webpack_require__(0); // CONCATENATED MODULE: ./lib/bussproofs.js Object(global["combineWithMathJax"])({ _: { input: { tex: { bussproofs: { BussproofsConfiguration: BussproofsConfiguration, BussproofsItems: BussproofsItems, BussproofsMethods: BussproofsMethods, BussproofsUtil: BussproofsUtil } } } } }); // CONCATENATED MODULE: ./bussproofs.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/verb.js0000644000176200001440000001707114005301544022443 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 6); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VerbConfiguration = exports.VerbMethods = void 0; var Configuration_js_1 = __webpack_require__(2); var TexConstants_js_1 = __webpack_require__(3); var SymbolMap_js_1 = __webpack_require__(4); var TexError_js_1 = __webpack_require__(5); exports.VerbMethods = {}; exports.VerbMethods.Verb = function (parser, name) { var c = parser.GetNext(); var start = ++parser.i; if (c === '') { throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', name); } while (parser.i < parser.string.length && parser.string.charAt(parser.i) !== c) { parser.i++; } if (parser.i === parser.string.length) { throw new TexError_js_1.default('NoClosingDelim', 'Can\'t find closing delimiter for %1', parser.currentCS); } var text = parser.string.slice(start, parser.i).replace(/ /g, '\u00A0'); parser.i++; parser.Push(parser.create('token', 'mtext', { mathvariant: TexConstants_js_1.TexConstant.Variant.MONOSPACE }, text)); }; new SymbolMap_js_1.CommandMap('verb', { verb: 'Verb' }, exports.VerbMethods); exports.VerbConfiguration = Configuration_js_1.Configuration.create('verb', { handler: { macro: ['verb'] } }); //# sourceMappingURL=VerbConfiguration.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.TexConstant = MathJax._.input.tex.TexConstants.TexConstant; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexError["default"]; /***/ }), /* 6 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/verb/VerbConfiguration.js var VerbConfiguration = __webpack_require__(1); // CONCATENATED MODULE: ./lib/verb.js Object(global["combineWithMathJax"])({ _: { input: { tex: { verb: { VerbConfiguration: VerbConfiguration } } } } }); // CONCATENATED MODULE: ./verb.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/noerrors.js0000644000176200001440000001341614005301544023355 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 3); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NoErrorsConfiguration = void 0; var Configuration_js_1 = __webpack_require__(2); function noErrors(factory, message, _id, expr) { var mtext = factory.create('token', 'mtext', {}, expr.replace(/\n/g, ' ')); var error = factory.create('node', 'merror', [mtext], { 'data-mjx-error': message, title: message }); return error; } exports.NoErrorsConfiguration = Configuration_js_1.Configuration.create('noerrors', { nodes: { 'error': noErrors } }); //# sourceMappingURL=NoErrorsConfiguration.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 3 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/noerrors/NoErrorsConfiguration.js var NoErrorsConfiguration = __webpack_require__(1); // CONCATENATED MODULE: ./lib/noerrors.js Object(global["combineWithMathJax"])({ _: { input: { tex: { noerrors: { NoErrorsConfiguration: NoErrorsConfiguration } } } } }); // CONCATENATED MODULE: ./noerrors.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/newcommand.js0000644000176200001440000006004114005301544023630 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 14); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ParseUtil_js_1 = __webpack_require__(5); var TexError_js_1 = __webpack_require__(1); var Symbol_js_1 = __webpack_require__(10); var NewcommandUtil; (function (NewcommandUtil) { function disassembleSymbol(name, symbol) { var newArgs = [name, symbol.char]; if (symbol.attributes) { for (var key in symbol.attributes) { newArgs.push(key); newArgs.push(symbol.attributes[key]); } } return newArgs; } NewcommandUtil.disassembleSymbol = disassembleSymbol; function assembleSymbol(args) { var name = args[0]; var char = args[1]; var attrs = {}; for (var i = 2; i < args.length; i = i + 2) { attrs[args[i]] = args[i + 1]; } return new Symbol_js_1.Symbol(name, char, attrs); } NewcommandUtil.assembleSymbol = assembleSymbol; function GetCSname(parser, cmd) { var c = parser.GetNext(); if (c !== '\\') { throw new TexError_js_1.default('MissingCS', '%1 must be followed by a control sequence', cmd); } var cs = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(cmd)); return cs.substr(1); } NewcommandUtil.GetCSname = GetCSname; function GetTemplate(parser, cmd, cs) { var c = parser.GetNext(); var params = []; var n = 0; var i = parser.i; while (parser.i < parser.string.length) { c = parser.GetNext(); if (c === '#') { if (i !== parser.i) { params[n] = parser.string.substr(i, parser.i - i); } c = parser.string.charAt(++parser.i); if (!c.match(/^[1-9]$/)) { throw new TexError_js_1.default('CantUseHash2', 'Illegal use of # in template for %1', cs); } if (parseInt(c) !== ++n) { throw new TexError_js_1.default('SequentialParam', 'Parameters for %1 must be numbered sequentially', cs); } i = parser.i + 1; } else if (c === '{') { if (i !== parser.i) { params[n] = parser.string.substr(i, parser.i - i); } if (params.length > 0) { return [n.toString()].concat(params); } else { return n; } } parser.i++; } throw new TexError_js_1.default('MissingReplacementString', 'Missing replacement string for definition of %1', cmd); } NewcommandUtil.GetTemplate = GetTemplate; function GetParameter(parser, name, param) { if (param == null) { return parser.GetArgument(name); } var i = parser.i; var j = 0; var hasBraces = 0; while (parser.i < parser.string.length) { var c = parser.string.charAt(parser.i); if (c === '{') { if (parser.i === i) { hasBraces = 1; } parser.GetArgument(name); j = parser.i - i; } else if (MatchParam(parser, param)) { if (hasBraces) { i++; j -= 2; } return parser.string.substr(i, j); } else if (c === '\\') { parser.i++; j++; hasBraces = 0; var match = parser.string.substr(parser.i).match(/[a-z]+|./i); if (match) { parser.i += match[0].length; j = parser.i - i; } } else { parser.i++; j++; hasBraces = 0; } } throw new TexError_js_1.default('RunawayArgument', 'Runaway argument for %1?', name); } NewcommandUtil.GetParameter = GetParameter; function MatchParam(parser, param) { if (parser.string.substr(parser.i, param.length) !== param) { return 0; } if (param.match(/\\[a-z]+$/i) && parser.string.charAt(parser.i + param.length).match(/[a-z]/i)) { return 0; } parser.i += param.length; return 1; } NewcommandUtil.MatchParam = MatchParam; function addDelimiter(parser, cs, char, attr) { var handlers = parser.configuration.handlers; var handler = handlers.retrieve(NewcommandUtil.NEW_DELIMITER); handler.add(cs, new Symbol_js_1.Symbol(cs, char, attr)); } NewcommandUtil.addDelimiter = addDelimiter; function addMacro(parser, cs, func, attr, symbol) { if (symbol === void 0) { symbol = ''; } var handlers = parser.configuration.handlers; var handler = handlers.retrieve(NewcommandUtil.NEW_COMMAND); handler.add(cs, new Symbol_js_1.Macro(symbol ? symbol : cs, func, attr)); } NewcommandUtil.addMacro = addMacro; function addEnvironment(parser, env, func, attr) { var handlers = parser.configuration.handlers; var handler = handlers.retrieve(NewcommandUtil.NEW_ENVIRONMENT); handler.add(env, new Symbol_js_1.Macro(env, func, attr)); } NewcommandUtil.addEnvironment = addEnvironment; NewcommandUtil.NEW_DELIMITER = 'new-Delimiter'; NewcommandUtil.NEW_COMMAND = 'new-Command'; NewcommandUtil.NEW_ENVIRONMENT = 'new-Environment'; })(NewcommandUtil || (NewcommandUtil = {})); exports.default = NewcommandUtil; //# sourceMappingURL=NewcommandUtil.js.map /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexError["default"]; /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.BeginEnvItem = void 0; var TexError_js_1 = __webpack_require__(1); var StackItem_js_1 = __webpack_require__(9); var BeginEnvItem = (function (_super) { __extends(BeginEnvItem, _super); function BeginEnvItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(BeginEnvItem.prototype, "kind", { get: function () { return 'beginEnv'; }, enumerable: false, configurable: true }); Object.defineProperty(BeginEnvItem.prototype, "isOpen", { get: function () { return true; }, enumerable: false, configurable: true }); BeginEnvItem.prototype.checkItem = function (item) { if (item.isKind('end')) { if (item.getName() !== this.getName()) { throw new TexError_js_1.default('EnvBadEnd', '\\begin{%1} ended with \\end{%2}', this.getName(), item.getName()); } return [[this.factory.create('mml', this.toMml())], true]; } if (item.isKind('stop')) { throw new TexError_js_1.default('EnvMissingEnd', 'Missing \\end{%1}', this.getName()); } return _super.prototype.checkItem.call(this, item); }; return BeginEnvItem; }(StackItem_js_1.BaseItem)); exports.BeginEnvItem = BeginEnvItem; //# sourceMappingURL=NewcommandItems.js.map /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var TexError_js_1 = __webpack_require__(1); var sm = __webpack_require__(2); var BaseMethods_js_1 = __webpack_require__(12); var ParseUtil_js_1 = __webpack_require__(5); var NewcommandUtil_js_1 = __webpack_require__(0); var NewcommandMethods = {}; NewcommandMethods.NewCommand = function (parser, name) { var cs = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); var n = parser.GetBrackets(name); var opt = parser.GetBrackets(name); var def = parser.GetArgument(name); if (cs.charAt(0) === '\\') { cs = cs.substr(1); } if (!cs.match(/^(.|[a-z]+)$/i)) { throw new TexError_js_1.default('IllegalControlSequenceName', 'Illegal control sequence name for %1', name); } if (n) { n = ParseUtil_js_1.default.trimSpaces(n); if (!n.match(/^[0-9]+$/)) { throw new TexError_js_1.default('IllegalParamNumber', 'Illegal number of parameters specified in %1', name); } } NewcommandUtil_js_1.default.addMacro(parser, cs, NewcommandMethods.Macro, [def, n, opt]); }; NewcommandMethods.NewEnvironment = function (parser, name) { var env = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); var n = parser.GetBrackets(name); var opt = parser.GetBrackets(name); var bdef = parser.GetArgument(name); var edef = parser.GetArgument(name); if (n) { n = ParseUtil_js_1.default.trimSpaces(n); if (!n.match(/^[0-9]+$/)) { throw new TexError_js_1.default('IllegalParamNumber', 'Illegal number of parameters specified in %1', name); } } NewcommandUtil_js_1.default.addEnvironment(parser, env, NewcommandMethods.BeginEnv, [true, bdef, edef, n, opt]); }; NewcommandMethods.MacroDef = function (parser, name) { var cs = NewcommandUtil_js_1.default.GetCSname(parser, name); var params = NewcommandUtil_js_1.default.GetTemplate(parser, name, '\\' + cs); var def = parser.GetArgument(name); !(params instanceof Array) ? NewcommandUtil_js_1.default.addMacro(parser, cs, NewcommandMethods.Macro, [def, params]) : NewcommandUtil_js_1.default.addMacro(parser, cs, NewcommandMethods.MacroWithTemplate, [def].concat(params)); }; NewcommandMethods.Let = function (parser, name) { var cs = NewcommandUtil_js_1.default.GetCSname(parser, name); var c = parser.GetNext(); if (c === '=') { parser.i++; c = parser.GetNext(); } var handlers = parser.configuration.handlers; if (c === '\\') { name = NewcommandUtil_js_1.default.GetCSname(parser, name); var macro_1 = handlers.get('delimiter').lookup('\\' + name); if (macro_1) { NewcommandUtil_js_1.default.addDelimiter(parser, '\\' + cs, macro_1.char, macro_1.attributes); return; } var map_1 = handlers.get('macro').applicable(name); if (!map_1) { return; } if (map_1 instanceof sm.MacroMap) { var macro_2 = map_1.lookup(name); NewcommandUtil_js_1.default.addMacro(parser, cs, macro_2.func, macro_2.args, macro_2.symbol); return; } macro_1 = map_1.lookup(name); var newArgs = NewcommandUtil_js_1.default.disassembleSymbol(cs, macro_1); var method = function (p, _cs) { var rest = []; for (var _i = 2; _i < arguments.length; _i++) { rest[_i - 2] = arguments[_i]; } var symb = NewcommandUtil_js_1.default.assembleSymbol(rest); return map_1.parser(p, symb); }; NewcommandUtil_js_1.default.addMacro(parser, cs, method, newArgs); return; } parser.i++; var macro = handlers.get('delimiter').lookup(c); if (macro) { NewcommandUtil_js_1.default.addDelimiter(parser, '\\' + cs, macro.char, macro.attributes); return; } NewcommandUtil_js_1.default.addMacro(parser, cs, NewcommandMethods.Macro, [c]); }; NewcommandMethods.MacroWithTemplate = function (parser, name, text, n) { var params = []; for (var _i = 4; _i < arguments.length; _i++) { params[_i - 4] = arguments[_i]; } var argCount = parseInt(n, 10); if (argCount) { var args = []; parser.GetNext(); if (params[0] && !NewcommandUtil_js_1.default.MatchParam(parser, params[0])) { throw new TexError_js_1.default('MismatchUseDef', 'Use of %1 doesn\'t match its definition', name); } for (var i = 0; i < argCount; i++) { args.push(NewcommandUtil_js_1.default.GetParameter(parser, name, params[i + 1])); } text = ParseUtil_js_1.default.substituteArgs(parser, args, text); } parser.string = ParseUtil_js_1.default.addArgs(parser, text, parser.string.slice(parser.i)); parser.i = 0; if (++parser.macroCount > parser.configuration.options['maxMacros']) { throw new TexError_js_1.default('MaxMacroSub1', 'MathJax maximum macro substitution count exceeded; ' + 'is here a recursive macro call?'); } }; NewcommandMethods.BeginEnv = function (parser, begin, bdef, edef, n, def) { if (begin.getProperty('end') && parser.stack.env['closing'] === begin.getName()) { delete parser.stack.env['closing']; var rest = parser.string.slice(parser.i); parser.string = edef; parser.i = 0; parser.Parse(); parser.string = rest; parser.i = 0; return parser.itemFactory.create('end').setProperty('name', begin.getName()); } if (n) { var args = []; if (def != null) { var optional = parser.GetBrackets('\\begin{' + begin.getName() + '}'); args.push(optional == null ? def : optional); } for (var i = args.length; i < n; i++) { args.push(parser.GetArgument('\\begin{' + begin.getName() + '}')); } bdef = ParseUtil_js_1.default.substituteArgs(parser, args, bdef); edef = ParseUtil_js_1.default.substituteArgs(parser, [], edef); } parser.string = ParseUtil_js_1.default.addArgs(parser, bdef, parser.string.slice(parser.i)); parser.i = 0; return parser.itemFactory.create('beginEnv').setProperty('name', begin.getName()); }; NewcommandMethods.Macro = BaseMethods_js_1.default.Macro; exports.default = NewcommandMethods; //# sourceMappingURL=NewcommandMethods.js.map /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseUtil["default"]; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.NewcommandConfiguration = void 0; var Configuration_js_1 = __webpack_require__(8); var NewcommandItems_js_1 = __webpack_require__(3); var NewcommandUtil_js_1 = __webpack_require__(0); __webpack_require__(11); var ParseMethods_js_1 = __webpack_require__(13); var sm = __webpack_require__(2); var init = function (config) { new sm.DelimiterMap(NewcommandUtil_js_1.default.NEW_DELIMITER, ParseMethods_js_1.default.delimiter, {}); new sm.CommandMap(NewcommandUtil_js_1.default.NEW_COMMAND, {}, {}); new sm.EnvironmentMap(NewcommandUtil_js_1.default.NEW_ENVIRONMENT, ParseMethods_js_1.default.environment, {}, {}); config.append(Configuration_js_1.Configuration.local({ handler: { character: [], delimiter: [NewcommandUtil_js_1.default.NEW_DELIMITER], macro: [NewcommandUtil_js_1.default.NEW_DELIMITER, NewcommandUtil_js_1.default.NEW_COMMAND], environment: [NewcommandUtil_js_1.default.NEW_ENVIRONMENT] }, priority: -1 })); }; exports.NewcommandConfiguration = Configuration_js_1.Configuration.create('newcommand', { handler: { macro: ['Newcommand-macros'] }, items: (_a = {}, _a[NewcommandItems_js_1.BeginEnvItem.prototype.kind] = NewcommandItems_js_1.BeginEnvItem, _a), options: { maxMacros: 1000 }, init: init }); //# sourceMappingURL=NewcommandConfiguration.js.map /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlStack = MathJax._.input.tex.StackItem.MmlStack; exports.BaseItem = MathJax._.input.tex.StackItem.BaseItem; /***/ }), /* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Symbol = MathJax._.input.tex.Symbol.Symbol; exports.Macro = MathJax._.input.tex.Symbol.Macro; /***/ }), /* 11 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var NewcommandMethods_js_1 = __webpack_require__(4); var SymbolMap_js_1 = __webpack_require__(2); new SymbolMap_js_1.CommandMap('Newcommand-macros', { newcommand: 'NewCommand', renewcommand: 'NewCommand', newenvironment: 'NewEnvironment', renewenvironment: 'NewEnvironment', def: 'MacroDef', 'let': 'Let' }, NewcommandMethods_js_1.default); //# sourceMappingURL=NewcommandMappings.js.map /***/ }), /* 12 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.base.BaseMethods["default"]; /***/ }), /* 13 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseMethods["default"]; /***/ }), /* 14 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(6); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/newcommand/NewcommandConfiguration.js var NewcommandConfiguration = __webpack_require__(7); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/newcommand/NewcommandItems.js var NewcommandItems = __webpack_require__(3); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/newcommand/NewcommandMethods.js var NewcommandMethods = __webpack_require__(4); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/newcommand/NewcommandUtil.js var NewcommandUtil = __webpack_require__(0); // CONCATENATED MODULE: ./lib/newcommand.js Object(global["combineWithMathJax"])({ _: { input: { tex: { newcommand: { NewcommandConfiguration: NewcommandConfiguration, NewcommandItems: NewcommandItems, NewcommandMethods: NewcommandMethods, NewcommandUtil: NewcommandUtil } } } } }); // CONCATENATED MODULE: ./newcommand.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/extpfeil.js0000644000176200001440000002161314005301544023322 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 8); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExtpfeilConfiguration = exports.ExtpfeilMethods = void 0; var Configuration_js_1 = __webpack_require__(2); var SymbolMap_js_1 = __webpack_require__(3); var AmsMethods_js_1 = __webpack_require__(4); var NewcommandUtil_js_1 = __webpack_require__(5); var NewcommandConfiguration_js_1 = __webpack_require__(6); var TexError_js_1 = __webpack_require__(7); exports.ExtpfeilMethods = {}; exports.ExtpfeilMethods.xArrow = AmsMethods_js_1.AmsMethods.xArrow; exports.ExtpfeilMethods.NewExtArrow = function (parser, name) { var cs = parser.GetArgument(name); var space = parser.GetArgument(name); var chr = parser.GetArgument(name); if (!cs.match(/^\\([a-z]+|.)$/i)) { throw new TexError_js_1.default('NewextarrowArg1', 'First argument to %1 must be a control sequence name', name); } if (!space.match(/^(\d+),(\d+)$/)) { throw new TexError_js_1.default('NewextarrowArg2', 'Second argument to %1 must be two integers separated by a comma', name); } if (!chr.match(/^(\d+|0x[0-9A-F]+)$/i)) { throw new TexError_js_1.default('NewextarrowArg3', 'Third argument to %1 must be a unicode character number', name); } cs = cs.substr(1); var spaces = space.split(','); NewcommandUtil_js_1.default.addMacro(parser, cs, exports.ExtpfeilMethods.xArrow, [parseInt(chr), parseInt(spaces[0]), parseInt(spaces[1])]); }; new SymbolMap_js_1.CommandMap('extpfeil', { xtwoheadrightarrow: ['xArrow', 0x21A0, 12, 16], xtwoheadleftarrow: ['xArrow', 0x219E, 17, 13], xmapsto: ['xArrow', 0x21A6, 6, 7], xlongequal: ['xArrow', 0x003D, 7, 7], xtofrom: ['xArrow', 0x21C4, 12, 12], Newextarrow: 'NewExtArrow' }, exports.ExtpfeilMethods); var init = function (config) { NewcommandConfiguration_js_1.NewcommandConfiguration.init(config); }; exports.ExtpfeilConfiguration = Configuration_js_1.Configuration.create('extpfeil', { handler: { macro: ['extpfeil'] }, init: init }); //# sourceMappingURL=ExtpfeilConfiguration.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AmsMethods = MathJax._.input.tex.ams.AmsMethods.AmsMethods; exports.NEW_OPS = MathJax._.input.tex.ams.AmsMethods.NEW_OPS; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.newcommand.NewcommandUtil["default"]; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.NewcommandConfiguration = MathJax._.input.tex.newcommand.NewcommandConfiguration.NewcommandConfiguration; /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexError["default"]; /***/ }), /* 8 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/extpfeil/ExtpfeilConfiguration.js var ExtpfeilConfiguration = __webpack_require__(1); // CONCATENATED MODULE: ./lib/extpfeil.js Object(global["combineWithMathJax"])({ _: { input: { tex: { extpfeil: { ExtpfeilConfiguration: ExtpfeilConfiguration } } } } }); // CONCATENATED MODULE: ./extpfeil.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/autoload.js0000644000176200001440000003502114005301544023310 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 8); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AutoloadConfiguration = void 0; var Configuration_js_1 = __webpack_require__(2); var SymbolMap_js_1 = __webpack_require__(3); var Symbol_js_1 = __webpack_require__(4); var RequireConfiguration_js_1 = __webpack_require__(5); var package_js_1 = __webpack_require__(6); var Options_js_1 = __webpack_require__(7); function Autoload(parser, name, extension, isMacro) { var e_1, _a, e_2, _b; if (package_js_1.Package.packages.has(parser.options.require.prefix + extension)) { var def = parser.options.autoload[extension]; var _c = __read((def.length === 2 && Array.isArray(def[0]) ? def : [def, []]), 2), macros = _c[0], envs = _c[1]; try { for (var macros_1 = __values(macros), macros_1_1 = macros_1.next(); !macros_1_1.done; macros_1_1 = macros_1.next()) { var macro = macros_1_1.value; AutoloadMacros.remove(macro); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (macros_1_1 && !macros_1_1.done && (_a = macros_1.return)) _a.call(macros_1); } finally { if (e_1) throw e_1.error; } } try { for (var envs_1 = __values(envs), envs_1_1 = envs_1.next(); !envs_1_1.done; envs_1_1 = envs_1.next()) { var env = envs_1_1.value; AutoloadEnvironments.remove(env); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (envs_1_1 && !envs_1_1.done && (_b = envs_1.return)) _b.call(envs_1); } finally { if (e_2) throw e_2.error; } } parser.string = (isMacro ? name : '\\begin{' + name.slice(1) + '}') + parser.string.slice(parser.i); parser.i = 0; } RequireConfiguration_js_1.RequireLoad(parser, extension); } function initAutoload(config) { if (!config.options.require) { Options_js_1.defaultOptions(config.options, RequireConfiguration_js_1.RequireConfiguration.options); } } function configAutoload(config, jax) { var e_3, _a, e_4, _b, e_5, _c; var parser = jax.parseOptions; var macros = parser.handlers.get('macro'); var environments = parser.handlers.get('environment'); var autoload = parser.options.autoload; parser.packageData.set('autoload', { Autoload: Autoload }); try { for (var _d = __values(Object.keys(autoload)), _e = _d.next(); !_e.done; _e = _d.next()) { var extension = _e.value; var def = autoload[extension]; var _f = __read((def.length === 2 && Array.isArray(def[0]) ? def : [def, []]), 2), macs = _f[0], envs = _f[1]; try { for (var macs_1 = (e_4 = void 0, __values(macs)), macs_1_1 = macs_1.next(); !macs_1_1.done; macs_1_1 = macs_1.next()) { var name_1 = macs_1_1.value; if (!macros.lookup(name_1) || name_1 === 'color') { AutoloadMacros.add(name_1, new Symbol_js_1.Macro(name_1, Autoload, [extension, true])); } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (macs_1_1 && !macs_1_1.done && (_b = macs_1.return)) _b.call(macs_1); } finally { if (e_4) throw e_4.error; } } try { for (var envs_2 = (e_5 = void 0, __values(envs)), envs_2_1 = envs_2.next(); !envs_2_1.done; envs_2_1 = envs_2.next()) { var name_2 = envs_2_1.value; if (!environments.lookup(name_2)) { AutoloadEnvironments.add(name_2, new Symbol_js_1.Macro(name_2, Autoload, [extension, false])); } } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (envs_2_1 && !envs_2_1.done && (_c = envs_2.return)) _c.call(envs_2); } finally { if (e_5) throw e_5.error; } } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_3) throw e_3.error; } } if (!parser.packageData.get('require')) { RequireConfiguration_js_1.RequireConfiguration.config(config, jax); } } var AutoloadMacros = new SymbolMap_js_1.CommandMap('autoload-macros', {}, {}); var AutoloadEnvironments = new SymbolMap_js_1.CommandMap('autoload-environments', {}, {}); exports.AutoloadConfiguration = Configuration_js_1.Configuration.create('autoload', { handler: { macro: ['autoload-macros'], environment: ['autoload-environments'] }, options: { autoload: Options_js_1.expandable({ action: ['toggle', 'mathtip', 'texttip'], amscd: [[], ['CD']], bbox: ['bbox'], boldsymbol: ['boldsymbol'], braket: ['bra', 'ket', 'braket', 'set', 'Bra', 'Ket', 'Braket', 'Set', 'ketbra', 'Ketbra'], bussproofs: [[], ['prooftree']], cancel: ['cancel', 'bcancel', 'xcancel', 'cancelto'], color: ['color', 'definecolor', 'textcolor', 'colorbox', 'fcolorbox'], enclose: ['enclose'], extpfeil: ['xtwoheadrightarrow', 'xtwoheadleftarrow', 'xmapsto', 'xlongequal', 'xtofrom', 'Newextarrow'], html: ['href', 'class', 'style', 'cssId'], mhchem: ['ce', 'pu'], newcommand: ['newcommand', 'renewcommand', 'newenvironment', 'renewenvironment', 'def', 'let'], unicode: ['unicode'], verb: ['verb'] }) }, config: configAutoload, init: initAutoload, priority: 10 }); //# sourceMappingURL=AutoloadConfiguration.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Symbol = MathJax._.input.tex.Symbol.Symbol; exports.Macro = MathJax._.input.tex.Symbol.Macro; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.RequireLoad = MathJax._.input.tex.require.RequireConfiguration.RequireLoad; exports.RequireMethods = MathJax._.input.tex.require.RequireConfiguration.RequireMethods; exports.options = MathJax._.input.tex.require.RequireConfiguration.options; exports.RequireConfiguration = MathJax._.input.tex.require.RequireConfiguration.RequireConfiguration; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.PackageError = MathJax._.components["package"].PackageError; exports.Package = MathJax._.components["package"].Package; /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.APPEND = MathJax._.util.Options.APPEND; exports.REMOVE = MathJax._.util.Options.REMOVE; exports.Expandable = MathJax._.util.Options.Expandable; exports.expandable = MathJax._.util.Options.expandable; exports.makeArray = MathJax._.util.Options.makeArray; exports.keys = MathJax._.util.Options.keys; exports.copy = MathJax._.util.Options.copy; exports.insert = MathJax._.util.Options.insert; exports.defaultOptions = MathJax._.util.Options.defaultOptions; exports.userOptions = MathJax._.util.Options.userOptions; exports.selectOptions = MathJax._.util.Options.selectOptions; exports.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys; exports.separateOptions = MathJax._.util.Options.separateOptions; /***/ }), /* 8 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/autoload/AutoloadConfiguration.js var AutoloadConfiguration = __webpack_require__(1); // CONCATENATED MODULE: ./lib/autoload.js Object(global["combineWithMathJax"])({ _: { input: { tex: { autoload: { AutoloadConfiguration: AutoloadConfiguration } } } } }); // CONCATENATED MODULE: ./autoload.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/color.js0000644000176200001440000004446314005301544022630 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 10); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ColorMethods = void 0; var NodeUtil_js_1 = __webpack_require__(7); var ParseUtil_js_1 = __webpack_require__(8); function padding(colorPadding) { var pad = "+" + colorPadding; var unit = colorPadding.replace(/^.*?([a-z]*)$/, '$1'); var pad2 = 2 * parseFloat(pad); return { width: "+" + pad2 + unit, height: pad, depth: pad, lspace: colorPadding, }; } exports.ColorMethods = {}; exports.ColorMethods.Color = function (parser, name) { var model = parser.GetBrackets(name, ''); var colorDef = parser.GetArgument(name); var colorModel = parser.configuration.packageData.get('color').model; var color = colorModel.getColor(model, colorDef); var style = parser.itemFactory.create('style') .setProperties({ styles: { mathcolor: color } }); parser.stack.env['color'] = color; parser.Push(style); }; exports.ColorMethods.TextColor = function (parser, name) { var model = parser.GetBrackets(name, ''); var colorDef = parser.GetArgument(name); var colorModel = parser.configuration.packageData.get('color').model; var color = colorModel.getColor(model, colorDef); var old = parser.stack.env['color']; parser.stack.env['color'] = color; var math = parser.ParseArg(name); if (old) { parser.stack.env['color'] = old; } else { delete parser.stack.env['color']; } var node = parser.create('node', 'mstyle', [math], { mathcolor: color }); parser.Push(node); }; exports.ColorMethods.DefineColor = function (parser, name) { var cname = parser.GetArgument(name); var model = parser.GetArgument(name); var def = parser.GetArgument(name); var colorModel = parser.configuration.packageData.get('color').model; colorModel.defineColor(model, cname, def); }; exports.ColorMethods.ColorBox = function (parser, name) { var cname = parser.GetArgument(name); var math = ParseUtil_js_1.default.internalMath(parser, parser.GetArgument(name)); var colorModel = parser.configuration.packageData.get('color').model; var node = parser.create('node', 'mpadded', math, { mathbackground: colorModel.getColor('named', cname) }); NodeUtil_js_1.default.setProperties(node, padding(parser.options.color.padding)); parser.Push(node); }; exports.ColorMethods.FColorBox = function (parser, name) { var fname = parser.GetArgument(name); var cname = parser.GetArgument(name); var math = ParseUtil_js_1.default.internalMath(parser, parser.GetArgument(name)); var options = parser.options.color; var colorModel = parser.configuration.packageData.get('color').model; var node = parser.create('node', 'mpadded', math, { mathbackground: colorModel.getColor('named', cname), style: "border: " + options.borderWidth + " solid " + colorModel.getColor('named', fname) }); NodeUtil_js_1.default.setProperties(node, padding(options.padding)); parser.Push(node); }; //# sourceMappingURL=ColorMethods.js.map /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ColorModel = void 0; var TexError_js_1 = __webpack_require__(9); var ColorConstants_js_1 = __webpack_require__(2); var ColorModelProcessors = new Map(); var ColorModel = (function () { function ColorModel() { this.userColors = new Map(); } ColorModel.prototype.normalizeColor = function (model, def) { if (!model || model === 'named') { return def; } if (ColorModelProcessors.has(model)) { var modelProcessor = ColorModelProcessors.get(model); return modelProcessor(def); } throw new TexError_js_1.default('UndefinedColorModel', 'Color model \'%1\' not defined', model); }; ColorModel.prototype.getColor = function (model, def) { if (!model || model === 'named') { return this.getColorByName(def); } return this.normalizeColor(model, def); }; ColorModel.prototype.getColorByName = function (name) { if (this.userColors.has(name)) { return this.userColors.get(name); } if (ColorConstants_js_1.COLORS.has(name)) { return ColorConstants_js_1.COLORS.get(name); } return name; }; ColorModel.prototype.defineColor = function (model, name, def) { var normalized = this.normalizeColor(model, def); this.userColors.set(name, normalized); }; return ColorModel; }()); exports.ColorModel = ColorModel; ColorModelProcessors.set('rgb', function (rgb) { var e_1, _a; var rgbParts = rgb.trim().split(/\s*,\s*/); var RGB = '#'; if (rgbParts.length !== 3) { throw new TexError_js_1.default('ModelArg1', 'Color values for the %1 model require 3 numbers', 'rgb'); } try { for (var rgbParts_1 = __values(rgbParts), rgbParts_1_1 = rgbParts_1.next(); !rgbParts_1_1.done; rgbParts_1_1 = rgbParts_1.next()) { var rgbPart = rgbParts_1_1.value; if (!rgbPart.match(/^(\d+(\.\d*)?|\.\d+)$/)) { throw new TexError_js_1.default('InvalidDecimalNumber', 'Invalid decimal number'); } var n = parseFloat(rgbPart); if (n < 0 || n > 1) { throw new TexError_js_1.default('ModelArg2', 'Color values for the %1 model must be between %2 and %3', 'rgb', '0', '1'); } var pn = Math.floor(n * 255).toString(16); if (pn.length < 2) { pn = '0' + pn; } RGB += pn; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (rgbParts_1_1 && !rgbParts_1_1.done && (_a = rgbParts_1.return)) _a.call(rgbParts_1); } finally { if (e_1) throw e_1.error; } } return RGB; }); ColorModelProcessors.set('RGB', function (rgb) { var e_2, _a; var rgbParts = rgb.trim().split(/\s*,\s*/); var RGB = '#'; if (rgbParts.length !== 3) { throw new TexError_js_1.default('ModelArg1', 'Color values for the %1 model require 3 numbers', 'RGB'); } try { for (var rgbParts_2 = __values(rgbParts), rgbParts_2_1 = rgbParts_2.next(); !rgbParts_2_1.done; rgbParts_2_1 = rgbParts_2.next()) { var rgbPart = rgbParts_2_1.value; if (!rgbPart.match(/^\d+$/)) { throw new TexError_js_1.default('InvalidNumber', 'Invalid number'); } var n = parseInt(rgbPart); if (n > 255) { throw new TexError_js_1.default('ModelArg2', 'Color values for the %1 model must be between %2 and %3', 'RGB', '0', '255'); } var pn = n.toString(16); if (pn.length < 2) { pn = '0' + pn; } RGB += pn; } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (rgbParts_2_1 && !rgbParts_2_1.done && (_a = rgbParts_2.return)) _a.call(rgbParts_2); } finally { if (e_2) throw e_2.error; } } return RGB; }); ColorModelProcessors.set('gray', function (gray) { if (!gray.match(/^\s*(\d+(\.\d*)?|\.\d+)\s*$/)) { throw new TexError_js_1.default('InvalidDecimalNumber', 'Invalid decimal number'); } var n = parseFloat(gray); if (n < 0 || n > 1) { throw new TexError_js_1.default('ModelArg2', 'Color values for the %1 model must be between %2 and %3', 'gray', '0', '1'); } var pn = Math.floor(n * 255).toString(16); if (pn.length < 2) { pn = '0' + pn; } return "#" + pn + pn + pn; }); //# sourceMappingURL=ColorUtil.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.COLORS = void 0; exports.COLORS = new Map([ ['Apricot', '#FBB982'], ['Aquamarine', '#00B5BE'], ['Bittersweet', '#C04F17'], ['Black', '#221E1F'], ['Blue', '#2D2F92'], ['BlueGreen', '#00B3B8'], ['BlueViolet', '#473992'], ['BrickRed', '#B6321C'], ['Brown', '#792500'], ['BurntOrange', '#F7921D'], ['CadetBlue', '#74729A'], ['CarnationPink', '#F282B4'], ['Cerulean', '#00A2E3'], ['CornflowerBlue', '#41B0E4'], ['Cyan', '#00AEEF'], ['Dandelion', '#FDBC42'], ['DarkOrchid', '#A4538A'], ['Emerald', '#00A99D'], ['ForestGreen', '#009B55'], ['Fuchsia', '#8C368C'], ['Goldenrod', '#FFDF42'], ['Gray', '#949698'], ['Green', '#00A64F'], ['GreenYellow', '#DFE674'], ['JungleGreen', '#00A99A'], ['Lavender', '#F49EC4'], ['LimeGreen', '#8DC73E'], ['Magenta', '#EC008C'], ['Mahogany', '#A9341F'], ['Maroon', '#AF3235'], ['Melon', '#F89E7B'], ['MidnightBlue', '#006795'], ['Mulberry', '#A93C93'], ['NavyBlue', '#006EB8'], ['OliveGreen', '#3C8031'], ['Orange', '#F58137'], ['OrangeRed', '#ED135A'], ['Orchid', '#AF72B0'], ['Peach', '#F7965A'], ['Periwinkle', '#7977B8'], ['PineGreen', '#008B72'], ['Plum', '#92268F'], ['ProcessBlue', '#00B0F0'], ['Purple', '#99479B'], ['RawSienna', '#974006'], ['Red', '#ED1B23'], ['RedOrange', '#F26035'], ['RedViolet', '#A1246B'], ['Rhodamine', '#EF559F'], ['RoyalBlue', '#0071BC'], ['RoyalPurple', '#613F99'], ['RubineRed', '#ED017D'], ['Salmon', '#F69289'], ['SeaGreen', '#3FBC9D'], ['Sepia', '#671800'], ['SkyBlue', '#46C5DD'], ['SpringGreen', '#C6DC67'], ['Tan', '#DA9D76'], ['TealBlue', '#00AEB3'], ['Thistle', '#D883B7'], ['Turquoise', '#00B4CE'], ['Violet', '#58429B'], ['VioletRed', '#EF58A0'], ['White', '#FFFFFF'], ['WildStrawberry', '#EE2967'], ['Yellow', '#FFF200'], ['YellowGreen', '#98CC70'], ['YellowOrange', '#FAA21A'], ]); //# sourceMappingURL=ColorConstants.js.map /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ColorConfiguration = void 0; var SymbolMap_js_1 = __webpack_require__(5); var Configuration_js_1 = __webpack_require__(6); var ColorMethods_js_1 = __webpack_require__(0); var ColorUtil_js_1 = __webpack_require__(1); new SymbolMap_js_1.CommandMap('color', { color: 'Color', textcolor: 'TextColor', definecolor: 'DefineColor', colorbox: 'ColorBox', fcolorbox: 'FColorBox' }, ColorMethods_js_1.ColorMethods); var config = function (_config, jax) { jax.parseOptions.packageData.set('color', { model: new ColorUtil_js_1.ColorModel() }); }; exports.ColorConfiguration = Configuration_js_1.Configuration.create('color', { handler: { macro: ['color'], }, options: { color: { padding: '5px', borderWidth: '2px' } }, config: config }); //# sourceMappingURL=ColorConfiguration.js.map /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.NodeUtil["default"]; /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseUtil["default"]; /***/ }), /* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexError["default"]; /***/ }), /* 10 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(3); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/color/ColorConfiguration.js var ColorConfiguration = __webpack_require__(4); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/color/ColorConstants.js var ColorConstants = __webpack_require__(2); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/color/ColorMethods.js var ColorMethods = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/color/ColorUtil.js var ColorUtil = __webpack_require__(1); // CONCATENATED MODULE: ./lib/color.js Object(global["combineWithMathJax"])({ _: { input: { tex: { color: { ColorConfiguration: ColorConfiguration, ColorConstants: ColorConstants, ColorMethods: ColorMethods, ColorUtil: ColorUtil } } } } }); // CONCATENATED MODULE: ./color.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/tagformat.js0000644000176200001440000002200414005301544023461 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 4); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.TagFormatConfiguration = exports.tagformatConfig = void 0; var Configuration_js_1 = __webpack_require__(2); var Tags_js_1 = __webpack_require__(3); var tagID = 0; function tagformatConfig(config, jax) { var tags = jax.parseOptions.options.tags; if (tags !== 'base' && config.tags.hasOwnProperty(tags)) { Tags_js_1.TagsFactory.add(tags, config.tags[tags]); } var TagClass = Tags_js_1.TagsFactory.create(jax.parseOptions.options.tags).constructor; var TagFormat = (function (_super) { __extends(TagFormat, _super); function TagFormat() { return _super !== null && _super.apply(this, arguments) || this; } TagFormat.prototype.formatNumber = function (n) { return jax.parseOptions.options.tagformat.number(n); }; TagFormat.prototype.formatTag = function (tag) { return jax.parseOptions.options.tagformat.tag(tag); }; TagFormat.prototype.formatId = function (id) { return jax.parseOptions.options.tagformat.id(id); }; TagFormat.prototype.formatUrl = function (id, base) { return jax.parseOptions.options.tagformat.url(id, base); }; return TagFormat; }(TagClass)); tagID++; var tagName = 'configTags-' + tagID; Tags_js_1.TagsFactory.add(tagName, TagFormat); jax.parseOptions.options.tags = tagName; } exports.tagformatConfig = tagformatConfig; exports.TagFormatConfiguration = Configuration_js_1.Configuration.create('tagformat', { config: [tagformatConfig, 10], options: { tagformat: { number: function (n) { return n.toString(); }, tag: function (tag) { return '(' + tag + ')'; }, id: function (id) { return 'mjx-eqn-' + id.replace(/\s/g, '_'); }, url: function (id, base) { return base + '#' + encodeURIComponent(id); }, } } }); //# sourceMappingURL=TagFormatConfiguration.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Label = MathJax._.input.tex.Tags.Label; exports.TagInfo = MathJax._.input.tex.Tags.TagInfo; exports.AbstractTags = MathJax._.input.tex.Tags.AbstractTags; exports.NoTags = MathJax._.input.tex.Tags.NoTags; exports.AllTags = MathJax._.input.tex.Tags.AllTags; exports.TagsFactory = MathJax._.input.tex.Tags.TagsFactory; /***/ }), /* 4 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/tagformat/TagFormatConfiguration.js var TagFormatConfiguration = __webpack_require__(1); // CONCATENATED MODULE: ./lib/tagformat.js Object(global["combineWithMathJax"])({ _: { input: { tex: { tagformat: { TagFormatConfiguration: TagFormatConfiguration } } } } }); // CONCATENATED MODULE: ../rename.js function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } // // Look for a package name in the package list and change it to a new name // and rename tex options for it, if there are any. // function rename(oname, nname, options) { var tex = MathJax.config.tex; if (tex && tex.packages) { var packages = tex.packages; var n = packages.indexOf(oname); if (n >= 0) packages[n] = nname; if (options && tex[oname]) { Object(global["combineConfig"])(tex, _defineProperty({}, nname, tex[oname])); delete tex[oname]; } } } // CONCATENATED MODULE: ./tagformat.js rename('tagFormat', 'tagformat', true); /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/configmacros.js0000644000176200001440000002432514005301544024157 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 7); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConfigMacrosConfiguration = void 0; var Configuration_js_1 = __webpack_require__(2); var Options_js_1 = __webpack_require__(3); var SymbolMap_js_1 = __webpack_require__(4); var Symbol_js_1 = __webpack_require__(5); var NewcommandMethods_js_1 = __webpack_require__(6); var MACROSMAP = 'configmacros-map'; function configmacrosInit(config) { new SymbolMap_js_1.CommandMap(MACROSMAP, {}, {}); config.append(Configuration_js_1.Configuration.local({ handler: { macro: [MACROSMAP] }, priority: 3 })); } function configmacrosConfig(_config, jax) { var e_1, _a; var macrosMap = jax.parseOptions.handlers.retrieve(MACROSMAP); var macros = jax.parseOptions.options.macros; try { for (var _b = __values(Object.keys(macros)), _c = _b.next(); !_c.done; _c = _b.next()) { var cs = _c.value; var def = (typeof macros[cs] === 'string' ? [macros[cs]] : macros[cs]); var macro = Array.isArray(def[2]) ? new Symbol_js_1.Macro(cs, NewcommandMethods_js_1.default.MacroWithTemplate, def.slice(0, 2).concat(def[2])) : new Symbol_js_1.Macro(cs, NewcommandMethods_js_1.default.Macro, def); macrosMap.add(cs, macro); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } exports.ConfigMacrosConfiguration = Configuration_js_1.Configuration.create('configmacros', { init: configmacrosInit, config: configmacrosConfig, options: { macros: Options_js_1.expandable({}) } }); //# sourceMappingURL=ConfigMacrosConfiguration.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.APPEND = MathJax._.util.Options.APPEND; exports.REMOVE = MathJax._.util.Options.REMOVE; exports.Expandable = MathJax._.util.Options.Expandable; exports.expandable = MathJax._.util.Options.expandable; exports.makeArray = MathJax._.util.Options.makeArray; exports.keys = MathJax._.util.Options.keys; exports.copy = MathJax._.util.Options.copy; exports.insert = MathJax._.util.Options.insert; exports.defaultOptions = MathJax._.util.Options.defaultOptions; exports.userOptions = MathJax._.util.Options.userOptions; exports.selectOptions = MathJax._.util.Options.selectOptions; exports.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys; exports.separateOptions = MathJax._.util.Options.separateOptions; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Symbol = MathJax._.input.tex.Symbol.Symbol; exports.Macro = MathJax._.input.tex.Symbol.Macro; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.newcommand.NewcommandMethods["default"]; /***/ }), /* 7 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/configmacros/ConfigMacrosConfiguration.js var ConfigMacrosConfiguration = __webpack_require__(1); // CONCATENATED MODULE: ./lib/configmacros.js Object(global["combineWithMathJax"])({ _: { input: { tex: { configmacros: { ConfigMacrosConfiguration: ConfigMacrosConfiguration } } } } }); // CONCATENATED MODULE: ../rename.js function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } // // Look for a package name in the package list and change it to a new name // and rename tex options for it, if there are any. // function rename(oname, nname, options) { var tex = MathJax.config.tex; if (tex && tex.packages) { var packages = tex.packages; var n = packages.indexOf(oname); if (n >= 0) packages[n] = nname; if (options && tex[oname]) { Object(global["combineConfig"])(tex, _defineProperty({}, nname, tex[oname])); delete tex[oname]; } } } // CONCATENATED MODULE: ./configmacros.js rename('configMacros', 'configmacros', false); /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/require.js0000644000176200001440000003241414005301544023157 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 9); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.RequireConfiguration = exports.options = exports.RequireMethods = exports.RequireLoad = void 0; var Configuration_js_1 = __webpack_require__(2); var SymbolMap_js_1 = __webpack_require__(3); var TexError_js_1 = __webpack_require__(4); var global_js_1 = __webpack_require__(0); var package_js_1 = __webpack_require__(5); var loader_js_1 = __webpack_require__(6); var mathjax_js_1 = __webpack_require__(7); var Options_js_1 = __webpack_require__(8); var MJCONFIG = global_js_1.MathJax.config; function RegisterExtension(jax, name) { var _a; var require = jax.parseOptions.options.require; var required = jax.parseOptions.packageData.get('require').required; var extension = name.substr(require.prefix.length); if (required.indexOf(extension) < 0) { required.push(extension); RegisterDependencies(jax, loader_js_1.CONFIG.dependencies[name]); var handler = Configuration_js_1.ConfigurationHandler.get(extension); if (handler) { var options_1 = MJCONFIG[name] || {}; if (handler.options && Object.keys(handler.options).length === 1 && handler.options[extension]) { options_1 = (_a = {}, _a[extension] = options_1, _a); } jax.configuration.add(handler, jax, options_1); var configured = jax.parseOptions.packageData.get('require').configured; if (handler.preprocessors.length && !configured.has(extension)) { configured.set(extension, true); mathjax_js_1.mathjax.retryAfter(Promise.resolve()); } } } } function RegisterDependencies(jax, names) { var e_1, _a; if (names === void 0) { names = []; } var prefix = jax.parseOptions.options.require.prefix; try { for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) { var name_1 = names_1_1.value; if (name_1.substr(0, prefix.length) === prefix) { RegisterExtension(jax, name_1); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (names_1_1 && !names_1_1.done && (_a = names_1.return)) _a.call(names_1); } finally { if (e_1) throw e_1.error; } } } function RequireLoad(parser, name) { var options = parser.options.require; var allow = options.allow; var extension = (name.substr(0, 1) === '[' ? '' : options.prefix) + name; var allowed = (allow.hasOwnProperty(extension) ? allow[extension] : allow.hasOwnProperty(name) ? allow[name] : options.defaultAllow); if (!allowed) { throw new TexError_js_1.default('BadRequire', 'Extension "%1" is now allowed to be loaded', extension); } if (package_js_1.Package.packages.has(extension)) { RegisterExtension(parser.configuration.packageData.get('require').jax, extension); } else { mathjax_js_1.mathjax.retryAfter(loader_js_1.Loader.load(extension)); } } exports.RequireLoad = RequireLoad; function config(_config, jax) { jax.parseOptions.packageData.set('require', { jax: jax, required: __spread(jax.options.packages), configured: new Map() }); var options = jax.parseOptions.options.require; var prefix = options.prefix; if (prefix.match(/[^_a-zA-Z0-9]/)) { throw Error('Illegal characters used in \\require prefix'); } if (!loader_js_1.CONFIG.paths[prefix]) { loader_js_1.CONFIG.paths[prefix] = '[mathjax]/input/tex/extensions'; } options.prefix = '[' + prefix + ']/'; } exports.RequireMethods = { Require: function (parser, name) { var required = parser.GetArgument(name); if (required.match(/[^_a-zA-Z0-9]/) || required === '') { throw new TexError_js_1.default('BadPackageName', 'Argument for %1 is not a valid package name', name); } RequireLoad(parser, required); } }; exports.options = { require: { allow: Options_js_1.expandable({ base: false, 'all-packages': false }), defaultAllow: true, prefix: 'tex' } }; new SymbolMap_js_1.CommandMap('require', { require: 'Require' }, exports.RequireMethods); exports.RequireConfiguration = Configuration_js_1.Configuration.create('require', { handler: { macro: ['require'] }, config: config, options: exports.options }); //# sourceMappingURL=RequireConfiguration.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexError["default"]; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.PackageError = MathJax._.components["package"].PackageError; exports.Package = MathJax._.components["package"].Package; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Loader = MathJax._.components.loader.Loader; exports.MathJax = MathJax._.components.loader.MathJax; exports.CONFIG = MathJax._.components.loader.CONFIG; /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.mathjax = MathJax._.mathjax.mathjax; /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.APPEND = MathJax._.util.Options.APPEND; exports.REMOVE = MathJax._.util.Options.REMOVE; exports.Expandable = MathJax._.util.Options.Expandable; exports.expandable = MathJax._.util.Options.expandable; exports.makeArray = MathJax._.util.Options.makeArray; exports.keys = MathJax._.util.Options.keys; exports.copy = MathJax._.util.Options.copy; exports.insert = MathJax._.util.Options.insert; exports.defaultOptions = MathJax._.util.Options.defaultOptions; exports.userOptions = MathJax._.util.Options.userOptions; exports.selectOptions = MathJax._.util.Options.selectOptions; exports.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys; exports.separateOptions = MathJax._.util.Options.separateOptions; /***/ }), /* 9 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/require/RequireConfiguration.js var RequireConfiguration = __webpack_require__(1); // CONCATENATED MODULE: ./lib/require.js Object(global["combineWithMathJax"])({ _: { input: { tex: { require: { RequireConfiguration: RequireConfiguration } } } } }); // CONCATENATED MODULE: ./require.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/textmacros.js0000644000176200001440000007244614005301544023705 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 18); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TextMacrosMethods = void 0; var TexParser_js_1 = __webpack_require__(3); var Retries_js_1 = __webpack_require__(13); var BaseMethods_js_1 = __webpack_require__(14); exports.TextMacrosMethods = { Comment: function (parser, _c) { while (parser.i < parser.string.length && parser.string.charAt(parser.i) !== '\n') { parser.i++; } parser.i++; }, Math: function (parser, open) { parser.saveText(); var i = parser.i; var j, c; var braces = 0; while ((c = parser.GetNext())) { j = parser.i++; switch (c) { case '\\': var cs = parser.GetCS(); if (cs === ')') c = '\\('; case '$': if (braces === 0 && open === c) { var config = parser.texParser.configuration; var mml = (new TexParser_js_1.default(parser.string.substr(i, j - i), parser.stack.env, config)).mml(); parser.PushMath(mml); return; } break; case '{': braces++; break; case '}': if (braces === 0) { parser.Error('ExtraCloseMissingOpen', 'Extra close brace or missing open brace'); } braces--; break; } } parser.Error('MathNotTerminated', 'Math-mode is not properly terminated'); }, MathModeOnly: function (parser, c) { parser.Error('MathModeOnly', '\'%1\' allowed only in math mode', c); }, Misplaced: function (parser, c) { parser.Error('Misplaced', '\'%1\' can not be used here', c); }, OpenBrace: function (parser, _c) { var env = parser.stack.env; parser.envStack.push(env); parser.stack.env = Object.assign({}, env); }, CloseBrace: function (parser, _c) { if (parser.envStack.length) { parser.saveText(); parser.stack.env = parser.envStack.pop(); } else { parser.Error('ExtraCloseMissingOpen', 'Extra close brace or missing open brace'); } }, OpenQuote: function (parser, c) { if (parser.string.charAt(parser.i) === c) { parser.text += '\u201C'; parser.i++; } else { parser.text += '\u2018'; } }, CloseQuote: function (parser, c) { if (parser.string.charAt(parser.i) === c) { parser.text += '\u201D'; parser.i++; } else { parser.text += '\u2019'; } }, Tilde: function (parser, _c) { parser.text += '\u00A0'; }, Space: function (parser, _c) { parser.text += ' '; while (parser.GetNext().match(/\s/)) parser.i++; }, SelfQuote: function (parser, name) { parser.text += name.substr(1); }, Insert: function (parser, _name, c) { parser.text += c; }, Accent: function (parser, _name, c) { var base = parser.ParseArg(name); var accent = parser.create('token', 'mo', {}, c); parser.addAttributes(accent); parser.Push(parser.create('node', 'mover', [base, accent])); }, Emph: function (parser, name) { var variant = (parser.stack.env.mathvariant === '-tex-mathit' ? 'normal' : '-tex-mathit'); parser.Push(parser.ParseTextArg(name, { mathvariant: variant })); }, SetFont: function (parser, _name, variant) { parser.saveText(); parser.stack.env.mathvariant = variant; }, SetSize: function (parser, _name, size) { parser.saveText(); parser.stack.env.mathsize = size; }, CheckAutoload: function (parser, name) { var autoload = parser.configuration.packageData.get('autoload'); var texParser = parser.texParser; name = name.slice(1); var macro = texParser.lookup('macro', name); if (!macro || (autoload && macro._func === autoload.Autoload)) { texParser.parse('macro', [texParser, name]); if (!macro) return; Retries_js_1.retryAfter(Promise.resolve()); } texParser.parse('macro', [parser, name]); }, Macro: BaseMethods_js_1.default.Macro, Spacer: BaseMethods_js_1.default.Spacer, Hskip: BaseMethods_js_1.default.Hskip, rule: BaseMethods_js_1.default.rule, Rule: BaseMethods_js_1.default.Rule, HandleRef: BaseMethods_js_1.default.HandleRef }; //# sourceMappingURL=TextMacrosMethods.js.map /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TextParser = void 0; var TexParser_js_1 = __webpack_require__(3); var TexError_js_1 = __webpack_require__(9); var ParseUtil_js_1 = __webpack_require__(10); var MmlNode_js_1 = __webpack_require__(11); var NodeUtil_js_1 = __webpack_require__(12); var BaseItems_js_1 = __webpack_require__(2); var TextParser = (function (_super) { __extends(TextParser, _super); function TextParser(text, env, configuration, level) { var _this = _super.call(this, text, env, configuration) || this; _this.level = level; return _this; } Object.defineProperty(TextParser.prototype, "texParser", { get: function () { return this.configuration.packageData.get('textmacros').texParser; }, enumerable: false, configurable: true }); Object.defineProperty(TextParser.prototype, "tags", { get: function () { return this.texParser.tags; }, enumerable: false, configurable: true }); TextParser.prototype.mml = function () { return (this.level != null ? this.create('node', 'mstyle', this.nodes, { displaystyle: false, scriptlevel: this.level }) : this.nodes.length === 1 ? this.nodes[0] : this.create('node', 'inferredMrow', this.nodes)); }; TextParser.prototype.Parse = function () { this.text = ''; this.nodes = []; this.envStack = []; _super.prototype.Parse.call(this); }; TextParser.prototype.saveText = function () { if (this.text) { var mathvariant = this.stack.env.mathvariant; var text = ParseUtil_js_1.default.internalText(this, this.text, mathvariant ? { mathvariant: mathvariant } : {}); this.text = ''; this.Push(text); } }; TextParser.prototype.Push = function (mml) { if (this.text) { this.saveText(); } if (mml instanceof BaseItems_js_1.StopItem) { return _super.prototype.Push.call(this, mml); } if (mml instanceof BaseItems_js_1.StyleItem) { this.stack.env.mathcolor = this.stack.env.color; return; } if (mml instanceof MmlNode_js_1.AbstractMmlNode) { this.addAttributes(mml); this.nodes.push(mml); } }; TextParser.prototype.PushMath = function (mml) { var e_1, _a; var env = this.stack.env; try { for (var _b = __values(['mathsize', 'mathcolor']), _c = _b.next(); !_c.done; _c = _b.next()) { var name_1 = _c.value; if (env[name_1] && !mml.attributes.getExplicit(name_1)) { if (!mml.isToken && !mml.isKind('mstyle')) { mml = this.create('node', 'mstyle', [mml]); } NodeUtil_js_1.default.setAttribute(mml, name_1, env[name_1]); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } if (mml.isKind('inferredMrow')) { mml = this.create('node', 'mrow', mml.childNodes); } this.nodes.push(mml); }; TextParser.prototype.addAttributes = function (mml) { var e_2, _a; var env = this.stack.env; if (!mml.isToken) return; try { for (var _b = __values(['mathsize', 'mathcolor', 'mathvariant']), _c = _b.next(); !_c.done; _c = _b.next()) { var name_2 = _c.value; if (env[name_2] && !mml.attributes.getExplicit(name_2)) { NodeUtil_js_1.default.setAttribute(mml, name_2, env[name_2]); } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } }; TextParser.prototype.ParseTextArg = function (name, env) { var text = this.GetArgument(name); env = Object.assign(Object.assign({}, this.stack.env), env); return (new TextParser(text, env, this.configuration)).mml(); }; TextParser.prototype.ParseArg = function (name) { return (new TextParser(this.GetArgument(name), this.stack.env, this.configuration)).mml(); }; TextParser.prototype.Error = function (id, message) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } throw new (TexError_js_1.default.bind.apply(TexError_js_1.default, __spread([void 0, id, message], args)))(); }; return TextParser; }(TexParser_js_1.default)); exports.TextParser = TextParser; //# sourceMappingURL=TextParser.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.StartItem = MathJax._.input.tex.base.BaseItems.StartItem; exports.StopItem = MathJax._.input.tex.base.BaseItems.StopItem; exports.OpenItem = MathJax._.input.tex.base.BaseItems.OpenItem; exports.CloseItem = MathJax._.input.tex.base.BaseItems.CloseItem; exports.PrimeItem = MathJax._.input.tex.base.BaseItems.PrimeItem; exports.SubsupItem = MathJax._.input.tex.base.BaseItems.SubsupItem; exports.OverItem = MathJax._.input.tex.base.BaseItems.OverItem; exports.LeftItem = MathJax._.input.tex.base.BaseItems.LeftItem; exports.RightItem = MathJax._.input.tex.base.BaseItems.RightItem; exports.BeginItem = MathJax._.input.tex.base.BaseItems.BeginItem; exports.EndItem = MathJax._.input.tex.base.BaseItems.EndItem; exports.StyleItem = MathJax._.input.tex.base.BaseItems.StyleItem; exports.PositionItem = MathJax._.input.tex.base.BaseItems.PositionItem; exports.CellItem = MathJax._.input.tex.base.BaseItems.CellItem; exports.MmlItem = MathJax._.input.tex.base.BaseItems.MmlItem; exports.FnItem = MathJax._.input.tex.base.BaseItems.FnItem; exports.NotItem = MathJax._.input.tex.base.BaseItems.NotItem; exports.DotsItem = MathJax._.input.tex.base.BaseItems.DotsItem; exports.ArrayItem = MathJax._.input.tex.base.BaseItems.ArrayItem; exports.EqnArrayItem = MathJax._.input.tex.base.BaseItems.EqnArrayItem; exports.EquationItem = MathJax._.input.tex.base.BaseItems.EquationItem; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexParser["default"]; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.textBase = void 0; var Configuration_js_1 = __webpack_require__(6); var ParseOptions_js_1 = __webpack_require__(7); var Tags_js_1 = __webpack_require__(8); var BaseItems_js_1 = __webpack_require__(2); var TextParser_js_1 = __webpack_require__(1); var TextMacrosMethods_js_1 = __webpack_require__(0); __webpack_require__(15); exports.textBase = Configuration_js_1.Configuration.local({ handler: { character: ['command', 'text-special'], macro: ['text-macros'] }, fallback: { character: function (parser, c) { parser.text += c; }, macro: function (parser, name) { var texParser = parser.texParser; var macro = texParser.lookup('macro', name); if (macro && macro._func !== TextMacrosMethods_js_1.TextMacrosMethods.Macro) { parser.Error('MathMacro', '%1 is only supported in math mode', '\\' + name); } texParser.parse('macro', [macro ? parser : texParser, name]); } }, items: (_a = {}, _a[BaseItems_js_1.StartItem.prototype.kind] = BaseItems_js_1.StartItem, _a[BaseItems_js_1.StopItem.prototype.kind] = BaseItems_js_1.StopItem, _a[BaseItems_js_1.MmlItem.prototype.kind] = BaseItems_js_1.MmlItem, _a[BaseItems_js_1.StyleItem.prototype.kind] = BaseItems_js_1.StyleItem, _a) }); function internalMath(parser, text, level, mathvariant) { var config = parser.configuration.packageData.get('textmacros'); if (!(parser instanceof TextParser_js_1.TextParser)) { config.texParser = parser; } return [(new TextParser_js_1.TextParser(text, mathvariant ? { mathvariant: mathvariant } : {}, config.parseOptions, level)).mml()]; } Configuration_js_1.Configuration.create('textmacros', { config: function (_config, jax) { var textConf = new Configuration_js_1.ParserConfiguration([]); textConf.append(exports.textBase); textConf.init(); var parseOptions = new ParseOptions_js_1.default(textConf, []); parseOptions.options = jax.parseOptions.options; textConf.config(jax); Tags_js_1.TagsFactory.addTags(textConf.tags); parseOptions.tags = Tags_js_1.TagsFactory.getDefault(); parseOptions.tags.configuration = parseOptions; parseOptions.packageData = jax.parseOptions.packageData; parseOptions.packageData.set('textmacros', { parseOptions: parseOptions, jax: jax, texParser: null }); parseOptions.options.internalMath = internalMath; }, preprocessors: [function (data) { var config = data.data.packageData.get('textmacros'); config.parseOptions.nodeFactory.setMmlFactory(config.jax.mmlFactory); }] }); //# sourceMappingURL=TextMacrosConfiguration.js.map /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseOptions["default"]; /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Label = MathJax._.input.tex.Tags.Label; exports.TagInfo = MathJax._.input.tex.Tags.TagInfo; exports.AbstractTags = MathJax._.input.tex.Tags.AbstractTags; exports.NoTags = MathJax._.input.tex.Tags.NoTags; exports.AllTags = MathJax._.input.tex.Tags.AllTags; exports.TagsFactory = MathJax._.input.tex.Tags.TagsFactory; /***/ }), /* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexError["default"]; /***/ }), /* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseUtil["default"]; /***/ }), /* 11 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.TEXCLASS = MathJax._.core.MmlTree.MmlNode.TEXCLASS; exports.TEXCLASSNAMES = MathJax._.core.MmlTree.MmlNode.TEXCLASSNAMES; exports.indentAttributes = MathJax._.core.MmlTree.MmlNode.indentAttributes; exports.AbstractMmlNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlNode; exports.AbstractMmlTokenNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlTokenNode; exports.AbstractMmlLayoutNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlLayoutNode; exports.AbstractMmlBaseNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlBaseNode; exports.AbstractMmlEmptyNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlEmptyNode; exports.TextNode = MathJax._.core.MmlTree.MmlNode.TextNode; exports.XMLNode = MathJax._.core.MmlTree.MmlNode.XMLNode; /***/ }), /* 12 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.NodeUtil["default"]; /***/ }), /* 13 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.handleRetriesFor = MathJax._.util.Retries.handleRetriesFor; exports.retryAfter = MathJax._.util.Retries.retryAfter; /***/ }), /* 14 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.base.BaseMethods["default"]; /***/ }), /* 15 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var SymbolMap_js_1 = __webpack_require__(16); var TexConstants_js_1 = __webpack_require__(17); var TextMacrosMethods_js_1 = __webpack_require__(0); new SymbolMap_js_1.MacroMap('text-special', { '$': 'Math', '%': 'Comment', '^': 'MathModeOnly', '_': 'MathModeOnly', '&': 'Misplaced', '#': 'Misplaced', '~': 'Tilde', ' ': 'Space', '\t': 'Space', '\r': 'Space', '\n': 'Space', '\u00A0': 'Tilde', '{': 'OpenBrace', '}': 'CloseBrace', '`': 'OpenQuote', '\'': 'CloseQuote' }, TextMacrosMethods_js_1.TextMacrosMethods); new SymbolMap_js_1.CommandMap('text-macros', { '(': 'Math', '$': 'SelfQuote', '_': 'SelfQuote', '%': 'SelfQuote', '{': 'SelfQuote', '}': 'SelfQuote', ' ': 'SelfQuote', '&': 'SelfQuote', '#': 'SelfQuote', '\\': 'SelfQuote', '\'': ['Accent', '\u00B4'], '\u2019': ['Accent', '\u00B4'], '`': ['Accent', '\u0060'], '\u2018': ['Accent', '\u0060'], '^': ['Accent', '^'], '\"': ['Accent', '\u00A8'], '~': ['Accent', '~'], '=': ['Accent', '\u00AF'], '.': ['Accent', '\u02D9'], 'u': ['Accent', '\u02D8'], 'v': ['Accent', '\u02C7'], emph: 'Emph', rm: ['SetFont', TexConstants_js_1.TexConstant.Variant.NORMAL], mit: ['SetFont', TexConstants_js_1.TexConstant.Variant.ITALIC], oldstyle: ['SetFont', TexConstants_js_1.TexConstant.Variant.OLDSTYLE], cal: ['SetFont', TexConstants_js_1.TexConstant.Variant.CALLIGRAPHIC], it: ['SetFont', '-tex-mathit'], bf: ['SetFont', TexConstants_js_1.TexConstant.Variant.BOLD], bbFont: ['SetFont', TexConstants_js_1.TexConstant.Variant.DOUBLESTRUCK], scr: ['SetFont', TexConstants_js_1.TexConstant.Variant.SCRIPT], frak: ['SetFont', TexConstants_js_1.TexConstant.Variant.FRAKTUR], sf: ['SetFont', TexConstants_js_1.TexConstant.Variant.SANSSERIF], tt: ['SetFont', TexConstants_js_1.TexConstant.Variant.MONOSPACE], tiny: ['SetSize', 0.5], Tiny: ['SetSize', 0.6], scriptsize: ['SetSize', 0.7], small: ['SetSize', 0.85], normalsize: ['SetSize', 1.0], large: ['SetSize', 1.2], Large: ['SetSize', 1.44], LARGE: ['SetSize', 1.73], huge: ['SetSize', 2.07], Huge: ['SetSize', 2.49], mathcal: 'MathModeOnly', mathscr: 'MathModeOnly', mathrm: 'MathModeOnly', mathbf: 'MathModeOnly', mathbb: 'MathModeOnly', mathit: 'MathModeOnly', mathfrak: 'MathModeOnly', mathsf: 'MathModeOnly', mathtt: 'MathModeOnly', Bbb: ['Macro', '{\\bbFont #1}', 1], textrm: ['Macro', '{\\rm #1}', 1], textit: ['Macro', '{\\it #1}', 1], textbf: ['Macro', '{\\bf #1}', 1], textsf: ['Macro', '{\\sf #1}', 1], texttt: ['Macro', '{\\tt #1}', 1], dagger: ['Insert', '\u2020'], ddagger: ['Insert', '\u2021'], S: ['Insert', '\u00A7'], ',': ['Spacer', TexConstants_js_1.TexConstant.Length.THINMATHSPACE], ':': ['Spacer', TexConstants_js_1.TexConstant.Length.MEDIUMMATHSPACE], '>': ['Spacer', TexConstants_js_1.TexConstant.Length.MEDIUMMATHSPACE], ';': ['Spacer', TexConstants_js_1.TexConstant.Length.THICKMATHSPACE], '!': ['Spacer', TexConstants_js_1.TexConstant.Length.NEGATIVETHINMATHSPACE], enspace: ['Spacer', '.5em'], quad: ['Spacer', '1em'], qquad: ['Spacer', '2em'], thinspace: ['Spacer', TexConstants_js_1.TexConstant.Length.THINMATHSPACE], negthinspace: ['Spacer', TexConstants_js_1.TexConstant.Length.NEGATIVETHINMATHSPACE], hskip: 'Hskip', hspace: 'Hskip', kern: 'Hskip', mskip: 'Hskip', mspace: 'Hskip', mkern: 'Hskip', rule: 'rule', Rule: ['Rule'], Space: ['Rule', 'blank'], color: 'CheckAutoload', textcolor: 'CheckAutoload', colorbox: 'CheckAutoload', fcolorbox: 'CheckAutoload', href: 'CheckAutoload', style: 'CheckAutoload', class: 'CheckAutoload', cssId: 'CheckAutoload', unicode: 'CheckAutoload', ref: ['HandleRef', false], eqref: ['HandleRef', true], }, TextMacrosMethods_js_1.TextMacrosMethods); //# sourceMappingURL=TextMacrosMappings.js.map /***/ }), /* 16 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 17 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.TexConstant = MathJax._.input.tex.TexConstants.TexConstant; /***/ }), /* 18 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(4); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/textmacros/TextMacrosConfiguration.js var TextMacrosConfiguration = __webpack_require__(5); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/textmacros/TextMacrosMethods.js var TextMacrosMethods = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/textmacros/TextParser.js var TextParser = __webpack_require__(1); // CONCATENATED MODULE: ./lib/textmacros.js Object(global["combineWithMathJax"])({ _: { input: { tex: { textmacros: { TextMacrosConfiguration: TextMacrosConfiguration, TextMacrosMethods: TextMacrosMethods, TextParser: TextParser } } } } }); // CONCATENATED MODULE: ./textmacros.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/mhchem.js0000644000176200001440000021103614005301544022743 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 8); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MhchemConfiguration = void 0; var Configuration_js_1 = __webpack_require__(2); var SymbolMap_js_1 = __webpack_require__(3); var TexError_js_1 = __webpack_require__(4); var BaseMethods_js_1 = __webpack_require__(5); var AmsMethods_js_1 = __webpack_require__(6); var mhchem_parser_js_1 = __webpack_require__(7); var MhchemMethods = {}; MhchemMethods.Macro = BaseMethods_js_1.default.Macro; MhchemMethods.xArrow = AmsMethods_js_1.AmsMethods.xArrow; MhchemMethods.Machine = function (parser, name, machine) { try { var arg = parser.GetArgument(name); var data = mhchem_parser_js_1.mhchemParser.go(arg, machine); var tex = mhchem_parser_js_1.texify.go(data); parser.string = tex + parser.string.substr(parser.i); parser.i = 0; } catch (err) { throw new TexError_js_1.default(err[0], err[1], err.slice(2)); } }; new SymbolMap_js_1.CommandMap('mhchem', { ce: ['Machine', 'ce'], pu: ['Machine', 'pu'], longrightleftharpoons: ['Macro', '\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}'], longRightleftharpoons: ['Macro', '\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{\\leftharpoondown}}'], longLeftrightharpoons: ['Macro', '\\stackrel{\\textstyle\\vphantom{{-}}{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}'], longleftrightarrows: ['Macro', '\\stackrel{\\longrightarrow}{\\smash{\\longleftarrow}\\Rule{0px}{.25em}{0px}}'], tripledash: ['Macro', '\\vphantom{-}\\raise2mu{\\kern2mu\\tiny\\text{-}\\kern1mu\\text{-}\\kern1mu\\text{-}\\kern2mu}'], xrightarrow: ['xArrow', 0x2192, 5, 6], xleftarrow: ['xArrow', 0x2190, 7, 3], xleftrightarrow: ['xArrow', 0x2194, 6, 6], xrightleftharpoons: ['xArrow', 0x21CC, 5, 7], xRightleftharpoons: ['xArrow', 0x21CC, 5, 7], xLeftrightharpoons: ['xArrow', 0x21CC, 5, 7] }, MhchemMethods); exports.MhchemConfiguration = Configuration_js_1.Configuration.create('mhchem', { handler: { macro: ['mhchem'] } }); //# sourceMappingURL=MhchemConfiguration.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexError["default"]; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.base.BaseMethods["default"]; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AmsMethods = MathJax._.input.tex.ams.AmsMethods.AmsMethods; exports.NEW_OPS = MathJax._.input.tex.ams.AmsMethods.NEW_OPS; /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', {value: true}); // // Core parser for mhchem syntax (recursive) // /** @type {MhchemParser} */ var mhchemParser = { // // Parses mchem \ce syntax // // Call like // go("H2O"); // go: function (input, stateMachine) { if (!input) { return []; } if (stateMachine === undefined) { stateMachine = 'ce'; } var state = '0'; // // String buffers for parsing: // // buffer.a == amount // buffer.o == element // buffer.b == left-side superscript // buffer.p == left-side subscript // buffer.q == right-side subscript // buffer.d == right-side superscript // // buffer.r == arrow // buffer.rdt == arrow, script above, type // buffer.rd == arrow, script above, content // buffer.rqt == arrow, script below, type // buffer.rq == arrow, script below, content // // buffer.text_ // buffer.rm // etc. // // buffer.parenthesisLevel == int, starting at 0 // buffer.sb == bool, space before // buffer.beginsWithBond == bool // // These letters are also used as state names. // // Other states: // 0 == begin of main part (arrow/operator unlikely) // 1 == next entity // 2 == next entity (arrow/operator unlikely) // 3 == next atom // c == macro // /** @type {Buffer} */ var buffer = {}; buffer['parenthesisLevel'] = 0; input = input.replace(/\n/g, " "); input = input.replace(/[\u2212\u2013\u2014\u2010]/g, "-"); input = input.replace(/[\u2026]/g, "..."); // // Looks through mhchemParser.transitions, to execute a matching action // (recursive) // var lastInput; var watchdog = 10; /** @type {ParserOutput[]} */ var output = []; while (true) { if (lastInput !== input) { watchdog = 10; lastInput = input; } else { watchdog--; } // // Find actions in transition table // var machine = mhchemParser.stateMachines[stateMachine]; var t = machine.transitions[state] || machine.transitions['*']; iterateTransitions: for (var i=0; i 0) { if (!task.revisit) { input = matches.remainder; } if (!task.toContinue) { break iterateTransitions; } } else { return output; } } } // // Prevent infinite loop // if (watchdog <= 0) { throw ["MhchemBugU", "mhchem bug U. Please report."]; // Unexpected character } } }, concatArray: function (a, b) { if (b) { if (Array.isArray(b)) { for (var iB=0; iB': /^[=<>]/, '#': /^[#\u2261]/, '+': /^\+/, '-$': /^-(?=[\s_},;\]/]|$|\([a-z]+\))/, // -space -, -; -] -/ -$ -state-of-aggregation '-9': /^-(?=[0-9])/, '- orbital overlap': /^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/, '-': /^-/, 'pm-operator': /^(?:\\pm|\$\\pm\$|\+-|\+\/-)/, 'operator': /^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/, 'arrowUpDown': /^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/, '\\bond{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\bond{", "", "", "}"); }, '->': /^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/, 'CMT': /^[CMT](?=\[)/, '[(...)]': function (input) { return mhchemParser.patterns.findObserveGroups(input, "[", "", "", "]"); }, '1st-level escape': /^(&|\\\\|\\hline)\s*/, '\\,': /^(?:\\[,\ ;:])/, // \\x - but output no space before '\\x{}{}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "", /^\\[a-zA-Z]+\{/, "}", "", "", "{", "}", "", true); }, '\\x{}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "", /^\\[a-zA-Z]+\{/, "}", ""); }, '\\ca': /^\\ca(?:\s+|(?![a-zA-Z]))/, '\\x': /^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/, 'orbital': /^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/, // only those with numbers in front, because the others will be formatted correctly anyway 'others': /^[\/~|]/, '\\frac{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\frac{", "", "", "}", "{", "", "", "}"); }, '\\overset{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\overset{", "", "", "}", "{", "", "", "}"); }, '\\underset{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\underset{", "", "", "}", "{", "", "", "}"); }, '\\underbrace{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\underbrace{", "", "", "}_", "{", "", "", "}"); }, '\\color{(...)}0': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\color{", "", "", "}"); }, '\\color{(...)}{(...)}1': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\color{", "", "", "}", "{", "", "", "}"); }, '\\color(...){(...)}2': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\color", "\\", "", /^(?=\{)/, "{", "", "", "}"); }, '\\ce{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\ce{", "", "", "}"); }, 'oxidation$': /^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/, 'd-oxidation$': /^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/, // 0 could be oxidation or charge 'roman numeral': /^[IVX]+/, '1/2$': /^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/, 'amount': function (input) { var match; // e.g. 2, 0.5, 1/2, -2, n/2, +; $a$ could be added later in parsing match = input.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/); if (match) { return { match_: match[0], remainder: input.substr(match[0].length) }; } var a = mhchemParser.patterns.findObserveGroups(input, "", "$", "$", ""); if (a) { // e.g. $2n-1$, $-$ match = a.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/); if (match) { return { match_: match[0], remainder: input.substr(match[0].length) }; } } return null; }, 'amount2': function (input) { return this['amount'](input); }, '(KV letters),': /^(?:[A-Z][a-z]{0,2}|i)(?=,)/, 'formula$': function (input) { if (input.match(/^\([a-z]+\)$/)) { return null; } // state of aggregation = no formula var match = input.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/); if (match) { return { match_: match[0], remainder: input.substr(match[0].length) }; } return null; }, 'uprightEntities': /^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/, '/': /^\s*(\/)\s*/, '//': /^\s*(\/\/)\s*/, '*': /^\s*[*.]\s*/ }, findObserveGroups: function (input, begExcl, begIncl, endIncl, endExcl, beg2Excl, beg2Incl, end2Incl, end2Excl, combine) { /** @type {{(input: string, pattern: string | RegExp): string | string[] | null;}} */ var _match = function (input, pattern) { if (typeof pattern === "string") { if (input.indexOf(pattern) !== 0) { return null; } return pattern; } else { var match = input.match(pattern); if (!match) { return null; } return match[0]; } }; /** @type {{(input: string, i: number, endChars: string | RegExp): {endMatchBegin: number, endMatchEnd: number} | null;}} */ var _findObserveGroups = function (input, i, endChars) { var braces = 0; while (i < input.length) { var a = input.charAt(i); var match = _match(input.substr(i), endChars); if (match !== null && braces === 0) { return { endMatchBegin: i, endMatchEnd: i + match.length }; } else if (a === "{") { braces++; } else if (a === "}") { if (braces === 0) { throw ["ExtraCloseMissingOpen", "Extra close brace or missing open brace"]; } else { braces--; } } i++; } if (braces > 0) { return null; } return null; }; var match = _match(input, begExcl); if (match === null) { return null; } input = input.substr(match.length); match = _match(input, begIncl); if (match === null) { return null; } var e = _findObserveGroups(input, match.length, endIncl || endExcl); if (e === null) { return null; } var match1 = input.substring(0, (endIncl ? e.endMatchEnd : e.endMatchBegin)); if (!(beg2Excl || beg2Incl)) { return { match_: match1, remainder: input.substr(e.endMatchEnd) }; } else { var group2 = this.findObserveGroups(input.substr(e.endMatchEnd), beg2Excl, beg2Incl, end2Incl, end2Excl); if (group2 === null) { return null; } /** @type {string[]} */ var matchRet = [match1, group2.match_]; return { match_: (combine ? matchRet.join("") : matchRet), remainder: group2.remainder }; } }, // // Matching function // e.g. match("a", input) will look for the regexp called "a" and see if it matches // returns null or {match_:"a", remainder:"bc"} // match_: function (m, input) { var pattern = mhchemParser.patterns.patterns[m]; if (pattern === undefined) { throw ["MhchemBugP", "mhchem bug P. Please report. (" + m + ")"]; // Trying to use non-existing pattern } else if (typeof pattern === "function") { return mhchemParser.patterns.patterns[m](input); // cannot use cached var pattern here, because some pattern functions need this===mhchemParser } else { // RegExp var match = input.match(pattern); if (match) { var mm; if (match[2]) { mm = [ match[1], match[2] ]; } else if (match[1]) { mm = match[1]; } else { mm = match[0]; } return { match_: mm, remainder: input.substr(match[0].length) }; } return null; } } }, // // Generic state machine actions // actions: { 'a=': function (buffer, m) { buffer.a = (buffer.a || "") + m; }, 'b=': function (buffer, m) { buffer.b = (buffer.b || "") + m; }, 'p=': function (buffer, m) { buffer.p = (buffer.p || "") + m; }, 'o=': function (buffer, m) { buffer.o = (buffer.o || "") + m; }, 'q=': function (buffer, m) { buffer.q = (buffer.q || "") + m; }, 'd=': function (buffer, m) { buffer.d = (buffer.d || "") + m; }, 'rm=': function (buffer, m) { buffer.rm = (buffer.rm || "") + m; }, 'text=': function (buffer, m) { buffer.text_ = (buffer.text_ || "") + m; }, 'insert': function (buffer, m, a) { return { type_: a }; }, 'insert+p1': function (buffer, m, a) { return { type_: a, p1: m }; }, 'insert+p1+p2': function (buffer, m, a) { return { type_: a, p1: m[0], p2: m[1] }; }, 'copy': function (buffer, m) { return m; }, 'rm': function (buffer, m) { return { type_: 'rm', p1: m || ""}; }, 'text': function (buffer, m) { return mhchemParser.go(m, 'text'); }, '{text}': function (buffer, m) { var ret = [ "{" ]; mhchemParser.concatArray(ret, mhchemParser.go(m, 'text')); ret.push("}"); return ret; }, 'tex-math': function (buffer, m) { return mhchemParser.go(m, 'tex-math'); }, 'tex-math tight': function (buffer, m) { return mhchemParser.go(m, 'tex-math tight'); }, 'bond': function (buffer, m, k) { return { type_: 'bond', kind_: k || m }; }, 'color0-output': function (buffer, m) { return { type_: 'color0', color: m[0] }; }, 'ce': function (buffer, m) { return mhchemParser.go(m); }, '1/2': function (buffer, m) { /** @type {ParserOutput[]} */ var ret = []; if (m.match(/^[+\-]/)) { ret.push(m.substr(0, 1)); m = m.substr(1); } var n = m.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/); n[1] = n[1].replace(/\$/g, ""); ret.push({ type_: 'frac', p1: n[1], p2: n[2] }); if (n[3]) { n[3] = n[3].replace(/\$/g, ""); ret.push({ type_: 'tex-math', p1: n[3] }); } return ret; }, '9,9': function (buffer, m) { return mhchemParser.go(m, '9,9'); } }, // // createTransitions // convert { 'letter': { 'state': { action_: 'output' } } } to { 'state' => [ { pattern: 'letter', task: { action_: [{type_: 'output'}] } } ] } // with expansion of 'a|b' to 'a' and 'b' (at 2 places) // createTransitions: function (o) { var pattern, state; /** @type {string[]} */ var stateArray; var i; // // 1. Collect all states // /** @type {Transitions} */ var transitions = {}; for (pattern in o) { for (state in o[pattern]) { stateArray = state.split("|"); o[pattern][state].stateArray = stateArray; for (i=0; i': { '0|1|2|3': { action_: 'r=', nextState: 'r' }, 'a|as': { action_: [ 'output', 'r=' ], nextState: 'r' }, '*': { action_: [ 'output', 'r=' ], nextState: 'r' } }, '+': { 'o': { action_: 'd= kv', nextState: 'd' }, 'd|D': { action_: 'd=', nextState: 'd' }, 'q': { action_: 'd=', nextState: 'qd' }, 'qd|qD': { action_: 'd=', nextState: 'qd' }, 'dq': { action_: [ 'output', 'd=' ], nextState: 'd' }, '3': { action_: [ 'sb=false', 'output', 'operator' ], nextState: '0' } }, 'amount': { '0|2': { action_: 'a=', nextState: 'a' } }, 'pm-operator': { '0|1|2|a|as': { action_: [ 'sb=false', 'output', { type_: 'operator', option: '\\pm' } ], nextState: '0' } }, 'operator': { '0|1|2|a|as': { action_: [ 'sb=false', 'output', 'operator' ], nextState: '0' } }, '-$': { 'o|q': { action_: [ 'charge or bond', 'output' ], nextState: 'qd' }, 'd': { action_: 'd=', nextState: 'd' }, 'D': { action_: [ 'output', { type_: 'bond', option: "-" } ], nextState: '3' }, 'q': { action_: 'd=', nextState: 'qd' }, 'qd': { action_: 'd=', nextState: 'qd' }, 'qD|dq': { action_: [ 'output', { type_: 'bond', option: "-" } ], nextState: '3' } }, '-9': { '3|o': { action_: [ 'output', { type_: 'insert', option: 'hyphen' } ], nextState: '3' } }, '- orbital overlap': { 'o': { action_: [ 'output', { type_: 'insert', option: 'hyphen' } ], nextState: '2' }, 'd': { action_: [ 'output', { type_: 'insert', option: 'hyphen' } ], nextState: '2' } }, '-': { '0|1|2': { action_: [ { type_: 'output', option: 1 }, 'beginsWithBond=true', { type_: 'bond', option: "-" } ], nextState: '3' }, '3': { action_: { type_: 'bond', option: "-" } }, 'a': { action_: [ 'output', { type_: 'insert', option: 'hyphen' } ], nextState: '2' }, 'as': { action_: [ { type_: 'output', option: 2 }, { type_: 'bond', option: "-" } ], nextState: '3' }, 'b': { action_: 'b=' }, 'o': { action_: { type_: '- after o/d', option: false }, nextState: '2' }, 'q': { action_: { type_: '- after o/d', option: false }, nextState: '2' }, 'd|qd|dq': { action_: { type_: '- after o/d', option: true }, nextState: '2' }, 'D|qD|p': { action_: [ 'output', { type_: 'bond', option: "-" } ], nextState: '3' } }, 'amount2': { '1|3': { action_: 'a=', nextState: 'a' } }, 'letters': { '0|1|2|3|a|as|b|p|bp|o': { action_: 'o=', nextState: 'o' }, 'q|dq': { action_: ['output', 'o='], nextState: 'o' }, 'd|D|qd|qD': { action_: 'o after d', nextState: 'o' } }, 'digits': { 'o': { action_: 'q=', nextState: 'q' }, 'd|D': { action_: 'q=', nextState: 'dq' }, 'q': { action_: [ 'output', 'o=' ], nextState: 'o' }, 'a': { action_: 'o=', nextState: 'o' } }, 'space A': { 'b|p|bp': {} }, 'space': { 'a': { nextState: 'as' }, '0': { action_: 'sb=false' }, '1|2': { action_: 'sb=true' }, 'r|rt|rd|rdt|rdq': { action_: 'output', nextState: '0' }, '*': { action_: [ 'output', 'sb=true' ], nextState: '1'} }, '1st-level escape': { '1|2': { action_: [ 'output', { type_: 'insert+p1', option: '1st-level escape' } ] }, '*': { action_: [ 'output', { type_: 'insert+p1', option: '1st-level escape' } ], nextState: '0' } }, '[(...)]': { 'r|rt': { action_: 'rd=', nextState: 'rd' }, 'rd|rdt': { action_: 'rq=', nextState: 'rdq' } }, '...': { 'o|d|D|dq|qd|qD': { action_: [ 'output', { type_: 'bond', option: "..." } ], nextState: '3' }, '*': { action_: [ { type_: 'output', option: 1 }, { type_: 'insert', option: 'ellipsis' } ], nextState: '1' } }, '. |* ': { '*': { action_: [ 'output', { type_: 'insert', option: 'addition compound' } ], nextState: '1' } }, 'state of aggregation $': { '*': { action_: [ 'output', 'state of aggregation' ], nextState: '1' } }, '{[(': { 'a|as|o': { action_: [ 'o=', 'output', 'parenthesisLevel++' ], nextState: '2' }, '0|1|2|3': { action_: [ 'o=', 'output', 'parenthesisLevel++' ], nextState: '2' }, '*': { action_: [ 'output', 'o=', 'output', 'parenthesisLevel++' ], nextState: '2' } }, ')]}': { '0|1|2|3|b|p|bp|o': { action_: [ 'o=', 'parenthesisLevel--' ], nextState: 'o' }, 'a|as|d|D|q|qd|qD|dq': { action_: [ 'output', 'o=', 'parenthesisLevel--' ], nextState: 'o' } }, ', ': { '*': { action_: [ 'output', 'comma' ], nextState: '0' } }, '^_': { // ^ and _ without a sensible argument '*': { } }, '^{(...)}|^($...$)': { '0|1|2|as': { action_: 'b=', nextState: 'b' }, 'p': { action_: 'b=', nextState: 'bp' }, '3|o': { action_: 'd= kv', nextState: 'D' }, 'q': { action_: 'd=', nextState: 'qD' }, 'd|D|qd|qD|dq': { action_: [ 'output', 'd=' ], nextState: 'D' } }, '^a|^\\x{}{}|^\\x{}|^\\x|\'': { '0|1|2|as': { action_: 'b=', nextState: 'b' }, 'p': { action_: 'b=', nextState: 'bp' }, '3|o': { action_: 'd= kv', nextState: 'd' }, 'q': { action_: 'd=', nextState: 'qd' }, 'd|qd|D|qD': { action_: 'd=' }, 'dq': { action_: [ 'output', 'd=' ], nextState: 'd' } }, '_{(state of aggregation)}$': { 'd|D|q|qd|qD|dq': { action_: [ 'output', 'q=' ], nextState: 'q' } }, '_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x': { '0|1|2|as': { action_: 'p=', nextState: 'p' }, 'b': { action_: 'p=', nextState: 'bp' }, '3|o': { action_: 'q=', nextState: 'q' }, 'd|D': { action_: 'q=', nextState: 'dq' }, 'q|qd|qD|dq': { action_: [ 'output', 'q=' ], nextState: 'q' } }, '=<>': { '0|1|2|3|a|as|o|q|d|D|qd|qD|dq': { action_: [ { type_: 'output', option: 2 }, 'bond' ], nextState: '3' } }, '#': { '0|1|2|3|a|as|o': { action_: [ { type_: 'output', option: 2 }, { type_: 'bond', option: "#" } ], nextState: '3' } }, '{}': { '*': { action_: { type_: 'output', option: 1 }, nextState: '1' } }, '{...}': { '0|1|2|3|a|as|b|p|bp': { action_: 'o=', nextState: 'o' }, 'o|d|D|q|qd|qD|dq': { action_: [ 'output', 'o=' ], nextState: 'o' } }, '$...$': { 'a': { action_: 'a=' }, // 2$n$ '0|1|2|3|as|b|p|bp|o': { action_: 'o=', nextState: 'o' }, // not 'amount' 'as|o': { action_: 'o=' }, 'q|d|D|qd|qD|dq': { action_: [ 'output', 'o=' ], nextState: 'o' } }, '\\bond{(...)}': { '*': { action_: [ { type_: 'output', option: 2 }, 'bond' ], nextState: "3" } }, '\\frac{(...)}': { '*': { action_: [ { type_: 'output', option: 1 }, 'frac-output' ], nextState: '3' } }, '\\overset{(...)}': { '*': { action_: [ { type_: 'output', option: 2 }, 'overset-output' ], nextState: '3' } }, '\\underset{(...)}': { '*': { action_: [ { type_: 'output', option: 2 }, 'underset-output' ], nextState: '3' } }, '\\underbrace{(...)}': { '*': { action_: [ { type_: 'output', option: 2 }, 'underbrace-output' ], nextState: '3' } }, '\\color{(...)}{(...)}1|\\color(...){(...)}2': { '*': { action_: [ { type_: 'output', option: 2 }, 'color-output' ], nextState: '3' } }, '\\color{(...)}0': { '*': { action_: [ { type_: 'output', option: 2 }, 'color0-output' ] } }, '\\ce{(...)}': { '*': { action_: [ { type_: 'output', option: 2 }, 'ce' ], nextState: '3' } }, '\\,': { '*': { action_: [ { type_: 'output', option: 1 }, 'copy' ], nextState: '1' } }, '\\x{}{}|\\x{}|\\x': { '0|1|2|3|a|as|b|p|bp|o|c0': { action_: [ 'o=', 'output' ], nextState: '3' }, '*': { action_: ['output', 'o=', 'output' ], nextState: '3' } }, 'others': { '*': { action_: [ { type_: 'output', option: 1 }, 'copy' ], nextState: '3' } }, 'else2': { 'a': { action_: 'a to o', nextState: 'o', revisit: true }, 'as': { action_: [ 'output', 'sb=true' ], nextState: '1', revisit: true }, 'r|rt|rd|rdt|rdq': { action_: [ 'output' ], nextState: '0', revisit: true }, '*': { action_: [ 'output', 'copy' ], nextState: '3' } } }), actions: { 'o after d': function (buffer, m) { var ret; if ((buffer.d || "").match(/^[0-9]+$/)) { var tmp = buffer.d; buffer.d = undefined; ret = this['output'](buffer); buffer.b = tmp; } else { ret = this['output'](buffer); } mhchemParser.actions['o='](buffer, m); return ret; }, 'd= kv': function (buffer, m) { buffer.d = m; buffer.dType = 'kv'; }, 'charge or bond': function (buffer, m) { if (buffer['beginsWithBond']) { /** @type {ParserOutput[]} */ var ret = []; mhchemParser.concatArray(ret, this['output'](buffer)); mhchemParser.concatArray(ret, mhchemParser.actions['bond'](buffer, m, "-")); return ret; } else { buffer.d = m; } }, '- after o/d': function (buffer, m, isAfterD) { var c1 = mhchemParser.patterns.match_('orbital', buffer.o || ""); var c2 = mhchemParser.patterns.match_('one lowercase greek letter $', buffer.o || ""); var c3 = mhchemParser.patterns.match_('one lowercase latin letter $', buffer.o || ""); var c4 = mhchemParser.patterns.match_('$one lowercase latin letter$ $', buffer.o || ""); var hyphenFollows = m==="-" && ( c1 && c1.remainder==="" || c2 || c3 || c4 ); if (hyphenFollows && !buffer.a && !buffer.b && !buffer.p && !buffer.d && !buffer.q && !c1 && c3) { buffer.o = '$' + buffer.o + '$'; } /** @type {ParserOutput[]} */ var ret = []; if (hyphenFollows) { mhchemParser.concatArray(ret, this['output'](buffer)); ret.push({ type_: 'hyphen' }); } else { c1 = mhchemParser.patterns.match_('digits', buffer.d || ""); if (isAfterD && c1 && c1.remainder==='') { mhchemParser.concatArray(ret, mhchemParser.actions['d='](buffer, m)); mhchemParser.concatArray(ret, this['output'](buffer)); } else { mhchemParser.concatArray(ret, this['output'](buffer)); mhchemParser.concatArray(ret, mhchemParser.actions['bond'](buffer, m, "-")); } } return ret; }, 'a to o': function (buffer) { buffer.o = buffer.a; buffer.a = undefined; }, 'sb=true': function (buffer) { buffer.sb = true; }, 'sb=false': function (buffer) { buffer.sb = false; }, 'beginsWithBond=true': function (buffer) { buffer['beginsWithBond'] = true; }, 'beginsWithBond=false': function (buffer) { buffer['beginsWithBond'] = false; }, 'parenthesisLevel++': function (buffer) { buffer['parenthesisLevel']++; }, 'parenthesisLevel--': function (buffer) { buffer['parenthesisLevel']--; }, 'state of aggregation': function (buffer, m) { return { type_: 'state of aggregation', p1: mhchemParser.go(m, 'o') }; }, 'comma': function (buffer, m) { var a = m.replace(/\s*$/, ''); var withSpace = (a !== m); if (withSpace && buffer['parenthesisLevel'] === 0) { return { type_: 'comma enumeration L', p1: a }; } else { return { type_: 'comma enumeration M', p1: a }; } }, 'output': function (buffer, m, entityFollows) { // entityFollows: // undefined = if we have nothing else to output, also ignore the just read space (buffer.sb) // 1 = an entity follows, never omit the space if there was one just read before (can only apply to state 1) // 2 = 1 + the entity can have an amount, so output a\, instead of converting it to o (can only apply to states a|as) /** @type {ParserOutput | ParserOutput[]} */ var ret; if (!buffer.r) { ret = []; if (!buffer.a && !buffer.b && !buffer.p && !buffer.o && !buffer.q && !buffer.d && !entityFollows) { //ret = []; } else { if (buffer.sb) { ret.push({ type_: 'entitySkip' }); } if (!buffer.o && !buffer.q && !buffer.d && !buffer.b && !buffer.p && entityFollows!==2) { buffer.o = buffer.a; buffer.a = undefined; } else if (!buffer.o && !buffer.q && !buffer.d && (buffer.b || buffer.p)) { buffer.o = buffer.a; buffer.d = buffer.b; buffer.q = buffer.p; buffer.a = buffer.b = buffer.p = undefined; } else { if (buffer.o && buffer.dType==='kv' && mhchemParser.patterns.match_('d-oxidation$', buffer.d || "")) { buffer.dType = 'oxidation'; } else if (buffer.o && buffer.dType==='kv' && !buffer.q) { buffer.dType = undefined; } } ret.push({ type_: 'chemfive', a: mhchemParser.go(buffer.a, 'a'), b: mhchemParser.go(buffer.b, 'bd'), p: mhchemParser.go(buffer.p, 'pq'), o: mhchemParser.go(buffer.o, 'o'), q: mhchemParser.go(buffer.q, 'pq'), d: mhchemParser.go(buffer.d, (buffer.dType === 'oxidation' ? 'oxidation' : 'bd')), dType: buffer.dType }); } } else { // r /** @type {ParserOutput[]} */ var rd; if (buffer.rdt === 'M') { rd = mhchemParser.go(buffer.rd, 'tex-math'); } else if (buffer.rdt === 'T') { rd = [ { type_: 'text', p1: buffer.rd || "" } ]; } else { rd = mhchemParser.go(buffer.rd); } /** @type {ParserOutput[]} */ var rq; if (buffer.rqt === 'M') { rq = mhchemParser.go(buffer.rq, 'tex-math'); } else if (buffer.rqt === 'T') { rq = [ { type_: 'text', p1: buffer.rq || ""} ]; } else { rq = mhchemParser.go(buffer.rq); } ret = { type_: 'arrow', r: buffer.r, rd: rd, rq: rq }; } for (var p in buffer) { if (p !== 'parenthesisLevel' && p !== 'beginsWithBond') { delete buffer[p]; } } return ret; }, 'oxidation-output': function (buffer, m) { var ret = [ "{" ]; mhchemParser.concatArray(ret, mhchemParser.go(m, 'oxidation')); ret.push("}"); return ret; }, 'frac-output': function (buffer, m) { return { type_: 'frac-ce', p1: mhchemParser.go(m[0]), p2: mhchemParser.go(m[1]) }; }, 'overset-output': function (buffer, m) { return { type_: 'overset', p1: mhchemParser.go(m[0]), p2: mhchemParser.go(m[1]) }; }, 'underset-output': function (buffer, m) { return { type_: 'underset', p1: mhchemParser.go(m[0]), p2: mhchemParser.go(m[1]) }; }, 'underbrace-output': function (buffer, m) { return { type_: 'underbrace', p1: mhchemParser.go(m[0]), p2: mhchemParser.go(m[1]) }; }, 'color-output': function (buffer, m) { return { type_: 'color', color1: m[0], color2: mhchemParser.go(m[1]) }; }, 'r=': function (buffer, m) { buffer.r = m; }, 'rdt=': function (buffer, m) { buffer.rdt = m; }, 'rd=': function (buffer, m) { buffer.rd = m; }, 'rqt=': function (buffer, m) { buffer.rqt = m; }, 'rq=': function (buffer, m) { buffer.rq = m; }, 'operator': function (buffer, m, p1) { return { type_: 'operator', kind_: (p1 || m) }; } } }, 'a': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, '1/2$': { '0': { action_: '1/2' } }, 'else': { '0': { nextState: '1', revisit: true } }, '$(...)$': { '*': { action_: 'tex-math tight', nextState: '1' } }, ',': { '*': { action_: { type_: 'insert', option: 'commaDecimal' } } }, 'else2': { '*': { action_: 'copy' } } }), actions: {} }, 'o': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, '1/2$': { '0': { action_: '1/2' } }, 'else': { '0': { nextState: '1', revisit: true } }, 'letters': { '*': { action_: 'rm' } }, '\\ca': { '*': { action_: { type_: 'insert', option: 'circa' } } }, '\\x{}{}|\\x{}|\\x': { '*': { action_: 'copy' } }, '${(...)}$|$(...)$': { '*': { action_: 'tex-math' } }, '{(...)}': { '*': { action_: '{text}' } }, 'else2': { '*': { action_: 'copy' } } }), actions: {} }, 'text': { transitions: mhchemParser.createTransitions({ 'empty': { '*': { action_: 'output' } }, '{...}': { '*': { action_: 'text=' } }, '${(...)}$|$(...)$': { '*': { action_: 'tex-math' } }, '\\greek': { '*': { action_: [ 'output', 'rm' ] } }, '\\,|\\x{}{}|\\x{}|\\x': { '*': { action_: [ 'output', 'copy' ] } }, 'else': { '*': { action_: 'text=' } } }), actions: { 'output': function (buffer) { if (buffer.text_) { /** @type {ParserOutput} */ var ret = { type_: 'text', p1: buffer.text_ }; for (var p in buffer) { delete buffer[p]; } return ret; } } } }, 'pq': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, 'state of aggregation $': { '*': { action_: 'state of aggregation' } }, 'i$': { '0': { nextState: '!f', revisit: true } }, '(KV letters),': { '0': { action_: 'rm', nextState: '0' } }, 'formula$': { '0': { nextState: 'f', revisit: true } }, '1/2$': { '0': { action_: '1/2' } }, 'else': { '0': { nextState: '!f', revisit: true } }, '${(...)}$|$(...)$': { '*': { action_: 'tex-math' } }, '{(...)}': { '*': { action_: 'text' } }, 'a-z': { 'f': { action_: 'tex-math' } }, 'letters': { '*': { action_: 'rm' } }, '-9.,9': { '*': { action_: '9,9' } }, ',': { '*': { action_: { type_: 'insert+p1', option: 'comma enumeration S' } } }, '\\color{(...)}{(...)}1|\\color(...){(...)}2': { '*': { action_: 'color-output' } }, '\\color{(...)}0': { '*': { action_: 'color0-output' } }, '\\ce{(...)}': { '*': { action_: 'ce' } }, '\\,|\\x{}{}|\\x{}|\\x': { '*': { action_: 'copy' } }, 'else2': { '*': { action_: 'copy' } } }), actions: { 'state of aggregation': function (buffer, m) { return { type_: 'state of aggregation subscript', p1: mhchemParser.go(m, 'o') }; }, 'color-output': function (buffer, m) { return { type_: 'color', color1: m[0], color2: mhchemParser.go(m[1], 'pq') }; } } }, 'bd': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, 'x$': { '0': { nextState: '!f', revisit: true } }, 'formula$': { '0': { nextState: 'f', revisit: true } }, 'else': { '0': { nextState: '!f', revisit: true } }, '-9.,9 no missing 0': { '*': { action_: '9,9' } }, '.': { '*': { action_: { type_: 'insert', option: 'electron dot' } } }, 'a-z': { 'f': { action_: 'tex-math' } }, 'x': { '*': { action_: { type_: 'insert', option: 'KV x' } } }, 'letters': { '*': { action_: 'rm' } }, '\'': { '*': { action_: { type_: 'insert', option: 'prime' } } }, '${(...)}$|$(...)$': { '*': { action_: 'tex-math' } }, '{(...)}': { '*': { action_: 'text' } }, '\\color{(...)}{(...)}1|\\color(...){(...)}2': { '*': { action_: 'color-output' } }, '\\color{(...)}0': { '*': { action_: 'color0-output' } }, '\\ce{(...)}': { '*': { action_: 'ce' } }, '\\,|\\x{}{}|\\x{}|\\x': { '*': { action_: 'copy' } }, 'else2': { '*': { action_: 'copy' } } }), actions: { 'color-output': function (buffer, m) { return { type_: 'color', color1: m[0], color2: mhchemParser.go(m[1], 'bd') }; } } }, 'oxidation': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, 'roman numeral': { '*': { action_: 'roman-numeral' } }, '${(...)}$|$(...)$': { '*': { action_: 'tex-math' } }, 'else': { '*': { action_: 'copy' } } }), actions: { 'roman-numeral': function (buffer, m) { return { type_: 'roman numeral', p1: m || "" }; } } }, 'tex-math': { transitions: mhchemParser.createTransitions({ 'empty': { '*': { action_: 'output' } }, '\\ce{(...)}': { '*': { action_: [ 'output', 'ce' ] } }, '{...}|\\,|\\x{}{}|\\x{}|\\x': { '*': { action_: 'o=' } }, 'else': { '*': { action_: 'o=' } } }), actions: { 'output': function (buffer) { if (buffer.o) { /** @type {ParserOutput} */ var ret = { type_: 'tex-math', p1: buffer.o }; for (var p in buffer) { delete buffer[p]; } return ret; } } } }, 'tex-math tight': { transitions: mhchemParser.createTransitions({ 'empty': { '*': { action_: 'output' } }, '\\ce{(...)}': { '*': { action_: [ 'output', 'ce' ] } }, '{...}|\\,|\\x{}{}|\\x{}|\\x': { '*': { action_: 'o=' } }, '-|+': { '*': { action_: 'tight operator' } }, 'else': { '*': { action_: 'o=' } } }), actions: { 'tight operator': function (buffer, m) { buffer.o = (buffer.o || "") + "{"+m+"}"; }, 'output': function (buffer) { if (buffer.o) { /** @type {ParserOutput} */ var ret = { type_: 'tex-math', p1: buffer.o }; for (var p in buffer) { delete buffer[p]; } return ret; } } } }, '9,9': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, ',': { '*': { action_: 'comma' } }, 'else': { '*': { action_: 'copy' } } }), actions: { 'comma': function () { return { type_: 'commaDecimal' }; } } }, //#endregion // // \pu state machines // //#region pu 'pu': { transitions: mhchemParser.createTransitions({ 'empty': { '*': { action_: 'output' } }, 'space$': { '*': { action_: [ 'output', 'space' ] } }, '{[(|)]}': { '0|a': { action_: 'copy' } }, '(-)(9)^(-9)': { '0': { action_: 'number^', nextState: 'a' } }, '(-)(9.,9)(e)(99)': { '0': { action_: 'enumber', nextState: 'a' } }, 'space': { '0|a': {} }, 'pm-operator': { '0|a': { action_: { type_: 'operator', option: '\\pm' }, nextState: '0' } }, 'operator': { '0|a': { action_: 'copy', nextState: '0' } }, '//': { 'd': { action_: 'o=', nextState: '/' } }, '/': { 'd': { action_: 'o=', nextState: '/' } }, '{...}|else': { '0|d': { action_: 'd=', nextState: 'd' }, 'a': { action_: [ 'space', 'd=' ], nextState: 'd' }, '/|q': { action_: 'q=', nextState: 'q' } } }), actions: { 'enumber': function (buffer, m) { /** @type {ParserOutput[]} */ var ret = []; if (m[0] === "+-" || m[0] === "+/-") { ret.push("\\pm "); } else if (m[0]) { ret.push(m[0]); } if (m[1]) { mhchemParser.concatArray(ret, mhchemParser.go(m[1], 'pu-9,9')); if (m[2]) { if (m[2].match(/[,.]/)) { mhchemParser.concatArray(ret, mhchemParser.go(m[2], 'pu-9,9')); } else { ret.push(m[2]); } } m[3] = m[4] || m[3]; if (m[3]) { m[3] = m[3].trim(); if (m[3] === "e" || m[3].substr(0, 1) === "*") { ret.push({ type_: 'cdot' }); } else { ret.push({ type_: 'times' }); } } } if (m[3]) { ret.push("10^{"+m[5]+"}"); } return ret; }, 'number^': function (buffer, m) { /** @type {ParserOutput[]} */ var ret = []; if (m[0] === "+-" || m[0] === "+/-") { ret.push("\\pm "); } else if (m[0]) { ret.push(m[0]); } mhchemParser.concatArray(ret, mhchemParser.go(m[1], 'pu-9,9')); ret.push("^{"+m[2]+"}"); return ret; }, 'operator': function (buffer, m, p1) { return { type_: 'operator', kind_: (p1 || m) }; }, 'space': function () { return { type_: 'pu-space-1' }; }, 'output': function (buffer) { /** @type {ParserOutput | ParserOutput[]} */ var ret; var md = mhchemParser.patterns.match_('{(...)}', buffer.d || ""); if (md && md.remainder === '') { buffer.d = md.match_; } var mq = mhchemParser.patterns.match_('{(...)}', buffer.q || ""); if (mq && mq.remainder === '') { buffer.q = mq.match_; } if (buffer.d) { buffer.d = buffer.d.replace(/\u00B0C|\^oC|\^{o}C/g, "{}^{\\circ}C"); buffer.d = buffer.d.replace(/\u00B0F|\^oF|\^{o}F/g, "{}^{\\circ}F"); } if (buffer.q) { // fraction buffer.q = buffer.q.replace(/\u00B0C|\^oC|\^{o}C/g, "{}^{\\circ}C"); buffer.q = buffer.q.replace(/\u00B0F|\^oF|\^{o}F/g, "{}^{\\circ}F"); var b5 = { d: mhchemParser.go(buffer.d, 'pu'), q: mhchemParser.go(buffer.q, 'pu') }; if (buffer.o === '//') { ret = { type_: 'pu-frac', p1: b5.d, p2: b5.q }; } else { ret = b5.d; if (b5.d.length > 1 || b5.q.length > 1) { ret.push({ type_: ' / ' }); } else { ret.push({ type_: '/' }); } mhchemParser.concatArray(ret, b5.q); } } else { // no fraction ret = mhchemParser.go(buffer.d, 'pu-2'); } for (var p in buffer) { delete buffer[p]; } return ret; } } }, 'pu-2': { transitions: mhchemParser.createTransitions({ 'empty': { '*': { action_: 'output' } }, '*': { '*': { action_: [ 'output', 'cdot' ], nextState: '0' } }, '\\x': { '*': { action_: 'rm=' } }, 'space': { '*': { action_: [ 'output', 'space' ], nextState: '0' } }, '^{(...)}|^(-1)': { '1': { action_: '^(-1)' } }, '-9.,9': { '0': { action_: 'rm=', nextState: '0' }, '1': { action_: '^(-1)', nextState: '0' } }, '{...}|else': { '*': { action_: 'rm=', nextState: '1' } } }), actions: { 'cdot': function () { return { type_: 'tight cdot' }; }, '^(-1)': function (buffer, m) { buffer.rm += "^{"+m+"}"; }, 'space': function () { return { type_: 'pu-space-2' }; }, 'output': function (buffer) { /** @type {ParserOutput | ParserOutput[]} */ var ret = []; if (buffer.rm) { var mrm = mhchemParser.patterns.match_('{(...)}', buffer.rm || ""); if (mrm && mrm.remainder === '') { ret = mhchemParser.go(mrm.match_, 'pu'); } else { ret = { type_: 'rm', p1: buffer.rm }; } } for (var p in buffer) { delete buffer[p]; } return ret; } } }, 'pu-9,9': { transitions: mhchemParser.createTransitions({ 'empty': { '0': { action_: 'output-0' }, 'o': { action_: 'output-o' } }, ',': { '0': { action_: [ 'output-0', 'comma' ], nextState: 'o' } }, '.': { '0': { action_: [ 'output-0', 'copy' ], nextState: 'o' } }, 'else': { '*': { action_: 'text=' } } }), actions: { 'comma': function () { return { type_: 'commaDecimal' }; }, 'output-0': function (buffer) { /** @type {ParserOutput[]} */ var ret = []; buffer.text_ = buffer.text_ || ""; if (buffer.text_.length > 4) { var a = buffer.text_.length % 3; if (a === 0) { a = 3; } for (var i=buffer.text_.length-3; i>0; i-=3) { ret.push(buffer.text_.substr(i, 3)); ret.push({ type_: '1000 separator' }); } ret.push(buffer.text_.substr(0, a)); ret.reverse(); } else { ret.push(buffer.text_); } for (var p in buffer) { delete buffer[p]; } return ret; }, 'output-o': function (buffer) { /** @type {ParserOutput[]} */ var ret = []; buffer.text_ = buffer.text_ || ""; if (buffer.text_.length > 4) { var a = buffer.text_.length - 3; for (var i=0; i" || buf.r === "<=>>" || buf.r === "<<=>" || buf.r === "<-->") { // arrows that cannot stretch correctly yet, https://github.com/mathjax/MathJax/issues/1491 arrow = "\\long"+arrow; if (b6.rd) { arrow = "\\overset{"+b6.rd+"}{"+arrow+"}"; } if (b6.rq) { arrow = "\\underset{\\lower7mu{"+b6.rq+"}}{"+arrow+"}"; } arrow = " {}\\mathrel{"+arrow+"}{} "; } else { if (b6.rq) { arrow += "[{"+b6.rq+"}]"; } arrow += "{"+b6.rd+"}"; arrow = " {}\\mathrel{\\x"+arrow+"}{} "; } } else { arrow = " {}\\mathrel{\\long"+arrow+"}{} "; } res = arrow; break; case 'operator': res = texify._getOperator(buf.kind_); break; case '1st-level escape': res = buf.p1+" "; // &, \\\\, \\hlin break; case 'space': res = " "; break; case 'entitySkip': res = "~"; break; case 'pu-space-1': res = "~"; break; case 'pu-space-2': res = "\\mkern3mu "; break; case '1000 separator': res = "\\mkern2mu "; break; case 'commaDecimal': res = "{,}"; break; case 'comma enumeration L': res = "{"+buf.p1+"}\\mkern6mu "; break; case 'comma enumeration M': res = "{"+buf.p1+"}\\mkern3mu "; break; case 'comma enumeration S': res = "{"+buf.p1+"}\\mkern1mu "; break; case 'hyphen': res = "\\text{-}"; break; case 'addition compound': res = "\\,{\\cdot}\\,"; break; case 'electron dot': res = "\\mkern1mu \\bullet\\mkern1mu "; break; case 'KV x': res = "{\\times}"; break; case 'prime': res = "\\prime "; break; case 'cdot': res = "\\cdot "; break; case 'tight cdot': res = "\\mkern1mu{\\cdot}\\mkern1mu "; break; case 'times': res = "\\times "; break; case 'circa': res = "{\\sim}"; break; case '^': res = "uparrow"; break; case 'v': res = "downarrow"; break; case 'ellipsis': res = "\\ldots "; break; case '/': res = "/"; break; case ' / ': res = "\\,/\\,"; break; default: assertNever(buf); throw ["MhchemBugT", "mhchem bug T. Please report."]; // Missing texify rule or unknown MhchemParser output } assertString(res); return res; }, _getArrow: function (a) { switch (a) { case "->": return "rightarrow"; case "\u2192": return "rightarrow"; case "\u27F6": return "rightarrow"; case "<-": return "leftarrow"; case "<->": return "leftrightarrow"; case "<-->": return "leftrightarrows"; case "<=>": return "rightleftharpoons"; case "\u21CC": return "rightleftharpoons"; case "<=>>": return "Rightleftharpoons"; case "<<=>": return "Leftrightharpoons"; default: assertNever(a); throw ["MhchemBugT", "mhchem bug T. Please report."]; } }, _getBond: function (a) { switch (a) { case "-": return "{-}"; case "1": return "{-}"; case "=": return "{=}"; case "2": return "{=}"; case "#": return "{\\equiv}"; case "3": return "{\\equiv}"; case "~": return "{\\tripledash}"; case "~-": return "{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}"; case "~=": return "{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}"; case "~--": return "{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}"; case "-~-": return "{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}"; case "...": return "{{\\cdot}{\\cdot}{\\cdot}}"; case "....": return "{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}"; case "->": return "{\\rightarrow}"; case "<-": return "{\\leftarrow}"; case "<": return "{<}"; case ">": return "{>}"; default: assertNever(a); throw ["MhchemBugT", "mhchem bug T. Please report."]; } }, _getOperator: function (a) { switch (a) { case "+": return " {}+{} "; case "-": return " {}-{} "; case "=": return " {}={} "; case "<": return " {}<{} "; case ">": return " {}>{} "; case "<<": return " {}\\ll{} "; case ">>": return " {}\\gg{} "; case "\\pm": return " {}\\pm{} "; case "\\approx": return " {}\\approx{} "; case "$\\approx$": return " {}\\approx{} "; case "v": return " \\downarrow{} "; case "(v)": return " \\downarrow{} "; case "^": return " \\uparrow{} "; case "(^)": return " \\uparrow{} "; default: assertNever(a); throw ["MhchemBugT", "mhchem bug T. Please report."]; } } }; // // Helpers for code anaylsis // Will show type error at calling position // /** @param {number} a */ function assertNever(a) {} /** @param {string} a */ function assertString(a) {} exports.mhchemParser = mhchemParser; exports.texify = texify; exports.assertNever = assertNever; exports.assertString = assertString; /***/ }), /* 8 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/mhchem/MhchemConfiguration.js var MhchemConfiguration = __webpack_require__(1); // CONCATENATED MODULE: ./lib/mhchem.js Object(global["combineWithMathJax"])({ _: { input: { tex: { mhchem: { MhchemConfiguration: MhchemConfiguration } } } } }); // CONCATENATED MODULE: ./mhchem.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/bbox.js0000644000176200001440000002121414005301544022431 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 5); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BboxConfiguration = exports.BboxMethods = void 0; var Configuration_js_1 = __webpack_require__(2); var SymbolMap_js_1 = __webpack_require__(3); var TexError_js_1 = __webpack_require__(4); exports.BboxMethods = {}; exports.BboxMethods.BBox = function (parser, name) { var bbox = parser.GetBrackets(name, ''); var math = parser.ParseArg(name); var parts = bbox.split(/,/); var def, background, style; for (var i = 0, m = parts.length; i < m; i++) { var part = parts[i].trim(); var match = part.match(/^(\.\d+|\d+(\.\d*)?)(pt|em|ex|mu|px|in|cm|mm)$/); if (match) { if (def) { throw new TexError_js_1.default('MultipleBBoxProperty', '%1 specified twice in %2', 'Padding', name); } var pad = BBoxPadding(match[1] + match[3]); if (pad) { def = { height: '+' + pad, depth: '+' + pad, lspace: pad, width: '+' + (2 * parseInt(match[1], 10)) + match[3] }; } } else if (part.match(/^([a-z0-9]+|\#[0-9a-f]{6}|\#[0-9a-f]{3})$/i)) { if (background) { throw new TexError_js_1.default('MultipleBBoxProperty', '%1 specified twice in %2', 'Background', name); } background = part; } else if (part.match(/^[-a-z]+:/i)) { if (style) { throw new TexError_js_1.default('MultipleBBoxProperty', '%1 specified twice in %2', 'Style', name); } style = BBoxStyle(part); } else if (part !== '') { throw new TexError_js_1.default('InvalidBBoxProperty', '"%1" doesn\'t look like a color, a padding dimension, or a style', part); } } if (def) { math = parser.create('node', 'mpadded', [math], def); } if (background || style) { def = {}; if (background) { Object.assign(def, { mathbackground: background }); } if (style) { Object.assign(def, { style: style }); } math = parser.create('node', 'mstyle', [math], def); } parser.Push(math); }; var BBoxStyle = function (styles) { return styles; }; var BBoxPadding = function (pad) { return pad; }; new SymbolMap_js_1.CommandMap('bbox', { bbox: 'BBox' }, exports.BboxMethods); exports.BboxConfiguration = Configuration_js_1.Configuration.create('bbox', { handler: { macro: ['bbox'] } }); //# sourceMappingURL=BboxConfiguration.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexError["default"]; /***/ }), /* 5 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/bbox/BboxConfiguration.js var BboxConfiguration = __webpack_require__(1); // CONCATENATED MODULE: ./lib/bbox.js Object(global["combineWithMathJax"])({ _: { input: { tex: { bbox: { BboxConfiguration: BboxConfiguration } } } } }); // CONCATENATED MODULE: ./bbox.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/all-packages.js0000644000176200001440000102672114005301544024034 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 78); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexError["default"]; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseUtil["default"]; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.NodeUtil["default"]; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexParser["default"]; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.TexConstant = MathJax._.input.tex.TexConstants.TexConstant; /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.TEXCLASS = MathJax._.core.MmlTree.MmlNode.TEXCLASS; exports.TEXCLASSNAMES = MathJax._.core.MmlTree.MmlNode.TEXCLASSNAMES; exports.indentAttributes = MathJax._.core.MmlTree.MmlNode.indentAttributes; exports.AbstractMmlNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlNode; exports.AbstractMmlTokenNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlTokenNode; exports.AbstractMmlLayoutNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlLayoutNode; exports.AbstractMmlBaseNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlBaseNode; exports.AbstractMmlEmptyNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlEmptyNode; exports.TextNode = MathJax._.core.MmlTree.MmlNode.TextNode; exports.XMLNode = MathJax._.core.MmlTree.MmlNode.XMLNode; /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.base.BaseMethods["default"]; /***/ }), /* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseMethods["default"]; /***/ }), /* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.APPEND = MathJax._.util.Options.APPEND; exports.REMOVE = MathJax._.util.Options.REMOVE; exports.Expandable = MathJax._.util.Options.Expandable; exports.expandable = MathJax._.util.Options.expandable; exports.makeArray = MathJax._.util.Options.makeArray; exports.keys = MathJax._.util.Options.keys; exports.copy = MathJax._.util.Options.copy; exports.insert = MathJax._.util.Options.insert; exports.defaultOptions = MathJax._.util.Options.defaultOptions; exports.userOptions = MathJax._.util.Options.userOptions; exports.selectOptions = MathJax._.util.Options.selectOptions; exports.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys; exports.separateOptions = MathJax._.util.Options.separateOptions; /***/ }), /* 11 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NEW_OPS = exports.AmsMethods = void 0; var ParseUtil_js_1 = __webpack_require__(3); var NodeUtil_js_1 = __webpack_require__(4); var TexConstants_js_1 = __webpack_require__(6); var TexParser_js_1 = __webpack_require__(5); var TexError_js_1 = __webpack_require__(2); var Symbol_js_1 = __webpack_require__(12); var BaseMethods_js_1 = __webpack_require__(8); var MmlNode_js_1 = __webpack_require__(7); exports.AmsMethods = {}; exports.AmsMethods.AmsEqnArray = function (parser, begin, numbered, taggable, align, spacing, style) { var args = parser.GetBrackets('\\begin{' + begin.getName() + '}'); var array = BaseMethods_js_1.default.EqnArray(parser, begin, numbered, taggable, align, spacing, style); return ParseUtil_js_1.default.setArrayAlign(array, args); }; exports.AmsMethods.AlignAt = function (parser, begin, numbered, taggable) { var name = begin.getName(); var n, valign, align = '', spacing = []; if (!taggable) { valign = parser.GetBrackets('\\begin{' + name + '}'); } n = parser.GetArgument('\\begin{' + name + '}'); if (n.match(/[^0-9]/)) { throw new TexError_js_1.default('PositiveIntegerArg', 'Argument to %1 must me a positive integer', '\\begin{' + name + '}'); } var count = parseInt(n, 10); while (count > 0) { align += 'rl'; spacing.push('0em 0em'); count--; } var spaceStr = spacing.join(' '); if (taggable) { return exports.AmsMethods.EqnArray(parser, begin, numbered, taggable, align, spaceStr); } var array = exports.AmsMethods.EqnArray(parser, begin, numbered, taggable, align, spaceStr); return ParseUtil_js_1.default.setArrayAlign(array, valign); }; exports.AmsMethods.Multline = function (parser, begin, numbered) { parser.Push(begin); ParseUtil_js_1.default.checkEqnEnv(parser); var item = parser.itemFactory.create('multline', numbered, parser.stack); item.arraydef = { displaystyle: true, rowspacing: '.5em', columnwidth: '100%', width: parser.options['multlineWidth'], side: parser.options['tagSide'], minlabelspacing: parser.options['tagIndent'] }; return item; }; exports.NEW_OPS = 'ams-declare-ops'; exports.AmsMethods.HandleDeclareOp = function (parser, name) { var limits = (parser.GetStar() ? '' : '\\nolimits\\SkipLimits'); var cs = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); if (cs.charAt(0) === '\\') { cs = cs.substr(1); } var op = parser.GetArgument(name); if (!op.match(/\\text/)) { op = op.replace(/\*/g, '\\text{*}').replace(/-/g, '\\text{-}'); } parser.configuration.handlers.retrieve(exports.NEW_OPS). add(cs, new Symbol_js_1.Macro(cs, exports.AmsMethods.Macro, ['\\mathop{\\rm ' + op + '}' + limits])); }; exports.AmsMethods.HandleOperatorName = function (parser, name) { var limits = (parser.GetStar() ? '' : '\\nolimits\\SkipLimits'); var op = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); if (!op.match(/\\text/)) { op = op.replace(/\*/g, '\\text{*}').replace(/-/g, '\\text{-}'); } parser.string = '\\mathop{\\rm ' + op + '}' + limits + ' ' + parser.string.slice(parser.i); parser.i = 0; }; exports.AmsMethods.SkipLimits = function (parser, _name) { var c = parser.GetNext(), i = parser.i; if (c === '\\' && ++parser.i && parser.GetCS() !== 'limits') { parser.i = i; } }; exports.AmsMethods.MultiIntegral = function (parser, name, integral) { var next = parser.GetNext(); if (next === '\\') { var i = parser.i; next = parser.GetArgument(name); parser.i = i; if (next === '\\limits') { if (name === '\\idotsint') { integral = '\\!\\!\\mathop{\\,\\,' + integral + '}'; } else { integral = '\\!\\!\\!\\mathop{\\,\\,\\,' + integral + '}'; } } } parser.string = integral + ' ' + parser.string.slice(parser.i); parser.i = 0; }; exports.AmsMethods.xArrow = function (parser, name, chr, l, r) { var def = { width: '+' + ParseUtil_js_1.default.Em((l + r) / 18), lspace: ParseUtil_js_1.default.Em(l / 18) }; var bot = parser.GetBrackets(name); var first = parser.ParseArg(name); var arrow = parser.create('token', 'mo', { stretchy: true, texClass: MmlNode_js_1.TEXCLASS.REL }, String.fromCodePoint(chr)); var mml = parser.create('node', 'munderover', [arrow]); var mpadded = parser.create('node', 'mpadded', [first], def); NodeUtil_js_1.default.setAttribute(mpadded, 'voffset', '.15em'); NodeUtil_js_1.default.setChild(mml, mml.over, mpadded); if (bot) { var bottom = new TexParser_js_1.default(bot, parser.stack.env, parser.configuration).mml(); mpadded = parser.create('node', 'mpadded', [bottom], def); NodeUtil_js_1.default.setAttribute(mpadded, 'voffset', '-.24em'); NodeUtil_js_1.default.setChild(mml, mml.under, mpadded); } NodeUtil_js_1.default.setProperty(mml, 'subsupOK', true); parser.Push(mml); }; exports.AmsMethods.HandleShove = function (parser, _name, shove) { var top = parser.stack.Top(); if (top.kind !== 'multline') { throw new TexError_js_1.default('CommandOnlyAllowedInEnv', '%1 only allowed in %2 environment', parser.currentCS, 'multline'); } if (top.Size()) { throw new TexError_js_1.default('CommandAtTheBeginingOfLine', '%1 must come at the beginning of the line', parser.currentCS); } top.setProperty('shove', shove); }; exports.AmsMethods.CFrac = function (parser, name) { var lr = ParseUtil_js_1.default.trimSpaces(parser.GetBrackets(name, '')); var num = parser.GetArgument(name); var den = parser.GetArgument(name); var lrMap = { l: TexConstants_js_1.TexConstant.Align.LEFT, r: TexConstants_js_1.TexConstant.Align.RIGHT, '': '' }; var numNode = new TexParser_js_1.default('\\strut\\textstyle{' + num + '}', parser.stack.env, parser.configuration).mml(); var denNode = new TexParser_js_1.default('\\strut\\textstyle{' + den + '}', parser.stack.env, parser.configuration).mml(); var frac = parser.create('node', 'mfrac', [numNode, denNode]); lr = lrMap[lr]; if (lr == null) { throw new TexError_js_1.default('IllegalAlign', 'Illegal alignment specified in %1', parser.currentCS); } if (lr) { NodeUtil_js_1.default.setProperties(frac, { numalign: lr, denomalign: lr }); } parser.Push(frac); }; exports.AmsMethods.Genfrac = function (parser, name, left, right, thick, style) { if (left == null) { left = parser.GetDelimiterArg(name); } if (right == null) { right = parser.GetDelimiterArg(name); } if (thick == null) { thick = parser.GetArgument(name); } if (style == null) { style = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); } var num = parser.ParseArg(name); var den = parser.ParseArg(name); var frac = parser.create('node', 'mfrac', [num, den]); if (thick !== '') { NodeUtil_js_1.default.setAttribute(frac, 'linethickness', thick); } if (left || right) { NodeUtil_js_1.default.setProperty(frac, 'withDelims', true); frac = ParseUtil_js_1.default.fixedFence(parser.configuration, left, frac, right); } if (style !== '') { var styleDigit = parseInt(style, 10); var styleAlpha = ['D', 'T', 'S', 'SS'][styleDigit]; if (styleAlpha == null) { throw new TexError_js_1.default('BadMathStyleFor', 'Bad math style for %1', parser.currentCS); } frac = parser.create('node', 'mstyle', [frac]); if (styleAlpha === 'D') { NodeUtil_js_1.default.setProperties(frac, { displaystyle: true, scriptlevel: 0 }); } else { NodeUtil_js_1.default.setProperties(frac, { displaystyle: false, scriptlevel: styleDigit - 1 }); } } parser.Push(frac); }; exports.AmsMethods.HandleTag = function (parser, name) { if (!parser.tags.currentTag.taggable && parser.tags.env) { throw new TexError_js_1.default('CommandNotAllowedInEnv', '%1 not allowed in %2 environment', parser.currentCS, parser.tags.env); } if (parser.tags.currentTag.tag) { throw new TexError_js_1.default('MultipleCommand', 'Multiple %1', parser.currentCS); } var star = parser.GetStar(); var tagId = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); parser.tags.tag(tagId, star); }; exports.AmsMethods.HandleNoTag = BaseMethods_js_1.default.HandleNoTag; exports.AmsMethods.HandleRef = BaseMethods_js_1.default.HandleRef; exports.AmsMethods.Macro = BaseMethods_js_1.default.Macro; exports.AmsMethods.Accent = BaseMethods_js_1.default.Accent; exports.AmsMethods.Tilde = BaseMethods_js_1.default.Tilde; exports.AmsMethods.Array = BaseMethods_js_1.default.Array; exports.AmsMethods.Spacer = BaseMethods_js_1.default.Spacer; exports.AmsMethods.NamedOp = BaseMethods_js_1.default.NamedOp; exports.AmsMethods.EqnArray = BaseMethods_js_1.default.EqnArray; //# sourceMappingURL=AmsMethods.js.map /***/ }), /* 12 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Symbol = MathJax._.input.tex.Symbol.Symbol; exports.Macro = MathJax._.input.tex.Symbol.Macro; /***/ }), /* 13 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlStack = MathJax._.input.tex.StackItem.MmlStack; exports.BaseItem = MathJax._.input.tex.StackItem.BaseItem; /***/ }), /* 14 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.RequireConfiguration = exports.options = exports.RequireMethods = exports.RequireLoad = void 0; var Configuration_js_1 = __webpack_require__(0); var SymbolMap_js_1 = __webpack_require__(1); var TexError_js_1 = __webpack_require__(2); var global_js_1 = __webpack_require__(20); var package_js_1 = __webpack_require__(28); var loader_js_1 = __webpack_require__(76); var mathjax_js_1 = __webpack_require__(77); var Options_js_1 = __webpack_require__(10); var MJCONFIG = global_js_1.MathJax.config; function RegisterExtension(jax, name) { var _a; var require = jax.parseOptions.options.require; var required = jax.parseOptions.packageData.get('require').required; var extension = name.substr(require.prefix.length); if (required.indexOf(extension) < 0) { required.push(extension); RegisterDependencies(jax, loader_js_1.CONFIG.dependencies[name]); var handler = Configuration_js_1.ConfigurationHandler.get(extension); if (handler) { var options_1 = MJCONFIG[name] || {}; if (handler.options && Object.keys(handler.options).length === 1 && handler.options[extension]) { options_1 = (_a = {}, _a[extension] = options_1, _a); } jax.configuration.add(handler, jax, options_1); var configured = jax.parseOptions.packageData.get('require').configured; if (handler.preprocessors.length && !configured.has(extension)) { configured.set(extension, true); mathjax_js_1.mathjax.retryAfter(Promise.resolve()); } } } } function RegisterDependencies(jax, names) { var e_1, _a; if (names === void 0) { names = []; } var prefix = jax.parseOptions.options.require.prefix; try { for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) { var name_1 = names_1_1.value; if (name_1.substr(0, prefix.length) === prefix) { RegisterExtension(jax, name_1); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (names_1_1 && !names_1_1.done && (_a = names_1.return)) _a.call(names_1); } finally { if (e_1) throw e_1.error; } } } function RequireLoad(parser, name) { var options = parser.options.require; var allow = options.allow; var extension = (name.substr(0, 1) === '[' ? '' : options.prefix) + name; var allowed = (allow.hasOwnProperty(extension) ? allow[extension] : allow.hasOwnProperty(name) ? allow[name] : options.defaultAllow); if (!allowed) { throw new TexError_js_1.default('BadRequire', 'Extension "%1" is now allowed to be loaded', extension); } if (package_js_1.Package.packages.has(extension)) { RegisterExtension(parser.configuration.packageData.get('require').jax, extension); } else { mathjax_js_1.mathjax.retryAfter(loader_js_1.Loader.load(extension)); } } exports.RequireLoad = RequireLoad; function config(_config, jax) { jax.parseOptions.packageData.set('require', { jax: jax, required: __spread(jax.options.packages), configured: new Map() }); var options = jax.parseOptions.options.require; var prefix = options.prefix; if (prefix.match(/[^_a-zA-Z0-9]/)) { throw Error('Illegal characters used in \\require prefix'); } if (!loader_js_1.CONFIG.paths[prefix]) { loader_js_1.CONFIG.paths[prefix] = '[mathjax]/input/tex/extensions'; } options.prefix = '[' + prefix + ']/'; } exports.RequireMethods = { Require: function (parser, name) { var required = parser.GetArgument(name); if (required.match(/[^_a-zA-Z0-9]/) || required === '') { throw new TexError_js_1.default('BadPackageName', 'Argument for %1 is not a valid package name', name); } RequireLoad(parser, required); } }; exports.options = { require: { allow: Options_js_1.expandable({ base: false, 'all-packages': false }), defaultAllow: true, prefix: 'tex' } }; new SymbolMap_js_1.CommandMap('require', { require: 'Require' }, exports.RequireMethods); exports.RequireConfiguration = Configuration_js_1.Configuration.create('require', { handler: { macro: ['require'] }, config: config, options: exports.options }); //# sourceMappingURL=RequireConfiguration.js.map /***/ }), /* 15 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AllPackages = void 0; __webpack_require__(22); __webpack_require__(29); __webpack_require__(30); __webpack_require__(33); __webpack_require__(36); __webpack_require__(37); __webpack_require__(38); __webpack_require__(42); __webpack_require__(47); __webpack_require__(48); __webpack_require__(52); __webpack_require__(53); __webpack_require__(24); __webpack_require__(54); __webpack_require__(57); __webpack_require__(59); __webpack_require__(26); __webpack_require__(61); __webpack_require__(62); __webpack_require__(63); __webpack_require__(67); __webpack_require__(68); __webpack_require__(73); __webpack_require__(75); if (typeof MathJax !== 'undefined' && MathJax.loader) { MathJax.loader.preLoad('[tex]/action', '[tex]/ams', '[tex]/amscd', '[tex]/bbox', '[tex]/boldsymbol', '[tex]/braket', '[tex]/bussproofs', '[tex]/cancel', '[tex]/color', '[tex]/colorv2', '[tex]/enclose', '[tex]/extpfeil', '[tex]/html', '[tex]/mhchem', '[tex]/newcommand', '[tex]/noerrors', '[tex]/noundefined', '[tex]/physics', '[tex]/unicode', '[tex]/verb', '[tex]/configmacros', '[tex]/tagformat', '[tex]/textmacros'); } exports.AllPackages = [ 'base', 'action', 'ams', 'amscd', 'bbox', 'boldsymbol', 'braket', 'bussproofs', 'cancel', 'color', 'enclose', 'extpfeil', 'html', 'mhchem', 'newcommand', 'noerrors', 'noundefined', 'unicode', 'verb', 'configmacros', 'tagformat', 'textmacros' ]; //# sourceMappingURL=AllPackages.js.map /***/ }), /* 16 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.StartItem = MathJax._.input.tex.base.BaseItems.StartItem; exports.StopItem = MathJax._.input.tex.base.BaseItems.StopItem; exports.OpenItem = MathJax._.input.tex.base.BaseItems.OpenItem; exports.CloseItem = MathJax._.input.tex.base.BaseItems.CloseItem; exports.PrimeItem = MathJax._.input.tex.base.BaseItems.PrimeItem; exports.SubsupItem = MathJax._.input.tex.base.BaseItems.SubsupItem; exports.OverItem = MathJax._.input.tex.base.BaseItems.OverItem; exports.LeftItem = MathJax._.input.tex.base.BaseItems.LeftItem; exports.RightItem = MathJax._.input.tex.base.BaseItems.RightItem; exports.BeginItem = MathJax._.input.tex.base.BaseItems.BeginItem; exports.EndItem = MathJax._.input.tex.base.BaseItems.EndItem; exports.StyleItem = MathJax._.input.tex.base.BaseItems.StyleItem; exports.PositionItem = MathJax._.input.tex.base.BaseItems.PositionItem; exports.CellItem = MathJax._.input.tex.base.BaseItems.CellItem; exports.MmlItem = MathJax._.input.tex.base.BaseItems.MmlItem; exports.FnItem = MathJax._.input.tex.base.BaseItems.FnItem; exports.NotItem = MathJax._.input.tex.base.BaseItems.NotItem; exports.DotsItem = MathJax._.input.tex.base.BaseItems.DotsItem; exports.ArrayItem = MathJax._.input.tex.base.BaseItems.ArrayItem; exports.EqnArrayItem = MathJax._.input.tex.base.BaseItems.EqnArrayItem; exports.EquationItem = MathJax._.input.tex.base.BaseItems.EquationItem; /***/ }), /* 17 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Label = MathJax._.input.tex.Tags.Label; exports.TagInfo = MathJax._.input.tex.Tags.TagInfo; exports.AbstractTags = MathJax._.input.tex.Tags.AbstractTags; exports.NoTags = MathJax._.input.tex.Tags.NoTags; exports.AllTags = MathJax._.input.tex.Tags.AllTags; exports.TagsFactory = MathJax._.input.tex.Tags.TagsFactory; /***/ }), /* 18 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.clearDocument = exports.saveDocument = exports.makeBsprAttributes = exports.removeProperty = exports.getProperty = exports.setProperty = exports.balanceRules = void 0; var NodeUtil_js_1 = __webpack_require__(4); var ParseUtil_js_1 = __webpack_require__(3); var doc = null; var item = null; var getBBox = function (node) { item.root = node; var width = doc.outputJax.getBBox(item, doc).w; return width; }; var getRule = function (node) { var i = 0; while (node && !NodeUtil_js_1.default.isType(node, 'mtable')) { if (NodeUtil_js_1.default.isType(node, 'text')) { return null; } if (NodeUtil_js_1.default.isType(node, 'mrow')) { node = node.childNodes[0]; i = 0; continue; } node = node.parent.childNodes[i]; i++; } return node; }; var getPremises = function (rule, direction) { return rule.childNodes[direction === 'up' ? 1 : 0].childNodes[0]. childNodes[0].childNodes[0].childNodes[0]; }; var getPremise = function (premises, n) { return premises.childNodes[n].childNodes[0].childNodes[0]; }; var firstPremise = function (premises) { return getPremise(premises, 0); }; var lastPremise = function (premises) { return getPremise(premises, premises.childNodes.length - 1); }; var getConclusion = function (rule, direction) { return rule.childNodes[direction === 'up' ? 0 : 1].childNodes[0].childNodes[0].childNodes[0]; }; var getColumn = function (inf) { while (inf && !NodeUtil_js_1.default.isType(inf, 'mtd')) { inf = inf.parent; } return inf; }; var nextSibling = function (inf) { return inf.parent.childNodes[inf.parent.childNodes.indexOf(inf) + 1]; }; var previousSibling = function (inf) { return inf.parent.childNodes[inf.parent.childNodes.indexOf(inf) - 1]; }; var getParentInf = function (inf) { while (inf && exports.getProperty(inf, 'inference') == null) { inf = inf.parent; } return inf; }; var getSpaces = function (inf, rule, right) { if (right === void 0) { right = false; } var result = 0; if (inf === rule) { return result; } if (inf !== rule.parent) { var children_1 = inf.childNodes; var index_1 = right ? children_1.length - 1 : 0; if (NodeUtil_js_1.default.isType(children_1[index_1], 'mspace')) { result += getBBox(children_1[index_1]); } inf = rule.parent; } if (inf === rule) { return result; } var children = inf.childNodes; var index = right ? children.length - 1 : 0; if (children[index] !== rule) { result += getBBox(children[index]); } return result; }; var adjustValue = function (inf, right) { if (right === void 0) { right = false; } var rule = getRule(inf); var conc = getConclusion(rule, exports.getProperty(rule, 'inferenceRule')); var w = getSpaces(inf, rule, right); var x = getBBox(rule); var y = getBBox(conc); return w + ((x - y) / 2); }; var addSpace = function (config, inf, space, right) { if (right === void 0) { right = false; } if (exports.getProperty(inf, 'inferenceRule') || exports.getProperty(inf, 'labelledRule')) { var mrow = config.nodeFactory.create('node', 'mrow'); inf.parent.replaceChild(mrow, inf); mrow.setChildren([inf]); moveProperties(inf, mrow); inf = mrow; } var index = right ? inf.childNodes.length - 1 : 0; var mspace = inf.childNodes[index]; if (NodeUtil_js_1.default.isType(mspace, 'mspace')) { NodeUtil_js_1.default.setAttribute(mspace, 'width', ParseUtil_js_1.default.Em(ParseUtil_js_1.default.dimen2em(NodeUtil_js_1.default.getAttribute(mspace, 'width')) + space)); return; } mspace = config.nodeFactory.create('node', 'mspace', [], { width: ParseUtil_js_1.default.Em(space) }); if (right) { inf.appendChild(mspace); return; } mspace.parent = inf; inf.childNodes.unshift(mspace); }; var moveProperties = function (src, dest) { var props = ['inference', 'proof', 'maxAdjust', 'labelledRule']; props.forEach(function (x) { var value = exports.getProperty(src, x); if (value != null) { exports.setProperty(dest, x, value); exports.removeProperty(src, x); } }); }; var adjustSequents = function (config) { var sequents = config.nodeLists['sequent']; if (!sequents) { return; } for (var i = sequents.length - 1, seq = void 0; seq = sequents[i]; i--) { if (exports.getProperty(seq, 'sequentProcessed')) { exports.removeProperty(seq, 'sequentProcessed'); continue; } var collect = []; var inf = getParentInf(seq); if (exports.getProperty(inf, 'inference') !== 1) { continue; } collect.push(seq); while (exports.getProperty(inf, 'inference') === 1) { inf = getRule(inf); var premise = firstPremise(getPremises(inf, exports.getProperty(inf, 'inferenceRule'))); var sequent = (exports.getProperty(premise, 'inferenceRule')) ? getConclusion(premise, exports.getProperty(premise, 'inferenceRule')) : premise; if (exports.getProperty(sequent, 'sequent')) { seq = sequent.childNodes[0]; collect.push(seq); exports.setProperty(seq, 'sequentProcessed', true); } inf = premise; } adjustSequentPairwise(config, collect); } }; var addSequentSpace = function (config, sequent, position, direction, width) { var mspace = config.nodeFactory.create('node', 'mspace', [], { width: ParseUtil_js_1.default.Em(width) }); if (direction === 'left') { var row = sequent.childNodes[position].childNodes[0]; mspace.parent = row; row.childNodes.unshift(mspace); } else { sequent.childNodes[position].appendChild(mspace); } exports.setProperty(sequent.parent, 'sequentAdjust_' + direction, width); }; var adjustSequentPairwise = function (config, sequents) { var top = sequents.pop(); while (sequents.length) { var bottom = sequents.pop(); var _a = __read(compareSequents(top, bottom), 2), left = _a[0], right = _a[1]; if (exports.getProperty(top.parent, 'axiom')) { addSequentSpace(config, left < 0 ? top : bottom, 0, 'left', Math.abs(left)); addSequentSpace(config, right < 0 ? top : bottom, 2, 'right', Math.abs(right)); } top = bottom; } }; var compareSequents = function (top, bottom) { var tr = getBBox(top.childNodes[2]); var br = getBBox(bottom.childNodes[2]); var tl = getBBox(top.childNodes[0]); var bl = getBBox(bottom.childNodes[0]); var dl = tl - bl; var dr = tr - br; return [dl, dr]; }; exports.balanceRules = function (arg) { var e_1, _a; item = new arg.document.options.MathItem('', null, arg.math.display); var config = arg.data; adjustSequents(config); var inferences = config.nodeLists['inference'] || []; try { for (var inferences_1 = __values(inferences), inferences_1_1 = inferences_1.next(); !inferences_1_1.done; inferences_1_1 = inferences_1.next()) { var inf = inferences_1_1.value; var isProof = exports.getProperty(inf, 'proof'); var rule = getRule(inf); var premises = getPremises(rule, exports.getProperty(rule, 'inferenceRule')); var premiseF = firstPremise(premises); if (exports.getProperty(premiseF, 'inference')) { var adjust_1 = adjustValue(premiseF); if (adjust_1) { addSpace(config, premiseF, -adjust_1); var w_1 = getSpaces(inf, rule, false); addSpace(config, inf, adjust_1 - w_1); } } var premiseL = lastPremise(premises); if (exports.getProperty(premiseL, 'inference') == null) { continue; } var adjust = adjustValue(premiseL, true); addSpace(config, premiseL, -adjust, true); var w = getSpaces(inf, rule, true); var maxAdjust = exports.getProperty(inf, 'maxAdjust'); if (maxAdjust != null) { adjust = Math.max(adjust, maxAdjust); } var column = void 0; if (isProof || !(column = getColumn(inf))) { addSpace(config, exports.getProperty(inf, 'proof') ? inf : inf.parent, adjust - w, true); continue; } var sibling = nextSibling(column); if (sibling) { var pos = config.nodeFactory.create('node', 'mspace', [], { width: adjust - w + 'em' }); sibling.appendChild(pos); inf.removeProperty('maxAdjust'); continue; } var parentRule = getParentInf(column); if (!parentRule) { continue; } adjust = exports.getProperty(parentRule, 'maxAdjust') ? Math.max(exports.getProperty(parentRule, 'maxAdjust'), adjust) : adjust; exports.setProperty(parentRule, 'maxAdjust', adjust); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (inferences_1_1 && !inferences_1_1.done && (_a = inferences_1.return)) _a.call(inferences_1); } finally { if (e_1) throw e_1.error; } } }; var property_prefix = 'bspr_'; var blacklistedProperties = (_a = {}, _a[property_prefix + 'maxAdjust'] = true, _a); exports.setProperty = function (node, property, value) { NodeUtil_js_1.default.setProperty(node, property_prefix + property, value); }; exports.getProperty = function (node, property) { return NodeUtil_js_1.default.getProperty(node, property_prefix + property); }; exports.removeProperty = function (node, property) { node.removeProperty(property_prefix + property); }; exports.makeBsprAttributes = function (arg) { arg.data.root.walkTree(function (mml, _data) { var attr = []; mml.getPropertyNames().forEach(function (x) { if (!blacklistedProperties[x] && x.match(RegExp('^' + property_prefix))) { attr.push(x + ':' + mml.getProperty(x)); } }); if (attr.length) { NodeUtil_js_1.default.setAttribute(mml, 'semantics', attr.join(';')); } }); }; exports.saveDocument = function (arg) { doc = arg.document; if (!('getBBox' in doc.outputJax)) { throw Error('The bussproofs extension requires an output jax with a getBBox() method'); } }; exports.clearDocument = function (_arg) { doc = null; }; //# sourceMappingURL=BussproofsUtil.js.map /***/ }), /* 19 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ParseUtil_js_1 = __webpack_require__(3); var TexError_js_1 = __webpack_require__(2); var Symbol_js_1 = __webpack_require__(12); var NewcommandUtil; (function (NewcommandUtil) { function disassembleSymbol(name, symbol) { var newArgs = [name, symbol.char]; if (symbol.attributes) { for (var key in symbol.attributes) { newArgs.push(key); newArgs.push(symbol.attributes[key]); } } return newArgs; } NewcommandUtil.disassembleSymbol = disassembleSymbol; function assembleSymbol(args) { var name = args[0]; var char = args[1]; var attrs = {}; for (var i = 2; i < args.length; i = i + 2) { attrs[args[i]] = args[i + 1]; } return new Symbol_js_1.Symbol(name, char, attrs); } NewcommandUtil.assembleSymbol = assembleSymbol; function GetCSname(parser, cmd) { var c = parser.GetNext(); if (c !== '\\') { throw new TexError_js_1.default('MissingCS', '%1 must be followed by a control sequence', cmd); } var cs = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(cmd)); return cs.substr(1); } NewcommandUtil.GetCSname = GetCSname; function GetTemplate(parser, cmd, cs) { var c = parser.GetNext(); var params = []; var n = 0; var i = parser.i; while (parser.i < parser.string.length) { c = parser.GetNext(); if (c === '#') { if (i !== parser.i) { params[n] = parser.string.substr(i, parser.i - i); } c = parser.string.charAt(++parser.i); if (!c.match(/^[1-9]$/)) { throw new TexError_js_1.default('CantUseHash2', 'Illegal use of # in template for %1', cs); } if (parseInt(c) !== ++n) { throw new TexError_js_1.default('SequentialParam', 'Parameters for %1 must be numbered sequentially', cs); } i = parser.i + 1; } else if (c === '{') { if (i !== parser.i) { params[n] = parser.string.substr(i, parser.i - i); } if (params.length > 0) { return [n.toString()].concat(params); } else { return n; } } parser.i++; } throw new TexError_js_1.default('MissingReplacementString', 'Missing replacement string for definition of %1', cmd); } NewcommandUtil.GetTemplate = GetTemplate; function GetParameter(parser, name, param) { if (param == null) { return parser.GetArgument(name); } var i = parser.i; var j = 0; var hasBraces = 0; while (parser.i < parser.string.length) { var c = parser.string.charAt(parser.i); if (c === '{') { if (parser.i === i) { hasBraces = 1; } parser.GetArgument(name); j = parser.i - i; } else if (MatchParam(parser, param)) { if (hasBraces) { i++; j -= 2; } return parser.string.substr(i, j); } else if (c === '\\') { parser.i++; j++; hasBraces = 0; var match = parser.string.substr(parser.i).match(/[a-z]+|./i); if (match) { parser.i += match[0].length; j = parser.i - i; } } else { parser.i++; j++; hasBraces = 0; } } throw new TexError_js_1.default('RunawayArgument', 'Runaway argument for %1?', name); } NewcommandUtil.GetParameter = GetParameter; function MatchParam(parser, param) { if (parser.string.substr(parser.i, param.length) !== param) { return 0; } if (param.match(/\\[a-z]+$/i) && parser.string.charAt(parser.i + param.length).match(/[a-z]/i)) { return 0; } parser.i += param.length; return 1; } NewcommandUtil.MatchParam = MatchParam; function addDelimiter(parser, cs, char, attr) { var handlers = parser.configuration.handlers; var handler = handlers.retrieve(NewcommandUtil.NEW_DELIMITER); handler.add(cs, new Symbol_js_1.Symbol(cs, char, attr)); } NewcommandUtil.addDelimiter = addDelimiter; function addMacro(parser, cs, func, attr, symbol) { if (symbol === void 0) { symbol = ''; } var handlers = parser.configuration.handlers; var handler = handlers.retrieve(NewcommandUtil.NEW_COMMAND); handler.add(cs, new Symbol_js_1.Macro(symbol ? symbol : cs, func, attr)); } NewcommandUtil.addMacro = addMacro; function addEnvironment(parser, env, func, attr) { var handlers = parser.configuration.handlers; var handler = handlers.retrieve(NewcommandUtil.NEW_ENVIRONMENT); handler.add(env, new Symbol_js_1.Macro(env, func, attr)); } NewcommandUtil.addEnvironment = addEnvironment; NewcommandUtil.NEW_DELIMITER = 'new-Delimiter'; NewcommandUtil.NEW_COMMAND = 'new-Command'; NewcommandUtil.NEW_ENVIRONMENT = 'new-Environment'; })(NewcommandUtil || (NewcommandUtil = {})); exports.default = NewcommandUtil; //# sourceMappingURL=NewcommandUtil.js.map /***/ }), /* 20 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 21 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AutoloadConfiguration = void 0; var Configuration_js_1 = __webpack_require__(0); var SymbolMap_js_1 = __webpack_require__(1); var Symbol_js_1 = __webpack_require__(12); var RequireConfiguration_js_1 = __webpack_require__(14); var package_js_1 = __webpack_require__(28); var Options_js_1 = __webpack_require__(10); function Autoload(parser, name, extension, isMacro) { var e_1, _a, e_2, _b; if (package_js_1.Package.packages.has(parser.options.require.prefix + extension)) { var def = parser.options.autoload[extension]; var _c = __read((def.length === 2 && Array.isArray(def[0]) ? def : [def, []]), 2), macros = _c[0], envs = _c[1]; try { for (var macros_1 = __values(macros), macros_1_1 = macros_1.next(); !macros_1_1.done; macros_1_1 = macros_1.next()) { var macro = macros_1_1.value; AutoloadMacros.remove(macro); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (macros_1_1 && !macros_1_1.done && (_a = macros_1.return)) _a.call(macros_1); } finally { if (e_1) throw e_1.error; } } try { for (var envs_1 = __values(envs), envs_1_1 = envs_1.next(); !envs_1_1.done; envs_1_1 = envs_1.next()) { var env = envs_1_1.value; AutoloadEnvironments.remove(env); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (envs_1_1 && !envs_1_1.done && (_b = envs_1.return)) _b.call(envs_1); } finally { if (e_2) throw e_2.error; } } parser.string = (isMacro ? name : '\\begin{' + name.slice(1) + '}') + parser.string.slice(parser.i); parser.i = 0; } RequireConfiguration_js_1.RequireLoad(parser, extension); } function initAutoload(config) { if (!config.options.require) { Options_js_1.defaultOptions(config.options, RequireConfiguration_js_1.RequireConfiguration.options); } } function configAutoload(config, jax) { var e_3, _a, e_4, _b, e_5, _c; var parser = jax.parseOptions; var macros = parser.handlers.get('macro'); var environments = parser.handlers.get('environment'); var autoload = parser.options.autoload; parser.packageData.set('autoload', { Autoload: Autoload }); try { for (var _d = __values(Object.keys(autoload)), _e = _d.next(); !_e.done; _e = _d.next()) { var extension = _e.value; var def = autoload[extension]; var _f = __read((def.length === 2 && Array.isArray(def[0]) ? def : [def, []]), 2), macs = _f[0], envs = _f[1]; try { for (var macs_1 = (e_4 = void 0, __values(macs)), macs_1_1 = macs_1.next(); !macs_1_1.done; macs_1_1 = macs_1.next()) { var name_1 = macs_1_1.value; if (!macros.lookup(name_1) || name_1 === 'color') { AutoloadMacros.add(name_1, new Symbol_js_1.Macro(name_1, Autoload, [extension, true])); } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (macs_1_1 && !macs_1_1.done && (_b = macs_1.return)) _b.call(macs_1); } finally { if (e_4) throw e_4.error; } } try { for (var envs_2 = (e_5 = void 0, __values(envs)), envs_2_1 = envs_2.next(); !envs_2_1.done; envs_2_1 = envs_2.next()) { var name_2 = envs_2_1.value; if (!environments.lookup(name_2)) { AutoloadEnvironments.add(name_2, new Symbol_js_1.Macro(name_2, Autoload, [extension, false])); } } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (envs_2_1 && !envs_2_1.done && (_c = envs_2.return)) _c.call(envs_2); } finally { if (e_5) throw e_5.error; } } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_3) throw e_3.error; } } if (!parser.packageData.get('require')) { RequireConfiguration_js_1.RequireConfiguration.config(config, jax); } } var AutoloadMacros = new SymbolMap_js_1.CommandMap('autoload-macros', {}, {}); var AutoloadEnvironments = new SymbolMap_js_1.CommandMap('autoload-environments', {}, {}); exports.AutoloadConfiguration = Configuration_js_1.Configuration.create('autoload', { handler: { macro: ['autoload-macros'], environment: ['autoload-environments'] }, options: { autoload: Options_js_1.expandable({ action: ['toggle', 'mathtip', 'texttip'], amscd: [[], ['CD']], bbox: ['bbox'], boldsymbol: ['boldsymbol'], braket: ['bra', 'ket', 'braket', 'set', 'Bra', 'Ket', 'Braket', 'Set', 'ketbra', 'Ketbra'], bussproofs: [[], ['prooftree']], cancel: ['cancel', 'bcancel', 'xcancel', 'cancelto'], color: ['color', 'definecolor', 'textcolor', 'colorbox', 'fcolorbox'], enclose: ['enclose'], extpfeil: ['xtwoheadrightarrow', 'xtwoheadleftarrow', 'xmapsto', 'xlongequal', 'xtofrom', 'Newextarrow'], html: ['href', 'class', 'style', 'cssId'], mhchem: ['ce', 'pu'], newcommand: ['newcommand', 'renewcommand', 'newenvironment', 'renewenvironment', 'def', 'let'], unicode: ['unicode'], verb: ['verb'] }) }, config: configAutoload, init: initAutoload, priority: 10 }); //# sourceMappingURL=AutoloadConfiguration.js.map /***/ }), /* 22 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Other = MathJax._.input.tex.base.BaseConfiguration.Other; exports.BaseTags = MathJax._.input.tex.base.BaseConfiguration.BaseTags; exports.BaseConfiguration = MathJax._.input.tex.base.BaseConfiguration.BaseConfiguration; /***/ }), /* 23 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.NodeFactory = MathJax._.input.tex.NodeFactory.NodeFactory; /***/ }), /* 24 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EncloseConfiguration = exports.EncloseMethods = exports.ENCLOSE_OPTIONS = void 0; var Configuration_js_1 = __webpack_require__(0); var SymbolMap_js_1 = __webpack_require__(1); var ParseUtil_js_1 = __webpack_require__(3); exports.ENCLOSE_OPTIONS = { 'data-arrowhead': 1, color: 1, mathcolor: 1, background: 1, mathbackground: 1, 'data-padding': 1, 'data-thickness': 1 }; exports.EncloseMethods = {}; exports.EncloseMethods.Enclose = function (parser, name) { var notation = parser.GetArgument(name).replace(/,/g, ' '); var attr = parser.GetBrackets(name, ''); var math = parser.ParseArg(name); var def = ParseUtil_js_1.default.keyvalOptions(attr, exports.ENCLOSE_OPTIONS); def.notation = notation; parser.Push(parser.create('node', 'menclose', [math], def)); }; new SymbolMap_js_1.CommandMap('enclose', { enclose: 'Enclose' }, exports.EncloseMethods); exports.EncloseConfiguration = Configuration_js_1.Configuration.create('enclose', { handler: { macro: ['enclose'] } }); //# sourceMappingURL=EncloseConfiguration.js.map /***/ }), /* 25 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var TexError_js_1 = __webpack_require__(2); var sm = __webpack_require__(1); var BaseMethods_js_1 = __webpack_require__(8); var ParseUtil_js_1 = __webpack_require__(3); var NewcommandUtil_js_1 = __webpack_require__(19); var NewcommandMethods = {}; NewcommandMethods.NewCommand = function (parser, name) { var cs = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); var n = parser.GetBrackets(name); var opt = parser.GetBrackets(name); var def = parser.GetArgument(name); if (cs.charAt(0) === '\\') { cs = cs.substr(1); } if (!cs.match(/^(.|[a-z]+)$/i)) { throw new TexError_js_1.default('IllegalControlSequenceName', 'Illegal control sequence name for %1', name); } if (n) { n = ParseUtil_js_1.default.trimSpaces(n); if (!n.match(/^[0-9]+$/)) { throw new TexError_js_1.default('IllegalParamNumber', 'Illegal number of parameters specified in %1', name); } } NewcommandUtil_js_1.default.addMacro(parser, cs, NewcommandMethods.Macro, [def, n, opt]); }; NewcommandMethods.NewEnvironment = function (parser, name) { var env = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); var n = parser.GetBrackets(name); var opt = parser.GetBrackets(name); var bdef = parser.GetArgument(name); var edef = parser.GetArgument(name); if (n) { n = ParseUtil_js_1.default.trimSpaces(n); if (!n.match(/^[0-9]+$/)) { throw new TexError_js_1.default('IllegalParamNumber', 'Illegal number of parameters specified in %1', name); } } NewcommandUtil_js_1.default.addEnvironment(parser, env, NewcommandMethods.BeginEnv, [true, bdef, edef, n, opt]); }; NewcommandMethods.MacroDef = function (parser, name) { var cs = NewcommandUtil_js_1.default.GetCSname(parser, name); var params = NewcommandUtil_js_1.default.GetTemplate(parser, name, '\\' + cs); var def = parser.GetArgument(name); !(params instanceof Array) ? NewcommandUtil_js_1.default.addMacro(parser, cs, NewcommandMethods.Macro, [def, params]) : NewcommandUtil_js_1.default.addMacro(parser, cs, NewcommandMethods.MacroWithTemplate, [def].concat(params)); }; NewcommandMethods.Let = function (parser, name) { var cs = NewcommandUtil_js_1.default.GetCSname(parser, name); var c = parser.GetNext(); if (c === '=') { parser.i++; c = parser.GetNext(); } var handlers = parser.configuration.handlers; if (c === '\\') { name = NewcommandUtil_js_1.default.GetCSname(parser, name); var macro_1 = handlers.get('delimiter').lookup('\\' + name); if (macro_1) { NewcommandUtil_js_1.default.addDelimiter(parser, '\\' + cs, macro_1.char, macro_1.attributes); return; } var map_1 = handlers.get('macro').applicable(name); if (!map_1) { return; } if (map_1 instanceof sm.MacroMap) { var macro_2 = map_1.lookup(name); NewcommandUtil_js_1.default.addMacro(parser, cs, macro_2.func, macro_2.args, macro_2.symbol); return; } macro_1 = map_1.lookup(name); var newArgs = NewcommandUtil_js_1.default.disassembleSymbol(cs, macro_1); var method = function (p, _cs) { var rest = []; for (var _i = 2; _i < arguments.length; _i++) { rest[_i - 2] = arguments[_i]; } var symb = NewcommandUtil_js_1.default.assembleSymbol(rest); return map_1.parser(p, symb); }; NewcommandUtil_js_1.default.addMacro(parser, cs, method, newArgs); return; } parser.i++; var macro = handlers.get('delimiter').lookup(c); if (macro) { NewcommandUtil_js_1.default.addDelimiter(parser, '\\' + cs, macro.char, macro.attributes); return; } NewcommandUtil_js_1.default.addMacro(parser, cs, NewcommandMethods.Macro, [c]); }; NewcommandMethods.MacroWithTemplate = function (parser, name, text, n) { var params = []; for (var _i = 4; _i < arguments.length; _i++) { params[_i - 4] = arguments[_i]; } var argCount = parseInt(n, 10); if (argCount) { var args = []; parser.GetNext(); if (params[0] && !NewcommandUtil_js_1.default.MatchParam(parser, params[0])) { throw new TexError_js_1.default('MismatchUseDef', 'Use of %1 doesn\'t match its definition', name); } for (var i = 0; i < argCount; i++) { args.push(NewcommandUtil_js_1.default.GetParameter(parser, name, params[i + 1])); } text = ParseUtil_js_1.default.substituteArgs(parser, args, text); } parser.string = ParseUtil_js_1.default.addArgs(parser, text, parser.string.slice(parser.i)); parser.i = 0; if (++parser.macroCount > parser.configuration.options['maxMacros']) { throw new TexError_js_1.default('MaxMacroSub1', 'MathJax maximum macro substitution count exceeded; ' + 'is here a recursive macro call?'); } }; NewcommandMethods.BeginEnv = function (parser, begin, bdef, edef, n, def) { if (begin.getProperty('end') && parser.stack.env['closing'] === begin.getName()) { delete parser.stack.env['closing']; var rest = parser.string.slice(parser.i); parser.string = edef; parser.i = 0; parser.Parse(); parser.string = rest; parser.i = 0; return parser.itemFactory.create('end').setProperty('name', begin.getName()); } if (n) { var args = []; if (def != null) { var optional = parser.GetBrackets('\\begin{' + begin.getName() + '}'); args.push(optional == null ? def : optional); } for (var i = args.length; i < n; i++) { args.push(parser.GetArgument('\\begin{' + begin.getName() + '}')); } bdef = ParseUtil_js_1.default.substituteArgs(parser, args, bdef); edef = ParseUtil_js_1.default.substituteArgs(parser, [], edef); } parser.string = ParseUtil_js_1.default.addArgs(parser, bdef, parser.string.slice(parser.i)); parser.i = 0; return parser.itemFactory.create('beginEnv').setProperty('name', begin.getName()); }; NewcommandMethods.Macro = BaseMethods_js_1.default.Macro; exports.default = NewcommandMethods; //# sourceMappingURL=NewcommandMethods.js.map /***/ }), /* 26 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.NewcommandConfiguration = void 0; var Configuration_js_1 = __webpack_require__(0); var NewcommandItems_js_1 = __webpack_require__(55); var NewcommandUtil_js_1 = __webpack_require__(19); __webpack_require__(56); var ParseMethods_js_1 = __webpack_require__(9); var sm = __webpack_require__(1); var init = function (config) { new sm.DelimiterMap(NewcommandUtil_js_1.default.NEW_DELIMITER, ParseMethods_js_1.default.delimiter, {}); new sm.CommandMap(NewcommandUtil_js_1.default.NEW_COMMAND, {}, {}); new sm.EnvironmentMap(NewcommandUtil_js_1.default.NEW_ENVIRONMENT, ParseMethods_js_1.default.environment, {}, {}); config.append(Configuration_js_1.Configuration.local({ handler: { character: [], delimiter: [NewcommandUtil_js_1.default.NEW_DELIMITER], macro: [NewcommandUtil_js_1.default.NEW_DELIMITER, NewcommandUtil_js_1.default.NEW_COMMAND], environment: [NewcommandUtil_js_1.default.NEW_ENVIRONMENT] }, priority: -1 })); }; exports.NewcommandConfiguration = Configuration_js_1.Configuration.create('newcommand', { handler: { macro: ['Newcommand-macros'] }, items: (_a = {}, _a[NewcommandItems_js_1.BeginEnvItem.prototype.kind] = NewcommandItems_js_1.BeginEnvItem, _a), options: { maxMacros: 1000 }, init: init }); //# sourceMappingURL=NewcommandConfiguration.js.map /***/ }), /* 27 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TextMacrosMethods = void 0; var TexParser_js_1 = __webpack_require__(5); var Retries_js_1 = __webpack_require__(71); var BaseMethods_js_1 = __webpack_require__(8); exports.TextMacrosMethods = { Comment: function (parser, _c) { while (parser.i < parser.string.length && parser.string.charAt(parser.i) !== '\n') { parser.i++; } parser.i++; }, Math: function (parser, open) { parser.saveText(); var i = parser.i; var j, c; var braces = 0; while ((c = parser.GetNext())) { j = parser.i++; switch (c) { case '\\': var cs = parser.GetCS(); if (cs === ')') c = '\\('; case '$': if (braces === 0 && open === c) { var config = parser.texParser.configuration; var mml = (new TexParser_js_1.default(parser.string.substr(i, j - i), parser.stack.env, config)).mml(); parser.PushMath(mml); return; } break; case '{': braces++; break; case '}': if (braces === 0) { parser.Error('ExtraCloseMissingOpen', 'Extra close brace or missing open brace'); } braces--; break; } } parser.Error('MathNotTerminated', 'Math-mode is not properly terminated'); }, MathModeOnly: function (parser, c) { parser.Error('MathModeOnly', '\'%1\' allowed only in math mode', c); }, Misplaced: function (parser, c) { parser.Error('Misplaced', '\'%1\' can not be used here', c); }, OpenBrace: function (parser, _c) { var env = parser.stack.env; parser.envStack.push(env); parser.stack.env = Object.assign({}, env); }, CloseBrace: function (parser, _c) { if (parser.envStack.length) { parser.saveText(); parser.stack.env = parser.envStack.pop(); } else { parser.Error('ExtraCloseMissingOpen', 'Extra close brace or missing open brace'); } }, OpenQuote: function (parser, c) { if (parser.string.charAt(parser.i) === c) { parser.text += '\u201C'; parser.i++; } else { parser.text += '\u2018'; } }, CloseQuote: function (parser, c) { if (parser.string.charAt(parser.i) === c) { parser.text += '\u201D'; parser.i++; } else { parser.text += '\u2019'; } }, Tilde: function (parser, _c) { parser.text += '\u00A0'; }, Space: function (parser, _c) { parser.text += ' '; while (parser.GetNext().match(/\s/)) parser.i++; }, SelfQuote: function (parser, name) { parser.text += name.substr(1); }, Insert: function (parser, _name, c) { parser.text += c; }, Accent: function (parser, _name, c) { var base = parser.ParseArg(name); var accent = parser.create('token', 'mo', {}, c); parser.addAttributes(accent); parser.Push(parser.create('node', 'mover', [base, accent])); }, Emph: function (parser, name) { var variant = (parser.stack.env.mathvariant === '-tex-mathit' ? 'normal' : '-tex-mathit'); parser.Push(parser.ParseTextArg(name, { mathvariant: variant })); }, SetFont: function (parser, _name, variant) { parser.saveText(); parser.stack.env.mathvariant = variant; }, SetSize: function (parser, _name, size) { parser.saveText(); parser.stack.env.mathsize = size; }, CheckAutoload: function (parser, name) { var autoload = parser.configuration.packageData.get('autoload'); var texParser = parser.texParser; name = name.slice(1); var macro = texParser.lookup('macro', name); if (!macro || (autoload && macro._func === autoload.Autoload)) { texParser.parse('macro', [texParser, name]); if (!macro) return; Retries_js_1.retryAfter(Promise.resolve()); } texParser.parse('macro', [parser, name]); }, Macro: BaseMethods_js_1.default.Macro, Spacer: BaseMethods_js_1.default.Spacer, Hskip: BaseMethods_js_1.default.Hskip, rule: BaseMethods_js_1.default.rule, Rule: BaseMethods_js_1.default.Rule, HandleRef: BaseMethods_js_1.default.HandleRef }; //# sourceMappingURL=TextMacrosMethods.js.map /***/ }), /* 28 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.PackageError = MathJax._.components["package"].PackageError; exports.Package = MathJax._.components["package"].Package; /***/ }), /* 29 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ActionConfiguration = exports.ActionMethods = void 0; var Configuration_js_1 = __webpack_require__(0); var TexParser_js_1 = __webpack_require__(5); var SymbolMap_js_1 = __webpack_require__(1); var BaseMethods_js_1 = __webpack_require__(8); exports.ActionMethods = {}; exports.ActionMethods.Macro = BaseMethods_js_1.default.Macro; exports.ActionMethods.Toggle = function (parser, name) { var children = []; var arg; while ((arg = parser.GetArgument(name)) !== '\\endtoggle') { children.push(new TexParser_js_1.default(arg, parser.stack.env, parser.configuration).mml()); } parser.Push(parser.create('node', 'maction', children, { actiontype: 'toggle' })); }; exports.ActionMethods.Mathtip = function (parser, name) { var arg = parser.ParseArg(name); var tip = parser.ParseArg(name); parser.Push(parser.create('node', 'maction', [arg, tip], { actiontype: 'tooltip' })); }; new SymbolMap_js_1.CommandMap('action-macros', { toggle: 'Toggle', mathtip: 'Mathtip', texttip: ['Macro', '\\mathtip{#1}{\\text{#2}}', 2] }, exports.ActionMethods); exports.ActionConfiguration = Configuration_js_1.Configuration.create('action', { handler: { macro: ['action-macros'] } }); //# sourceMappingURL=ActionConfiguration.js.map /***/ }), /* 30 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.AmsConfiguration = exports.AmsTags = void 0; var Configuration_js_1 = __webpack_require__(0); var AmsItems_js_1 = __webpack_require__(31); var Tags_js_1 = __webpack_require__(17); var AmsMethods_js_1 = __webpack_require__(11); __webpack_require__(32); var SymbolMap_js_1 = __webpack_require__(1); var AmsTags = (function (_super) { __extends(AmsTags, _super); function AmsTags() { return _super !== null && _super.apply(this, arguments) || this; } return AmsTags; }(Tags_js_1.AbstractTags)); exports.AmsTags = AmsTags; var init = function (config) { new SymbolMap_js_1.CommandMap(AmsMethods_js_1.NEW_OPS, {}, {}); config.append(Configuration_js_1.Configuration.local({ handler: { macro: [AmsMethods_js_1.NEW_OPS] }, priority: -1 })); }; exports.AmsConfiguration = Configuration_js_1.Configuration.create('ams', { handler: { delimiter: ['AMSsymbols-delimiter', 'AMSmath-delimiter'], macro: ['AMSsymbols-mathchar0mi', 'AMSsymbols-mathchar0m0', 'AMSsymbols-delimiter', 'AMSsymbols-macros', 'AMSmath-mathchar0mo', 'AMSmath-macros', 'AMSmath-delimiter'], environment: ['AMSmath-environment'] }, items: (_a = {}, _a[AmsItems_js_1.MultlineItem.prototype.kind] = AmsItems_js_1.MultlineItem, _a), tags: { 'ams': AmsTags }, init: init }); //# sourceMappingURL=AmsConfiguration.js.map /***/ }), /* 31 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.MultlineItem = void 0; var BaseItems_js_1 = __webpack_require__(16); var ParseUtil_js_1 = __webpack_require__(3); var NodeUtil_js_1 = __webpack_require__(4); var TexError_js_1 = __webpack_require__(2); var TexConstants_js_1 = __webpack_require__(6); var MultlineItem = (function (_super) { __extends(MultlineItem, _super); function MultlineItem(factory) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } var _this = _super.call(this, factory) || this; _this.factory.configuration.tags.start('multline', true, args[0]); return _this; } Object.defineProperty(MultlineItem.prototype, "kind", { get: function () { return 'multline'; }, enumerable: false, configurable: true }); MultlineItem.prototype.EndEntry = function () { if (this.table.length) { ParseUtil_js_1.default.fixInitialMO(this.factory.configuration, this.nodes); } var shove = this.getProperty('shove'); var mtd = this.create('node', 'mtd', this.nodes, shove ? { columnalign: shove } : {}); this.setProperty('shove', null); this.row.push(mtd); this.Clear(); }; MultlineItem.prototype.EndRow = function () { if (this.row.length !== 1) { throw new TexError_js_1.default('MultlineRowsOneCol', 'The rows within the %1 environment must have exactly one column', 'multline'); } var row = this.create('node', 'mtr', this.row); this.table.push(row); this.row = []; }; MultlineItem.prototype.EndTable = function () { _super.prototype.EndTable.call(this); if (this.table.length) { var m = this.table.length - 1, label = -1; if (!NodeUtil_js_1.default.getAttribute(NodeUtil_js_1.default.getChildren(this.table[0])[0], 'columnalign')) { NodeUtil_js_1.default.setAttribute(NodeUtil_js_1.default.getChildren(this.table[0])[0], 'columnalign', TexConstants_js_1.TexConstant.Align.LEFT); } if (!NodeUtil_js_1.default.getAttribute(NodeUtil_js_1.default.getChildren(this.table[m])[0], 'columnalign')) { NodeUtil_js_1.default.setAttribute(NodeUtil_js_1.default.getChildren(this.table[m])[0], 'columnalign', TexConstants_js_1.TexConstant.Align.RIGHT); } var tag = this.factory.configuration.tags.getTag(); if (tag) { label = (this.arraydef.side === TexConstants_js_1.TexConstant.Align.LEFT ? 0 : this.table.length - 1); var mtr = this.table[label]; var mlabel = this.create('node', 'mlabeledtr', [tag].concat(NodeUtil_js_1.default.getChildren(mtr))); NodeUtil_js_1.default.copyAttributes(mtr, mlabel); this.table[label] = mlabel; } } this.factory.configuration.tags.end(); }; return MultlineItem; }(BaseItems_js_1.ArrayItem)); exports.MultlineItem = MultlineItem; //# sourceMappingURL=AmsItems.js.map /***/ }), /* 32 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var AmsMethods_js_1 = __webpack_require__(11); var sm = __webpack_require__(1); var TexConstants_js_1 = __webpack_require__(6); var ParseMethods_js_1 = __webpack_require__(9); var ParseUtil_js_1 = __webpack_require__(3); var MmlNode_js_1 = __webpack_require__(7); var COLS = function (W) { var WW = []; for (var i = 0, m = W.length; i < m; i++) { WW[i] = ParseUtil_js_1.default.Em(W[i]); } return WW.join(' '); }; new sm.CharacterMap('AMSmath-mathchar0mo', ParseMethods_js_1.default.mathchar0mo, { iiiint: ['\u2A0C', { texClass: MmlNode_js_1.TEXCLASS.OP }] }); new sm.CommandMap('AMSmath-macros', { mathring: ['Accent', '02DA'], nobreakspace: 'Tilde', negmedspace: ['Spacer', TexConstants_js_1.TexConstant.Length.NEGATIVEMEDIUMMATHSPACE], negthickspace: ['Spacer', TexConstants_js_1.TexConstant.Length.NEGATIVETHICKMATHSPACE], idotsint: ['MultiIntegral', '\\int\\cdots\\int'], dddot: ['Accent', '20DB'], ddddot: ['Accent', '20DC'], sideset: ['Macro', '\\mathop{\\mathop{\\rlap{\\phantom{#3}}}\\nolimits#1' + '\\!\\mathop{#3}\\nolimits#2}', 3], boxed: ['Macro', '\\fbox{$\\displaystyle{#1}$}', 1], tag: 'HandleTag', notag: 'HandleNoTag', eqref: ['HandleRef', true], substack: ['Macro', '\\begin{subarray}{c}#1\\end{subarray}', 1], injlim: ['NamedOp', 'inj lim'], projlim: ['NamedOp', 'proj lim'], varliminf: ['Macro', '\\mathop{\\underline{\\mmlToken{mi}{lim}}}'], varlimsup: ['Macro', '\\mathop{\\overline{\\mmlToken{mi}{lim}}}'], varinjlim: ['Macro', '\\mathop{\\underrightarrow{\\mmlToken{mi}{lim}}}'], varprojlim: ['Macro', '\\mathop{\\underleftarrow{\\mmlToken{mi}{lim}}}'], DeclareMathOperator: 'HandleDeclareOp', operatorname: 'HandleOperatorName', SkipLimits: 'SkipLimits', genfrac: 'Genfrac', frac: ['Genfrac', '', '', '', ''], tfrac: ['Genfrac', '', '', '', '1'], dfrac: ['Genfrac', '', '', '', '0'], binom: ['Genfrac', '(', ')', '0', ''], tbinom: ['Genfrac', '(', ')', '0', '1'], dbinom: ['Genfrac', '(', ')', '0', '0'], cfrac: 'CFrac', shoveleft: ['HandleShove', TexConstants_js_1.TexConstant.Align.LEFT], shoveright: ['HandleShove', TexConstants_js_1.TexConstant.Align.RIGHT], xrightarrow: ['xArrow', 0x2192, 5, 6], xleftarrow: ['xArrow', 0x2190, 7, 3] }, AmsMethods_js_1.AmsMethods); new sm.EnvironmentMap('AMSmath-environment', ParseMethods_js_1.default.environment, { 'eqnarray*': ['EqnArray', null, false, true, 'rcl', '0 ' + TexConstants_js_1.TexConstant.Length.THICKMATHSPACE, '.5em'], align: ['EqnArray', null, true, true, 'rlrlrlrlrlrl', COLS([0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0])], 'align*': ['EqnArray', null, false, true, 'rlrlrlrlrlrl', COLS([0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0])], multline: ['Multline', null, true], 'multline*': ['Multline', null, false], split: ['EqnArray', null, false, false, 'rl', COLS([0])], gather: ['EqnArray', null, true, true, 'c'], 'gather*': ['EqnArray', null, false, true, 'c'], alignat: ['AlignAt', null, true, true], 'alignat*': ['AlignAt', null, false, true], alignedat: ['AlignAt', null, false, false], aligned: ['AmsEqnArray', null, null, null, 'rlrlrlrlrlrl', COLS([0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0]), '.5em', 'D'], gathered: ['AmsEqnArray', null, null, null, 'c', null, '.5em', 'D'], subarray: ['Array', null, null, null, null, COLS([0]), '0.1em', 'S', 1], smallmatrix: ['Array', null, null, null, 'c', COLS([1 / 3]), '.2em', 'S', 1], matrix: ['Array', null, null, null, 'c'], pmatrix: ['Array', null, '(', ')', 'c'], bmatrix: ['Array', null, '[', ']', 'c'], Bmatrix: ['Array', null, '\\{', '\\}', 'c'], vmatrix: ['Array', null, '\\vert', '\\vert', 'c'], Vmatrix: ['Array', null, '\\Vert', '\\Vert', 'c'], cases: ['Array', null, '\\{', '.', 'll', null, '.2em', 'T'] }, AmsMethods_js_1.AmsMethods); new sm.DelimiterMap('AMSmath-delimiter', ParseMethods_js_1.default.delimiter, { '\\lvert': ['\u007C', { texClass: MmlNode_js_1.TEXCLASS.OPEN }], '\\rvert': ['\u007C', { texClass: MmlNode_js_1.TEXCLASS.CLOSE }], '\\lVert': ['\u2016', { texClass: MmlNode_js_1.TEXCLASS.OPEN }], '\\rVert': ['\u2016', { texClass: MmlNode_js_1.TEXCLASS.CLOSE }] }); new sm.CharacterMap('AMSsymbols-mathchar0mi', ParseMethods_js_1.default.mathchar0mi, { digamma: '\u03DD', varkappa: '\u03F0', varGamma: ['\u0393', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varDelta: ['\u0394', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varTheta: ['\u0398', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varLambda: ['\u039B', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varXi: ['\u039E', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varPi: ['\u03A0', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varSigma: ['\u03A3', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varUpsilon: ['\u03A5', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varPhi: ['\u03A6', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varPsi: ['\u03A8', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varOmega: ['\u03A9', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], beth: '\u2136', gimel: '\u2137', daleth: '\u2138', backprime: ['\u2035', { variantForm: true }], hslash: '\u210F', varnothing: ['\u2205', { variantForm: true }], blacktriangle: '\u25B4', triangledown: ['\u25BD', { variantForm: true }], blacktriangledown: '\u25BE', square: '\u25FB', Box: '\u25FB', blacksquare: '\u25FC', lozenge: '\u25CA', Diamond: '\u25CA', blacklozenge: '\u29EB', circledS: ['\u24C8', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], bigstar: '\u2605', sphericalangle: '\u2222', measuredangle: '\u2221', nexists: '\u2204', complement: '\u2201', mho: '\u2127', eth: ['\u00F0', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], Finv: '\u2132', diagup: '\u2571', Game: '\u2141', diagdown: '\u2572', Bbbk: ['\u006B', { mathvariant: TexConstants_js_1.TexConstant.Variant.DOUBLESTRUCK }], yen: '\u00A5', circledR: '\u00AE', checkmark: '\u2713', maltese: '\u2720' }); new sm.CharacterMap('AMSsymbols-mathchar0m0', ParseMethods_js_1.default.mathchar0mo, { dotplus: '\u2214', ltimes: '\u22C9', smallsetminus: ['\u2216', { variantForm: true }], rtimes: '\u22CA', Cap: '\u22D2', doublecap: '\u22D2', leftthreetimes: '\u22CB', Cup: '\u22D3', doublecup: '\u22D3', rightthreetimes: '\u22CC', barwedge: '\u22BC', curlywedge: '\u22CF', veebar: '\u22BB', curlyvee: '\u22CE', doublebarwedge: '\u2A5E', boxminus: '\u229F', circleddash: '\u229D', boxtimes: '\u22A0', circledast: '\u229B', boxdot: '\u22A1', circledcirc: '\u229A', boxplus: '\u229E', centerdot: ['\u22C5', { variantForm: true }], divideontimes: '\u22C7', intercal: '\u22BA', leqq: '\u2266', geqq: '\u2267', leqslant: '\u2A7D', geqslant: '\u2A7E', eqslantless: '\u2A95', eqslantgtr: '\u2A96', lesssim: '\u2272', gtrsim: '\u2273', lessapprox: '\u2A85', gtrapprox: '\u2A86', approxeq: '\u224A', lessdot: '\u22D6', gtrdot: '\u22D7', lll: '\u22D8', llless: '\u22D8', ggg: '\u22D9', gggtr: '\u22D9', lessgtr: '\u2276', gtrless: '\u2277', lesseqgtr: '\u22DA', gtreqless: '\u22DB', lesseqqgtr: '\u2A8B', gtreqqless: '\u2A8C', doteqdot: '\u2251', Doteq: '\u2251', eqcirc: '\u2256', risingdotseq: '\u2253', circeq: '\u2257', fallingdotseq: '\u2252', triangleq: '\u225C', backsim: '\u223D', thicksim: ['\u223C', { variantForm: true }], backsimeq: '\u22CD', thickapprox: ['\u2248', { variantForm: true }], subseteqq: '\u2AC5', supseteqq: '\u2AC6', Subset: '\u22D0', Supset: '\u22D1', sqsubset: '\u228F', sqsupset: '\u2290', preccurlyeq: '\u227C', succcurlyeq: '\u227D', curlyeqprec: '\u22DE', curlyeqsucc: '\u22DF', precsim: '\u227E', succsim: '\u227F', precapprox: '\u2AB7', succapprox: '\u2AB8', vartriangleleft: '\u22B2', lhd: '\u22B2', vartriangleright: '\u22B3', rhd: '\u22B3', trianglelefteq: '\u22B4', unlhd: '\u22B4', trianglerighteq: '\u22B5', unrhd: '\u22B5', vDash: ['\u22A8', { variantForm: true }], Vdash: '\u22A9', Vvdash: '\u22AA', smallsmile: ['\u2323', { variantForm: true }], shortmid: ['\u2223', { variantForm: true }], smallfrown: ['\u2322', { variantForm: true }], shortparallel: ['\u2225', { variantForm: true }], bumpeq: '\u224F', between: '\u226C', Bumpeq: '\u224E', pitchfork: '\u22D4', varpropto: ['\u221D', { variantForm: true }], backepsilon: '\u220D', blacktriangleleft: '\u25C2', blacktriangleright: '\u25B8', therefore: '\u2234', because: '\u2235', eqsim: '\u2242', vartriangle: ['\u25B3', { variantForm: true }], Join: '\u22C8', nless: '\u226E', ngtr: '\u226F', nleq: '\u2270', ngeq: '\u2271', nleqslant: ['\u2A87', { variantForm: true }], ngeqslant: ['\u2A88', { variantForm: true }], nleqq: ['\u2270', { variantForm: true }], ngeqq: ['\u2271', { variantForm: true }], lneq: '\u2A87', gneq: '\u2A88', lneqq: '\u2268', gneqq: '\u2269', lvertneqq: ['\u2268', { variantForm: true }], gvertneqq: ['\u2269', { variantForm: true }], lnsim: '\u22E6', gnsim: '\u22E7', lnapprox: '\u2A89', gnapprox: '\u2A8A', nprec: '\u2280', nsucc: '\u2281', npreceq: ['\u22E0', { variantForm: true }], nsucceq: ['\u22E1', { variantForm: true }], precneqq: '\u2AB5', succneqq: '\u2AB6', precnsim: '\u22E8', succnsim: '\u22E9', precnapprox: '\u2AB9', succnapprox: '\u2ABA', nsim: '\u2241', ncong: '\u2247', nshortmid: ['\u2224', { variantForm: true }], nshortparallel: ['\u2226', { variantForm: true }], nmid: '\u2224', nparallel: '\u2226', nvdash: '\u22AC', nvDash: '\u22AD', nVdash: '\u22AE', nVDash: '\u22AF', ntriangleleft: '\u22EA', ntriangleright: '\u22EB', ntrianglelefteq: '\u22EC', ntrianglerighteq: '\u22ED', nsubseteq: '\u2288', nsupseteq: '\u2289', nsubseteqq: ['\u2288', { variantForm: true }], nsupseteqq: ['\u2289', { variantForm: true }], subsetneq: '\u228A', supsetneq: '\u228B', varsubsetneq: ['\u228A', { variantForm: true }], varsupsetneq: ['\u228B', { variantForm: true }], subsetneqq: '\u2ACB', supsetneqq: '\u2ACC', varsubsetneqq: ['\u2ACB', { variantForm: true }], varsupsetneqq: ['\u2ACC', { variantForm: true }], leftleftarrows: '\u21C7', rightrightarrows: '\u21C9', leftrightarrows: '\u21C6', rightleftarrows: '\u21C4', Lleftarrow: '\u21DA', Rrightarrow: '\u21DB', twoheadleftarrow: '\u219E', twoheadrightarrow: '\u21A0', leftarrowtail: '\u21A2', rightarrowtail: '\u21A3', looparrowleft: '\u21AB', looparrowright: '\u21AC', leftrightharpoons: '\u21CB', rightleftharpoons: ['\u21CC', { variantForm: true }], curvearrowleft: '\u21B6', curvearrowright: '\u21B7', circlearrowleft: '\u21BA', circlearrowright: '\u21BB', Lsh: '\u21B0', Rsh: '\u21B1', upuparrows: '\u21C8', downdownarrows: '\u21CA', upharpoonleft: '\u21BF', upharpoonright: '\u21BE', downharpoonleft: '\u21C3', restriction: '\u21BE', multimap: '\u22B8', downharpoonright: '\u21C2', leftrightsquigarrow: '\u21AD', rightsquigarrow: '\u21DD', leadsto: '\u21DD', dashrightarrow: '\u21E2', dashleftarrow: '\u21E0', nleftarrow: '\u219A', nrightarrow: '\u219B', nLeftarrow: '\u21CD', nRightarrow: '\u21CF', nleftrightarrow: '\u21AE', nLeftrightarrow: '\u21CE' }); new sm.DelimiterMap('AMSsymbols-delimiter', ParseMethods_js_1.default.delimiter, { '\\ulcorner': '\u231C', '\\urcorner': '\u231D', '\\llcorner': '\u231E', '\\lrcorner': '\u231F' }); new sm.CommandMap('AMSsymbols-macros', { implies: ['Macro', '\\;\\Longrightarrow\\;'], impliedby: ['Macro', '\\;\\Longleftarrow\\;'] }, AmsMethods_js_1.AmsMethods); //# sourceMappingURL=AmsMappings.js.map /***/ }), /* 33 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AmsCdConfiguration = void 0; var Configuration_js_1 = __webpack_require__(0); __webpack_require__(34); exports.AmsCdConfiguration = Configuration_js_1.Configuration.create('amscd', { handler: { character: ['amscd_special'], macro: ['amscd_macros'], environment: ['amscd_environment'] }, options: { amscd: { colspace: '5pt', rowspace: '5pt', harrowsize: '2.75em', varrowsize: '1.75em', hideHorizontalLabels: false } } }); //# sourceMappingURL=AmsCdConfiguration.js.map /***/ }), /* 34 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var sm = __webpack_require__(1); var ParseMethods_js_1 = __webpack_require__(9); var AmsCdMethods_js_1 = __webpack_require__(35); new sm.EnvironmentMap('amscd_environment', ParseMethods_js_1.default.environment, { CD: 'CD' }, AmsCdMethods_js_1.default); new sm.CommandMap('amscd_macros', { minCDarrowwidth: 'minCDarrowwidth', minCDarrowheight: 'minCDarrowheight', }, AmsCdMethods_js_1.default); new sm.MacroMap('amscd_special', { '@': 'arrow' }, AmsCdMethods_js_1.default); //# sourceMappingURL=AmsCdMappings.js.map /***/ }), /* 35 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var TexParser_js_1 = __webpack_require__(5); var BaseConfiguration_js_1 = __webpack_require__(22); var MmlNode_js_1 = __webpack_require__(7); var NodeUtil_js_1 = __webpack_require__(4); var AmsCdMethods = {}; AmsCdMethods.CD = function (parser, begin) { parser.Push(begin); var item = parser.itemFactory.create('array'); var options = parser.configuration.options.amscd; item.setProperties({ minw: parser.stack.env.CD_minw || options.harrowsize, minh: parser.stack.env.CD_minh || options.varrowsize }); item.arraydef = { columnalign: 'center', columnspacing: options.colspace, rowspacing: options.rowspace, displaystyle: true }; return item; }; AmsCdMethods.arrow = function (parser, name) { var c = parser.string.charAt(parser.i); if (!c.match(/[>': '\u2192', '<': '\u2190', 'V': '\u2193', 'A': '\u2191' }[c]; var a = parser.GetUpTo(name + c, c); var b = parser.GetUpTo(name + c, c); if (c === '>' || c === '<') { mml = parser.create('token', 'mo', hdef, arrow); if (!a) { a = '\\kern ' + top.getProperty('minw'); } if (a || b) { var pad = { width: '.67em', lspace: '.33em' }; mml = parser.create('node', 'munderover', [mml]); if (a) { var nodeA = new TexParser_js_1.default(a, parser.stack.env, parser.configuration).mml(); var mpadded = parser.create('node', 'mpadded', [nodeA], pad); NodeUtil_js_1.default.setAttribute(mpadded, 'voffset', '.1em'); NodeUtil_js_1.default.setChild(mml, mml.over, mpadded); } if (b) { var nodeB = new TexParser_js_1.default(b, parser.stack.env, parser.configuration).mml(); NodeUtil_js_1.default.setChild(mml, mml.under, parser.create('node', 'mpadded', [nodeB], pad)); } if (parser.configuration.options.amscd.hideHorizontalLabels) { mml = parser.create('node', 'mpadded', mml, { depth: 0, height: '.67em' }); } } } else { var arrowNode = parser.create('token', 'mo', vdef, arrow); mml = arrowNode; if (a || b) { mml = parser.create('node', 'mrow'); if (a) { NodeUtil_js_1.default.appendChildren(mml, [new TexParser_js_1.default('\\scriptstyle\\llap{' + a + '}', parser.stack.env, parser.configuration).mml()]); } arrowNode.texClass = MmlNode_js_1.TEXCLASS.ORD; NodeUtil_js_1.default.appendChildren(mml, [arrowNode]); if (b) { NodeUtil_js_1.default.appendChildren(mml, [new TexParser_js_1.default('\\scriptstyle\\rlap{' + b + '}', parser.stack.env, parser.configuration).mml()]); } } } } if (mml) { parser.Push(mml); } AmsCdMethods.cell(parser, name); }; AmsCdMethods.cell = function (parser, name) { var top = parser.stack.Top(); if ((top.table || []).length % 2 === 0 && (top.row || []).length === 0) { parser.Push(parser.create('node', 'mpadded', [], { height: '8.5pt', depth: '2pt' })); } parser.Push(parser.itemFactory.create('cell').setProperties({ isEntry: true, name: name })); }; AmsCdMethods.minCDarrowwidth = function (parser, name) { parser.stack.env.CD_minw = parser.GetDimen(name); }; AmsCdMethods.minCDarrowheight = function (parser, name) { parser.stack.env.CD_minh = parser.GetDimen(name); }; exports.default = AmsCdMethods; //# sourceMappingURL=AmsCdMethods.js.map /***/ }), /* 36 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BboxConfiguration = exports.BboxMethods = void 0; var Configuration_js_1 = __webpack_require__(0); var SymbolMap_js_1 = __webpack_require__(1); var TexError_js_1 = __webpack_require__(2); exports.BboxMethods = {}; exports.BboxMethods.BBox = function (parser, name) { var bbox = parser.GetBrackets(name, ''); var math = parser.ParseArg(name); var parts = bbox.split(/,/); var def, background, style; for (var i = 0, m = parts.length; i < m; i++) { var part = parts[i].trim(); var match = part.match(/^(\.\d+|\d+(\.\d*)?)(pt|em|ex|mu|px|in|cm|mm)$/); if (match) { if (def) { throw new TexError_js_1.default('MultipleBBoxProperty', '%1 specified twice in %2', 'Padding', name); } var pad = BBoxPadding(match[1] + match[3]); if (pad) { def = { height: '+' + pad, depth: '+' + pad, lspace: pad, width: '+' + (2 * parseInt(match[1], 10)) + match[3] }; } } else if (part.match(/^([a-z0-9]+|\#[0-9a-f]{6}|\#[0-9a-f]{3})$/i)) { if (background) { throw new TexError_js_1.default('MultipleBBoxProperty', '%1 specified twice in %2', 'Background', name); } background = part; } else if (part.match(/^[-a-z]+:/i)) { if (style) { throw new TexError_js_1.default('MultipleBBoxProperty', '%1 specified twice in %2', 'Style', name); } style = BBoxStyle(part); } else if (part !== '') { throw new TexError_js_1.default('InvalidBBoxProperty', '"%1" doesn\'t look like a color, a padding dimension, or a style', part); } } if (def) { math = parser.create('node', 'mpadded', [math], def); } if (background || style) { def = {}; if (background) { Object.assign(def, { mathbackground: background }); } if (style) { Object.assign(def, { style: style }); } math = parser.create('node', 'mstyle', [math], def); } parser.Push(math); }; var BBoxStyle = function (styles) { return styles; }; var BBoxPadding = function (pad) { return pad; }; new SymbolMap_js_1.CommandMap('bbox', { bbox: 'BBox' }, exports.BboxMethods); exports.BboxConfiguration = Configuration_js_1.Configuration.create('bbox', { handler: { macro: ['bbox'] } }); //# sourceMappingURL=BboxConfiguration.js.map /***/ }), /* 37 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.BoldsymbolConfiguration = exports.rewriteBoldTokens = exports.createBoldToken = exports.BoldsymbolMethods = void 0; var Configuration_js_1 = __webpack_require__(0); var NodeUtil_js_1 = __webpack_require__(4); var TexConstants_js_1 = __webpack_require__(6); var SymbolMap_js_1 = __webpack_require__(1); var NodeFactory_js_1 = __webpack_require__(23); var BOLDVARIANT = {}; BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.NORMAL] = TexConstants_js_1.TexConstant.Variant.BOLD; BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.ITALIC] = TexConstants_js_1.TexConstant.Variant.BOLDITALIC; BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.FRAKTUR] = TexConstants_js_1.TexConstant.Variant.BOLDFRAKTUR; BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.SCRIPT] = TexConstants_js_1.TexConstant.Variant.BOLDSCRIPT; BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.SANSSERIF] = TexConstants_js_1.TexConstant.Variant.BOLDSANSSERIF; BOLDVARIANT['-tex-calligraphic'] = '-tex-bold-calligraphic'; BOLDVARIANT['-tex-oldstyle'] = '-tex-bold-oldstyle'; exports.BoldsymbolMethods = {}; exports.BoldsymbolMethods.Boldsymbol = function (parser, name) { var boldsymbol = parser.stack.env['boldsymbol']; parser.stack.env['boldsymbol'] = true; var mml = parser.ParseArg(name); parser.stack.env['boldsymbol'] = boldsymbol; parser.Push(mml); }; new SymbolMap_js_1.CommandMap('boldsymbol', { boldsymbol: 'Boldsymbol' }, exports.BoldsymbolMethods); function createBoldToken(factory, kind, def, text) { var token = NodeFactory_js_1.NodeFactory.createToken(factory, kind, def, text); if (kind !== 'mtext' && factory.configuration.parser.stack.env['boldsymbol']) { NodeUtil_js_1.default.setProperty(token, 'fixBold', true); factory.configuration.addNode('fixBold', token); } return token; } exports.createBoldToken = createBoldToken; function rewriteBoldTokens(arg) { var e_1, _a; try { for (var _b = __values(arg.data.getList('fixBold')), _c = _b.next(); !_c.done; _c = _b.next()) { var node = _c.value; if (NodeUtil_js_1.default.getProperty(node, 'fixBold')) { var variant = NodeUtil_js_1.default.getAttribute(node, 'mathvariant'); if (variant == null) { NodeUtil_js_1.default.setAttribute(node, 'mathvariant', TexConstants_js_1.TexConstant.Variant.BOLD); } else { NodeUtil_js_1.default.setAttribute(node, 'mathvariant', BOLDVARIANT[variant] || variant); } NodeUtil_js_1.default.removeProperties(node, 'fixBold'); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } exports.rewriteBoldTokens = rewriteBoldTokens; exports.BoldsymbolConfiguration = Configuration_js_1.Configuration.create('boldsymbol', { handler: { macro: ['boldsymbol'] }, nodes: { 'token': createBoldToken }, postprocessors: [rewriteBoldTokens] }); //# sourceMappingURL=BoldsymbolConfiguration.js.map /***/ }), /* 38 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.BraketConfiguration = void 0; var Configuration_js_1 = __webpack_require__(0); var BraketItems_js_1 = __webpack_require__(39); __webpack_require__(40); exports.BraketConfiguration = Configuration_js_1.Configuration.create('braket', { handler: { character: ['Braket-characters'], macro: ['Braket-macros'] }, items: (_a = {}, _a[BraketItems_js_1.BraketItem.prototype.kind] = BraketItems_js_1.BraketItem, _a) }); //# sourceMappingURL=BraketConfiguration.js.map /***/ }), /* 39 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.BraketItem = void 0; var StackItem_js_1 = __webpack_require__(13); var MmlNode_js_1 = __webpack_require__(7); var ParseUtil_js_1 = __webpack_require__(3); var BraketItem = (function (_super) { __extends(BraketItem, _super); function BraketItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(BraketItem.prototype, "kind", { get: function () { return 'braket'; }, enumerable: false, configurable: true }); Object.defineProperty(BraketItem.prototype, "isOpen", { get: function () { return true; }, enumerable: false, configurable: true }); BraketItem.prototype.checkItem = function (item) { if (item.isKind('close')) { return [[this.factory.create('mml', this.toMml())], true]; } if (item.isKind('mml')) { this.Push(item.toMml()); if (this.getProperty('single')) { return [[this.toMml()], true]; } return StackItem_js_1.BaseItem.fail; } return _super.prototype.checkItem.call(this, item); }; BraketItem.prototype.toMml = function () { var inner = _super.prototype.toMml.call(this); var open = this.getProperty('open'); var close = this.getProperty('close'); if (this.getProperty('stretchy')) { return ParseUtil_js_1.default.fenced(this.factory.configuration, open, inner, close); } var attrs = { fence: true, stretchy: false, symmetric: true, texClass: MmlNode_js_1.TEXCLASS.OPEN }; var openNode = this.create('token', 'mo', attrs, open); attrs.texClass = MmlNode_js_1.TEXCLASS.CLOSE; var closeNode = this.create('token', 'mo', attrs, close); var mrow = this.create('node', 'mrow', [openNode, inner, closeNode], { open: open, close: close, texClass: MmlNode_js_1.TEXCLASS.INNER }); return mrow; }; return BraketItem; }(StackItem_js_1.BaseItem)); exports.BraketItem = BraketItem; //# sourceMappingURL=BraketItems.js.map /***/ }), /* 40 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var SymbolMap_js_1 = __webpack_require__(1); var BraketMethods_js_1 = __webpack_require__(41); new SymbolMap_js_1.CommandMap('Braket-macros', { bra: ['Macro', '{\\langle {#1} \\vert}', 1], ket: ['Macro', '{\\vert {#1} \\rangle}', 1], braket: ['Braket', '\u27E8', '\u27E9', false, Infinity], 'set': ['Braket', '{', '}', false, 1], Bra: ['Macro', '{\\left\\langle {#1} \\right\\vert}', 1], Ket: ['Macro', '{\\left\\vert {#1} \\right\\rangle}', 1], Braket: ['Braket', '\u27E8', '\u27E9', true, Infinity], Set: ['Braket', '{', '}', true, 1], ketbra: ['Macro', '{\\vert {#1} \\rangle\\langle {#2} \\vert}', 2], Ketbra: ['Macro', '{\\left\\vert {#1} \\right\\rangle\\left\\langle {#2} \\right\\vert}', 2], '|': 'Bar' }, BraketMethods_js_1.default); new SymbolMap_js_1.MacroMap('Braket-characters', { '|': 'Bar' }, BraketMethods_js_1.default); //# sourceMappingURL=BraketMappings.js.map /***/ }), /* 41 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var BaseMethods_js_1 = __webpack_require__(8); var MmlNode_js_1 = __webpack_require__(7); var TexError_js_1 = __webpack_require__(2); var BraketMethods = {}; BraketMethods.Macro = BaseMethods_js_1.default.Macro; BraketMethods.Braket = function (parser, _name, open, close, stretchy, barmax) { var next = parser.GetNext(); if (next === '') { throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', parser.currentCS); } var single = true; if (next === '{') { parser.i++; single = false; } parser.Push(parser.itemFactory.create('braket') .setProperties({ barmax: barmax, barcount: 0, open: open, close: close, stretchy: stretchy, single: single })); }; BraketMethods.Bar = function (parser, name) { var c = name === '|' ? '|' : '\u2225'; var top = parser.stack.Top(); if (top.kind !== 'braket' || top.getProperty('barcount') >= top.getProperty('barmax')) { var mml = parser.create('token', 'mo', { texClass: MmlNode_js_1.TEXCLASS.ORD, stretchy: false }, c); parser.Push(mml); return; } if (c === '|' && parser.GetNext() === '|') { parser.i++; c = '\u2225'; } var stretchy = top.getProperty('stretchy'); if (!stretchy) { var node_1 = parser.create('token', 'mo', { stretchy: false, braketbar: true }, c); parser.Push(node_1); return; } var node = parser.create('node', 'TeXAtom', [], { texClass: MmlNode_js_1.TEXCLASS.CLOSE }); parser.Push(node); top.setProperty('barcount', top.getProperty('barcount') + 1); node = parser.create('token', 'mo', { stretchy: true, braketbar: true }, c); parser.Push(node); node = parser.create('node', 'TeXAtom', [], { texClass: MmlNode_js_1.TEXCLASS.OPEN }); parser.Push(node); }; exports.default = BraketMethods; //# sourceMappingURL=BraketMethods.js.map /***/ }), /* 42 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.BussproofsConfiguration = void 0; var Configuration_js_1 = __webpack_require__(0); var BussproofsItems_js_1 = __webpack_require__(43); var BussproofsUtil_js_1 = __webpack_require__(18); __webpack_require__(45); exports.BussproofsConfiguration = Configuration_js_1.Configuration.create('bussproofs', { handler: { macro: ['Bussproofs-macros'], environment: ['Bussproofs-environments'] }, items: (_a = {}, _a[BussproofsItems_js_1.ProofTreeItem.prototype.kind] = BussproofsItems_js_1.ProofTreeItem, _a), preprocessors: [ [BussproofsUtil_js_1.saveDocument, 1] ], postprocessors: [ [BussproofsUtil_js_1.clearDocument, 3], [BussproofsUtil_js_1.makeBsprAttributes, 2], [BussproofsUtil_js_1.balanceRules, 1] ] }); //# sourceMappingURL=BussproofsConfiguration.js.map /***/ }), /* 43 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.ProofTreeItem = void 0; var TexError_js_1 = __webpack_require__(2); var StackItem_js_1 = __webpack_require__(13); var Stack_js_1 = __webpack_require__(44); var BussproofsUtil = __webpack_require__(18); var ProofTreeItem = (function (_super) { __extends(ProofTreeItem, _super); function ProofTreeItem() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.leftLabel = null; _this.rigthLabel = null; _this.innerStack = new Stack_js_1.default(_this.factory, {}, true); return _this; } Object.defineProperty(ProofTreeItem.prototype, "kind", { get: function () { return 'proofTree'; }, enumerable: false, configurable: true }); ProofTreeItem.prototype.checkItem = function (item) { if (item.isKind('end') && item.getName() === 'prooftree') { var node = this.toMml(); BussproofsUtil.setProperty(node, 'proof', true); return [[this.factory.create('mml', node), item], true]; } if (item.isKind('stop')) { throw new TexError_js_1.default('EnvMissingEnd', 'Missing \\end{%1}', this.getName()); } this.innerStack.Push(item); return StackItem_js_1.BaseItem.fail; }; ProofTreeItem.prototype.toMml = function () { var tree = _super.prototype.toMml.call(this); var start = this.innerStack.Top(); if (start.isKind('start') && !start.Size()) { return tree; } this.innerStack.Push(this.factory.create('stop')); var prefix = this.innerStack.Top().toMml(); return this.create('node', 'mrow', [prefix, tree], {}); }; return ProofTreeItem; }(StackItem_js_1.BaseItem)); exports.ProofTreeItem = ProofTreeItem; //# sourceMappingURL=BussproofsItems.js.map /***/ }), /* 44 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.Stack["default"]; /***/ }), /* 45 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var BussproofsMethods_js_1 = __webpack_require__(46); var ParseMethods_js_1 = __webpack_require__(9); var SymbolMap_js_1 = __webpack_require__(1); new SymbolMap_js_1.CommandMap('Bussproofs-macros', { AxiomC: 'Axiom', UnaryInfC: ['Inference', 1], BinaryInfC: ['Inference', 2], TrinaryInfC: ['Inference', 3], QuaternaryInfC: ['Inference', 4], QuinaryInfC: ['Inference', 5], RightLabel: ['Label', 'right'], LeftLabel: ['Label', 'left'], AXC: 'Axiom', UIC: ['Inference', 1], BIC: ['Inference', 2], TIC: ['Inference', 3], RL: ['Label', 'right'], LL: ['Label', 'left'], noLine: ['SetLine', 'none', false], singleLine: ['SetLine', 'solid', false], solidLine: ['SetLine', 'solid', false], dashedLine: ['SetLine', 'dashed', false], alwaysNoLine: ['SetLine', 'none', true], alwaysSingleLine: ['SetLine', 'solid', true], alwaysSolidLine: ['SetLine', 'solid', true], alwaysDashedLine: ['SetLine', 'dashed', true], rootAtTop: ['RootAtTop', true], alwaysRootAtTop: ['RootAtTop', true], rootAtBottom: ['RootAtTop', false], alwaysRootAtBottom: ['RootAtTop', false], fCenter: 'FCenter', Axiom: 'AxiomF', UnaryInf: ['InferenceF', 1], BinaryInf: ['InferenceF', 2], TrinaryInf: ['InferenceF', 3], QuaternaryInf: ['InferenceF', 4], QuinaryInf: ['InferenceF', 5] }, BussproofsMethods_js_1.default); new SymbolMap_js_1.EnvironmentMap('Bussproofs-environments', ParseMethods_js_1.default.environment, { prooftree: ['Prooftree', null, false] }, BussproofsMethods_js_1.default); //# sourceMappingURL=BussproofsMappings.js.map /***/ }), /* 46 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); var TexError_js_1 = __webpack_require__(2); var TexParser_js_1 = __webpack_require__(5); var ParseUtil_js_1 = __webpack_require__(3); var BussproofsUtil = __webpack_require__(18); var BussproofsMethods = {}; BussproofsMethods.Prooftree = function (parser, begin) { parser.Push(begin); var newItem = parser.itemFactory.create('proofTree'). setProperties({ name: begin.getName(), line: 'solid', currentLine: 'solid', rootAtTop: false }); return newItem; }; BussproofsMethods.Axiom = function (parser, name) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } var content = paddedContent(parser, parser.GetArgument(name)); BussproofsUtil.setProperty(content, 'axiom', true); top.Push(content); }; var paddedContent = function (parser, content) { var nodes = ParseUtil_js_1.default.internalMath(parser, ParseUtil_js_1.default.trimSpaces(content), 0); if (!nodes[0].childNodes[0].childNodes.length) { return parser.create('node', 'mrow', []); } var lpad = parser.create('node', 'mspace', [], { width: '.5ex' }); var rpad = parser.create('node', 'mspace', [], { width: '.5ex' }); return parser.create('node', 'mrow', __spread([lpad], nodes, [rpad])); }; BussproofsMethods.Inference = function (parser, name, n) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } if (top.Size() < n) { throw new TexError_js_1.default('BadProofTree', 'Proof tree badly specified.'); } var rootAtTop = top.getProperty('rootAtTop'); var childCount = (n === 1 && !top.Peek()[0].childNodes.length) ? 0 : n; var children = []; do { if (children.length) { children.unshift(parser.create('node', 'mtd', [], {})); } children.unshift(parser.create('node', 'mtd', [top.Pop()], { 'rowalign': (rootAtTop ? 'top' : 'bottom') })); n--; } while (n > 0); var row = parser.create('node', 'mtr', children, {}); var table = parser.create('node', 'mtable', [row], { framespacing: '0 0' }); var conclusion = paddedContent(parser, parser.GetArgument(name)); var style = top.getProperty('currentLine'); if (style !== top.getProperty('line')) { top.setProperty('currentLine', top.getProperty('line')); } var rule = createRule(parser, table, [conclusion], top.getProperty('left'), top.getProperty('right'), style, rootAtTop); top.setProperty('left', null); top.setProperty('right', null); BussproofsUtil.setProperty(rule, 'inference', childCount); parser.configuration.addNode('inference', rule); top.Push(rule); }; function createRule(parser, premise, conclusions, left, right, style, rootAtTop) { var upper = parser.create('node', 'mtr', [parser.create('node', 'mtd', [premise], {})], {}); var lower = parser.create('node', 'mtr', [parser.create('node', 'mtd', conclusions, {})], {}); var rule = parser.create('node', 'mtable', rootAtTop ? [lower, upper] : [upper, lower], { align: 'top 2', rowlines: style, framespacing: '0 0' }); BussproofsUtil.setProperty(rule, 'inferenceRule', rootAtTop ? 'up' : 'down'); var leftLabel, rightLabel; if (left) { leftLabel = parser.create('node', 'mpadded', [left], { height: '+.5em', width: '+.5em', voffset: '-.15em' }); BussproofsUtil.setProperty(leftLabel, 'prooflabel', 'left'); } if (right) { rightLabel = parser.create('node', 'mpadded', [right], { height: '+.5em', width: '+.5em', voffset: '-.15em' }); BussproofsUtil.setProperty(rightLabel, 'prooflabel', 'right'); } var children, label; if (left && right) { children = [leftLabel, rule, rightLabel]; label = 'both'; } else if (left) { children = [leftLabel, rule]; label = 'left'; } else if (right) { children = [rule, rightLabel]; label = 'right'; } else { return rule; } rule = parser.create('node', 'mrow', children); BussproofsUtil.setProperty(rule, 'labelledRule', label); return rule; } BussproofsMethods.Label = function (parser, name, side) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } var content = ParseUtil_js_1.default.internalMath(parser, parser.GetArgument(name), 0); var label = (content.length > 1) ? parser.create('node', 'mrow', content, {}) : content[0]; top.setProperty(side, label); }; BussproofsMethods.SetLine = function (parser, _name, style, always) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } top.setProperty('currentLine', style); if (always) { top.setProperty('line', style); } }; BussproofsMethods.RootAtTop = function (parser, _name, where) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } top.setProperty('rootAtTop', where); }; BussproofsMethods.AxiomF = function (parser, name) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } var line = parseFCenterLine(parser, name); BussproofsUtil.setProperty(line, 'axiom', true); top.Push(line); }; function parseFCenterLine(parser, name) { var dollar = parser.GetNext(); if (dollar !== '$') { throw new TexError_js_1.default('IllegalUseOfCommand', 'Use of %1 does not match it\'s definition.', name); } parser.i++; var axiom = parser.GetUpTo(name, '$'); if (axiom.indexOf('\\fCenter') === -1) { throw new TexError_js_1.default('IllegalUseOfCommand', 'Missing \\fCenter in %1.', name); } var _a = __read(axiom.split('\\fCenter'), 2), prem = _a[0], conc = _a[1]; var premise = (new TexParser_js_1.default(prem, parser.stack.env, parser.configuration)).mml(); var conclusion = (new TexParser_js_1.default(conc, parser.stack.env, parser.configuration)).mml(); var fcenter = (new TexParser_js_1.default('\\fCenter', parser.stack.env, parser.configuration)).mml(); var left = parser.create('node', 'mtd', [premise], {}); var middle = parser.create('node', 'mtd', [fcenter], {}); var right = parser.create('node', 'mtd', [conclusion], {}); var row = parser.create('node', 'mtr', [left, middle, right], {}); var table = parser.create('node', 'mtable', [row], { columnspacing: '.5ex', columnalign: 'center 2' }); BussproofsUtil.setProperty(table, 'sequent', true); parser.configuration.addNode('sequent', row); return table; } BussproofsMethods.FCenter = function (_parser, _name) { }; BussproofsMethods.InferenceF = function (parser, name, n) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } if (top.Size() < n) { throw new TexError_js_1.default('BadProofTree', 'Proof tree badly specified.'); } var rootAtTop = top.getProperty('rootAtTop'); var childCount = (n === 1 && !top.Peek()[0].childNodes.length) ? 0 : n; var children = []; do { if (children.length) { children.unshift(parser.create('node', 'mtd', [], {})); } children.unshift(parser.create('node', 'mtd', [top.Pop()], { 'rowalign': (rootAtTop ? 'top' : 'bottom') })); n--; } while (n > 0); var row = parser.create('node', 'mtr', children, {}); var table = parser.create('node', 'mtable', [row], { framespacing: '0 0' }); var conclusion = parseFCenterLine(parser, name); var style = top.getProperty('currentLine'); if (style !== top.getProperty('line')) { top.setProperty('currentLine', top.getProperty('line')); } var rule = createRule(parser, table, [conclusion], top.getProperty('left'), top.getProperty('right'), style, rootAtTop); top.setProperty('left', null); top.setProperty('right', null); BussproofsUtil.setProperty(rule, 'inference', childCount); parser.configuration.addNode('inference', rule); top.Push(rule); }; exports.default = BussproofsMethods; //# sourceMappingURL=BussproofsMethods.js.map /***/ }), /* 47 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CancelConfiguration = exports.CancelMethods = void 0; var Configuration_js_1 = __webpack_require__(0); var TexConstants_js_1 = __webpack_require__(6); var SymbolMap_js_1 = __webpack_require__(1); var ParseUtil_js_1 = __webpack_require__(3); var EncloseConfiguration_js_1 = __webpack_require__(24); exports.CancelMethods = {}; exports.CancelMethods.Cancel = function (parser, name, notation) { var attr = parser.GetBrackets(name, ''); var math = parser.ParseArg(name); var def = ParseUtil_js_1.default.keyvalOptions(attr, EncloseConfiguration_js_1.ENCLOSE_OPTIONS); def['notation'] = notation; parser.Push(parser.create('node', 'menclose', [math], def)); }; exports.CancelMethods.CancelTo = function (parser, name) { var attr = parser.GetBrackets(name, ''); var value = parser.ParseArg(name); var math = parser.ParseArg(name); var def = ParseUtil_js_1.default.keyvalOptions(attr, EncloseConfiguration_js_1.ENCLOSE_OPTIONS); def['notation'] = [TexConstants_js_1.TexConstant.Notation.UPDIAGONALSTRIKE, TexConstants_js_1.TexConstant.Notation.UPDIAGONALARROW, TexConstants_js_1.TexConstant.Notation.NORTHEASTARROW].join(' '); value = parser.create('node', 'mpadded', [value], { depth: '-.1em', height: '+.1em', voffset: '.1em' }); parser.Push(parser.create('node', 'msup', [parser.create('node', 'menclose', [math], def), value])); }; new SymbolMap_js_1.CommandMap('cancel', { cancel: ['Cancel', TexConstants_js_1.TexConstant.Notation.UPDIAGONALSTRIKE], bcancel: ['Cancel', TexConstants_js_1.TexConstant.Notation.DOWNDIAGONALSTRIKE], xcancel: ['Cancel', TexConstants_js_1.TexConstant.Notation.UPDIAGONALSTRIKE + ' ' + TexConstants_js_1.TexConstant.Notation.DOWNDIAGONALSTRIKE], cancelto: 'CancelTo' }, exports.CancelMethods); exports.CancelConfiguration = Configuration_js_1.Configuration.create('cancel', { handler: { macro: ['cancel'] } }); //# sourceMappingURL=CancelConfiguration.js.map /***/ }), /* 48 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ColorConfiguration = void 0; var SymbolMap_js_1 = __webpack_require__(1); var Configuration_js_1 = __webpack_require__(0); var ColorMethods_js_1 = __webpack_require__(49); var ColorUtil_js_1 = __webpack_require__(50); new SymbolMap_js_1.CommandMap('color', { color: 'Color', textcolor: 'TextColor', definecolor: 'DefineColor', colorbox: 'ColorBox', fcolorbox: 'FColorBox' }, ColorMethods_js_1.ColorMethods); var config = function (_config, jax) { jax.parseOptions.packageData.set('color', { model: new ColorUtil_js_1.ColorModel() }); }; exports.ColorConfiguration = Configuration_js_1.Configuration.create('color', { handler: { macro: ['color'], }, options: { color: { padding: '5px', borderWidth: '2px' } }, config: config }); //# sourceMappingURL=ColorConfiguration.js.map /***/ }), /* 49 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ColorMethods = void 0; var NodeUtil_js_1 = __webpack_require__(4); var ParseUtil_js_1 = __webpack_require__(3); function padding(colorPadding) { var pad = "+" + colorPadding; var unit = colorPadding.replace(/^.*?([a-z]*)$/, '$1'); var pad2 = 2 * parseFloat(pad); return { width: "+" + pad2 + unit, height: pad, depth: pad, lspace: colorPadding, }; } exports.ColorMethods = {}; exports.ColorMethods.Color = function (parser, name) { var model = parser.GetBrackets(name, ''); var colorDef = parser.GetArgument(name); var colorModel = parser.configuration.packageData.get('color').model; var color = colorModel.getColor(model, colorDef); var style = parser.itemFactory.create('style') .setProperties({ styles: { mathcolor: color } }); parser.stack.env['color'] = color; parser.Push(style); }; exports.ColorMethods.TextColor = function (parser, name) { var model = parser.GetBrackets(name, ''); var colorDef = parser.GetArgument(name); var colorModel = parser.configuration.packageData.get('color').model; var color = colorModel.getColor(model, colorDef); var old = parser.stack.env['color']; parser.stack.env['color'] = color; var math = parser.ParseArg(name); if (old) { parser.stack.env['color'] = old; } else { delete parser.stack.env['color']; } var node = parser.create('node', 'mstyle', [math], { mathcolor: color }); parser.Push(node); }; exports.ColorMethods.DefineColor = function (parser, name) { var cname = parser.GetArgument(name); var model = parser.GetArgument(name); var def = parser.GetArgument(name); var colorModel = parser.configuration.packageData.get('color').model; colorModel.defineColor(model, cname, def); }; exports.ColorMethods.ColorBox = function (parser, name) { var cname = parser.GetArgument(name); var math = ParseUtil_js_1.default.internalMath(parser, parser.GetArgument(name)); var colorModel = parser.configuration.packageData.get('color').model; var node = parser.create('node', 'mpadded', math, { mathbackground: colorModel.getColor('named', cname) }); NodeUtil_js_1.default.setProperties(node, padding(parser.options.color.padding)); parser.Push(node); }; exports.ColorMethods.FColorBox = function (parser, name) { var fname = parser.GetArgument(name); var cname = parser.GetArgument(name); var math = ParseUtil_js_1.default.internalMath(parser, parser.GetArgument(name)); var options = parser.options.color; var colorModel = parser.configuration.packageData.get('color').model; var node = parser.create('node', 'mpadded', math, { mathbackground: colorModel.getColor('named', cname), style: "border: " + options.borderWidth + " solid " + colorModel.getColor('named', fname) }); NodeUtil_js_1.default.setProperties(node, padding(options.padding)); parser.Push(node); }; //# sourceMappingURL=ColorMethods.js.map /***/ }), /* 50 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ColorModel = void 0; var TexError_js_1 = __webpack_require__(2); var ColorConstants_js_1 = __webpack_require__(51); var ColorModelProcessors = new Map(); var ColorModel = (function () { function ColorModel() { this.userColors = new Map(); } ColorModel.prototype.normalizeColor = function (model, def) { if (!model || model === 'named') { return def; } if (ColorModelProcessors.has(model)) { var modelProcessor = ColorModelProcessors.get(model); return modelProcessor(def); } throw new TexError_js_1.default('UndefinedColorModel', 'Color model \'%1\' not defined', model); }; ColorModel.prototype.getColor = function (model, def) { if (!model || model === 'named') { return this.getColorByName(def); } return this.normalizeColor(model, def); }; ColorModel.prototype.getColorByName = function (name) { if (this.userColors.has(name)) { return this.userColors.get(name); } if (ColorConstants_js_1.COLORS.has(name)) { return ColorConstants_js_1.COLORS.get(name); } return name; }; ColorModel.prototype.defineColor = function (model, name, def) { var normalized = this.normalizeColor(model, def); this.userColors.set(name, normalized); }; return ColorModel; }()); exports.ColorModel = ColorModel; ColorModelProcessors.set('rgb', function (rgb) { var e_1, _a; var rgbParts = rgb.trim().split(/\s*,\s*/); var RGB = '#'; if (rgbParts.length !== 3) { throw new TexError_js_1.default('ModelArg1', 'Color values for the %1 model require 3 numbers', 'rgb'); } try { for (var rgbParts_1 = __values(rgbParts), rgbParts_1_1 = rgbParts_1.next(); !rgbParts_1_1.done; rgbParts_1_1 = rgbParts_1.next()) { var rgbPart = rgbParts_1_1.value; if (!rgbPart.match(/^(\d+(\.\d*)?|\.\d+)$/)) { throw new TexError_js_1.default('InvalidDecimalNumber', 'Invalid decimal number'); } var n = parseFloat(rgbPart); if (n < 0 || n > 1) { throw new TexError_js_1.default('ModelArg2', 'Color values for the %1 model must be between %2 and %3', 'rgb', '0', '1'); } var pn = Math.floor(n * 255).toString(16); if (pn.length < 2) { pn = '0' + pn; } RGB += pn; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (rgbParts_1_1 && !rgbParts_1_1.done && (_a = rgbParts_1.return)) _a.call(rgbParts_1); } finally { if (e_1) throw e_1.error; } } return RGB; }); ColorModelProcessors.set('RGB', function (rgb) { var e_2, _a; var rgbParts = rgb.trim().split(/\s*,\s*/); var RGB = '#'; if (rgbParts.length !== 3) { throw new TexError_js_1.default('ModelArg1', 'Color values for the %1 model require 3 numbers', 'RGB'); } try { for (var rgbParts_2 = __values(rgbParts), rgbParts_2_1 = rgbParts_2.next(); !rgbParts_2_1.done; rgbParts_2_1 = rgbParts_2.next()) { var rgbPart = rgbParts_2_1.value; if (!rgbPart.match(/^\d+$/)) { throw new TexError_js_1.default('InvalidNumber', 'Invalid number'); } var n = parseInt(rgbPart); if (n > 255) { throw new TexError_js_1.default('ModelArg2', 'Color values for the %1 model must be between %2 and %3', 'RGB', '0', '255'); } var pn = n.toString(16); if (pn.length < 2) { pn = '0' + pn; } RGB += pn; } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (rgbParts_2_1 && !rgbParts_2_1.done && (_a = rgbParts_2.return)) _a.call(rgbParts_2); } finally { if (e_2) throw e_2.error; } } return RGB; }); ColorModelProcessors.set('gray', function (gray) { if (!gray.match(/^\s*(\d+(\.\d*)?|\.\d+)\s*$/)) { throw new TexError_js_1.default('InvalidDecimalNumber', 'Invalid decimal number'); } var n = parseFloat(gray); if (n < 0 || n > 1) { throw new TexError_js_1.default('ModelArg2', 'Color values for the %1 model must be between %2 and %3', 'gray', '0', '1'); } var pn = Math.floor(n * 255).toString(16); if (pn.length < 2) { pn = '0' + pn; } return "#" + pn + pn + pn; }); //# sourceMappingURL=ColorUtil.js.map /***/ }), /* 51 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.COLORS = void 0; exports.COLORS = new Map([ ['Apricot', '#FBB982'], ['Aquamarine', '#00B5BE'], ['Bittersweet', '#C04F17'], ['Black', '#221E1F'], ['Blue', '#2D2F92'], ['BlueGreen', '#00B3B8'], ['BlueViolet', '#473992'], ['BrickRed', '#B6321C'], ['Brown', '#792500'], ['BurntOrange', '#F7921D'], ['CadetBlue', '#74729A'], ['CarnationPink', '#F282B4'], ['Cerulean', '#00A2E3'], ['CornflowerBlue', '#41B0E4'], ['Cyan', '#00AEEF'], ['Dandelion', '#FDBC42'], ['DarkOrchid', '#A4538A'], ['Emerald', '#00A99D'], ['ForestGreen', '#009B55'], ['Fuchsia', '#8C368C'], ['Goldenrod', '#FFDF42'], ['Gray', '#949698'], ['Green', '#00A64F'], ['GreenYellow', '#DFE674'], ['JungleGreen', '#00A99A'], ['Lavender', '#F49EC4'], ['LimeGreen', '#8DC73E'], ['Magenta', '#EC008C'], ['Mahogany', '#A9341F'], ['Maroon', '#AF3235'], ['Melon', '#F89E7B'], ['MidnightBlue', '#006795'], ['Mulberry', '#A93C93'], ['NavyBlue', '#006EB8'], ['OliveGreen', '#3C8031'], ['Orange', '#F58137'], ['OrangeRed', '#ED135A'], ['Orchid', '#AF72B0'], ['Peach', '#F7965A'], ['Periwinkle', '#7977B8'], ['PineGreen', '#008B72'], ['Plum', '#92268F'], ['ProcessBlue', '#00B0F0'], ['Purple', '#99479B'], ['RawSienna', '#974006'], ['Red', '#ED1B23'], ['RedOrange', '#F26035'], ['RedViolet', '#A1246B'], ['Rhodamine', '#EF559F'], ['RoyalBlue', '#0071BC'], ['RoyalPurple', '#613F99'], ['RubineRed', '#ED017D'], ['Salmon', '#F69289'], ['SeaGreen', '#3FBC9D'], ['Sepia', '#671800'], ['SkyBlue', '#46C5DD'], ['SpringGreen', '#C6DC67'], ['Tan', '#DA9D76'], ['TealBlue', '#00AEB3'], ['Thistle', '#D883B7'], ['Turquoise', '#00B4CE'], ['Violet', '#58429B'], ['VioletRed', '#EF58A0'], ['White', '#FFFFFF'], ['WildStrawberry', '#EE2967'], ['Yellow', '#FFF200'], ['YellowGreen', '#98CC70'], ['YellowOrange', '#FAA21A'], ]); //# sourceMappingURL=ColorConstants.js.map /***/ }), /* 52 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ColorConfiguration = exports.ColorV2Methods = void 0; var SymbolMap_js_1 = __webpack_require__(1); var Configuration_js_1 = __webpack_require__(0); exports.ColorV2Methods = { Color: function (parser, name) { var color = parser.GetArgument(name); var old = parser.stack.env['color']; parser.stack.env['color'] = color; var math = parser.ParseArg(name); if (old) { parser.stack.env['color'] = old; } else { delete parser.stack.env['color']; } var node = parser.create('node', 'mstyle', [math], { mathcolor: color }); parser.Push(node); } }; new SymbolMap_js_1.CommandMap('colorv2', { color: 'Color' }, exports.ColorV2Methods); exports.ColorConfiguration = Configuration_js_1.Configuration.create('colorv2', { handler: { macro: ['colorv2'] } }); //# sourceMappingURL=ColorV2Configuration.js.map /***/ }), /* 53 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConfigMacrosConfiguration = void 0; var Configuration_js_1 = __webpack_require__(0); var Options_js_1 = __webpack_require__(10); var SymbolMap_js_1 = __webpack_require__(1); var Symbol_js_1 = __webpack_require__(12); var NewcommandMethods_js_1 = __webpack_require__(25); var MACROSMAP = 'configmacros-map'; function configmacrosInit(config) { new SymbolMap_js_1.CommandMap(MACROSMAP, {}, {}); config.append(Configuration_js_1.Configuration.local({ handler: { macro: [MACROSMAP] }, priority: 3 })); } function configmacrosConfig(_config, jax) { var e_1, _a; var macrosMap = jax.parseOptions.handlers.retrieve(MACROSMAP); var macros = jax.parseOptions.options.macros; try { for (var _b = __values(Object.keys(macros)), _c = _b.next(); !_c.done; _c = _b.next()) { var cs = _c.value; var def = (typeof macros[cs] === 'string' ? [macros[cs]] : macros[cs]); var macro = Array.isArray(def[2]) ? new Symbol_js_1.Macro(cs, NewcommandMethods_js_1.default.MacroWithTemplate, def.slice(0, 2).concat(def[2])) : new Symbol_js_1.Macro(cs, NewcommandMethods_js_1.default.Macro, def); macrosMap.add(cs, macro); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } exports.ConfigMacrosConfiguration = Configuration_js_1.Configuration.create('configmacros', { init: configmacrosInit, config: configmacrosConfig, options: { macros: Options_js_1.expandable({}) } }); //# sourceMappingURL=ConfigMacrosConfiguration.js.map /***/ }), /* 54 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExtpfeilConfiguration = exports.ExtpfeilMethods = void 0; var Configuration_js_1 = __webpack_require__(0); var SymbolMap_js_1 = __webpack_require__(1); var AmsMethods_js_1 = __webpack_require__(11); var NewcommandUtil_js_1 = __webpack_require__(19); var NewcommandConfiguration_js_1 = __webpack_require__(26); var TexError_js_1 = __webpack_require__(2); exports.ExtpfeilMethods = {}; exports.ExtpfeilMethods.xArrow = AmsMethods_js_1.AmsMethods.xArrow; exports.ExtpfeilMethods.NewExtArrow = function (parser, name) { var cs = parser.GetArgument(name); var space = parser.GetArgument(name); var chr = parser.GetArgument(name); if (!cs.match(/^\\([a-z]+|.)$/i)) { throw new TexError_js_1.default('NewextarrowArg1', 'First argument to %1 must be a control sequence name', name); } if (!space.match(/^(\d+),(\d+)$/)) { throw new TexError_js_1.default('NewextarrowArg2', 'Second argument to %1 must be two integers separated by a comma', name); } if (!chr.match(/^(\d+|0x[0-9A-F]+)$/i)) { throw new TexError_js_1.default('NewextarrowArg3', 'Third argument to %1 must be a unicode character number', name); } cs = cs.substr(1); var spaces = space.split(','); NewcommandUtil_js_1.default.addMacro(parser, cs, exports.ExtpfeilMethods.xArrow, [parseInt(chr), parseInt(spaces[0]), parseInt(spaces[1])]); }; new SymbolMap_js_1.CommandMap('extpfeil', { xtwoheadrightarrow: ['xArrow', 0x21A0, 12, 16], xtwoheadleftarrow: ['xArrow', 0x219E, 17, 13], xmapsto: ['xArrow', 0x21A6, 6, 7], xlongequal: ['xArrow', 0x003D, 7, 7], xtofrom: ['xArrow', 0x21C4, 12, 12], Newextarrow: 'NewExtArrow' }, exports.ExtpfeilMethods); var init = function (config) { NewcommandConfiguration_js_1.NewcommandConfiguration.init(config); }; exports.ExtpfeilConfiguration = Configuration_js_1.Configuration.create('extpfeil', { handler: { macro: ['extpfeil'] }, init: init }); //# sourceMappingURL=ExtpfeilConfiguration.js.map /***/ }), /* 55 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.BeginEnvItem = void 0; var TexError_js_1 = __webpack_require__(2); var StackItem_js_1 = __webpack_require__(13); var BeginEnvItem = (function (_super) { __extends(BeginEnvItem, _super); function BeginEnvItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(BeginEnvItem.prototype, "kind", { get: function () { return 'beginEnv'; }, enumerable: false, configurable: true }); Object.defineProperty(BeginEnvItem.prototype, "isOpen", { get: function () { return true; }, enumerable: false, configurable: true }); BeginEnvItem.prototype.checkItem = function (item) { if (item.isKind('end')) { if (item.getName() !== this.getName()) { throw new TexError_js_1.default('EnvBadEnd', '\\begin{%1} ended with \\end{%2}', this.getName(), item.getName()); } return [[this.factory.create('mml', this.toMml())], true]; } if (item.isKind('stop')) { throw new TexError_js_1.default('EnvMissingEnd', 'Missing \\end{%1}', this.getName()); } return _super.prototype.checkItem.call(this, item); }; return BeginEnvItem; }(StackItem_js_1.BaseItem)); exports.BeginEnvItem = BeginEnvItem; //# sourceMappingURL=NewcommandItems.js.map /***/ }), /* 56 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var NewcommandMethods_js_1 = __webpack_require__(25); var SymbolMap_js_1 = __webpack_require__(1); new SymbolMap_js_1.CommandMap('Newcommand-macros', { newcommand: 'NewCommand', renewcommand: 'NewCommand', newenvironment: 'NewEnvironment', renewenvironment: 'NewEnvironment', def: 'MacroDef', 'let': 'Let' }, NewcommandMethods_js_1.default); //# sourceMappingURL=NewcommandMappings.js.map /***/ }), /* 57 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HtmlConfiguration = void 0; var Configuration_js_1 = __webpack_require__(0); var SymbolMap_js_1 = __webpack_require__(1); var HtmlMethods_js_1 = __webpack_require__(58); new SymbolMap_js_1.CommandMap('html_macros', { href: 'Href', 'class': 'Class', style: 'Style', cssId: 'Id' }, HtmlMethods_js_1.default); exports.HtmlConfiguration = Configuration_js_1.Configuration.create('html', { handler: { macro: ['html_macros'] } }); //# sourceMappingURL=HtmlConfiguration.js.map /***/ }), /* 58 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var NodeUtil_js_1 = __webpack_require__(4); var HtmlMethods = {}; HtmlMethods.Href = function (parser, name) { var url = parser.GetArgument(name); var arg = GetArgumentMML(parser, name); NodeUtil_js_1.default.setAttribute(arg, 'href', url); parser.Push(arg); }; HtmlMethods.Class = function (parser, name) { var CLASS = parser.GetArgument(name); var arg = GetArgumentMML(parser, name); var oldClass = NodeUtil_js_1.default.getAttribute(arg, 'class'); if (oldClass) { CLASS = oldClass + ' ' + CLASS; } NodeUtil_js_1.default.setAttribute(arg, 'class', CLASS); parser.Push(arg); }; HtmlMethods.Style = function (parser, name) { var style = parser.GetArgument(name); var arg = GetArgumentMML(parser, name); var oldStyle = NodeUtil_js_1.default.getAttribute(arg, 'style'); if (oldStyle) { if (style.charAt(style.length - 1) !== ';') { style += ';'; } style = oldStyle + ' ' + style; } NodeUtil_js_1.default.setAttribute(arg, 'style', style); parser.Push(arg); }; HtmlMethods.Id = function (parser, name) { var ID = parser.GetArgument(name); var arg = GetArgumentMML(parser, name); NodeUtil_js_1.default.setAttribute(arg, 'id', ID); parser.Push(arg); }; var GetArgumentMML = function (parser, name) { var arg = parser.ParseArg(name); if (!NodeUtil_js_1.default.isInferred(arg)) { return arg; } var children = NodeUtil_js_1.default.getChildren(arg); if (children.length === 1) { return children[0]; } var mrow = parser.create('node', 'mrow'); NodeUtil_js_1.default.copyChildren(arg, mrow); NodeUtil_js_1.default.copyAttributes(arg, mrow); return mrow; }; exports.default = HtmlMethods; //# sourceMappingURL=HtmlMethods.js.map /***/ }), /* 59 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MhchemConfiguration = void 0; var Configuration_js_1 = __webpack_require__(0); var SymbolMap_js_1 = __webpack_require__(1); var TexError_js_1 = __webpack_require__(2); var BaseMethods_js_1 = __webpack_require__(8); var AmsMethods_js_1 = __webpack_require__(11); var mhchem_parser_js_1 = __webpack_require__(60); var MhchemMethods = {}; MhchemMethods.Macro = BaseMethods_js_1.default.Macro; MhchemMethods.xArrow = AmsMethods_js_1.AmsMethods.xArrow; MhchemMethods.Machine = function (parser, name, machine) { try { var arg = parser.GetArgument(name); var data = mhchem_parser_js_1.mhchemParser.go(arg, machine); var tex = mhchem_parser_js_1.texify.go(data); parser.string = tex + parser.string.substr(parser.i); parser.i = 0; } catch (err) { throw new TexError_js_1.default(err[0], err[1], err.slice(2)); } }; new SymbolMap_js_1.CommandMap('mhchem', { ce: ['Machine', 'ce'], pu: ['Machine', 'pu'], longrightleftharpoons: ['Macro', '\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}'], longRightleftharpoons: ['Macro', '\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{\\leftharpoondown}}'], longLeftrightharpoons: ['Macro', '\\stackrel{\\textstyle\\vphantom{{-}}{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}'], longleftrightarrows: ['Macro', '\\stackrel{\\longrightarrow}{\\smash{\\longleftarrow}\\Rule{0px}{.25em}{0px}}'], tripledash: ['Macro', '\\vphantom{-}\\raise2mu{\\kern2mu\\tiny\\text{-}\\kern1mu\\text{-}\\kern1mu\\text{-}\\kern2mu}'], xrightarrow: ['xArrow', 0x2192, 5, 6], xleftarrow: ['xArrow', 0x2190, 7, 3], xleftrightarrow: ['xArrow', 0x2194, 6, 6], xrightleftharpoons: ['xArrow', 0x21CC, 5, 7], xRightleftharpoons: ['xArrow', 0x21CC, 5, 7], xLeftrightharpoons: ['xArrow', 0x21CC, 5, 7] }, MhchemMethods); exports.MhchemConfiguration = Configuration_js_1.Configuration.create('mhchem', { handler: { macro: ['mhchem'] } }); //# sourceMappingURL=MhchemConfiguration.js.map /***/ }), /* 60 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', {value: true}); // // Core parser for mhchem syntax (recursive) // /** @type {MhchemParser} */ var mhchemParser = { // // Parses mchem \ce syntax // // Call like // go("H2O"); // go: function (input, stateMachine) { if (!input) { return []; } if (stateMachine === undefined) { stateMachine = 'ce'; } var state = '0'; // // String buffers for parsing: // // buffer.a == amount // buffer.o == element // buffer.b == left-side superscript // buffer.p == left-side subscript // buffer.q == right-side subscript // buffer.d == right-side superscript // // buffer.r == arrow // buffer.rdt == arrow, script above, type // buffer.rd == arrow, script above, content // buffer.rqt == arrow, script below, type // buffer.rq == arrow, script below, content // // buffer.text_ // buffer.rm // etc. // // buffer.parenthesisLevel == int, starting at 0 // buffer.sb == bool, space before // buffer.beginsWithBond == bool // // These letters are also used as state names. // // Other states: // 0 == begin of main part (arrow/operator unlikely) // 1 == next entity // 2 == next entity (arrow/operator unlikely) // 3 == next atom // c == macro // /** @type {Buffer} */ var buffer = {}; buffer['parenthesisLevel'] = 0; input = input.replace(/\n/g, " "); input = input.replace(/[\u2212\u2013\u2014\u2010]/g, "-"); input = input.replace(/[\u2026]/g, "..."); // // Looks through mhchemParser.transitions, to execute a matching action // (recursive) // var lastInput; var watchdog = 10; /** @type {ParserOutput[]} */ var output = []; while (true) { if (lastInput !== input) { watchdog = 10; lastInput = input; } else { watchdog--; } // // Find actions in transition table // var machine = mhchemParser.stateMachines[stateMachine]; var t = machine.transitions[state] || machine.transitions['*']; iterateTransitions: for (var i=0; i 0) { if (!task.revisit) { input = matches.remainder; } if (!task.toContinue) { break iterateTransitions; } } else { return output; } } } // // Prevent infinite loop // if (watchdog <= 0) { throw ["MhchemBugU", "mhchem bug U. Please report."]; // Unexpected character } } }, concatArray: function (a, b) { if (b) { if (Array.isArray(b)) { for (var iB=0; iB': /^[=<>]/, '#': /^[#\u2261]/, '+': /^\+/, '-$': /^-(?=[\s_},;\]/]|$|\([a-z]+\))/, // -space -, -; -] -/ -$ -state-of-aggregation '-9': /^-(?=[0-9])/, '- orbital overlap': /^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/, '-': /^-/, 'pm-operator': /^(?:\\pm|\$\\pm\$|\+-|\+\/-)/, 'operator': /^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/, 'arrowUpDown': /^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/, '\\bond{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\bond{", "", "", "}"); }, '->': /^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/, 'CMT': /^[CMT](?=\[)/, '[(...)]': function (input) { return mhchemParser.patterns.findObserveGroups(input, "[", "", "", "]"); }, '1st-level escape': /^(&|\\\\|\\hline)\s*/, '\\,': /^(?:\\[,\ ;:])/, // \\x - but output no space before '\\x{}{}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "", /^\\[a-zA-Z]+\{/, "}", "", "", "{", "}", "", true); }, '\\x{}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "", /^\\[a-zA-Z]+\{/, "}", ""); }, '\\ca': /^\\ca(?:\s+|(?![a-zA-Z]))/, '\\x': /^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/, 'orbital': /^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/, // only those with numbers in front, because the others will be formatted correctly anyway 'others': /^[\/~|]/, '\\frac{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\frac{", "", "", "}", "{", "", "", "}"); }, '\\overset{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\overset{", "", "", "}", "{", "", "", "}"); }, '\\underset{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\underset{", "", "", "}", "{", "", "", "}"); }, '\\underbrace{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\underbrace{", "", "", "}_", "{", "", "", "}"); }, '\\color{(...)}0': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\color{", "", "", "}"); }, '\\color{(...)}{(...)}1': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\color{", "", "", "}", "{", "", "", "}"); }, '\\color(...){(...)}2': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\color", "\\", "", /^(?=\{)/, "{", "", "", "}"); }, '\\ce{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\ce{", "", "", "}"); }, 'oxidation$': /^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/, 'd-oxidation$': /^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/, // 0 could be oxidation or charge 'roman numeral': /^[IVX]+/, '1/2$': /^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/, 'amount': function (input) { var match; // e.g. 2, 0.5, 1/2, -2, n/2, +; $a$ could be added later in parsing match = input.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/); if (match) { return { match_: match[0], remainder: input.substr(match[0].length) }; } var a = mhchemParser.patterns.findObserveGroups(input, "", "$", "$", ""); if (a) { // e.g. $2n-1$, $-$ match = a.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/); if (match) { return { match_: match[0], remainder: input.substr(match[0].length) }; } } return null; }, 'amount2': function (input) { return this['amount'](input); }, '(KV letters),': /^(?:[A-Z][a-z]{0,2}|i)(?=,)/, 'formula$': function (input) { if (input.match(/^\([a-z]+\)$/)) { return null; } // state of aggregation = no formula var match = input.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/); if (match) { return { match_: match[0], remainder: input.substr(match[0].length) }; } return null; }, 'uprightEntities': /^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/, '/': /^\s*(\/)\s*/, '//': /^\s*(\/\/)\s*/, '*': /^\s*[*.]\s*/ }, findObserveGroups: function (input, begExcl, begIncl, endIncl, endExcl, beg2Excl, beg2Incl, end2Incl, end2Excl, combine) { /** @type {{(input: string, pattern: string | RegExp): string | string[] | null;}} */ var _match = function (input, pattern) { if (typeof pattern === "string") { if (input.indexOf(pattern) !== 0) { return null; } return pattern; } else { var match = input.match(pattern); if (!match) { return null; } return match[0]; } }; /** @type {{(input: string, i: number, endChars: string | RegExp): {endMatchBegin: number, endMatchEnd: number} | null;}} */ var _findObserveGroups = function (input, i, endChars) { var braces = 0; while (i < input.length) { var a = input.charAt(i); var match = _match(input.substr(i), endChars); if (match !== null && braces === 0) { return { endMatchBegin: i, endMatchEnd: i + match.length }; } else if (a === "{") { braces++; } else if (a === "}") { if (braces === 0) { throw ["ExtraCloseMissingOpen", "Extra close brace or missing open brace"]; } else { braces--; } } i++; } if (braces > 0) { return null; } return null; }; var match = _match(input, begExcl); if (match === null) { return null; } input = input.substr(match.length); match = _match(input, begIncl); if (match === null) { return null; } var e = _findObserveGroups(input, match.length, endIncl || endExcl); if (e === null) { return null; } var match1 = input.substring(0, (endIncl ? e.endMatchEnd : e.endMatchBegin)); if (!(beg2Excl || beg2Incl)) { return { match_: match1, remainder: input.substr(e.endMatchEnd) }; } else { var group2 = this.findObserveGroups(input.substr(e.endMatchEnd), beg2Excl, beg2Incl, end2Incl, end2Excl); if (group2 === null) { return null; } /** @type {string[]} */ var matchRet = [match1, group2.match_]; return { match_: (combine ? matchRet.join("") : matchRet), remainder: group2.remainder }; } }, // // Matching function // e.g. match("a", input) will look for the regexp called "a" and see if it matches // returns null or {match_:"a", remainder:"bc"} // match_: function (m, input) { var pattern = mhchemParser.patterns.patterns[m]; if (pattern === undefined) { throw ["MhchemBugP", "mhchem bug P. Please report. (" + m + ")"]; // Trying to use non-existing pattern } else if (typeof pattern === "function") { return mhchemParser.patterns.patterns[m](input); // cannot use cached var pattern here, because some pattern functions need this===mhchemParser } else { // RegExp var match = input.match(pattern); if (match) { var mm; if (match[2]) { mm = [ match[1], match[2] ]; } else if (match[1]) { mm = match[1]; } else { mm = match[0]; } return { match_: mm, remainder: input.substr(match[0].length) }; } return null; } } }, // // Generic state machine actions // actions: { 'a=': function (buffer, m) { buffer.a = (buffer.a || "") + m; }, 'b=': function (buffer, m) { buffer.b = (buffer.b || "") + m; }, 'p=': function (buffer, m) { buffer.p = (buffer.p || "") + m; }, 'o=': function (buffer, m) { buffer.o = (buffer.o || "") + m; }, 'q=': function (buffer, m) { buffer.q = (buffer.q || "") + m; }, 'd=': function (buffer, m) { buffer.d = (buffer.d || "") + m; }, 'rm=': function (buffer, m) { buffer.rm = (buffer.rm || "") + m; }, 'text=': function (buffer, m) { buffer.text_ = (buffer.text_ || "") + m; }, 'insert': function (buffer, m, a) { return { type_: a }; }, 'insert+p1': function (buffer, m, a) { return { type_: a, p1: m }; }, 'insert+p1+p2': function (buffer, m, a) { return { type_: a, p1: m[0], p2: m[1] }; }, 'copy': function (buffer, m) { return m; }, 'rm': function (buffer, m) { return { type_: 'rm', p1: m || ""}; }, 'text': function (buffer, m) { return mhchemParser.go(m, 'text'); }, '{text}': function (buffer, m) { var ret = [ "{" ]; mhchemParser.concatArray(ret, mhchemParser.go(m, 'text')); ret.push("}"); return ret; }, 'tex-math': function (buffer, m) { return mhchemParser.go(m, 'tex-math'); }, 'tex-math tight': function (buffer, m) { return mhchemParser.go(m, 'tex-math tight'); }, 'bond': function (buffer, m, k) { return { type_: 'bond', kind_: k || m }; }, 'color0-output': function (buffer, m) { return { type_: 'color0', color: m[0] }; }, 'ce': function (buffer, m) { return mhchemParser.go(m); }, '1/2': function (buffer, m) { /** @type {ParserOutput[]} */ var ret = []; if (m.match(/^[+\-]/)) { ret.push(m.substr(0, 1)); m = m.substr(1); } var n = m.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/); n[1] = n[1].replace(/\$/g, ""); ret.push({ type_: 'frac', p1: n[1], p2: n[2] }); if (n[3]) { n[3] = n[3].replace(/\$/g, ""); ret.push({ type_: 'tex-math', p1: n[3] }); } return ret; }, '9,9': function (buffer, m) { return mhchemParser.go(m, '9,9'); } }, // // createTransitions // convert { 'letter': { 'state': { action_: 'output' } } } to { 'state' => [ { pattern: 'letter', task: { action_: [{type_: 'output'}] } } ] } // with expansion of 'a|b' to 'a' and 'b' (at 2 places) // createTransitions: function (o) { var pattern, state; /** @type {string[]} */ var stateArray; var i; // // 1. Collect all states // /** @type {Transitions} */ var transitions = {}; for (pattern in o) { for (state in o[pattern]) { stateArray = state.split("|"); o[pattern][state].stateArray = stateArray; for (i=0; i': { '0|1|2|3': { action_: 'r=', nextState: 'r' }, 'a|as': { action_: [ 'output', 'r=' ], nextState: 'r' }, '*': { action_: [ 'output', 'r=' ], nextState: 'r' } }, '+': { 'o': { action_: 'd= kv', nextState: 'd' }, 'd|D': { action_: 'd=', nextState: 'd' }, 'q': { action_: 'd=', nextState: 'qd' }, 'qd|qD': { action_: 'd=', nextState: 'qd' }, 'dq': { action_: [ 'output', 'd=' ], nextState: 'd' }, '3': { action_: [ 'sb=false', 'output', 'operator' ], nextState: '0' } }, 'amount': { '0|2': { action_: 'a=', nextState: 'a' } }, 'pm-operator': { '0|1|2|a|as': { action_: [ 'sb=false', 'output', { type_: 'operator', option: '\\pm' } ], nextState: '0' } }, 'operator': { '0|1|2|a|as': { action_: [ 'sb=false', 'output', 'operator' ], nextState: '0' } }, '-$': { 'o|q': { action_: [ 'charge or bond', 'output' ], nextState: 'qd' }, 'd': { action_: 'd=', nextState: 'd' }, 'D': { action_: [ 'output', { type_: 'bond', option: "-" } ], nextState: '3' }, 'q': { action_: 'd=', nextState: 'qd' }, 'qd': { action_: 'd=', nextState: 'qd' }, 'qD|dq': { action_: [ 'output', { type_: 'bond', option: "-" } ], nextState: '3' } }, '-9': { '3|o': { action_: [ 'output', { type_: 'insert', option: 'hyphen' } ], nextState: '3' } }, '- orbital overlap': { 'o': { action_: [ 'output', { type_: 'insert', option: 'hyphen' } ], nextState: '2' }, 'd': { action_: [ 'output', { type_: 'insert', option: 'hyphen' } ], nextState: '2' } }, '-': { '0|1|2': { action_: [ { type_: 'output', option: 1 }, 'beginsWithBond=true', { type_: 'bond', option: "-" } ], nextState: '3' }, '3': { action_: { type_: 'bond', option: "-" } }, 'a': { action_: [ 'output', { type_: 'insert', option: 'hyphen' } ], nextState: '2' }, 'as': { action_: [ { type_: 'output', option: 2 }, { type_: 'bond', option: "-" } ], nextState: '3' }, 'b': { action_: 'b=' }, 'o': { action_: { type_: '- after o/d', option: false }, nextState: '2' }, 'q': { action_: { type_: '- after o/d', option: false }, nextState: '2' }, 'd|qd|dq': { action_: { type_: '- after o/d', option: true }, nextState: '2' }, 'D|qD|p': { action_: [ 'output', { type_: 'bond', option: "-" } ], nextState: '3' } }, 'amount2': { '1|3': { action_: 'a=', nextState: 'a' } }, 'letters': { '0|1|2|3|a|as|b|p|bp|o': { action_: 'o=', nextState: 'o' }, 'q|dq': { action_: ['output', 'o='], nextState: 'o' }, 'd|D|qd|qD': { action_: 'o after d', nextState: 'o' } }, 'digits': { 'o': { action_: 'q=', nextState: 'q' }, 'd|D': { action_: 'q=', nextState: 'dq' }, 'q': { action_: [ 'output', 'o=' ], nextState: 'o' }, 'a': { action_: 'o=', nextState: 'o' } }, 'space A': { 'b|p|bp': {} }, 'space': { 'a': { nextState: 'as' }, '0': { action_: 'sb=false' }, '1|2': { action_: 'sb=true' }, 'r|rt|rd|rdt|rdq': { action_: 'output', nextState: '0' }, '*': { action_: [ 'output', 'sb=true' ], nextState: '1'} }, '1st-level escape': { '1|2': { action_: [ 'output', { type_: 'insert+p1', option: '1st-level escape' } ] }, '*': { action_: [ 'output', { type_: 'insert+p1', option: '1st-level escape' } ], nextState: '0' } }, '[(...)]': { 'r|rt': { action_: 'rd=', nextState: 'rd' }, 'rd|rdt': { action_: 'rq=', nextState: 'rdq' } }, '...': { 'o|d|D|dq|qd|qD': { action_: [ 'output', { type_: 'bond', option: "..." } ], nextState: '3' }, '*': { action_: [ { type_: 'output', option: 1 }, { type_: 'insert', option: 'ellipsis' } ], nextState: '1' } }, '. |* ': { '*': { action_: [ 'output', { type_: 'insert', option: 'addition compound' } ], nextState: '1' } }, 'state of aggregation $': { '*': { action_: [ 'output', 'state of aggregation' ], nextState: '1' } }, '{[(': { 'a|as|o': { action_: [ 'o=', 'output', 'parenthesisLevel++' ], nextState: '2' }, '0|1|2|3': { action_: [ 'o=', 'output', 'parenthesisLevel++' ], nextState: '2' }, '*': { action_: [ 'output', 'o=', 'output', 'parenthesisLevel++' ], nextState: '2' } }, ')]}': { '0|1|2|3|b|p|bp|o': { action_: [ 'o=', 'parenthesisLevel--' ], nextState: 'o' }, 'a|as|d|D|q|qd|qD|dq': { action_: [ 'output', 'o=', 'parenthesisLevel--' ], nextState: 'o' } }, ', ': { '*': { action_: [ 'output', 'comma' ], nextState: '0' } }, '^_': { // ^ and _ without a sensible argument '*': { } }, '^{(...)}|^($...$)': { '0|1|2|as': { action_: 'b=', nextState: 'b' }, 'p': { action_: 'b=', nextState: 'bp' }, '3|o': { action_: 'd= kv', nextState: 'D' }, 'q': { action_: 'd=', nextState: 'qD' }, 'd|D|qd|qD|dq': { action_: [ 'output', 'd=' ], nextState: 'D' } }, '^a|^\\x{}{}|^\\x{}|^\\x|\'': { '0|1|2|as': { action_: 'b=', nextState: 'b' }, 'p': { action_: 'b=', nextState: 'bp' }, '3|o': { action_: 'd= kv', nextState: 'd' }, 'q': { action_: 'd=', nextState: 'qd' }, 'd|qd|D|qD': { action_: 'd=' }, 'dq': { action_: [ 'output', 'd=' ], nextState: 'd' } }, '_{(state of aggregation)}$': { 'd|D|q|qd|qD|dq': { action_: [ 'output', 'q=' ], nextState: 'q' } }, '_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x': { '0|1|2|as': { action_: 'p=', nextState: 'p' }, 'b': { action_: 'p=', nextState: 'bp' }, '3|o': { action_: 'q=', nextState: 'q' }, 'd|D': { action_: 'q=', nextState: 'dq' }, 'q|qd|qD|dq': { action_: [ 'output', 'q=' ], nextState: 'q' } }, '=<>': { '0|1|2|3|a|as|o|q|d|D|qd|qD|dq': { action_: [ { type_: 'output', option: 2 }, 'bond' ], nextState: '3' } }, '#': { '0|1|2|3|a|as|o': { action_: [ { type_: 'output', option: 2 }, { type_: 'bond', option: "#" } ], nextState: '3' } }, '{}': { '*': { action_: { type_: 'output', option: 1 }, nextState: '1' } }, '{...}': { '0|1|2|3|a|as|b|p|bp': { action_: 'o=', nextState: 'o' }, 'o|d|D|q|qd|qD|dq': { action_: [ 'output', 'o=' ], nextState: 'o' } }, '$...$': { 'a': { action_: 'a=' }, // 2$n$ '0|1|2|3|as|b|p|bp|o': { action_: 'o=', nextState: 'o' }, // not 'amount' 'as|o': { action_: 'o=' }, 'q|d|D|qd|qD|dq': { action_: [ 'output', 'o=' ], nextState: 'o' } }, '\\bond{(...)}': { '*': { action_: [ { type_: 'output', option: 2 }, 'bond' ], nextState: "3" } }, '\\frac{(...)}': { '*': { action_: [ { type_: 'output', option: 1 }, 'frac-output' ], nextState: '3' } }, '\\overset{(...)}': { '*': { action_: [ { type_: 'output', option: 2 }, 'overset-output' ], nextState: '3' } }, '\\underset{(...)}': { '*': { action_: [ { type_: 'output', option: 2 }, 'underset-output' ], nextState: '3' } }, '\\underbrace{(...)}': { '*': { action_: [ { type_: 'output', option: 2 }, 'underbrace-output' ], nextState: '3' } }, '\\color{(...)}{(...)}1|\\color(...){(...)}2': { '*': { action_: [ { type_: 'output', option: 2 }, 'color-output' ], nextState: '3' } }, '\\color{(...)}0': { '*': { action_: [ { type_: 'output', option: 2 }, 'color0-output' ] } }, '\\ce{(...)}': { '*': { action_: [ { type_: 'output', option: 2 }, 'ce' ], nextState: '3' } }, '\\,': { '*': { action_: [ { type_: 'output', option: 1 }, 'copy' ], nextState: '1' } }, '\\x{}{}|\\x{}|\\x': { '0|1|2|3|a|as|b|p|bp|o|c0': { action_: [ 'o=', 'output' ], nextState: '3' }, '*': { action_: ['output', 'o=', 'output' ], nextState: '3' } }, 'others': { '*': { action_: [ { type_: 'output', option: 1 }, 'copy' ], nextState: '3' } }, 'else2': { 'a': { action_: 'a to o', nextState: 'o', revisit: true }, 'as': { action_: [ 'output', 'sb=true' ], nextState: '1', revisit: true }, 'r|rt|rd|rdt|rdq': { action_: [ 'output' ], nextState: '0', revisit: true }, '*': { action_: [ 'output', 'copy' ], nextState: '3' } } }), actions: { 'o after d': function (buffer, m) { var ret; if ((buffer.d || "").match(/^[0-9]+$/)) { var tmp = buffer.d; buffer.d = undefined; ret = this['output'](buffer); buffer.b = tmp; } else { ret = this['output'](buffer); } mhchemParser.actions['o='](buffer, m); return ret; }, 'd= kv': function (buffer, m) { buffer.d = m; buffer.dType = 'kv'; }, 'charge or bond': function (buffer, m) { if (buffer['beginsWithBond']) { /** @type {ParserOutput[]} */ var ret = []; mhchemParser.concatArray(ret, this['output'](buffer)); mhchemParser.concatArray(ret, mhchemParser.actions['bond'](buffer, m, "-")); return ret; } else { buffer.d = m; } }, '- after o/d': function (buffer, m, isAfterD) { var c1 = mhchemParser.patterns.match_('orbital', buffer.o || ""); var c2 = mhchemParser.patterns.match_('one lowercase greek letter $', buffer.o || ""); var c3 = mhchemParser.patterns.match_('one lowercase latin letter $', buffer.o || ""); var c4 = mhchemParser.patterns.match_('$one lowercase latin letter$ $', buffer.o || ""); var hyphenFollows = m==="-" && ( c1 && c1.remainder==="" || c2 || c3 || c4 ); if (hyphenFollows && !buffer.a && !buffer.b && !buffer.p && !buffer.d && !buffer.q && !c1 && c3) { buffer.o = '$' + buffer.o + '$'; } /** @type {ParserOutput[]} */ var ret = []; if (hyphenFollows) { mhchemParser.concatArray(ret, this['output'](buffer)); ret.push({ type_: 'hyphen' }); } else { c1 = mhchemParser.patterns.match_('digits', buffer.d || ""); if (isAfterD && c1 && c1.remainder==='') { mhchemParser.concatArray(ret, mhchemParser.actions['d='](buffer, m)); mhchemParser.concatArray(ret, this['output'](buffer)); } else { mhchemParser.concatArray(ret, this['output'](buffer)); mhchemParser.concatArray(ret, mhchemParser.actions['bond'](buffer, m, "-")); } } return ret; }, 'a to o': function (buffer) { buffer.o = buffer.a; buffer.a = undefined; }, 'sb=true': function (buffer) { buffer.sb = true; }, 'sb=false': function (buffer) { buffer.sb = false; }, 'beginsWithBond=true': function (buffer) { buffer['beginsWithBond'] = true; }, 'beginsWithBond=false': function (buffer) { buffer['beginsWithBond'] = false; }, 'parenthesisLevel++': function (buffer) { buffer['parenthesisLevel']++; }, 'parenthesisLevel--': function (buffer) { buffer['parenthesisLevel']--; }, 'state of aggregation': function (buffer, m) { return { type_: 'state of aggregation', p1: mhchemParser.go(m, 'o') }; }, 'comma': function (buffer, m) { var a = m.replace(/\s*$/, ''); var withSpace = (a !== m); if (withSpace && buffer['parenthesisLevel'] === 0) { return { type_: 'comma enumeration L', p1: a }; } else { return { type_: 'comma enumeration M', p1: a }; } }, 'output': function (buffer, m, entityFollows) { // entityFollows: // undefined = if we have nothing else to output, also ignore the just read space (buffer.sb) // 1 = an entity follows, never omit the space if there was one just read before (can only apply to state 1) // 2 = 1 + the entity can have an amount, so output a\, instead of converting it to o (can only apply to states a|as) /** @type {ParserOutput | ParserOutput[]} */ var ret; if (!buffer.r) { ret = []; if (!buffer.a && !buffer.b && !buffer.p && !buffer.o && !buffer.q && !buffer.d && !entityFollows) { //ret = []; } else { if (buffer.sb) { ret.push({ type_: 'entitySkip' }); } if (!buffer.o && !buffer.q && !buffer.d && !buffer.b && !buffer.p && entityFollows!==2) { buffer.o = buffer.a; buffer.a = undefined; } else if (!buffer.o && !buffer.q && !buffer.d && (buffer.b || buffer.p)) { buffer.o = buffer.a; buffer.d = buffer.b; buffer.q = buffer.p; buffer.a = buffer.b = buffer.p = undefined; } else { if (buffer.o && buffer.dType==='kv' && mhchemParser.patterns.match_('d-oxidation$', buffer.d || "")) { buffer.dType = 'oxidation'; } else if (buffer.o && buffer.dType==='kv' && !buffer.q) { buffer.dType = undefined; } } ret.push({ type_: 'chemfive', a: mhchemParser.go(buffer.a, 'a'), b: mhchemParser.go(buffer.b, 'bd'), p: mhchemParser.go(buffer.p, 'pq'), o: mhchemParser.go(buffer.o, 'o'), q: mhchemParser.go(buffer.q, 'pq'), d: mhchemParser.go(buffer.d, (buffer.dType === 'oxidation' ? 'oxidation' : 'bd')), dType: buffer.dType }); } } else { // r /** @type {ParserOutput[]} */ var rd; if (buffer.rdt === 'M') { rd = mhchemParser.go(buffer.rd, 'tex-math'); } else if (buffer.rdt === 'T') { rd = [ { type_: 'text', p1: buffer.rd || "" } ]; } else { rd = mhchemParser.go(buffer.rd); } /** @type {ParserOutput[]} */ var rq; if (buffer.rqt === 'M') { rq = mhchemParser.go(buffer.rq, 'tex-math'); } else if (buffer.rqt === 'T') { rq = [ { type_: 'text', p1: buffer.rq || ""} ]; } else { rq = mhchemParser.go(buffer.rq); } ret = { type_: 'arrow', r: buffer.r, rd: rd, rq: rq }; } for (var p in buffer) { if (p !== 'parenthesisLevel' && p !== 'beginsWithBond') { delete buffer[p]; } } return ret; }, 'oxidation-output': function (buffer, m) { var ret = [ "{" ]; mhchemParser.concatArray(ret, mhchemParser.go(m, 'oxidation')); ret.push("}"); return ret; }, 'frac-output': function (buffer, m) { return { type_: 'frac-ce', p1: mhchemParser.go(m[0]), p2: mhchemParser.go(m[1]) }; }, 'overset-output': function (buffer, m) { return { type_: 'overset', p1: mhchemParser.go(m[0]), p2: mhchemParser.go(m[1]) }; }, 'underset-output': function (buffer, m) { return { type_: 'underset', p1: mhchemParser.go(m[0]), p2: mhchemParser.go(m[1]) }; }, 'underbrace-output': function (buffer, m) { return { type_: 'underbrace', p1: mhchemParser.go(m[0]), p2: mhchemParser.go(m[1]) }; }, 'color-output': function (buffer, m) { return { type_: 'color', color1: m[0], color2: mhchemParser.go(m[1]) }; }, 'r=': function (buffer, m) { buffer.r = m; }, 'rdt=': function (buffer, m) { buffer.rdt = m; }, 'rd=': function (buffer, m) { buffer.rd = m; }, 'rqt=': function (buffer, m) { buffer.rqt = m; }, 'rq=': function (buffer, m) { buffer.rq = m; }, 'operator': function (buffer, m, p1) { return { type_: 'operator', kind_: (p1 || m) }; } } }, 'a': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, '1/2$': { '0': { action_: '1/2' } }, 'else': { '0': { nextState: '1', revisit: true } }, '$(...)$': { '*': { action_: 'tex-math tight', nextState: '1' } }, ',': { '*': { action_: { type_: 'insert', option: 'commaDecimal' } } }, 'else2': { '*': { action_: 'copy' } } }), actions: {} }, 'o': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, '1/2$': { '0': { action_: '1/2' } }, 'else': { '0': { nextState: '1', revisit: true } }, 'letters': { '*': { action_: 'rm' } }, '\\ca': { '*': { action_: { type_: 'insert', option: 'circa' } } }, '\\x{}{}|\\x{}|\\x': { '*': { action_: 'copy' } }, '${(...)}$|$(...)$': { '*': { action_: 'tex-math' } }, '{(...)}': { '*': { action_: '{text}' } }, 'else2': { '*': { action_: 'copy' } } }), actions: {} }, 'text': { transitions: mhchemParser.createTransitions({ 'empty': { '*': { action_: 'output' } }, '{...}': { '*': { action_: 'text=' } }, '${(...)}$|$(...)$': { '*': { action_: 'tex-math' } }, '\\greek': { '*': { action_: [ 'output', 'rm' ] } }, '\\,|\\x{}{}|\\x{}|\\x': { '*': { action_: [ 'output', 'copy' ] } }, 'else': { '*': { action_: 'text=' } } }), actions: { 'output': function (buffer) { if (buffer.text_) { /** @type {ParserOutput} */ var ret = { type_: 'text', p1: buffer.text_ }; for (var p in buffer) { delete buffer[p]; } return ret; } } } }, 'pq': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, 'state of aggregation $': { '*': { action_: 'state of aggregation' } }, 'i$': { '0': { nextState: '!f', revisit: true } }, '(KV letters),': { '0': { action_: 'rm', nextState: '0' } }, 'formula$': { '0': { nextState: 'f', revisit: true } }, '1/2$': { '0': { action_: '1/2' } }, 'else': { '0': { nextState: '!f', revisit: true } }, '${(...)}$|$(...)$': { '*': { action_: 'tex-math' } }, '{(...)}': { '*': { action_: 'text' } }, 'a-z': { 'f': { action_: 'tex-math' } }, 'letters': { '*': { action_: 'rm' } }, '-9.,9': { '*': { action_: '9,9' } }, ',': { '*': { action_: { type_: 'insert+p1', option: 'comma enumeration S' } } }, '\\color{(...)}{(...)}1|\\color(...){(...)}2': { '*': { action_: 'color-output' } }, '\\color{(...)}0': { '*': { action_: 'color0-output' } }, '\\ce{(...)}': { '*': { action_: 'ce' } }, '\\,|\\x{}{}|\\x{}|\\x': { '*': { action_: 'copy' } }, 'else2': { '*': { action_: 'copy' } } }), actions: { 'state of aggregation': function (buffer, m) { return { type_: 'state of aggregation subscript', p1: mhchemParser.go(m, 'o') }; }, 'color-output': function (buffer, m) { return { type_: 'color', color1: m[0], color2: mhchemParser.go(m[1], 'pq') }; } } }, 'bd': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, 'x$': { '0': { nextState: '!f', revisit: true } }, 'formula$': { '0': { nextState: 'f', revisit: true } }, 'else': { '0': { nextState: '!f', revisit: true } }, '-9.,9 no missing 0': { '*': { action_: '9,9' } }, '.': { '*': { action_: { type_: 'insert', option: 'electron dot' } } }, 'a-z': { 'f': { action_: 'tex-math' } }, 'x': { '*': { action_: { type_: 'insert', option: 'KV x' } } }, 'letters': { '*': { action_: 'rm' } }, '\'': { '*': { action_: { type_: 'insert', option: 'prime' } } }, '${(...)}$|$(...)$': { '*': { action_: 'tex-math' } }, '{(...)}': { '*': { action_: 'text' } }, '\\color{(...)}{(...)}1|\\color(...){(...)}2': { '*': { action_: 'color-output' } }, '\\color{(...)}0': { '*': { action_: 'color0-output' } }, '\\ce{(...)}': { '*': { action_: 'ce' } }, '\\,|\\x{}{}|\\x{}|\\x': { '*': { action_: 'copy' } }, 'else2': { '*': { action_: 'copy' } } }), actions: { 'color-output': function (buffer, m) { return { type_: 'color', color1: m[0], color2: mhchemParser.go(m[1], 'bd') }; } } }, 'oxidation': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, 'roman numeral': { '*': { action_: 'roman-numeral' } }, '${(...)}$|$(...)$': { '*': { action_: 'tex-math' } }, 'else': { '*': { action_: 'copy' } } }), actions: { 'roman-numeral': function (buffer, m) { return { type_: 'roman numeral', p1: m || "" }; } } }, 'tex-math': { transitions: mhchemParser.createTransitions({ 'empty': { '*': { action_: 'output' } }, '\\ce{(...)}': { '*': { action_: [ 'output', 'ce' ] } }, '{...}|\\,|\\x{}{}|\\x{}|\\x': { '*': { action_: 'o=' } }, 'else': { '*': { action_: 'o=' } } }), actions: { 'output': function (buffer) { if (buffer.o) { /** @type {ParserOutput} */ var ret = { type_: 'tex-math', p1: buffer.o }; for (var p in buffer) { delete buffer[p]; } return ret; } } } }, 'tex-math tight': { transitions: mhchemParser.createTransitions({ 'empty': { '*': { action_: 'output' } }, '\\ce{(...)}': { '*': { action_: [ 'output', 'ce' ] } }, '{...}|\\,|\\x{}{}|\\x{}|\\x': { '*': { action_: 'o=' } }, '-|+': { '*': { action_: 'tight operator' } }, 'else': { '*': { action_: 'o=' } } }), actions: { 'tight operator': function (buffer, m) { buffer.o = (buffer.o || "") + "{"+m+"}"; }, 'output': function (buffer) { if (buffer.o) { /** @type {ParserOutput} */ var ret = { type_: 'tex-math', p1: buffer.o }; for (var p in buffer) { delete buffer[p]; } return ret; } } } }, '9,9': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, ',': { '*': { action_: 'comma' } }, 'else': { '*': { action_: 'copy' } } }), actions: { 'comma': function () { return { type_: 'commaDecimal' }; } } }, //#endregion // // \pu state machines // //#region pu 'pu': { transitions: mhchemParser.createTransitions({ 'empty': { '*': { action_: 'output' } }, 'space$': { '*': { action_: [ 'output', 'space' ] } }, '{[(|)]}': { '0|a': { action_: 'copy' } }, '(-)(9)^(-9)': { '0': { action_: 'number^', nextState: 'a' } }, '(-)(9.,9)(e)(99)': { '0': { action_: 'enumber', nextState: 'a' } }, 'space': { '0|a': {} }, 'pm-operator': { '0|a': { action_: { type_: 'operator', option: '\\pm' }, nextState: '0' } }, 'operator': { '0|a': { action_: 'copy', nextState: '0' } }, '//': { 'd': { action_: 'o=', nextState: '/' } }, '/': { 'd': { action_: 'o=', nextState: '/' } }, '{...}|else': { '0|d': { action_: 'd=', nextState: 'd' }, 'a': { action_: [ 'space', 'd=' ], nextState: 'd' }, '/|q': { action_: 'q=', nextState: 'q' } } }), actions: { 'enumber': function (buffer, m) { /** @type {ParserOutput[]} */ var ret = []; if (m[0] === "+-" || m[0] === "+/-") { ret.push("\\pm "); } else if (m[0]) { ret.push(m[0]); } if (m[1]) { mhchemParser.concatArray(ret, mhchemParser.go(m[1], 'pu-9,9')); if (m[2]) { if (m[2].match(/[,.]/)) { mhchemParser.concatArray(ret, mhchemParser.go(m[2], 'pu-9,9')); } else { ret.push(m[2]); } } m[3] = m[4] || m[3]; if (m[3]) { m[3] = m[3].trim(); if (m[3] === "e" || m[3].substr(0, 1) === "*") { ret.push({ type_: 'cdot' }); } else { ret.push({ type_: 'times' }); } } } if (m[3]) { ret.push("10^{"+m[5]+"}"); } return ret; }, 'number^': function (buffer, m) { /** @type {ParserOutput[]} */ var ret = []; if (m[0] === "+-" || m[0] === "+/-") { ret.push("\\pm "); } else if (m[0]) { ret.push(m[0]); } mhchemParser.concatArray(ret, mhchemParser.go(m[1], 'pu-9,9')); ret.push("^{"+m[2]+"}"); return ret; }, 'operator': function (buffer, m, p1) { return { type_: 'operator', kind_: (p1 || m) }; }, 'space': function () { return { type_: 'pu-space-1' }; }, 'output': function (buffer) { /** @type {ParserOutput | ParserOutput[]} */ var ret; var md = mhchemParser.patterns.match_('{(...)}', buffer.d || ""); if (md && md.remainder === '') { buffer.d = md.match_; } var mq = mhchemParser.patterns.match_('{(...)}', buffer.q || ""); if (mq && mq.remainder === '') { buffer.q = mq.match_; } if (buffer.d) { buffer.d = buffer.d.replace(/\u00B0C|\^oC|\^{o}C/g, "{}^{\\circ}C"); buffer.d = buffer.d.replace(/\u00B0F|\^oF|\^{o}F/g, "{}^{\\circ}F"); } if (buffer.q) { // fraction buffer.q = buffer.q.replace(/\u00B0C|\^oC|\^{o}C/g, "{}^{\\circ}C"); buffer.q = buffer.q.replace(/\u00B0F|\^oF|\^{o}F/g, "{}^{\\circ}F"); var b5 = { d: mhchemParser.go(buffer.d, 'pu'), q: mhchemParser.go(buffer.q, 'pu') }; if (buffer.o === '//') { ret = { type_: 'pu-frac', p1: b5.d, p2: b5.q }; } else { ret = b5.d; if (b5.d.length > 1 || b5.q.length > 1) { ret.push({ type_: ' / ' }); } else { ret.push({ type_: '/' }); } mhchemParser.concatArray(ret, b5.q); } } else { // no fraction ret = mhchemParser.go(buffer.d, 'pu-2'); } for (var p in buffer) { delete buffer[p]; } return ret; } } }, 'pu-2': { transitions: mhchemParser.createTransitions({ 'empty': { '*': { action_: 'output' } }, '*': { '*': { action_: [ 'output', 'cdot' ], nextState: '0' } }, '\\x': { '*': { action_: 'rm=' } }, 'space': { '*': { action_: [ 'output', 'space' ], nextState: '0' } }, '^{(...)}|^(-1)': { '1': { action_: '^(-1)' } }, '-9.,9': { '0': { action_: 'rm=', nextState: '0' }, '1': { action_: '^(-1)', nextState: '0' } }, '{...}|else': { '*': { action_: 'rm=', nextState: '1' } } }), actions: { 'cdot': function () { return { type_: 'tight cdot' }; }, '^(-1)': function (buffer, m) { buffer.rm += "^{"+m+"}"; }, 'space': function () { return { type_: 'pu-space-2' }; }, 'output': function (buffer) { /** @type {ParserOutput | ParserOutput[]} */ var ret = []; if (buffer.rm) { var mrm = mhchemParser.patterns.match_('{(...)}', buffer.rm || ""); if (mrm && mrm.remainder === '') { ret = mhchemParser.go(mrm.match_, 'pu'); } else { ret = { type_: 'rm', p1: buffer.rm }; } } for (var p in buffer) { delete buffer[p]; } return ret; } } }, 'pu-9,9': { transitions: mhchemParser.createTransitions({ 'empty': { '0': { action_: 'output-0' }, 'o': { action_: 'output-o' } }, ',': { '0': { action_: [ 'output-0', 'comma' ], nextState: 'o' } }, '.': { '0': { action_: [ 'output-0', 'copy' ], nextState: 'o' } }, 'else': { '*': { action_: 'text=' } } }), actions: { 'comma': function () { return { type_: 'commaDecimal' }; }, 'output-0': function (buffer) { /** @type {ParserOutput[]} */ var ret = []; buffer.text_ = buffer.text_ || ""; if (buffer.text_.length > 4) { var a = buffer.text_.length % 3; if (a === 0) { a = 3; } for (var i=buffer.text_.length-3; i>0; i-=3) { ret.push(buffer.text_.substr(i, 3)); ret.push({ type_: '1000 separator' }); } ret.push(buffer.text_.substr(0, a)); ret.reverse(); } else { ret.push(buffer.text_); } for (var p in buffer) { delete buffer[p]; } return ret; }, 'output-o': function (buffer) { /** @type {ParserOutput[]} */ var ret = []; buffer.text_ = buffer.text_ || ""; if (buffer.text_.length > 4) { var a = buffer.text_.length - 3; for (var i=0; i" || buf.r === "<=>>" || buf.r === "<<=>" || buf.r === "<-->") { // arrows that cannot stretch correctly yet, https://github.com/mathjax/MathJax/issues/1491 arrow = "\\long"+arrow; if (b6.rd) { arrow = "\\overset{"+b6.rd+"}{"+arrow+"}"; } if (b6.rq) { arrow = "\\underset{\\lower7mu{"+b6.rq+"}}{"+arrow+"}"; } arrow = " {}\\mathrel{"+arrow+"}{} "; } else { if (b6.rq) { arrow += "[{"+b6.rq+"}]"; } arrow += "{"+b6.rd+"}"; arrow = " {}\\mathrel{\\x"+arrow+"}{} "; } } else { arrow = " {}\\mathrel{\\long"+arrow+"}{} "; } res = arrow; break; case 'operator': res = texify._getOperator(buf.kind_); break; case '1st-level escape': res = buf.p1+" "; // &, \\\\, \\hlin break; case 'space': res = " "; break; case 'entitySkip': res = "~"; break; case 'pu-space-1': res = "~"; break; case 'pu-space-2': res = "\\mkern3mu "; break; case '1000 separator': res = "\\mkern2mu "; break; case 'commaDecimal': res = "{,}"; break; case 'comma enumeration L': res = "{"+buf.p1+"}\\mkern6mu "; break; case 'comma enumeration M': res = "{"+buf.p1+"}\\mkern3mu "; break; case 'comma enumeration S': res = "{"+buf.p1+"}\\mkern1mu "; break; case 'hyphen': res = "\\text{-}"; break; case 'addition compound': res = "\\,{\\cdot}\\,"; break; case 'electron dot': res = "\\mkern1mu \\bullet\\mkern1mu "; break; case 'KV x': res = "{\\times}"; break; case 'prime': res = "\\prime "; break; case 'cdot': res = "\\cdot "; break; case 'tight cdot': res = "\\mkern1mu{\\cdot}\\mkern1mu "; break; case 'times': res = "\\times "; break; case 'circa': res = "{\\sim}"; break; case '^': res = "uparrow"; break; case 'v': res = "downarrow"; break; case 'ellipsis': res = "\\ldots "; break; case '/': res = "/"; break; case ' / ': res = "\\,/\\,"; break; default: assertNever(buf); throw ["MhchemBugT", "mhchem bug T. Please report."]; // Missing texify rule or unknown MhchemParser output } assertString(res); return res; }, _getArrow: function (a) { switch (a) { case "->": return "rightarrow"; case "\u2192": return "rightarrow"; case "\u27F6": return "rightarrow"; case "<-": return "leftarrow"; case "<->": return "leftrightarrow"; case "<-->": return "leftrightarrows"; case "<=>": return "rightleftharpoons"; case "\u21CC": return "rightleftharpoons"; case "<=>>": return "Rightleftharpoons"; case "<<=>": return "Leftrightharpoons"; default: assertNever(a); throw ["MhchemBugT", "mhchem bug T. Please report."]; } }, _getBond: function (a) { switch (a) { case "-": return "{-}"; case "1": return "{-}"; case "=": return "{=}"; case "2": return "{=}"; case "#": return "{\\equiv}"; case "3": return "{\\equiv}"; case "~": return "{\\tripledash}"; case "~-": return "{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}"; case "~=": return "{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}"; case "~--": return "{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}"; case "-~-": return "{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}"; case "...": return "{{\\cdot}{\\cdot}{\\cdot}}"; case "....": return "{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}"; case "->": return "{\\rightarrow}"; case "<-": return "{\\leftarrow}"; case "<": return "{<}"; case ">": return "{>}"; default: assertNever(a); throw ["MhchemBugT", "mhchem bug T. Please report."]; } }, _getOperator: function (a) { switch (a) { case "+": return " {}+{} "; case "-": return " {}-{} "; case "=": return " {}={} "; case "<": return " {}<{} "; case ">": return " {}>{} "; case "<<": return " {}\\ll{} "; case ">>": return " {}\\gg{} "; case "\\pm": return " {}\\pm{} "; case "\\approx": return " {}\\approx{} "; case "$\\approx$": return " {}\\approx{} "; case "v": return " \\downarrow{} "; case "(v)": return " \\downarrow{} "; case "^": return " \\uparrow{} "; case "(^)": return " \\uparrow{} "; default: assertNever(a); throw ["MhchemBugT", "mhchem bug T. Please report."]; } } }; // // Helpers for code anaylsis // Will show type error at calling position // /** @param {number} a */ function assertNever(a) {} /** @param {string} a */ function assertString(a) {} exports.mhchemParser = mhchemParser; exports.texify = texify; exports.assertNever = assertNever; exports.assertString = assertString; /***/ }), /* 61 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NoErrorsConfiguration = void 0; var Configuration_js_1 = __webpack_require__(0); function noErrors(factory, message, _id, expr) { var mtext = factory.create('token', 'mtext', {}, expr.replace(/\n/g, ' ')); var error = factory.create('node', 'merror', [mtext], { 'data-mjx-error': message, title: message }); return error; } exports.NoErrorsConfiguration = Configuration_js_1.Configuration.create('noerrors', { nodes: { 'error': noErrors } }); //# sourceMappingURL=NoErrorsConfiguration.js.map /***/ }), /* 62 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.NoUndefinedConfiguration = void 0; var Configuration_js_1 = __webpack_require__(0); function noUndefined(parser, name) { var e_1, _a; var textNode = parser.create('text', '\\' + name); var options = parser.options.noundefined || {}; var def = {}; try { for (var _b = __values(['color', 'background', 'size']), _c = _b.next(); !_c.done; _c = _b.next()) { var id = _c.value; if (options[id]) { def['math' + id] = options[id]; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } parser.Push(parser.create('node', 'mtext', [], def, textNode)); } exports.NoUndefinedConfiguration = Configuration_js_1.Configuration.create('noundefined', { fallback: { macro: noUndefined }, options: { noundefined: { color: 'red', background: '', size: '' } }, priority: 3 }); //# sourceMappingURL=NoUndefinedConfiguration.js.map /***/ }), /* 63 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.PhysicsConfiguration = void 0; var Configuration_js_1 = __webpack_require__(0); var PhysicsItems_js_1 = __webpack_require__(64); __webpack_require__(65); exports.PhysicsConfiguration = Configuration_js_1.Configuration.create('physics', { handler: { macro: [ 'Physics-automatic-bracing-macros', 'Physics-vector-macros', 'Physics-vector-chars', 'Physics-derivative-macros', 'Physics-expressions-macros', 'Physics-quick-quad-macros', 'Physics-bra-ket-macros', 'Physics-matrix-macros' ], character: ['Physics-characters'], environment: ['Physics-aux-envs'] }, items: (_a = {}, _a[PhysicsItems_js_1.AutoOpen.prototype.kind] = PhysicsItems_js_1.AutoOpen, _a) }); //# sourceMappingURL=PhysicsConfiguration.js.map /***/ }), /* 64 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.AutoOpen = void 0; var StackItem_js_1 = __webpack_require__(13); var ParseUtil_js_1 = __webpack_require__(3); var TexParser_js_1 = __webpack_require__(5); var AutoOpen = (function (_super) { __extends(AutoOpen, _super); function AutoOpen() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(AutoOpen.prototype, "kind", { get: function () { return 'auto open'; }, enumerable: false, configurable: true }); Object.defineProperty(AutoOpen.prototype, "isOpen", { get: function () { return true; }, enumerable: false, configurable: true }); AutoOpen.prototype.toMml = function () { var parser = this.factory.configuration.parser; var right = this.getProperty('right'); if (this.getProperty('smash')) { var mml_1 = _super.prototype.toMml.call(this); var smash = parser.create('node', 'mpadded', [mml_1], { height: 0, depth: 0 }); this.Clear(); this.Push(parser.create('node', 'TeXAtom', [smash])); } if (right) { this.Push(new TexParser_js_1.default(right, parser.stack.env, parser.configuration).mml()); } var mml = _super.prototype.toMml.call(this); return ParseUtil_js_1.default.fenced(this.factory.configuration, this.getProperty('open'), mml, this.getProperty('close'), this.getProperty('big')); }; AutoOpen.prototype.checkItem = function (item) { var close = item.getProperty('autoclose'); if (close && close === this.getProperty('close')) { if (this.getProperty('ignore')) { this.Clear(); return [[], true]; } return [[this.toMml()], true]; } return _super.prototype.checkItem.call(this, item); }; return AutoOpen; }(StackItem_js_1.BaseItem)); exports.AutoOpen = AutoOpen; //# sourceMappingURL=PhysicsItems.js.map /***/ }), /* 65 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var SymbolMap_js_1 = __webpack_require__(1); var PhysicsMethods_js_1 = __webpack_require__(66); var TexConstants_js_1 = __webpack_require__(6); var ParseMethods_js_1 = __webpack_require__(9); var MmlNode_js_1 = __webpack_require__(7); new SymbolMap_js_1.CommandMap('Physics-automatic-bracing-macros', { 'quantity': 'Quantity', 'qty': 'Quantity', 'pqty': ['Quantity', '(', ')', true], 'bqty': ['Quantity', '[', ']', true], 'vqty': ['Quantity', '|', '|', true], 'Bqty': ['Quantity', '{', '}', true], 'absolutevalue': ['Quantity', '|', '|', true], 'abs': ['Quantity', '|', '|', true], 'norm': ['Quantity', '\\|', '\\|', true], 'evaluated': 'Eval', 'eval': 'Eval', 'order': ['Quantity', '(', ')', true, 'O', TexConstants_js_1.TexConstant.Variant.CALLIGRAPHIC], 'commutator': 'Commutator', 'comm': 'Commutator', 'anticommutator': ['Commutator', '\\{', '\\}'], 'acomm': ['Commutator', '\\{', '\\}'], 'poissonbracket': ['Commutator', '\\{', '\\}'], 'pb': ['Commutator', '\\{', '\\}'] }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CharacterMap('Physics-vector-chars', ParseMethods_js_1.default.mathchar0mi, { dotproduct: ['\u22C5', { mathvariant: TexConstants_js_1.TexConstant.Variant.BOLD }], vdot: ['\u22C5', { mathvariant: TexConstants_js_1.TexConstant.Variant.BOLD }], crossproduct: '\u00D7', cross: '\u00D7', cp: '\u00D7', gradientnabla: ['\u2207', { mathvariant: TexConstants_js_1.TexConstant.Variant.BOLD }], real: ['\u211C', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], imaginary: ['\u2111', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }] }); new SymbolMap_js_1.CommandMap('Physics-vector-macros', { 'vectorbold': 'VectorBold', 'vb': 'VectorBold', 'vectorarrow': ['StarMacro', 1, '\\vec{\\vb', '{#1}}'], 'va': ['StarMacro', 1, '\\vec{\\vb', '{#1}}'], 'vectorunit': ['StarMacro', 1, '\\hat{\\vb', '{#1}}'], 'vu': ['StarMacro', 1, '\\hat{\\vb', '{#1}}'], 'gradient': ['OperatorApplication', '\\gradientnabla', '(', '['], 'grad': ['OperatorApplication', '\\gradientnabla', '(', '['], 'divergence': ['VectorOperator', '\\gradientnabla\\vdot', '(', '['], 'div': ['VectorOperator', '\\gradientnabla\\vdot', '(', '['], 'curl': ['VectorOperator', '\\gradientnabla\\crossproduct', '(', '['], 'laplacian': ['OperatorApplication', '\\nabla^2', '(', '['], }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CommandMap('Physics-expressions-macros', { 'sin': 'Expression', 'sinh': 'Expression', 'arcsin': 'Expression', 'asin': 'Expression', 'cos': 'Expression', 'cosh': 'Expression', 'arccos': 'Expression', 'acos': 'Expression', 'tan': 'Expression', 'tanh': 'Expression', 'arctan': 'Expression', 'atan': 'Expression', 'csc': 'Expression', 'csch': 'Expression', 'arccsc': 'Expression', 'acsc': 'Expression', 'sec': 'Expression', 'sech': 'Expression', 'arcsec': 'Expression', 'asec': 'Expression', 'cot': 'Expression', 'coth': 'Expression', 'arccot': 'Expression', 'acot': 'Expression', 'exp': ['Expression', false], 'log': 'Expression', 'ln': 'Expression', 'det': ['Expression', false], 'Pr': ['Expression', false], 'tr': ['Expression', false], 'trace': ['Expression', false, 'tr'], 'Tr': ['Expression', false], 'Trace': ['Expression', false, 'Tr'], 'rank': 'NamedFn', 'erf': ['Expression', false], 'Res': ['OperatorApplication', '{\\rm Res}', '(', '[', '{'], 'principalvalue': ['OperatorApplication', '{\\cal P}'], 'pv': ['OperatorApplication', '{\\cal P}'], 'PV': ['OperatorApplication', '{\\rm P.V.}'], 'Re': ['OperatorApplication', '{\\rm Re}', '{'], 'Im': ['OperatorApplication', '{\\rm Im}', '{'], 'sine': ['NamedFn', 'sin'], 'hypsine': ['NamedFn', 'sinh'], 'arcsine': ['NamedFn', 'arcsin'], 'asine': ['NamedFn', 'asin'], 'cosine': ['NamedFn', 'cos'], 'hypcosine': ['NamedFn', 'cosh'], 'arccosine': ['NamedFn', 'arccos'], 'acosine': ['NamedFn', 'acos'], 'tangent': ['NamedFn', 'tan'], 'hyptangent': ['NamedFn', 'tanh'], 'arctangent': ['NamedFn', 'arctan'], 'atangent': ['NamedFn', 'atan'], 'cosecant': ['NamedFn', 'csc'], 'hypcosecant': ['NamedFn', 'csch'], 'arccosecant': ['NamedFn', 'arccsc'], 'acosecant': ['NamedFn', 'acsc'], 'secant': ['NamedFn', 'sec'], 'hypsecant': ['NamedFn', 'sech'], 'arcsecant': ['NamedFn', 'arcsec'], 'asecant': ['NamedFn', 'asec'], 'cotangent': ['NamedFn', 'cot'], 'hypcotangent': ['NamedFn', 'coth'], 'arccotangent': ['NamedFn', 'arccot'], 'acotangent': ['NamedFn', 'acot'], 'exponential': ['NamedFn', 'exp'], 'logarithm': ['NamedFn', 'log'], 'naturallogarithm': ['NamedFn', 'ln'], 'determinant': ['NamedFn', 'det'], 'Probability': ['NamedFn', 'Pr'], }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CommandMap('Physics-quick-quad-macros', { 'qqtext': 'Qqtext', 'qq': 'Qqtext', 'qcomma': ['Macro', '\\qqtext*{,}'], 'qc': ['Macro', '\\qqtext*{,}'], 'qcc': ['Qqtext', 'c.c.'], 'qif': ['Qqtext', 'if'], 'qthen': ['Qqtext', 'then'], 'qelse': ['Qqtext', 'else'], 'qotherwise': ['Qqtext', 'otherwise'], 'qunless': ['Qqtext', 'unless'], 'qgiven': ['Qqtext', 'given'], 'qusing': ['Qqtext', 'using'], 'qassume': ['Qqtext', 'assume'], 'qsince,': ['Qqtext', 'since,'], 'qlet': ['Qqtext', 'let'], 'qfor': ['Qqtext', 'for'], 'qall': ['Qqtext', 'all'], 'qeven': ['Qqtext', 'even'], 'qodd': ['Qqtext', 'odd'], 'qinteger': ['Qqtext', 'integer'], 'qand': ['Qqtext', 'and'], 'qor': ['Qqtext', 'or'], 'qas': ['Qqtext', 'as'], 'qin': ['Qqtext', 'in'], }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CommandMap('Physics-derivative-macros', { 'flatfrac': ['Macro', '\\left.#1\\middle/#2\\right.', 2], 'differential': ['Differential', '{\\rm d}'], 'dd': ['Differential', '{\\rm d}'], 'variation': ['Differential', '\\delta'], 'var': ['Differential', '\\delta'], 'derivative': ['Derivative', 2, '{\\rm d}'], 'dv': ['Derivative', 2, '{\\rm d}'], 'partialderivative': ['Derivative', 3, '\\partial'], 'pderivative': ['Derivative', 3, '\\partial'], 'pdv': ['Derivative', 3, '\\partial'], 'functionalderivative': ['Derivative', 2, '\\delta'], 'fderivative': ['Derivative', 2, '\\delta'], 'fdv': ['Derivative', 2, '\\delta'], }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CommandMap('Physics-bra-ket-macros', { 'bra': 'Bra', 'ket': 'Ket', 'innerproduct': 'BraKet', 'braket': 'BraKet', 'outerproduct': 'KetBra', 'dyad': 'KetBra', 'ketbra': 'KetBra', 'op': 'KetBra', 'expectationvalue': 'Expectation', 'expval': 'Expectation', 'ev': 'Expectation', 'matrixelement': 'MatrixElement', 'matrixel': 'MatrixElement', 'mel': 'MatrixElement', }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CommandMap('Physics-matrix-macros', { 'matrixquantity': 'MatrixQuantity', 'mqty': 'MatrixQuantity', 'pmqty': ['Macro', '\\mqty(#1)', 1], 'Pmqty': ['Macro', '\\mqty*(#1)', 1], 'bmqty': ['Macro', '\\mqty[#1]', 1], 'vmqty': ['Macro', '\\mqty|#1|', 1], 'smallmatrixquantity': ['MatrixQuantity', true], 'smqty': ['MatrixQuantity', true], 'spmqty': ['Macro', '\\smqty(#1)', 1], 'sPmqty': ['Macro', '\\smqty*(#1)', 1], 'sbmqty': ['Macro', '\\smqty[#1]', 1], 'svmqty': ['Macro', '\\smqty|#1|', 1], 'matrixdeterminant': ['Macro', '\\vmqty{#1}', 1], 'mdet': ['Macro', '\\vmqty{#1}', 1], 'smdet': ['Macro', '\\svmqty{#1}', 1], 'identitymatrix': 'IdentityMatrix', 'imat': 'IdentityMatrix', 'xmatrix': 'XMatrix', 'xmat': 'XMatrix', 'zeromatrix': ['Macro', '\\xmat{0}{#1}{#2}', 2], 'zmat': ['Macro', '\\xmat{0}{#1}{#2}', 2], 'paulimatrix': 'PauliMatrix', 'pmat': 'PauliMatrix', 'diagonalmatrix': 'DiagonalMatrix', 'dmat': 'DiagonalMatrix', 'antidiagonalmatrix': ['DiagonalMatrix', true], 'admat': ['DiagonalMatrix', true] }, PhysicsMethods_js_1.default); new SymbolMap_js_1.EnvironmentMap('Physics-aux-envs', ParseMethods_js_1.default.environment, { smallmatrix: ['Array', null, null, null, 'c', '0.333em', '.2em', 'S', 1] }, PhysicsMethods_js_1.default); new SymbolMap_js_1.MacroMap('Physics-characters', { '|': ['AutoClose', MmlNode_js_1.TEXCLASS.ORD], ')': 'AutoClose', ']': 'AutoClose' }, PhysicsMethods_js_1.default); //# sourceMappingURL=PhysicsMappings.js.map /***/ }), /* 66 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); var BaseMethods_js_1 = __webpack_require__(8); var TexParser_js_1 = __webpack_require__(5); var TexError_js_1 = __webpack_require__(2); var MmlNode_js_1 = __webpack_require__(7); var ParseUtil_js_1 = __webpack_require__(3); var NodeUtil_js_1 = __webpack_require__(4); var NodeFactory_js_1 = __webpack_require__(23); var PhysicsMethods = {}; var pairs = { '(': ')', '[': ']', '{': '}', '|': '|', }; var biggs = /^(b|B)i(g{1,2})$/; PhysicsMethods.Quantity = function (parser, name, open, close, arg, named, variant) { if (open === void 0) { open = '('; } if (close === void 0) { close = ')'; } if (arg === void 0) { arg = false; } if (named === void 0) { named = ''; } if (variant === void 0) { variant = ''; } var star = arg ? parser.GetStar() : false; var next = parser.GetNext(); var position = parser.i; var big = null; if (next === '\\') { parser.i++; big = parser.GetCS(); if (!big.match(biggs)) { var empty = parser.create('node', 'mrow'); parser.Push(ParseUtil_js_1.default.fenced(parser.configuration, open, empty, close)); parser.i = position; return; } next = parser.GetNext(); } var right = pairs[next]; if (arg && next !== '{') { throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', parser.currentCS); } if (!right) { var empty = parser.create('node', 'mrow'); parser.Push(ParseUtil_js_1.default.fenced(parser.configuration, open, empty, close)); parser.i = position; return; } if (named) { var mml = parser.create('token', 'mi', { texClass: MmlNode_js_1.TEXCLASS.OP }, named); if (variant) { NodeUtil_js_1.default.setAttribute(mml, 'mathvariant', variant); } parser.Push(parser.itemFactory.create('fn', mml)); } if (next === '{') { var argument = parser.GetArgument(name); next = arg ? open : '\\{'; right = arg ? close : '\\}'; argument = star ? next + ' ' + argument + ' ' + right : (big ? '\\' + big + 'l' + next + ' ' + argument + ' ' + '\\' + big + 'r' + right : '\\left' + next + ' ' + argument + ' ' + '\\right' + right); parser.Push(new TexParser_js_1.default(argument, parser.stack.env, parser.configuration).mml()); return; } if (arg) { next = open; right = close; } parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: next, close: right, big: big })); }; PhysicsMethods.Eval = function (parser, name) { var star = parser.GetStar(); var next = parser.GetNext(); if (next === '{') { var arg = parser.GetArgument(name); var replace = '\\left. ' + (star ? '\\smash{' + arg + '}' : arg) + ' ' + '\\vphantom{\\int}\\right|'; parser.string = parser.string.slice(0, parser.i) + replace + parser.string.slice(parser.i); return; } if (next === '(' || next === '[') { parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: next, close: '|', smash: star, right: '\\vphantom{\\int}' })); return; } throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', parser.currentCS); }; PhysicsMethods.Commutator = function (parser, name, open, close) { if (open === void 0) { open = '['; } if (close === void 0) { close = ']'; } var star = parser.GetStar(); var next = parser.GetNext(); var big = null; if (next === '\\') { parser.i++; big = parser.GetCS(); if (!big.match(biggs)) { throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', parser.currentCS); } next = parser.GetNext(); } if (next !== '{') { throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', parser.currentCS); } var arg1 = parser.GetArgument(name); var arg2 = parser.GetArgument(name); var argument = arg1 + ',' + arg2; argument = star ? open + ' ' + argument + ' ' + close : (big ? '\\' + big + 'l' + open + ' ' + argument + ' ' + '\\' + big + 'r' + close : '\\left' + open + ' ' + argument + ' ' + '\\right' + close); parser.Push(new TexParser_js_1.default(argument, parser.stack.env, parser.configuration).mml()); }; var latinCap = [0x41, 0x5A]; var latinSmall = [0x61, 0x7A]; var greekCap = [0x391, 0x3A9]; var greekSmall = [0x3B1, 0x3C9]; var digits = [0x30, 0x39]; function inRange(value, range) { return (value >= range[0] && value <= range[1]); } function createVectorToken(factory, kind, def, text) { var parser = factory.configuration.parser; var token = NodeFactory_js_1.NodeFactory.createToken(factory, kind, def, text); var code = text.codePointAt(0); if (text.length === 1 && !parser.stack.env.font && parser.stack.env.vectorFont && (inRange(code, latinCap) || inRange(code, latinSmall) || inRange(code, greekCap) || inRange(code, digits) || (inRange(code, greekSmall) && parser.stack.env.vectorStar) || NodeUtil_js_1.default.getAttribute(token, 'accent'))) { NodeUtil_js_1.default.setAttribute(token, 'mathvariant', parser.stack.env.vectorFont); } return token; } PhysicsMethods.VectorBold = function (parser, name) { var star = parser.GetStar(); var arg = parser.GetArgument(name); var oldToken = parser.configuration.nodeFactory.get('token'); var oldFont = parser.stack.env.font; delete parser.stack.env.font; parser.configuration.nodeFactory.set('token', createVectorToken); parser.stack.env.vectorFont = star ? 'bold-italic' : 'bold'; parser.stack.env.vectorStar = star; var node = new TexParser_js_1.default(arg, parser.stack.env, parser.configuration).mml(); if (oldFont) { parser.stack.env.font = oldFont; } delete parser.stack.env.vectorFont; delete parser.stack.env.vectorStar; parser.configuration.nodeFactory.set('token', oldToken); parser.Push(node); }; PhysicsMethods.StarMacro = function (parser, name, argcount) { var parts = []; for (var _i = 3; _i < arguments.length; _i++) { parts[_i - 3] = arguments[_i]; } var star = parser.GetStar(); var args = []; if (argcount) { for (var i = args.length; i < argcount; i++) { args.push(parser.GetArgument(name)); } } var macro = parts.join(star ? '*' : ''); macro = ParseUtil_js_1.default.substituteArgs(parser, args, macro); parser.string = ParseUtil_js_1.default.addArgs(parser, macro, parser.string.slice(parser.i)); parser.i = 0; if (++parser.macroCount > parser.configuration.options['maxMacros']) { throw new TexError_js_1.default('MaxMacroSub1', 'MathJax maximum macro substitution count exceeded; ' + 'is there a recursive macro call?'); } }; var vectorApplication = function (parser, kind, name, operator, fences) { var op = new TexParser_js_1.default(operator, parser.stack.env, parser.configuration).mml(); parser.Push(parser.itemFactory.create(kind, op)); var left = parser.GetNext(); var right = pairs[left]; if (!right) { return; } var lfence = '', rfence = '', arg = ''; var enlarge = fences.indexOf(left) !== -1; if (left === '{') { arg = parser.GetArgument(name); lfence = enlarge ? '\\left\\{' : ''; rfence = enlarge ? '\\right\\}' : ''; var macro = lfence + ' ' + arg + ' ' + rfence; parser.string = macro + parser.string.slice(parser.i); parser.i = 0; return; } if (!enlarge) { return; } parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: left, close: right })); }; PhysicsMethods.OperatorApplication = function (parser, name, operator) { var fences = []; for (var _i = 3; _i < arguments.length; _i++) { fences[_i - 3] = arguments[_i]; } vectorApplication(parser, 'fn', name, operator, fences); }; PhysicsMethods.VectorOperator = function (parser, name, operator) { var fences = []; for (var _i = 3; _i < arguments.length; _i++) { fences[_i - 3] = arguments[_i]; } vectorApplication(parser, 'mml', name, operator, fences); }; PhysicsMethods.Expression = function (parser, name, opt, id) { if (opt === void 0) { opt = true; } if (id === void 0) { id = ''; } id = id || name.slice(1); var exp = opt ? parser.GetBrackets(name) : null; var mml = parser.create('token', 'mi', { texClass: MmlNode_js_1.TEXCLASS.OP }, id); if (exp) { var sup = new TexParser_js_1.default(exp, parser.stack.env, parser.configuration).mml(); mml = parser.create('node', 'msup', [mml, sup]); } parser.Push(parser.itemFactory.create('fn', mml)); if (parser.GetNext() !== '(') { return; } parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: '(', close: ')' })); }; PhysicsMethods.Qqtext = function (parser, name, text) { var star = parser.GetStar(); var arg = text ? text : parser.GetArgument(name); var replace = (star ? '' : '\\quad') + '\\text{' + arg + '}\\quad '; parser.string = parser.string.slice(0, parser.i) + replace + parser.string.slice(parser.i); }; PhysicsMethods.Differential = function (parser, name, op) { var optArg = parser.GetBrackets(name); var power = optArg != null ? '^{' + optArg + '}' : ' '; var parens = parser.GetNext() === '('; var braces = parser.GetNext() === '{'; var macro = op + power; if (!(parens || braces)) { macro += parser.GetArgument(name, true) || ''; var mml = new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml(); parser.Push(mml); return; } if (braces) { macro += parser.GetArgument(name); var mml = new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml(); parser.Push(parser.create('node', 'TeXAtom', [mml], { texClass: MmlNode_js_1.TEXCLASS.OP })); return; } parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: '(', close: ')' })); }; PhysicsMethods.Derivative = function (parser, name, argMax, op) { var star = parser.GetStar(); var optArg = parser.GetBrackets(name); var argCounter = 1; var args = []; args.push(parser.GetArgument(name)); while (parser.GetNext() === '{' && argCounter < argMax) { args.push(parser.GetArgument(name)); argCounter++; } var ignore = false; var power1 = ' '; var power2 = ' '; if (argMax > 2 && args.length > 2) { power1 = '^{' + (args.length - 1) + '}'; ignore = true; } else if (optArg != null) { if (argMax > 2 && args.length > 1) { ignore = true; } power1 = '^{' + optArg + '}'; power2 = power1; } var frac = star ? '\\flatfrac' : '\\frac'; var first = args.length > 1 ? args[0] : ''; var second = args.length > 1 ? args[1] : args[0]; var rest = ''; for (var i = 2, arg = void 0; arg = args[i]; i++) { rest += op + ' ' + arg; } var macro = frac + '{' + op + power1 + first + '}' + '{' + op + ' ' + second + power2 + ' ' + rest + '}'; parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); if (parser.GetNext() === '(') { parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: '(', close: ')', ignore: ignore })); } }; PhysicsMethods.Bra = function (parser, name) { var starBra = parser.GetStar(); var bra = parser.GetArgument(name); var ket = ''; var hasKet = false; var starKet = false; if (parser.GetNext() === '\\') { var saveI = parser.i; parser.i++; var cs = parser.GetCS(); var symbol = parser.lookup('macro', cs); if (symbol && symbol.symbol === 'ket') { hasKet = true; saveI = parser.i; starKet = parser.GetStar(); if (parser.GetNext() === '{') { ket = parser.GetArgument(cs, true); } else { parser.i = saveI; starKet = false; } } else { parser.i = saveI; } } var macro = ''; if (hasKet) { macro = (starBra || starKet) ? "\\langle{" + bra + "}\\vert{" + ket + "}\\rangle" : "\\left\\langle{" + bra + "}\\middle\\vert{" + ket + "}\\right\\rangle"; } else { macro = (starBra || starKet) ? "\\langle{" + bra + "}\\vert" : "\\left\\langle{" + bra + "}\\right\\vert{" + ket + "}"; } parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.Ket = function (parser, name) { var star = parser.GetStar(); var ket = parser.GetArgument(name); var macro = star ? "\\vert{" + ket + "}\\rangle" : "\\left\\vert{" + ket + "}\\right\\rangle"; parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.BraKet = function (parser, name) { var star = parser.GetStar(); var bra = parser.GetArgument(name); var ket = null; if (parser.GetNext() === '{') { ket = parser.GetArgument(name, true); } var macro = ''; if (ket == null) { macro = star ? "\\langle{" + bra + "}\\vert{" + bra + "}\\rangle" : "\\left\\langle{" + bra + "}\\middle\\vert{" + bra + "}\\right\\rangle"; } else { macro = star ? "\\langle{" + bra + "}\\vert{" + ket + "}\\rangle" : "\\left\\langle{" + bra + "}\\middle\\vert{" + ket + "}\\right\\rangle"; } parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.KetBra = function (parser, name) { var star = parser.GetStar(); var ket = parser.GetArgument(name); var bra = null; if (parser.GetNext() === '{') { bra = parser.GetArgument(name, true); } var macro = ''; if (bra == null) { macro = star ? "\\vert{" + ket + "}\\rangle\\!\\langle{" + ket + "}\\vert" : "\\left\\vert{" + ket + "}\\middle\\rangle\\!\\middle\\langle{" + ket + "}\\right\\vert"; } else { macro = star ? "\\vert{" + ket + "}\\rangle\\!\\langle{" + bra + "}\\vert" : "\\left\\vert{" + ket + "}\\middle\\rangle\\!\\middle\\langle{" + bra + "}\\right\\vert"; } parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; function outputBraket(_a, star1, star2) { var _b = __read(_a, 3), arg1 = _b[0], arg2 = _b[1], arg3 = _b[2]; return (star1 && star2) ? "\\left\\langle{" + arg1 + "}\\middle\\vert{" + arg2 + "}\\middle\\vert{" + arg3 + "}\\right\\rangle" : (star1 ? "\\langle{" + arg1 + "}\\vert{" + arg2 + "}\\vert{" + arg3 + "}\\rangle" : "\\left\\langle{" + arg1 + "}\\right\\vert{" + arg2 + "}\\left\\vert{" + arg3 + "}\\right\\rangle"); } PhysicsMethods.Expectation = function (parser, name) { var star1 = parser.GetStar(); var star2 = star1 && parser.GetStar(); var arg1 = parser.GetArgument(name); var arg2 = null; if (parser.GetNext() === '{') { arg2 = parser.GetArgument(name, true); } var macro = (arg1 && arg2) ? outputBraket([arg2, arg1, arg2], star1, star2) : (star1 ? "\\langle {" + arg1 + "} \\rangle" : "\\left\\langle {" + arg1 + "} \\right\\rangle"); parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.MatrixElement = function (parser, name) { var star1 = parser.GetStar(); var star2 = star1 && parser.GetStar(); var arg1 = parser.GetArgument(name); var arg2 = parser.GetArgument(name); var arg3 = parser.GetArgument(name); var macro = outputBraket([arg1, arg2, arg3], star1, star2); parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.MatrixQuantity = function (parser, name, small) { var star = parser.GetStar(); var next = parser.GetNext(); var array = small ? 'smallmatrix' : 'array'; var arg = ''; var open = ''; var close = ''; switch (next) { case '{': arg = parser.GetArgument(name); break; case '(': parser.i++; open = star ? '\\lgroup' : '('; close = star ? '\\rgroup' : ')'; arg = parser.GetUpTo(name, ')'); break; case '[': parser.i++; open = '['; close = ']'; arg = parser.GetUpTo(name, ']'); break; case '|': parser.i++; open = '|'; close = '|'; arg = parser.GetUpTo(name, '|'); break; default: open = '('; close = ')'; break; } var macro = (open ? '\\left' : '') + open + '\\begin{' + array + '}{} ' + arg + '\\end{' + array + '}' + (open ? '\\right' : '') + close; parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.IdentityMatrix = function (parser, name) { var arg = parser.GetArgument(name); var size = parseInt(arg, 10); if (isNaN(size)) { throw new TexError_js_1.default('InvalidNumber', 'Invalid number'); } if (size <= 1) { parser.string = '1' + parser.string.slice(parser.i); parser.i = 0; return; } var zeros = Array(size).fill('0'); var columns = []; for (var i = 0; i < size; i++) { var row = zeros.slice(); row[i] = '1'; columns.push(row.join(' & ')); } parser.string = columns.join('\\\\ ') + parser.string.slice(parser.i); parser.i = 0; }; PhysicsMethods.XMatrix = function (parser, name) { var star = parser.GetStar(); var arg1 = parser.GetArgument(name); var arg2 = parser.GetArgument(name); var arg3 = parser.GetArgument(name); var n = parseInt(arg2, 10); var m = parseInt(arg3, 10); if (isNaN(n) || isNaN(m) || m.toString() !== arg3 || n.toString() !== arg2) { throw new TexError_js_1.default('InvalidNumber', 'Invalid number'); } n = n < 1 ? 1 : n; m = m < 1 ? 1 : m; if (!star) { var row = Array(m).fill(arg1).join(' & '); var matrix_1 = Array(n).fill(row).join('\\\\ '); parser.string = matrix_1 + parser.string.slice(parser.i); parser.i = 0; return; } var matrix = ''; if (n === 1 && m === 1) { matrix = arg1; } else if (n === 1) { var row = []; for (var i = 1; i <= m; i++) { row.push(arg1 + "_{" + i + "}"); } matrix = row.join(' & '); } else if (m === 1) { var row = []; for (var i = 1; i <= n; i++) { row.push(arg1 + "_{" + i + "}"); } matrix = row.join('\\\\ '); } else { var rows = []; for (var i = 1; i <= n; i++) { var row = []; for (var j = 1; j <= m; j++) { row.push(arg1 + "_{{" + i + "}{" + j + "}}"); } rows.push(row.join(' & ')); } matrix = rows.join('\\\\ '); } parser.string = matrix + parser.string.slice(parser.i); parser.i = 0; return; }; PhysicsMethods.PauliMatrix = function (parser, name) { var arg = parser.GetArgument(name); var matrix = arg.slice(1); switch (arg[0]) { case '0': matrix += ' 1 & 0\\\\ 0 & 1'; break; case '1': case 'x': matrix += ' 0 & 1\\\\ 1 & 0'; break; case '2': case 'y': matrix += ' 0 & -i\\\\ i & 0'; break; case '3': case 'z': matrix += ' 1 & 0\\\\ 0 & -1'; break; default: } parser.string = matrix + parser.string.slice(parser.i); parser.i = 0; }; PhysicsMethods.DiagonalMatrix = function (parser, name, anti) { if (parser.GetNext() !== '{') { return; } var startI = parser.i; parser.GetArgument(name); var endI = parser.i; parser.i = startI + 1; var elements = []; var element = ''; var currentI = parser.i; while (currentI < endI) { try { element = parser.GetUpTo(name, ','); } catch (e) { parser.i = endI; elements.push(parser.string.slice(currentI, endI - 1)); break; } if (parser.i >= endI) { elements.push(parser.string.slice(currentI, endI)); break; } currentI = parser.i; elements.push(element); } parser.string = makeDiagMatrix(elements, anti) + parser.string.slice(endI); parser.i = 0; }; function makeDiagMatrix(elements, anti) { var length = elements.length; var matrix = []; for (var i = 0; i < length; i++) { matrix.push(Array(anti ? length - i : i + 1).join('&') + '\\mqty{' + elements[i] + '}'); } return matrix.join('\\\\ '); } PhysicsMethods.AutoClose = function (parser, fence, _texclass) { var mo = parser.create('token', 'mo', { stretchy: false }, fence); var item = parser.itemFactory.create('mml', mo). setProperties({ autoclose: fence }); parser.Push(item); }; PhysicsMethods.Macro = BaseMethods_js_1.default.Macro; PhysicsMethods.NamedFn = BaseMethods_js_1.default.NamedFn; PhysicsMethods.Array = BaseMethods_js_1.default.Array; exports.default = PhysicsMethods; //# sourceMappingURL=PhysicsMethods.js.map /***/ }), /* 67 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.TagFormatConfiguration = exports.tagformatConfig = void 0; var Configuration_js_1 = __webpack_require__(0); var Tags_js_1 = __webpack_require__(17); var tagID = 0; function tagformatConfig(config, jax) { var tags = jax.parseOptions.options.tags; if (tags !== 'base' && config.tags.hasOwnProperty(tags)) { Tags_js_1.TagsFactory.add(tags, config.tags[tags]); } var TagClass = Tags_js_1.TagsFactory.create(jax.parseOptions.options.tags).constructor; var TagFormat = (function (_super) { __extends(TagFormat, _super); function TagFormat() { return _super !== null && _super.apply(this, arguments) || this; } TagFormat.prototype.formatNumber = function (n) { return jax.parseOptions.options.tagformat.number(n); }; TagFormat.prototype.formatTag = function (tag) { return jax.parseOptions.options.tagformat.tag(tag); }; TagFormat.prototype.formatId = function (id) { return jax.parseOptions.options.tagformat.id(id); }; TagFormat.prototype.formatUrl = function (id, base) { return jax.parseOptions.options.tagformat.url(id, base); }; return TagFormat; }(TagClass)); tagID++; var tagName = 'configTags-' + tagID; Tags_js_1.TagsFactory.add(tagName, TagFormat); jax.parseOptions.options.tags = tagName; } exports.tagformatConfig = tagformatConfig; exports.TagFormatConfiguration = Configuration_js_1.Configuration.create('tagformat', { config: [tagformatConfig, 10], options: { tagformat: { number: function (n) { return n.toString(); }, tag: function (tag) { return '(' + tag + ')'; }, id: function (id) { return 'mjx-eqn-' + id.replace(/\s/g, '_'); }, url: function (id, base) { return base + '#' + encodeURIComponent(id); }, } } }); //# sourceMappingURL=TagFormatConfiguration.js.map /***/ }), /* 68 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.textBase = void 0; var Configuration_js_1 = __webpack_require__(0); var ParseOptions_js_1 = __webpack_require__(69); var Tags_js_1 = __webpack_require__(17); var BaseItems_js_1 = __webpack_require__(16); var TextParser_js_1 = __webpack_require__(70); var TextMacrosMethods_js_1 = __webpack_require__(27); __webpack_require__(72); exports.textBase = Configuration_js_1.Configuration.local({ handler: { character: ['command', 'text-special'], macro: ['text-macros'] }, fallback: { character: function (parser, c) { parser.text += c; }, macro: function (parser, name) { var texParser = parser.texParser; var macro = texParser.lookup('macro', name); if (macro && macro._func !== TextMacrosMethods_js_1.TextMacrosMethods.Macro) { parser.Error('MathMacro', '%1 is only supported in math mode', '\\' + name); } texParser.parse('macro', [macro ? parser : texParser, name]); } }, items: (_a = {}, _a[BaseItems_js_1.StartItem.prototype.kind] = BaseItems_js_1.StartItem, _a[BaseItems_js_1.StopItem.prototype.kind] = BaseItems_js_1.StopItem, _a[BaseItems_js_1.MmlItem.prototype.kind] = BaseItems_js_1.MmlItem, _a[BaseItems_js_1.StyleItem.prototype.kind] = BaseItems_js_1.StyleItem, _a) }); function internalMath(parser, text, level, mathvariant) { var config = parser.configuration.packageData.get('textmacros'); if (!(parser instanceof TextParser_js_1.TextParser)) { config.texParser = parser; } return [(new TextParser_js_1.TextParser(text, mathvariant ? { mathvariant: mathvariant } : {}, config.parseOptions, level)).mml()]; } Configuration_js_1.Configuration.create('textmacros', { config: function (_config, jax) { var textConf = new Configuration_js_1.ParserConfiguration([]); textConf.append(exports.textBase); textConf.init(); var parseOptions = new ParseOptions_js_1.default(textConf, []); parseOptions.options = jax.parseOptions.options; textConf.config(jax); Tags_js_1.TagsFactory.addTags(textConf.tags); parseOptions.tags = Tags_js_1.TagsFactory.getDefault(); parseOptions.tags.configuration = parseOptions; parseOptions.packageData = jax.parseOptions.packageData; parseOptions.packageData.set('textmacros', { parseOptions: parseOptions, jax: jax, texParser: null }); parseOptions.options.internalMath = internalMath; }, preprocessors: [function (data) { var config = data.data.packageData.get('textmacros'); config.parseOptions.nodeFactory.setMmlFactory(config.jax.mmlFactory); }] }); //# sourceMappingURL=TextMacrosConfiguration.js.map /***/ }), /* 69 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseOptions["default"]; /***/ }), /* 70 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TextParser = void 0; var TexParser_js_1 = __webpack_require__(5); var TexError_js_1 = __webpack_require__(2); var ParseUtil_js_1 = __webpack_require__(3); var MmlNode_js_1 = __webpack_require__(7); var NodeUtil_js_1 = __webpack_require__(4); var BaseItems_js_1 = __webpack_require__(16); var TextParser = (function (_super) { __extends(TextParser, _super); function TextParser(text, env, configuration, level) { var _this = _super.call(this, text, env, configuration) || this; _this.level = level; return _this; } Object.defineProperty(TextParser.prototype, "texParser", { get: function () { return this.configuration.packageData.get('textmacros').texParser; }, enumerable: false, configurable: true }); Object.defineProperty(TextParser.prototype, "tags", { get: function () { return this.texParser.tags; }, enumerable: false, configurable: true }); TextParser.prototype.mml = function () { return (this.level != null ? this.create('node', 'mstyle', this.nodes, { displaystyle: false, scriptlevel: this.level }) : this.nodes.length === 1 ? this.nodes[0] : this.create('node', 'inferredMrow', this.nodes)); }; TextParser.prototype.Parse = function () { this.text = ''; this.nodes = []; this.envStack = []; _super.prototype.Parse.call(this); }; TextParser.prototype.saveText = function () { if (this.text) { var mathvariant = this.stack.env.mathvariant; var text = ParseUtil_js_1.default.internalText(this, this.text, mathvariant ? { mathvariant: mathvariant } : {}); this.text = ''; this.Push(text); } }; TextParser.prototype.Push = function (mml) { if (this.text) { this.saveText(); } if (mml instanceof BaseItems_js_1.StopItem) { return _super.prototype.Push.call(this, mml); } if (mml instanceof BaseItems_js_1.StyleItem) { this.stack.env.mathcolor = this.stack.env.color; return; } if (mml instanceof MmlNode_js_1.AbstractMmlNode) { this.addAttributes(mml); this.nodes.push(mml); } }; TextParser.prototype.PushMath = function (mml) { var e_1, _a; var env = this.stack.env; try { for (var _b = __values(['mathsize', 'mathcolor']), _c = _b.next(); !_c.done; _c = _b.next()) { var name_1 = _c.value; if (env[name_1] && !mml.attributes.getExplicit(name_1)) { if (!mml.isToken && !mml.isKind('mstyle')) { mml = this.create('node', 'mstyle', [mml]); } NodeUtil_js_1.default.setAttribute(mml, name_1, env[name_1]); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } if (mml.isKind('inferredMrow')) { mml = this.create('node', 'mrow', mml.childNodes); } this.nodes.push(mml); }; TextParser.prototype.addAttributes = function (mml) { var e_2, _a; var env = this.stack.env; if (!mml.isToken) return; try { for (var _b = __values(['mathsize', 'mathcolor', 'mathvariant']), _c = _b.next(); !_c.done; _c = _b.next()) { var name_2 = _c.value; if (env[name_2] && !mml.attributes.getExplicit(name_2)) { NodeUtil_js_1.default.setAttribute(mml, name_2, env[name_2]); } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } }; TextParser.prototype.ParseTextArg = function (name, env) { var text = this.GetArgument(name); env = Object.assign(Object.assign({}, this.stack.env), env); return (new TextParser(text, env, this.configuration)).mml(); }; TextParser.prototype.ParseArg = function (name) { return (new TextParser(this.GetArgument(name), this.stack.env, this.configuration)).mml(); }; TextParser.prototype.Error = function (id, message) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } throw new (TexError_js_1.default.bind.apply(TexError_js_1.default, __spread([void 0, id, message], args)))(); }; return TextParser; }(TexParser_js_1.default)); exports.TextParser = TextParser; //# sourceMappingURL=TextParser.js.map /***/ }), /* 71 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.handleRetriesFor = MathJax._.util.Retries.handleRetriesFor; exports.retryAfter = MathJax._.util.Retries.retryAfter; /***/ }), /* 72 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var SymbolMap_js_1 = __webpack_require__(1); var TexConstants_js_1 = __webpack_require__(6); var TextMacrosMethods_js_1 = __webpack_require__(27); new SymbolMap_js_1.MacroMap('text-special', { '$': 'Math', '%': 'Comment', '^': 'MathModeOnly', '_': 'MathModeOnly', '&': 'Misplaced', '#': 'Misplaced', '~': 'Tilde', ' ': 'Space', '\t': 'Space', '\r': 'Space', '\n': 'Space', '\u00A0': 'Tilde', '{': 'OpenBrace', '}': 'CloseBrace', '`': 'OpenQuote', '\'': 'CloseQuote' }, TextMacrosMethods_js_1.TextMacrosMethods); new SymbolMap_js_1.CommandMap('text-macros', { '(': 'Math', '$': 'SelfQuote', '_': 'SelfQuote', '%': 'SelfQuote', '{': 'SelfQuote', '}': 'SelfQuote', ' ': 'SelfQuote', '&': 'SelfQuote', '#': 'SelfQuote', '\\': 'SelfQuote', '\'': ['Accent', '\u00B4'], '\u2019': ['Accent', '\u00B4'], '`': ['Accent', '\u0060'], '\u2018': ['Accent', '\u0060'], '^': ['Accent', '^'], '\"': ['Accent', '\u00A8'], '~': ['Accent', '~'], '=': ['Accent', '\u00AF'], '.': ['Accent', '\u02D9'], 'u': ['Accent', '\u02D8'], 'v': ['Accent', '\u02C7'], emph: 'Emph', rm: ['SetFont', TexConstants_js_1.TexConstant.Variant.NORMAL], mit: ['SetFont', TexConstants_js_1.TexConstant.Variant.ITALIC], oldstyle: ['SetFont', TexConstants_js_1.TexConstant.Variant.OLDSTYLE], cal: ['SetFont', TexConstants_js_1.TexConstant.Variant.CALLIGRAPHIC], it: ['SetFont', '-tex-mathit'], bf: ['SetFont', TexConstants_js_1.TexConstant.Variant.BOLD], bbFont: ['SetFont', TexConstants_js_1.TexConstant.Variant.DOUBLESTRUCK], scr: ['SetFont', TexConstants_js_1.TexConstant.Variant.SCRIPT], frak: ['SetFont', TexConstants_js_1.TexConstant.Variant.FRAKTUR], sf: ['SetFont', TexConstants_js_1.TexConstant.Variant.SANSSERIF], tt: ['SetFont', TexConstants_js_1.TexConstant.Variant.MONOSPACE], tiny: ['SetSize', 0.5], Tiny: ['SetSize', 0.6], scriptsize: ['SetSize', 0.7], small: ['SetSize', 0.85], normalsize: ['SetSize', 1.0], large: ['SetSize', 1.2], Large: ['SetSize', 1.44], LARGE: ['SetSize', 1.73], huge: ['SetSize', 2.07], Huge: ['SetSize', 2.49], mathcal: 'MathModeOnly', mathscr: 'MathModeOnly', mathrm: 'MathModeOnly', mathbf: 'MathModeOnly', mathbb: 'MathModeOnly', mathit: 'MathModeOnly', mathfrak: 'MathModeOnly', mathsf: 'MathModeOnly', mathtt: 'MathModeOnly', Bbb: ['Macro', '{\\bbFont #1}', 1], textrm: ['Macro', '{\\rm #1}', 1], textit: ['Macro', '{\\it #1}', 1], textbf: ['Macro', '{\\bf #1}', 1], textsf: ['Macro', '{\\sf #1}', 1], texttt: ['Macro', '{\\tt #1}', 1], dagger: ['Insert', '\u2020'], ddagger: ['Insert', '\u2021'], S: ['Insert', '\u00A7'], ',': ['Spacer', TexConstants_js_1.TexConstant.Length.THINMATHSPACE], ':': ['Spacer', TexConstants_js_1.TexConstant.Length.MEDIUMMATHSPACE], '>': ['Spacer', TexConstants_js_1.TexConstant.Length.MEDIUMMATHSPACE], ';': ['Spacer', TexConstants_js_1.TexConstant.Length.THICKMATHSPACE], '!': ['Spacer', TexConstants_js_1.TexConstant.Length.NEGATIVETHINMATHSPACE], enspace: ['Spacer', '.5em'], quad: ['Spacer', '1em'], qquad: ['Spacer', '2em'], thinspace: ['Spacer', TexConstants_js_1.TexConstant.Length.THINMATHSPACE], negthinspace: ['Spacer', TexConstants_js_1.TexConstant.Length.NEGATIVETHINMATHSPACE], hskip: 'Hskip', hspace: 'Hskip', kern: 'Hskip', mskip: 'Hskip', mspace: 'Hskip', mkern: 'Hskip', rule: 'rule', Rule: ['Rule'], Space: ['Rule', 'blank'], color: 'CheckAutoload', textcolor: 'CheckAutoload', colorbox: 'CheckAutoload', fcolorbox: 'CheckAutoload', href: 'CheckAutoload', style: 'CheckAutoload', class: 'CheckAutoload', cssId: 'CheckAutoload', unicode: 'CheckAutoload', ref: ['HandleRef', false], eqref: ['HandleRef', true], }, TextMacrosMethods_js_1.TextMacrosMethods); //# sourceMappingURL=TextMacrosMappings.js.map /***/ }), /* 73 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UnicodeConfiguration = exports.UnicodeMethods = void 0; var Configuration_js_1 = __webpack_require__(0); var TexError_js_1 = __webpack_require__(2); var SymbolMap_js_1 = __webpack_require__(1); var ParseUtil_js_1 = __webpack_require__(3); var NodeUtil_js_1 = __webpack_require__(4); var Entities_js_1 = __webpack_require__(74); exports.UnicodeMethods = {}; var UnicodeCache = {}; exports.UnicodeMethods.Unicode = function (parser, name) { var HD = parser.GetBrackets(name); var HDsplit = null; var font = null; if (HD) { if (HD.replace(/ /g, ''). match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)) { HDsplit = HD.replace(/ /g, '').split(/,/); font = parser.GetBrackets(name); } else { font = HD; } } var n = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)).replace(/^0x/, 'x'); if (!n.match(/^(x[0-9A-Fa-f]+|[0-9]+)$/)) { throw new TexError_js_1.default('BadUnicode', 'Argument to \\unicode must be a number'); } var N = parseInt(n.match(/^x/) ? '0' + n : n); if (!UnicodeCache[N]) { UnicodeCache[N] = [800, 200, font, N]; } else if (!font) { font = UnicodeCache[N][2]; } if (HDsplit) { UnicodeCache[N][0] = Math.floor(parseFloat(HDsplit[0]) * 1000); UnicodeCache[N][1] = Math.floor(parseFloat(HDsplit[1]) * 1000); } var variant = parser.stack.env.font; var def = {}; if (font) { UnicodeCache[N][2] = def.fontfamily = font.replace(/'/g, '\''); if (variant) { if (variant.match(/bold/)) { def.fontweight = 'bold'; } if (variant.match(/italic|-mathit/)) { def.fontstyle = 'italic'; } } } else if (variant) { def.mathvariant = variant; } var node = parser.create('token', 'mtext', def, Entities_js_1.numeric(n)); NodeUtil_js_1.default.setProperty(node, 'unicode', true); parser.Push(node); }; new SymbolMap_js_1.CommandMap('unicode', { unicode: 'Unicode' }, exports.UnicodeMethods); exports.UnicodeConfiguration = Configuration_js_1.Configuration.create('unicode', { handler: { macro: ['unicode'] } }); //# sourceMappingURL=UnicodeConfiguration.js.map /***/ }), /* 74 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.options = MathJax._.util.Entities.options; exports.entities = MathJax._.util.Entities.entities; exports.add = MathJax._.util.Entities.add; exports.remove = MathJax._.util.Entities.remove; exports.translate = MathJax._.util.Entities.translate; exports.numeric = MathJax._.util.Entities.numeric; /***/ }), /* 75 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VerbConfiguration = exports.VerbMethods = void 0; var Configuration_js_1 = __webpack_require__(0); var TexConstants_js_1 = __webpack_require__(6); var SymbolMap_js_1 = __webpack_require__(1); var TexError_js_1 = __webpack_require__(2); exports.VerbMethods = {}; exports.VerbMethods.Verb = function (parser, name) { var c = parser.GetNext(); var start = ++parser.i; if (c === '') { throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', name); } while (parser.i < parser.string.length && parser.string.charAt(parser.i) !== c) { parser.i++; } if (parser.i === parser.string.length) { throw new TexError_js_1.default('NoClosingDelim', 'Can\'t find closing delimiter for %1', parser.currentCS); } var text = parser.string.slice(start, parser.i).replace(/ /g, '\u00A0'); parser.i++; parser.Push(parser.create('token', 'mtext', { mathvariant: TexConstants_js_1.TexConstant.Variant.MONOSPACE }, text)); }; new SymbolMap_js_1.CommandMap('verb', { verb: 'Verb' }, exports.VerbMethods); exports.VerbConfiguration = Configuration_js_1.Configuration.create('verb', { handler: { macro: ['verb'] } }); //# sourceMappingURL=VerbConfiguration.js.map /***/ }), /* 76 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Loader = MathJax._.components.loader.Loader; exports.MathJax = MathJax._.components.loader.MathJax; exports.CONFIG = MathJax._.components.loader.CONFIG; /***/ }), /* 77 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.mathjax = MathJax._.mathjax.mathjax; /***/ }), /* 78 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(20); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/AllPackages.js var AllPackages = __webpack_require__(15); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/autoload/AutoloadConfiguration.js var AutoloadConfiguration = __webpack_require__(21); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/require/RequireConfiguration.js var RequireConfiguration = __webpack_require__(14); // CONCATENATED MODULE: ./lib/all-packages.js Object(global["combineWithMathJax"])({ _: { input: { tex: { AllPackages: AllPackages, autoload: { AutoloadConfiguration: AutoloadConfiguration }, require: { RequireConfiguration: RequireConfiguration } } } } }); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/util/Options.js var Options = __webpack_require__(10); // CONCATENATED MODULE: ./all-packages.js function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } if (MathJax.loader) { MathJax.loader.preLoad('[tex]/autoload', '[tex]/require'); } if (MathJax.startup) { if (!MathJax.config.tex) { MathJax.config.tex = {}; } var all_packages_packages = MathJax.config.tex.packages; MathJax.config.tex.packages = ['autoload', 'require'].concat(_toConsumableArray(AllPackages["AllPackages"])); if (all_packages_packages) { Object(Options["insert"])(MathJax.config.tex, { packages: all_packages_packages }); } } /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/unicode.js0000644000176200001440000002242314005301544023130 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 8); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UnicodeConfiguration = exports.UnicodeMethods = void 0; var Configuration_js_1 = __webpack_require__(2); var TexError_js_1 = __webpack_require__(3); var SymbolMap_js_1 = __webpack_require__(4); var ParseUtil_js_1 = __webpack_require__(5); var NodeUtil_js_1 = __webpack_require__(6); var Entities_js_1 = __webpack_require__(7); exports.UnicodeMethods = {}; var UnicodeCache = {}; exports.UnicodeMethods.Unicode = function (parser, name) { var HD = parser.GetBrackets(name); var HDsplit = null; var font = null; if (HD) { if (HD.replace(/ /g, ''). match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)) { HDsplit = HD.replace(/ /g, '').split(/,/); font = parser.GetBrackets(name); } else { font = HD; } } var n = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)).replace(/^0x/, 'x'); if (!n.match(/^(x[0-9A-Fa-f]+|[0-9]+)$/)) { throw new TexError_js_1.default('BadUnicode', 'Argument to \\unicode must be a number'); } var N = parseInt(n.match(/^x/) ? '0' + n : n); if (!UnicodeCache[N]) { UnicodeCache[N] = [800, 200, font, N]; } else if (!font) { font = UnicodeCache[N][2]; } if (HDsplit) { UnicodeCache[N][0] = Math.floor(parseFloat(HDsplit[0]) * 1000); UnicodeCache[N][1] = Math.floor(parseFloat(HDsplit[1]) * 1000); } var variant = parser.stack.env.font; var def = {}; if (font) { UnicodeCache[N][2] = def.fontfamily = font.replace(/'/g, '\''); if (variant) { if (variant.match(/bold/)) { def.fontweight = 'bold'; } if (variant.match(/italic|-mathit/)) { def.fontstyle = 'italic'; } } } else if (variant) { def.mathvariant = variant; } var node = parser.create('token', 'mtext', def, Entities_js_1.numeric(n)); NodeUtil_js_1.default.setProperty(node, 'unicode', true); parser.Push(node); }; new SymbolMap_js_1.CommandMap('unicode', { unicode: 'Unicode' }, exports.UnicodeMethods); exports.UnicodeConfiguration = Configuration_js_1.Configuration.create('unicode', { handler: { macro: ['unicode'] } }); //# sourceMappingURL=UnicodeConfiguration.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexError["default"]; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseUtil["default"]; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.NodeUtil["default"]; /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.options = MathJax._.util.Entities.options; exports.entities = MathJax._.util.Entities.entities; exports.add = MathJax._.util.Entities.add; exports.remove = MathJax._.util.Entities.remove; exports.translate = MathJax._.util.Entities.translate; exports.numeric = MathJax._.util.Entities.numeric; /***/ }), /* 8 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/unicode/UnicodeConfiguration.js var UnicodeConfiguration = __webpack_require__(1); // CONCATENATED MODULE: ./lib/unicode.js Object(global["combineWithMathJax"])({ _: { input: { tex: { unicode: { UnicodeConfiguration: UnicodeConfiguration } } } } }); // CONCATENATED MODULE: ./unicode.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/enclose.js0000644000176200001440000001632214005301544023133 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 5); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EncloseConfiguration = exports.EncloseMethods = exports.ENCLOSE_OPTIONS = void 0; var Configuration_js_1 = __webpack_require__(2); var SymbolMap_js_1 = __webpack_require__(3); var ParseUtil_js_1 = __webpack_require__(4); exports.ENCLOSE_OPTIONS = { 'data-arrowhead': 1, color: 1, mathcolor: 1, background: 1, mathbackground: 1, 'data-padding': 1, 'data-thickness': 1 }; exports.EncloseMethods = {}; exports.EncloseMethods.Enclose = function (parser, name) { var notation = parser.GetArgument(name).replace(/,/g, ' '); var attr = parser.GetBrackets(name, ''); var math = parser.ParseArg(name); var def = ParseUtil_js_1.default.keyvalOptions(attr, exports.ENCLOSE_OPTIONS); def.notation = notation; parser.Push(parser.create('node', 'menclose', [math], def)); }; new SymbolMap_js_1.CommandMap('enclose', { enclose: 'Enclose' }, exports.EncloseMethods); exports.EncloseConfiguration = Configuration_js_1.Configuration.create('enclose', { handler: { macro: ['enclose'] } }); //# sourceMappingURL=EncloseConfiguration.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseUtil["default"]; /***/ }), /* 5 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/enclose/EncloseConfiguration.js var EncloseConfiguration = __webpack_require__(1); // CONCATENATED MODULE: ./lib/enclose.js Object(global["combineWithMathJax"])({ _: { input: { tex: { enclose: { EncloseConfiguration: EncloseConfiguration } } } } }); // CONCATENATED MODULE: ./enclose.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/noundefined.js0000644000176200001440000001554014005301544024002 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 3); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.NoUndefinedConfiguration = void 0; var Configuration_js_1 = __webpack_require__(2); function noUndefined(parser, name) { var e_1, _a; var textNode = parser.create('text', '\\' + name); var options = parser.options.noundefined || {}; var def = {}; try { for (var _b = __values(['color', 'background', 'size']), _c = _b.next(); !_c.done; _c = _b.next()) { var id = _c.value; if (options[id]) { def['math' + id] = options[id]; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } parser.Push(parser.create('node', 'mtext', [], def, textNode)); } exports.NoUndefinedConfiguration = Configuration_js_1.Configuration.create('noundefined', { fallback: { macro: noUndefined }, options: { noundefined: { color: 'red', background: '', size: '' } }, priority: 3 }); //# sourceMappingURL=NoUndefinedConfiguration.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 3 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/noundefined/NoUndefinedConfiguration.js var NoUndefinedConfiguration = __webpack_require__(1); // CONCATENATED MODULE: ./lib/noundefined.js Object(global["combineWithMathJax"])({ _: { input: { tex: { noundefined: { NoUndefinedConfiguration: NoUndefinedConfiguration } } } } }); // CONCATENATED MODULE: ./noundefined.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/braket.js0000644000176200001440000003473114005301544022757 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 12); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.BraketItem = void 0; var StackItem_js_1 = __webpack_require__(6); var MmlNode_js_1 = __webpack_require__(2); var ParseUtil_js_1 = __webpack_require__(7); var BraketItem = (function (_super) { __extends(BraketItem, _super); function BraketItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(BraketItem.prototype, "kind", { get: function () { return 'braket'; }, enumerable: false, configurable: true }); Object.defineProperty(BraketItem.prototype, "isOpen", { get: function () { return true; }, enumerable: false, configurable: true }); BraketItem.prototype.checkItem = function (item) { if (item.isKind('close')) { return [[this.factory.create('mml', this.toMml())], true]; } if (item.isKind('mml')) { this.Push(item.toMml()); if (this.getProperty('single')) { return [[this.toMml()], true]; } return StackItem_js_1.BaseItem.fail; } return _super.prototype.checkItem.call(this, item); }; BraketItem.prototype.toMml = function () { var inner = _super.prototype.toMml.call(this); var open = this.getProperty('open'); var close = this.getProperty('close'); if (this.getProperty('stretchy')) { return ParseUtil_js_1.default.fenced(this.factory.configuration, open, inner, close); } var attrs = { fence: true, stretchy: false, symmetric: true, texClass: MmlNode_js_1.TEXCLASS.OPEN }; var openNode = this.create('token', 'mo', attrs, open); attrs.texClass = MmlNode_js_1.TEXCLASS.CLOSE; var closeNode = this.create('token', 'mo', attrs, close); var mrow = this.create('node', 'mrow', [openNode, inner, closeNode], { open: open, close: close, texClass: MmlNode_js_1.TEXCLASS.INNER }); return mrow; }; return BraketItem; }(StackItem_js_1.BaseItem)); exports.BraketItem = BraketItem; //# sourceMappingURL=BraketItems.js.map /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var BaseMethods_js_1 = __webpack_require__(10); var MmlNode_js_1 = __webpack_require__(2); var TexError_js_1 = __webpack_require__(11); var BraketMethods = {}; BraketMethods.Macro = BaseMethods_js_1.default.Macro; BraketMethods.Braket = function (parser, _name, open, close, stretchy, barmax) { var next = parser.GetNext(); if (next === '') { throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', parser.currentCS); } var single = true; if (next === '{') { parser.i++; single = false; } parser.Push(parser.itemFactory.create('braket') .setProperties({ barmax: barmax, barcount: 0, open: open, close: close, stretchy: stretchy, single: single })); }; BraketMethods.Bar = function (parser, name) { var c = name === '|' ? '|' : '\u2225'; var top = parser.stack.Top(); if (top.kind !== 'braket' || top.getProperty('barcount') >= top.getProperty('barmax')) { var mml = parser.create('token', 'mo', { texClass: MmlNode_js_1.TEXCLASS.ORD, stretchy: false }, c); parser.Push(mml); return; } if (c === '|' && parser.GetNext() === '|') { parser.i++; c = '\u2225'; } var stretchy = top.getProperty('stretchy'); if (!stretchy) { var node_1 = parser.create('token', 'mo', { stretchy: false, braketbar: true }, c); parser.Push(node_1); return; } var node = parser.create('node', 'TeXAtom', [], { texClass: MmlNode_js_1.TEXCLASS.CLOSE }); parser.Push(node); top.setProperty('barcount', top.getProperty('barcount') + 1); node = parser.create('token', 'mo', { stretchy: true, braketbar: true }, c); parser.Push(node); node = parser.create('node', 'TeXAtom', [], { texClass: MmlNode_js_1.TEXCLASS.OPEN }); parser.Push(node); }; exports.default = BraketMethods; //# sourceMappingURL=BraketMethods.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.TEXCLASS = MathJax._.core.MmlTree.MmlNode.TEXCLASS; exports.TEXCLASSNAMES = MathJax._.core.MmlTree.MmlNode.TEXCLASSNAMES; exports.indentAttributes = MathJax._.core.MmlTree.MmlNode.indentAttributes; exports.AbstractMmlNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlNode; exports.AbstractMmlTokenNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlTokenNode; exports.AbstractMmlLayoutNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlLayoutNode; exports.AbstractMmlBaseNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlBaseNode; exports.AbstractMmlEmptyNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlEmptyNode; exports.TextNode = MathJax._.core.MmlTree.MmlNode.TextNode; exports.XMLNode = MathJax._.core.MmlTree.MmlNode.XMLNode; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.BraketConfiguration = void 0; var Configuration_js_1 = __webpack_require__(5); var BraketItems_js_1 = __webpack_require__(0); __webpack_require__(8); exports.BraketConfiguration = Configuration_js_1.Configuration.create('braket', { handler: { character: ['Braket-characters'], macro: ['Braket-macros'] }, items: (_a = {}, _a[BraketItems_js_1.BraketItem.prototype.kind] = BraketItems_js_1.BraketItem, _a) }); //# sourceMappingURL=BraketConfiguration.js.map /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlStack = MathJax._.input.tex.StackItem.MmlStack; exports.BaseItem = MathJax._.input.tex.StackItem.BaseItem; /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.ParseUtil["default"]; /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var SymbolMap_js_1 = __webpack_require__(9); var BraketMethods_js_1 = __webpack_require__(1); new SymbolMap_js_1.CommandMap('Braket-macros', { bra: ['Macro', '{\\langle {#1} \\vert}', 1], ket: ['Macro', '{\\vert {#1} \\rangle}', 1], braket: ['Braket', '\u27E8', '\u27E9', false, Infinity], 'set': ['Braket', '{', '}', false, 1], Bra: ['Macro', '{\\left\\langle {#1} \\right\\vert}', 1], Ket: ['Macro', '{\\left\\vert {#1} \\right\\rangle}', 1], Braket: ['Braket', '\u27E8', '\u27E9', true, Infinity], Set: ['Braket', '{', '}', true, 1], ketbra: ['Macro', '{\\vert {#1} \\rangle\\langle {#2} \\vert}', 2], Ketbra: ['Macro', '{\\left\\vert {#1} \\right\\rangle\\left\\langle {#2} \\right\\vert}', 2], '|': 'Bar' }, BraketMethods_js_1.default); new SymbolMap_js_1.MacroMap('Braket-characters', { '|': 'Bar' }, BraketMethods_js_1.default); //# sourceMappingURL=BraketMappings.js.map /***/ }), /* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.base.BaseMethods["default"]; /***/ }), /* 11 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.TexError["default"]; /***/ }), /* 12 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(3); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/braket/BraketConfiguration.js var BraketConfiguration = __webpack_require__(4); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/braket/BraketItems.js var BraketItems = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/braket/BraketMethods.js var BraketMethods = __webpack_require__(1); // CONCATENATED MODULE: ./lib/braket.js Object(global["combineWithMathJax"])({ _: { input: { tex: { braket: { BraketConfiguration: BraketConfiguration, BraketItems: BraketItems, BraketMethods: BraketMethods } } } } }); // CONCATENATED MODULE: ./braket.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/boldsymbol.js0000644000176200001440000002425114005301544023651 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 7); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.BoldsymbolConfiguration = exports.rewriteBoldTokens = exports.createBoldToken = exports.BoldsymbolMethods = void 0; var Configuration_js_1 = __webpack_require__(2); var NodeUtil_js_1 = __webpack_require__(3); var TexConstants_js_1 = __webpack_require__(4); var SymbolMap_js_1 = __webpack_require__(5); var NodeFactory_js_1 = __webpack_require__(6); var BOLDVARIANT = {}; BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.NORMAL] = TexConstants_js_1.TexConstant.Variant.BOLD; BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.ITALIC] = TexConstants_js_1.TexConstant.Variant.BOLDITALIC; BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.FRAKTUR] = TexConstants_js_1.TexConstant.Variant.BOLDFRAKTUR; BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.SCRIPT] = TexConstants_js_1.TexConstant.Variant.BOLDSCRIPT; BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.SANSSERIF] = TexConstants_js_1.TexConstant.Variant.BOLDSANSSERIF; BOLDVARIANT['-tex-calligraphic'] = '-tex-bold-calligraphic'; BOLDVARIANT['-tex-oldstyle'] = '-tex-bold-oldstyle'; exports.BoldsymbolMethods = {}; exports.BoldsymbolMethods.Boldsymbol = function (parser, name) { var boldsymbol = parser.stack.env['boldsymbol']; parser.stack.env['boldsymbol'] = true; var mml = parser.ParseArg(name); parser.stack.env['boldsymbol'] = boldsymbol; parser.Push(mml); }; new SymbolMap_js_1.CommandMap('boldsymbol', { boldsymbol: 'Boldsymbol' }, exports.BoldsymbolMethods); function createBoldToken(factory, kind, def, text) { var token = NodeFactory_js_1.NodeFactory.createToken(factory, kind, def, text); if (kind !== 'mtext' && factory.configuration.parser.stack.env['boldsymbol']) { NodeUtil_js_1.default.setProperty(token, 'fixBold', true); factory.configuration.addNode('fixBold', token); } return token; } exports.createBoldToken = createBoldToken; function rewriteBoldTokens(arg) { var e_1, _a; try { for (var _b = __values(arg.data.getList('fixBold')), _c = _b.next(); !_c.done; _c = _b.next()) { var node = _c.value; if (NodeUtil_js_1.default.getProperty(node, 'fixBold')) { var variant = NodeUtil_js_1.default.getAttribute(node, 'mathvariant'); if (variant == null) { NodeUtil_js_1.default.setAttribute(node, 'mathvariant', TexConstants_js_1.TexConstant.Variant.BOLD); } else { NodeUtil_js_1.default.setAttribute(node, 'mathvariant', BOLDVARIANT[variant] || variant); } NodeUtil_js_1.default.removeProperties(node, 'fixBold'); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } exports.rewriteBoldTokens = rewriteBoldTokens; exports.BoldsymbolConfiguration = Configuration_js_1.Configuration.create('boldsymbol', { handler: { macro: ['boldsymbol'] }, nodes: { 'token': createBoldToken }, postprocessors: [rewriteBoldTokens] }); //# sourceMappingURL=BoldsymbolConfiguration.js.map /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.NodeUtil["default"]; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.TexConstant = MathJax._.input.tex.TexConstants.TexConstant; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.NodeFactory = MathJax._.input.tex.NodeFactory.NodeFactory; /***/ }), /* 7 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/boldsymbol/BoldsymbolConfiguration.js var BoldsymbolConfiguration = __webpack_require__(1); // CONCATENATED MODULE: ./lib/boldsymbol.js Object(global["combineWithMathJax"])({ _: { input: { tex: { boldsymbol: { BoldsymbolConfiguration: BoldsymbolConfiguration } } } } }); // CONCATENATED MODULE: ./boldsymbol.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/input/tex/extensions/html.js0000644000176200001440000002131414005301544022444 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 6); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var NodeUtil_js_1 = __webpack_require__(5); var HtmlMethods = {}; HtmlMethods.Href = function (parser, name) { var url = parser.GetArgument(name); var arg = GetArgumentMML(parser, name); NodeUtil_js_1.default.setAttribute(arg, 'href', url); parser.Push(arg); }; HtmlMethods.Class = function (parser, name) { var CLASS = parser.GetArgument(name); var arg = GetArgumentMML(parser, name); var oldClass = NodeUtil_js_1.default.getAttribute(arg, 'class'); if (oldClass) { CLASS = oldClass + ' ' + CLASS; } NodeUtil_js_1.default.setAttribute(arg, 'class', CLASS); parser.Push(arg); }; HtmlMethods.Style = function (parser, name) { var style = parser.GetArgument(name); var arg = GetArgumentMML(parser, name); var oldStyle = NodeUtil_js_1.default.getAttribute(arg, 'style'); if (oldStyle) { if (style.charAt(style.length - 1) !== ';') { style += ';'; } style = oldStyle + ' ' + style; } NodeUtil_js_1.default.setAttribute(arg, 'style', style); parser.Push(arg); }; HtmlMethods.Id = function (parser, name) { var ID = parser.GetArgument(name); var arg = GetArgumentMML(parser, name); NodeUtil_js_1.default.setAttribute(arg, 'id', ID); parser.Push(arg); }; var GetArgumentMML = function (parser, name) { var arg = parser.ParseArg(name); if (!NodeUtil_js_1.default.isInferred(arg)) { return arg; } var children = NodeUtil_js_1.default.getChildren(arg); if (children.length === 1) { return children[0]; } var mrow = parser.create('node', 'mrow'); NodeUtil_js_1.default.copyChildren(arg, mrow); NodeUtil_js_1.default.copyAttributes(arg, mrow); return mrow; }; exports.default = HtmlMethods; //# sourceMappingURL=HtmlMethods.js.map /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HtmlConfiguration = void 0; var Configuration_js_1 = __webpack_require__(3); var SymbolMap_js_1 = __webpack_require__(4); var HtmlMethods_js_1 = __webpack_require__(0); new SymbolMap_js_1.CommandMap('html_macros', { href: 'Href', 'class': 'Class', style: 'Style', cssId: 'Id' }, HtmlMethods_js_1.default); exports.HtmlConfiguration = Configuration_js_1.Configuration.create('html', { handler: { macro: ['html_macros'] } }); //# sourceMappingURL=HtmlConfiguration.js.map /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Configuration = MathJax._.input.tex.Configuration.Configuration; exports.ConfigurationHandler = MathJax._.input.tex.Configuration.ConfigurationHandler; exports.ParserConfiguration = MathJax._.input.tex.Configuration.ParserConfiguration; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractSymbolMap = MathJax._.input.tex.SymbolMap.AbstractSymbolMap; exports.RegExpMap = MathJax._.input.tex.SymbolMap.RegExpMap; exports.AbstractParseMap = MathJax._.input.tex.SymbolMap.AbstractParseMap; exports.CharacterMap = MathJax._.input.tex.SymbolMap.CharacterMap; exports.DelimiterMap = MathJax._.input.tex.SymbolMap.DelimiterMap; exports.MacroMap = MathJax._.input.tex.SymbolMap.MacroMap; exports.CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; exports.EnvironmentMap = MathJax._.input.tex.SymbolMap.EnvironmentMap; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["default"] = MathJax._.input.tex.NodeUtil["default"]; /***/ }), /* 6 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(1); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/html/HtmlConfiguration.js var HtmlConfiguration = __webpack_require__(2); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/html/HtmlMethods.js var HtmlMethods = __webpack_require__(0); // CONCATENATED MODULE: ./lib/html.js Object(global["combineWithMathJax"])({ _: { input: { tex: { html: { HtmlConfiguration: HtmlConfiguration, HtmlMethods: HtmlMethods } } } } }); // CONCATENATED MODULE: ./html.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/tex-chtml-full.js0000644000176200001440000626752314005301544020233 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 310); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.XMLNode = exports.TextNode = exports.AbstractMmlEmptyNode = exports.AbstractMmlBaseNode = exports.AbstractMmlLayoutNode = exports.AbstractMmlTokenNode = exports.AbstractMmlNode = exports.indentAttributes = exports.TEXCLASSNAMES = exports.TEXCLASS = void 0; var Attributes_js_1 = __webpack_require__(26); var Node_js_1 = __webpack_require__(57); exports.TEXCLASS = { ORD: 0, OP: 1, BIN: 2, REL: 3, OPEN: 4, CLOSE: 5, PUNCT: 6, INNER: 7, VCENTER: 8, NONE: -1 }; exports.TEXCLASSNAMES = ['ORD', 'OP', 'BIN', 'REL', 'OPEN', 'CLOSE', 'PUNCT', 'INNER', 'VCENTER']; var TEXSPACELENGTH = ['', 'thinmathspace', 'mediummathspace', 'thickmathspace']; var TEXSPACE = [ [0, -1, 2, 3, 0, 0, 0, 1], [-1, -1, 0, 3, 0, 0, 0, 1], [2, 2, 0, 0, 2, 0, 0, 2], [3, 3, 0, 0, 3, 0, 0, 3], [0, 0, 0, 0, 0, 0, 0, 0], [0, -1, 2, 3, 0, 0, 0, 1], [1, 1, 0, 1, 1, 1, 1, 1], [1, -1, 2, 3, 1, 0, 1, 1] ]; exports.indentAttributes = [ 'indentalign', 'indentalignfirst', 'indentshift', 'indentshiftfirst' ]; var AbstractMmlNode = (function (_super) { __extends(AbstractMmlNode, _super); function AbstractMmlNode(factory, attributes, children) { if (attributes === void 0) { attributes = {}; } if (children === void 0) { children = []; } var _this = _super.call(this, factory) || this; _this.texClass = null; _this.prevClass = null; _this.prevLevel = null; if (_this.arity < 0) { _this.childNodes = [factory.create('inferredMrow')]; _this.childNodes[0].parent = _this; } _this.setChildren(children); _this.attributes = new Attributes_js_1.Attributes(factory.getNodeClass(_this.kind).defaults, factory.getNodeClass('math').defaults); _this.attributes.setList(attributes); return _this; } Object.defineProperty(AbstractMmlNode.prototype, "isToken", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlNode.prototype, "isEmbellished", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlNode.prototype, "isSpacelike", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlNode.prototype, "linebreakContainer", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlNode.prototype, "hasNewLine", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlNode.prototype, "arity", { get: function () { return Infinity; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlNode.prototype, "isInferred", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlNode.prototype, "Parent", { get: function () { var parent = this.parent; while (parent && parent.notParent) { parent = parent.Parent; } return parent; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlNode.prototype, "notParent", { get: function () { return false; }, enumerable: false, configurable: true }); AbstractMmlNode.prototype.setChildren = function (children) { if (this.arity < 0) { return this.childNodes[0].setChildren(children); } return _super.prototype.setChildren.call(this, children); }; AbstractMmlNode.prototype.appendChild = function (child) { if (this.arity < 0) { this.childNodes[0].appendChild(child); return child; } return _super.prototype.appendChild.call(this, child); }; AbstractMmlNode.prototype.replaceChild = function (newChild, oldChild) { if (this.arity < 0) { this.childNodes[0].replaceChild(newChild, oldChild); return newChild; } return _super.prototype.replaceChild.call(this, newChild, oldChild); }; AbstractMmlNode.prototype.core = function () { return this; }; AbstractMmlNode.prototype.coreMO = function () { return this; }; AbstractMmlNode.prototype.coreIndex = function () { return 0; }; AbstractMmlNode.prototype.childPosition = function () { var e_1, _a; var child = this; var parent = child.parent; while (parent && parent.notParent) { child = parent; parent = parent.parent; } if (parent) { var i = 0; try { for (var _b = __values(parent.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var node = _c.value; if (node === child) { return i; } i++; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } return null; }; AbstractMmlNode.prototype.setTeXclass = function (prev) { this.getPrevClass(prev); return (this.texClass != null ? this : prev); }; AbstractMmlNode.prototype.updateTeXclass = function (core) { if (core) { this.prevClass = core.prevClass; this.prevLevel = core.prevLevel; core.prevClass = core.prevLevel = null; this.texClass = core.texClass; } }; AbstractMmlNode.prototype.getPrevClass = function (prev) { if (prev) { this.prevClass = prev.texClass; this.prevLevel = prev.attributes.get('scriptlevel'); } }; AbstractMmlNode.prototype.texSpacing = function () { var prevClass = (this.prevClass != null ? this.prevClass : exports.TEXCLASS.NONE); var texClass = this.texClass || exports.TEXCLASS.ORD; if (prevClass === exports.TEXCLASS.NONE || texClass === exports.TEXCLASS.NONE) { return ''; } if (prevClass === exports.TEXCLASS.VCENTER) { prevClass = exports.TEXCLASS.ORD; } if (texClass === exports.TEXCLASS.VCENTER) { texClass = exports.TEXCLASS.ORD; } var space = TEXSPACE[prevClass][texClass]; if ((this.prevLevel > 0 || this.attributes.get('scriptlevel') > 0) && space >= 0) { return ''; } return TEXSPACELENGTH[Math.abs(space)]; }; AbstractMmlNode.prototype.hasSpacingAttributes = function () { return this.isEmbellished && this.coreMO().hasSpacingAttributes(); }; AbstractMmlNode.prototype.setInheritedAttributes = function (attributes, display, level, prime) { var e_2, _a; if (attributes === void 0) { attributes = {}; } if (display === void 0) { display = false; } if (level === void 0) { level = 0; } if (prime === void 0) { prime = false; } var defaults = this.attributes.getAllDefaults(); try { for (var _b = __values(Object.keys(attributes)), _c = _b.next(); !_c.done; _c = _b.next()) { var key = _c.value; if (defaults.hasOwnProperty(key) || AbstractMmlNode.alwaysInherit.hasOwnProperty(key)) { var _d = __read(attributes[key], 2), node = _d[0], value = _d[1]; var noinherit = (AbstractMmlNode.noInherit[node] || {})[this.kind] || {}; if (!noinherit[key]) { this.attributes.setInherited(key, value); } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } var displaystyle = this.attributes.getExplicit('displaystyle'); if (displaystyle === undefined) { this.attributes.setInherited('displaystyle', display); } var scriptlevel = this.attributes.getExplicit('scriptlevel'); if (scriptlevel === undefined) { this.attributes.setInherited('scriptlevel', level); } if (prime) { this.setProperty('texprimestyle', prime); } var arity = this.arity; if (arity >= 0 && arity !== Infinity && ((arity === 1 && this.childNodes.length === 0) || (arity !== 1 && this.childNodes.length !== arity))) { if (arity < this.childNodes.length) { this.childNodes = this.childNodes.slice(0, arity); } else { while (this.childNodes.length < arity) { this.appendChild(this.factory.create('mrow')); } } } this.setChildInheritedAttributes(attributes, display, level, prime); }; AbstractMmlNode.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) { var e_3, _a; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; child.setInheritedAttributes(attributes, display, level, prime); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } }; AbstractMmlNode.prototype.addInheritedAttributes = function (current, attributes) { var e_4, _a; var updated = __assign({}, current); try { for (var _b = __values(Object.keys(attributes)), _c = _b.next(); !_c.done; _c = _b.next()) { var name_1 = _c.value; if (name_1 !== 'displaystyle' && name_1 !== 'scriptlevel' && name_1 !== 'style') { updated[name_1] = [this.kind, attributes[name_1]]; } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } return updated; }; AbstractMmlNode.prototype.inheritAttributesFrom = function (node) { var attributes = node.attributes; var display = attributes.get('displaystyle'); var scriptlevel = attributes.get('scriptlevel'); var defaults = (!attributes.isSet('mathsize') ? {} : { mathsize: ['math', attributes.get('mathsize')] }); var prime = node.getProperty('texprimestyle') || false; this.setInheritedAttributes(defaults, display, scriptlevel, prime); }; AbstractMmlNode.prototype.verifyTree = function (options) { if (options === void 0) { options = null; } if (options === null) { return; } this.verifyAttributes(options); var arity = this.arity; if (options['checkArity']) { if (arity >= 0 && arity !== Infinity && ((arity === 1 && this.childNodes.length === 0) || (arity !== 1 && this.childNodes.length !== arity))) { this.mError('Wrong number of children for "' + this.kind + '" node', options, true); } } this.verifyChildren(options); }; AbstractMmlNode.prototype.verifyAttributes = function (options) { var e_5, _a; if (options['checkAttributes']) { var attributes = this.attributes; var bad = []; try { for (var _b = __values(attributes.getExplicitNames()), _c = _b.next(); !_c.done; _c = _b.next()) { var name_2 = _c.value; if (name_2.substr(0, 5) !== 'data-' && attributes.getDefault(name_2) === undefined && !name_2.match(/^(?:class|style|id|(?:xlink:)?href)$/)) { bad.push(name_2); } } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_5) throw e_5.error; } } if (bad.length) { this.mError('Unknown attributes for ' + this.kind + ' node: ' + bad.join(', '), options); } } }; AbstractMmlNode.prototype.verifyChildren = function (options) { var e_6, _a; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; child.verifyTree(options); } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_6) throw e_6.error; } } }; AbstractMmlNode.prototype.mError = function (message, options, short) { if (short === void 0) { short = false; } if (this.parent && this.parent.isKind('merror')) { return null; } var merror = this.factory.create('merror'); if (options['fullErrors'] || short) { var mtext = this.factory.create('mtext'); var text = this.factory.create('text'); text.setText(options['fullErrors'] ? message : this.kind); mtext.appendChild(text); merror.appendChild(mtext); this.parent.replaceChild(merror, this); } else { this.parent.replaceChild(merror, this); merror.appendChild(this); } return merror; }; AbstractMmlNode.defaults = { mathbackground: Attributes_js_1.INHERIT, mathcolor: Attributes_js_1.INHERIT, mathsize: Attributes_js_1.INHERIT, dir: Attributes_js_1.INHERIT }; AbstractMmlNode.noInherit = { mstyle: { mpadded: { width: true, height: true, depth: true, lspace: true, voffset: true }, mtable: { width: true, height: true, depth: true, align: true } }, maligngroup: { mrow: { groupalign: true }, mtable: { groupalign: true } } }; AbstractMmlNode.alwaysInherit = { scriptminsize: true, scriptsizemultiplier: true }; AbstractMmlNode.verifyDefaults = { checkArity: true, checkAttributes: false, fullErrors: false, fixMmultiscripts: true, fixMtables: true }; return AbstractMmlNode; }(Node_js_1.AbstractNode)); exports.AbstractMmlNode = AbstractMmlNode; var AbstractMmlTokenNode = (function (_super) { __extends(AbstractMmlTokenNode, _super); function AbstractMmlTokenNode() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(AbstractMmlTokenNode.prototype, "isToken", { get: function () { return true; }, enumerable: false, configurable: true }); AbstractMmlTokenNode.prototype.getText = function () { var e_7, _a; var text = ''; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child instanceof TextNode) { text += child.getText(); } } } catch (e_7_1) { e_7 = { error: e_7_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_7) throw e_7.error; } } return text; }; AbstractMmlTokenNode.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) { var e_8, _a; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child instanceof AbstractMmlNode) { child.setInheritedAttributes(attributes, display, level, prime); } } } catch (e_8_1) { e_8 = { error: e_8_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_8) throw e_8.error; } } }; AbstractMmlTokenNode.prototype.walkTree = function (func, data) { var e_9, _a; func(this, data); try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child instanceof AbstractMmlNode) { child.walkTree(func, data); } } } catch (e_9_1) { e_9 = { error: e_9_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_9) throw e_9.error; } } return data; }; AbstractMmlTokenNode.defaults = __assign(__assign({}, AbstractMmlNode.defaults), { mathvariant: 'normal', mathsize: Attributes_js_1.INHERIT }); return AbstractMmlTokenNode; }(AbstractMmlNode)); exports.AbstractMmlTokenNode = AbstractMmlTokenNode; var AbstractMmlLayoutNode = (function (_super) { __extends(AbstractMmlLayoutNode, _super); function AbstractMmlLayoutNode() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(AbstractMmlLayoutNode.prototype, "isSpacelike", { get: function () { return this.childNodes[0].isSpacelike; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlLayoutNode.prototype, "isEmbellished", { get: function () { return this.childNodes[0].isEmbellished; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlLayoutNode.prototype, "arity", { get: function () { return -1; }, enumerable: false, configurable: true }); AbstractMmlLayoutNode.prototype.core = function () { return this.childNodes[0]; }; AbstractMmlLayoutNode.prototype.coreMO = function () { return this.childNodes[0].coreMO(); }; AbstractMmlLayoutNode.prototype.setTeXclass = function (prev) { prev = this.childNodes[0].setTeXclass(prev); this.updateTeXclass(this.childNodes[0]); return prev; }; AbstractMmlLayoutNode.defaults = AbstractMmlNode.defaults; return AbstractMmlLayoutNode; }(AbstractMmlNode)); exports.AbstractMmlLayoutNode = AbstractMmlLayoutNode; var AbstractMmlBaseNode = (function (_super) { __extends(AbstractMmlBaseNode, _super); function AbstractMmlBaseNode() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(AbstractMmlBaseNode.prototype, "isEmbellished", { get: function () { return this.childNodes[0].isEmbellished; }, enumerable: false, configurable: true }); AbstractMmlBaseNode.prototype.core = function () { return this.childNodes[0]; }; AbstractMmlBaseNode.prototype.coreMO = function () { return this.childNodes[0].coreMO(); }; AbstractMmlBaseNode.prototype.setTeXclass = function (prev) { var e_10, _a; this.getPrevClass(prev); this.texClass = exports.TEXCLASS.ORD; var base = this.childNodes[0]; if (base) { if (this.isEmbellished || base.isKind('mi')) { prev = base.setTeXclass(prev); this.updateTeXclass(this.core()); } else { base.setTeXclass(null); prev = this; } } else { prev = this; } try { for (var _b = __values(this.childNodes.slice(1)), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child) { child.setTeXclass(null); } } } catch (e_10_1) { e_10 = { error: e_10_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_10) throw e_10.error; } } return prev; }; AbstractMmlBaseNode.defaults = AbstractMmlNode.defaults; return AbstractMmlBaseNode; }(AbstractMmlNode)); exports.AbstractMmlBaseNode = AbstractMmlBaseNode; var AbstractMmlEmptyNode = (function (_super) { __extends(AbstractMmlEmptyNode, _super); function AbstractMmlEmptyNode() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(AbstractMmlEmptyNode.prototype, "isToken", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlEmptyNode.prototype, "isEmbellished", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlEmptyNode.prototype, "isSpacelike", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlEmptyNode.prototype, "linebreakContainer", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlEmptyNode.prototype, "hasNewLine", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlEmptyNode.prototype, "arity", { get: function () { return 0; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlEmptyNode.prototype, "isInferred", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlEmptyNode.prototype, "notParent", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlEmptyNode.prototype, "Parent", { get: function () { return this.parent; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlEmptyNode.prototype, "texClass", { get: function () { return exports.TEXCLASS.NONE; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlEmptyNode.prototype, "prevClass", { get: function () { return exports.TEXCLASS.NONE; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMmlEmptyNode.prototype, "prevLevel", { get: function () { return 0; }, enumerable: false, configurable: true }); AbstractMmlEmptyNode.prototype.hasSpacingAttributes = function () { return false; }; Object.defineProperty(AbstractMmlEmptyNode.prototype, "attributes", { get: function () { return null; }, enumerable: false, configurable: true }); AbstractMmlEmptyNode.prototype.core = function () { return this; }; AbstractMmlEmptyNode.prototype.coreMO = function () { return this; }; AbstractMmlEmptyNode.prototype.coreIndex = function () { return 0; }; AbstractMmlEmptyNode.prototype.childPosition = function () { return 0; }; AbstractMmlEmptyNode.prototype.setTeXclass = function (prev) { return prev; }; AbstractMmlEmptyNode.prototype.texSpacing = function () { return ''; }; AbstractMmlEmptyNode.prototype.setInheritedAttributes = function (_attributes, _display, _level, _prime) { }; AbstractMmlEmptyNode.prototype.inheritAttributesFrom = function (_node) { }; AbstractMmlEmptyNode.prototype.verifyTree = function (_options) { }; AbstractMmlEmptyNode.prototype.mError = function (_message, _options, _short) { if (_short === void 0) { _short = false; } }; return AbstractMmlEmptyNode; }(Node_js_1.AbstractEmptyNode)); exports.AbstractMmlEmptyNode = AbstractMmlEmptyNode; var TextNode = (function (_super) { __extends(TextNode, _super); function TextNode() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.text = ''; return _this; } Object.defineProperty(TextNode.prototype, "kind", { get: function () { return 'text'; }, enumerable: false, configurable: true }); TextNode.prototype.getText = function () { return this.text; }; TextNode.prototype.setText = function (text) { this.text = text; return this; }; TextNode.prototype.toString = function () { return this.text; }; return TextNode; }(AbstractMmlEmptyNode)); exports.TextNode = TextNode; var XMLNode = (function (_super) { __extends(XMLNode, _super); function XMLNode() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.xml = null; _this.adaptor = null; return _this; } Object.defineProperty(XMLNode.prototype, "kind", { get: function () { return 'XML'; }, enumerable: false, configurable: true }); XMLNode.prototype.getXML = function () { return this.xml; }; XMLNode.prototype.setXML = function (xml, adaptor) { if (adaptor === void 0) { adaptor = null; } this.xml = xml; this.adaptor = adaptor; return this; }; XMLNode.prototype.getSerializedXML = function () { return this.adaptor.outerHTML(this.xml); }; XMLNode.prototype.toString = function () { return 'XML data'; }; return XMLNode; }(AbstractMmlEmptyNode)); exports.XMLNode = XMLNode; //# sourceMappingURL=MmlNode.js.map /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global) { var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MathJax = exports.combineWithMathJax = exports.combineDefaults = exports.combineConfig = exports.isObject = void 0; function isObject(x) { return typeof x === 'object' && x !== null; } exports.isObject = isObject; function combineConfig(dst, src) { var e_1, _a; try { for (var _b = __values(Object.keys(src)), _c = _b.next(); !_c.done; _c = _b.next()) { var id = _c.value; if (id === '__esModule') continue; if (isObject(dst[id]) && isObject(src[id]) && !(src[id] instanceof Promise)) { combineConfig(dst[id], src[id]); } else if (src[id] !== null && src[id] !== undefined) { dst[id] = src[id]; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return dst; } exports.combineConfig = combineConfig; function combineDefaults(dst, name, src) { var e_2, _a; if (!dst[name]) { dst[name] = {}; } dst = dst[name]; try { for (var _b = __values(Object.keys(src)), _c = _b.next(); !_c.done; _c = _b.next()) { var id = _c.value; if (isObject(dst[id]) && isObject(src[id])) { combineDefaults(dst, id, src[id]); } else if (dst[id] == null && src[id] != null) { dst[id] = src[id]; } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } return dst; } exports.combineDefaults = combineDefaults; function combineWithMathJax(config) { return combineConfig(exports.MathJax, config); } exports.combineWithMathJax = combineWithMathJax; if (typeof global.MathJax === 'undefined') { global.MathJax = {}; } if (!global.MathJax.version) { global.MathJax = { version: '3.1.2', _: {}, config: global.MathJax }; } exports.MathJax = global.MathJax; //# sourceMappingURL=global.js.map /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(264))) /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ParserConfiguration = exports.ConfigurationHandler = exports.Configuration = void 0; var Options_js_1 = __webpack_require__(6); var MapHandler_js_1 = __webpack_require__(33); var FunctionList_js_1 = __webpack_require__(31); var PrioritizedList_js_1 = __webpack_require__(22); var Tags_js_1 = __webpack_require__(21); var Configuration = (function () { function Configuration(name, handler, fallback, items, tags, options, nodes, preprocessors, postprocessors, initMethod, configMethod, priority) { if (handler === void 0) { handler = {}; } if (fallback === void 0) { fallback = {}; } if (items === void 0) { items = {}; } if (tags === void 0) { tags = {}; } if (options === void 0) { options = {}; } if (nodes === void 0) { nodes = {}; } if (preprocessors === void 0) { preprocessors = []; } if (postprocessors === void 0) { postprocessors = []; } if (initMethod === void 0) { initMethod = null; } if (configMethod === void 0) { configMethod = null; } this.name = name; this.handler = handler; this.fallback = fallback; this.items = items; this.tags = tags; this.options = options; this.nodes = nodes; this.preprocessors = preprocessors; this.postprocessors = postprocessors; this.initMethod = initMethod; this.configMethod = configMethod; this.priority = priority; this.handler = Object.assign({ character: [], delimiter: [], macro: [], environment: [] }, handler); } Configuration.makeProcessor = function (func, priority) { return Array.isArray(func) ? func : [func, priority]; }; Configuration._create = function (name, config) { var _this = this; if (config === void 0) { config = {}; } var priority = config.priority || PrioritizedList_js_1.PrioritizedList.DEFAULTPRIORITY; var init = config.init ? this.makeProcessor(config.init, priority) : null; var conf = config.config ? this.makeProcessor(config.config, priority) : null; var preprocessors = (config.preprocessors || []).map(function (pre) { return _this.makeProcessor(pre, priority); }); var postprocessors = (config.postprocessors || []).map(function (post) { return _this.makeProcessor(post, priority); }); return new Configuration(name, config.handler || {}, config.fallback || {}, config.items || {}, config.tags || {}, config.options || {}, config.nodes || {}, preprocessors, postprocessors, init, conf, priority); }; Configuration.create = function (name, config) { if (config === void 0) { config = {}; } var configuration = Configuration._create(name, config); ConfigurationHandler.set(name, configuration); return configuration; }; Configuration.local = function (config) { if (config === void 0) { config = {}; } return Configuration._create('', config); }; Object.defineProperty(Configuration.prototype, "init", { get: function () { return this.initMethod ? this.initMethod[0] : null; }, enumerable: false, configurable: true }); Object.defineProperty(Configuration.prototype, "config", { get: function () { return this.configMethod ? this.configMethod[0] : null; }, enumerable: false, configurable: true }); return Configuration; }()); exports.Configuration = Configuration; var ConfigurationHandler; (function (ConfigurationHandler) { var maps = new Map(); ConfigurationHandler.set = function (name, map) { maps.set(name, map); }; ConfigurationHandler.get = function (name) { return maps.get(name); }; ConfigurationHandler.keys = function () { return maps.keys(); }; })(ConfigurationHandler = exports.ConfigurationHandler || (exports.ConfigurationHandler = {})); var ParserConfiguration = (function () { function ParserConfiguration(packages) { var e_1, _a, e_2, _b; this.initMethod = new FunctionList_js_1.FunctionList(); this.configMethod = new FunctionList_js_1.FunctionList(); this.configurations = new PrioritizedList_js_1.PrioritizedList(); this.handlers = new MapHandler_js_1.SubHandlers(); this.items = {}; this.tags = {}; this.options = {}; this.nodes = {}; try { for (var _c = __values(packages.slice().reverse()), _d = _c.next(); !_d.done; _d = _c.next()) { var pkg = _d.value; this.addPackage(pkg); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_1) throw e_1.error; } } try { for (var _e = __values(this.configurations), _f = _e.next(); !_f.done; _f = _e.next()) { var _g = _f.value, config = _g.item, priority = _g.priority; this.append(config, priority); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_2) throw e_2.error; } } } ParserConfiguration.prototype.init = function () { this.initMethod.execute(this); }; ParserConfiguration.prototype.config = function (jax) { var e_3, _a; this.configMethod.execute(this, jax); try { for (var _b = __values(this.configurations), _c = _b.next(); !_c.done; _c = _b.next()) { var config = _c.value; this.addFilters(jax, config.item); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } }; ParserConfiguration.prototype.addPackage = function (pkg) { var name = typeof pkg === 'string' ? pkg : pkg[0]; var conf = ConfigurationHandler.get(name); if (conf) { this.configurations.add(conf, typeof pkg === 'string' ? conf.priority : pkg[1]); } }; ParserConfiguration.prototype.add = function (config, jax, options) { var e_4, _a; if (options === void 0) { options = {}; } this.append(config); this.configurations.add(config, config.priority); this.init(); var parser = jax.parseOptions; parser.nodeFactory.setCreators(config.nodes); try { for (var _b = __values(Object.keys(config.items)), _c = _b.next(); !_c.done; _c = _b.next()) { var kind = _c.value; parser.itemFactory.setNodeClass(kind, config.items[kind]); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } Tags_js_1.TagsFactory.addTags(config.tags); Options_js_1.defaultOptions(parser.options, config.options); Options_js_1.userOptions(parser.options, options); this.addFilters(jax, config); if (config.config) { config.config(this, jax); } }; ParserConfiguration.prototype.append = function (config, priority) { priority = priority || config.priority; if (config.initMethod) { this.initMethod.add(config.initMethod[0], config.initMethod[1]); } if (config.configMethod) { this.configMethod.add(config.configMethod[0], config.configMethod[1]); } this.handlers.add(config.handler, config.fallback, priority); Object.assign(this.items, config.items); Object.assign(this.tags, config.tags); Options_js_1.defaultOptions(this.options, config.options); Object.assign(this.nodes, config.nodes); }; ParserConfiguration.prototype.addFilters = function (jax, config) { var e_5, _a, e_6, _b; try { for (var _c = __values(config.preprocessors), _d = _c.next(); !_d.done; _d = _c.next()) { var _e = __read(_d.value, 2), pre = _e[0], priority = _e[1]; jax.preFilters.add(pre, priority); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_5) throw e_5.error; } } try { for (var _f = __values(config.postprocessors), _g = _f.next(); !_g.done; _g = _f.next()) { var _h = __read(_g.value, 2), post = _h[0], priority = _h[1]; jax.postFilters.add(post, priority); } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_6) throw e_6.error; } } }; return ParserConfiguration; }()); exports.ParserConfiguration = ParserConfiguration; //# sourceMappingURL=Configuration.js.map /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.EnvironmentMap = exports.CommandMap = exports.MacroMap = exports.DelimiterMap = exports.CharacterMap = exports.AbstractParseMap = exports.RegExpMap = exports.AbstractSymbolMap = void 0; var Symbol_js_1 = __webpack_require__(28); var MapHandler_js_1 = __webpack_require__(33); var AbstractSymbolMap = (function () { function AbstractSymbolMap(_name, _parser) { this._name = _name; this._parser = _parser; MapHandler_js_1.MapHandler.register(this); } Object.defineProperty(AbstractSymbolMap.prototype, "name", { get: function () { return this._name; }, enumerable: false, configurable: true }); AbstractSymbolMap.prototype.parserFor = function (symbol) { return this.contains(symbol) ? this.parser : null; }; AbstractSymbolMap.prototype.parse = function (_a) { var _b = __read(_a, 2), env = _b[0], symbol = _b[1]; var parser = this.parserFor(symbol); var mapped = this.lookup(symbol); return (parser && mapped) ? parser(env, mapped) || true : null; }; Object.defineProperty(AbstractSymbolMap.prototype, "parser", { get: function () { return this._parser; }, set: function (parser) { this._parser = parser; }, enumerable: false, configurable: true }); return AbstractSymbolMap; }()); exports.AbstractSymbolMap = AbstractSymbolMap; var RegExpMap = (function (_super) { __extends(RegExpMap, _super); function RegExpMap(name, parser, _regExp) { var _this = _super.call(this, name, parser) || this; _this._regExp = _regExp; return _this; } RegExpMap.prototype.contains = function (symbol) { return this._regExp.test(symbol); }; RegExpMap.prototype.lookup = function (symbol) { return this.contains(symbol) ? symbol : null; }; return RegExpMap; }(AbstractSymbolMap)); exports.RegExpMap = RegExpMap; var AbstractParseMap = (function (_super) { __extends(AbstractParseMap, _super); function AbstractParseMap() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.map = new Map(); return _this; } AbstractParseMap.prototype.lookup = function (symbol) { return this.map.get(symbol); }; AbstractParseMap.prototype.contains = function (symbol) { return this.map.has(symbol); }; AbstractParseMap.prototype.add = function (symbol, object) { this.map.set(symbol, object); }; AbstractParseMap.prototype.remove = function (symbol) { this.map.delete(symbol); }; return AbstractParseMap; }(AbstractSymbolMap)); exports.AbstractParseMap = AbstractParseMap; var CharacterMap = (function (_super) { __extends(CharacterMap, _super); function CharacterMap(name, parser, json) { var e_1, _a; var _this = _super.call(this, name, parser) || this; try { for (var _b = __values(Object.keys(json)), _c = _b.next(); !_c.done; _c = _b.next()) { var key = _c.value; var value = json[key]; var _d = __read((typeof (value) === 'string') ? [value, null] : value, 2), char = _d[0], attrs = _d[1]; var character = new Symbol_js_1.Symbol(key, char, attrs); _this.add(key, character); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return _this; } return CharacterMap; }(AbstractParseMap)); exports.CharacterMap = CharacterMap; var DelimiterMap = (function (_super) { __extends(DelimiterMap, _super); function DelimiterMap() { return _super !== null && _super.apply(this, arguments) || this; } DelimiterMap.prototype.parse = function (_a) { var _b = __read(_a, 2), env = _b[0], symbol = _b[1]; return _super.prototype.parse.call(this, [env, '\\' + symbol]); }; return DelimiterMap; }(CharacterMap)); exports.DelimiterMap = DelimiterMap; var MacroMap = (function (_super) { __extends(MacroMap, _super); function MacroMap(name, json, functionMap) { var e_2, _a; var _this = _super.call(this, name, null) || this; try { for (var _b = __values(Object.keys(json)), _c = _b.next(); !_c.done; _c = _b.next()) { var key = _c.value; var value = json[key]; var _d = __read((typeof (value) === 'string') ? [value] : value), func = _d[0], attrs = _d.slice(1); var character = new Symbol_js_1.Macro(key, functionMap[func], attrs); _this.add(key, character); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } return _this; } MacroMap.prototype.parserFor = function (symbol) { var macro = this.lookup(symbol); return macro ? macro.func : null; }; MacroMap.prototype.parse = function (_a) { var _b = __read(_a, 2), env = _b[0], symbol = _b[1]; var macro = this.lookup(symbol); var parser = this.parserFor(symbol); if (!macro || !parser) { return null; } return parser.apply(void 0, __spread([env, macro.symbol], macro.args)) || true; }; return MacroMap; }(AbstractParseMap)); exports.MacroMap = MacroMap; var CommandMap = (function (_super) { __extends(CommandMap, _super); function CommandMap() { return _super !== null && _super.apply(this, arguments) || this; } CommandMap.prototype.parse = function (_a) { var _b = __read(_a, 2), env = _b[0], symbol = _b[1]; var macro = this.lookup(symbol); var parser = this.parserFor(symbol); if (!macro || !parser) { return null; } if (!parser) { return null; } var saveCommand = env.currentCS; env.currentCS = '\\' + symbol; var result = parser.apply(void 0, __spread([env, '\\' + macro.symbol], macro.args)); env.currentCS = saveCommand; return result || true; }; return CommandMap; }(MacroMap)); exports.CommandMap = CommandMap; var EnvironmentMap = (function (_super) { __extends(EnvironmentMap, _super); function EnvironmentMap(name, parser, json, functionMap) { var _this = _super.call(this, name, json, functionMap) || this; _this.parser = parser; return _this; } EnvironmentMap.prototype.parse = function (_a) { var _b = __read(_a, 2), env = _b[0], symbol = _b[1]; var macro = this.lookup(symbol); var envParser = this.parserFor(symbol); if (!macro || !envParser) { return null; } this.parser(env, macro.symbol, envParser, macro.args); return true; }; return EnvironmentMap; }(MacroMap)); exports.EnvironmentMap = EnvironmentMap; //# sourceMappingURL=SymbolMap.js.map /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var TexError = (function () { function TexError(id, message) { var rest = []; for (var _i = 2; _i < arguments.length; _i++) { rest[_i - 2] = arguments[_i]; } this.id = id; this.message = TexError.processString(message, rest); } TexError.processString = function (str, args) { var parts = str.split(TexError.pattern); for (var i = 1, m = parts.length; i < m; i += 2) { var c = parts[i].charAt(0); if (c >= '0' && c <= '9') { parts[i] = args[parseInt(parts[i], 10) - 1]; if (typeof parts[i] === 'number') { parts[i] = parts[i].toString(); } } else if (c === '{') { c = parts[i].substr(1); if (c >= '0' && c <= '9') { parts[i] = args[parseInt(parts[i].substr(1, parts[i].length - 2), 10) - 1]; if (typeof parts[i] === 'number') { parts[i] = parts[i].toString(); } } else { var match = parts[i].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/); if (match) { parts[i] = '%' + parts[i]; } } } if (parts[i] == null) { parts[i] = '???'; } } return parts.join(''); }; TexError.pattern = /%(\d+|\{\d+\}|\{[a-z]+:\%\d+(?:\|(?:%\{\d+\}|%.|[^\}])*)+\}|.)/g; return TexError; }()); exports.default = TexError; //# sourceMappingURL=TexError.js.map /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLWrapper = exports.SPACE = exports.FONTSIZE = void 0; var LENGTHS = __webpack_require__(19); var Wrapper_js_1 = __webpack_require__(171); var BBox_js_1 = __webpack_require__(16); exports.FONTSIZE = { '70.7%': 's', '70%': 's', '50%': 'ss', '60%': 'Tn', '85%': 'sm', '120%': 'lg', '144%': 'Lg', '173%': 'LG', '207%': 'hg', '249%': 'HG' }; exports.SPACE = (_a = {}, _a[LENGTHS.em(2 / 18)] = '1', _a[LENGTHS.em(3 / 18)] = '2', _a[LENGTHS.em(4 / 18)] = '3', _a[LENGTHS.em(5 / 18)] = '4', _a[LENGTHS.em(6 / 18)] = '5', _a); var CHTMLWrapper = (function (_super) { __extends(CHTMLWrapper, _super); function CHTMLWrapper() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.chtml = null; return _this; } CHTMLWrapper.prototype.toCHTML = function (parent) { var e_1, _a; var chtml = this.standardCHTMLnode(parent); try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; child.toCHTML(chtml); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; CHTMLWrapper.prototype.standardCHTMLnode = function (parent) { this.markUsed(); var chtml = this.createCHTMLnode(parent); this.handleStyles(); this.handleVariant(); this.handleScale(); this.handleColor(); this.handleSpace(); this.handleAttributes(); this.handlePWidth(); return chtml; }; CHTMLWrapper.prototype.markUsed = function () { this.constructor.used = true; }; CHTMLWrapper.prototype.createCHTMLnode = function (parent) { var href = this.node.attributes.get('href'); if (href) { parent = this.adaptor.append(parent, this.html('a', { href: href })); } this.chtml = this.adaptor.append(parent, this.html('mjx-' + this.node.kind)); return this.chtml; }; CHTMLWrapper.prototype.handleStyles = function () { if (!this.styles) return; var styles = this.styles.cssText; if (styles) { this.adaptor.setAttribute(this.chtml, 'style', styles); var family = this.styles.get('font-family'); if (family) { this.adaptor.setStyle(this.chtml, 'font-family', 'MJXZERO, ' + family); } } }; CHTMLWrapper.prototype.handleVariant = function () { if (this.node.isToken && this.variant !== '-explicitFont') { this.adaptor.setAttribute(this.chtml, 'class', (this.font.getVariant(this.variant) || this.font.getVariant('normal')).classes); } }; CHTMLWrapper.prototype.handleScale = function () { this.setScale(this.chtml, this.bbox.rscale); }; CHTMLWrapper.prototype.setScale = function (chtml, rscale) { var scale = (Math.abs(rscale - 1) < .001 ? 1 : rscale); if (chtml && scale !== 1) { var size = this.percent(scale); if (exports.FONTSIZE[size]) { this.adaptor.setAttribute(chtml, 'size', exports.FONTSIZE[size]); } else { this.adaptor.setStyle(chtml, 'fontSize', size); } } return chtml; }; CHTMLWrapper.prototype.handleSpace = function () { var e_2, _a; try { for (var _b = __values([[this.bbox.L, 'space', 'marginLeft'], [this.bbox.R, 'rspace', 'marginRight']]), _c = _b.next(); !_c.done; _c = _b.next()) { var data = _c.value; var _d = __read(data, 3), dimen = _d[0], name_1 = _d[1], margin = _d[2]; if (dimen) { var space = this.em(dimen); if (exports.SPACE[space]) { this.adaptor.setAttribute(this.chtml, name_1, exports.SPACE[space]); } else { this.adaptor.setStyle(this.chtml, margin, space); } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } }; CHTMLWrapper.prototype.handleColor = function () { var attributes = this.node.attributes; var mathcolor = attributes.getExplicit('mathcolor'); var color = attributes.getExplicit('color'); var mathbackground = attributes.getExplicit('mathbackground'); var background = attributes.getExplicit('background'); if (mathcolor || color) { this.adaptor.setStyle(this.chtml, 'color', mathcolor || color); } if (mathbackground || background) { this.adaptor.setStyle(this.chtml, 'backgroundColor', mathbackground || background); } }; CHTMLWrapper.prototype.handleAttributes = function () { var e_3, _a, e_4, _b; var attributes = this.node.attributes; var defaults = attributes.getAllDefaults(); var skip = CHTMLWrapper.skipAttributes; try { for (var _c = __values(attributes.getExplicitNames()), _d = _c.next(); !_d.done; _d = _c.next()) { var name_2 = _d.value; if (skip[name_2] === false || (!(name_2 in defaults) && !skip[name_2] && !this.adaptor.hasAttribute(this.chtml, name_2))) { this.adaptor.setAttribute(this.chtml, name_2, attributes.getExplicit(name_2)); } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_3) throw e_3.error; } } if (attributes.get('class')) { var names = attributes.get('class').trim().split(/ +/); try { for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) { var name_3 = names_1_1.value; this.adaptor.addClass(this.chtml, name_3); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (names_1_1 && !names_1_1.done && (_b = names_1.return)) _b.call(names_1); } finally { if (e_4) throw e_4.error; } } } }; CHTMLWrapper.prototype.handlePWidth = function () { if (this.bbox.pwidth) { if (this.bbox.pwidth === BBox_js_1.BBox.fullWidth) { this.adaptor.setAttribute(this.chtml, 'width', 'full'); } else { this.adaptor.setStyle(this.chtml, 'width', this.bbox.pwidth); } } }; CHTMLWrapper.prototype.setIndent = function (chtml, align, shift) { var adaptor = this.adaptor; if (align === 'center' || align === 'left') { var L = this.getBBox().L; adaptor.setStyle(chtml, 'margin-left', this.em(shift + L)); } if (align === 'center' || align === 'right') { var R = this.getBBox().R; adaptor.setStyle(chtml, 'margin-right', this.em(-shift + R)); } }; CHTMLWrapper.prototype.drawBBox = function () { var _a = this.getBBox(), w = _a.w, h = _a.h, d = _a.d, R = _a.R; var box = this.html('mjx-box', { style: { opacity: .25, 'margin-left': this.em(-w - R) } }, [ this.html('mjx-box', { style: { height: this.em(h), width: this.em(w), 'background-color': 'red' } }), this.html('mjx-box', { style: { height: this.em(d), width: this.em(w), 'margin-left': this.em(-w), 'vertical-align': this.em(-d), 'background-color': 'green' } }) ]); var node = this.chtml || this.parent.chtml; var size = this.adaptor.getAttribute(node, 'size'); if (size) { this.adaptor.setAttribute(box, 'size', size); } var fontsize = this.adaptor.getStyle(node, 'fontSize'); if (fontsize) { this.adaptor.setStyle(box, 'fontSize', fontsize); } this.adaptor.append(this.adaptor.parent(node), box); this.adaptor.setStyle(node, 'backgroundColor', '#FFEE00'); }; CHTMLWrapper.prototype.html = function (type, def, content) { if (def === void 0) { def = {}; } if (content === void 0) { content = []; } return this.jax.html(type, def, content); }; CHTMLWrapper.prototype.text = function (text) { return this.jax.text(text); }; CHTMLWrapper.prototype.char = function (n) { return this.font.charSelector(n).substr(1); }; CHTMLWrapper.kind = 'unknown'; CHTMLWrapper.autoStyle = true; CHTMLWrapper.used = false; return CHTMLWrapper; }(Wrapper_js_1.CommonWrapper)); exports.CHTMLWrapper = CHTMLWrapper; //# sourceMappingURL=Wrapper.js.map /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.separateOptions = exports.selectOptionsFromKeys = exports.selectOptions = exports.userOptions = exports.defaultOptions = exports.insert = exports.copy = exports.keys = exports.makeArray = exports.expandable = exports.Expandable = exports.REMOVE = exports.APPEND = void 0; var OBJECT = {}.constructor; function isObject(obj) { return typeof obj === 'object' && obj !== null && (obj.constructor === OBJECT || obj.constructor === Expandable); } exports.APPEND = '[+]'; exports.REMOVE = '[-]'; var Expandable = (function () { function Expandable() { } return Expandable; }()); exports.Expandable = Expandable; function expandable(def) { return Object.assign(Object.create(Expandable.prototype), def); } exports.expandable = expandable; function makeArray(x) { return Array.isArray(x) ? x : [x]; } exports.makeArray = makeArray; function keys(def) { if (!def) { return []; } return Object.keys(def).concat(Object.getOwnPropertySymbols(def)); } exports.keys = keys; function copy(def) { var e_1, _a; var props = {}; try { for (var _b = __values(keys(def)), _c = _b.next(); !_c.done; _c = _b.next()) { var key = _c.value; var prop = Object.getOwnPropertyDescriptor(def, key); var value = prop.value; if (Array.isArray(value)) { prop.value = insert([], value, false); } else if (isObject(value)) { prop.value = copy(value); } if (prop.enumerable) { props[key] = prop; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return Object.defineProperties(def.constructor === Expandable ? expandable({}) : {}, props); } exports.copy = copy; function insert(dst, src, warn) { var e_2, _a; if (warn === void 0) { warn = true; } var _loop_1 = function (key) { if (warn && dst[key] === undefined && dst.constructor !== Expandable) { if (typeof key === 'symbol') { key = key.toString(); } throw new Error('Invalid option "' + key + '" (no default value).'); } var sval = src[key], dval = dst[key]; if (isObject(sval) && dval !== null && (typeof dval === 'object' || typeof dval === 'function')) { var ids = keys(sval); if (Array.isArray(dval) && ((ids.length === 1 && (ids[0] === exports.APPEND || ids[0] === exports.REMOVE) && Array.isArray(sval[ids[0]])) || (ids.length === 2 && ids.sort().join(',') === exports.APPEND + ',' + exports.REMOVE && Array.isArray(sval[exports.APPEND]) && Array.isArray(sval[exports.REMOVE])))) { if (sval[exports.REMOVE]) { dval = dst[key] = dval.filter(function (x) { return sval[exports.REMOVE].indexOf(x) < 0; }); } if (sval[exports.APPEND]) { dst[key] = __spread(dval, sval[exports.APPEND]); } } else { insert(dval, sval, warn); } } else if (Array.isArray(sval)) { dst[key] = []; insert(dst[key], sval, false); } else if (isObject(sval)) { dst[key] = copy(sval); } else { dst[key] = sval; } }; try { for (var _b = __values(keys(src)), _c = _b.next(); !_c.done; _c = _b.next()) { var key = _c.value; _loop_1(key); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } return dst; } exports.insert = insert; function defaultOptions(options) { var defs = []; for (var _i = 1; _i < arguments.length; _i++) { defs[_i - 1] = arguments[_i]; } defs.forEach(function (def) { return insert(options, def, false); }); return options; } exports.defaultOptions = defaultOptions; function userOptions(options) { var defs = []; for (var _i = 1; _i < arguments.length; _i++) { defs[_i - 1] = arguments[_i]; } defs.forEach(function (def) { return insert(options, def, true); }); return options; } exports.userOptions = userOptions; function selectOptions(options) { var e_3, _a; var keys = []; for (var _i = 1; _i < arguments.length; _i++) { keys[_i - 1] = arguments[_i]; } var subset = {}; try { for (var keys_1 = __values(keys), keys_1_1 = keys_1.next(); !keys_1_1.done; keys_1_1 = keys_1.next()) { var key = keys_1_1.value; if (options.hasOwnProperty(key)) { subset[key] = options[key]; } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (keys_1_1 && !keys_1_1.done && (_a = keys_1.return)) _a.call(keys_1); } finally { if (e_3) throw e_3.error; } } return subset; } exports.selectOptions = selectOptions; function selectOptionsFromKeys(options, object) { return selectOptions.apply(void 0, __spread([options], Object.keys(object))); } exports.selectOptionsFromKeys = selectOptionsFromKeys; function separateOptions(options) { var e_4, _a, e_5, _b; var objects = []; for (var _i = 1; _i < arguments.length; _i++) { objects[_i - 1] = arguments[_i]; } var results = []; try { for (var objects_1 = __values(objects), objects_1_1 = objects_1.next(); !objects_1_1.done; objects_1_1 = objects_1.next()) { var object = objects_1_1.value; var exists = {}, missing = {}; try { for (var _c = (e_5 = void 0, __values(Object.keys(options || {}))), _d = _c.next(); !_d.done; _d = _c.next()) { var key = _d.value; (object[key] === undefined ? missing : exists)[key] = options[key]; } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_d && !_d.done && (_b = _c.return)) _b.call(_c); } finally { if (e_5) throw e_5.error; } } results.push(exists); options = missing; } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (objects_1_1 && !objects_1_1.done && (_a = objects_1.return)) _a.call(objects_1); } finally { if (e_4) throw e_4.error; } } results.unshift(options); return results; } exports.separateOptions = separateOptions; //# sourceMappingURL=Options.js.map /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); var MmlNode_js_1 = __webpack_require__(0); var mo_js_1 = __webpack_require__(32); var NodeUtil; (function (NodeUtil) { var attrs = new Map([ ['autoOP', true], ['fnOP', true], ['movesupsub', true], ['subsupOK', true], ['texprimestyle', true], ['useHeight', true], ['variantForm', true], ['withDelims', true], ['open', true], ['close', true] ]); function createEntity(code) { return String.fromCodePoint(parseInt(code, 16)); } NodeUtil.createEntity = createEntity; function getChildren(node) { return node.childNodes; } NodeUtil.getChildren = getChildren; function getText(node) { return node.getText(); } NodeUtil.getText = getText; function appendChildren(node, children) { var e_1, _a; try { for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) { var child = children_1_1.value; node.appendChild(child); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1); } finally { if (e_1) throw e_1.error; } } } NodeUtil.appendChildren = appendChildren; function setAttribute(node, attribute, value) { node.attributes.set(attribute, value); } NodeUtil.setAttribute = setAttribute; function setProperty(node, property, value) { node.setProperty(property, value); } NodeUtil.setProperty = setProperty; function setProperties(node, properties) { var e_2, _a; try { for (var _b = __values(Object.keys(properties)), _c = _b.next(); !_c.done; _c = _b.next()) { var name_1 = _c.value; var value = properties[name_1]; if (name_1 === 'texClass') { node.texClass = value; node.setProperty(name_1, value); } else if (name_1 === 'movablelimits') { node.setProperty('movablelimits', value); if (node.isKind('mo') || node.isKind('mstyle')) { node.attributes.set('movablelimits', value); } } else if (name_1 === 'inferred') { } else if (attrs.has(name_1)) { node.setProperty(name_1, value); } else { node.attributes.set(name_1, value); } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } } NodeUtil.setProperties = setProperties; function getProperty(node, property) { return node.getProperty(property); } NodeUtil.getProperty = getProperty; function getAttribute(node, attr) { return node.attributes.get(attr); } NodeUtil.getAttribute = getAttribute; function removeProperties(node) { var properties = []; for (var _i = 1; _i < arguments.length; _i++) { properties[_i - 1] = arguments[_i]; } node.removeProperty.apply(node, __spread(properties)); } NodeUtil.removeProperties = removeProperties; function getChildAt(node, position) { return node.childNodes[position]; } NodeUtil.getChildAt = getChildAt; function setChild(node, position, child) { var children = node.childNodes; children[position] = child; if (child) { child.parent = node; } } NodeUtil.setChild = setChild; function copyChildren(oldNode, newNode) { var children = oldNode.childNodes; for (var i = 0; i < children.length; i++) { setChild(newNode, i, children[i]); } } NodeUtil.copyChildren = copyChildren; function copyAttributes(oldNode, newNode) { newNode.attributes = oldNode.attributes; setProperties(newNode, oldNode.getAllProperties()); } NodeUtil.copyAttributes = copyAttributes; function isType(node, kind) { return node.isKind(kind); } NodeUtil.isType = isType; function isEmbellished(node) { return node.isEmbellished; } NodeUtil.isEmbellished = isEmbellished; function getTexClass(node) { return node.texClass; } NodeUtil.getTexClass = getTexClass; function getCoreMO(node) { return node.coreMO(); } NodeUtil.getCoreMO = getCoreMO; function isNode(item) { return item instanceof MmlNode_js_1.AbstractMmlNode || item instanceof MmlNode_js_1.AbstractMmlEmptyNode; } NodeUtil.isNode = isNode; function isInferred(node) { return node.isInferred; } NodeUtil.isInferred = isInferred; function getForm(node) { var e_3, _a; if (!isType(node, 'mo')) { return null; } var mo = node; var forms = mo.getForms(); try { for (var forms_1 = __values(forms), forms_1_1 = forms_1.next(); !forms_1_1.done; forms_1_1 = forms_1.next()) { var form = forms_1_1.value; var symbol = mo_js_1.MmlMo.OPTABLE[form][mo.getText()]; if (symbol) { return symbol; } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (forms_1_1 && !forms_1_1.done && (_a = forms_1.return)) _a.call(forms_1); } finally { if (e_3) throw e_3.error; } } return null; } NodeUtil.getForm = getForm; })(NodeUtil || (NodeUtil = {})); exports.default = NodeUtil; //# sourceMappingURL=NodeUtil.js.map /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); var MmlNode_js_1 = __webpack_require__(0); var NodeUtil_js_1 = __webpack_require__(7); var TexParser_js_1 = __webpack_require__(12); var TexError_js_1 = __webpack_require__(4); var Entities_js_1 = __webpack_require__(20); __webpack_require__(265); var ParseUtil; (function (ParseUtil) { var emPerInch = 7.2; var pxPerInch = 72; var UNIT_CASES = { 'em': function (m) { return m; }, 'ex': function (m) { return m * .43; }, 'pt': function (m) { return m / 10; }, 'pc': function (m) { return m * 1.2; }, 'px': function (m) { return m * emPerInch / pxPerInch; }, 'in': function (m) { return m * emPerInch; }, 'cm': function (m) { return m * emPerInch / 2.54; }, 'mm': function (m) { return m * emPerInch / 25.4; }, 'mu': function (m) { return m / 18; }, }; var num = '([-+]?([.,]\\d+|\\d+([.,]\\d*)?))'; var unit = '(pt|em|ex|mu|px|mm|cm|in|pc)'; var dimenEnd = RegExp('^\\s*' + num + '\\s*' + unit + '\\s*$'); var dimenRest = RegExp('^\\s*' + num + '\\s*' + unit + ' ?'); function matchDimen(dim, rest) { if (rest === void 0) { rest = false; } var match = dim.match(rest ? dimenRest : dimenEnd); return match ? muReplace([match[1].replace(/,/, '.'), match[4], match[0].length]) : [null, null, 0]; } ParseUtil.matchDimen = matchDimen; function muReplace(_a) { var _b = __read(_a, 3), value = _b[0], unit = _b[1], length = _b[2]; if (unit !== 'mu') { return [value, unit, length]; } var em = Em(UNIT_CASES[unit](parseFloat(value || '1'))); return [em.slice(0, -2), 'em', length]; } function dimen2em(dim) { var _a = __read(matchDimen(dim), 2), value = _a[0], unit = _a[1]; var m = parseFloat(value || '1'); var func = UNIT_CASES[unit]; return func ? func(m) : 0; } ParseUtil.dimen2em = dimen2em; function Em(m) { if (Math.abs(m) < .0006) { return '0em'; } return m.toFixed(3).replace(/\.?0+$/, '') + 'em'; } ParseUtil.Em = Em; function fenced(configuration, open, mml, close, big) { if (big === void 0) { big = ''; } var nf = configuration.nodeFactory; var mrow = nf.create('node', 'mrow', [], { open: open, close: close, texClass: MmlNode_js_1.TEXCLASS.INNER }); var mo; if (big) { mo = new TexParser_js_1.default('\\' + big + 'l' + open, configuration.parser.stack.env, configuration).mml(); } else { var openNode = nf.create('text', open); mo = nf.create('node', 'mo', [], { fence: true, stretchy: true, symmetric: true, texClass: MmlNode_js_1.TEXCLASS.OPEN }, openNode); } NodeUtil_js_1.default.appendChildren(mrow, [mo]); if (NodeUtil_js_1.default.isType(mml, 'mrow') && NodeUtil_js_1.default.isInferred(mml)) { NodeUtil_js_1.default.appendChildren(mrow, NodeUtil_js_1.default.getChildren(mml)); } else { NodeUtil_js_1.default.appendChildren(mrow, [mml]); } if (big) { mo = new TexParser_js_1.default('\\' + big + 'r' + close, configuration.parser.stack.env, configuration).mml(); } else { var closeNode = nf.create('text', close); mo = nf.create('node', 'mo', [], { fence: true, stretchy: true, symmetric: true, texClass: MmlNode_js_1.TEXCLASS.CLOSE }, closeNode); } NodeUtil_js_1.default.appendChildren(mrow, [mo]); return mrow; } ParseUtil.fenced = fenced; function fixedFence(configuration, open, mml, close) { var mrow = configuration.nodeFactory.create('node', 'mrow', [], { open: open, close: close, texClass: MmlNode_js_1.TEXCLASS.ORD }); if (open) { NodeUtil_js_1.default.appendChildren(mrow, [mathPalette(configuration, open, 'l')]); } if (NodeUtil_js_1.default.isType(mml, 'mrow')) { NodeUtil_js_1.default.appendChildren(mrow, NodeUtil_js_1.default.getChildren(mml)); } else { NodeUtil_js_1.default.appendChildren(mrow, [mml]); } if (close) { NodeUtil_js_1.default.appendChildren(mrow, [mathPalette(configuration, close, 'r')]); } return mrow; } ParseUtil.fixedFence = fixedFence; function mathPalette(configuration, fence, side) { if (fence === '{' || fence === '}') { fence = '\\' + fence; } var D = '{\\bigg' + side + ' ' + fence + '}'; var T = '{\\big' + side + ' ' + fence + '}'; return new TexParser_js_1.default('\\mathchoice' + D + T + T + T, {}, configuration).mml(); } ParseUtil.mathPalette = mathPalette; function fixInitialMO(configuration, nodes) { for (var i = 0, m = nodes.length; i < m; i++) { var child = nodes[i]; if (child && (!NodeUtil_js_1.default.isType(child, 'mspace') && (!NodeUtil_js_1.default.isType(child, 'TeXAtom') || (NodeUtil_js_1.default.getChildren(child)[0] && NodeUtil_js_1.default.getChildren(NodeUtil_js_1.default.getChildren(child)[0]).length)))) { if (NodeUtil_js_1.default.isEmbellished(child) || (NodeUtil_js_1.default.isType(child, 'TeXAtom') && NodeUtil_js_1.default.getTexClass(child) === MmlNode_js_1.TEXCLASS.REL)) { var mi = configuration.nodeFactory.create('node', 'mi'); nodes.unshift(mi); } break; } } } ParseUtil.fixInitialMO = fixInitialMO; function internalMath(parser, text, level, font) { if (parser.configuration.options.internalMath) { return parser.configuration.options.internalMath(parser, text, level, font); } var mathvariant = font || parser.stack.env.font; var def = (mathvariant ? { mathvariant: mathvariant } : {}); var mml = [], i = 0, k = 0, c, node, match = '', braces = 0; if (text.match(/\\?[${}\\]|\\\(|\\(eq)?ref\s*\{/)) { while (i < text.length) { c = text.charAt(i++); if (c === '$') { if (match === '$' && braces === 0) { node = parser.create('node', 'TeXAtom', [(new TexParser_js_1.default(text.slice(k, i - 1), {}, parser.configuration)).mml()]); mml.push(node); match = ''; k = i; } else if (match === '') { if (k < i - 1) { mml.push(internalText(parser, text.slice(k, i - 1), def)); } match = '$'; k = i; } } else if (c === '{' && match !== '') { braces++; } else if (c === '}') { if (match === '}' && braces === 0) { var atom = (new TexParser_js_1.default(text.slice(k, i), {}, parser.configuration)).mml(); node = parser.create('node', 'TeXAtom', [atom], def); mml.push(node); match = ''; k = i; } else if (match !== '') { if (braces) { braces--; } } } else if (c === '\\') { if (match === '' && text.substr(i).match(/^(eq)?ref\s*\{/)) { var len = RegExp['$&'].length; if (k < i - 1) { mml.push(internalText(parser, text.slice(k, i - 1), def)); } match = '}'; k = i - 1; i += len; } else { c = text.charAt(i++); if (c === '(' && match === '') { if (k < i - 2) { mml.push(internalText(parser, text.slice(k, i - 2), def)); } match = ')'; k = i; } else if (c === ')' && match === ')' && braces === 0) { node = parser.create('node', 'TeXAtom', [(new TexParser_js_1.default(text.slice(k, i - 2), {}, parser.configuration)).mml()]); mml.push(node); match = ''; k = i; } else if (c.match(/[${}\\]/) && match === '') { i--; text = text.substr(0, i - 1) + text.substr(i); } } } } if (match !== '') { throw new TexError_js_1.default('MathNotTerminated', 'Math not terminated in text box'); } } if (k < text.length) { mml.push(internalText(parser, text.slice(k), def)); } if (level != null) { mml = [parser.create('node', 'mstyle', mml, { displaystyle: false, scriptlevel: level })]; } else if (mml.length > 1) { mml = [parser.create('node', 'mrow', mml)]; } return mml; } ParseUtil.internalMath = internalMath; function internalText(parser, text, def) { text = text.replace(/^\s+/, Entities_js_1.entities.nbsp).replace(/\s+$/, Entities_js_1.entities.nbsp); var textNode = parser.create('text', text); return parser.create('node', 'mtext', [], def, textNode); } ParseUtil.internalText = internalText; function trimSpaces(text) { if (typeof (text) !== 'string') { return text; } var TEXT = text.trim(); if (TEXT.match(/\\$/) && text.match(/ $/)) { TEXT += ' '; } return TEXT; } ParseUtil.trimSpaces = trimSpaces; function setArrayAlign(array, align) { align = ParseUtil.trimSpaces(align || ''); if (align === 't') { array.arraydef.align = 'baseline 1'; } else if (align === 'b') { array.arraydef.align = 'baseline -1'; } else if (align === 'c') { array.arraydef.align = 'center'; } else if (align) { array.arraydef.align = align; } return array; } ParseUtil.setArrayAlign = setArrayAlign; function substituteArgs(parser, args, str) { var text = ''; var newstring = ''; var i = 0; while (i < str.length) { var c = str.charAt(i++); if (c === '\\') { text += c + str.charAt(i++); } else if (c === '#') { c = str.charAt(i++); if (c === '#') { text += c; } else { if (!c.match(/[1-9]/) || parseInt(c, 10) > args.length) { throw new TexError_js_1.default('IllegalMacroParam', 'Illegal macro parameter reference'); } newstring = addArgs(parser, addArgs(parser, newstring, text), args[parseInt(c, 10) - 1]); text = ''; } } else { text += c; } } return addArgs(parser, newstring, text); } ParseUtil.substituteArgs = substituteArgs; function addArgs(parser, s1, s2) { if (s2.match(/^[a-z]/i) && s1.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i)) { s1 += ' '; } if (s1.length + s2.length > parser.configuration.options['maxBuffer']) { throw new TexError_js_1.default('MaxBufferSize', 'MathJax internal buffer size exceeded; is there a' + ' recursive macro call?'); } return s1 + s2; } ParseUtil.addArgs = addArgs; function checkEqnEnv(parser) { if (parser.stack.global.eqnenv) { throw new TexError_js_1.default('ErroneousNestingEq', 'Erroneous nesting of equation structures'); } parser.stack.global.eqnenv = true; } ParseUtil.checkEqnEnv = checkEqnEnv; function MmlFilterAttribute(_parser, _name, value) { return value; } ParseUtil.MmlFilterAttribute = MmlFilterAttribute; function getFontDef(parser) { var font = parser.stack.env['font']; return (font ? { mathvariant: font } : {}); } ParseUtil.getFontDef = getFontDef; function keyvalOptions(attrib, allowed, error) { var e_1, _a; if (allowed === void 0) { allowed = null; } if (error === void 0) { error = false; } var def = readKeyval(attrib); if (allowed) { try { for (var _b = __values(Object.keys(def)), _c = _b.next(); !_c.done; _c = _b.next()) { var key = _c.value; if (!allowed.hasOwnProperty(key)) { if (error) { throw new TexError_js_1.default('InvalidOption', 'Invalid optional argument: %1', key); } delete def[key]; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } return def; } ParseUtil.keyvalOptions = keyvalOptions; function readKeyval(text) { var _a, _b; var options = {}; var rest = text; var end, key, val; while (rest) { _a = __read(readValue(rest, ['=', ',']), 3), key = _a[0], end = _a[1], rest = _a[2]; if (end === '=') { _b = __read(readValue(rest, [',']), 3), val = _b[0], end = _b[1], rest = _b[2]; val = (val === 'false' || val === 'true') ? JSON.parse(val) : val; options[key] = val; } else if (key) { options[key] = true; } } return options; } function removeBraces(text, count) { while (count > 0) { text = text.trim().slice(1, -1); count--; } return text.trim(); } function readValue(text, end) { var length = text.length; var braces = 0; var value = ''; var index = 0; var start = 0; var startCount = true; var stopCount = false; while (index < length) { var c = text[index++]; switch (c) { case ' ': break; case '{': if (startCount) { start++; } else { stopCount = false; if (start > braces) { start = braces; } } braces++; break; case '}': if (braces) { braces--; } if (startCount || stopCount) { start--; stopCount = true; } startCount = false; break; default: if (!braces && end.indexOf(c) !== -1) { return [stopCount ? 'true' : removeBraces(value, start), c, text.slice(index)]; } startCount = false; stopCount = false; } value += c; } if (braces) { throw new TexError_js_1.default('ExtraOpenMissingClose', 'Extra open brace or missing close brace'); } return [stopCount ? 'true' : removeBraces(value, start), '', text.slice(index)]; } })(ParseUtil || (ParseUtil = {})); exports.default = ParseUtil; //# sourceMappingURL=ParseUtil.js.map /***/ }), /* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AddCSS = exports.CHTMLFontData = void 0; var FontData_js_1 = __webpack_require__(30); var lengths_js_1 = __webpack_require__(19); var Options_js_1 = __webpack_require__(6); __exportStar(__webpack_require__(30), exports); var CHTMLFontData = (function (_super) { __extends(CHTMLFontData, _super); function CHTMLFontData(options) { if (options === void 0) { options = null; } var _this = _super.call(this) || this; var CLASS = _this.constructor; _this.options = Options_js_1.userOptions(Options_js_1.defaultOptions({}, CLASS.OPTIONS), options); return _this; } CHTMLFontData.charOptions = function (font, n) { return _super.charOptions.call(this, font, n); }; CHTMLFontData.prototype.adaptiveCSS = function (adapt) { this.options.adaptiveCSS = adapt; }; CHTMLFontData.prototype.clearCache = function () { var e_1, _a, e_2, _b, e_3, _c; if (!this.options.adaptiveCSS) return; try { for (var _d = __values(Object.keys(this.delimiters)), _e = _d.next(); !_e.done; _e = _d.next()) { var n = _e.value; this.delimiters[parseInt(n)].used = false; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_1) throw e_1.error; } } try { for (var _f = __values(Object.keys(this.variant)), _g = _f.next(); !_g.done; _g = _f.next()) { var name_1 = _g.value; var chars = this.variant[name_1].chars; try { for (var _h = (e_3 = void 0, __values(Object.keys(chars))), _j = _h.next(); !_j.done; _j = _h.next()) { var n = _j.value; var options = chars[parseInt(n)][3]; if (options) { options.used = false; } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_j && !_j.done && (_c = _h.return)) _c.call(_h); } finally { if (e_3) throw e_3.error; } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_2) throw e_2.error; } } }; CHTMLFontData.prototype.createVariant = function (name, inherit, link) { if (inherit === void 0) { inherit = null; } if (link === void 0) { link = null; } _super.prototype.createVariant.call(this, name, inherit, link); var CLASS = this.constructor; this.variant[name].classes = CLASS.defaultVariantClasses[name]; this.variant[name].letter = CLASS.defaultVariantLetters[name]; }; CHTMLFontData.prototype.defineChars = function (name, chars) { var e_4, _a; _super.prototype.defineChars.call(this, name, chars); var letter = this.variant[name].letter; try { for (var _b = __values(Object.keys(chars)), _c = _b.next(); !_c.done; _c = _b.next()) { var n = _c.value; var options = CHTMLFontData.charOptions(chars, parseInt(n)); if (options.f === undefined) { options.f = letter; } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } }; Object.defineProperty(CHTMLFontData.prototype, "styles", { get: function () { var e_5, _a; var CLASS = this.constructor; var styles = __assign({}, CLASS.defaultStyles); this.addFontURLs(styles, CLASS.defaultFonts, this.options.fontURL); try { for (var _b = __values(Object.keys(this.delimiters)), _c = _b.next(); !_c.done; _c = _b.next()) { var n = _c.value; var N = parseInt(n); this.addDelimiterStyles(styles, N, this.delimiters[N]); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_5) throw e_5.error; } } this.addVariantChars(styles); return styles; }, enumerable: false, configurable: true }); CHTMLFontData.prototype.addVariantChars = function (styles) { var e_6, _a, e_7, _b; var allCSS = !this.options.adaptiveCSS; try { for (var _c = __values(Object.keys(this.variant)), _d = _c.next(); !_d.done; _d = _c.next()) { var name_2 = _d.value; var variant = this.variant[name_2]; var vletter = variant.letter; try { for (var _e = (e_7 = void 0, __values(Object.keys(variant.chars))), _f = _e.next(); !_f.done; _f = _e.next()) { var n = _f.value; var N = parseInt(n); var char = variant.chars[N]; if ((char[3] || {}).smp) continue; if (allCSS && char.length < 4) { char[3] = {}; } if (char.length === 4 || allCSS) { this.addCharStyles(styles, vletter, N, char); } } } catch (e_7_1) { e_7 = { error: e_7_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_7) throw e_7.error; } } } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_6) throw e_6.error; } } }; CHTMLFontData.prototype.addFontURLs = function (styles, fonts, url) { var e_8, _a; try { for (var _b = __values(Object.keys(fonts)), _c = _b.next(); !_c.done; _c = _b.next()) { var name_3 = _c.value; var font = __assign({}, fonts[name_3]); font.src = font.src.replace(/%%URL%%/, url); styles[name_3] = font; } } catch (e_8_1) { e_8 = { error: e_8_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_8) throw e_8.error; } } }; CHTMLFontData.prototype.addDelimiterStyles = function (styles, n, data) { if (this.options.adaptiveCSS && !data.used) return; var c = this.charSelector(n); if (data.c && data.c !== n) { styles['.mjx-stretched mjx-c' + c + '::before'] = { content: this.charContent(data.c) }; } if (!data.stretch) return; if (data.dir === 1) { this.addDelimiterVStyles(styles, c, data); } else { this.addDelimiterHStyles(styles, c, data); } }; CHTMLFontData.prototype.addDelimiterVStyles = function (styles, c, data) { var W = data.HDW[2]; var _a = __read(data.stretch, 4), beg = _a[0], ext = _a[1], end = _a[2], mid = _a[3]; var Hb = this.addDelimiterVPart(styles, c, W, 'beg', beg); this.addDelimiterVPart(styles, c, W, 'ext', ext); var He = this.addDelimiterVPart(styles, c, W, 'end', end); var css = {}; if (mid) { var Hm = this.addDelimiterVPart(styles, c, W, 'mid', mid); css.height = '50%'; styles['mjx-stretchy-v' + c + ' > mjx-mid'] = { 'margin-top': this.em(-Hm / 2), 'margin-bottom': this.em(-Hm / 2) }; } if (Hb) { css['border-top-width'] = this.em0(Hb - .03); } if (He) { css['border-bottom-width'] = this.em0(He - .03); styles['mjx-stretchy-v' + c + ' > mjx-end'] = { 'margin-top': this.em(-He) }; } if (Object.keys(css).length) { styles['mjx-stretchy-v' + c + ' > mjx-ext'] = css; } }; CHTMLFontData.prototype.addDelimiterVPart = function (styles, c, W, part, n) { if (!n) return 0; var data = this.getDelimiterData(n); var dw = (W - data[2]) / 2; var css = { content: this.charContent(n) }; if (part !== 'ext') { css.padding = this.padding(data, dw); } else if (dw) { css['padding-left'] = this.em0(dw); } styles['mjx-stretchy-v' + c + ' mjx-' + part + ' mjx-c::before'] = css; return data[0] + data[1]; }; CHTMLFontData.prototype.addDelimiterHStyles = function (styles, c, data) { var _a = __read(data.stretch, 4), beg = _a[0], ext = _a[1], end = _a[2], mid = _a[3]; this.addDelimiterHPart(styles, c, 'beg', beg); this.addDelimiterHPart(styles, c, 'ext', ext, !(beg || end)); this.addDelimiterHPart(styles, c, 'end', end); if (mid) { this.addDelimiterHPart(styles, c, 'mid', mid); styles['mjx-stretchy-h' + c + ' > mjx-ext'] = { width: '50%' }; } }; CHTMLFontData.prototype.addDelimiterHPart = function (styles, c, part, n, force) { if (force === void 0) { force = false; } if (!n) return; var data = this.getDelimiterData(n); var options = data[3]; var css = { content: (options && options.c ? '"' + options.c + '"' : this.charContent(n)) }; if (part !== 'ext' || force) { css.padding = this.padding(data, 0, -data[2]); } styles['mjx-stretchy-h' + c + ' mjx-' + part + ' mjx-c::before'] = css; }; CHTMLFontData.prototype.addCharStyles = function (styles, vletter, n, data) { var _a = __read(data, 4), w = _a[2], options = _a[3]; if (this.options.adaptiveCSS && !options.used) return; var letter = (options.f !== undefined ? options.f : vletter); var selector = 'mjx-c' + this.charSelector(n) + (letter ? '.TEX-' + letter : ''); styles[selector + '::before'] = { padding: this.padding(data, 0, options.ic || 0), content: (options.c != null ? '"' + options.c + '"' : this.charContent(n)) }; if (options.ic) { styles['[noIC] ' + selector + ':last-child::before'] = { 'padding-right': this.em(w) }; } }; CHTMLFontData.prototype.getDelimiterData = function (n) { return this.getChar('-smallop', n); }; CHTMLFontData.prototype.em = function (n) { return lengths_js_1.em(n); }; CHTMLFontData.prototype.em0 = function (n) { return lengths_js_1.em(Math.max(0, n)); }; CHTMLFontData.prototype.padding = function (_a, dw, ic) { var _b = __read(_a, 3), h = _b[0], d = _b[1], w = _b[2]; if (dw === void 0) { dw = 0; } if (ic === void 0) { ic = 0; } return [h, w + ic, d, dw].map(this.em0).join(' '); }; CHTMLFontData.prototype.charContent = function (n) { return '"' + (n >= 0x20 && n <= 0x7E && n !== 0x22 && n !== 0x27 && n !== 0x5C ? String.fromCharCode(n) : '\\' + n.toString(16).toUpperCase()) + '"'; }; CHTMLFontData.prototype.charSelector = function (n) { return '.mjx-c' + n.toString(16).toUpperCase(); }; CHTMLFontData.OPTIONS = { fontURL: 'js/output/chtml/fonts/tex-woff-v2' }; CHTMLFontData.defaultVariantClasses = {}; CHTMLFontData.defaultVariantLetters = {}; CHTMLFontData.defaultStyles = { 'mjx-c::before': { display: 'block', width: 0 } }; CHTMLFontData.defaultFonts = { '@font-face /* 0 */': { 'font-family': 'MJXZERO', src: 'url("%%URL%%/MathJax_Zero.woff") format("woff")' } }; return CHTMLFontData; }(FontData_js_1.FontData)); exports.CHTMLFontData = CHTMLFontData; function AddCSS(font, options) { var e_9, _a; try { for (var _b = __values(Object.keys(options)), _c = _b.next(); !_c.done; _c = _b.next()) { var c = _c.value; var n = parseInt(c); Object.assign(FontData_js_1.FontData.charOptions(font, n), options[n]); } } catch (e_9_1) { e_9 = { error: e_9_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_9) throw e_9.error; } } return font; } exports.AddCSS = AddCSS; //# sourceMappingURL=FontData.js.map /***/ }), /* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HtmlAttrs = exports.HtmlClasses = void 0; var PREFIX = 'CtxtMenu'; function prefix_(name) { return PREFIX + '_' + name; } function prefixClass_(name) { return prefix_(name); } function prefixAttr_(name) { return prefix_(name); } exports.HtmlClasses = { ATTACHED: prefixClass_('Attached'), CONTEXTMENU: prefixClass_('ContextMenu'), MENU: prefixClass_('Menu'), MENUARROW: prefixClass_('MenuArrow'), MENUACTIVE: prefixClass_('MenuActive'), MENUCHECK: prefixClass_('MenuCheck'), MENUCLOSE: prefixClass_('MenuClose'), MENUCOMBOBOX: prefixClass_('MenuComboBox'), MENUDISABLED: prefixClass_('MenuDisabled'), MENUFRAME: prefixClass_('MenuFrame'), MENUITEM: prefixClass_('MenuItem'), MENULABEL: prefixClass_('MenuLabel'), MENURADIOCHECK: prefixClass_('MenuRadioCheck'), MENUINPUTBOX: prefixClass_('MenuInputBox'), MENURULE: prefixClass_('MenuRule'), MENUSLIDER: prefixClass_('MenuSlider'), MOUSEPOST: prefixClass_('MousePost'), RTL: prefixClass_('RTL'), INFO: prefixClass_('Info'), INFOCLOSE: prefixClass_('InfoClose'), INFOCONTENT: prefixClass_('InfoContent'), INFOSIGNATURE: prefixClass_('InfoSignature'), INFOTITLE: prefixClass_('InfoTitle'), SLIDERVALUE: prefixClass_('SliderValue'), SLIDERBAR: prefixClass_('SliderBar'), SELECTION: prefixClass_('Selection'), SELECTIONBOX: prefixClass_('SelectionBox'), SELECTIONMENU: prefixClass_('SelectionMenu'), SELECTIONDIVIDER: prefixClass_('SelectionDivider'), SELECTIONITEM: prefixClass_('SelectionItem') }; exports.HtmlAttrs = { COUNTER: prefixAttr_('Counter'), KEYDOWNFUNC: prefixAttr_('keydownFunc'), CONTEXTMENUFUNC: prefixAttr_('contextmenuFunc'), OLDTAB: prefixAttr_('Oldtabindex'), TOUCHFUNC: prefixAttr_('TouchFunc'), }; //# sourceMappingURL=html_classes.js.map /***/ }), /* 11 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(__dirname) { var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CONFIG = exports.MathJax = exports.Loader = void 0; var global_js_1 = __webpack_require__(1); var package_js_1 = __webpack_require__(25); var package_js_2 = __webpack_require__(25); Object.defineProperty(exports, "Package", { enumerable: true, get: function () { return package_js_2.Package; } }); Object.defineProperty(exports, "PackageError", { enumerable: true, get: function () { return package_js_2.PackageError; } }); var Loader; (function (Loader) { function ready() { var e_1, _a; var names = []; for (var _i = 0; _i < arguments.length; _i++) { names[_i] = arguments[_i]; } if (names.length === 0) { names = Array.from(package_js_1.Package.packages.keys()); } var promises = []; try { for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) { var name_1 = names_1_1.value; var extension = package_js_1.Package.packages.get(name_1) || new package_js_1.Package(name_1, true); promises.push(extension.promise); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (names_1_1 && !names_1_1.done && (_a = names_1.return)) _a.call(names_1); } finally { if (e_1) throw e_1.error; } } return Promise.all(promises); } Loader.ready = ready; function load() { var e_2, _a; var names = []; for (var _i = 0; _i < arguments.length; _i++) { names[_i] = arguments[_i]; } if (names.length === 0) { return Promise.resolve(); } var promises = []; try { for (var names_2 = __values(names), names_2_1 = names_2.next(); !names_2_1.done; names_2_1 = names_2.next()) { var name_2 = names_2_1.value; var extension = package_js_1.Package.packages.get(name_2); if (!extension) { extension = new package_js_1.Package(name_2); extension.provides(exports.CONFIG.provides[name_2]); } extension.checkNoLoad(); promises.push(extension.promise); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (names_2_1 && !names_2_1.done && (_a = names_2.return)) _a.call(names_2); } finally { if (e_2) throw e_2.error; } } package_js_1.Package.loadAll(); return Promise.all(promises); } Loader.load = load; function preLoad() { var e_3, _a; var names = []; for (var _i = 0; _i < arguments.length; _i++) { names[_i] = arguments[_i]; } try { for (var names_3 = __values(names), names_3_1 = names_3.next(); !names_3_1.done; names_3_1 = names_3.next()) { var name_3 = names_3_1.value; var extension = package_js_1.Package.packages.get(name_3); if (!extension) { extension = new package_js_1.Package(name_3, true); extension.provides(exports.CONFIG.provides[name_3]); } extension.loaded(); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (names_3_1 && !names_3_1.done && (_a = names_3.return)) _a.call(names_3); } finally { if (e_3) throw e_3.error; } } } Loader.preLoad = preLoad; function defaultReady() { if (typeof exports.MathJax.startup !== 'undefined') { exports.MathJax.config.startup.ready(); } } Loader.defaultReady = defaultReady; function getRoot() { var root = __dirname + '/../../es5'; if (typeof document !== 'undefined') { var script = document.currentScript || document.getElementById('MathJax-script'); if (script) { root = script.src.replace(/\/[^\/]*$/, ''); } } return root; } Loader.getRoot = getRoot; })(Loader = exports.Loader || (exports.Loader = {})); exports.MathJax = global_js_1.MathJax; if (typeof exports.MathJax.loader === 'undefined') { global_js_1.combineDefaults(exports.MathJax.config, 'loader', { paths: { mathjax: Loader.getRoot() }, source: {}, dependencies: {}, provides: {}, load: [], ready: Loader.defaultReady.bind(Loader), failed: function (error) { return console.log("MathJax(" + (error.package || '?') + "): " + error.message); }, require: null }); global_js_1.combineWithMathJax({ loader: Loader }); } exports.CONFIG = exports.MathJax.config.loader; //# sourceMappingURL=loader.js.map /* WEBPACK VAR INJECTION */}.call(this, "/")) /***/ }), /* 12 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); var ParseUtil_js_1 = __webpack_require__(8); var Stack_js_1 = __webpack_require__(82); var TexError_js_1 = __webpack_require__(4); var MmlNode_js_1 = __webpack_require__(0); var TexParser = (function () { function TexParser(_string, env, configuration) { var e_1, _a; this._string = _string; this.configuration = configuration; this.macroCount = 0; this.i = 0; this.currentCS = ''; var inner = env.hasOwnProperty('isInner'); var isInner = env['isInner']; delete env['isInner']; var ENV; if (env) { ENV = {}; try { for (var _b = __values(Object.keys(env)), _c = _b.next(); !_c.done; _c = _b.next()) { var id = _c.value; ENV[id] = env[id]; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } this.configuration.pushParser(this); this.stack = new Stack_js_1.default(this.itemFactory, ENV, inner ? isInner : true); this.Parse(); this.Push(this.itemFactory.create('stop')); } Object.defineProperty(TexParser.prototype, "options", { get: function () { return this.configuration.options; }, enumerable: false, configurable: true }); Object.defineProperty(TexParser.prototype, "itemFactory", { get: function () { return this.configuration.itemFactory; }, enumerable: false, configurable: true }); Object.defineProperty(TexParser.prototype, "tags", { get: function () { return this.configuration.tags; }, enumerable: false, configurable: true }); Object.defineProperty(TexParser.prototype, "string", { get: function () { return this._string; }, set: function (str) { this._string = str; }, enumerable: false, configurable: true }); TexParser.prototype.parse = function (kind, input) { return this.configuration.handlers.get(kind).parse(input); }; TexParser.prototype.lookup = function (kind, symbol) { return this.configuration.handlers.get(kind).lookup(symbol); }; TexParser.prototype.contains = function (kind, symbol) { return this.configuration.handlers.get(kind).contains(symbol); }; TexParser.prototype.toString = function () { var e_2, _a; var str = ''; try { for (var _b = __values(Array.from(this.configuration.handlers.keys())), _c = _b.next(); !_c.done; _c = _b.next()) { var config = _c.value; str += config + ': ' + this.configuration.handlers.get(config) + '\n'; } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } return str; }; TexParser.prototype.Parse = function () { var c; while (this.i < this.string.length) { c = this.getCodePoint(); this.i += c.length; this.parse('character', [this, c]); } }; TexParser.prototype.Push = function (arg) { if (arg instanceof MmlNode_js_1.AbstractMmlNode && arg.isInferred) { this.PushAll(arg.childNodes); } else { this.stack.Push(arg); } }; TexParser.prototype.PushAll = function (args) { var e_3, _a; try { for (var args_1 = __values(args), args_1_1 = args_1.next(); !args_1_1.done; args_1_1 = args_1.next()) { var arg = args_1_1.value; this.stack.Push(arg); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (args_1_1 && !args_1_1.done && (_a = args_1.return)) _a.call(args_1); } finally { if (e_3) throw e_3.error; } } }; TexParser.prototype.mml = function () { if (!this.stack.Top().isKind('mml')) { return null; } var node = this.stack.Top().First; this.configuration.popParser(); return node; }; TexParser.prototype.convertDelimiter = function (c) { var symbol = this.lookup('delimiter', c); return symbol ? symbol.char : null; }; TexParser.prototype.getCodePoint = function () { var code = this.string.codePointAt(this.i); return code === undefined ? '' : String.fromCodePoint(code); }; TexParser.prototype.nextIsSpace = function () { return !!this.string.charAt(this.i).match(/\s/); }; TexParser.prototype.GetNext = function () { while (this.nextIsSpace()) { this.i++; } return this.getCodePoint(); }; TexParser.prototype.GetCS = function () { var CS = this.string.slice(this.i).match(/^(([a-z]+) ?|[\uD800-\uDBFF].|.)/i); if (CS) { this.i += CS[0].length; return CS[2] || CS[1]; } else { this.i++; return ' '; } }; TexParser.prototype.GetArgument = function (_name, noneOK) { switch (this.GetNext()) { case '': if (!noneOK) { throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', this.currentCS); } return null; case '}': if (!noneOK) { throw new TexError_js_1.default('ExtraCloseMissingOpen', 'Extra close brace or missing open brace'); } return null; case '\\': this.i++; return '\\' + this.GetCS(); case '{': var j = ++this.i, parens = 1; while (this.i < this.string.length) { switch (this.string.charAt(this.i++)) { case '\\': this.i++; break; case '{': parens++; break; case '}': if (--parens === 0) { return this.string.slice(j, this.i - 1); } break; } } throw new TexError_js_1.default('MissingCloseBrace', 'Missing close brace'); } var c = this.getCodePoint(); this.i += c.length; return c; }; TexParser.prototype.GetBrackets = function (_name, def) { if (this.GetNext() !== '[') { return def; } var j = ++this.i, parens = 0; while (this.i < this.string.length) { switch (this.string.charAt(this.i++)) { case '{': parens++; break; case '\\': this.i++; break; case '}': if (parens-- <= 0) { throw new TexError_js_1.default('ExtraCloseLooking', 'Extra close brace while looking for %1', '\']\''); } break; case ']': if (parens === 0) { return this.string.slice(j, this.i - 1); } break; } } throw new TexError_js_1.default('MissingCloseBracket', 'Could not find closing \']\' for argument to %1', this.currentCS); }; TexParser.prototype.GetDelimiter = function (name, braceOK) { var c = this.GetNext(); this.i += c.length; if (this.i <= this.string.length) { if (c === '\\') { c += this.GetCS(); } else if (c === '{' && braceOK) { this.i--; c = this.GetArgument(name); } if (this.contains('delimiter', c)) { return this.convertDelimiter(c); } } throw new TexError_js_1.default('MissingOrUnrecognizedDelim', 'Missing or unrecognized delimiter for %1', this.currentCS); }; TexParser.prototype.GetDimen = function (name) { if (this.GetNext() === '{') { var dimen = this.GetArgument(name); var _a = __read(ParseUtil_js_1.default.matchDimen(dimen), 2), value = _a[0], unit = _a[1]; if (value) { return value + unit; } } else { var dimen = this.string.slice(this.i); var _b = __read(ParseUtil_js_1.default.matchDimen(dimen, true), 3), value = _b[0], unit = _b[1], length_1 = _b[2]; if (value) { this.i += length_1; return value + unit; } } throw new TexError_js_1.default('MissingDimOrUnits', 'Missing dimension or its units for %1', this.currentCS); }; TexParser.prototype.GetUpTo = function (_name, token) { while (this.nextIsSpace()) { this.i++; } var j = this.i; var parens = 0; while (this.i < this.string.length) { var k = this.i; var c = this.GetNext(); this.i += c.length; switch (c) { case '\\': c += this.GetCS(); break; case '{': parens++; break; case '}': if (parens === 0) { throw new TexError_js_1.default('ExtraCloseLooking', 'Extra close brace while looking for %1', token); } parens--; break; } if (parens === 0 && c === token) { return this.string.slice(j, k); } } throw new TexError_js_1.default('TokenNotFoundForCommand', 'Could not find %1 for %2', token, this.currentCS); }; TexParser.prototype.ParseArg = function (name) { return new TexParser(this.GetArgument(name), this.stack.env, this.configuration).mml(); }; TexParser.prototype.ParseUpTo = function (name, token) { return new TexParser(this.GetUpTo(name, token), this.stack.env, this.configuration).mml(); }; TexParser.prototype.GetDelimiterArg = function (name) { var c = ParseUtil_js_1.default.trimSpaces(this.GetArgument(name)); if (c === '') { return null; } if (this.contains('delimiter', c)) { return c; } throw new TexError_js_1.default('MissingOrUnrecognizedDelim', 'Missing or unrecognized delimiter for %1', this.currentCS); }; TexParser.prototype.GetStar = function () { var star = (this.GetNext() === '*'); if (star) { this.i++; } return star; }; TexParser.prototype.create = function (kind) { var _a; var rest = []; for (var _i = 1; _i < arguments.length; _i++) { rest[_i - 1] = arguments[_i]; } return (_a = this.configuration.nodeFactory).create.apply(_a, __spread([kind], rest)); }; return TexParser; }()); exports.default = TexParser; //# sourceMappingURL=TexParser.js.map /***/ }), /* 13 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TexConstant = void 0; var TexConstant; (function (TexConstant) { TexConstant.Variant = { NORMAL: 'normal', BOLD: 'bold', ITALIC: 'italic', BOLDITALIC: 'bold-italic', DOUBLESTRUCK: 'double-struck', FRAKTUR: 'fraktur', BOLDFRAKTUR: 'bold-fraktur', SCRIPT: 'script', BOLDSCRIPT: 'bold-script', SANSSERIF: 'sans-serif', BOLDSANSSERIF: 'bold-sans-serif', SANSSERIFITALIC: 'sans-serif-italic', SANSSERIFBOLDITALIC: 'sans-serif-bold-italic', MONOSPACE: 'monospace', INITIAL: 'inital', TAILED: 'tailed', LOOPED: 'looped', STRETCHED: 'stretched', CALLIGRAPHIC: '-tex-calligraphic', OLDSTYLE: '-tex-oldstyle' }; TexConstant.Form = { PREFIX: 'prefix', INFIX: 'infix', POSTFIX: 'postfix' }; TexConstant.LineBreak = { AUTO: 'auto', NEWLINE: 'newline', NOBREAK: 'nobreak', GOODBREAK: 'goodbreak', BADBREAK: 'badbreak' }; TexConstant.LineBreakStyle = { BEFORE: 'before', AFTER: 'after', DUPLICATE: 'duplicate', INFIXLINBREAKSTYLE: 'infixlinebreakstyle' }; TexConstant.IndentAlign = { LEFT: 'left', CENTER: 'center', RIGHT: 'right', AUTO: 'auto', ID: 'id', INDENTALIGN: 'indentalign' }; TexConstant.IndentShift = { INDENTSHIFT: 'indentshift' }; TexConstant.LineThickness = { THIN: 'thin', MEDIUM: 'medium', THICK: 'thick' }; TexConstant.Notation = { LONGDIV: 'longdiv', ACTUARIAL: 'actuarial', PHASORANGLE: 'phasorangle', RADICAL: 'radical', BOX: 'box', ROUNDEDBOX: 'roundedbox', CIRCLE: 'circle', LEFT: 'left', RIGHT: 'right', TOP: 'top', BOTTOM: 'bottom', UPDIAGONALSTRIKE: 'updiagonalstrike', DOWNDIAGONALSTRIKE: 'downdiagonalstrike', VERTICALSTRIKE: 'verticalstrike', HORIZONTALSTRIKE: 'horizontalstrike', NORTHEASTARROW: 'northeastarrow', MADRUWB: 'madruwb', UPDIAGONALARROW: 'updiagonalarrow' }; TexConstant.Align = { TOP: 'top', BOTTOM: 'bottom', CENTER: 'center', BASELINE: 'baseline', AXIS: 'axis', LEFT: 'left', RIGHT: 'right' }; TexConstant.Lines = { NONE: 'none', SOLID: 'solid', DASHED: 'dashed' }; TexConstant.Side = { LEFT: 'left', RIGHT: 'right', LEFTOVERLAP: 'leftoverlap', RIGHTOVERLAP: 'rightoverlap' }; TexConstant.Width = { AUTO: 'auto', FIT: 'fit' }; TexConstant.Actiontype = { TOGGLE: 'toggle', STATUSLINE: 'statusline', TOOLTIP: 'tooltip', INPUT: 'input' }; TexConstant.Length = { VERYVERYTHINMATHSPACE: 'veryverythinmathspace', VERYTHINMATHSPACE: 'verythinmathspace', THINMATHSPACE: 'thinmathspace', MEDIUMMATHSPACE: 'mediummathspace', THICKMATHSPACE: 'thickmathspace', VERYTHICKMATHSPACE: 'verythickmathspace', VERYVERYTHICKMATHSPACE: 'veryverythickmathspace', NEGATIVEVERYVERYTHINMATHSPACE: 'negativeveryverythinmathspace', NEGATIVEVERYTHINMATHSPACE: 'negativeverythinmathspace', NEGATIVETHINMATHSPACE: 'negativethinmathspace', NEGATIVEMEDIUMMATHSPACE: 'negativemediummathspace', NEGATIVETHICKMATHSPACE: 'negativethickmathspace', NEGATIVEVERYTHICKMATHSPACE: 'negativeverythickmathspace', NEGATIVEVERYVERYTHICKMATHSPACE: 'negativeveryverythickmathspace' }; TexConstant.Overflow = { LINBREAK: 'linebreak', SCROLL: 'scroll', ELIDE: 'elide', TRUNCATE: 'truncate', SCALE: 'scale' }; TexConstant.Unit = { EM: 'em', EX: 'ex', PX: 'px', IN: 'in', CM: 'cm', MM: 'mm', PT: 'pt', PC: 'pc' }; })(TexConstant = exports.TexConstant || (exports.TexConstant = {})); //# sourceMappingURL=TexConstants.js.map /***/ }), /* 14 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.split = exports.isPercent = exports.unicodeChars = exports.quotePattern = exports.sortLength = void 0; function sortLength(a, b) { return a.length !== b.length ? b.length - a.length : a === b ? 0 : a < b ? -1 : 1; } exports.sortLength = sortLength; function quotePattern(text) { return text.replace(/([\^$(){}+*?\-|\[\]\:\\])/g, '\\$1'); } exports.quotePattern = quotePattern; function unicodeChars(text) { return Array.from(text).map(function (c) { return c.codePointAt(0); }); } exports.unicodeChars = unicodeChars; function isPercent(x) { return !!x.match(/%\s*$/); } exports.isPercent = isPercent; function split(x) { return x.trim().split(/\s+/); } exports.split = split; //# sourceMappingURL=string.js.map /***/ }), /* 15 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.newState = exports.STATE = exports.AbstractMathItem = exports.protoItem = void 0; function protoItem(open, math, close, n, start, end, display) { if (display === void 0) { display = null; } var item = { open: open, math: math, close: close, n: n, start: { n: start }, end: { n: end }, display: display }; return item; } exports.protoItem = protoItem; var AbstractMathItem = (function () { function AbstractMathItem(math, jax, display, start, end) { if (display === void 0) { display = true; } if (start === void 0) { start = { i: 0, n: 0, delim: '' }; } if (end === void 0) { end = { i: 0, n: 0, delim: '' }; } this.root = null; this.typesetRoot = null; this.metrics = {}; this.inputData = {}; this.outputData = {}; this._state = exports.STATE.UNPROCESSED; this.math = math; this.inputJax = jax; this.display = display; this.start = start; this.end = end; this.root = null; this.typesetRoot = null; this.metrics = {}; this.inputData = {}; this.outputData = {}; } Object.defineProperty(AbstractMathItem.prototype, "isEscaped", { get: function () { return this.display === null; }, enumerable: false, configurable: true }); AbstractMathItem.prototype.render = function (document) { document.renderActions.renderMath(this, document); }; AbstractMathItem.prototype.rerender = function (document, start) { if (start === void 0) { start = exports.STATE.RERENDER; } if (this.state() >= start) { this.state(start - 1); } document.renderActions.renderMath(this, document, start); }; AbstractMathItem.prototype.convert = function (document, end) { if (end === void 0) { end = exports.STATE.LAST; } document.renderActions.renderConvert(this, document, end); }; AbstractMathItem.prototype.compile = function (document) { if (this.state() < exports.STATE.COMPILED) { this.root = this.inputJax.compile(this, document); this.state(exports.STATE.COMPILED); } }; AbstractMathItem.prototype.typeset = function (document) { if (this.state() < exports.STATE.TYPESET) { this.typesetRoot = document.outputJax[this.isEscaped ? 'escaped' : 'typeset'](this, document); this.state(exports.STATE.TYPESET); } }; AbstractMathItem.prototype.updateDocument = function (_document) { }; AbstractMathItem.prototype.removeFromDocument = function (_restore) { if (_restore === void 0) { _restore = false; } }; AbstractMathItem.prototype.setMetrics = function (em, ex, cwidth, lwidth, scale) { this.metrics = { em: em, ex: ex, containerWidth: cwidth, lineWidth: lwidth, scale: scale }; }; AbstractMathItem.prototype.state = function (state, restore) { if (state === void 0) { state = null; } if (restore === void 0) { restore = false; } if (state != null) { if (state < exports.STATE.INSERTED && this._state >= exports.STATE.INSERTED) { this.removeFromDocument(restore); } if (state < exports.STATE.TYPESET && this._state >= exports.STATE.TYPESET) { this.outputData = {}; } if (state < exports.STATE.COMPILED && this._state >= exports.STATE.COMPILED) { this.inputData = {}; } this._state = state; } return this._state; }; AbstractMathItem.prototype.reset = function (restore) { if (restore === void 0) { restore = false; } this.state(exports.STATE.UNPROCESSED, restore); }; return AbstractMathItem; }()); exports.AbstractMathItem = AbstractMathItem; exports.STATE = { UNPROCESSED: 0, FINDMATH: 10, COMPILED: 20, CONVERT: 100, METRICS: 110, RERENDER: 125, TYPESET: 150, INSERTED: 200, LAST: 10000 }; function newState(name, state) { if (name in exports.STATE) { throw Error('State ' + name + ' already exists'); } exports.STATE[name] = state; } exports.newState = newState; //# sourceMappingURL=MathItem.js.map /***/ }), /* 16 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BBox = exports.BBoxStyleAdjust = void 0; var lengths_js_1 = __webpack_require__(19); exports.BBoxStyleAdjust = [ ['borderTopWidth', 'h'], ['borderRightWidth', 'w'], ['borderBottomWidth', 'd'], ['borderLeftWidth', 'w', 0], ['paddingTop', 'h'], ['paddingRight', 'w'], ['paddingBottom', 'd'], ['paddingLeft', 'w', 0] ]; var BBox = (function () { function BBox(def) { if (def === void 0) { def = { w: 0, h: -lengths_js_1.BIGDIMEN, d: -lengths_js_1.BIGDIMEN }; } this.w = def.w || 0; this.h = ('h' in def ? def.h : -lengths_js_1.BIGDIMEN); this.d = ('d' in def ? def.d : -lengths_js_1.BIGDIMEN); this.L = this.R = this.ic = this.sk = 0; this.scale = this.rscale = 1; this.pwidth = ''; } BBox.zero = function () { return new BBox({ h: 0, d: 0, w: 0 }); }; BBox.empty = function () { return new BBox(); }; BBox.prototype.empty = function () { this.w = 0; this.h = this.d = -lengths_js_1.BIGDIMEN; return this; }; BBox.prototype.clean = function () { if (this.w === -lengths_js_1.BIGDIMEN) this.w = 0; if (this.h === -lengths_js_1.BIGDIMEN) this.h = 0; if (this.d === -lengths_js_1.BIGDIMEN) this.d = 0; }; BBox.prototype.rescale = function (scale) { this.w *= scale; this.h *= scale; this.d *= scale; }; BBox.prototype.combine = function (cbox, x, y) { if (x === void 0) { x = 0; } if (y === void 0) { y = 0; } var rscale = cbox.rscale; var w = x + rscale * (cbox.w + cbox.L + cbox.R); var h = y + rscale * cbox.h; var d = rscale * cbox.d - y; if (w > this.w) this.w = w; if (h > this.h) this.h = h; if (d > this.d) this.d = d; }; BBox.prototype.append = function (cbox) { var scale = cbox.rscale; this.w += scale * (cbox.w + cbox.L + cbox.R); if (scale * cbox.h > this.h) { this.h = scale * cbox.h; } if (scale * cbox.d > this.d) { this.d = scale * cbox.d; } }; BBox.prototype.updateFrom = function (cbox) { this.h = cbox.h; this.d = cbox.d; this.w = cbox.w; if (cbox.pwidth) { this.pwidth = cbox.pwidth; } }; BBox.fullWidth = '100%'; return BBox; }()); exports.BBox = BBox; //# sourceMappingURL=BBox.js.map /***/ }), /* 17 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); var sitem = __webpack_require__(29); var NodeUtil_js_1 = __webpack_require__(7); var TexError_js_1 = __webpack_require__(4); var TexParser_js_1 = __webpack_require__(12); var TexConstants_js_1 = __webpack_require__(13); var ParseUtil_js_1 = __webpack_require__(8); var MmlNode_js_1 = __webpack_require__(0); var Tags_js_1 = __webpack_require__(21); var Entities_js_1 = __webpack_require__(20); __webpack_require__(265); __webpack_require__(275); __webpack_require__(276); var BaseMethods = {}; var P_HEIGHT = 1.2 / .85; var MmlTokenAllow = { fontfamily: 1, fontsize: 1, fontweight: 1, fontstyle: 1, color: 1, background: 1, id: 1, 'class': 1, href: 1, style: 1 }; BaseMethods.Open = function (parser, _c) { parser.Push(parser.itemFactory.create('open')); }; BaseMethods.Close = function (parser, _c) { parser.Push(parser.itemFactory.create('close')); }; BaseMethods.Tilde = function (parser, _c) { parser.Push(parser.create('token', 'mtext', {}, Entities_js_1.entities.nbsp)); }; BaseMethods.Space = function (_parser, _c) { }; BaseMethods.Superscript = function (parser, _c) { var _a; if (parser.GetNext().match(/\d/)) { parser.string = parser.string.substr(0, parser.i + 1) + ' ' + parser.string.substr(parser.i + 1); } var primes; var base; var top = parser.stack.Top(); if (top.isKind('prime')) { _a = __read(top.Peek(2), 2), base = _a[0], primes = _a[1]; parser.stack.Pop(); } else { base = parser.stack.Prev(); if (!base) { base = parser.create('token', 'mi', {}, ''); } } var movesupsub = NodeUtil_js_1.default.getProperty(base, 'movesupsub'); var position = NodeUtil_js_1.default.isType(base, 'msubsup') ? base.sup : base.over; if ((NodeUtil_js_1.default.isType(base, 'msubsup') && !NodeUtil_js_1.default.isType(base, 'msup') && NodeUtil_js_1.default.getChildAt(base, base.sup)) || (NodeUtil_js_1.default.isType(base, 'munderover') && !NodeUtil_js_1.default.isType(base, 'mover') && NodeUtil_js_1.default.getChildAt(base, base.over) && !NodeUtil_js_1.default.getProperty(base, 'subsupOK'))) { throw new TexError_js_1.default('DoubleExponent', 'Double exponent: use braces to clarify'); } if (!NodeUtil_js_1.default.isType(base, 'msubsup') || NodeUtil_js_1.default.isType(base, 'msup')) { if (movesupsub) { if (!NodeUtil_js_1.default.isType(base, 'munderover') || NodeUtil_js_1.default.isType(base, 'mover') || NodeUtil_js_1.default.getChildAt(base, base.over)) { base = parser.create('node', 'munderover', [base], { movesupsub: true }); } position = base.over; } else { base = parser.create('node', 'msubsup', [base]); position = base.sup; } } parser.Push(parser.itemFactory.create('subsup', base).setProperties({ position: position, primes: primes, movesupsub: movesupsub })); }; BaseMethods.Subscript = function (parser, _c) { var _a; if (parser.GetNext().match(/\d/)) { parser.string = parser.string.substr(0, parser.i + 1) + ' ' + parser.string.substr(parser.i + 1); } var primes, base; var top = parser.stack.Top(); if (top.isKind('prime')) { _a = __read(top.Peek(2), 2), base = _a[0], primes = _a[1]; parser.stack.Pop(); } else { base = parser.stack.Prev(); if (!base) { base = parser.create('token', 'mi', {}, ''); } } var movesupsub = NodeUtil_js_1.default.getProperty(base, 'movesupsub'); var position = NodeUtil_js_1.default.isType(base, 'msubsup') ? base.sub : base.under; if ((NodeUtil_js_1.default.isType(base, 'msubsup') && !NodeUtil_js_1.default.isType(base, 'msup') && NodeUtil_js_1.default.getChildAt(base, base.sub)) || (NodeUtil_js_1.default.isType(base, 'munderover') && !NodeUtil_js_1.default.isType(base, 'mover') && NodeUtil_js_1.default.getChildAt(base, base.under) && !NodeUtil_js_1.default.getProperty(base, 'subsupOK'))) { throw new TexError_js_1.default('DoubleSubscripts', 'Double subscripts: use braces to clarify'); } if (!NodeUtil_js_1.default.isType(base, 'msubsup') || NodeUtil_js_1.default.isType(base, 'msup')) { if (movesupsub) { if (!NodeUtil_js_1.default.isType(base, 'munderover') || NodeUtil_js_1.default.isType(base, 'mover') || NodeUtil_js_1.default.getChildAt(base, base.under)) { base = parser.create('node', 'munderover', [base], { movesupsub: true }); } position = base.under; } else { base = parser.create('node', 'msubsup', [base]); position = base.sub; } } parser.Push(parser.itemFactory.create('subsup', base).setProperties({ position: position, primes: primes, movesupsub: movesupsub })); }; BaseMethods.Prime = function (parser, c) { var base = parser.stack.Prev(); if (!base) { base = parser.create('node', 'mi'); } if (NodeUtil_js_1.default.isType(base, 'msubsup') && !NodeUtil_js_1.default.isType(base, 'msup') && NodeUtil_js_1.default.getChildAt(base, base.sup)) { throw new TexError_js_1.default('DoubleExponentPrime', 'Prime causes double exponent: use braces to clarify'); } var sup = ''; parser.i--; do { sup += Entities_js_1.entities.prime; parser.i++, c = parser.GetNext(); } while (c === '\'' || c === Entities_js_1.entities.rquote); sup = ['', '\u2032', '\u2033', '\u2034', '\u2057'][sup.length] || sup; var node = parser.create('token', 'mo', {}, sup); parser.Push(parser.itemFactory.create('prime', base, node)); }; BaseMethods.Comment = function (parser, _c) { while (parser.i < parser.string.length && parser.string.charAt(parser.i) !== '\n') { parser.i++; } }; BaseMethods.Hash = function (_parser, _c) { throw new TexError_js_1.default('CantUseHash1', 'You can\'t use \'macro parameter character #\' in math mode'); }; BaseMethods.SetFont = function (parser, _name, font) { parser.stack.env['font'] = font; }; BaseMethods.SetStyle = function (parser, _name, texStyle, style, level) { parser.stack.env['style'] = texStyle; parser.stack.env['level'] = level; parser.Push(parser.itemFactory.create('style').setProperty('styles', { displaystyle: style, scriptlevel: level })); }; BaseMethods.SetSize = function (parser, _name, size) { parser.stack.env['size'] = size; parser.Push(parser.itemFactory.create('style').setProperty('styles', { mathsize: size + 'em' })); }; BaseMethods.Spacer = function (parser, _name, space) { var node = parser.create('node', 'mspace', [], { width: space }); var style = parser.create('node', 'mstyle', [node], { scriptlevel: 0 }); parser.Push(style); }; BaseMethods.LeftRight = function (parser, name) { var first = name.substr(1); parser.Push(parser.itemFactory.create(first) .setProperty('delim', parser.GetDelimiter(name))); }; BaseMethods.Middle = function (parser, name) { var delim = parser.GetDelimiter(name); var node = parser.create('node', 'TeXAtom', [], { texClass: MmlNode_js_1.TEXCLASS.CLOSE }); parser.Push(node); if (!parser.stack.Top().isKind('left')) { throw new TexError_js_1.default('MisplacedMiddle', '%1 must be within \\left and \\right', parser.currentCS); } node = parser.create('token', 'mo', { stretchy: true }, delim); parser.Push(node); node = parser.create('node', 'TeXAtom', [], { texClass: MmlNode_js_1.TEXCLASS.OPEN }); parser.Push(node); }; BaseMethods.NamedFn = function (parser, name, id) { if (!id) { id = name.substr(1); } var mml = parser.create('token', 'mi', { texClass: MmlNode_js_1.TEXCLASS.OP }, id); parser.Push(parser.itemFactory.create('fn', mml)); }; BaseMethods.NamedOp = function (parser, name, id) { if (!id) { id = name.substr(1); } id = id.replace(/ /, '\u2006'); var mml = parser.create('token', 'mo', { movablelimits: true, movesupsub: true, form: TexConstants_js_1.TexConstant.Form.PREFIX, texClass: MmlNode_js_1.TEXCLASS.OP }, id); parser.Push(mml); }; BaseMethods.Limits = function (parser, _name, limits) { var op = parser.stack.Prev(true); if (!op || (NodeUtil_js_1.default.getTexClass(NodeUtil_js_1.default.getCoreMO(op)) !== MmlNode_js_1.TEXCLASS.OP && NodeUtil_js_1.default.getProperty(op, 'movesupsub') == null)) { throw new TexError_js_1.default('MisplacedLimits', '%1 is allowed only on operators', parser.currentCS); } var top = parser.stack.Top(); var node; if (NodeUtil_js_1.default.isType(op, 'munderover') && !limits) { node = parser.create('node', 'msubsup'); NodeUtil_js_1.default.copyChildren(op, node); op = top.Last = node; } else if (NodeUtil_js_1.default.isType(op, 'msubsup') && limits) { node = parser.create('node', 'munderover'); NodeUtil_js_1.default.copyChildren(op, node); op = top.Last = node; } NodeUtil_js_1.default.setProperty(op, 'movesupsub', limits ? true : false); NodeUtil_js_1.default.setProperties(NodeUtil_js_1.default.getCoreMO(op), { 'movablelimits': false }); if (NodeUtil_js_1.default.getAttribute(op, 'movablelimits') || NodeUtil_js_1.default.getProperty(op, 'movablelimits')) { NodeUtil_js_1.default.setProperties(op, { 'movablelimits': false }); } }; BaseMethods.Over = function (parser, name, open, close) { var mml = parser.itemFactory.create('over').setProperty('name', parser.currentCS); if (open || close) { mml.setProperty('open', open); mml.setProperty('close', close); } else if (name.match(/withdelims$/)) { mml.setProperty('open', parser.GetDelimiter(name)); mml.setProperty('close', parser.GetDelimiter(name)); } if (name.match(/^\\above/)) { mml.setProperty('thickness', parser.GetDimen(name)); } else if (name.match(/^\\atop/) || open || close) { mml.setProperty('thickness', 0); } parser.Push(mml); }; BaseMethods.Frac = function (parser, name) { var num = parser.ParseArg(name); var den = parser.ParseArg(name); var node = parser.create('node', 'mfrac', [num, den]); parser.Push(node); }; BaseMethods.Sqrt = function (parser, name) { var n = parser.GetBrackets(name); var arg = parser.GetArgument(name); if (arg === '\\frac') { arg += '{' + parser.GetArgument(arg) + '}{' + parser.GetArgument(arg) + '}'; } var mml = new TexParser_js_1.default(arg, parser.stack.env, parser.configuration).mml(); if (!n) { mml = parser.create('node', 'msqrt', [mml]); } else { mml = parser.create('node', 'mroot', [mml, parseRoot(parser, n)]); } parser.Push(mml); }; function parseRoot(parser, n) { var env = parser.stack.env; var inRoot = env['inRoot']; env['inRoot'] = true; var newParser = new TexParser_js_1.default(n, env, parser.configuration); var node = newParser.mml(); var global = newParser.stack.global; if (global['leftRoot'] || global['upRoot']) { var def = {}; if (global['leftRoot']) { def['width'] = global['leftRoot']; } if (global['upRoot']) { def['voffset'] = global['upRoot']; def['height'] = global['upRoot']; } node = parser.create('node', 'mpadded', [node], def); } env['inRoot'] = inRoot; return node; } BaseMethods.Root = function (parser, name) { var n = parser.GetUpTo(name, '\\of'); var arg = parser.ParseArg(name); var node = parser.create('node', 'mroot', [arg, parseRoot(parser, n)]); parser.Push(node); }; BaseMethods.MoveRoot = function (parser, name, id) { if (!parser.stack.env['inRoot']) { throw new TexError_js_1.default('MisplacedMoveRoot', '%1 can appear only within a root', parser.currentCS); } if (parser.stack.global[id]) { throw new TexError_js_1.default('MultipleMoveRoot', 'Multiple use of %1', parser.currentCS); } var n = parser.GetArgument(name); if (!n.match(/-?[0-9]+/)) { throw new TexError_js_1.default('IntegerArg', 'The argument to %1 must be an integer', parser.currentCS); } n = (parseInt(n, 10) / 15) + 'em'; if (n.substr(0, 1) !== '-') { n = '+' + n; } parser.stack.global[id] = n; }; BaseMethods.Accent = function (parser, name, accent, stretchy) { var c = parser.ParseArg(name); var def = ParseUtil_js_1.default.getFontDef(parser); def['accent'] = true; var entity = NodeUtil_js_1.default.createEntity(accent); var moNode = parser.create('token', 'mo', def, entity); var mml = moNode; NodeUtil_js_1.default.setAttribute(mml, 'stretchy', stretchy ? true : false); var mo = (NodeUtil_js_1.default.isEmbellished(c) ? NodeUtil_js_1.default.getCoreMO(c) : c); if (NodeUtil_js_1.default.isType(mo, 'mo')) { NodeUtil_js_1.default.setProperties(mo, { 'movablelimits': false }); } var muoNode = parser.create('node', 'munderover'); NodeUtil_js_1.default.setChild(muoNode, 0, c); NodeUtil_js_1.default.setChild(muoNode, 1, null); NodeUtil_js_1.default.setChild(muoNode, 2, mml); var texAtom = parser.create('node', 'TeXAtom', [muoNode]); parser.Push(texAtom); }; BaseMethods.UnderOver = function (parser, name, c, stack, noaccent) { var base = parser.ParseArg(name); var symbol = NodeUtil_js_1.default.getForm(base); if ((symbol && symbol[3] && symbol[3]['movablelimits']) || NodeUtil_js_1.default.getProperty(base, 'movablelimits')) { NodeUtil_js_1.default.setProperties(base, { 'movablelimits': false }); } var mo; if (NodeUtil_js_1.default.isType(base, 'munderover') && NodeUtil_js_1.default.isEmbellished(base)) { NodeUtil_js_1.default.setProperties(NodeUtil_js_1.default.getCoreMO(base), { lspace: 0, rspace: 0 }); mo = parser.create('node', 'mo', [], { rspace: 0 }); base = parser.create('node', 'mrow', [mo, base]); } var mml = parser.create('node', 'munderover', [base]); var entity = NodeUtil_js_1.default.createEntity(c); mo = parser.create('token', 'mo', { stretchy: true, accent: !noaccent }, entity); NodeUtil_js_1.default.setChild(mml, name.charAt(1) === 'o' ? mml.over : mml.under, mo); var node = mml; if (stack) { node = parser.create('node', 'TeXAtom', [mml], { texClass: MmlNode_js_1.TEXCLASS.OP, movesupsub: true }); } NodeUtil_js_1.default.setProperty(node, 'subsupOK', true); parser.Push(node); }; BaseMethods.Overset = function (parser, name) { var top = parser.ParseArg(name), base = parser.ParseArg(name); if (NodeUtil_js_1.default.getAttribute(base, 'movablelimits') || NodeUtil_js_1.default.getProperty(base, 'movablelimits')) { NodeUtil_js_1.default.setProperties(base, { 'movablelimits': false }); } var node = parser.create('node', 'mover', [base, top]); parser.Push(node); }; BaseMethods.Underset = function (parser, name) { var bot = parser.ParseArg(name), base = parser.ParseArg(name); if (NodeUtil_js_1.default.isType(base, 'mo') || NodeUtil_js_1.default.getProperty(base, 'movablelimits')) { NodeUtil_js_1.default.setProperties(base, { 'movablelimits': false }); } var node = parser.create('node', 'munder', [base, bot]); parser.Push(node); }; BaseMethods.TeXAtom = function (parser, name, mclass) { var def = { texClass: mclass }; var mml; var node; var parsed; if (mclass === MmlNode_js_1.TEXCLASS.OP) { def['movesupsub'] = def['movablelimits'] = true; var arg = parser.GetArgument(name); var match = arg.match(/^\s*\\rm\s+([a-zA-Z0-9 ]+)$/); if (match) { def['mathvariant'] = TexConstants_js_1.TexConstant.Variant.NORMAL; node = parser.create('token', 'mi', def, match[1]); } else { parsed = new TexParser_js_1.default(arg, parser.stack.env, parser.configuration).mml(); node = parser.create('node', 'TeXAtom', [parsed], def); } mml = parser.itemFactory.create('fn', node); } else { parsed = parser.ParseArg(name); mml = parser.create('node', 'TeXAtom', [parsed], def); } parser.Push(mml); }; BaseMethods.MmlToken = function (parser, name) { var kind = parser.GetArgument(name); var attr = parser.GetBrackets(name, '').replace(/^\s+/, ''); var text = parser.GetArgument(name); var def = {}; var node; try { node = parser.create('node', kind); } catch (e) { node = null; } if (!node || !node.isToken) { throw new TexError_js_1.default('NotMathMLToken', '%1 is not a token element', kind); } while (attr !== '') { var match = attr.match(/^([a-z]+)\s*=\s*('[^']*'|"[^"]*"|[^ ,]*)\s*,?\s*/i); if (!match) { throw new TexError_js_1.default('InvalidMathMLAttr', 'Invalid MathML attribute: %1', attr); } if (!node.attributes.hasDefault(match[1]) && !MmlTokenAllow[match[1]]) { throw new TexError_js_1.default('UnknownAttrForElement', '%1 is not a recognized attribute for %2', match[1], kind); } var value = ParseUtil_js_1.default.MmlFilterAttribute(parser, match[1], match[2].replace(/^(['"])(.*)\1$/, '$2')); if (value) { if (value.toLowerCase() === 'true') { value = true; } else if (value.toLowerCase() === 'false') { value = false; } def[match[1]] = value; } attr = attr.substr(match[0].length); } var textNode = parser.create('text', text); node.appendChild(textNode); NodeUtil_js_1.default.setProperties(node, def); parser.Push(node); }; BaseMethods.Strut = function (parser, _name) { var row = parser.create('node', 'mrow'); var padded = parser.create('node', 'mpadded', [row], { height: '8.6pt', depth: '3pt', width: 0 }); parser.Push(padded); }; BaseMethods.Phantom = function (parser, name, v, h) { var box = parser.create('node', 'mphantom', [parser.ParseArg(name)]); if (v || h) { box = parser.create('node', 'mpadded', [box]); if (h) { NodeUtil_js_1.default.setAttribute(box, 'height', 0); NodeUtil_js_1.default.setAttribute(box, 'depth', 0); } if (v) { NodeUtil_js_1.default.setAttribute(box, 'width', 0); } } var atom = parser.create('node', 'TeXAtom', [box]); parser.Push(atom); }; BaseMethods.Smash = function (parser, name) { var bt = ParseUtil_js_1.default.trimSpaces(parser.GetBrackets(name, '')); var smash = parser.create('node', 'mpadded', [parser.ParseArg(name)]); switch (bt) { case 'b': NodeUtil_js_1.default.setAttribute(smash, 'depth', 0); break; case 't': NodeUtil_js_1.default.setAttribute(smash, 'height', 0); break; default: NodeUtil_js_1.default.setAttribute(smash, 'height', 0); NodeUtil_js_1.default.setAttribute(smash, 'depth', 0); } var atom = parser.create('node', 'TeXAtom', [smash]); parser.Push(atom); }; BaseMethods.Lap = function (parser, name) { var mml = parser.create('node', 'mpadded', [parser.ParseArg(name)], { width: 0 }); if (name === '\\llap') { NodeUtil_js_1.default.setAttribute(mml, 'lspace', '-1width'); } var atom = parser.create('node', 'TeXAtom', [mml]); parser.Push(atom); }; BaseMethods.RaiseLower = function (parser, name) { var h = parser.GetDimen(name); var item = parser.itemFactory.create('position').setProperties({ name: parser.currentCS, move: 'vertical' }); if (h.charAt(0) === '-') { h = h.slice(1); name = name.substr(1) === 'raise' ? '\\lower' : '\\raise'; } if (name === '\\lower') { item.setProperty('dh', '-' + h); item.setProperty('dd', '+' + h); } else { item.setProperty('dh', '+' + h); item.setProperty('dd', '-' + h); } parser.Push(item); }; BaseMethods.MoveLeftRight = function (parser, name) { var h = parser.GetDimen(name); var nh = (h.charAt(0) === '-' ? h.slice(1) : '-' + h); if (name === '\\moveleft') { var tmp = h; h = nh; nh = tmp; } parser.Push(parser.itemFactory.create('position').setProperties({ name: parser.currentCS, move: 'horizontal', left: parser.create('node', 'mspace', [], { width: h }), right: parser.create('node', 'mspace', [], { width: nh }) })); }; BaseMethods.Hskip = function (parser, name) { var node = parser.create('node', 'mspace', [], { width: parser.GetDimen(name) }); parser.Push(node); }; BaseMethods.Rule = function (parser, name, style) { var w = parser.GetDimen(name), h = parser.GetDimen(name), d = parser.GetDimen(name); var def = { width: w, height: h, depth: d }; if (style !== 'blank') { def['mathbackground'] = (parser.stack.env['color'] || 'black'); } var node = parser.create('node', 'mspace', [], def); parser.Push(node); }; BaseMethods.rule = function (parser, name) { var v = parser.GetBrackets(name), w = parser.GetDimen(name), h = parser.GetDimen(name); var mml = parser.create('node', 'mspace', [], { width: w, height: h, mathbackground: (parser.stack.env['color'] || 'black') }); if (v) { mml = parser.create('node', 'mpadded', [mml], { voffset: v }); if (v.match(/^\-/)) { NodeUtil_js_1.default.setAttribute(mml, 'height', v); NodeUtil_js_1.default.setAttribute(mml, 'depth', '+' + v.substr(1)); } else { NodeUtil_js_1.default.setAttribute(mml, 'height', '+' + v); } } parser.Push(mml); }; BaseMethods.MakeBig = function (parser, name, mclass, size) { size *= P_HEIGHT; var sizeStr = String(size).replace(/(\.\d\d\d).+/, '$1') + 'em'; var delim = parser.GetDelimiter(name, true); var mo = parser.create('token', 'mo', { minsize: sizeStr, maxsize: sizeStr, fence: true, stretchy: true, symmetric: true }, delim); var node = parser.create('node', 'TeXAtom', [mo], { texClass: mclass }); parser.Push(node); }; BaseMethods.BuildRel = function (parser, name) { var top = parser.ParseUpTo(name, '\\over'); var bot = parser.ParseArg(name); var node = parser.create('node', 'munderover'); NodeUtil_js_1.default.setChild(node, 0, bot); NodeUtil_js_1.default.setChild(node, 1, null); NodeUtil_js_1.default.setChild(node, 2, top); var atom = parser.create('node', 'TeXAtom', [node], { texClass: MmlNode_js_1.TEXCLASS.REL }); parser.Push(atom); }; BaseMethods.HBox = function (parser, name, style, font) { parser.PushAll(ParseUtil_js_1.default.internalMath(parser, parser.GetArgument(name), style, font)); }; BaseMethods.FBox = function (parser, name) { var internal = ParseUtil_js_1.default.internalMath(parser, parser.GetArgument(name)); var node = parser.create('node', 'menclose', internal, { notation: 'box' }); parser.Push(node); }; BaseMethods.Not = function (parser, _name) { parser.Push(parser.itemFactory.create('not')); }; BaseMethods.Dots = function (parser, _name) { var ldotsEntity = NodeUtil_js_1.default.createEntity('2026'); var cdotsEntity = NodeUtil_js_1.default.createEntity('22EF'); var ldots = parser.create('token', 'mo', { stretchy: false }, ldotsEntity); var cdots = parser.create('token', 'mo', { stretchy: false }, cdotsEntity); parser.Push(parser.itemFactory.create('dots').setProperties({ ldots: ldots, cdots: cdots })); }; BaseMethods.Matrix = function (parser, _name, open, close, align, spacing, vspacing, style, cases, numbered) { var c = parser.GetNext(); if (c === '') { throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', parser.currentCS); } if (c === '{') { parser.i++; } else { parser.string = c + '}' + parser.string.slice(parser.i + 1); parser.i = 0; } var array = parser.itemFactory.create('array').setProperty('requireClose', true); array.arraydef = { rowspacing: (vspacing || '4pt'), columnspacing: (spacing || '1em') }; if (cases) { array.setProperty('isCases', true); } if (numbered) { array.setProperty('isNumbered', true); array.arraydef.side = numbered; } if (open || close) { array.setProperty('open', open); array.setProperty('close', close); } if (style === 'D') { array.arraydef.displaystyle = true; } if (align != null) { array.arraydef.columnalign = align; } parser.Push(array); }; BaseMethods.Entry = function (parser, name) { parser.Push(parser.itemFactory.create('cell').setProperties({ isEntry: true, name: name })); if (parser.stack.Top().getProperty('isCases')) { var str = parser.string; var braces = 0, close_1 = -1, i = parser.i, m = str.length; while (i < m) { var c = str.charAt(i); if (c === '{') { braces++; i++; } else if (c === '}') { if (braces === 0) { m = 0; } else { braces--; if (braces === 0 && close_1 < 0) { close_1 = i - parser.i; } i++; } } else if (c === '&' && braces === 0) { throw new TexError_js_1.default('ExtraAlignTab', 'Extra alignment tab in \\cases text'); } else if (c === '\\') { if (str.substr(i).match(/^((\\cr)[^a-zA-Z]|\\\\)/)) { m = 0; } else { i += 2; } } else { i++; } } var text = str.substr(parser.i, i - parser.i); if (!text.match(/^\s*\\text[^a-zA-Z]/) || close_1 !== text.replace(/\s+$/, '').length - 1) { var internal = ParseUtil_js_1.default.internalMath(parser, text, 0); parser.PushAll(internal); parser.i = i; } } }; BaseMethods.Cr = function (parser, name) { parser.Push(parser.itemFactory.create('cell').setProperties({ isCR: true, name: name })); }; BaseMethods.CrLaTeX = function (parser, name, nobrackets) { if (nobrackets === void 0) { nobrackets = false; } var n; if (!nobrackets && parser.string.charAt(parser.i) === '[') { var dim = parser.GetBrackets(name, ''); var _a = __read(ParseUtil_js_1.default.matchDimen(dim), 2), value = _a[0], unit = _a[1]; if (dim && !value) { throw new TexError_js_1.default('BracketMustBeDimension', 'Bracket argument to %1 must be a dimension', parser.currentCS); } n = value + unit; } parser.Push(parser.itemFactory.create('cell').setProperties({ isCR: true, name: name, linebreak: true })); var top = parser.stack.Top(); var node; if (top instanceof sitem.ArrayItem) { if (n && top.arraydef['rowspacing']) { var rows = top.arraydef['rowspacing'].split(/ /); if (!top.getProperty('rowspacing')) { var dimem = ParseUtil_js_1.default.dimen2em(rows[0]); top.setProperty('rowspacing', dimem); } var rowspacing = top.getProperty('rowspacing'); while (rows.length < top.table.length) { rows.push(ParseUtil_js_1.default.Em(rowspacing)); } rows[top.table.length - 1] = ParseUtil_js_1.default.Em(Math.max(0, rowspacing + ParseUtil_js_1.default.dimen2em(n))); top.arraydef['rowspacing'] = rows.join(' '); } } else { if (n) { node = parser.create('node', 'mspace', [], { depth: n }); parser.Push(node); } node = parser.create('node', 'mspace', [], { linebreak: TexConstants_js_1.TexConstant.LineBreak.NEWLINE }); parser.Push(node); } }; BaseMethods.HLine = function (parser, _name, style) { if (style == null) { style = 'solid'; } var top = parser.stack.Top(); if (!(top instanceof sitem.ArrayItem) || top.Size()) { throw new TexError_js_1.default('Misplaced', 'Misplaced %1', parser.currentCS); } if (!top.table.length) { top.frame.push('top'); } else { var lines = (top.arraydef['rowlines'] ? top.arraydef['rowlines'].split(/ /) : []); while (lines.length < top.table.length) { lines.push('none'); } lines[top.table.length - 1] = style; top.arraydef['rowlines'] = lines.join(' '); } }; BaseMethods.HFill = function (parser, _name) { var top = parser.stack.Top(); if (top instanceof sitem.ArrayItem) { top.hfill.push(top.Size()); } else { throw new TexError_js_1.default('UnsupportedHFill', 'Unsupported use of %1', parser.currentCS); } }; BaseMethods.BeginEnd = function (parser, name) { var env = parser.GetArgument(name); if (env.match(/\\/i)) { throw new TexError_js_1.default('InvalidEnv', 'Invalid environment name \'%1\'', env); } var macro = parser.configuration.handlers.get('environment').lookup(env); if (macro && name === '\\end') { if (!macro.args[0]) { var mml = parser.itemFactory.create('end').setProperty('name', env); parser.Push(mml); return; } parser.stack.env['closing'] = env; } if (++parser.macroCount > parser.configuration.options['maxMacros']) { throw new TexError_js_1.default('MaxMacroSub2', 'MathJax maximum substitution count exceeded; ' + 'is there a recursive latex environment?'); } parser.parse('environment', [parser, env]); }; BaseMethods.Array = function (parser, begin, open, close, align, spacing, vspacing, style, raggedHeight) { if (!align) { align = parser.GetArgument('\\begin{' + begin.getName() + '}'); } var lines = ('c' + align).replace(/[^clr|:]/g, '').replace(/[^|:]([|:])+/g, '$1'); align = align.replace(/[^clr]/g, '').split('').join(' '); align = align.replace(/l/g, 'left').replace(/r/g, 'right').replace(/c/g, 'center'); var array = parser.itemFactory.create('array'); array.arraydef = { columnalign: align, columnspacing: (spacing || '1em'), rowspacing: (vspacing || '4pt') }; if (lines.match(/[|:]/)) { if (lines.charAt(0).match(/[|:]/)) { array.frame.push('left'); array.dashed = lines.charAt(0) === ':'; } if (lines.charAt(lines.length - 1).match(/[|:]/)) { array.frame.push('right'); } lines = lines.substr(1, lines.length - 2); array.arraydef.columnlines = lines.split('').join(' ').replace(/[^|: ]/g, 'none').replace(/\|/g, 'solid').replace(/:/g, 'dashed'); } if (open) { array.setProperty('open', parser.convertDelimiter(open)); } if (close) { array.setProperty('close', parser.convertDelimiter(close)); } if (style === 'D') { array.arraydef['displaystyle'] = true; } else if (style) { array.arraydef['displaystyle'] = false; } if (style === 'S') { array.arraydef['scriptlevel'] = 1; } if (raggedHeight) { array.arraydef['useHeight'] = false; } parser.Push(begin); return array; }; BaseMethods.AlignedArray = function (parser, begin) { var align = parser.GetBrackets('\\begin{' + begin.getName() + '}'); var item = BaseMethods.Array(parser, begin); return ParseUtil_js_1.default.setArrayAlign(item, align); }; BaseMethods.Equation = function (parser, begin, numbered) { parser.Push(begin); ParseUtil_js_1.default.checkEqnEnv(parser); return parser.itemFactory.create('equation', numbered). setProperty('name', begin.getName()); }; BaseMethods.EqnArray = function (parser, begin, numbered, taggable, align, spacing) { parser.Push(begin); if (taggable) { ParseUtil_js_1.default.checkEqnEnv(parser); } align = align.replace(/[^clr]/g, '').split('').join(' '); align = align.replace(/l/g, 'left').replace(/r/g, 'right').replace(/c/g, 'center'); var newItem = parser.itemFactory.create('eqnarray', begin.getName(), numbered, taggable, parser.stack.global); newItem.arraydef = { displaystyle: true, columnalign: align, columnspacing: (spacing || '1em'), rowspacing: '3pt', side: parser.options['tagSide'], minlabelspacing: parser.options['tagIndent'] }; return newItem; }; BaseMethods.HandleNoTag = function (parser, _name) { parser.tags.notag(); }; BaseMethods.HandleLabel = function (parser, name) { var label = parser.GetArgument(name); if (label === '') { return; } if (!parser.tags.refUpdate) { if (parser.tags.label) { throw new TexError_js_1.default('MultipleCommand', 'Multiple %1', parser.currentCS); } parser.tags.label = label; if ((parser.tags.allLabels[label] || parser.tags.labels[label]) && !parser.options['ignoreDuplicateLabels']) { throw new TexError_js_1.default('MultipleLabel', 'Label \'%1\' multiply defined', label); } parser.tags.labels[label] = new Tags_js_1.Label(); } }; BaseMethods.HandleRef = function (parser, name, eqref) { var label = parser.GetArgument(name); var ref = parser.tags.allLabels[label] || parser.tags.labels[label]; if (!ref) { if (!parser.tags.refUpdate) { parser.tags.redo = true; } ref = new Tags_js_1.Label(); } var tag = ref.tag; if (eqref) { tag = parser.tags.formatTag(tag); } var node = parser.create('node', 'mrow', ParseUtil_js_1.default.internalMath(parser, tag), { href: parser.tags.formatUrl(ref.id, parser.options.baseURL), 'class': 'MathJax_ref' }); parser.Push(node); }; BaseMethods.Macro = function (parser, name, macro, argcount, def) { if (argcount) { var args = []; if (def != null) { var optional = parser.GetBrackets(name); args.push(optional == null ? def : optional); } for (var i = args.length; i < argcount; i++) { args.push(parser.GetArgument(name)); } macro = ParseUtil_js_1.default.substituteArgs(parser, args, macro); } parser.string = ParseUtil_js_1.default.addArgs(parser, macro, parser.string.slice(parser.i)); parser.i = 0; if (++parser.macroCount > parser.configuration.options['maxMacros']) { throw new TexError_js_1.default('MaxMacroSub1', 'MathJax maximum macro substitution count exceeded; ' + 'is there a recursive macro call?'); } }; BaseMethods.MathChoice = function (parser, name) { var D = parser.ParseArg(name); var T = parser.ParseArg(name); var S = parser.ParseArg(name); var SS = parser.ParseArg(name); parser.Push(parser.create('node', 'MathChoice', [D, T, S, SS])); }; exports.default = BaseMethods; //# sourceMappingURL=BaseMethods.js.map /***/ }), /* 18 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MenuUtil = void 0; var MenuUtil; (function (MenuUtil) { function close(item) { var menu = item.menu; if (menu.baseMenu) { menu.baseMenu.unpost(); } else { menu.unpost(); } } MenuUtil.close = close; function getActiveElement(item) { var menu = item.menu; var baseMenu = (menu.baseMenu ? menu.baseMenu : menu); return baseMenu.store.active; } MenuUtil.getActiveElement = getActiveElement; function error(_error, msg) { console.error('ContextMenu Error: ' + msg); } MenuUtil.error = error; function counter() { return count++; } MenuUtil.counter = counter; var count = 0; })(MenuUtil = exports.MenuUtil || (exports.MenuUtil = {})); //# sourceMappingURL=menu_util.js.map /***/ }), /* 19 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.px = exports.emRounded = exports.em = exports.percent = exports.length2em = exports.MATHSPACE = exports.RELUNITS = exports.UNITS = exports.BIGDIMEN = void 0; exports.BIGDIMEN = 1000000; exports.UNITS = { px: 1, 'in': 96, cm: 96 / 2.54, mm: 96 / 25.4 }; exports.RELUNITS = { em: 1, ex: .431, pt: 1 / 10, pc: 12 / 10, mu: 1 / 18 }; exports.MATHSPACE = { veryverythinmathspace: 1 / 18, verythinmathspace: 2 / 18, thinmathspace: 3 / 18, mediummathspace: 4 / 18, thickmathspace: 5 / 18, verythickmathspace: 6 / 18, veryverythickmathspace: 7 / 18, negativeveryverythinmathspace: -1 / 18, negativeverythinmathspace: -2 / 18, negativethinmathspace: -3 / 18, negativemediummathspace: -4 / 18, negativethickmathspace: -5 / 18, negativeverythickmathspace: -6 / 18, negativeveryverythickmathspace: -7 / 18, thin: .04, medium: .06, thick: .1, normal: 1, big: 2, small: 1 / Math.sqrt(2), infinity: exports.BIGDIMEN }; function length2em(length, size, scale, em) { if (size === void 0) { size = 0; } if (scale === void 0) { scale = 1; } if (em === void 0) { em = 16; } if (typeof length !== 'string') { length = String(length); } if (length === '' || length == null) { return size; } if (exports.MATHSPACE[length]) { return exports.MATHSPACE[length]; } var match = length.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/); if (!match) { return size; } var m = parseFloat(match[1] || '1'), unit = match[2]; if (exports.UNITS.hasOwnProperty(unit)) { return m * exports.UNITS[unit] / em / scale; } if (exports.RELUNITS.hasOwnProperty(unit)) { return m * exports.RELUNITS[unit]; } if (unit === '%') { return m / 100 * size; } return m * size; } exports.length2em = length2em; function percent(m) { return (100 * m).toFixed(1).replace(/\.?0+$/, '') + '%'; } exports.percent = percent; function em(m) { if (Math.abs(m) < .001) return '0'; return (m.toFixed(3).replace(/\.?0+$/, '')) + 'em'; } exports.em = em; function emRounded(m, em) { if (em === void 0) { em = 16; } m = (Math.round(m * em) + .05) / em; if (Math.abs(m) < .001) return '0em'; return m.toFixed(3).replace(/\.?0+$/, '') + 'em'; } exports.emRounded = emRounded; function px(m, M, em) { if (M === void 0) { M = -exports.BIGDIMEN; } if (em === void 0) { em = 16; } m *= em; if (M && m < M) m = M; if (Math.abs(m) < .1) return '0'; return m.toFixed(1).replace(/\.0$/, '') + 'px'; } exports.px = px; //# sourceMappingURL=lengths.js.map /***/ }), /* 20 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.numeric = exports.translate = exports.remove = exports.add = exports.entities = exports.options = void 0; var Retries_js_1 = __webpack_require__(40); var AsyncLoad_js_1 = __webpack_require__(126); exports.options = { loadMissingEntities: true }; exports.entities = { ApplyFunction: '\u2061', Backslash: '\u2216', Because: '\u2235', Breve: '\u02D8', Cap: '\u22D2', CenterDot: '\u00B7', CircleDot: '\u2299', CircleMinus: '\u2296', CirclePlus: '\u2295', CircleTimes: '\u2297', Congruent: '\u2261', ContourIntegral: '\u222E', Coproduct: '\u2210', Cross: '\u2A2F', Cup: '\u22D3', CupCap: '\u224D', Dagger: '\u2021', Del: '\u2207', Delta: '\u0394', Diamond: '\u22C4', DifferentialD: '\u2146', DotEqual: '\u2250', DoubleDot: '\u00A8', DoubleRightTee: '\u22A8', DoubleVerticalBar: '\u2225', DownArrow: '\u2193', DownLeftVector: '\u21BD', DownRightVector: '\u21C1', DownTee: '\u22A4', Downarrow: '\u21D3', Element: '\u2208', EqualTilde: '\u2242', Equilibrium: '\u21CC', Exists: '\u2203', ExponentialE: '\u2147', FilledVerySmallSquare: '\u25AA', ForAll: '\u2200', Gamma: '\u0393', Gg: '\u22D9', GreaterEqual: '\u2265', GreaterEqualLess: '\u22DB', GreaterFullEqual: '\u2267', GreaterLess: '\u2277', GreaterSlantEqual: '\u2A7E', GreaterTilde: '\u2273', Hacek: '\u02C7', Hat: '\u005E', HumpDownHump: '\u224E', HumpEqual: '\u224F', Im: '\u2111', ImaginaryI: '\u2148', Integral: '\u222B', Intersection: '\u22C2', InvisibleComma: '\u2063', InvisibleTimes: '\u2062', Lambda: '\u039B', Larr: '\u219E', LeftAngleBracket: '\u27E8', LeftArrow: '\u2190', LeftArrowRightArrow: '\u21C6', LeftCeiling: '\u2308', LeftDownVector: '\u21C3', LeftFloor: '\u230A', LeftRightArrow: '\u2194', LeftTee: '\u22A3', LeftTriangle: '\u22B2', LeftTriangleEqual: '\u22B4', LeftUpVector: '\u21BF', LeftVector: '\u21BC', Leftarrow: '\u21D0', Leftrightarrow: '\u21D4', LessEqualGreater: '\u22DA', LessFullEqual: '\u2266', LessGreater: '\u2276', LessSlantEqual: '\u2A7D', LessTilde: '\u2272', Ll: '\u22D8', Lleftarrow: '\u21DA', LongLeftArrow: '\u27F5', LongLeftRightArrow: '\u27F7', LongRightArrow: '\u27F6', Longleftarrow: '\u27F8', Longleftrightarrow: '\u27FA', Longrightarrow: '\u27F9', Lsh: '\u21B0', MinusPlus: '\u2213', NestedGreaterGreater: '\u226B', NestedLessLess: '\u226A', NotDoubleVerticalBar: '\u2226', NotElement: '\u2209', NotEqual: '\u2260', NotExists: '\u2204', NotGreater: '\u226F', NotGreaterEqual: '\u2271', NotLeftTriangle: '\u22EA', NotLeftTriangleEqual: '\u22EC', NotLess: '\u226E', NotLessEqual: '\u2270', NotPrecedes: '\u2280', NotPrecedesSlantEqual: '\u22E0', NotRightTriangle: '\u22EB', NotRightTriangleEqual: '\u22ED', NotSubsetEqual: '\u2288', NotSucceeds: '\u2281', NotSucceedsSlantEqual: '\u22E1', NotSupersetEqual: '\u2289', NotTilde: '\u2241', NotVerticalBar: '\u2224', Omega: '\u03A9', OverBar: '\u203E', OverBrace: '\u23DE', PartialD: '\u2202', Phi: '\u03A6', Pi: '\u03A0', PlusMinus: '\u00B1', Precedes: '\u227A', PrecedesEqual: '\u2AAF', PrecedesSlantEqual: '\u227C', PrecedesTilde: '\u227E', Product: '\u220F', Proportional: '\u221D', Psi: '\u03A8', Rarr: '\u21A0', Re: '\u211C', ReverseEquilibrium: '\u21CB', RightAngleBracket: '\u27E9', RightArrow: '\u2192', RightArrowLeftArrow: '\u21C4', RightCeiling: '\u2309', RightDownVector: '\u21C2', RightFloor: '\u230B', RightTee: '\u22A2', RightTeeArrow: '\u21A6', RightTriangle: '\u22B3', RightTriangleEqual: '\u22B5', RightUpVector: '\u21BE', RightVector: '\u21C0', Rightarrow: '\u21D2', Rrightarrow: '\u21DB', Rsh: '\u21B1', Sigma: '\u03A3', SmallCircle: '\u2218', Sqrt: '\u221A', Square: '\u25A1', SquareIntersection: '\u2293', SquareSubset: '\u228F', SquareSubsetEqual: '\u2291', SquareSuperset: '\u2290', SquareSupersetEqual: '\u2292', SquareUnion: '\u2294', Star: '\u22C6', Subset: '\u22D0', SubsetEqual: '\u2286', Succeeds: '\u227B', SucceedsEqual: '\u2AB0', SucceedsSlantEqual: '\u227D', SucceedsTilde: '\u227F', SuchThat: '\u220B', Sum: '\u2211', Superset: '\u2283', SupersetEqual: '\u2287', Supset: '\u22D1', Therefore: '\u2234', Theta: '\u0398', Tilde: '\u223C', TildeEqual: '\u2243', TildeFullEqual: '\u2245', TildeTilde: '\u2248', UnderBar: '\u005F', UnderBrace: '\u23DF', Union: '\u22C3', UnionPlus: '\u228E', UpArrow: '\u2191', UpDownArrow: '\u2195', UpTee: '\u22A5', Uparrow: '\u21D1', Updownarrow: '\u21D5', Upsilon: '\u03A5', Vdash: '\u22A9', Vee: '\u22C1', VerticalBar: '\u2223', VerticalTilde: '\u2240', Vvdash: '\u22AA', Wedge: '\u22C0', Xi: '\u039E', amp: '\u0026', acute: '\u00B4', aleph: '\u2135', alpha: '\u03B1', amalg: '\u2A3F', and: '\u2227', ang: '\u2220', angmsd: '\u2221', angsph: '\u2222', ape: '\u224A', backprime: '\u2035', backsim: '\u223D', backsimeq: '\u22CD', beta: '\u03B2', beth: '\u2136', between: '\u226C', bigcirc: '\u25EF', bigodot: '\u2A00', bigoplus: '\u2A01', bigotimes: '\u2A02', bigsqcup: '\u2A06', bigstar: '\u2605', bigtriangledown: '\u25BD', bigtriangleup: '\u25B3', biguplus: '\u2A04', blacklozenge: '\u29EB', blacktriangle: '\u25B4', blacktriangledown: '\u25BE', blacktriangleleft: '\u25C2', bowtie: '\u22C8', boxdl: '\u2510', boxdr: '\u250C', boxminus: '\u229F', boxplus: '\u229E', boxtimes: '\u22A0', boxul: '\u2518', boxur: '\u2514', bsol: '\u005C', bull: '\u2022', cap: '\u2229', check: '\u2713', chi: '\u03C7', circ: '\u02C6', circeq: '\u2257', circlearrowleft: '\u21BA', circlearrowright: '\u21BB', circledR: '\u00AE', circledS: '\u24C8', circledast: '\u229B', circledcirc: '\u229A', circleddash: '\u229D', clubs: '\u2663', colon: '\u003A', comp: '\u2201', ctdot: '\u22EF', cuepr: '\u22DE', cuesc: '\u22DF', cularr: '\u21B6', cup: '\u222A', curarr: '\u21B7', curlyvee: '\u22CE', curlywedge: '\u22CF', dagger: '\u2020', daleth: '\u2138', ddarr: '\u21CA', deg: '\u00B0', delta: '\u03B4', digamma: '\u03DD', div: '\u00F7', divideontimes: '\u22C7', dot: '\u02D9', doteqdot: '\u2251', dotplus: '\u2214', dotsquare: '\u22A1', dtdot: '\u22F1', ecir: '\u2256', efDot: '\u2252', egs: '\u2A96', ell: '\u2113', els: '\u2A95', empty: '\u2205', epsi: '\u03B5', epsiv: '\u03F5', erDot: '\u2253', eta: '\u03B7', eth: '\u00F0', flat: '\u266D', fork: '\u22D4', frown: '\u2322', gEl: '\u2A8C', gamma: '\u03B3', gap: '\u2A86', gimel: '\u2137', gnE: '\u2269', gnap: '\u2A8A', gne: '\u2A88', gnsim: '\u22E7', gt: '\u003E', gtdot: '\u22D7', harrw: '\u21AD', hbar: '\u210F', hellip: '\u2026', hookleftarrow: '\u21A9', hookrightarrow: '\u21AA', imath: '\u0131', infin: '\u221E', intcal: '\u22BA', iota: '\u03B9', jmath: '\u0237', kappa: '\u03BA', kappav: '\u03F0', lEg: '\u2A8B', lambda: '\u03BB', lap: '\u2A85', larrlp: '\u21AB', larrtl: '\u21A2', lbrace: '\u007B', lbrack: '\u005B', le: '\u2264', leftleftarrows: '\u21C7', leftthreetimes: '\u22CB', lessdot: '\u22D6', lmoust: '\u23B0', lnE: '\u2268', lnap: '\u2A89', lne: '\u2A87', lnsim: '\u22E6', longmapsto: '\u27FC', looparrowright: '\u21AC', lowast: '\u2217', loz: '\u25CA', lt: '\u003C', ltimes: '\u22C9', ltri: '\u25C3', macr: '\u00AF', malt: '\u2720', mho: '\u2127', mu: '\u03BC', multimap: '\u22B8', nLeftarrow: '\u21CD', nLeftrightarrow: '\u21CE', nRightarrow: '\u21CF', nVDash: '\u22AF', nVdash: '\u22AE', natur: '\u266E', nearr: '\u2197', nharr: '\u21AE', nlarr: '\u219A', not: '\u00AC', nrarr: '\u219B', nu: '\u03BD', nvDash: '\u22AD', nvdash: '\u22AC', nwarr: '\u2196', omega: '\u03C9', omicron: '\u03BF', or: '\u2228', osol: '\u2298', period: '\u002E', phi: '\u03C6', phiv: '\u03D5', pi: '\u03C0', piv: '\u03D6', prap: '\u2AB7', precnapprox: '\u2AB9', precneqq: '\u2AB5', precnsim: '\u22E8', prime: '\u2032', psi: '\u03C8', quot: '\u0022', rarrtl: '\u21A3', rbrace: '\u007D', rbrack: '\u005D', rho: '\u03C1', rhov: '\u03F1', rightrightarrows: '\u21C9', rightthreetimes: '\u22CC', ring: '\u02DA', rmoust: '\u23B1', rtimes: '\u22CA', rtri: '\u25B9', scap: '\u2AB8', scnE: '\u2AB6', scnap: '\u2ABA', scnsim: '\u22E9', sdot: '\u22C5', searr: '\u2198', sect: '\u00A7', sharp: '\u266F', sigma: '\u03C3', sigmav: '\u03C2', simne: '\u2246', smile: '\u2323', spades: '\u2660', sub: '\u2282', subE: '\u2AC5', subnE: '\u2ACB', subne: '\u228A', supE: '\u2AC6', supnE: '\u2ACC', supne: '\u228B', swarr: '\u2199', tau: '\u03C4', theta: '\u03B8', thetav: '\u03D1', tilde: '\u02DC', times: '\u00D7', triangle: '\u25B5', triangleq: '\u225C', upsi: '\u03C5', upuparrows: '\u21C8', veebar: '\u22BB', vellip: '\u22EE', weierp: '\u2118', xi: '\u03BE', yen: '\u00A5', zeta: '\u03B6', zigrarr: '\u21DD' }; var loaded = {}; function add(additions, file) { Object.assign(exports.entities, additions); loaded[file] = true; } exports.add = add; function remove(entity) { delete exports.entities[entity]; } exports.remove = remove; function translate(text) { return text.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/ig, replace); } exports.translate = translate; function replace(match, entity) { if (entity.charAt(0) === '#') { return numeric(entity.slice(1)); } if (exports.entities[entity]) { return exports.entities[entity]; } if (exports.options['loadMissingEntities']) { var file = (entity.match(/^[a-zA-Z](fr|scr|opf)$/) ? RegExp.$1 : entity.charAt(0).toLowerCase()); if (!loaded[file]) { loaded[file] = true; Retries_js_1.retryAfter(AsyncLoad_js_1.asyncLoad('./util/entities/' + file + '.js')); } } return match; } function numeric(entity) { var n = (entity.charAt(0) === 'x' ? parseInt(entity.slice(1), 16) : parseInt(entity)); return String.fromCodePoint(n); } exports.numeric = numeric; //# sourceMappingURL=Entities.js.map /***/ }), /* 21 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TagsFactory = exports.AllTags = exports.NoTags = exports.AbstractTags = exports.TagInfo = exports.Label = void 0; var TexParser_js_1 = __webpack_require__(12); var Label = (function () { function Label(tag, id) { if (tag === void 0) { tag = '???'; } if (id === void 0) { id = ''; } this.tag = tag; this.id = id; } return Label; }()); exports.Label = Label; var TagInfo = (function () { function TagInfo(env, taggable, defaultTags, tag, tagId, tagFormat, noTag, labelId) { if (env === void 0) { env = ''; } if (taggable === void 0) { taggable = false; } if (defaultTags === void 0) { defaultTags = false; } if (tag === void 0) { tag = null; } if (tagId === void 0) { tagId = ''; } if (tagFormat === void 0) { tagFormat = ''; } if (noTag === void 0) { noTag = false; } if (labelId === void 0) { labelId = ''; } this.env = env; this.taggable = taggable; this.defaultTags = defaultTags; this.tag = tag; this.tagId = tagId; this.tagFormat = tagFormat; this.noTag = noTag; this.labelId = labelId; } return TagInfo; }()); exports.TagInfo = TagInfo; var AbstractTags = (function () { function AbstractTags() { this.counter = 0; this.allCounter = 0; this.configuration = null; this.ids = {}; this.allIds = {}; this.labels = {}; this.allLabels = {}; this.redo = false; this.refUpdate = false; this.currentTag = new TagInfo(); this.history = []; this.stack = []; this.enTag = function (node, tag) { var nf = this.configuration.nodeFactory; var cell = nf.create('node', 'mtd', [node]); var row = nf.create('node', 'mlabeledtr', [tag, cell]); var table = nf.create('node', 'mtable', [row], { side: this.configuration.options['tagSide'], minlabelspacing: this.configuration.options['tagIndent'], displaystyle: true }); return table; }; } AbstractTags.prototype.start = function (env, taggable, defaultTags) { if (this.currentTag) { this.stack.push(this.currentTag); } this.currentTag = new TagInfo(env, taggable, defaultTags); }; Object.defineProperty(AbstractTags.prototype, "env", { get: function () { return this.currentTag.env; }, enumerable: false, configurable: true }); AbstractTags.prototype.end = function () { this.history.push(this.currentTag); this.currentTag = this.stack.pop(); }; AbstractTags.prototype.tag = function (tag, noFormat) { this.currentTag.tag = tag; this.currentTag.tagFormat = noFormat ? tag : this.formatTag(tag); this.currentTag.noTag = false; }; AbstractTags.prototype.notag = function () { this.tag('', true); this.currentTag.noTag = true; }; Object.defineProperty(AbstractTags.prototype, "noTag", { get: function () { return this.currentTag.noTag; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractTags.prototype, "label", { get: function () { return this.currentTag.labelId; }, set: function (label) { this.currentTag.labelId = label; }, enumerable: false, configurable: true }); AbstractTags.prototype.formatUrl = function (id, base) { return base + '#' + encodeURIComponent(id); }; AbstractTags.prototype.formatTag = function (tag) { return '(' + tag + ')'; }; AbstractTags.prototype.formatId = function (id) { return 'mjx-eqn-' + id.replace(/\s/g, '_'); }; AbstractTags.prototype.formatNumber = function (n) { return n.toString(); }; AbstractTags.prototype.autoTag = function () { if (this.currentTag.tag == null) { this.counter++; this.tag(this.formatNumber(this.counter), false); } }; AbstractTags.prototype.clearTag = function () { this.label = ''; this.tag(null, true); this.currentTag.tagId = ''; }; AbstractTags.prototype.getTag = function (force) { if (force === void 0) { force = false; } if (force) { this.autoTag(); return this.makeTag(); } var ct = this.currentTag; if (ct.taggable && !ct.noTag) { if (ct.defaultTags) { this.autoTag(); } if (ct.tag) { return this.makeTag(); } } return null; }; AbstractTags.prototype.resetTag = function () { this.history = []; this.redo = false; this.refUpdate = false; this.clearTag(); }; AbstractTags.prototype.reset = function (offset) { if (offset === void 0) { offset = 0; } this.resetTag(); this.counter = this.allCounter = offset; this.allLabels = {}; this.allIds = {}; }; AbstractTags.prototype.startEquation = function (math) { this.labels = {}; this.ids = {}; this.counter = this.allCounter; this.redo = false; var recompile = math.inputData.recompile; if (recompile) { this.refUpdate = true; this.counter = recompile.counter; } }; AbstractTags.prototype.finishEquation = function (math) { if (this.redo) { math.inputData.recompile = { state: math.state(), counter: this.allCounter }; } if (!this.refUpdate) { this.allCounter = this.counter; } Object.assign(this.allIds, this.ids); Object.assign(this.allLabels, this.labels); }; AbstractTags.prototype.finalize = function (node, env) { if (!env.display || this.currentTag.env || this.currentTag.tag == null) { return node; } var tag = this.makeTag(); var table = this.enTag(node, tag); return table; }; AbstractTags.prototype.makeId = function () { this.currentTag.tagId = this.formatId(this.configuration.options['useLabelIds'] ? (this.label || this.currentTag.tag) : this.currentTag.tag); }; AbstractTags.prototype.makeTag = function () { this.makeId(); if (this.label) { this.labels[this.label] = new Label(this.currentTag.tag, this.currentTag.tagId); } var mml = new TexParser_js_1.default('\\text{' + this.currentTag.tagFormat + '}', {}, this.configuration).mml(); return this.configuration.nodeFactory.create('node', 'mtd', [mml], { id: this.currentTag.tagId }); }; return AbstractTags; }()); exports.AbstractTags = AbstractTags; var NoTags = (function (_super) { __extends(NoTags, _super); function NoTags() { return _super !== null && _super.apply(this, arguments) || this; } NoTags.prototype.autoTag = function () { }; NoTags.prototype.getTag = function () { return !this.currentTag.tag ? null : _super.prototype.getTag.call(this); }; return NoTags; }(AbstractTags)); exports.NoTags = NoTags; var AllTags = (function (_super) { __extends(AllTags, _super); function AllTags() { return _super !== null && _super.apply(this, arguments) || this; } AllTags.prototype.finalize = function (node, env) { if (!env.display || this.history.find(function (x) { return x.taggable; })) { return node; } var tag = this.getTag(true); return this.enTag(node, tag); }; return AllTags; }(AbstractTags)); exports.AllTags = AllTags; var TagsFactory; (function (TagsFactory) { var tagsMapping = new Map([ ['none', NoTags], ['all', AllTags] ]); var defaultTags = 'none'; TagsFactory.OPTIONS = { tags: defaultTags, tagSide: 'right', tagIndent: '0.8em', multlineWidth: '85%', useLabelIds: true, ignoreDuplicateLabels: false }; TagsFactory.add = function (name, constr) { tagsMapping.set(name, constr); }; TagsFactory.addTags = function (tags) { var e_1, _a; try { for (var _b = __values(Object.keys(tags)), _c = _b.next(); !_c.done; _c = _b.next()) { var key = _c.value; TagsFactory.add(key, tags[key]); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; TagsFactory.create = function (name) { var constr = tagsMapping.get(name) || tagsMapping.get(defaultTags); if (!constr) { throw Error('Unknown tags class'); } return new constr(); }; TagsFactory.setDefault = function (name) { defaultTags = name; }; TagsFactory.getDefault = function () { return TagsFactory.create(defaultTags); }; })(TagsFactory = exports.TagsFactory || (exports.TagsFactory = {})); //# sourceMappingURL=Tags.js.map /***/ }), /* 22 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PrioritizedList = void 0; var PrioritizedList = (function () { function PrioritizedList() { this.items = []; this.items = []; } PrioritizedList.prototype[Symbol.iterator] = function () { var i = 0; var items = this.items; return { next: function () { return { value: items[i++], done: (i > items.length) }; } }; }; PrioritizedList.prototype.add = function (item, priority) { if (priority === void 0) { priority = PrioritizedList.DEFAULTPRIORITY; } var i = this.items.length; do { i--; } while (i >= 0 && priority < this.items[i].priority); this.items.splice(i + 1, 0, { item: item, priority: priority }); return item; }; PrioritizedList.prototype.remove = function (item) { var i = this.items.length; do { i--; } while (i >= 0 && this.items[i].item !== item); if (i >= 0) { this.items.splice(i, 1); } }; PrioritizedList.prototype.toArray = function () { return Array.from(this); }; PrioritizedList.DEFAULTPRIORITY = 5; return PrioritizedList; }()); exports.PrioritizedList = PrioritizedList; //# sourceMappingURL=PrioritizedList.js.map /***/ }), /* 23 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.BaseItem = exports.MmlStack = void 0; var TexError_js_1 = __webpack_require__(4); var MmlStack = (function () { function MmlStack(_nodes) { this._nodes = _nodes; } Object.defineProperty(MmlStack.prototype, "nodes", { get: function () { return this._nodes; }, enumerable: false, configurable: true }); MmlStack.prototype.Push = function () { var _a; var nodes = []; for (var _i = 0; _i < arguments.length; _i++) { nodes[_i] = arguments[_i]; } (_a = this._nodes).push.apply(_a, __spread(nodes)); }; MmlStack.prototype.Pop = function () { return this._nodes.pop(); }; Object.defineProperty(MmlStack.prototype, "First", { get: function () { return this._nodes[this.Size() - 1]; }, set: function (node) { this._nodes[this.Size() - 1] = node; }, enumerable: false, configurable: true }); Object.defineProperty(MmlStack.prototype, "Last", { get: function () { return this._nodes[0]; }, set: function (node) { this._nodes[0] = node; }, enumerable: false, configurable: true }); MmlStack.prototype.Peek = function (n) { if (n == null) { n = 1; } return this._nodes.slice(this.Size() - n); }; MmlStack.prototype.Size = function () { return this._nodes.length; }; MmlStack.prototype.Clear = function () { this._nodes = []; }; MmlStack.prototype.toMml = function (inferred, forceRow) { if (inferred === void 0) { inferred = true; } if (this._nodes.length === 1 && !forceRow) { return this.First; } return this.create('node', inferred ? 'inferredMrow' : 'mrow', this._nodes, {}); }; MmlStack.prototype.create = function (kind) { var _a; var rest = []; for (var _i = 1; _i < arguments.length; _i++) { rest[_i - 1] = arguments[_i]; } return (_a = this.factory.configuration.nodeFactory).create.apply(_a, __spread([kind], rest)); }; return MmlStack; }()); exports.MmlStack = MmlStack; var BaseItem = (function (_super) { __extends(BaseItem, _super); function BaseItem(factory) { var nodes = []; for (var _i = 1; _i < arguments.length; _i++) { nodes[_i - 1] = arguments[_i]; } var _this = _super.call(this, nodes) || this; _this.factory = factory; _this.global = {}; _this._properties = {}; if (_this.isOpen) { _this._env = {}; } return _this; } Object.defineProperty(BaseItem.prototype, "kind", { get: function () { return 'base'; }, enumerable: false, configurable: true }); Object.defineProperty(BaseItem.prototype, "env", { get: function () { return this._env; }, set: function (value) { this._env = value; }, enumerable: false, configurable: true }); Object.defineProperty(BaseItem.prototype, "copyEnv", { get: function () { return true; }, enumerable: false, configurable: true }); BaseItem.prototype.getProperty = function (key) { return this._properties[key]; }; BaseItem.prototype.setProperty = function (key, value) { this._properties[key] = value; return this; }; Object.defineProperty(BaseItem.prototype, "isOpen", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(BaseItem.prototype, "isClose", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(BaseItem.prototype, "isFinal", { get: function () { return false; }, enumerable: false, configurable: true }); BaseItem.prototype.isKind = function (kind) { return kind === this.kind; }; BaseItem.prototype.checkItem = function (item) { if (item.isKind('over') && this.isOpen) { item.setProperty('num', this.toMml(false)); this.Clear(); } if (item.isKind('cell') && this.isOpen) { if (item.getProperty('linebreak')) { return BaseItem.fail; } throw new TexError_js_1.default('Misplaced', 'Misplaced %1', item.getName()); } if (item.isClose && this.getErrors(item.kind)) { var _a = __read(this.getErrors(item.kind), 2), id = _a[0], message = _a[1]; throw new TexError_js_1.default(id, message, item.getName()); } if (!item.isFinal) { return BaseItem.success; } this.Push(item.First); return BaseItem.fail; }; BaseItem.prototype.clearEnv = function () { var e_1, _a; try { for (var _b = __values(Object.keys(this.env)), _c = _b.next(); !_c.done; _c = _b.next()) { var id = _c.value; delete this.env[id]; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; BaseItem.prototype.setProperties = function (def) { Object.assign(this._properties, def); return this; }; BaseItem.prototype.getName = function () { return this.getProperty('name'); }; BaseItem.prototype.toString = function () { return this.kind + '[' + this.nodes.join('; ') + ']'; }; BaseItem.prototype.getErrors = function (kind) { var CLASS = this.constructor; return (CLASS.errors || {})[kind] || BaseItem.errors[kind]; }; BaseItem.fail = [null, false]; BaseItem.success = [null, true]; BaseItem.errors = { end: ['MissingBeginExtraEnd', 'Missing \\begin{%1} or extra \\end{%1}'], close: ['ExtraCloseMissingOpen', 'Extra close brace or missing open brace'], right: ['MissingLeftExtraRight', 'Missing \\left or extra \\right'] }; return BaseItem; }(MmlStack)); exports.BaseItem = BaseItem; //# sourceMappingURL=StackItem.js.map /***/ }), /* 24 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); var NodeUtil_js_1 = __webpack_require__(7); var TexConstants_js_1 = __webpack_require__(13); var ParseUtil_js_1 = __webpack_require__(8); var ParseMethods; (function (ParseMethods) { function variable(parser, c) { var def = ParseUtil_js_1.default.getFontDef(parser); var node = parser.create('token', 'mi', def, c); parser.Push(node); } ParseMethods.variable = variable; function digit(parser, c) { var mml; var pattern = parser.configuration.options['digits']; var n = parser.string.slice(parser.i - 1).match(pattern); var def = ParseUtil_js_1.default.getFontDef(parser); if (n) { mml = parser.create('token', 'mn', def, n[0].replace(/[{}]/g, '')); parser.i += n[0].length - 1; } else { mml = parser.create('token', 'mo', def, c); } parser.Push(mml); } ParseMethods.digit = digit; function controlSequence(parser, _c) { var name = parser.GetCS(); parser.parse('macro', [parser, name]); } ParseMethods.controlSequence = controlSequence; function mathchar0mi(parser, mchar) { var def = mchar.attributes || { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }; var node = parser.create('token', 'mi', def, mchar.char); parser.Push(node); } ParseMethods.mathchar0mi = mathchar0mi; function mathchar0mo(parser, mchar) { var def = mchar.attributes || {}; def['stretchy'] = false; var node = parser.create('token', 'mo', def, mchar.char); NodeUtil_js_1.default.setProperty(node, 'fixStretchy', true); parser.configuration.addNode('fixStretchy', node); parser.Push(node); } ParseMethods.mathchar0mo = mathchar0mo; function mathchar7(parser, mchar) { var def = mchar.attributes || { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }; if (parser.stack.env['font']) { def['mathvariant'] = parser.stack.env['font']; } var node = parser.create('token', 'mi', def, mchar.char); parser.Push(node); } ParseMethods.mathchar7 = mathchar7; function delimiter(parser, delim) { var def = delim.attributes || {}; def = Object.assign({ fence: false, stretchy: false }, def); var node = parser.create('token', 'mo', def, delim.char); parser.Push(node); } ParseMethods.delimiter = delimiter; function environment(parser, env, func, args) { var end = args[0]; var mml = parser.itemFactory.create('begin').setProperties({ name: env, end: end }); mml = func.apply(void 0, __spread([parser, mml], args.slice(1))); parser.Push(mml); } ParseMethods.environment = environment; })(ParseMethods || (ParseMethods = {})); exports.default = ParseMethods; //# sourceMappingURL=ParseMethods.js.map /***/ }), /* 25 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Package = exports.PackageError = void 0; var loader_js_1 = __webpack_require__(11); var PackageError = (function (_super) { __extends(PackageError, _super); function PackageError(message, name) { var _this = _super.call(this, message) || this; _this.package = name; return _this; } return PackageError; }(Error)); exports.PackageError = PackageError; var Package = (function () { function Package(name, noLoad) { if (noLoad === void 0) { noLoad = false; } this.isLoaded = false; this.isLoading = false; this.hasFailed = false; this.dependents = []; this.dependencies = []; this.dependencyCount = 0; this.provided = []; this.name = name; this.noLoad = noLoad; Package.packages.set(name, this); this.promise = this.makePromise(this.makeDependencies()); } Object.defineProperty(Package.prototype, "canLoad", { get: function () { return this.dependencyCount === 0 && !this.noLoad && !this.isLoading && !this.hasFailed; }, enumerable: false, configurable: true }); Package.resolvePath = function (name, addExtension) { if (addExtension === void 0) { addExtension = true; } var file = loader_js_1.CONFIG.source[name] || name; if (!file.match(/^(?:[a-z]+:\/)?\/|[a-z]:\\|\[/i)) { file = '[mathjax]/' + file.replace(/^\.\//, ''); } if (addExtension && !file.match(/\.[^\/]+$/)) { file += '.js'; } var match; while ((match = file.match(/^\[([^\]]*)\]/))) { if (!loader_js_1.CONFIG.paths.hasOwnProperty(match[1])) break; file = loader_js_1.CONFIG.paths[match[1]] + file.substr(match[0].length); } return file; }; Package.loadAll = function () { var e_1, _a; try { for (var _b = __values(this.packages.values()), _c = _b.next(); !_c.done; _c = _b.next()) { var extension = _c.value; if (extension.canLoad) { extension.load(); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; Package.prototype.makeDependencies = function () { var e_2, _a; var promises = []; var map = Package.packages; var noLoad = this.noLoad; var name = this.name; var dependencies = []; if (loader_js_1.CONFIG.dependencies.hasOwnProperty(name)) { dependencies.push.apply(dependencies, __spread(loader_js_1.CONFIG.dependencies[name])); } else if (name !== 'core') { dependencies.push('core'); } try { for (var dependencies_1 = __values(dependencies), dependencies_1_1 = dependencies_1.next(); !dependencies_1_1.done; dependencies_1_1 = dependencies_1.next()) { var dependent = dependencies_1_1.value; var extension = map.get(dependent) || new Package(dependent, noLoad); if (this.dependencies.indexOf(extension) < 0) { extension.addDependent(this, noLoad); this.dependencies.push(extension); if (!extension.isLoaded) { this.dependencyCount++; promises.push(extension.promise); } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (dependencies_1_1 && !dependencies_1_1.done && (_a = dependencies_1.return)) _a.call(dependencies_1); } finally { if (e_2) throw e_2.error; } } return promises; }; Package.prototype.makePromise = function (promises) { var _this = this; var promise = new Promise((function (resolve, reject) { _this.resolve = resolve; _this.reject = reject; })); var config = (loader_js_1.CONFIG[this.name] || {}); if (config.ready) { promise = promise.then(function (_name) { return config.ready(_this.name); }); } if (promises.length) { promises.push(promise); promise = Promise.all(promises).then(function (names) { return names.join(', '); }); } if (config.failed) { promise.catch(function (message) { return config.failed(new PackageError(message, _this.name)); }); } return promise; }; Package.prototype.load = function () { if (!this.isLoaded && !this.isLoading && !this.noLoad) { this.isLoading = true; var url = Package.resolvePath(this.name); if (loader_js_1.CONFIG.require) { this.loadCustom(url); } else { this.loadScript(url); } } }; Package.prototype.loadCustom = function (url) { var _this = this; try { var result = loader_js_1.CONFIG.require(url); if (result instanceof Promise) { result.then(function () { return _this.checkLoad(); }) .catch(function (err) { return _this.failed('Can\'t load "' + url + '"\n' + err.message.trim()); }); } else { this.checkLoad(); } } catch (err) { this.failed(err.message); } }; Package.prototype.loadScript = function (url) { var _this = this; var script = document.createElement('script'); script.src = url; script.charset = 'UTF-8'; script.onload = function (_event) { return _this.checkLoad(); }; script.onerror = function (_event) { return _this.failed('Can\'t load "' + url + '"'); }; document.head.appendChild(script); }; Package.prototype.loaded = function () { var e_3, _a, e_4, _b; this.isLoaded = true; this.isLoading = false; try { for (var _c = __values(this.dependents), _d = _c.next(); !_d.done; _d = _c.next()) { var dependent = _d.value; dependent.requirementSatisfied(); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_3) throw e_3.error; } } try { for (var _e = __values(this.provided), _f = _e.next(); !_f.done; _f = _e.next()) { var provided = _f.value; provided.loaded(); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_4) throw e_4.error; } } this.resolve(this.name); }; Package.prototype.failed = function (message) { this.hasFailed = true; this.isLoading = false; this.reject(new PackageError(message, this.name)); }; Package.prototype.checkLoad = function () { var _this = this; var config = (loader_js_1.CONFIG[this.name] || {}); var checkReady = config.checkReady || (function () { return Promise.resolve(); }); checkReady().then(function () { return _this.loaded(); }) .catch(function (message) { return _this.failed(message); }); }; Package.prototype.requirementSatisfied = function () { if (this.dependencyCount) { this.dependencyCount--; if (this.canLoad) { this.load(); } } }; Package.prototype.provides = function (names) { var e_5, _a; if (names === void 0) { names = []; } try { for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) { var name_1 = names_1_1.value; var provided = Package.packages.get(name_1); if (!provided) { if (!loader_js_1.CONFIG.dependencies[name_1]) { loader_js_1.CONFIG.dependencies[name_1] = []; } loader_js_1.CONFIG.dependencies[name_1].push(name_1); provided = new Package(name_1, true); provided.isLoading = true; } this.provided.push(provided); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (names_1_1 && !names_1_1.done && (_a = names_1.return)) _a.call(names_1); } finally { if (e_5) throw e_5.error; } } }; Package.prototype.addDependent = function (extension, noLoad) { this.dependents.push(extension); if (!noLoad) { this.checkNoLoad(); } }; Package.prototype.checkNoLoad = function () { var e_6, _a; if (this.noLoad) { this.noLoad = false; try { for (var _b = __values(this.dependencies), _c = _b.next(); !_c.done; _c = _b.next()) { var dependency = _c.value; dependency.checkNoLoad(); } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_6) throw e_6.error; } } } }; Package.packages = new Map(); return Package; }()); exports.Package = Package; //# sourceMappingURL=package.js.map /***/ }), /* 26 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Attributes = exports.INHERIT = void 0; exports.INHERIT = '_inherit_'; var Attributes = (function () { function Attributes(defaults, global) { this.global = global; this.defaults = Object.create(global); this.inherited = Object.create(this.defaults); this.attributes = Object.create(this.inherited); Object.assign(this.defaults, defaults); } Attributes.prototype.set = function (name, value) { this.attributes[name] = value; }; Attributes.prototype.setList = function (list) { Object.assign(this.attributes, list); }; Attributes.prototype.get = function (name) { var value = this.attributes[name]; if (value === exports.INHERIT) { value = this.global[name]; } return value; }; Attributes.prototype.getExplicit = function (name) { if (!this.attributes.hasOwnProperty(name)) { return undefined; } return this.attributes[name]; }; Attributes.prototype.getList = function () { var e_1, _a; var names = []; for (var _i = 0; _i < arguments.length; _i++) { names[_i] = arguments[_i]; } var values = {}; try { for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) { var name_1 = names_1_1.value; values[name_1] = this.get(name_1); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (names_1_1 && !names_1_1.done && (_a = names_1.return)) _a.call(names_1); } finally { if (e_1) throw e_1.error; } } return values; }; Attributes.prototype.setInherited = function (name, value) { this.inherited[name] = value; }; Attributes.prototype.getInherited = function (name) { return this.inherited[name]; }; Attributes.prototype.getDefault = function (name) { return this.defaults[name]; }; Attributes.prototype.isSet = function (name) { return this.attributes.hasOwnProperty(name) || this.inherited.hasOwnProperty(name); }; Attributes.prototype.hasDefault = function (name) { return (name in this.defaults); }; Attributes.prototype.getExplicitNames = function () { return Object.keys(this.attributes); }; Attributes.prototype.getInheritedNames = function () { return Object.keys(this.inherited); }; Attributes.prototype.getDefaultNames = function () { return Object.keys(this.defaults); }; Attributes.prototype.getGlobalNames = function () { return Object.keys(this.global); }; Attributes.prototype.getAllAttributes = function () { return this.attributes; }; Attributes.prototype.getAllInherited = function () { return this.inherited; }; Attributes.prototype.getAllDefaults = function () { return this.defaults; }; Attributes.prototype.getAllGlobals = function () { return this.global; }; return Attributes; }()); exports.Attributes = Attributes; //# sourceMappingURL=Attributes.js.map /***/ }), /* 27 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mathjax = void 0; var HandlerList_js_1 = __webpack_require__(118); var Retries_js_1 = __webpack_require__(40); exports.mathjax = { version: '3.1.2', handlers: new HandlerList_js_1.HandlerList(), document: function (document, options) { return exports.mathjax.handlers.document(document, options); }, handleRetriesFor: Retries_js_1.handleRetriesFor, retryAfter: Retries_js_1.retryAfter, asyncLoad: null, }; //# sourceMappingURL=mathjax.js.map /***/ }), /* 28 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Macro = exports.Symbol = void 0; var Symbol = (function () { function Symbol(_symbol, _char, _attributes) { this._symbol = _symbol; this._char = _char; this._attributes = _attributes; } Object.defineProperty(Symbol.prototype, "symbol", { get: function () { return this._symbol; }, enumerable: false, configurable: true }); Object.defineProperty(Symbol.prototype, "char", { get: function () { return this._char; }, enumerable: false, configurable: true }); Object.defineProperty(Symbol.prototype, "attributes", { get: function () { return this._attributes; }, enumerable: false, configurable: true }); return Symbol; }()); exports.Symbol = Symbol; var Macro = (function () { function Macro(_symbol, _func, _args) { if (_args === void 0) { _args = []; } this._symbol = _symbol; this._func = _func; this._args = _args; } Object.defineProperty(Macro.prototype, "symbol", { get: function () { return this._symbol; }, enumerable: false, configurable: true }); Object.defineProperty(Macro.prototype, "func", { get: function () { return this._func; }, enumerable: false, configurable: true }); Object.defineProperty(Macro.prototype, "args", { get: function () { return this._args; }, enumerable: false, configurable: true }); return Macro; }()); exports.Macro = Macro; //# sourceMappingURL=Symbol.js.map /***/ }), /* 29 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.EquationItem = exports.EqnArrayItem = exports.ArrayItem = exports.DotsItem = exports.NotItem = exports.FnItem = exports.MmlItem = exports.CellItem = exports.PositionItem = exports.StyleItem = exports.EndItem = exports.BeginItem = exports.RightItem = exports.LeftItem = exports.OverItem = exports.SubsupItem = exports.PrimeItem = exports.CloseItem = exports.OpenItem = exports.StopItem = exports.StartItem = void 0; var MapHandler_js_1 = __webpack_require__(33); var Entities_js_1 = __webpack_require__(20); var MmlNode_js_1 = __webpack_require__(0); var TexError_js_1 = __webpack_require__(4); var ParseUtil_js_1 = __webpack_require__(8); var NodeUtil_js_1 = __webpack_require__(7); var StackItem_js_1 = __webpack_require__(23); var StartItem = (function (_super) { __extends(StartItem, _super); function StartItem(factory, global) { var _this = _super.call(this, factory) || this; _this.global = global; return _this; } Object.defineProperty(StartItem.prototype, "kind", { get: function () { return 'start'; }, enumerable: false, configurable: true }); Object.defineProperty(StartItem.prototype, "isOpen", { get: function () { return true; }, enumerable: false, configurable: true }); StartItem.prototype.checkItem = function (item) { if (item.isKind('stop')) { var node = this.toMml(); if (!this.global.isInner) { node = this.factory.configuration.tags.finalize(node, this.env); } return [[this.factory.create('mml', node)], true]; } return _super.prototype.checkItem.call(this, item); }; return StartItem; }(StackItem_js_1.BaseItem)); exports.StartItem = StartItem; var StopItem = (function (_super) { __extends(StopItem, _super); function StopItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(StopItem.prototype, "kind", { get: function () { return 'stop'; }, enumerable: false, configurable: true }); Object.defineProperty(StopItem.prototype, "isClose", { get: function () { return true; }, enumerable: false, configurable: true }); return StopItem; }(StackItem_js_1.BaseItem)); exports.StopItem = StopItem; var OpenItem = (function (_super) { __extends(OpenItem, _super); function OpenItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(OpenItem.prototype, "kind", { get: function () { return 'open'; }, enumerable: false, configurable: true }); Object.defineProperty(OpenItem.prototype, "isOpen", { get: function () { return true; }, enumerable: false, configurable: true }); OpenItem.prototype.checkItem = function (item) { if (item.isKind('close')) { var mml = this.toMml(); var node = this.create('node', 'TeXAtom', [mml]); return [[this.factory.create('mml', node)], true]; } return _super.prototype.checkItem.call(this, item); }; OpenItem.errors = Object.assign(Object.create(StackItem_js_1.BaseItem.errors), { 'stop': ['ExtraOpenMissingClose', 'Extra open brace or missing close brace'] }); return OpenItem; }(StackItem_js_1.BaseItem)); exports.OpenItem = OpenItem; var CloseItem = (function (_super) { __extends(CloseItem, _super); function CloseItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(CloseItem.prototype, "kind", { get: function () { return 'close'; }, enumerable: false, configurable: true }); Object.defineProperty(CloseItem.prototype, "isClose", { get: function () { return true; }, enumerable: false, configurable: true }); return CloseItem; }(StackItem_js_1.BaseItem)); exports.CloseItem = CloseItem; var PrimeItem = (function (_super) { __extends(PrimeItem, _super); function PrimeItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(PrimeItem.prototype, "kind", { get: function () { return 'prime'; }, enumerable: false, configurable: true }); PrimeItem.prototype.checkItem = function (item) { var _a = __read(this.Peek(2), 2), top0 = _a[0], top1 = _a[1]; if (!NodeUtil_js_1.default.isType(top0, 'msubsup') || NodeUtil_js_1.default.isType(top0, 'msup')) { var node = this.create('node', 'msup', [top0, top1]); return [[node, item], true]; } NodeUtil_js_1.default.setChild(top0, top0.sup, top1); return [[top0, item], true]; }; return PrimeItem; }(StackItem_js_1.BaseItem)); exports.PrimeItem = PrimeItem; var SubsupItem = (function (_super) { __extends(SubsupItem, _super); function SubsupItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(SubsupItem.prototype, "kind", { get: function () { return 'subsup'; }, enumerable: false, configurable: true }); SubsupItem.prototype.checkItem = function (item) { if (item.isKind('open') || item.isKind('left')) { return StackItem_js_1.BaseItem.success; } var top = this.First; var position = this.getProperty('position'); if (item.isKind('mml')) { if (this.getProperty('primes')) { if (position !== 2) { NodeUtil_js_1.default.setChild(top, 2, this.getProperty('primes')); } else { NodeUtil_js_1.default.setProperty(this.getProperty('primes'), 'variantForm', true); var node = this.create('node', 'mrow', [this.getProperty('primes'), item.First]); item.First = node; } } NodeUtil_js_1.default.setChild(top, position, item.First); if (this.getProperty('movesupsub') != null) { NodeUtil_js_1.default.setProperty(top, 'movesupsub', this.getProperty('movesupsub')); } var result = this.factory.create('mml', top); return [[result], true]; } if (_super.prototype.checkItem.call(this, item)[1]) { var error = this.getErrors(['', 'sub', 'sup'][position]); throw new (TexError_js_1.default.bind.apply(TexError_js_1.default, __spread([void 0, error[0], error[1]], error.splice(2))))(); } return null; }; SubsupItem.errors = Object.assign(Object.create(StackItem_js_1.BaseItem.errors), { 'stop': ['MissingScript', 'Missing superscript or subscript argument'], 'sup': ['MissingOpenForSup', 'Missing open brace for superscript'], 'sub': ['MissingOpenForSub', 'Missing open brace for subscript'] }); return SubsupItem; }(StackItem_js_1.BaseItem)); exports.SubsupItem = SubsupItem; var OverItem = (function (_super) { __extends(OverItem, _super); function OverItem(factory) { var _this = _super.call(this, factory) || this; _this.setProperty('name', '\\over'); return _this; } Object.defineProperty(OverItem.prototype, "kind", { get: function () { return 'over'; }, enumerable: false, configurable: true }); Object.defineProperty(OverItem.prototype, "isClose", { get: function () { return true; }, enumerable: false, configurable: true }); OverItem.prototype.checkItem = function (item) { if (item.isKind('over')) { throw new TexError_js_1.default('AmbiguousUseOf', 'Ambiguous use of %1', item.getName()); } if (item.isClose) { var mml = this.create('node', 'mfrac', [this.getProperty('num'), this.toMml(false)]); if (this.getProperty('thickness') != null) { NodeUtil_js_1.default.setAttribute(mml, 'linethickness', this.getProperty('thickness')); } if (this.getProperty('open') || this.getProperty('close')) { NodeUtil_js_1.default.setProperty(mml, 'withDelims', true); mml = ParseUtil_js_1.default.fixedFence(this.factory.configuration, this.getProperty('open'), mml, this.getProperty('close')); } return [[this.factory.create('mml', mml), item], true]; } return _super.prototype.checkItem.call(this, item); }; OverItem.prototype.toString = function () { return 'over[' + this.getProperty('num') + ' / ' + this.nodes.join('; ') + ']'; }; return OverItem; }(StackItem_js_1.BaseItem)); exports.OverItem = OverItem; var LeftItem = (function (_super) { __extends(LeftItem, _super); function LeftItem(factory) { var _this = _super.call(this, factory) || this; _this.setProperty('delim', '('); return _this; } Object.defineProperty(LeftItem.prototype, "kind", { get: function () { return 'left'; }, enumerable: false, configurable: true }); Object.defineProperty(LeftItem.prototype, "isOpen", { get: function () { return true; }, enumerable: false, configurable: true }); LeftItem.prototype.checkItem = function (item) { if (item.isKind('right')) { return [[this.factory.create('mml', ParseUtil_js_1.default.fenced(this.factory.configuration, this.getProperty('delim'), this.toMml(), item.getProperty('delim')))], true]; } return _super.prototype.checkItem.call(this, item); }; LeftItem.errors = Object.assign(Object.create(StackItem_js_1.BaseItem.errors), { 'stop': ['ExtraLeftMissingRight', 'Extra \\left or missing \\right'] }); return LeftItem; }(StackItem_js_1.BaseItem)); exports.LeftItem = LeftItem; var RightItem = (function (_super) { __extends(RightItem, _super); function RightItem(factory) { var _this = _super.call(this, factory) || this; _this.setProperty('delim', ')'); return _this; } Object.defineProperty(RightItem.prototype, "kind", { get: function () { return 'right'; }, enumerable: false, configurable: true }); Object.defineProperty(RightItem.prototype, "isClose", { get: function () { return true; }, enumerable: false, configurable: true }); return RightItem; }(StackItem_js_1.BaseItem)); exports.RightItem = RightItem; var BeginItem = (function (_super) { __extends(BeginItem, _super); function BeginItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(BeginItem.prototype, "kind", { get: function () { return 'begin'; }, enumerable: false, configurable: true }); Object.defineProperty(BeginItem.prototype, "isOpen", { get: function () { return true; }, enumerable: false, configurable: true }); BeginItem.prototype.checkItem = function (item) { if (item.isKind('end')) { if (item.getName() !== this.getName()) { throw new TexError_js_1.default('EnvBadEnd', '\\begin{%1} ended with \\end{%2}', this.getName(), item.getName()); } if (!this.getProperty('end')) { return [[this.factory.create('mml', this.toMml())], true]; } return StackItem_js_1.BaseItem.fail; } if (item.isKind('stop')) { throw new TexError_js_1.default('EnvMissingEnd', 'Missing \\end{%1}', this.getName()); } return _super.prototype.checkItem.call(this, item); }; return BeginItem; }(StackItem_js_1.BaseItem)); exports.BeginItem = BeginItem; var EndItem = (function (_super) { __extends(EndItem, _super); function EndItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(EndItem.prototype, "kind", { get: function () { return 'end'; }, enumerable: false, configurable: true }); Object.defineProperty(EndItem.prototype, "isClose", { get: function () { return true; }, enumerable: false, configurable: true }); return EndItem; }(StackItem_js_1.BaseItem)); exports.EndItem = EndItem; var StyleItem = (function (_super) { __extends(StyleItem, _super); function StyleItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(StyleItem.prototype, "kind", { get: function () { return 'style'; }, enumerable: false, configurable: true }); StyleItem.prototype.checkItem = function (item) { if (!item.isClose) { return _super.prototype.checkItem.call(this, item); } var mml = this.create('node', 'mstyle', this.nodes, this.getProperty('styles')); return [[this.factory.create('mml', mml), item], true]; }; return StyleItem; }(StackItem_js_1.BaseItem)); exports.StyleItem = StyleItem; var PositionItem = (function (_super) { __extends(PositionItem, _super); function PositionItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(PositionItem.prototype, "kind", { get: function () { return 'position'; }, enumerable: false, configurable: true }); PositionItem.prototype.checkItem = function (item) { if (item.isClose) { throw new TexError_js_1.default('MissingBoxFor', 'Missing box for %1', this.getName()); } if (item.isFinal) { var mml = item.toMml(); switch (this.getProperty('move')) { case 'vertical': mml = this.create('node', 'mpadded', [mml], { height: this.getProperty('dh'), depth: this.getProperty('dd'), voffset: this.getProperty('dh') }); return [[this.factory.create('mml', mml)], true]; case 'horizontal': return [[this.factory.create('mml', this.getProperty('left')), item, this.factory.create('mml', this.getProperty('right'))], true]; } } return _super.prototype.checkItem.call(this, item); }; return PositionItem; }(StackItem_js_1.BaseItem)); exports.PositionItem = PositionItem; var CellItem = (function (_super) { __extends(CellItem, _super); function CellItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(CellItem.prototype, "kind", { get: function () { return 'cell'; }, enumerable: false, configurable: true }); Object.defineProperty(CellItem.prototype, "isClose", { get: function () { return true; }, enumerable: false, configurable: true }); return CellItem; }(StackItem_js_1.BaseItem)); exports.CellItem = CellItem; var MmlItem = (function (_super) { __extends(MmlItem, _super); function MmlItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlItem.prototype, "isFinal", { get: function () { return true; }, enumerable: false, configurable: true }); Object.defineProperty(MmlItem.prototype, "kind", { get: function () { return 'mml'; }, enumerable: false, configurable: true }); return MmlItem; }(StackItem_js_1.BaseItem)); exports.MmlItem = MmlItem; var FnItem = (function (_super) { __extends(FnItem, _super); function FnItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(FnItem.prototype, "kind", { get: function () { return 'fn'; }, enumerable: false, configurable: true }); FnItem.prototype.checkItem = function (item) { var top = this.First; if (top) { if (item.isOpen) { return StackItem_js_1.BaseItem.success; } if (!item.isKind('fn')) { var mml = item.First; if (!item.isKind('mml') || !mml) { return [[top, item], true]; } if ((NodeUtil_js_1.default.isType(mml, 'mstyle') && mml.childNodes.length && NodeUtil_js_1.default.isType(mml.childNodes[0].childNodes[0], 'mspace')) || NodeUtil_js_1.default.isType(mml, 'mspace')) { return [[top, item], true]; } if (NodeUtil_js_1.default.isEmbellished(mml)) { mml = NodeUtil_js_1.default.getCoreMO(mml); } var form = NodeUtil_js_1.default.getForm(mml); if (form != null && [0, 0, 1, 1, 0, 1, 1, 0, 0, 0][form[2]]) { return [[top, item], true]; } } var node = this.create('token', 'mo', { texClass: MmlNode_js_1.TEXCLASS.NONE }, Entities_js_1.entities.ApplyFunction); return [[top, node, item], true]; } return _super.prototype.checkItem.apply(this, arguments); }; return FnItem; }(StackItem_js_1.BaseItem)); exports.FnItem = FnItem; var NotItem = (function (_super) { __extends(NotItem, _super); function NotItem() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.remap = MapHandler_js_1.MapHandler.getMap('not_remap'); return _this; } Object.defineProperty(NotItem.prototype, "kind", { get: function () { return 'not'; }, enumerable: false, configurable: true }); NotItem.prototype.checkItem = function (item) { var mml; var c; var textNode; if (item.isKind('open') || item.isKind('left')) { return StackItem_js_1.BaseItem.success; } if (item.isKind('mml') && (NodeUtil_js_1.default.isType(item.First, 'mo') || NodeUtil_js_1.default.isType(item.First, 'mi') || NodeUtil_js_1.default.isType(item.First, 'mtext'))) { mml = item.First; c = NodeUtil_js_1.default.getText(mml); if (c.length === 1 && !NodeUtil_js_1.default.getProperty(mml, 'movesupsub') && NodeUtil_js_1.default.getChildren(mml).length === 1) { if (this.remap.contains(c)) { textNode = this.create('text', this.remap.lookup(c).char); NodeUtil_js_1.default.setChild(mml, 0, textNode); } else { textNode = this.create('text', '\u0338'); NodeUtil_js_1.default.appendChildren(mml, [textNode]); } return [[item], true]; } } textNode = this.create('text', '\u29F8'); var mtextNode = this.create('node', 'mtext', [], {}, textNode); var paddedNode = this.create('node', 'mpadded', [mtextNode], { width: 0 }); mml = this.create('node', 'TeXAtom', [paddedNode], { texClass: MmlNode_js_1.TEXCLASS.REL }); return [[mml, item], true]; }; return NotItem; }(StackItem_js_1.BaseItem)); exports.NotItem = NotItem; var DotsItem = (function (_super) { __extends(DotsItem, _super); function DotsItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(DotsItem.prototype, "kind", { get: function () { return 'dots'; }, enumerable: false, configurable: true }); DotsItem.prototype.checkItem = function (item) { if (item.isKind('open') || item.isKind('left')) { return StackItem_js_1.BaseItem.success; } var dots = this.getProperty('ldots'); var top = item.First; if (item.isKind('mml') && NodeUtil_js_1.default.isEmbellished(top)) { var tclass = NodeUtil_js_1.default.getTexClass(NodeUtil_js_1.default.getCoreMO(top)); if (tclass === MmlNode_js_1.TEXCLASS.BIN || tclass === MmlNode_js_1.TEXCLASS.REL) { dots = this.getProperty('cdots'); } } return [[dots, item], true]; }; return DotsItem; }(StackItem_js_1.BaseItem)); exports.DotsItem = DotsItem; var ArrayItem = (function (_super) { __extends(ArrayItem, _super); function ArrayItem() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.table = []; _this.row = []; _this.frame = []; _this.hfill = []; _this.arraydef = {}; _this.dashed = false; return _this; } Object.defineProperty(ArrayItem.prototype, "kind", { get: function () { return 'array'; }, enumerable: false, configurable: true }); Object.defineProperty(ArrayItem.prototype, "isOpen", { get: function () { return true; }, enumerable: false, configurable: true }); Object.defineProperty(ArrayItem.prototype, "copyEnv", { get: function () { return false; }, enumerable: false, configurable: true }); ArrayItem.prototype.checkItem = function (item) { if (item.isClose && !item.isKind('over')) { if (item.getProperty('isEntry')) { this.EndEntry(); this.clearEnv(); return StackItem_js_1.BaseItem.fail; } if (item.getProperty('isCR')) { this.EndEntry(); this.EndRow(); this.clearEnv(); return StackItem_js_1.BaseItem.fail; } this.EndTable(); this.clearEnv(); var scriptlevel = this.arraydef['scriptlevel']; delete this.arraydef['scriptlevel']; var mml = this.create('node', 'mtable', this.table, this.arraydef); if (this.frame.length === 4) { NodeUtil_js_1.default.setAttribute(mml, 'frame', this.dashed ? 'dashed' : 'solid'); } else if (this.frame.length) { if (this.arraydef['rowlines']) { this.arraydef['rowlines'] = this.arraydef['rowlines'].replace(/none( none)+$/, 'none'); } mml = this.create('node', 'menclose', [mml], { notation: this.frame.join(' '), isFrame: true }); if ((this.arraydef['columnlines'] || 'none') !== 'none' || (this.arraydef['rowlines'] || 'none') !== 'none') { NodeUtil_js_1.default.setAttribute(mml, 'padding', 0); } } if (scriptlevel) { mml = this.create('node', 'mstyle', [mml], { scriptlevel: scriptlevel }); } if (this.getProperty('open') || this.getProperty('close')) { mml = ParseUtil_js_1.default.fenced(this.factory.configuration, this.getProperty('open'), mml, this.getProperty('close')); } var newItem = this.factory.create('mml', mml); if (this.getProperty('requireClose')) { if (item.isKind('close')) { return [[newItem], true]; } throw new TexError_js_1.default('MissingCloseBrace', 'Missing close brace'); } return [[newItem, item], true]; } return _super.prototype.checkItem.call(this, item); }; ArrayItem.prototype.EndEntry = function () { var mtd = this.create('node', 'mtd', this.nodes); if (this.hfill.length) { if (this.hfill[0] === 0) { NodeUtil_js_1.default.setAttribute(mtd, 'columnalign', 'right'); } if (this.hfill[this.hfill.length - 1] === this.Size()) { NodeUtil_js_1.default.setAttribute(mtd, 'columnalign', NodeUtil_js_1.default.getAttribute(mtd, 'columnalign') ? 'center' : 'left'); } } this.row.push(mtd); this.Clear(); this.hfill = []; }; ArrayItem.prototype.EndRow = function () { var node; if (this.getProperty('isNumbered') && this.row.length === 3) { this.row.unshift(this.row.pop()); node = this.create('node', 'mlabeledtr', this.row); } else { node = this.create('node', 'mtr', this.row); } this.table.push(node); this.row = []; }; ArrayItem.prototype.EndTable = function () { if (this.Size() || this.row.length) { this.EndEntry(); this.EndRow(); } this.checkLines(); }; ArrayItem.prototype.checkLines = function () { if (this.arraydef['rowlines']) { var lines = this.arraydef['rowlines'].split(/ /); if (lines.length === this.table.length) { this.frame.push('bottom'); lines.pop(); this.arraydef['rowlines'] = lines.join(' '); } else if (lines.length < this.table.length - 1) { this.arraydef['rowlines'] += ' none'; } } if (this.getProperty('rowspacing')) { var rows = this.arraydef['rowspacing'].split(/ /); while (rows.length < this.table.length) { rows.push(this.getProperty('rowspacing') + 'em'); } this.arraydef['rowspacing'] = rows.join(' '); } }; return ArrayItem; }(StackItem_js_1.BaseItem)); exports.ArrayItem = ArrayItem; var EqnArrayItem = (function (_super) { __extends(EqnArrayItem, _super); function EqnArrayItem(factory) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } var _this = _super.call(this, factory) || this; _this.factory.configuration.tags.start(args[0], args[2], args[1]); return _this; } Object.defineProperty(EqnArrayItem.prototype, "kind", { get: function () { return 'eqnarray'; }, enumerable: false, configurable: true }); EqnArrayItem.prototype.EndEntry = function () { if (this.row.length) { ParseUtil_js_1.default.fixInitialMO(this.factory.configuration, this.nodes); } var node = this.create('node', 'mtd', this.nodes); this.row.push(node); this.Clear(); }; EqnArrayItem.prototype.EndRow = function () { var mtr = 'mtr'; var tag = this.factory.configuration.tags.getTag(); if (tag) { this.row = [tag].concat(this.row); mtr = 'mlabeledtr'; } this.factory.configuration.tags.clearTag(); var node = this.create('node', mtr, this.row); this.table.push(node); this.row = []; }; EqnArrayItem.prototype.EndTable = function () { _super.prototype.EndTable.call(this); this.factory.configuration.tags.end(); }; return EqnArrayItem; }(ArrayItem)); exports.EqnArrayItem = EqnArrayItem; var EquationItem = (function (_super) { __extends(EquationItem, _super); function EquationItem(factory) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } var _this = _super.call(this, factory) || this; _this.factory.configuration.tags.start('equation', true, args[0]); return _this; } Object.defineProperty(EquationItem.prototype, "kind", { get: function () { return 'equation'; }, enumerable: false, configurable: true }); Object.defineProperty(EquationItem.prototype, "isOpen", { get: function () { return true; }, enumerable: false, configurable: true }); EquationItem.prototype.checkItem = function (item) { if (item.isKind('end')) { var mml = this.toMml(); var tag = this.factory.configuration.tags.getTag(); this.factory.configuration.tags.end(); return [[tag ? this.factory.configuration.tags.enTag(mml, tag) : mml, item], true]; } if (item.isKind('stop')) { throw new TexError_js_1.default('EnvMissingEnd', 'Missing \\end{%1}', this.getName()); } return _super.prototype.checkItem.call(this, item); }; return EquationItem; }(StackItem_js_1.BaseItem)); exports.EquationItem = EquationItem; //# sourceMappingURL=BaseItems.js.map /***/ }), /* 30 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.FontData = exports.NOSTRETCH = exports.H = exports.V = void 0; exports.V = 1; exports.H = 2; exports.NOSTRETCH = { dir: 0 }; var FontData = (function () { function FontData() { var e_1, _a; this.variant = {}; this.delimiters = {}; this.cssFontMap = {}; this.remapChars = {}; var CLASS = this.constructor; this.params = __assign({}, CLASS.defaultParams); this.sizeVariants = __spread(CLASS.defaultSizeVariants); this.cssFontMap = __assign({}, CLASS.defaultCssFonts); this.cssFamilyPrefix = CLASS.defaultCssFamilyPrefix; this.createVariants(CLASS.defaultVariants); this.defineDelimiters(CLASS.defaultDelimiters); try { for (var _b = __values(Object.keys(CLASS.defaultChars)), _c = _b.next(); !_c.done; _c = _b.next()) { var name_1 = _c.value; this.defineChars(name_1, CLASS.defaultChars[name_1]); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this.defineRemap('accent', CLASS.defaultAccentMap); this.defineRemap('mo', CLASS.defaultMoMap); this.defineRemap('mn', CLASS.defaultMnMap); } FontData.charOptions = function (font, n) { var char = font[n]; if (char.length === 3) { char[3] = {}; } return char[3]; }; FontData.prototype.createVariant = function (name, inherit, link) { if (inherit === void 0) { inherit = null; } if (link === void 0) { link = null; } var variant = { linked: [], chars: (inherit ? Object.create(this.variant[inherit].chars) : {}) }; if (link && this.variant[link]) { Object.assign(variant.chars, this.variant[link].chars); this.variant[link].linked.push(variant.chars); variant.chars = Object.create(variant.chars); } this.remapSmpChars(variant.chars, name); this.variant[name] = variant; }; FontData.prototype.remapSmpChars = function (chars, name) { var e_2, _a, e_3, _b; var CLASS = this.constructor; if (CLASS.VariantSmp[name]) { var SmpRemap = CLASS.SmpRemap; var SmpGreek = [null, null, CLASS.SmpRemapGreekU, CLASS.SmpRemapGreekL]; try { for (var _c = __values(CLASS.SmpRanges), _d = _c.next(); !_d.done; _d = _c.next()) { var _e = __read(_d.value, 3), i = _e[0], lo = _e[1], hi = _e[2]; var base = CLASS.VariantSmp[name][i]; if (!base) continue; for (var n = lo; n <= hi; n++) { if (n === 0x3A2) continue; var smp = base + n - lo; chars[n] = this.smpChar(SmpRemap[smp] || smp); } if (SmpGreek[i]) { try { for (var _f = (e_3 = void 0, __values(Object.keys(SmpGreek[i]).map(function (x) { return parseInt(x); }))), _g = _f.next(); !_g.done; _g = _f.next()) { var n = _g.value; chars[n] = this.smpChar(base + SmpGreek[i][n]); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_3) throw e_3.error; } } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_2) throw e_2.error; } } } if (name === 'bold') { chars[0x3DC] = this.smpChar(0x1D7CA); chars[0x3DD] = this.smpChar(0x1D7CB); } }; FontData.prototype.smpChar = function (n) { return [, , , { smp: n }]; }; FontData.prototype.createVariants = function (variants) { var e_4, _a; try { for (var variants_1 = __values(variants), variants_1_1 = variants_1.next(); !variants_1_1.done; variants_1_1 = variants_1.next()) { var variant = variants_1_1.value; this.createVariant(variant[0], variant[1], variant[2]); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (variants_1_1 && !variants_1_1.done && (_a = variants_1.return)) _a.call(variants_1); } finally { if (e_4) throw e_4.error; } } }; FontData.prototype.defineChars = function (name, chars) { var e_5, _a; var variant = this.variant[name]; Object.assign(variant.chars, chars); try { for (var _b = __values(variant.linked), _c = _b.next(); !_c.done; _c = _b.next()) { var link = _c.value; Object.assign(link, chars); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_5) throw e_5.error; } } }; FontData.prototype.defineDelimiters = function (delims) { Object.assign(this.delimiters, delims); }; FontData.prototype.defineRemap = function (name, remap) { if (!this.remapChars.hasOwnProperty(name)) { this.remapChars[name] = {}; } Object.assign(this.remapChars[name], remap); }; FontData.prototype.getDelimiter = function (n) { return this.delimiters[n]; }; FontData.prototype.getSizeVariant = function (n, i) { if (this.delimiters[n].variants) { i = this.delimiters[n].variants[i]; } return this.sizeVariants[i]; }; FontData.prototype.getChar = function (name, n) { return this.variant[name].chars[n]; }; FontData.prototype.getVariant = function (name) { return this.variant[name]; }; FontData.prototype.getCssFont = function (variant) { return this.cssFontMap[variant] || ['serif', false, false]; }; FontData.prototype.getFamily = function (family) { return (this.cssFamilyPrefix ? this.cssFamilyPrefix + ', ' + family : family); }; FontData.prototype.getRemappedChar = function (name, c) { var map = this.remapChars[name] || {}; return map[c]; }; FontData.OPTIONS = {}; FontData.defaultVariants = [ ['normal'], ['bold', 'normal'], ['italic', 'normal'], ['bold-italic', 'italic', 'bold'], ['double-struck', 'bold'], ['fraktur', 'normal'], ['bold-fraktur', 'bold', 'fraktur'], ['script', 'italic'], ['bold-script', 'bold-italic', 'script'], ['sans-serif', 'normal'], ['bold-sans-serif', 'bold', 'sans-serif'], ['sans-serif-italic', 'italic', 'sans-serif'], ['sans-serif-bold-italic', 'bold-italic', 'bold-sans-serif'], ['monospace', 'normal'] ]; FontData.defaultCssFonts = { normal: ['serif', false, false], bold: ['serif', false, true], italic: ['serif', true, false], 'bold-italic': ['serif', true, true], 'double-struck': ['serif', false, true], fraktur: ['serif', false, false], 'bold-fraktur': ['serif', false, true], script: ['cursive', false, false], 'bold-script': ['cursive', false, true], 'sans-serif': ['sans-serif', false, false], 'bold-sans-serif': ['sans-serif', false, true], 'sans-serif-italic': ['sans-serif', true, false], 'sans-serif-bold-italic': ['sans-serif', true, true], monospace: ['monospace', false, false] }; FontData.defaultCssFamilyPrefix = ''; FontData.VariantSmp = { bold: [0x1D400, 0x1D41A, 0x1D6A8, 0x1D6C2, 0x1D7CE], italic: [0x1D434, 0x1D44E, 0x1D6E2, 0x1D6FC], 'bold-italic': [0x1D468, 0x1D482, 0x1D71C, 0x1D736], script: [0x1D49C, 0x1D4B6], 'bold-script': [0x1D4D0, 0x1D4EA], fraktur: [0x1D504, 0x1D51E], 'double-struck': [0x1D538, 0x1D552, , , 0x1D7D8], 'bold-fraktur': [0x1D56C, 0x1D586], 'sans-serif': [0x1D5A0, 0x1D5BA, , , 0x1D7E2], 'bold-sans-serif': [0x1D5D4, 0x1D5EE, 0x1D756, 0x1D770, 0x1D7EC], 'sans-serif-italic': [0x1D608, 0x1D622], 'sans-serif-bold-italic': [0x1D63C, 0x1D656, 0x1D790, 0x1D7AA], 'monospace': [0x1D670, 0x1D68A, , , 0x1D7F6] }; FontData.SmpRanges = [ [0, 0x41, 0x5A], [1, 0x61, 0x7A], [2, 0x391, 0x3A9], [3, 0x3B1, 0x3C9], [4, 0x30, 0x39] ]; FontData.SmpRemap = { 0x1D455: 0x210E, 0x1D49D: 0x212C, 0x1D4A0: 0x2130, 0x1D4A1: 0x2131, 0x1D4A3: 0x210B, 0x1D4A4: 0x2110, 0x1D4A7: 0x2112, 0x1D4A8: 0x2133, 0x1D4AD: 0x211B, 0x1D4BA: 0x212F, 0x1D4BC: 0x210A, 0x1D4C4: 0x2134, 0x1D506: 0x212D, 0x1D50B: 0x210C, 0x1D50C: 0x2111, 0x1D515: 0x211C, 0x1D51D: 0x2128, 0x1D53A: 0x2102, 0x1D53F: 0x210D, 0x1D545: 0x2115, 0x1D547: 0x2119, 0x1D548: 0x211A, 0x1D549: 0x211D, 0x1D551: 0x2124, }; FontData.SmpRemapGreekU = { 0x2207: 0x19, 0x03F4: 0x11 }; FontData.SmpRemapGreekL = { 0x3D1: 0x1B, 0x3D5: 0x1D, 0x3D6: 0x1F, 0x3F0: 0x1C, 0x3F1: 0x1E, 0x3F5: 0x1A, 0x2202: 0x19 }; FontData.defaultAccentMap = { 0x0300: '\u02CB', 0x0301: '\u02CA', 0x0302: '\u02C6', 0x0303: '\u02DC', 0x0304: '\u02C9', 0x0306: '\u02D8', 0x0307: '\u02D9', 0x0308: '\u00A8', 0x030A: '\u02DA', 0x030C: '\u02C7', 0x2192: '\u20D7', 0x2032: '\'', 0x2033: '\'\'', 0x2034: '\'\'\'', 0x2035: '`', 0x2036: '``', 0x2037: '```', 0x2057: '\'\'\'\'', 0x20D0: '\u21BC', 0x20D1: '\u21C0', 0x20D6: '\u2190', 0x20E1: '\u2194', 0x20F0: '*', 0x20DB: '...', 0x20DC: '....', 0x20EC: '\u21C1', 0x20ED: '\u21BD', 0x20EE: '\u2190', 0x20EF: '\u2192' }; FontData.defaultMoMap = { 0x002D: '\u2212' }; FontData.defaultMnMap = { 0x002D: '\u2212' }; FontData.defaultParams = { x_height: .442, quad: 1, num1: .676, num2: .394, num3: .444, denom1: .686, denom2: .345, sup1: .413, sup2: .363, sup3: .289, sub1: .15, sub2: .247, sup_drop: .386, sub_drop: .05, delim1: 2.39, delim2: 1.0, axis_height: .25, rule_thickness: .06, big_op_spacing1: .111, big_op_spacing2: .167, big_op_spacing3: .2, big_op_spacing4: .6, big_op_spacing5: .1, surd_height: .075, scriptspace: .05, nulldelimiterspace: .12, delimiterfactor: 901, delimitershortfall: .3, min_rule_thickness: 1.25 }; FontData.defaultDelimiters = {}; FontData.defaultChars = {}; FontData.defaultSizeVariants = []; return FontData; }()); exports.FontData = FontData; //# sourceMappingURL=FontData.js.map /***/ }), /* 31 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.FunctionList = void 0; var PrioritizedList_js_1 = __webpack_require__(22); var FunctionList = (function (_super) { __extends(FunctionList, _super); function FunctionList() { return _super !== null && _super.apply(this, arguments) || this; } FunctionList.prototype.execute = function () { var e_1, _a; var data = []; for (var _i = 0; _i < arguments.length; _i++) { data[_i] = arguments[_i]; } try { for (var _b = __values(this), _c = _b.next(); !_c.done; _c = _b.next()) { var item = _c.value; var result = item.item.apply(item, __spread(data)); if (result === false) { return false; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return true; }; FunctionList.prototype.asyncExecute = function () { var data = []; for (var _i = 0; _i < arguments.length; _i++) { data[_i] = arguments[_i]; } var i = -1; var items = this.items; return new Promise(function (ok, fail) { (function execute() { var _a; while (++i < items.length) { var result = (_a = items[i]).item.apply(_a, __spread(data)); if (result instanceof Promise) { result.then(execute).catch(function (err) { return fail(err); }); return; } if (result === false) { ok(false); return; } } ok(true); })(); }); }; return FunctionList; }(PrioritizedList_js_1.PrioritizedList)); exports.FunctionList = FunctionList; //# sourceMappingURL=FunctionList.js.map /***/ }), /* 32 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMo = void 0; var MmlNode_js_1 = __webpack_require__(0); var OperatorDictionary_js_1 = __webpack_require__(110); var MmlMo = (function (_super) { __extends(MmlMo, _super); function MmlMo() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._texClass = null; _this.lspace = 5 / 18; _this.rspace = 5 / 18; return _this; } Object.defineProperty(MmlMo.prototype, "texClass", { get: function () { if (this._texClass === null) { var mo = this.getText(); var _a = __read(this.handleExplicitForm(this.getForms()), 3), form1 = _a[0], form2 = _a[1], form3 = _a[2]; var OPTABLE_1 = this.constructor.OPTABLE; var def = OPTABLE_1[form1][mo] || OPTABLE_1[form2][mo] || OPTABLE_1[form3][mo]; return def ? def[2] : MmlNode_js_1.TEXCLASS.REL; } return this._texClass; }, set: function (value) { this._texClass = value; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMo.prototype, "kind", { get: function () { return 'mo'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMo.prototype, "isEmbellished", { get: function () { return true; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMo.prototype, "hasNewLine", { get: function () { return this.attributes.get('linebreak') === 'newline'; }, enumerable: false, configurable: true }); MmlMo.prototype.coreParent = function () { var embellished = this; var parent = this; var math = this.factory.getNodeClass('math'); while (parent && parent.isEmbellished && parent.coreMO() === this && !(parent instanceof math)) { embellished = parent; parent = parent.Parent; } return embellished; }; MmlMo.prototype.coreText = function (parent) { if (!parent) { return ''; } if (parent.isEmbellished) { return parent.coreMO().getText(); } while ((((parent.isKind('mrow') || parent.isKind('TeXAtom') || parent.isKind('mstyle') || parent.isKind('mphantom')) && parent.childNodes.length === 1) || parent.isKind('munderover')) && parent.childNodes[0]) { parent = parent.childNodes[0]; } return (parent.isToken ? parent.getText() : ''); }; MmlMo.prototype.hasSpacingAttributes = function () { return this.attributes.isSet('lspace') || this.attributes.isSet('rspace'); }; Object.defineProperty(MmlMo.prototype, "isAccent", { get: function () { var accent = false; var node = this.coreParent().parent; if (node) { var key = (node.isKind('mover') ? (node.childNodes[node.over].coreMO() ? 'accent' : '') : node.isKind('munder') ? (node.childNodes[node.under].coreMO() ? 'accentunder' : '') : node.isKind('munderover') ? (this === node.childNodes[node.over].coreMO() ? 'accent' : this === node.childNodes[node.under].coreMO() ? 'accentunder' : '') : ''); if (key) { var value = node.attributes.getExplicit(key); accent = (value !== undefined ? accent : this.attributes.get('accent')); } } return accent; }, enumerable: false, configurable: true }); MmlMo.prototype.setTeXclass = function (prev) { var _a = this.attributes.getList('form', 'fence'), form = _a.form, fence = _a.fence; if (this.getProperty('texClass') === undefined && (this.attributes.isSet('lspace') || this.attributes.isSet('rspace'))) { return null; } if (fence && this.texClass === MmlNode_js_1.TEXCLASS.REL) { if (form === 'prefix') { this.texClass = MmlNode_js_1.TEXCLASS.OPEN; } if (form === 'postfix') { this.texClass = MmlNode_js_1.TEXCLASS.CLOSE; } } if (this.getText() === '\u2061') { if (prev) { prev.texClass = MmlNode_js_1.TEXCLASS.OP; prev.setProperty('fnOP', true); } this.texClass = this.prevClass = MmlNode_js_1.TEXCLASS.NONE; return prev; } return this.adjustTeXclass(prev); }; MmlMo.prototype.adjustTeXclass = function (prev) { var texClass = this.texClass; var prevClass = this.prevClass; if (texClass === MmlNode_js_1.TEXCLASS.NONE) { return prev; } if (prev) { if (prev.getProperty('autoOP') && (texClass === MmlNode_js_1.TEXCLASS.BIN || texClass === MmlNode_js_1.TEXCLASS.REL)) { prevClass = prev.texClass = MmlNode_js_1.TEXCLASS.ORD; } prevClass = this.prevClass = (prev.texClass || MmlNode_js_1.TEXCLASS.ORD); this.prevLevel = this.attributes.getInherited('scriptlevel'); } else { prevClass = this.prevClass = MmlNode_js_1.TEXCLASS.NONE; } if (texClass === MmlNode_js_1.TEXCLASS.BIN && (prevClass === MmlNode_js_1.TEXCLASS.NONE || prevClass === MmlNode_js_1.TEXCLASS.BIN || prevClass === MmlNode_js_1.TEXCLASS.OP || prevClass === MmlNode_js_1.TEXCLASS.REL || prevClass === MmlNode_js_1.TEXCLASS.OPEN || prevClass === MmlNode_js_1.TEXCLASS.PUNCT)) { this.texClass = MmlNode_js_1.TEXCLASS.ORD; } else if (prevClass === MmlNode_js_1.TEXCLASS.BIN && (texClass === MmlNode_js_1.TEXCLASS.REL || texClass === MmlNode_js_1.TEXCLASS.CLOSE || texClass === MmlNode_js_1.TEXCLASS.PUNCT)) { prev.texClass = this.prevClass = MmlNode_js_1.TEXCLASS.ORD; } else if (texClass === MmlNode_js_1.TEXCLASS.BIN) { var child = this; var parent_1 = this.parent; while (parent_1 && parent_1.parent && parent_1.isEmbellished && (parent_1.childNodes.length === 1 || (!parent_1.isKind('mrow') && parent_1.core() === child))) { child = parent_1; parent_1 = parent_1.parent; } if (parent_1.childNodes[parent_1.childNodes.length - 1] === child) { this.texClass = MmlNode_js_1.TEXCLASS.ORD; } } return this; }; MmlMo.prototype.setInheritedAttributes = function (attributes, display, level, prime) { var e_1, _a; if (attributes === void 0) { attributes = {}; } if (display === void 0) { display = false; } if (level === void 0) { level = 0; } if (prime === void 0) { prime = false; } _super.prototype.setInheritedAttributes.call(this, attributes, display, level, prime); var mo = this.getText(); var _b = __read(this.handleExplicitForm(this.getForms()), 3), form1 = _b[0], form2 = _b[1], form3 = _b[2]; this.attributes.setInherited('form', form1); var OPTABLE = this.constructor.OPTABLE; var def = OPTABLE[form1][mo] || OPTABLE[form2][mo] || OPTABLE[form3][mo]; if (def) { if (this.getProperty('texClass') === undefined) { this.texClass = def[2]; } try { for (var _c = __values(Object.keys(def[3] || {})), _d = _c.next(); !_d.done; _d = _c.next()) { var name_1 = _d.value; this.attributes.setInherited(name_1, def[3][name_1]); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_1) throw e_1.error; } } this.lspace = (def[0] + 1) / 18; this.rspace = (def[1] + 1) / 18; } else { var range = this.getRange(mo); if (range) { if (this.getProperty('texClass') === undefined) { this.texClass = range[2]; } var spacing = this.constructor.MMLSPACING[range[2]]; this.lspace = (spacing[0] + 1) / 18; this.rspace = (spacing[1] + 1) / 18; } } }; MmlMo.prototype.getForms = function () { var core = this; var parent = this.parent; var Parent = this.Parent; while (Parent && Parent.isEmbellished) { core = parent; parent = Parent.parent; Parent = Parent.Parent; } if (parent && parent.isKind('mrow') && parent.nonSpaceLength() !== 1) { if (parent.firstNonSpace() === core) { return ['prefix', 'infix', 'postfix']; } if (parent.lastNonSpace() === core) { return ['postfix', 'infix', 'prefix']; } } return ['infix', 'prefix', 'postfix']; }; MmlMo.prototype.handleExplicitForm = function (forms) { if (this.attributes.isSet('form')) { var form_1 = this.attributes.get('form'); forms = [form_1].concat(forms.filter(function (name) { return (name !== form_1); })); } return forms; }; MmlMo.prototype.getRange = function (mo) { var e_2, _a; if (!mo.match(/^[\uD800-\uDBFF]?.$/)) { return null; } var n = mo.codePointAt(0); var ranges = this.constructor.RANGES; try { for (var ranges_1 = __values(ranges), ranges_1_1 = ranges_1.next(); !ranges_1_1.done; ranges_1_1 = ranges_1.next()) { var range = ranges_1_1.value; if (range[0] <= n && n <= range[1]) { return range; } if (n < range[0]) { return null; } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (ranges_1_1 && !ranges_1_1.done && (_a = ranges_1.return)) _a.call(ranges_1); } finally { if (e_2) throw e_2.error; } } return null; }; MmlMo.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlTokenNode.defaults), { form: 'infix', fence: false, separator: false, lspace: 'thickmathspace', rspace: 'thickmathspace', stretchy: false, symmetric: false, maxsize: 'infinity', minsize: '0em', largeop: false, movablelimits: false, accent: false, linebreak: 'auto', lineleading: '1ex', linebreakstyle: 'before', indentalign: 'auto', indentshift: '0', indenttarget: '', indentalignfirst: 'indentalign', indentshiftfirst: 'indentshift', indentalignlast: 'indentalign', indentshiftlast: 'indentshift' }); MmlMo.RANGES = OperatorDictionary_js_1.RANGES; MmlMo.MMLSPACING = OperatorDictionary_js_1.MMLSPACING; MmlMo.OPTABLE = OperatorDictionary_js_1.OPTABLE; return MmlMo; }(MmlNode_js_1.AbstractMmlTokenNode)); exports.MmlMo = MmlMo; //# sourceMappingURL=mo.js.map /***/ }), /* 33 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SubHandlers = exports.SubHandler = exports.MapHandler = void 0; var PrioritizedList_js_1 = __webpack_require__(22); var FunctionList_js_1 = __webpack_require__(31); var MapHandler; (function (MapHandler) { var maps = new Map(); MapHandler.register = function (map) { maps.set(map.name, map); }; MapHandler.getMap = function (name) { return maps.get(name); }; })(MapHandler = exports.MapHandler || (exports.MapHandler = {})); var SubHandler = (function () { function SubHandler() { this._configuration = new PrioritizedList_js_1.PrioritizedList(); this._fallback = new FunctionList_js_1.FunctionList(); } SubHandler.prototype.add = function (maps, fallback, priority) { var e_1, _a; if (priority === void 0) { priority = PrioritizedList_js_1.PrioritizedList.DEFAULTPRIORITY; } try { for (var _b = __values(maps.slice().reverse()), _c = _b.next(); !_c.done; _c = _b.next()) { var name_1 = _c.value; var map = MapHandler.getMap(name_1); if (!map) { this.warn('Configuration ' + name_1 + ' not found! Omitted.'); return; } this._configuration.add(map, priority); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } if (fallback) { this._fallback.add(fallback, priority); } }; SubHandler.prototype.parse = function (input) { var e_2, _a; try { for (var _b = __values(this._configuration), _c = _b.next(); !_c.done; _c = _b.next()) { var map = _c.value.item; var result = map.parse(input); if (result) { return result; } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } var _d = __read(input, 2), env = _d[0], symbol = _d[1]; this._fallback.toArray()[0].item(env, symbol); }; SubHandler.prototype.lookup = function (symbol) { var map = this.applicable(symbol); return map ? map.lookup(symbol) : null; }; SubHandler.prototype.contains = function (symbol) { return this.applicable(symbol) ? true : false; }; SubHandler.prototype.toString = function () { var e_3, _a; var names = []; try { for (var _b = __values(this._configuration), _c = _b.next(); !_c.done; _c = _b.next()) { var map = _c.value.item; names.push(map.name); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } return names.join(', '); }; SubHandler.prototype.applicable = function (symbol) { var e_4, _a; try { for (var _b = __values(this._configuration), _c = _b.next(); !_c.done; _c = _b.next()) { var map = _c.value.item; if (map.contains(symbol)) { return map; } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } return null; }; SubHandler.prototype.retrieve = function (name) { var e_5, _a; try { for (var _b = __values(this._configuration), _c = _b.next(); !_c.done; _c = _b.next()) { var map = _c.value.item; if (map.name === name) { return map; } } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_5) throw e_5.error; } } return null; }; SubHandler.prototype.warn = function (message) { console.log('TexParser Warning: ' + message); }; return SubHandler; }()); exports.SubHandler = SubHandler; var SubHandlers = (function () { function SubHandlers() { this.map = new Map(); } SubHandlers.prototype.add = function (handlers, fallbacks, priority) { var e_6, _a; if (priority === void 0) { priority = PrioritizedList_js_1.PrioritizedList.DEFAULTPRIORITY; } try { for (var _b = __values(Object.keys(handlers)), _c = _b.next(); !_c.done; _c = _b.next()) { var key = _c.value; var name_2 = key; var subHandler = this.get(name_2); if (!subHandler) { subHandler = new SubHandler(); this.set(name_2, subHandler); } subHandler.add(handlers[name_2], fallbacks[name_2], priority); } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_6) throw e_6.error; } } }; SubHandlers.prototype.set = function (name, subHandler) { this.map.set(name, subHandler); }; SubHandlers.prototype.get = function (name) { return this.map.get(name); }; SubHandlers.prototype.retrieve = function (name) { var e_7, _a; try { for (var _b = __values(this.map.values()), _c = _b.next(); !_c.done; _c = _b.next()) { var handler = _c.value; var map = handler.retrieve(name); if (map) { return map; } } } catch (e_7_1) { e_7 = { error: e_7_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_7) throw e_7.error; } } return null; }; SubHandlers.prototype.keys = function () { return this.map.keys(); }; return SubHandlers; }()); exports.SubHandlers = SubHandlers; //# sourceMappingURL=MapHandler.js.map /***/ }), /* 34 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NEW_OPS = exports.AmsMethods = void 0; var ParseUtil_js_1 = __webpack_require__(8); var NodeUtil_js_1 = __webpack_require__(7); var TexConstants_js_1 = __webpack_require__(13); var TexParser_js_1 = __webpack_require__(12); var TexError_js_1 = __webpack_require__(4); var Symbol_js_1 = __webpack_require__(28); var BaseMethods_js_1 = __webpack_require__(17); var MmlNode_js_1 = __webpack_require__(0); exports.AmsMethods = {}; exports.AmsMethods.AmsEqnArray = function (parser, begin, numbered, taggable, align, spacing, style) { var args = parser.GetBrackets('\\begin{' + begin.getName() + '}'); var array = BaseMethods_js_1.default.EqnArray(parser, begin, numbered, taggable, align, spacing, style); return ParseUtil_js_1.default.setArrayAlign(array, args); }; exports.AmsMethods.AlignAt = function (parser, begin, numbered, taggable) { var name = begin.getName(); var n, valign, align = '', spacing = []; if (!taggable) { valign = parser.GetBrackets('\\begin{' + name + '}'); } n = parser.GetArgument('\\begin{' + name + '}'); if (n.match(/[^0-9]/)) { throw new TexError_js_1.default('PositiveIntegerArg', 'Argument to %1 must me a positive integer', '\\begin{' + name + '}'); } var count = parseInt(n, 10); while (count > 0) { align += 'rl'; spacing.push('0em 0em'); count--; } var spaceStr = spacing.join(' '); if (taggable) { return exports.AmsMethods.EqnArray(parser, begin, numbered, taggable, align, spaceStr); } var array = exports.AmsMethods.EqnArray(parser, begin, numbered, taggable, align, spaceStr); return ParseUtil_js_1.default.setArrayAlign(array, valign); }; exports.AmsMethods.Multline = function (parser, begin, numbered) { parser.Push(begin); ParseUtil_js_1.default.checkEqnEnv(parser); var item = parser.itemFactory.create('multline', numbered, parser.stack); item.arraydef = { displaystyle: true, rowspacing: '.5em', columnwidth: '100%', width: parser.options['multlineWidth'], side: parser.options['tagSide'], minlabelspacing: parser.options['tagIndent'] }; return item; }; exports.NEW_OPS = 'ams-declare-ops'; exports.AmsMethods.HandleDeclareOp = function (parser, name) { var limits = (parser.GetStar() ? '' : '\\nolimits\\SkipLimits'); var cs = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); if (cs.charAt(0) === '\\') { cs = cs.substr(1); } var op = parser.GetArgument(name); if (!op.match(/\\text/)) { op = op.replace(/\*/g, '\\text{*}').replace(/-/g, '\\text{-}'); } parser.configuration.handlers.retrieve(exports.NEW_OPS). add(cs, new Symbol_js_1.Macro(cs, exports.AmsMethods.Macro, ['\\mathop{\\rm ' + op + '}' + limits])); }; exports.AmsMethods.HandleOperatorName = function (parser, name) { var limits = (parser.GetStar() ? '' : '\\nolimits\\SkipLimits'); var op = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); if (!op.match(/\\text/)) { op = op.replace(/\*/g, '\\text{*}').replace(/-/g, '\\text{-}'); } parser.string = '\\mathop{\\rm ' + op + '}' + limits + ' ' + parser.string.slice(parser.i); parser.i = 0; }; exports.AmsMethods.SkipLimits = function (parser, _name) { var c = parser.GetNext(), i = parser.i; if (c === '\\' && ++parser.i && parser.GetCS() !== 'limits') { parser.i = i; } }; exports.AmsMethods.MultiIntegral = function (parser, name, integral) { var next = parser.GetNext(); if (next === '\\') { var i = parser.i; next = parser.GetArgument(name); parser.i = i; if (next === '\\limits') { if (name === '\\idotsint') { integral = '\\!\\!\\mathop{\\,\\,' + integral + '}'; } else { integral = '\\!\\!\\!\\mathop{\\,\\,\\,' + integral + '}'; } } } parser.string = integral + ' ' + parser.string.slice(parser.i); parser.i = 0; }; exports.AmsMethods.xArrow = function (parser, name, chr, l, r) { var def = { width: '+' + ParseUtil_js_1.default.Em((l + r) / 18), lspace: ParseUtil_js_1.default.Em(l / 18) }; var bot = parser.GetBrackets(name); var first = parser.ParseArg(name); var arrow = parser.create('token', 'mo', { stretchy: true, texClass: MmlNode_js_1.TEXCLASS.REL }, String.fromCodePoint(chr)); var mml = parser.create('node', 'munderover', [arrow]); var mpadded = parser.create('node', 'mpadded', [first], def); NodeUtil_js_1.default.setAttribute(mpadded, 'voffset', '.15em'); NodeUtil_js_1.default.setChild(mml, mml.over, mpadded); if (bot) { var bottom = new TexParser_js_1.default(bot, parser.stack.env, parser.configuration).mml(); mpadded = parser.create('node', 'mpadded', [bottom], def); NodeUtil_js_1.default.setAttribute(mpadded, 'voffset', '-.24em'); NodeUtil_js_1.default.setChild(mml, mml.under, mpadded); } NodeUtil_js_1.default.setProperty(mml, 'subsupOK', true); parser.Push(mml); }; exports.AmsMethods.HandleShove = function (parser, _name, shove) { var top = parser.stack.Top(); if (top.kind !== 'multline') { throw new TexError_js_1.default('CommandOnlyAllowedInEnv', '%1 only allowed in %2 environment', parser.currentCS, 'multline'); } if (top.Size()) { throw new TexError_js_1.default('CommandAtTheBeginingOfLine', '%1 must come at the beginning of the line', parser.currentCS); } top.setProperty('shove', shove); }; exports.AmsMethods.CFrac = function (parser, name) { var lr = ParseUtil_js_1.default.trimSpaces(parser.GetBrackets(name, '')); var num = parser.GetArgument(name); var den = parser.GetArgument(name); var lrMap = { l: TexConstants_js_1.TexConstant.Align.LEFT, r: TexConstants_js_1.TexConstant.Align.RIGHT, '': '' }; var numNode = new TexParser_js_1.default('\\strut\\textstyle{' + num + '}', parser.stack.env, parser.configuration).mml(); var denNode = new TexParser_js_1.default('\\strut\\textstyle{' + den + '}', parser.stack.env, parser.configuration).mml(); var frac = parser.create('node', 'mfrac', [numNode, denNode]); lr = lrMap[lr]; if (lr == null) { throw new TexError_js_1.default('IllegalAlign', 'Illegal alignment specified in %1', parser.currentCS); } if (lr) { NodeUtil_js_1.default.setProperties(frac, { numalign: lr, denomalign: lr }); } parser.Push(frac); }; exports.AmsMethods.Genfrac = function (parser, name, left, right, thick, style) { if (left == null) { left = parser.GetDelimiterArg(name); } if (right == null) { right = parser.GetDelimiterArg(name); } if (thick == null) { thick = parser.GetArgument(name); } if (style == null) { style = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); } var num = parser.ParseArg(name); var den = parser.ParseArg(name); var frac = parser.create('node', 'mfrac', [num, den]); if (thick !== '') { NodeUtil_js_1.default.setAttribute(frac, 'linethickness', thick); } if (left || right) { NodeUtil_js_1.default.setProperty(frac, 'withDelims', true); frac = ParseUtil_js_1.default.fixedFence(parser.configuration, left, frac, right); } if (style !== '') { var styleDigit = parseInt(style, 10); var styleAlpha = ['D', 'T', 'S', 'SS'][styleDigit]; if (styleAlpha == null) { throw new TexError_js_1.default('BadMathStyleFor', 'Bad math style for %1', parser.currentCS); } frac = parser.create('node', 'mstyle', [frac]); if (styleAlpha === 'D') { NodeUtil_js_1.default.setProperties(frac, { displaystyle: true, scriptlevel: 0 }); } else { NodeUtil_js_1.default.setProperties(frac, { displaystyle: false, scriptlevel: styleDigit - 1 }); } } parser.Push(frac); }; exports.AmsMethods.HandleTag = function (parser, name) { if (!parser.tags.currentTag.taggable && parser.tags.env) { throw new TexError_js_1.default('CommandNotAllowedInEnv', '%1 not allowed in %2 environment', parser.currentCS, parser.tags.env); } if (parser.tags.currentTag.tag) { throw new TexError_js_1.default('MultipleCommand', 'Multiple %1', parser.currentCS); } var star = parser.GetStar(); var tagId = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); parser.tags.tag(tagId, star); }; exports.AmsMethods.HandleNoTag = BaseMethods_js_1.default.HandleNoTag; exports.AmsMethods.HandleRef = BaseMethods_js_1.default.HandleRef; exports.AmsMethods.Macro = BaseMethods_js_1.default.Macro; exports.AmsMethods.Accent = BaseMethods_js_1.default.Accent; exports.AmsMethods.Tilde = BaseMethods_js_1.default.Tilde; exports.AmsMethods.Array = BaseMethods_js_1.default.Array; exports.AmsMethods.Spacer = BaseMethods_js_1.default.Spacer; exports.AmsMethods.NamedOp = BaseMethods_js_1.default.NamedOp; exports.AmsMethods.EqnArray = BaseMethods_js_1.default.EqnArray; //# sourceMappingURL=AmsMethods.js.map /***/ }), /* 35 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TeXFont = void 0; var FontData_js_1 = __webpack_require__(9); var tex_js_1 = __webpack_require__(285); var bold_italic_js_1 = __webpack_require__(218); var bold_js_1 = __webpack_require__(220); var double_struck_js_1 = __webpack_require__(286); var fraktur_bold_js_1 = __webpack_require__(223); var fraktur_js_1 = __webpack_require__(225); var italic_js_1 = __webpack_require__(227); var largeop_js_1 = __webpack_require__(229); var monospace_js_1 = __webpack_require__(231); var normal_js_1 = __webpack_require__(233); var sans_serif_bold_italic_js_1 = __webpack_require__(235); var sans_serif_bold_js_1 = __webpack_require__(237); var sans_serif_italic_js_1 = __webpack_require__(239); var sans_serif_js_1 = __webpack_require__(241); var script_bold_js_1 = __webpack_require__(287); var script_js_1 = __webpack_require__(288); var smallop_js_1 = __webpack_require__(245); var tex_calligraphic_bold_js_1 = __webpack_require__(247); var tex_calligraphic_js_1 = __webpack_require__(289); var tex_mathit_js_1 = __webpack_require__(290); var tex_oldstyle_bold_js_1 = __webpack_require__(291); var tex_oldstyle_js_1 = __webpack_require__(292); var tex_size3_js_1 = __webpack_require__(253); var tex_size4_js_1 = __webpack_require__(255); var tex_variant_js_1 = __webpack_require__(257); var delimiters_js_1 = __webpack_require__(259); var TeXFont = (function (_super) { __extends(TeXFont, _super); function TeXFont() { return _super !== null && _super.apply(this, arguments) || this; } TeXFont.defaultCssFamilyPrefix = 'MJXZERO'; TeXFont.defaultVariantClasses = { 'normal': 'mjx-n', 'bold': 'mjx-b', 'italic': 'mjx-i', 'bold-italic': 'mjx-b mjx-i', 'double-struck': 'mjx-ds mjx-b', 'fraktur': 'mjx-fr', 'bold-fraktur': 'mjx-fr mjx-b', 'script': 'mjx-sc mjx-i', 'bold-script': 'mjx-sc mjx-b mjx-i', 'sans-serif': 'mjx-ss', 'bold-sans-serif': 'mjx-ss mjx-b', 'sans-serif-italic': 'mjx-ss mjx-i', 'sans-serif-bold-italic': 'mjx-ss mjx-b mjx-i', 'monospace': 'mjx-ty', '-smallop': 'mjx-sop', '-largeop': 'mjx-lop', '-size3': 'mjx-s3', '-size4': 'mjx-s4', '-tex-calligraphic': 'mjx-cal mjx-i', '-tex-bold-calligraphic': 'mjx-cal mjx-b', '-tex-mathit': 'mjx-mit mjx-i', '-tex-oldstyle': 'mjx-os', '-tex-bold-oldstyle': 'mjx-os mjx-b', '-tex-variant': 'mjx-var' }; TeXFont.defaultVariantLetters = { 'normal': '', 'bold': 'B', 'italic': 'MI', 'bold-italic': 'BI', 'double-struck': 'A', 'fraktur': 'FR', 'bold-fraktur': 'FRB', 'script': 'SC', 'bold-script': 'SCB', 'sans-serif': 'SS', 'bold-sans-serif': 'SSB', 'sans-serif-italic': 'SSI', 'sans-serif-bold-italic': 'SSBI', 'monospace': 'T', '-smallop': 'S1', '-largeop': 'S2', '-size3': 'S3', '-size4': 'S4', '-tex-calligraphic': 'C', '-tex-bold-calligraphic': 'CB', '-tex-mathit': 'MI', '-tex-oldstyle': 'C', '-tex-bold-oldstyle': 'CB', '-tex-variant': 'A' }; TeXFont.defaultDelimiters = delimiters_js_1.delimiters; TeXFont.defaultChars = { 'normal': normal_js_1.normal, 'bold': bold_js_1.bold, 'italic': italic_js_1.italic, 'bold-italic': bold_italic_js_1.boldItalic, 'double-struck': double_struck_js_1.doubleStruck, 'fraktur': fraktur_js_1.fraktur, 'bold-fraktur': fraktur_bold_js_1.frakturBold, 'script': script_js_1.script, 'bold-script': script_bold_js_1.scriptBold, 'sans-serif': sans_serif_js_1.sansSerif, 'bold-sans-serif': sans_serif_bold_js_1.sansSerifBold, 'sans-serif-italic': sans_serif_italic_js_1.sansSerifItalic, 'sans-serif-bold-italic': sans_serif_bold_italic_js_1.sansSerifBoldItalic, 'monospace': monospace_js_1.monospace, '-smallop': smallop_js_1.smallop, '-largeop': largeop_js_1.largeop, '-size3': tex_size3_js_1.texSize3, '-size4': tex_size4_js_1.texSize4, '-tex-calligraphic': tex_calligraphic_js_1.texCalligraphic, '-tex-bold-calligraphic': tex_calligraphic_bold_js_1.texCalligraphicBold, '-tex-mathit': tex_mathit_js_1.texMathit, '-tex-oldstyle': tex_oldstyle_js_1.texOldstyle, '-tex-bold-oldstyle': tex_oldstyle_bold_js_1.texOldstyleBold, '-tex-variant': tex_variant_js_1.texVariant }; TeXFont.defaultStyles = __assign(__assign({}, FontData_js_1.CHTMLFontData.defaultStyles), { '.MJX-TEX': { 'font-family': 'MJXZERO, MJXTEX' }, '.TEX-B': { 'font-family': 'MJXZERO, MJXTEX-B' }, '.TEX-I': { 'font-family': 'MJXZERO, MJXTEX-I' }, '.TEX-MI': { 'font-family': 'MJXZERO, MJXTEX-MI' }, '.TEX-BI': { 'font-family': 'MJXZERO, MJXTEX-BI' }, '.TEX-S1': { 'font-family': 'MJXZERO, MJXTEX-S1' }, '.TEX-S2': { 'font-family': 'MJXZERO, MJXTEX-S2' }, '.TEX-S3': { 'font-family': 'MJXZERO, MJXTEX-S3' }, '.TEX-S4': { 'font-family': 'MJXZERO, MJXTEX-S4' }, '.TEX-A': { 'font-family': 'MJXZERO, MJXTEX-A' }, '.TEX-C': { 'font-family': 'MJXZERO, MJXTEX-C' }, '.TEX-CB': { 'font-family': 'MJXZERO, MJXTEX-CB' }, '.TEX-FR': { 'font-family': 'MJXZERO, MJXTEX-FR' }, '.TEX-FRB': { 'font-family': 'MJXZERO, MJXTEX-FRB' }, '.TEX-SS': { 'font-family': 'MJXZERO, MJXTEX-SS' }, '.TEX-SSB': { 'font-family': 'MJXZERO, MJXTEX-SSB' }, '.TEX-SSI': { 'font-family': 'MJXZERO, MJXTEX-SSI' }, '.TEX-SC': { 'font-family': 'MJXZERO, MJXTEX-SC' }, '.TEX-T': { 'font-family': 'MJXZERO, MJXTEX-T' }, '.TEX-V': { 'font-family': 'MJXZERO, MJXTEX-V' }, '.TEX-VB': { 'font-family': 'MJXZERO, MJXTEX-VB' }, 'mjx-stretchy-v mjx-c, mjx-stretchy-h mjx-c': { 'font-family': 'MJXZERO, MJXTEX-S1, MJXTEX-S4, MJXTEX, MJXTEX-A ! important' } }); TeXFont.defaultFonts = __assign(__assign({}, FontData_js_1.CHTMLFontData.defaultFonts), { '@font-face /* 1 */': { 'font-family': 'MJXTEX', src: 'url("%%URL%%/MathJax_Main-Regular.woff") format("woff")' }, '@font-face /* 2 */': { 'font-family': 'MJXTEX-B', src: 'url("%%URL%%/MathJax_Main-Bold.woff") format("woff")' }, '@font-face /* 3 */': { 'font-family': 'MJXTEX-I', src: 'url("%%URL%%/MathJax_Math-Italic.woff") format("woff")' }, '@font-face /* 4 */': { 'font-family': 'MJXTEX-MI', src: 'url("%%URL%%/MathJax_Main-Italic.woff") format("woff")' }, '@font-face /* 5 */': { 'font-family': 'MJXTEX-BI', src: 'url("%%URL%%/MathJax_Math-BoldItalic.woff") format("woff")' }, '@font-face /* 6 */': { 'font-family': 'MJXTEX-S1', src: 'url("%%URL%%/MathJax_Size1-Regular.woff") format("woff")' }, '@font-face /* 7 */': { 'font-family': 'MJXTEX-S2', src: 'url("%%URL%%/MathJax_Size2-Regular.woff") format("woff")' }, '@font-face /* 8 */': { 'font-family': 'MJXTEX-S3', src: 'url("%%URL%%/MathJax_Size3-Regular.woff") format("woff")' }, '@font-face /* 9 */': { 'font-family': 'MJXTEX-S4', src: 'url("%%URL%%/MathJax_Size4-Regular.woff") format("woff")' }, '@font-face /* 10 */': { 'font-family': 'MJXTEX-A', src: 'url("%%URL%%/MathJax_AMS-Regular.woff") format("woff")' }, '@font-face /* 11 */': { 'font-family': 'MJXTEX-C', src: 'url("%%URL%%/MathJax_Calligraphic-Regular.woff") format("woff")' }, '@font-face /* 12 */': { 'font-family': 'MJXTEX-CB', src: 'url("%%URL%%/MathJax_Calligraphic-Bold.woff") format("woff")' }, '@font-face /* 13 */': { 'font-family': 'MJXTEX-FR', src: 'url("%%URL%%/MathJax_Fraktur-Regular.woff") format("woff")' }, '@font-face /* 14 */': { 'font-family': 'MJXTEX-FRB', src: 'url("%%URL%%/MathJax_Fraktur-Bold.woff") format("woff")' }, '@font-face /* 15 */': { 'font-family': 'MJXTEX-SS', src: 'url("%%URL%%/MathJax_SansSerif-Regular.woff") format("woff")' }, '@font-face /* 16 */': { 'font-family': 'MJXTEX-SSB', src: 'url("%%URL%%/MathJax_SansSerif-Bold.woff") format("woff")' }, '@font-face /* 17 */': { 'font-family': 'MJXTEX-SSI', src: 'url("%%URL%%/MathJax_SansSerif-Italic.woff") format("woff")' }, '@font-face /* 18 */': { 'font-family': 'MJXTEX-SC', src: 'url("%%URL%%/MathJax_Script-Regular.woff") format("woff")' }, '@font-face /* 19 */': { 'font-family': 'MJXTEX-T', src: 'url("%%URL%%/MathJax_Typewriter-Regular.woff") format("woff")' }, '@font-face /* 20 */': { 'font-family': 'MJXTEX-V', src: 'url("%%URL%%/MathJax_Vector-Regular.woff") format("woff")' }, '@font-face /* 21 */': { 'font-family': 'MJXTEX-VB', src: 'url("%%URL%%/MathJax_Vector-Bold.woff") format("woff")' } }); return TeXFont; }(tex_js_1.CommonTeXFontMixin(FontData_js_1.CHTMLFontData))); exports.TeXFont = TeXFont; //# sourceMappingURL=tex.js.map /***/ }), /* 36 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractItem = void 0; var abstract_entry_js_1 = __webpack_require__(268); var menu_util_js_1 = __webpack_require__(18); var html_classes_js_1 = __webpack_require__(10); var AbstractItem = (function (_super) { __extends(AbstractItem, _super); function AbstractItem(menu, type, _content, id) { var _this = _super.call(this, menu, type) || this; _this._content = _content; _this.disabled = false; _this.callbacks = []; _this._id = id ? id : _content; return _this; } Object.defineProperty(AbstractItem.prototype, "content", { get: function () { return this._content; }, set: function (content) { this._content = content; this.generateHtml(); if (this.menu) { this.menu.generateHtml(); } }, enumerable: false, configurable: true }); Object.defineProperty(AbstractItem.prototype, "id", { get: function () { return this._id; }, enumerable: false, configurable: true }); AbstractItem.prototype.press = function () { if (!this.disabled) { this.executeAction(); this.executeCallbacks_(); } }; AbstractItem.prototype.executeAction = function () { }; AbstractItem.prototype.registerCallback = function (func) { if (this.callbacks.indexOf(func) === -1) { this.callbacks.push(func); } }; AbstractItem.prototype.unregisterCallback = function (func) { var index = this.callbacks.indexOf(func); if (index !== -1) { this.callbacks.splice(index, 1); } }; AbstractItem.prototype.mousedown = function (event) { this.press(); this.stop(event); }; AbstractItem.prototype.mouseover = function (event) { this.focus(); this.stop(event); }; AbstractItem.prototype.mouseout = function (event) { this.deactivate(); this.stop(event); }; AbstractItem.prototype.generateHtml = function () { _super.prototype.generateHtml.call(this); var html = this.html; html.setAttribute('aria-disabled', 'false'); html.textContent = this.content; }; AbstractItem.prototype.activate = function () { if (!this.disabled) { this.html.classList.add(html_classes_js_1.HtmlClasses['MENUACTIVE']); } }; AbstractItem.prototype.deactivate = function () { this.html.classList.remove(html_classes_js_1.HtmlClasses['MENUACTIVE']); }; AbstractItem.prototype.focus = function () { this.menu.focused = this; _super.prototype.focus.call(this); this.activate(); }; AbstractItem.prototype.unfocus = function () { this.deactivate(); _super.prototype.unfocus.call(this); }; AbstractItem.prototype.escape = function (_event) { menu_util_js_1.MenuUtil.close(this); }; AbstractItem.prototype.up = function (event) { this.menu.up(event); }; AbstractItem.prototype.down = function (event) { this.menu.down(event); }; AbstractItem.prototype.left = function (event) { this.menu.left(event); }; AbstractItem.prototype.right = function (event) { this.menu.right(event); }; AbstractItem.prototype.space = function (_event) { this.press(); }; AbstractItem.prototype.disable = function () { this.disabled = true; var html = this.html; html.classList.add(html_classes_js_1.HtmlClasses['MENUDISABLED']); html.setAttribute('aria-disabled', 'true'); }; AbstractItem.prototype.enable = function () { this.disabled = false; var html = this.html; html.classList.remove(html_classes_js_1.HtmlClasses['MENUDISABLED']); html.removeAttribute('aria-disabled'); }; AbstractItem.prototype.executeCallbacks_ = function () { var e_1, _a; try { for (var _b = __values(this.callbacks), _c = _b.next(); !_c.done; _c = _b.next()) { var func = _c.value; try { func(this); } catch (e) { menu_util_js_1.MenuUtil.error(e, 'Callback for menu entry ' + this.id + ' failed.'); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; return AbstractItem; }(abstract_entry_js_1.AbstractEntry)); exports.AbstractItem = AbstractItem; //# sourceMappingURL=abstract_item.js.map /***/ }), /* 37 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractFactory = void 0; var AbstractFactory = (function () { function AbstractFactory(nodes) { var e_1, _a; if (nodes === void 0) { nodes = null; } this.defaultKind = 'unknown'; this.nodeMap = new Map(); this.node = {}; if (nodes === null) { nodes = this.constructor.defaultNodes; } try { for (var _b = __values(Object.keys(nodes)), _c = _b.next(); !_c.done; _c = _b.next()) { var kind = _c.value; this.setNodeClass(kind, nodes[kind]); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } AbstractFactory.prototype.create = function (kind) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } return (this.node[kind] || this.node[this.defaultKind]).apply(void 0, __spread(args)); }; AbstractFactory.prototype.setNodeClass = function (kind, nodeClass) { this.nodeMap.set(kind, nodeClass); var THIS = this; var KIND = this.nodeMap.get(kind); this.node[kind] = function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } return new (KIND.bind.apply(KIND, __spread([void 0, THIS], args)))(); }; }; AbstractFactory.prototype.getNodeClass = function (kind) { return this.nodeMap.get(kind); }; AbstractFactory.prototype.deleteNodeClass = function (kind) { this.nodeMap.delete(kind); delete this.node[kind]; }; AbstractFactory.prototype.nodeIsKind = function (node, kind) { return (node instanceof this.getNodeClass(kind)); }; AbstractFactory.prototype.getKinds = function () { return Array.from(this.nodeMap.keys()); }; AbstractFactory.defaultNodes = {}; return AbstractFactory; }()); exports.AbstractFactory = AbstractFactory; //# sourceMappingURL=Factory.js.map /***/ }), /* 38 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMi = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMi = (function (_super) { __extends(MmlMi, _super); function MmlMi() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.texClass = MmlNode_js_1.TEXCLASS.ORD; return _this; } Object.defineProperty(MmlMi.prototype, "kind", { get: function () { return 'mi'; }, enumerable: false, configurable: true }); MmlMi.prototype.setInheritedAttributes = function (attributes, display, level, prime) { if (attributes === void 0) { attributes = {}; } if (display === void 0) { display = false; } if (level === void 0) { level = 0; } if (prime === void 0) { prime = false; } _super.prototype.setInheritedAttributes.call(this, attributes, display, level, prime); var text = this.getText(); if (text.match(MmlMi.singleCharacter) && !attributes.mathvariant) { this.attributes.setInherited('mathvariant', 'italic'); } }; MmlMi.prototype.setTeXclass = function (prev) { this.getPrevClass(prev); var name = this.getText(); if (name.length > 1 && name.match(MmlMi.operatorName) && this.texClass === MmlNode_js_1.TEXCLASS.ORD) { this.texClass = MmlNode_js_1.TEXCLASS.OP; this.setProperty('autoOP', true); } return this; }; MmlMi.defaults = __assign({}, MmlNode_js_1.AbstractMmlTokenNode.defaults); MmlMi.operatorName = /^[a-z][a-z0-9]*$/i; MmlMi.singleCharacter = /^[\uD800-\uDBFF]?.$/; return MmlMi; }(MmlNode_js_1.AbstractMmlTokenNode)); exports.MmlMi = MmlMi; //# sourceMappingURL=mi.js.map /***/ }), /* 39 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMsup = exports.MmlMsub = exports.MmlMsubsup = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMsubsup = (function (_super) { __extends(MmlMsubsup, _super); function MmlMsubsup() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMsubsup.prototype, "kind", { get: function () { return 'msubsup'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMsubsup.prototype, "arity", { get: function () { return 3; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMsubsup.prototype, "base", { get: function () { return 0; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMsubsup.prototype, "sub", { get: function () { return 1; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMsubsup.prototype, "sup", { get: function () { return 2; }, enumerable: false, configurable: true }); MmlMsubsup.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) { var nodes = this.childNodes; nodes[0].setInheritedAttributes(attributes, display, level, prime); nodes[1].setInheritedAttributes(attributes, false, level + 1, prime || this.sub === 1); if (!nodes[2]) { return; } nodes[2].setInheritedAttributes(attributes, false, level + 1, prime || this.sub === 2); }; MmlMsubsup.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlBaseNode.defaults), { subscriptshift: '', superscriptshift: '' }); return MmlMsubsup; }(MmlNode_js_1.AbstractMmlBaseNode)); exports.MmlMsubsup = MmlMsubsup; var MmlMsub = (function (_super) { __extends(MmlMsub, _super); function MmlMsub() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMsub.prototype, "kind", { get: function () { return 'msub'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMsub.prototype, "arity", { get: function () { return 2; }, enumerable: false, configurable: true }); MmlMsub.defaults = __assign({}, MmlMsubsup.defaults); return MmlMsub; }(MmlMsubsup)); exports.MmlMsub = MmlMsub; var MmlMsup = (function (_super) { __extends(MmlMsup, _super); function MmlMsup() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMsup.prototype, "kind", { get: function () { return 'msup'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMsup.prototype, "arity", { get: function () { return 2; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMsup.prototype, "sup", { get: function () { return 1; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMsup.prototype, "sub", { get: function () { return 2; }, enumerable: false, configurable: true }); MmlMsup.defaults = __assign({}, MmlMsubsup.defaults); return MmlMsup; }(MmlMsubsup)); exports.MmlMsup = MmlMsup; //# sourceMappingURL=msubsup.js.map /***/ }), /* 40 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.retryAfter = exports.handleRetriesFor = void 0; function handleRetriesFor(code) { return new Promise(function run(ok, fail) { try { ok(code()); } catch (err) { if (err.retry && err.retry instanceof Promise) { err.retry.then(function () { return run(ok, fail); }) .catch(function (perr) { return fail(perr); }); } else if (err.restart && err.restart.isCallback) { MathJax.Callback.After(function () { return run(ok, fail); }, err.restart); } else { fail(err); } } }); } exports.handleRetriesFor = handleRetriesFor; function retryAfter(promise) { var err = new Error('MathJax retry'); err.retry = promise; throw err; } exports.retryAfter = retryAfter; //# sourceMappingURL=Retries.js.map /***/ }), /* 41 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.NodeFactory = void 0; var NodeUtil_js_1 = __webpack_require__(7); var NodeFactory = (function () { function NodeFactory() { this.mmlFactory = null; this.factory = { 'node': NodeFactory.createNode, 'token': NodeFactory.createToken, 'text': NodeFactory.createText, 'error': NodeFactory.createError }; } NodeFactory.createNode = function (factory, kind, children, def, text) { if (children === void 0) { children = []; } if (def === void 0) { def = {}; } var node = factory.mmlFactory.create(kind); var arity = node.arity; if (arity === Infinity || arity === -1) { if (children.length === 1 && children[0].isInferred) { node.setChildren(NodeUtil_js_1.default.getChildren(children[0])); } else { node.setChildren(children); } } else { var cleanChildren = []; for (var i = 0, child = void 0; child = children[i]; i++) { if (child.isInferred) { var mrow = factory.mmlFactory.create('mrow', {}, NodeUtil_js_1.default.getChildren(child)); NodeUtil_js_1.default.copyAttributes(child, mrow); cleanChildren.push(mrow); } else { cleanChildren.push(child); } } node.setChildren(cleanChildren); } if (text) { node.appendChild(text); } NodeUtil_js_1.default.setProperties(node, def); return node; }; NodeFactory.createToken = function (factory, kind, def, text) { if (def === void 0) { def = {}; } if (text === void 0) { text = ''; } var textNode = factory.create('text', text); return factory.create('node', kind, [], def, textNode); }; NodeFactory.createText = function (factory, text) { if (text == null) { return null; } return factory.mmlFactory.create('text').setText(text); }; NodeFactory.createError = function (factory, message) { var text = factory.create('text', message); var mtext = factory.create('node', 'mtext', [], {}, text); var error = factory.create('node', 'merror', [mtext], { 'data-mjx-error': message }); return error; }; NodeFactory.prototype.setMmlFactory = function (mmlFactory) { this.mmlFactory = mmlFactory; }; NodeFactory.prototype.set = function (kind, func) { this.factory[kind] = func; }; NodeFactory.prototype.setCreators = function (maps) { for (var kind in maps) { this.set(kind, maps[kind]); } }; NodeFactory.prototype.create = function (kind) { var rest = []; for (var _i = 1; _i < arguments.length; _i++) { rest[_i - 1] = arguments[_i]; } var func = this.factory[kind] || this.factory['node']; var node = func.apply(void 0, __spread([this, rest[0]], rest.slice(1))); if (kind === 'node') { this.configuration.addNode(rest[0], node); } return node; }; NodeFactory.prototype.get = function (kind) { return this.factory[kind]; }; return NodeFactory; }()); exports.NodeFactory = NodeFactory; //# sourceMappingURL=NodeFactory.js.map /***/ }), /* 42 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.BaseConfiguration = exports.BaseTags = exports.Other = void 0; var Configuration_js_1 = __webpack_require__(2); var MapHandler_js_1 = __webpack_require__(33); var TexError_js_1 = __webpack_require__(4); var NodeUtil_js_1 = __webpack_require__(7); var SymbolMap_js_1 = __webpack_require__(3); var bitem = __webpack_require__(29); var Tags_js_1 = __webpack_require__(21); __webpack_require__(274); new SymbolMap_js_1.CharacterMap('remap', null, { '-': '\u2212', '*': '\u2217', '`': '\u2018' }); function Other(parser, char) { var font = parser.stack.env['font']; var def = font ? { mathvariant: parser.stack.env['font'] } : {}; var remap = MapHandler_js_1.MapHandler.getMap('remap'). lookup(char); var mo = parser.create('token', 'mo', def, (remap ? remap.char : char)); NodeUtil_js_1.default.setProperty(mo, 'fixStretchy', true); parser.configuration.addNode('fixStretchy', mo); parser.Push(mo); } exports.Other = Other; function csUndefined(_parser, name) { throw new TexError_js_1.default('UndefinedControlSequence', 'Undefined control sequence %1', '\\' + name); } function envUndefined(_parser, env) { throw new TexError_js_1.default('UnknownEnv', 'Unknown environment \'%1\'', env); } var BaseTags = (function (_super) { __extends(BaseTags, _super); function BaseTags() { return _super !== null && _super.apply(this, arguments) || this; } return BaseTags; }(Tags_js_1.AbstractTags)); exports.BaseTags = BaseTags; exports.BaseConfiguration = Configuration_js_1.Configuration.create('base', { handler: { character: ['command', 'special', 'letter', 'digit'], delimiter: ['delimiter'], macro: ['delimiter', 'macros', 'mathchar0mi', 'mathchar0mo', 'mathchar7'], environment: ['environment'] }, fallback: { character: Other, macro: csUndefined, environment: envUndefined }, items: (_a = {}, _a[bitem.StartItem.prototype.kind] = bitem.StartItem, _a[bitem.StopItem.prototype.kind] = bitem.StopItem, _a[bitem.OpenItem.prototype.kind] = bitem.OpenItem, _a[bitem.CloseItem.prototype.kind] = bitem.CloseItem, _a[bitem.PrimeItem.prototype.kind] = bitem.PrimeItem, _a[bitem.SubsupItem.prototype.kind] = bitem.SubsupItem, _a[bitem.OverItem.prototype.kind] = bitem.OverItem, _a[bitem.LeftItem.prototype.kind] = bitem.LeftItem, _a[bitem.RightItem.prototype.kind] = bitem.RightItem, _a[bitem.BeginItem.prototype.kind] = bitem.BeginItem, _a[bitem.EndItem.prototype.kind] = bitem.EndItem, _a[bitem.StyleItem.prototype.kind] = bitem.StyleItem, _a[bitem.PositionItem.prototype.kind] = bitem.PositionItem, _a[bitem.CellItem.prototype.kind] = bitem.CellItem, _a[bitem.MmlItem.prototype.kind] = bitem.MmlItem, _a[bitem.FnItem.prototype.kind] = bitem.FnItem, _a[bitem.NotItem.prototype.kind] = bitem.NotItem, _a[bitem.DotsItem.prototype.kind] = bitem.DotsItem, _a[bitem.ArrayItem.prototype.kind] = bitem.ArrayItem, _a[bitem.EqnArrayItem.prototype.kind] = bitem.EqnArrayItem, _a[bitem.EquationItem.prototype.kind] = bitem.EquationItem, _a), options: { maxMacros: 1000, baseURL: (typeof (document) === 'undefined' || document.getElementsByTagName('base').length === 0) ? '' : String(document.location).replace(/#.*$/, '') }, tags: { base: BaseTags } }); //# sourceMappingURL=BaseConfiguration.js.map /***/ }), /* 43 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.clearDocument = exports.saveDocument = exports.makeBsprAttributes = exports.removeProperty = exports.getProperty = exports.setProperty = exports.balanceRules = void 0; var NodeUtil_js_1 = __webpack_require__(7); var ParseUtil_js_1 = __webpack_require__(8); var doc = null; var item = null; var getBBox = function (node) { item.root = node; var width = doc.outputJax.getBBox(item, doc).w; return width; }; var getRule = function (node) { var i = 0; while (node && !NodeUtil_js_1.default.isType(node, 'mtable')) { if (NodeUtil_js_1.default.isType(node, 'text')) { return null; } if (NodeUtil_js_1.default.isType(node, 'mrow')) { node = node.childNodes[0]; i = 0; continue; } node = node.parent.childNodes[i]; i++; } return node; }; var getPremises = function (rule, direction) { return rule.childNodes[direction === 'up' ? 1 : 0].childNodes[0]. childNodes[0].childNodes[0].childNodes[0]; }; var getPremise = function (premises, n) { return premises.childNodes[n].childNodes[0].childNodes[0]; }; var firstPremise = function (premises) { return getPremise(premises, 0); }; var lastPremise = function (premises) { return getPremise(premises, premises.childNodes.length - 1); }; var getConclusion = function (rule, direction) { return rule.childNodes[direction === 'up' ? 0 : 1].childNodes[0].childNodes[0].childNodes[0]; }; var getColumn = function (inf) { while (inf && !NodeUtil_js_1.default.isType(inf, 'mtd')) { inf = inf.parent; } return inf; }; var nextSibling = function (inf) { return inf.parent.childNodes[inf.parent.childNodes.indexOf(inf) + 1]; }; var previousSibling = function (inf) { return inf.parent.childNodes[inf.parent.childNodes.indexOf(inf) - 1]; }; var getParentInf = function (inf) { while (inf && exports.getProperty(inf, 'inference') == null) { inf = inf.parent; } return inf; }; var getSpaces = function (inf, rule, right) { if (right === void 0) { right = false; } var result = 0; if (inf === rule) { return result; } if (inf !== rule.parent) { var children_1 = inf.childNodes; var index_1 = right ? children_1.length - 1 : 0; if (NodeUtil_js_1.default.isType(children_1[index_1], 'mspace')) { result += getBBox(children_1[index_1]); } inf = rule.parent; } if (inf === rule) { return result; } var children = inf.childNodes; var index = right ? children.length - 1 : 0; if (children[index] !== rule) { result += getBBox(children[index]); } return result; }; var adjustValue = function (inf, right) { if (right === void 0) { right = false; } var rule = getRule(inf); var conc = getConclusion(rule, exports.getProperty(rule, 'inferenceRule')); var w = getSpaces(inf, rule, right); var x = getBBox(rule); var y = getBBox(conc); return w + ((x - y) / 2); }; var addSpace = function (config, inf, space, right) { if (right === void 0) { right = false; } if (exports.getProperty(inf, 'inferenceRule') || exports.getProperty(inf, 'labelledRule')) { var mrow = config.nodeFactory.create('node', 'mrow'); inf.parent.replaceChild(mrow, inf); mrow.setChildren([inf]); moveProperties(inf, mrow); inf = mrow; } var index = right ? inf.childNodes.length - 1 : 0; var mspace = inf.childNodes[index]; if (NodeUtil_js_1.default.isType(mspace, 'mspace')) { NodeUtil_js_1.default.setAttribute(mspace, 'width', ParseUtil_js_1.default.Em(ParseUtil_js_1.default.dimen2em(NodeUtil_js_1.default.getAttribute(mspace, 'width')) + space)); return; } mspace = config.nodeFactory.create('node', 'mspace', [], { width: ParseUtil_js_1.default.Em(space) }); if (right) { inf.appendChild(mspace); return; } mspace.parent = inf; inf.childNodes.unshift(mspace); }; var moveProperties = function (src, dest) { var props = ['inference', 'proof', 'maxAdjust', 'labelledRule']; props.forEach(function (x) { var value = exports.getProperty(src, x); if (value != null) { exports.setProperty(dest, x, value); exports.removeProperty(src, x); } }); }; var adjustSequents = function (config) { var sequents = config.nodeLists['sequent']; if (!sequents) { return; } for (var i = sequents.length - 1, seq = void 0; seq = sequents[i]; i--) { if (exports.getProperty(seq, 'sequentProcessed')) { exports.removeProperty(seq, 'sequentProcessed'); continue; } var collect = []; var inf = getParentInf(seq); if (exports.getProperty(inf, 'inference') !== 1) { continue; } collect.push(seq); while (exports.getProperty(inf, 'inference') === 1) { inf = getRule(inf); var premise = firstPremise(getPremises(inf, exports.getProperty(inf, 'inferenceRule'))); var sequent = (exports.getProperty(premise, 'inferenceRule')) ? getConclusion(premise, exports.getProperty(premise, 'inferenceRule')) : premise; if (exports.getProperty(sequent, 'sequent')) { seq = sequent.childNodes[0]; collect.push(seq); exports.setProperty(seq, 'sequentProcessed', true); } inf = premise; } adjustSequentPairwise(config, collect); } }; var addSequentSpace = function (config, sequent, position, direction, width) { var mspace = config.nodeFactory.create('node', 'mspace', [], { width: ParseUtil_js_1.default.Em(width) }); if (direction === 'left') { var row = sequent.childNodes[position].childNodes[0]; mspace.parent = row; row.childNodes.unshift(mspace); } else { sequent.childNodes[position].appendChild(mspace); } exports.setProperty(sequent.parent, 'sequentAdjust_' + direction, width); }; var adjustSequentPairwise = function (config, sequents) { var top = sequents.pop(); while (sequents.length) { var bottom = sequents.pop(); var _a = __read(compareSequents(top, bottom), 2), left = _a[0], right = _a[1]; if (exports.getProperty(top.parent, 'axiom')) { addSequentSpace(config, left < 0 ? top : bottom, 0, 'left', Math.abs(left)); addSequentSpace(config, right < 0 ? top : bottom, 2, 'right', Math.abs(right)); } top = bottom; } }; var compareSequents = function (top, bottom) { var tr = getBBox(top.childNodes[2]); var br = getBBox(bottom.childNodes[2]); var tl = getBBox(top.childNodes[0]); var bl = getBBox(bottom.childNodes[0]); var dl = tl - bl; var dr = tr - br; return [dl, dr]; }; exports.balanceRules = function (arg) { var e_1, _a; item = new arg.document.options.MathItem('', null, arg.math.display); var config = arg.data; adjustSequents(config); var inferences = config.nodeLists['inference'] || []; try { for (var inferences_1 = __values(inferences), inferences_1_1 = inferences_1.next(); !inferences_1_1.done; inferences_1_1 = inferences_1.next()) { var inf = inferences_1_1.value; var isProof = exports.getProperty(inf, 'proof'); var rule = getRule(inf); var premises = getPremises(rule, exports.getProperty(rule, 'inferenceRule')); var premiseF = firstPremise(premises); if (exports.getProperty(premiseF, 'inference')) { var adjust_1 = adjustValue(premiseF); if (adjust_1) { addSpace(config, premiseF, -adjust_1); var w_1 = getSpaces(inf, rule, false); addSpace(config, inf, adjust_1 - w_1); } } var premiseL = lastPremise(premises); if (exports.getProperty(premiseL, 'inference') == null) { continue; } var adjust = adjustValue(premiseL, true); addSpace(config, premiseL, -adjust, true); var w = getSpaces(inf, rule, true); var maxAdjust = exports.getProperty(inf, 'maxAdjust'); if (maxAdjust != null) { adjust = Math.max(adjust, maxAdjust); } var column = void 0; if (isProof || !(column = getColumn(inf))) { addSpace(config, exports.getProperty(inf, 'proof') ? inf : inf.parent, adjust - w, true); continue; } var sibling = nextSibling(column); if (sibling) { var pos = config.nodeFactory.create('node', 'mspace', [], { width: adjust - w + 'em' }); sibling.appendChild(pos); inf.removeProperty('maxAdjust'); continue; } var parentRule = getParentInf(column); if (!parentRule) { continue; } adjust = exports.getProperty(parentRule, 'maxAdjust') ? Math.max(exports.getProperty(parentRule, 'maxAdjust'), adjust) : adjust; exports.setProperty(parentRule, 'maxAdjust', adjust); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (inferences_1_1 && !inferences_1_1.done && (_a = inferences_1.return)) _a.call(inferences_1); } finally { if (e_1) throw e_1.error; } } }; var property_prefix = 'bspr_'; var blacklistedProperties = (_a = {}, _a[property_prefix + 'maxAdjust'] = true, _a); exports.setProperty = function (node, property, value) { NodeUtil_js_1.default.setProperty(node, property_prefix + property, value); }; exports.getProperty = function (node, property) { return NodeUtil_js_1.default.getProperty(node, property_prefix + property); }; exports.removeProperty = function (node, property) { node.removeProperty(property_prefix + property); }; exports.makeBsprAttributes = function (arg) { arg.data.root.walkTree(function (mml, _data) { var attr = []; mml.getPropertyNames().forEach(function (x) { if (!blacklistedProperties[x] && x.match(RegExp('^' + property_prefix))) { attr.push(x + ':' + mml.getProperty(x)); } }); if (attr.length) { NodeUtil_js_1.default.setAttribute(mml, 'semantics', attr.join(';')); } }); }; exports.saveDocument = function (arg) { doc = arg.document; if (!('getBBox' in doc.outputJax)) { throw Error('The bussproofs extension requires an output jax with a getBBox() method'); } }; exports.clearDocument = function (_arg) { doc = null; }; //# sourceMappingURL=BussproofsUtil.js.map /***/ }), /* 44 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ParseUtil_js_1 = __webpack_require__(8); var TexError_js_1 = __webpack_require__(4); var Symbol_js_1 = __webpack_require__(28); var NewcommandUtil; (function (NewcommandUtil) { function disassembleSymbol(name, symbol) { var newArgs = [name, symbol.char]; if (symbol.attributes) { for (var key in symbol.attributes) { newArgs.push(key); newArgs.push(symbol.attributes[key]); } } return newArgs; } NewcommandUtil.disassembleSymbol = disassembleSymbol; function assembleSymbol(args) { var name = args[0]; var char = args[1]; var attrs = {}; for (var i = 2; i < args.length; i = i + 2) { attrs[args[i]] = args[i + 1]; } return new Symbol_js_1.Symbol(name, char, attrs); } NewcommandUtil.assembleSymbol = assembleSymbol; function GetCSname(parser, cmd) { var c = parser.GetNext(); if (c !== '\\') { throw new TexError_js_1.default('MissingCS', '%1 must be followed by a control sequence', cmd); } var cs = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(cmd)); return cs.substr(1); } NewcommandUtil.GetCSname = GetCSname; function GetTemplate(parser, cmd, cs) { var c = parser.GetNext(); var params = []; var n = 0; var i = parser.i; while (parser.i < parser.string.length) { c = parser.GetNext(); if (c === '#') { if (i !== parser.i) { params[n] = parser.string.substr(i, parser.i - i); } c = parser.string.charAt(++parser.i); if (!c.match(/^[1-9]$/)) { throw new TexError_js_1.default('CantUseHash2', 'Illegal use of # in template for %1', cs); } if (parseInt(c) !== ++n) { throw new TexError_js_1.default('SequentialParam', 'Parameters for %1 must be numbered sequentially', cs); } i = parser.i + 1; } else if (c === '{') { if (i !== parser.i) { params[n] = parser.string.substr(i, parser.i - i); } if (params.length > 0) { return [n.toString()].concat(params); } else { return n; } } parser.i++; } throw new TexError_js_1.default('MissingReplacementString', 'Missing replacement string for definition of %1', cmd); } NewcommandUtil.GetTemplate = GetTemplate; function GetParameter(parser, name, param) { if (param == null) { return parser.GetArgument(name); } var i = parser.i; var j = 0; var hasBraces = 0; while (parser.i < parser.string.length) { var c = parser.string.charAt(parser.i); if (c === '{') { if (parser.i === i) { hasBraces = 1; } parser.GetArgument(name); j = parser.i - i; } else if (MatchParam(parser, param)) { if (hasBraces) { i++; j -= 2; } return parser.string.substr(i, j); } else if (c === '\\') { parser.i++; j++; hasBraces = 0; var match = parser.string.substr(parser.i).match(/[a-z]+|./i); if (match) { parser.i += match[0].length; j = parser.i - i; } } else { parser.i++; j++; hasBraces = 0; } } throw new TexError_js_1.default('RunawayArgument', 'Runaway argument for %1?', name); } NewcommandUtil.GetParameter = GetParameter; function MatchParam(parser, param) { if (parser.string.substr(parser.i, param.length) !== param) { return 0; } if (param.match(/\\[a-z]+$/i) && parser.string.charAt(parser.i + param.length).match(/[a-z]/i)) { return 0; } parser.i += param.length; return 1; } NewcommandUtil.MatchParam = MatchParam; function addDelimiter(parser, cs, char, attr) { var handlers = parser.configuration.handlers; var handler = handlers.retrieve(NewcommandUtil.NEW_DELIMITER); handler.add(cs, new Symbol_js_1.Symbol(cs, char, attr)); } NewcommandUtil.addDelimiter = addDelimiter; function addMacro(parser, cs, func, attr, symbol) { if (symbol === void 0) { symbol = ''; } var handlers = parser.configuration.handlers; var handler = handlers.retrieve(NewcommandUtil.NEW_COMMAND); handler.add(cs, new Symbol_js_1.Macro(symbol ? symbol : cs, func, attr)); } NewcommandUtil.addMacro = addMacro; function addEnvironment(parser, env, func, attr) { var handlers = parser.configuration.handlers; var handler = handlers.retrieve(NewcommandUtil.NEW_ENVIRONMENT); handler.add(env, new Symbol_js_1.Macro(env, func, attr)); } NewcommandUtil.addEnvironment = addEnvironment; NewcommandUtil.NEW_DELIMITER = 'new-Delimiter'; NewcommandUtil.NEW_COMMAND = 'new-Command'; NewcommandUtil.NEW_ENVIRONMENT = 'new-Environment'; })(NewcommandUtil || (NewcommandUtil = {})); exports.default = NewcommandUtil; //# sourceMappingURL=NewcommandUtil.js.map /***/ }), /* 45 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonArrow = exports.CommonDiagonalArrow = exports.CommonDiagonalStrike = exports.CommonBorder2 = exports.CommonBorder = exports.arrowBBox = exports.diagonalArrowDef = exports.arrowDef = exports.arrowBBoxW = exports.arrowBBoxHD = exports.arrowHead = exports.fullBorder = exports.fullPadding = exports.fullBBox = exports.sideNames = exports.sideIndex = exports.SOLID = exports.PADDING = exports.THICKNESS = exports.ARROWY = exports.ARROWDX = exports.ARROWX = void 0; exports.ARROWX = 4, exports.ARROWDX = 1, exports.ARROWY = 2; exports.THICKNESS = .067; exports.PADDING = .2; exports.SOLID = exports.THICKNESS + 'em solid'; exports.sideIndex = { top: 0, right: 1, bottom: 2, left: 3 }; exports.sideNames = Object.keys(exports.sideIndex); exports.fullBBox = (function (node) { return new Array(4).fill(node.thickness + node.padding); }); exports.fullPadding = (function (node) { return new Array(4).fill(node.padding); }); exports.fullBorder = (function (node) { return new Array(4).fill(node.thickness); }); exports.arrowHead = function (node) { return Math.max(node.padding, node.thickness * (node.arrowhead.x + node.arrowhead.dx + 1)); }; exports.arrowBBoxHD = function (node, TRBL) { if (node.childNodes[0]) { var _a = node.childNodes[0].getBBox(), h = _a.h, d = _a.d; TRBL[0] = TRBL[2] = Math.max(0, node.thickness * node.arrowhead.y - (h + d) / 2); } return TRBL; }; exports.arrowBBoxW = function (node, TRBL) { if (node.childNodes[0]) { var w = node.childNodes[0].getBBox().w; TRBL[1] = TRBL[3] = Math.max(0, node.thickness * node.arrowhead.y - w / 2); } return TRBL; }; exports.arrowDef = { up: [-Math.PI / 2, false, true, 'verticalstrike'], down: [Math.PI / 2, false, true, 'verticakstrike'], right: [0, false, false, 'horizontalstrike'], left: [Math.PI, false, false, 'horizontalstrike'], updown: [Math.PI / 2, true, true, 'verticalstrike uparrow downarrow'], leftright: [0, true, false, 'horizontalstrike leftarrow rightarrow'] }; exports.diagonalArrowDef = { updiagonal: [-1, 0, false, 'updiagonalstrike northeastarrow'], northeast: [-1, 0, false, 'updiagonalstrike updiagonalarrow'], southeast: [1, 0, false, 'downdiagonalstrike'], northwest: [1, Math.PI, false, 'downdiagonalstrike'], southwest: [-1, Math.PI, false, 'updiagonalstrike'], northeastsouthwest: [-1, 0, true, 'updiagonalstrike northeastarrow updiagonalarrow southwestarrow'], northwestsoutheast: [1, 0, true, 'downdiagonalstrike northwestarrow southeastarrow'] }; exports.arrowBBox = { up: function (node) { return exports.arrowBBoxW(node, [exports.arrowHead(node), 0, node.padding, 0]); }, down: function (node) { return exports.arrowBBoxW(node, [node.padding, 0, exports.arrowHead(node), 0]); }, right: function (node) { return exports.arrowBBoxHD(node, [0, exports.arrowHead(node), 0, node.padding]); }, left: function (node) { return exports.arrowBBoxHD(node, [0, node.padding, 0, exports.arrowHead(node)]); }, updown: function (node) { return exports.arrowBBoxW(node, [exports.arrowHead(node), 0, exports.arrowHead(node), 0]); }, leftright: function (node) { return exports.arrowBBoxHD(node, [0, exports.arrowHead(node), 0, exports.arrowHead(node)]); } }; exports.CommonBorder = function (render) { return function (side) { var i = exports.sideIndex[side]; return [side, { renderer: render, bbox: function (node) { var bbox = [0, 0, 0, 0]; bbox[i] = node.thickness + node.padding; return bbox; }, border: function (node) { var bbox = [0, 0, 0, 0]; bbox[i] = node.thickness; return bbox; } }]; }; }; exports.CommonBorder2 = function (render) { return function (name, side1, side2) { var i1 = exports.sideIndex[side1]; var i2 = exports.sideIndex[side2]; return [name, { renderer: render, bbox: function (node) { var t = node.thickness + node.padding; var bbox = [0, 0, 0, 0]; bbox[i1] = bbox[i2] = t; return bbox; }, border: function (node) { var bbox = [0, 0, 0, 0]; bbox[i1] = bbox[i2] = node.thickness; return bbox; }, remove: side1 + ' ' + side2 }]; }; }; exports.CommonDiagonalStrike = function (render) { return function (name) { var cname = 'mjx-' + name.charAt(0) + 'strike'; return [name + 'diagonalstrike', { renderer: render(cname), bbox: exports.fullBBox }]; }; }; exports.CommonDiagonalArrow = function (render) { return function (name) { var _a = __read(exports.diagonalArrowDef[name], 4), c = _a[0], pi = _a[1], double = _a[2], remove = _a[3]; return [name + 'arrow', { renderer: function (node, _child) { var _a = node.arrowData(), a = _a.a, W = _a.W; var arrow = node.arrow(W, c * (a - pi), double); render(node, arrow); }, bbox: function (node) { var _a = node.arrowData(), a = _a.a, x = _a.x, y = _a.y; var _b = __read([node.arrowhead.x, node.arrowhead.y, node.arrowhead.dx], 3), ax = _b[0], ay = _b[1], adx = _b[2]; var _c = __read(node.getArgMod(ax + adx, ay), 2), b = _c[0], ar = _c[1]; var dy = y + (b > a ? node.thickness * ar * Math.sin(b - a) : 0); var dx = x + (b > Math.PI / 2 - a ? node.thickness * ar * Math.sin(b + a - Math.PI / 2) : 0); return [dy, dx, dy, dx]; }, remove: remove }]; }; }; exports.CommonArrow = function (render) { return function (name) { var _a = __read(exports.arrowDef[name], 4), angle = _a[0], double = _a[1], isVertical = _a[2], remove = _a[3]; return [name + 'arrow', { renderer: function (node, _child) { var _a = node.getBBox(), w = _a.w, h = _a.h, d = _a.d; var W = (isVertical ? h + d : w); var arrow = node.arrow(W, angle, double); render(node, arrow); }, bbox: exports.arrowBBox[name], remove: remove }]; }; }; //# sourceMappingURL=Notation.js.map /***/ }), /* 46 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmsubsup = exports.CHTMLmsup = exports.CHTMLmsub = void 0; var scriptbase_js_1 = __webpack_require__(199); var msubsup_js_1 = __webpack_require__(47); var msubsup_js_2 = __webpack_require__(47); var msubsup_js_3 = __webpack_require__(47); var msubsup_js_4 = __webpack_require__(39); var CHTMLmsub = (function (_super) { __extends(CHTMLmsub, _super); function CHTMLmsub() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmsub.kind = msubsup_js_4.MmlMsub.prototype.kind; CHTMLmsub.useIC = false; return CHTMLmsub; }(msubsup_js_1.CommonMsubMixin(scriptbase_js_1.CHTMLscriptbase))); exports.CHTMLmsub = CHTMLmsub; var CHTMLmsup = (function (_super) { __extends(CHTMLmsup, _super); function CHTMLmsup() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmsup.kind = msubsup_js_4.MmlMsup.prototype.kind; CHTMLmsup.useIC = true; return CHTMLmsup; }(msubsup_js_2.CommonMsupMixin(scriptbase_js_1.CHTMLscriptbase))); exports.CHTMLmsup = CHTMLmsup; var CHTMLmsubsup = (function (_super) { __extends(CHTMLmsubsup, _super); function CHTMLmsubsup() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmsubsup.prototype.markUsed = function () { _super.prototype.markUsed.call(this); CHTMLmsubsup.used = true; }; CHTMLmsubsup.prototype.toCHTML = function (parent) { var chtml = this.standardCHTMLnode(parent); var _a = __read([this.baseChild, this.supChild, this.subChild], 3), base = _a[0], sup = _a[1], sub = _a[2]; var _b = __read(this.getUVQ(base.getBBox(), sub.getBBox(), sup.getBBox()), 3), v = _b[1], q = _b[2]; var x = this.baseCore.bbox.ic ? this.coreIC() * this.coreScale() : 0; var style = { 'vertical-align': this.em(v) }; base.toCHTML(chtml); var stack = this.adaptor.append(chtml, this.html('mjx-script', { style: style })); sup.toCHTML(stack); this.adaptor.append(stack, this.html('mjx-spacer', { style: { 'margin-top': this.em(q) } })); sub.toCHTML(stack); var corebox = this.baseCore.bbox; if (corebox.ic) { this.adaptor.setStyle(sup.chtml, 'marginLeft', this.em(x / sup.bbox.rscale)); } }; CHTMLmsubsup.kind = msubsup_js_4.MmlMsubsup.prototype.kind; CHTMLmsubsup.styles = { 'mjx-script': { display: 'inline-block', 'padding-right': '.05em' }, 'mjx-script > *': { display: 'block' } }; CHTMLmsubsup.useIC = false; return CHTMLmsubsup; }(msubsup_js_3.CommonMsubsupMixin(scriptbase_js_1.CHTMLscriptbase))); exports.CHTMLmsubsup = CHTMLmsubsup; //# sourceMappingURL=msubsup.js.map /***/ }), /* 47 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMsubsupMixin = exports.CommonMsupMixin = exports.CommonMsubMixin = void 0; function CommonMsubMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_1.prototype, "script", { get: function () { return this.childNodes[this.node.sub]; }, enumerable: false, configurable: true }); class_1.prototype.getOffset = function (bbox, sbox) { return [0, -this.getV(bbox, sbox)]; }; return class_1; }(Base)); } exports.CommonMsubMixin = CommonMsubMixin; function CommonMsupMixin(Base) { return (function (_super) { __extends(class_2, _super); function class_2() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_2.prototype, "script", { get: function () { return this.childNodes[this.node.sup]; }, enumerable: false, configurable: true }); class_2.prototype.getOffset = function (bbox, sbox) { var x = (this.baseCore.bbox.ic ? .05 * this.baseCore.bbox.ic + .05 : 0); return [x * this.coreScale(), this.getU(bbox, sbox)]; }; return class_2; }(Base)); } exports.CommonMsupMixin = CommonMsupMixin; function CommonMsubsupMixin(Base) { return (function (_super) { __extends(class_3, _super); function class_3() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.UVQ = null; return _this; } Object.defineProperty(class_3.prototype, "subChild", { get: function () { return this.childNodes[this.node.sub]; }, enumerable: false, configurable: true }); Object.defineProperty(class_3.prototype, "supChild", { get: function () { return this.childNodes[this.node.sup]; }, enumerable: false, configurable: true }); class_3.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var basebox = this.baseChild.getBBox(); var subbox = this.subChild.getBBox(); var supbox = this.supChild.getBBox(); bbox.empty(); bbox.append(basebox); var w = bbox.w; var _a = __read(this.getUVQ(basebox, subbox, supbox), 2), u = _a[0], v = _a[1]; var x = (this.baseCore.bbox.ic ? this.coreIC() * this.coreScale() : 0); bbox.combine(subbox, w, v); bbox.combine(supbox, w + x, u); bbox.w += this.font.params.scriptspace; bbox.clean(); this.setChildPWidths(recompute); }; class_3.prototype.getUVQ = function (basebox, subbox, supbox) { if (this.UVQ) return this.UVQ; var tex = this.font.params; var t = 3 * tex.rule_thickness; var subscriptshift = this.length2em(this.node.attributes.get('subscriptshift'), tex.sub2); var drop = (this.isCharBase() ? 0 : basebox.d * basebox.rscale + tex.sub_drop * subbox.rscale); var _a = __read([this.getU(basebox, supbox), Math.max(drop, subscriptshift)], 2), u = _a[0], v = _a[1]; var q = (u - supbox.d * supbox.rscale) - (subbox.h * subbox.rscale - v); if (q < t) { v += t - q; var p = (4 / 5) * tex.x_height - (u - supbox.d * supbox.rscale); if (p > 0) { u += p; v -= p; } } u = Math.max(this.length2em(this.node.attributes.get('superscriptshift'), u), u); v = Math.max(this.length2em(this.node.attributes.get('subscriptshift'), v), v); q = (u - supbox.d * supbox.rscale) - (subbox.h * subbox.rscale - v); this.UVQ = [u, -v, q]; return this.UVQ; }; return class_3; }(Base)); } exports.CommonMsubsupMixin = CommonMsubsupMixin; //# sourceMappingURL=msubsup.js.map /***/ }), /* 48 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMunderoverMixin = exports.CommonMoverMixin = exports.CommonMunderMixin = void 0; function CommonMunderMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.stretchChildren(); return _this; } Object.defineProperty(class_1.prototype, "script", { get: function () { return this.childNodes[this.node.under]; }, enumerable: false, configurable: true }); class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } if (this.hasMovableLimits()) { _super.prototype.computeBBox.call(this, bbox, recompute); return; } bbox.empty(); var basebox = this.baseChild.getBBox(); var underbox = this.script.getBBox(); var v = this.getUnderKV(basebox, underbox)[1]; var delta = this.getDelta(true); var _a = __read(this.getDeltaW([basebox, underbox], [0, -delta]), 2), bw = _a[0], uw = _a[1]; bbox.combine(basebox, bw, 0); bbox.combine(underbox, uw, v); bbox.d += this.font.params.big_op_spacing5; bbox.ic = -this.baseCore.bbox.ic; bbox.clean(); this.setChildPWidths(recompute); }; return class_1; }(Base)); } exports.CommonMunderMixin = CommonMunderMixin; function CommonMoverMixin(Base) { return (function (_super) { __extends(class_2, _super); function class_2() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.stretchChildren(); return _this; } Object.defineProperty(class_2.prototype, "script", { get: function () { return this.childNodes[this.node.over]; }, enumerable: false, configurable: true }); class_2.prototype.computeBBox = function (bbox) { if (this.hasMovableLimits()) { _super.prototype.computeBBox.call(this, bbox); return; } bbox.empty(); var basebox = this.baseChild.getBBox(); var overbox = this.script.getBBox(); var u = this.getOverKU(basebox, overbox)[1]; var delta = this.getDelta(); var _a = __read(this.getDeltaW([basebox, overbox], [0, delta]), 2), bw = _a[0], ow = _a[1]; bbox.combine(basebox, bw, 0); bbox.combine(overbox, ow, u); bbox.h += this.font.params.big_op_spacing5; bbox.ic = -this.baseCore.bbox.ic; bbox.clean(); }; return class_2; }(Base)); } exports.CommonMoverMixin = CommonMoverMixin; function CommonMunderoverMixin(Base) { return (function (_super) { __extends(class_3, _super); function class_3() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.stretchChildren(); return _this; } Object.defineProperty(class_3.prototype, "underChild", { get: function () { return this.childNodes[this.node.under]; }, enumerable: false, configurable: true }); Object.defineProperty(class_3.prototype, "overChild", { get: function () { return this.childNodes[this.node.over]; }, enumerable: false, configurable: true }); Object.defineProperty(class_3.prototype, "subChild", { get: function () { return this.underChild; }, enumerable: false, configurable: true }); Object.defineProperty(class_3.prototype, "supChild", { get: function () { return this.overChild; }, enumerable: false, configurable: true }); class_3.prototype.computeBBox = function (bbox) { if (this.hasMovableLimits()) { _super.prototype.computeBBox.call(this, bbox); return; } bbox.empty(); var overbox = this.overChild.getBBox(); var basebox = this.baseChild.getBBox(); var underbox = this.underChild.getBBox(); var u = this.getOverKU(basebox, overbox)[1]; var v = this.getUnderKV(basebox, underbox)[1]; var delta = this.getDelta(); var _a = __read(this.getDeltaW([basebox, underbox, overbox], [0, -delta, delta]), 3), bw = _a[0], uw = _a[1], ow = _a[2]; bbox.combine(basebox, bw, 0); bbox.combine(overbox, ow, u); bbox.combine(underbox, uw, v); var z = this.font.params.big_op_spacing5; bbox.h += z; bbox.d += z; bbox.ic = -this.baseCore.bbox.ic; bbox.clean(); }; return class_3; }(Base)); } exports.CommonMunderoverMixin = CommonMunderoverMixin; //# sourceMappingURL=munderover.js.map /***/ }), /* 49 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.HTMLHandler = void 0; var Handler_js_1 = __webpack_require__(106); var HTMLDocument_js_1 = __webpack_require__(122); var HTMLHandler = (function (_super) { __extends(HTMLHandler, _super); function HTMLHandler() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.documentClass = HTMLDocument_js_1.HTMLDocument; return _this; } HTMLHandler.prototype.handlesDocument = function (document) { var adaptor = this.adaptor; if (typeof (document) === 'string') { try { document = adaptor.parse(document, 'text/html'); } catch (err) { } } if (document instanceof adaptor.window.Document || document instanceof adaptor.window.HTMLElement || document instanceof adaptor.window.DocumentFragment) { return true; } return false; }; HTMLHandler.prototype.create = function (document, options) { var adaptor = this.adaptor; if (typeof (document) === 'string') { document = adaptor.parse(document, 'text/html'); } else if (document instanceof adaptor.window.HTMLElement || document instanceof adaptor.window.DocumentFragment) { var child = document; document = adaptor.parse('', 'text/html'); adaptor.append(adaptor.body(document), child); } return _super.prototype.create.call(this, document, options); }; return HTMLHandler; }(Handler_js_1.AbstractHandler)); exports.HTMLHandler = HTMLHandler; //# sourceMappingURL=HTMLHandler.js.map /***/ }), /* 50 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.KEY = void 0; var KEY; (function (KEY) { KEY[KEY["RETURN"] = 13] = "RETURN"; KEY[KEY["ESCAPE"] = 27] = "ESCAPE"; KEY[KEY["SPACE"] = 32] = "SPACE"; KEY[KEY["LEFT"] = 37] = "LEFT"; KEY[KEY["UP"] = 38] = "UP"; KEY[KEY["RIGHT"] = 39] = "RIGHT"; KEY[KEY["DOWN"] = 40] = "DOWN"; })(KEY = exports.KEY || (exports.KEY = {})); //# sourceMappingURL=key_navigatable.js.map /***/ }), /* 51 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractVariableItem = void 0; var abstract_item_js_1 = __webpack_require__(36); var AbstractVariableItem = (function (_super) { __extends(AbstractVariableItem, _super); function AbstractVariableItem() { return _super !== null && _super.apply(this, arguments) || this; } AbstractVariableItem.prototype.generateHtml = function () { _super.prototype.generateHtml.call(this); var html = this.html; if (!this.span) { this.generateSpan(); } html.appendChild(this.span); this.update(); }; AbstractVariableItem.prototype.register = function () { this.variable.register(this); }; AbstractVariableItem.prototype.unregister = function () { this.variable.unregister(this); }; AbstractVariableItem.prototype.update = function () { this.updateAria(); if (this.span) { this.updateSpan(); } }; return AbstractVariableItem; }(abstract_item_js_1.AbstractItem)); exports.AbstractVariableItem = AbstractVariableItem; //# sourceMappingURL=abstract_variable_item.js.map /***/ }), /* 52 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractMathDocument = exports.RenderList = void 0; var Options_js_1 = __webpack_require__(6); var InputJax_js_1 = __webpack_require__(53); var OutputJax_js_1 = __webpack_require__(54); var MathList_js_1 = __webpack_require__(55); var MathItem_js_1 = __webpack_require__(15); var MmlFactory_js_1 = __webpack_require__(56); var BitField_js_1 = __webpack_require__(117); var PrioritizedList_js_1 = __webpack_require__(22); var RenderList = (function (_super) { __extends(RenderList, _super); function RenderList() { return _super !== null && _super.apply(this, arguments) || this; } RenderList.create = function (actions) { var e_1, _a; var list = new this(); try { for (var _b = __values(Object.keys(actions)), _c = _b.next(); !_c.done; _c = _b.next()) { var id = _c.value; var _d = __read(this.action(id, actions[id]), 2), action = _d[0], priority = _d[1]; if (priority) { list.add(action, priority); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return list; }; RenderList.action = function (id, action) { var _a, _b, _c, _d; var renderDoc, renderMath; var convert = true; var priority = action[0]; if (action.length === 1 || typeof action[1] === 'boolean') { action.length === 2 && (convert = action[1]); _a = __read(this.methodActions(id), 2), renderDoc = _a[0], renderMath = _a[1]; } else if (typeof action[1] === 'string') { if (typeof action[2] === 'string') { action.length === 4 && (convert = action[3]); var _e = __read(action.slice(1), 2), method1 = _e[0], method2 = _e[1]; _b = __read(this.methodActions(method1, method2), 2), renderDoc = _b[0], renderMath = _b[1]; } else { action.length === 3 && (convert = action[2]); _c = __read(this.methodActions(action[1]), 2), renderDoc = _c[0], renderMath = _c[1]; } } else { action.length === 4 && (convert = action[3]); _d = __read(action.slice(1), 2), renderDoc = _d[0], renderMath = _d[1]; } return [{ id: id, renderDoc: renderDoc, renderMath: renderMath, convert: convert }, priority]; }; RenderList.methodActions = function (method1, method2) { if (method2 === void 0) { method2 = method1; } return [ function (document) { method1 && document[method1](); return false; }, function (math, document) { method2 && math[method2](document); return false; } ]; }; RenderList.prototype.renderDoc = function (document, start) { var e_2, _a; if (start === void 0) { start = MathItem_js_1.STATE.UNPROCESSED; } try { for (var _b = __values(this.items), _c = _b.next(); !_c.done; _c = _b.next()) { var item = _c.value; if (item.priority >= start) { if (item.item.renderDoc(document)) return; } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } }; RenderList.prototype.renderMath = function (math, document, start) { var e_3, _a; if (start === void 0) { start = MathItem_js_1.STATE.UNPROCESSED; } try { for (var _b = __values(this.items), _c = _b.next(); !_c.done; _c = _b.next()) { var item = _c.value; if (item.priority >= start) { if (item.item.renderMath(math, document)) return; } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } }; RenderList.prototype.renderConvert = function (math, document, end) { var e_4, _a; if (end === void 0) { end = MathItem_js_1.STATE.LAST; } try { for (var _b = __values(this.items), _c = _b.next(); !_c.done; _c = _b.next()) { var item = _c.value; if (item.priority > end) return; if (item.item.convert) { if (item.item.renderMath(math, document)) return; } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } }; RenderList.prototype.findID = function (id) { var e_5, _a; try { for (var _b = __values(this.items), _c = _b.next(); !_c.done; _c = _b.next()) { var item = _c.value; if (item.item.id === id) { return item.item; } } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_5) throw e_5.error; } } return null; }; return RenderList; }(PrioritizedList_js_1.PrioritizedList)); exports.RenderList = RenderList; var DefaultInputJax = (function (_super) { __extends(DefaultInputJax, _super); function DefaultInputJax() { return _super !== null && _super.apply(this, arguments) || this; } DefaultInputJax.prototype.compile = function (_math) { return null; }; return DefaultInputJax; }(InputJax_js_1.AbstractInputJax)); var DefaultOutputJax = (function (_super) { __extends(DefaultOutputJax, _super); function DefaultOutputJax() { return _super !== null && _super.apply(this, arguments) || this; } DefaultOutputJax.prototype.typeset = function (_math, _document) { if (_document === void 0) { _document = null; } return null; }; DefaultOutputJax.prototype.escaped = function (_math, _document) { return null; }; return DefaultOutputJax; }(OutputJax_js_1.AbstractOutputJax)); var DefaultMathList = (function (_super) { __extends(DefaultMathList, _super); function DefaultMathList() { return _super !== null && _super.apply(this, arguments) || this; } return DefaultMathList; }(MathList_js_1.AbstractMathList)); var DefaultMathItem = (function (_super) { __extends(DefaultMathItem, _super); function DefaultMathItem() { return _super !== null && _super.apply(this, arguments) || this; } return DefaultMathItem; }(MathItem_js_1.AbstractMathItem)); var AbstractMathDocument = (function () { function AbstractMathDocument(document, adaptor, options) { var _this = this; var CLASS = this.constructor; this.document = document; this.options = Options_js_1.userOptions(Options_js_1.defaultOptions({}, CLASS.OPTIONS), options); this.math = new (this.options['MathList'] || DefaultMathList)(); this.renderActions = RenderList.create(this.options['renderActions']); this.processed = new AbstractMathDocument.ProcessBits(); this.outputJax = this.options['OutputJax'] || new DefaultOutputJax(); var inputJax = this.options['InputJax'] || [new DefaultInputJax()]; if (!Array.isArray(inputJax)) { inputJax = [inputJax]; } this.inputJax = inputJax; this.adaptor = adaptor; this.outputJax.setAdaptor(adaptor); this.inputJax.map(function (jax) { return jax.setAdaptor(adaptor); }); this.mmlFactory = this.options['MmlFactory'] || new MmlFactory_js_1.MmlFactory(); this.inputJax.map(function (jax) { return jax.setMmlFactory(_this.mmlFactory); }); this.outputJax.initialize(); this.inputJax.map(function (jax) { return jax.initialize(); }); } Object.defineProperty(AbstractMathDocument.prototype, "kind", { get: function () { return this.constructor.KIND; }, enumerable: false, configurable: true }); AbstractMathDocument.prototype.addRenderAction = function (id) { var action = []; for (var _i = 1; _i < arguments.length; _i++) { action[_i - 1] = arguments[_i]; } var _a = __read(RenderList.action(id, action), 2), fn = _a[0], p = _a[1]; this.renderActions.add(fn, p); }; AbstractMathDocument.prototype.removeRenderAction = function (id) { var action = this.renderActions.findID(id); if (action) { this.renderActions.remove(action); } }; AbstractMathDocument.prototype.render = function () { this.renderActions.renderDoc(this); return this; }; AbstractMathDocument.prototype.rerender = function (start) { if (start === void 0) { start = MathItem_js_1.STATE.RERENDER; } this.state(start - 1); this.render(); return this; }; AbstractMathDocument.prototype.convert = function (math, options) { if (options === void 0) { options = {}; } var _a = Options_js_1.userOptions({ format: this.inputJax[0].name, display: true, end: MathItem_js_1.STATE.LAST, em: 16, ex: 8, containerWidth: null, lineWidth: 1000000, scale: 1, family: '' }, options), format = _a.format, display = _a.display, end = _a.end, ex = _a.ex, em = _a.em, containerWidth = _a.containerWidth, lineWidth = _a.lineWidth, scale = _a.scale, family = _a.family; if (containerWidth === null) { containerWidth = 80 * ex; } var jax = this.inputJax.reduce(function (jax, ijax) { return (ijax.name === format ? ijax : jax); }, null); var mitem = new this.options.MathItem(math, jax, display); mitem.start.node = this.adaptor.body(this.document); mitem.setMetrics(em, ex, containerWidth, lineWidth, scale); if (this.outputJax.options.mtextInheritFont) { mitem.outputData.mtextFamily = family; } if (this.outputJax.options.merrorInheritFont) { mitem.outputData.merrorFamily = family; } mitem.convert(this, end); return (mitem.typesetRoot || mitem.root); }; AbstractMathDocument.prototype.findMath = function (_options) { if (_options === void 0) { _options = null; } this.processed.set('findMath'); return this; }; AbstractMathDocument.prototype.compile = function () { var e_6, _a, e_7, _b; if (!this.processed.isSet('compile')) { var recompile = []; try { for (var _c = __values(this.math), _d = _c.next(); !_d.done; _d = _c.next()) { var math = _d.value; this.compileMath(math); if (math.inputData.recompile !== undefined) { recompile.push(math); } } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_6) throw e_6.error; } } try { for (var recompile_1 = __values(recompile), recompile_1_1 = recompile_1.next(); !recompile_1_1.done; recompile_1_1 = recompile_1.next()) { var math = recompile_1_1.value; var data = math.inputData.recompile; math.state(data.state); math.inputData.recompile = data; this.compileMath(math); } } catch (e_7_1) { e_7 = { error: e_7_1 }; } finally { try { if (recompile_1_1 && !recompile_1_1.done && (_b = recompile_1.return)) _b.call(recompile_1); } finally { if (e_7) throw e_7.error; } } this.processed.set('compile'); } return this; }; AbstractMathDocument.prototype.compileMath = function (math) { try { math.compile(this); } catch (err) { if (err.retry || err.restart) { throw err; } this.options['compileError'](this, math, err); math.inputData['error'] = err; } }; AbstractMathDocument.prototype.compileError = function (math, err) { math.root = this.mmlFactory.create('math', null, [ this.mmlFactory.create('merror', { 'data-mjx-error': err.message, title: err.message }, [ this.mmlFactory.create('mtext', null, [ this.mmlFactory.create('text').setText('Math input error') ]) ]) ]); if (math.display) { math.root.attributes.set('display', 'block'); } math.inputData.error = err.message; }; AbstractMathDocument.prototype.typeset = function () { var e_8, _a; if (!this.processed.isSet('typeset')) { try { for (var _b = __values(this.math), _c = _b.next(); !_c.done; _c = _b.next()) { var math = _c.value; try { math.typeset(this); } catch (err) { if (err.retry || err.restart) { throw err; } this.options['typesetError'](this, math, err); math.outputData['error'] = err; } } } catch (e_8_1) { e_8 = { error: e_8_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_8) throw e_8.error; } } this.processed.set('typeset'); } return this; }; AbstractMathDocument.prototype.typesetError = function (math, err) { math.typesetRoot = this.adaptor.node('mjx-container', { class: 'MathJax mjx-output-error', jax: this.outputJax.name, }, [ this.adaptor.node('span', { 'data-mjx-error': err.message, title: err.message, style: { color: 'red', 'background-color': 'yellow', 'line-height': 'normal' } }, [ this.adaptor.text('Math output error') ]) ]); if (math.display) { this.adaptor.setAttributes(math.typesetRoot, { style: { display: 'block', margin: '1em 0', 'text-align': 'center' } }); } math.outputData.error = err.message; }; AbstractMathDocument.prototype.getMetrics = function () { if (!this.processed.isSet('getMetrics')) { this.outputJax.getMetrics(this); this.processed.set('getMetrics'); } return this; }; AbstractMathDocument.prototype.updateDocument = function () { var e_9, _a; if (!this.processed.isSet('updateDocument')) { try { for (var _b = __values(this.math.reversed()), _c = _b.next(); !_c.done; _c = _b.next()) { var math = _c.value; math.updateDocument(this); } } catch (e_9_1) { e_9 = { error: e_9_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_9) throw e_9.error; } } this.processed.set('updateDocument'); } return this; }; AbstractMathDocument.prototype.removeFromDocument = function (_restore) { if (_restore === void 0) { _restore = false; } return this; }; AbstractMathDocument.prototype.state = function (state, restore) { var e_10, _a; if (restore === void 0) { restore = false; } try { for (var _b = __values(this.math), _c = _b.next(); !_c.done; _c = _b.next()) { var math = _c.value; math.state(state, restore); } } catch (e_10_1) { e_10 = { error: e_10_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_10) throw e_10.error; } } if (state < MathItem_js_1.STATE.INSERTED) { this.processed.clear('updateDocument'); } if (state < MathItem_js_1.STATE.TYPESET) { this.processed.clear('typeset'); this.processed.clear('getMetrics'); } if (state < MathItem_js_1.STATE.COMPILED) { this.processed.clear('compile'); } return this; }; AbstractMathDocument.prototype.reset = function () { this.processed.reset(); return this; }; AbstractMathDocument.prototype.clear = function () { this.reset(); this.math.clear(); return this; }; AbstractMathDocument.prototype.concat = function (list) { this.math.merge(list); return this; }; AbstractMathDocument.prototype.clearMathItemsWithin = function (containers) { var _a; (_a = this.math).remove.apply(_a, __spread(this.getMathItemsWithin(containers))); }; AbstractMathDocument.prototype.getMathItemsWithin = function (elements) { var e_11, _a, e_12, _b; if (!Array.isArray(elements)) { elements = [elements]; } var adaptor = this.adaptor; var items = []; var containers = adaptor.getElements(elements, this.document); try { ITEMS: for (var _c = __values(this.math), _d = _c.next(); !_d.done; _d = _c.next()) { var item = _d.value; try { for (var containers_1 = (e_12 = void 0, __values(containers)), containers_1_1 = containers_1.next(); !containers_1_1.done; containers_1_1 = containers_1.next()) { var container = containers_1_1.value; if (item.start.node && adaptor.contains(container, item.start.node)) { items.push(item); continue ITEMS; } } } catch (e_12_1) { e_12 = { error: e_12_1 }; } finally { try { if (containers_1_1 && !containers_1_1.done && (_b = containers_1.return)) _b.call(containers_1); } finally { if (e_12) throw e_12.error; } } } } catch (e_11_1) { e_11 = { error: e_11_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_11) throw e_11.error; } } return items; }; AbstractMathDocument.KIND = 'MathDocument'; AbstractMathDocument.OPTIONS = { OutputJax: null, InputJax: null, MmlFactory: null, MathList: DefaultMathList, MathItem: DefaultMathItem, compileError: function (doc, math, err) { doc.compileError(math, err); }, typesetError: function (doc, math, err) { doc.typesetError(math, err); }, renderActions: Options_js_1.expandable({ find: [MathItem_js_1.STATE.FINDMATH, 'findMath', '', false], compile: [MathItem_js_1.STATE.COMPILED], metrics: [MathItem_js_1.STATE.METRICS, 'getMetrics', '', false], typeset: [MathItem_js_1.STATE.TYPESET], update: [MathItem_js_1.STATE.INSERTED, 'updateDocument', false] }) }; AbstractMathDocument.ProcessBits = BitField_js_1.BitFieldClass('findMath', 'compile', 'getMetrics', 'typeset', 'updateDocument'); return AbstractMathDocument; }()); exports.AbstractMathDocument = AbstractMathDocument; //# sourceMappingURL=MathDocument.js.map /***/ }), /* 53 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractInputJax = void 0; var Options_js_1 = __webpack_require__(6); var FunctionList_js_1 = __webpack_require__(31); var AbstractInputJax = (function () { function AbstractInputJax(options) { if (options === void 0) { options = {}; } this.adaptor = null; this.mmlFactory = null; var CLASS = this.constructor; this.options = Options_js_1.userOptions(Options_js_1.defaultOptions({}, CLASS.OPTIONS), options); this.preFilters = new FunctionList_js_1.FunctionList(); this.postFilters = new FunctionList_js_1.FunctionList(); } Object.defineProperty(AbstractInputJax.prototype, "name", { get: function () { return this.constructor.NAME; }, enumerable: false, configurable: true }); AbstractInputJax.prototype.setAdaptor = function (adaptor) { this.adaptor = adaptor; }; AbstractInputJax.prototype.setMmlFactory = function (mmlFactory) { this.mmlFactory = mmlFactory; }; AbstractInputJax.prototype.initialize = function () { }; Object.defineProperty(AbstractInputJax.prototype, "processStrings", { get: function () { return true; }, enumerable: false, configurable: true }); AbstractInputJax.prototype.findMath = function (_node, _options) { return []; }; AbstractInputJax.prototype.executeFilters = function (filters, math, document, data) { var args = { math: math, document: document, data: data }; filters.execute(args); return args.data; }; AbstractInputJax.NAME = 'generic'; AbstractInputJax.OPTIONS = {}; return AbstractInputJax; }()); exports.AbstractInputJax = AbstractInputJax; //# sourceMappingURL=InputJax.js.map /***/ }), /* 54 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractOutputJax = void 0; var Options_js_1 = __webpack_require__(6); var FunctionList_js_1 = __webpack_require__(31); var AbstractOutputJax = (function () { function AbstractOutputJax(options) { if (options === void 0) { options = {}; } this.adaptor = null; var CLASS = this.constructor; this.options = Options_js_1.userOptions(Options_js_1.defaultOptions({}, CLASS.OPTIONS), options); this.postFilters = new FunctionList_js_1.FunctionList(); } Object.defineProperty(AbstractOutputJax.prototype, "name", { get: function () { return this.constructor.NAME; }, enumerable: false, configurable: true }); AbstractOutputJax.prototype.setAdaptor = function (adaptor) { this.adaptor = adaptor; }; AbstractOutputJax.prototype.initialize = function () { }; AbstractOutputJax.prototype.getMetrics = function (_document) { }; AbstractOutputJax.prototype.styleSheet = function (_document) { return null; }; AbstractOutputJax.prototype.pageElements = function (_document) { return null; }; AbstractOutputJax.prototype.executeFilters = function (filters, math, document, data) { var args = { math: math, document: document, data: data }; filters.execute(args); return args.data; }; AbstractOutputJax.NAME = 'generic'; AbstractOutputJax.OPTIONS = {}; return AbstractOutputJax; }()); exports.AbstractOutputJax = AbstractOutputJax; //# sourceMappingURL=OutputJax.js.map /***/ }), /* 55 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractMathList = void 0; var LinkedList_js_1 = __webpack_require__(107); var AbstractMathList = (function (_super) { __extends(AbstractMathList, _super); function AbstractMathList() { return _super !== null && _super.apply(this, arguments) || this; } AbstractMathList.prototype.isBefore = function (a, b) { return (a.start.i < b.start.i || (a.start.i === b.start.i && a.start.n < b.start.n)); }; return AbstractMathList; }(LinkedList_js_1.LinkedList)); exports.AbstractMathList = AbstractMathList; //# sourceMappingURL=MathList.js.map /***/ }), /* 56 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlFactory = void 0; var NodeFactory_js_1 = __webpack_require__(108); var MML_js_1 = __webpack_require__(109); var MmlFactory = (function (_super) { __extends(MmlFactory, _super); function MmlFactory() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlFactory.prototype, "MML", { get: function () { return this.node; }, enumerable: false, configurable: true }); MmlFactory.defaultNodes = MML_js_1.MML; return MmlFactory; }(NodeFactory_js_1.AbstractNodeFactory)); exports.MmlFactory = MmlFactory; //# sourceMappingURL=MmlFactory.js.map /***/ }), /* 57 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractEmptyNode = exports.AbstractNode = void 0; var AbstractNode = (function () { function AbstractNode(factory, properties, children) { var e_1, _a; if (properties === void 0) { properties = {}; } if (children === void 0) { children = []; } this.parent = null; this.properties = {}; this._factory = null; this.childNodes = []; this._factory = factory; try { for (var _b = __values(Object.keys(properties)), _c = _b.next(); !_c.done; _c = _b.next()) { var name_1 = _c.value; this.setProperty(name_1, properties[name_1]); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } if (children.length) { this.setChildren(children); } } Object.defineProperty(AbstractNode.prototype, "factory", { get: function () { return this._factory; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractNode.prototype, "kind", { get: function () { return 'unknown'; }, enumerable: false, configurable: true }); AbstractNode.prototype.setProperty = function (name, value) { this.properties[name] = value; }; AbstractNode.prototype.getProperty = function (name) { return this.properties[name]; }; AbstractNode.prototype.getPropertyNames = function () { return Object.keys(this.properties); }; AbstractNode.prototype.getAllProperties = function () { return this.properties; }; AbstractNode.prototype.removeProperty = function () { var e_2, _a; var names = []; for (var _i = 0; _i < arguments.length; _i++) { names[_i] = arguments[_i]; } try { for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) { var name_2 = names_1_1.value; delete this.properties[name_2]; } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (names_1_1 && !names_1_1.done && (_a = names_1.return)) _a.call(names_1); } finally { if (e_2) throw e_2.error; } } }; AbstractNode.prototype.isKind = function (kind) { return this.factory.nodeIsKind(this, kind); }; AbstractNode.prototype.setChildren = function (children) { var e_3, _a; this.childNodes = []; try { for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) { var child = children_1_1.value; this.appendChild(child); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1); } finally { if (e_3) throw e_3.error; } } }; AbstractNode.prototype.appendChild = function (child) { this.childNodes.push(child); child.parent = this; return child; }; AbstractNode.prototype.replaceChild = function (newChild, oldChild) { var i = this.childIndex(oldChild); if (i !== null) { this.childNodes[i] = newChild; newChild.parent = this; } return newChild; }; AbstractNode.prototype.childIndex = function (node) { var i = this.childNodes.indexOf(node); return (i === -1 ? null : i); }; AbstractNode.prototype.findNodes = function (kind) { var nodes = []; this.walkTree(function (node) { if (node.isKind(kind)) { nodes.push(node); } }); return nodes; }; AbstractNode.prototype.walkTree = function (func, data) { var e_4, _a; func(this, data); try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child) { child.walkTree(func, data); } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } return data; }; AbstractNode.prototype.toString = function () { return this.kind + '(' + this.childNodes.join(',') + ')'; }; return AbstractNode; }()); exports.AbstractNode = AbstractNode; var AbstractEmptyNode = (function (_super) { __extends(AbstractEmptyNode, _super); function AbstractEmptyNode() { return _super !== null && _super.apply(this, arguments) || this; } AbstractEmptyNode.prototype.setChildren = function (_children) { }; AbstractEmptyNode.prototype.appendChild = function (child) { return child; }; AbstractEmptyNode.prototype.replaceChild = function (_newChild, oldChild) { return oldChild; }; AbstractEmptyNode.prototype.childIndex = function (_node) { return null; }; AbstractEmptyNode.prototype.walkTree = function (func, data) { func(this, data); return data; }; AbstractEmptyNode.prototype.toString = function () { return this.kind; }; return AbstractEmptyNode; }(AbstractNode)); exports.AbstractEmptyNode = AbstractEmptyNode; //# sourceMappingURL=Node.js.map /***/ }), /* 58 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMath = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMath = (function (_super) { __extends(MmlMath, _super); function MmlMath() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMath.prototype, "kind", { get: function () { return 'math'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMath.prototype, "linebreakContainer", { get: function () { return true; }, enumerable: false, configurable: true }); MmlMath.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) { if (this.attributes.get('mode') === 'display') { this.attributes.setInherited('display', 'block'); } attributes = this.addInheritedAttributes(attributes, this.attributes.getAllAttributes()); display = (!!this.attributes.get('displaystyle') || (!this.attributes.get('displaystyle') && this.attributes.get('display') === 'block')); this.attributes.setInherited('displaystyle', display); level = (this.attributes.get('scriptlevel') || this.constructor.defaults['scriptlevel']); _super.prototype.setChildInheritedAttributes.call(this, attributes, display, level, prime); }; MmlMath.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlLayoutNode.defaults), { mathvariant: 'normal', mathsize: 'normal', mathcolor: '', mathbackground: 'transparent', dir: 'ltr', scriptlevel: 0, displaystyle: false, display: 'inline', maxwidth: '', overflow: 'linebreak', altimg: '', 'altimg-width': '', 'altimg-height': '', 'altimg-valign': '', alttext: '', cdgroup: '', scriptsizemultiplier: 1 / Math.sqrt(2), scriptminsize: '8px', infixlinebreakstyle: 'before', lineleading: '1ex', linebreakmultchar: '\u2062', indentshift: 'auto', indentalign: 'auto', indenttarget: '', indentalignfirst: 'indentalign', indentshiftfirst: 'indentshift', indentalignlast: 'indentalign', indentshiftlast: 'indentshift' }); return MmlMath; }(MmlNode_js_1.AbstractMmlLayoutNode)); exports.MmlMath = MmlMath; //# sourceMappingURL=math.js.map /***/ }), /* 59 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMn = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMn = (function (_super) { __extends(MmlMn, _super); function MmlMn() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.texClass = MmlNode_js_1.TEXCLASS.ORD; return _this; } Object.defineProperty(MmlMn.prototype, "kind", { get: function () { return 'mn'; }, enumerable: false, configurable: true }); MmlMn.defaults = __assign({}, MmlNode_js_1.AbstractMmlTokenNode.defaults); return MmlMn; }(MmlNode_js_1.AbstractMmlTokenNode)); exports.MmlMn = MmlMn; //# sourceMappingURL=mn.js.map /***/ }), /* 60 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMtext = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMtext = (function (_super) { __extends(MmlMtext, _super); function MmlMtext() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.texClass = MmlNode_js_1.TEXCLASS.ORD; return _this; } Object.defineProperty(MmlMtext.prototype, "kind", { get: function () { return 'mtext'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMtext.prototype, "isSpacelike", { get: function () { return true; }, enumerable: false, configurable: true }); MmlMtext.defaults = __assign({}, MmlNode_js_1.AbstractMmlTokenNode.defaults); return MmlMtext; }(MmlNode_js_1.AbstractMmlTokenNode)); exports.MmlMtext = MmlMtext; //# sourceMappingURL=mtext.js.map /***/ }), /* 61 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMspace = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMspace = (function (_super) { __extends(MmlMspace, _super); function MmlMspace() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.texClass = MmlNode_js_1.TEXCLASS.ORD; return _this; } Object.defineProperty(MmlMspace.prototype, "kind", { get: function () { return 'mspace'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMspace.prototype, "arity", { get: function () { return 0; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMspace.prototype, "isSpacelike", { get: function () { return true; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMspace.prototype, "hasNewline", { get: function () { var attributes = this.attributes; return (attributes.getExplicit('width') == null && attributes.getExplicit('height') == null && attributes.getExplicit('depth') == null && attributes.get('linebreak') === 'newline'); }, enumerable: false, configurable: true }); MmlMspace.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlTokenNode.defaults), { width: '0em', height: '0ex', depth: '0ex', linebreak: 'auto' }); return MmlMspace; }(MmlNode_js_1.AbstractMmlTokenNode)); exports.MmlMspace = MmlMspace; //# sourceMappingURL=mspace.js.map /***/ }), /* 62 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMs = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMs = (function (_super) { __extends(MmlMs, _super); function MmlMs() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.texClass = MmlNode_js_1.TEXCLASS.ORD; return _this; } Object.defineProperty(MmlMs.prototype, "kind", { get: function () { return 'ms'; }, enumerable: false, configurable: true }); MmlMs.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlTokenNode.defaults), { lquote: '"', rquote: '"' }); return MmlMs; }(MmlNode_js_1.AbstractMmlTokenNode)); exports.MmlMs = MmlMs; //# sourceMappingURL=ms.js.map /***/ }), /* 63 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlInferredMrow = exports.MmlMrow = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMrow = (function (_super) { __extends(MmlMrow, _super); function MmlMrow() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._core = null; return _this; } Object.defineProperty(MmlMrow.prototype, "kind", { get: function () { return 'mrow'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMrow.prototype, "isSpacelike", { get: function () { var e_1, _a; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (!child.isSpacelike) { return false; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return true; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMrow.prototype, "isEmbellished", { get: function () { var e_2, _a; var embellished = false; var i = 0; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child) { if (child.isEmbellished) { if (embellished) { return false; } embellished = true; this._core = i; } else if (!child.isSpacelike) { return false; } } i++; } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } return embellished; }, enumerable: false, configurable: true }); MmlMrow.prototype.core = function () { if (!this.isEmbellished || this._core == null) { return this; } return this.childNodes[this._core]; }; MmlMrow.prototype.coreMO = function () { if (!this.isEmbellished || this._core == null) { return this; } return this.childNodes[this._core].coreMO(); }; MmlMrow.prototype.nonSpaceLength = function () { var e_3, _a; var n = 0; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child && !child.isSpacelike) { n++; } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } return n; }; MmlMrow.prototype.firstNonSpace = function () { var e_4, _a; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child && !child.isSpacelike) { return child; } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } return null; }; MmlMrow.prototype.lastNonSpace = function () { var i = this.childNodes.length; while (--i >= 0) { var child = this.childNodes[i]; if (child && !child.isSpacelike) { return child; } } return null; }; MmlMrow.prototype.setTeXclass = function (prev) { var e_5, _a, e_6, _b; if ((this.getProperty('open') != null || this.getProperty('close') != null) && (!prev || prev.getProperty('fnOP') != null)) { this.getPrevClass(prev); prev = null; try { for (var _c = __values(this.childNodes), _d = _c.next(); !_d.done; _d = _c.next()) { var child = _d.value; prev = child.setTeXclass(prev); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_5) throw e_5.error; } } if (this.texClass == null) { this.texClass = MmlNode_js_1.TEXCLASS.INNER; } } else { try { for (var _e = __values(this.childNodes), _f = _e.next(); !_f.done; _f = _e.next()) { var child = _f.value; prev = child.setTeXclass(prev); } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_6) throw e_6.error; } } if (this.childNodes[0]) { this.updateTeXclass(this.childNodes[0]); } } return prev; }; MmlMrow.defaults = __assign({}, MmlNode_js_1.AbstractMmlNode.defaults); return MmlMrow; }(MmlNode_js_1.AbstractMmlNode)); exports.MmlMrow = MmlMrow; var MmlInferredMrow = (function (_super) { __extends(MmlInferredMrow, _super); function MmlInferredMrow() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlInferredMrow.prototype, "kind", { get: function () { return 'inferredMrow'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlInferredMrow.prototype, "isInferred", { get: function () { return true; }, enumerable: false, configurable: true }); Object.defineProperty(MmlInferredMrow.prototype, "notParent", { get: function () { return true; }, enumerable: false, configurable: true }); MmlInferredMrow.prototype.toString = function () { return '[' + this.childNodes.join(',') + ']'; }; MmlInferredMrow.defaults = MmlMrow.defaults; return MmlInferredMrow; }(MmlMrow)); exports.MmlInferredMrow = MmlInferredMrow; //# sourceMappingURL=mrow.js.map /***/ }), /* 64 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMfrac = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMfrac = (function (_super) { __extends(MmlMfrac, _super); function MmlMfrac() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMfrac.prototype, "kind", { get: function () { return 'mfrac'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMfrac.prototype, "arity", { get: function () { return 2; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMfrac.prototype, "linebreakContainer", { get: function () { return true; }, enumerable: false, configurable: true }); MmlMfrac.prototype.setTeXclass = function (prev) { var e_1, _a; this.getPrevClass(prev); try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; child.setTeXclass(null); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return this; }; MmlMfrac.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) { if (!display || level > 0) { level++; } this.childNodes[0].setInheritedAttributes(attributes, false, level, prime); this.childNodes[1].setInheritedAttributes(attributes, false, level, true); }; MmlMfrac.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlBaseNode.defaults), { linethickness: 'medium', numalign: 'center', denomalign: 'center', bevelled: false }); return MmlMfrac; }(MmlNode_js_1.AbstractMmlBaseNode)); exports.MmlMfrac = MmlMfrac; //# sourceMappingURL=mfrac.js.map /***/ }), /* 65 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMsqrt = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMsqrt = (function (_super) { __extends(MmlMsqrt, _super); function MmlMsqrt() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.texClass = MmlNode_js_1.TEXCLASS.ORD; return _this; } Object.defineProperty(MmlMsqrt.prototype, "kind", { get: function () { return 'msqrt'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMsqrt.prototype, "arity", { get: function () { return -1; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMsqrt.prototype, "linebreakContainer", { get: function () { return true; }, enumerable: false, configurable: true }); MmlMsqrt.prototype.setTeXclass = function (prev) { this.getPrevClass(prev); this.childNodes[0].setTeXclass(null); return this; }; MmlMsqrt.prototype.setChildInheritedAttributes = function (attributes, display, level, _prime) { this.childNodes[0].setInheritedAttributes(attributes, display, level, true); }; MmlMsqrt.defaults = __assign({}, MmlNode_js_1.AbstractMmlNode.defaults); return MmlMsqrt; }(MmlNode_js_1.AbstractMmlNode)); exports.MmlMsqrt = MmlMsqrt; //# sourceMappingURL=msqrt.js.map /***/ }), /* 66 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMroot = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMroot = (function (_super) { __extends(MmlMroot, _super); function MmlMroot() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.texClass = MmlNode_js_1.TEXCLASS.ORD; return _this; } Object.defineProperty(MmlMroot.prototype, "kind", { get: function () { return 'mroot'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMroot.prototype, "arity", { get: function () { return 2; }, enumerable: false, configurable: true }); MmlMroot.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) { this.childNodes[0].setInheritedAttributes(attributes, display, level, true); this.childNodes[1].setInheritedAttributes(attributes, false, level + 2, prime); }; MmlMroot.defaults = __assign({}, MmlNode_js_1.AbstractMmlNode.defaults); return MmlMroot; }(MmlNode_js_1.AbstractMmlNode)); exports.MmlMroot = MmlMroot; //# sourceMappingURL=mroot.js.map /***/ }), /* 67 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMpadded = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMpadded = (function (_super) { __extends(MmlMpadded, _super); function MmlMpadded() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMpadded.prototype, "kind", { get: function () { return 'mpadded'; }, enumerable: false, configurable: true }); MmlMpadded.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlLayoutNode.defaults), { width: '', height: '', depth: '', lspace: 0, voffset: 0 }); return MmlMpadded; }(MmlNode_js_1.AbstractMmlLayoutNode)); exports.MmlMpadded = MmlMpadded; //# sourceMappingURL=mpadded.js.map /***/ }), /* 68 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMfenced = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMfenced = (function (_super) { __extends(MmlMfenced, _super); function MmlMfenced() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.texClass = MmlNode_js_1.TEXCLASS.INNER; _this.separators = []; _this.open = null; _this.close = null; return _this; } Object.defineProperty(MmlMfenced.prototype, "kind", { get: function () { return 'mfenced'; }, enumerable: false, configurable: true }); MmlMfenced.prototype.setTeXclass = function (prev) { this.getPrevClass(prev); if (this.open) { prev = this.open.setTeXclass(prev); } if (this.childNodes[0]) { prev = this.childNodes[0].setTeXclass(prev); } for (var i = 1, m = this.childNodes.length; i < m; i++) { if (this.separators[i - 1]) { prev = this.separators[i - 1].setTeXclass(prev); } if (this.childNodes[i]) { prev = this.childNodes[i].setTeXclass(prev); } } if (this.close) { prev = this.close.setTeXclass(prev); } this.updateTeXclass(this.open); return prev; }; MmlMfenced.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) { var e_1, _a; this.addFakeNodes(); try { for (var _b = __values([this.open, this.close].concat(this.separators)), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child) { child.setInheritedAttributes(attributes, display, level, prime); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } _super.prototype.setChildInheritedAttributes.call(this, attributes, display, level, prime); }; MmlMfenced.prototype.addFakeNodes = function () { var e_2, _a; var _b = this.attributes.getList('open', 'close', 'separators'), open = _b.open, close = _b.close, separators = _b.separators; open = open.replace(/[ \t\n\r]/g, ''); close = close.replace(/[ \t\n\r]/g, ''); separators = separators.replace(/[ \t\n\r]/g, ''); if (open) { this.open = this.fakeNode(open, { fence: true, form: 'prefix' }, MmlNode_js_1.TEXCLASS.OPEN); } if (separators) { while (separators.length < this.childNodes.length - 1) { separators += separators.charAt(separators.length - 1); } var i = 0; try { for (var _c = __values(this.childNodes.slice(1)), _d = _c.next(); !_d.done; _d = _c.next()) { var child = _d.value; if (child) { this.separators.push(this.fakeNode(separators.charAt(i++))); } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_2) throw e_2.error; } } } if (close) { this.close = this.fakeNode(close, { fence: true, form: 'postfix' }, MmlNode_js_1.TEXCLASS.CLOSE); } }; MmlMfenced.prototype.fakeNode = function (c, properties, texClass) { if (properties === void 0) { properties = {}; } if (texClass === void 0) { texClass = null; } var text = this.factory.create('text').setText(c); var node = this.factory.create('mo', properties, [text]); node.texClass = texClass; node.parent = this; return node; }; MmlMfenced.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlNode.defaults), { open: '(', close: ')', separators: ',' }); return MmlMfenced; }(MmlNode_js_1.AbstractMmlNode)); exports.MmlMfenced = MmlMfenced; //# sourceMappingURL=mfenced.js.map /***/ }), /* 69 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMenclose = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMenclose = (function (_super) { __extends(MmlMenclose, _super); function MmlMenclose() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.texClass = MmlNode_js_1.TEXCLASS.ORD; return _this; } Object.defineProperty(MmlMenclose.prototype, "kind", { get: function () { return 'menclose'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMenclose.prototype, "arity", { get: function () { return -1; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMenclose.prototype, "linebreakContininer", { get: function () { return true; }, enumerable: false, configurable: true }); MmlMenclose.prototype.setTeXclass = function (prev) { prev = this.childNodes[0].setTeXclass(prev); this.updateTeXclass(this.childNodes[0]); return prev; }; MmlMenclose.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlNode.defaults), { notation: 'longdiv' }); return MmlMenclose; }(MmlNode_js_1.AbstractMmlNode)); exports.MmlMenclose = MmlMenclose; //# sourceMappingURL=menclose.js.map /***/ }), /* 70 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMaction = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMaction = (function (_super) { __extends(MmlMaction, _super); function MmlMaction() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMaction.prototype, "kind", { get: function () { return 'maction'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMaction.prototype, "arity", { get: function () { return 1; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMaction.prototype, "selected", { get: function () { var selection = this.attributes.get('selection'); var i = Math.max(1, Math.min(this.childNodes.length, selection)) - 1; return this.childNodes[i] || this.factory.create('mrow'); }, enumerable: false, configurable: true }); Object.defineProperty(MmlMaction.prototype, "isEmbellished", { get: function () { return this.selected.isEmbellished; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMaction.prototype, "isSpacelike", { get: function () { return this.selected.isSpacelike; }, enumerable: false, configurable: true }); MmlMaction.prototype.core = function () { return this.selected.core(); }; MmlMaction.prototype.coreMO = function () { return this.selected.coreMO(); }; MmlMaction.prototype.verifyAttributes = function (options) { _super.prototype.verifyAttributes.call(this, options); if (this.attributes.get('actiontype') !== 'toggle' && this.attributes.getExplicit('selection') !== undefined) { var attributes = this.attributes.getAllAttributes(); delete attributes.selection; } }; MmlMaction.prototype.setTeXclass = function (prev) { if (this.attributes.get('actiontype') === 'tooltip' && this.childNodes[1]) { this.childNodes[1].setTeXclass(null); } var selected = this.selected; prev = selected.setTeXclass(prev); this.updateTeXclass(selected); return prev; }; MmlMaction.prototype.nextToggleSelection = function () { var selection = Math.max(1, this.attributes.get('selection') + 1); if (selection > this.childNodes.length) { selection = 1; } this.attributes.set('selection', selection); }; MmlMaction.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlNode.defaults), { actiontype: 'toggle', selection: 1 }); return MmlMaction; }(MmlNode_js_1.AbstractMmlNode)); exports.MmlMaction = MmlMaction; //# sourceMappingURL=maction.js.map /***/ }), /* 71 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMover = exports.MmlMunder = exports.MmlMunderover = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMunderover = (function (_super) { __extends(MmlMunderover, _super); function MmlMunderover() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMunderover.prototype, "kind", { get: function () { return 'munderover'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMunderover.prototype, "arity", { get: function () { return 3; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMunderover.prototype, "base", { get: function () { return 0; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMunderover.prototype, "under", { get: function () { return 1; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMunderover.prototype, "over", { get: function () { return 2; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMunderover.prototype, "linebreakContainer", { get: function () { return true; }, enumerable: false, configurable: true }); MmlMunderover.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) { var nodes = this.childNodes; nodes[0].setInheritedAttributes(attributes, display, level, prime || !!nodes[this.over]); var force = !!(!display && nodes[0].coreMO().attributes.get('movablelimits')); var ACCENTS = this.constructor.ACCENTS; nodes[1].setInheritedAttributes(attributes, false, this.getScriptlevel(ACCENTS[1], force, level), prime || this.under === 1); this.setInheritedAccent(1, ACCENTS[1], display, level, prime, force); if (!nodes[2]) { return; } nodes[2].setInheritedAttributes(attributes, false, this.getScriptlevel(ACCENTS[2], force, level), prime || this.under === 2); this.setInheritedAccent(2, ACCENTS[2], display, level, prime, force); }; MmlMunderover.prototype.getScriptlevel = function (accent, force, level) { if (force || !this.attributes.get(accent)) { level++; } return level; }; MmlMunderover.prototype.setInheritedAccent = function (n, accent, display, level, prime, force) { var node = this.childNodes[n]; if (this.attributes.getExplicit(accent) == null && node.isEmbellished) { var value = node.coreMO().attributes.get('accent'); this.attributes.setInherited(accent, value); if (value !== this.attributes.getDefault(accent)) { node.setInheritedAttributes({}, display, this.getScriptlevel(accent, force, level), prime); } } }; MmlMunderover.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlBaseNode.defaults), { accent: false, accentunder: false, align: 'center' }); MmlMunderover.ACCENTS = ['', 'accentunder', 'accent']; return MmlMunderover; }(MmlNode_js_1.AbstractMmlBaseNode)); exports.MmlMunderover = MmlMunderover; var MmlMunder = (function (_super) { __extends(MmlMunder, _super); function MmlMunder() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMunder.prototype, "kind", { get: function () { return 'munder'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMunder.prototype, "arity", { get: function () { return 2; }, enumerable: false, configurable: true }); MmlMunder.defaults = __assign({}, MmlMunderover.defaults); return MmlMunder; }(MmlMunderover)); exports.MmlMunder = MmlMunder; var MmlMover = (function (_super) { __extends(MmlMover, _super); function MmlMover() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMover.prototype, "kind", { get: function () { return 'mover'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMover.prototype, "arity", { get: function () { return 2; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMover.prototype, "over", { get: function () { return 1; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMover.prototype, "under", { get: function () { return 2; }, enumerable: false, configurable: true }); MmlMover.defaults = __assign({}, MmlMunderover.defaults); MmlMover.ACCENTS = ['', 'accent', 'accentunder']; return MmlMover; }(MmlMunderover)); exports.MmlMover = MmlMover; //# sourceMappingURL=munderover.js.map /***/ }), /* 72 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlNone = exports.MmlMprescripts = exports.MmlMmultiscripts = void 0; var MmlNode_js_1 = __webpack_require__(0); var msubsup_js_1 = __webpack_require__(39); var MmlMmultiscripts = (function (_super) { __extends(MmlMmultiscripts, _super); function MmlMmultiscripts() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMmultiscripts.prototype, "kind", { get: function () { return 'mmultiscripts'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMmultiscripts.prototype, "arity", { get: function () { return 1; }, enumerable: false, configurable: true }); MmlMmultiscripts.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) { this.childNodes[0].setInheritedAttributes(attributes, display, level, prime); var prescripts = false; for (var i = 1, n = 0; i < this.childNodes.length; i++) { var child = this.childNodes[i]; if (child.isKind('mprescripts')) { if (!prescripts) { prescripts = true; if (i % 2 === 0) { var mrow = this.factory.create('mrow'); this.childNodes.splice(i, 0, mrow); mrow.parent = this; i++; } } } else { var primestyle = prime || (n % 2 === 0); child.setInheritedAttributes(attributes, false, level + 1, primestyle); n++; } } if (this.childNodes.length % 2 === (prescripts ? 1 : 0)) { this.appendChild(this.factory.create('mrow')); this.childNodes[this.childNodes.length - 1].setInheritedAttributes(attributes, false, level + 1, prime); } }; MmlMmultiscripts.prototype.verifyChildren = function (options) { var prescripts = false; var fix = options['fixMmultiscripts']; for (var i = 0; i < this.childNodes.length; i++) { var child = this.childNodes[i]; if (child.isKind('mprescripts')) { if (prescripts) { child.mError(child.kind + ' can only appear once in ' + this.kind, options, true); } else { prescripts = true; if (i % 2 === 0 && !fix) { this.mError('There must be an equal number of prescripts of each type', options); } } } } if (this.childNodes.length % 2 === (prescripts ? 1 : 0) && !fix) { this.mError('There must be an equal number of scripts of each type', options); } _super.prototype.verifyChildren.call(this, options); }; MmlMmultiscripts.defaults = __assign({}, msubsup_js_1.MmlMsubsup.defaults); return MmlMmultiscripts; }(msubsup_js_1.MmlMsubsup)); exports.MmlMmultiscripts = MmlMmultiscripts; var MmlMprescripts = (function (_super) { __extends(MmlMprescripts, _super); function MmlMprescripts() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMprescripts.prototype, "kind", { get: function () { return 'mprescripts'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMprescripts.prototype, "arity", { get: function () { return 0; }, enumerable: false, configurable: true }); MmlMprescripts.prototype.verifyTree = function (options) { _super.prototype.verifyTree.call(this, options); if (this.parent && !this.parent.isKind('mmultiscripts')) { this.mError(this.kind + ' must be a child of mmultiscripts', options, true); } }; MmlMprescripts.defaults = __assign({}, MmlNode_js_1.AbstractMmlNode.defaults); return MmlMprescripts; }(MmlNode_js_1.AbstractMmlNode)); exports.MmlMprescripts = MmlMprescripts; var MmlNone = (function (_super) { __extends(MmlNone, _super); function MmlNone() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlNone.prototype, "kind", { get: function () { return 'none'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlNone.prototype, "arity", { get: function () { return 0; }, enumerable: false, configurable: true }); MmlNone.prototype.verifyTree = function (options) { _super.prototype.verifyTree.call(this, options); if (this.parent && !this.parent.isKind('mmultiscripts')) { this.mError(this.kind + ' must be a child of mmultiscripts', options, true); } }; MmlNone.defaults = __assign({}, MmlNode_js_1.AbstractMmlNode.defaults); return MmlNone; }(MmlNode_js_1.AbstractMmlNode)); exports.MmlNone = MmlNone; //# sourceMappingURL=mmultiscripts.js.map /***/ }), /* 73 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMtable = void 0; var MmlNode_js_1 = __webpack_require__(0); var string_js_1 = __webpack_require__(14); var MmlMtable = (function (_super) { __extends(MmlMtable, _super); function MmlMtable() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.properties = { useHeight: 1 }; _this.texClass = MmlNode_js_1.TEXCLASS.ORD; return _this; } Object.defineProperty(MmlMtable.prototype, "kind", { get: function () { return 'mtable'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMtable.prototype, "linebreakContainer", { get: function () { return true; }, enumerable: false, configurable: true }); MmlMtable.prototype.setInheritedAttributes = function (attributes, display, level, prime) { var e_1, _a; try { for (var indentAttributes_1 = __values(MmlNode_js_1.indentAttributes), indentAttributes_1_1 = indentAttributes_1.next(); !indentAttributes_1_1.done; indentAttributes_1_1 = indentAttributes_1.next()) { var name_1 = indentAttributes_1_1.value; if (attributes[name_1]) { this.attributes.setInherited(name_1, attributes[name_1][1]); } if (this.attributes.getExplicit(name_1) !== undefined) { delete (this.attributes.getAllAttributes())[name_1]; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (indentAttributes_1_1 && !indentAttributes_1_1.done && (_a = indentAttributes_1.return)) _a.call(indentAttributes_1); } finally { if (e_1) throw e_1.error; } } _super.prototype.setInheritedAttributes.call(this, attributes, display, level, prime); }; MmlMtable.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) { var e_2, _a, e_3, _b; try { for (var _c = __values(this.childNodes), _d = _c.next(); !_d.done; _d = _c.next()) { var child = _d.value; if (!child.isKind('mtr')) { this.replaceChild(this.factory.create('mtr'), child) .appendChild(child); } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_2) throw e_2.error; } } display = !!(this.attributes.getExplicit('displaystyle') || this.attributes.getDefault('displaystyle')); attributes = this.addInheritedAttributes(attributes, { columnalign: this.attributes.get('columnalign'), rowalign: 'center' }); var ralign = string_js_1.split(this.attributes.get('rowalign')); try { for (var _e = __values(this.childNodes), _f = _e.next(); !_f.done; _f = _e.next()) { var child = _f.value; attributes.rowalign[1] = ralign.shift() || attributes.rowalign[1]; child.setInheritedAttributes(attributes, display, level, prime); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_3) throw e_3.error; } } }; MmlMtable.prototype.verifyChildren = function (options) { var e_4, _a; if (!options['fixMtables']) { try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (!child.isKind('mtr')) { this.mError('Children of ' + this.kind + ' must be mtr or mlabeledtr', options); } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } } _super.prototype.verifyChildren.call(this, options); }; MmlMtable.prototype.setTeXclass = function (prev) { var e_5, _a; this.getPrevClass(prev); try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; child.setTeXclass(null); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_5) throw e_5.error; } } return this; }; MmlMtable.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlNode.defaults), { align: 'axis', rowalign: 'baseline', columnalign: 'center', groupalign: '{left}', alignmentscope: true, columnwidth: 'auto', width: 'auto', rowspacing: '1ex', columnspacing: '.8em', rowlines: 'none', columnlines: 'none', frame: 'none', framespacing: '0.4em 0.5ex', equalrows: false, equalcolumns: false, displaystyle: false, side: 'right', minlabelspacing: '0.8em' }); return MmlMtable; }(MmlNode_js_1.AbstractMmlNode)); exports.MmlMtable = MmlMtable; //# sourceMappingURL=mtable.js.map /***/ }), /* 74 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMlabeledtr = exports.MmlMtr = void 0; var MmlNode_js_1 = __webpack_require__(0); var Attributes_js_1 = __webpack_require__(26); var string_js_1 = __webpack_require__(14); var MmlMtr = (function (_super) { __extends(MmlMtr, _super); function MmlMtr() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMtr.prototype, "kind", { get: function () { return 'mtr'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMtr.prototype, "linebreakContainer", { get: function () { return true; }, enumerable: false, configurable: true }); MmlMtr.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) { var e_1, _a, e_2, _b; try { for (var _c = __values(this.childNodes), _d = _c.next(); !_d.done; _d = _c.next()) { var child = _d.value; if (!child.isKind('mtd')) { this.replaceChild(this.factory.create('mtd'), child) .appendChild(child); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_1) throw e_1.error; } } var calign = string_js_1.split(this.attributes.get('columnalign')); if (this.arity === 1) { calign.unshift(this.parent.attributes.get('side')); } attributes = this.addInheritedAttributes(attributes, { rowalign: this.attributes.get('rowalign'), columnalign: 'center' }); try { for (var _e = __values(this.childNodes), _f = _e.next(); !_f.done; _f = _e.next()) { var child = _f.value; attributes.columnalign[1] = calign.shift() || attributes.columnalign[1]; child.setInheritedAttributes(attributes, display, level, prime); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_2) throw e_2.error; } } }; MmlMtr.prototype.verifyChildren = function (options) { var e_3, _a; if (this.parent && !this.parent.isKind('mtable')) { this.mError(this.kind + ' can only be a child of an mtable', options, true); return; } if (!options['fixMtables']) { try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (!child.isKind('mtd')) { var mtr = this.replaceChild(this.factory.create('mtr'), child); mtr.mError('Children of ' + this.kind + ' must be mtd', options, true); } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } } _super.prototype.verifyChildren.call(this, options); }; MmlMtr.prototype.setTeXclass = function (prev) { var e_4, _a; this.getPrevClass(prev); try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; child.setTeXclass(null); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } return this; }; MmlMtr.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlNode.defaults), { rowalign: Attributes_js_1.INHERIT, columnalign: Attributes_js_1.INHERIT, groupalign: Attributes_js_1.INHERIT }); return MmlMtr; }(MmlNode_js_1.AbstractMmlNode)); exports.MmlMtr = MmlMtr; var MmlMlabeledtr = (function (_super) { __extends(MmlMlabeledtr, _super); function MmlMlabeledtr() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMlabeledtr.prototype, "kind", { get: function () { return 'mlabeledtr'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMlabeledtr.prototype, "arity", { get: function () { return 1; }, enumerable: false, configurable: true }); return MmlMlabeledtr; }(MmlMtr)); exports.MmlMlabeledtr = MmlMlabeledtr; //# sourceMappingURL=mtr.js.map /***/ }), /* 75 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMtd = void 0; var MmlNode_js_1 = __webpack_require__(0); var Attributes_js_1 = __webpack_require__(26); var MmlMtd = (function (_super) { __extends(MmlMtd, _super); function MmlMtd() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMtd.prototype, "kind", { get: function () { return 'mtd'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMtd.prototype, "arity", { get: function () { return -1; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMtd.prototype, "linebreakContainer", { get: function () { return true; }, enumerable: false, configurable: true }); MmlMtd.prototype.verifyChildren = function (options) { if (this.parent && !this.parent.isKind('mtr')) { this.mError(this.kind + ' can only be a child of an mtr or mlabeledtr', options, true); return; } _super.prototype.verifyChildren.call(this, options); }; MmlMtd.prototype.setTeXclass = function (prev) { this.getPrevClass(prev); this.childNodes[0].setTeXclass(null); return this; }; MmlMtd.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlBaseNode.defaults), { rowspan: 1, columnspan: 1, rowalign: Attributes_js_1.INHERIT, columnalign: Attributes_js_1.INHERIT, groupalign: Attributes_js_1.INHERIT }); return MmlMtd; }(MmlNode_js_1.AbstractMmlBaseNode)); exports.MmlMtd = MmlMtd; //# sourceMappingURL=mtd.js.map /***/ }), /* 76 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMglyph = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMglyph = (function (_super) { __extends(MmlMglyph, _super); function MmlMglyph() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.texClass = MmlNode_js_1.TEXCLASS.ORD; return _this; } Object.defineProperty(MmlMglyph.prototype, "kind", { get: function () { return 'mglyph'; }, enumerable: false, configurable: true }); MmlMglyph.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlTokenNode.defaults), { alt: '', src: '', width: 'auto', height: 'auto', valign: '0em' }); return MmlMglyph; }(MmlNode_js_1.AbstractMmlTokenNode)); exports.MmlMglyph = MmlMglyph; //# sourceMappingURL=mglyph.js.map /***/ }), /* 77 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlAnnotation = exports.MmlAnnotationXML = exports.MmlSemantics = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlSemantics = (function (_super) { __extends(MmlSemantics, _super); function MmlSemantics() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlSemantics.prototype, "kind", { get: function () { return 'semantics'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlSemantics.prototype, "arity", { get: function () { return 1; }, enumerable: false, configurable: true }); Object.defineProperty(MmlSemantics.prototype, "notParent", { get: function () { return true; }, enumerable: false, configurable: true }); MmlSemantics.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlBaseNode.defaults), { definitionUrl: null, encoding: null }); return MmlSemantics; }(MmlNode_js_1.AbstractMmlBaseNode)); exports.MmlSemantics = MmlSemantics; var MmlAnnotationXML = (function (_super) { __extends(MmlAnnotationXML, _super); function MmlAnnotationXML() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlAnnotationXML.prototype, "kind", { get: function () { return 'annotation-xml'; }, enumerable: false, configurable: true }); MmlAnnotationXML.prototype.setChildInheritedAttributes = function () { }; MmlAnnotationXML.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlNode.defaults), { definitionUrl: null, encoding: null, cd: 'mathmlkeys', name: '', src: null }); return MmlAnnotationXML; }(MmlNode_js_1.AbstractMmlNode)); exports.MmlAnnotationXML = MmlAnnotationXML; var MmlAnnotation = (function (_super) { __extends(MmlAnnotation, _super); function MmlAnnotation() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.properties = { isChars: true }; return _this; } Object.defineProperty(MmlAnnotation.prototype, "kind", { get: function () { return 'annotation'; }, enumerable: false, configurable: true }); MmlAnnotation.defaults = __assign({}, MmlAnnotationXML.defaults); return MmlAnnotation; }(MmlAnnotationXML)); exports.MmlAnnotation = MmlAnnotation; //# sourceMappingURL=semantics.js.map /***/ }), /* 78 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TeXAtom = void 0; var MmlNode_js_1 = __webpack_require__(0); var mo_js_1 = __webpack_require__(32); var TeXAtom = (function (_super) { __extends(TeXAtom, _super); function TeXAtom() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.texClass = MmlNode_js_1.TEXCLASS.ORD; return _this; } Object.defineProperty(TeXAtom.prototype, "kind", { get: function () { return 'TeXAtom'; }, enumerable: false, configurable: true }); Object.defineProperty(TeXAtom.prototype, "arity", { get: function () { return -1; }, enumerable: false, configurable: true }); Object.defineProperty(TeXAtom.prototype, "notParent", { get: function () { return true; }, enumerable: false, configurable: true }); TeXAtom.prototype.setTeXclass = function (prev) { this.childNodes[0].setTeXclass(null); return this.adjustTeXclass(prev); }; TeXAtom.prototype.adjustTeXclass = function (prev) { return prev; }; TeXAtom.defaults = __assign({}, MmlNode_js_1.AbstractMmlBaseNode.defaults); return TeXAtom; }(MmlNode_js_1.AbstractMmlBaseNode)); exports.TeXAtom = TeXAtom; TeXAtom.prototype.adjustTeXclass = mo_js_1.MmlMo.prototype.adjustTeXclass; //# sourceMappingURL=TeXAtom.js.map /***/ }), /* 79 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlVisitor = void 0; var MmlFactory_js_1 = __webpack_require__(56); var Visitor_js_1 = __webpack_require__(119); var MmlVisitor = (function (_super) { __extends(MmlVisitor, _super); function MmlVisitor(factory) { if (factory === void 0) { factory = null; } var _this = this; if (!factory) { factory = new MmlFactory_js_1.MmlFactory(); } _this = _super.call(this, factory) || this; return _this; } MmlVisitor.prototype.visitTextNode = function (_node) { var _args = []; for (var _i = 1; _i < arguments.length; _i++) { _args[_i - 1] = arguments[_i]; } }; MmlVisitor.prototype.visitXMLNode = function (_node) { var _args = []; for (var _i = 1; _i < arguments.length; _i++) { _args[_i - 1] = arguments[_i]; } }; return MmlVisitor; }(Visitor_js_1.AbstractVisitor)); exports.MmlVisitor = MmlVisitor; //# sourceMappingURL=MmlVisitor.js.map /***/ }), /* 80 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SerializedMmlVisitor = exports.toEntity = exports.DATAMJX = void 0; var MmlVisitor_js_1 = __webpack_require__(79); var MmlNode_js_1 = __webpack_require__(0); var mi_js_1 = __webpack_require__(38); exports.DATAMJX = 'data-mjx-'; exports.toEntity = function (c) { return '&#x' + c.codePointAt(0).toString(16).toUpperCase() + ';'; }; var SerializedMmlVisitor = (function (_super) { __extends(SerializedMmlVisitor, _super); function SerializedMmlVisitor() { return _super !== null && _super.apply(this, arguments) || this; } SerializedMmlVisitor.prototype.visitTree = function (node) { return this.visitNode(node, ''); }; SerializedMmlVisitor.prototype.visitTextNode = function (node, _space) { return this.quoteHTML(node.getText()); }; SerializedMmlVisitor.prototype.visitXMLNode = function (node, space) { return space + node.getSerializedXML(); }; SerializedMmlVisitor.prototype.visitInferredMrowNode = function (node, space) { var e_1, _a; var mml = []; try { for (var _b = __values(node.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; mml.push(this.visitNode(child, space)); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return mml.join('\n'); }; SerializedMmlVisitor.prototype.visitTeXAtomNode = function (node, space) { var children = this.childNodeMml(node, space + ' ', '\n'); var mml = space + '' + (children.match(/\S/) ? '\n' + children + space : '') + ''; return mml; }; SerializedMmlVisitor.prototype.visitAnnotationNode = function (node, space) { return space + '' + this.childNodeMml(node, '', '') + ''; }; SerializedMmlVisitor.prototype.visitDefault = function (node, space) { var kind = node.kind; var _a = __read((node.isToken || node.childNodes.length === 0 ? ['', ''] : ['\n', space]), 2), nl = _a[0], endspace = _a[1]; var children = this.childNodeMml(node, space + ' ', nl); return space + '<' + kind + this.getAttributes(node) + '>' + (children.match(/\S/) ? nl + children + endspace : '') + ''; }; SerializedMmlVisitor.prototype.childNodeMml = function (node, space, nl) { var e_2, _a; var mml = ''; try { for (var _b = __values(node.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; mml += this.visitNode(child, space) + nl; } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } return mml; }; SerializedMmlVisitor.prototype.getAttributes = function (node) { var e_3, _a; var attr = []; var defaults = this.constructor.defaultAttributes[node.kind] || {}; var attributes = Object.assign({}, defaults, this.getDataAttributes(node), node.attributes.getAllAttributes()); var variants = this.constructor.variants; if (attributes.hasOwnProperty('mathvariant') && variants.hasOwnProperty(attributes.mathvariant)) { attributes.mathvariant = variants[attributes.mathvariant]; } try { for (var _b = __values(Object.keys(attributes)), _c = _b.next(); !_c.done; _c = _b.next()) { var name_1 = _c.value; var value = String(attributes[name_1]); if (value === undefined) continue; attr.push(name_1 + '="' + this.quoteHTML(value) + '"'); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } return attr.length ? ' ' + attr.join(' ') : ''; }; SerializedMmlVisitor.prototype.getDataAttributes = function (node) { var data = {}; var variant = node.attributes.getExplicit('mathvariant'); var variants = this.constructor.variants; variant && variants.hasOwnProperty(variant) && this.setDataAttribute(data, 'variant', variant); node.getProperty('variantForm') && this.setDataAttribute(data, 'alternate', '1'); var texclass = node.getProperty('texClass'); if (texclass !== undefined) { var setclass = true; if (texclass === MmlNode_js_1.TEXCLASS.OP && node.isKind('mi')) { var name_2 = node.getText(); setclass = !(name_2.length > 1 && name_2.match(mi_js_1.MmlMi.operatorName)); } setclass && this.setDataAttribute(data, 'texclass', texclass < 0 ? 'NONE' : MmlNode_js_1.TEXCLASSNAMES[texclass]); } return data; }; SerializedMmlVisitor.prototype.setDataAttribute = function (data, name, value) { data[exports.DATAMJX + name] = value; }; SerializedMmlVisitor.prototype.quoteHTML = function (value) { return value .replace(/&/g, '&') .replace(//g, '>') .replace(/\"/g, '"') .replace(/[\uD800-\uDBFF]./g, exports.toEntity) .replace(/[\u0080-\uD7FF\uE000-\uFFFF]/g, exports.toEntity); }; SerializedMmlVisitor.variants = { '-tex-calligraphic': 'script', '-tex-calligraphic-bold': 'bold-script', '-tex-oldstyle': 'normal', '-tex-oldstyle-bold': 'bold', '-tex-mathit': 'italic' }; SerializedMmlVisitor.defaultAttributes = { math: { xmlns: 'http://www.w3.org/1998/Math/MathML' } }; return SerializedMmlVisitor; }(MmlVisitor_js_1.MmlVisitor)); exports.SerializedMmlVisitor = SerializedMmlVisitor; //# sourceMappingURL=SerializedMmlVisitor.js.map /***/ }), /* 81 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Styles = void 0; var TRBL = ['top', 'right', 'bottom', 'left']; var WSC = ['width', 'style', 'color']; function splitSpaces(text) { var parts = text.split(/((?:'[^']*'|"[^"]*"|,[\s\n]|[^\s\n])*)/g); var split = []; while (parts.length > 1) { parts.shift(); split.push(parts.shift()); } return split; } function splitTRBL(name) { var e_1, _a; var parts = splitSpaces(this.styles[name]); if (parts.length === 0) { parts.push(''); } if (parts.length === 1) { parts.push(parts[0]); } if (parts.length === 2) { parts.push(parts[0]); } if (parts.length === 3) { parts.push(parts[1]); } try { for (var _b = __values(Styles.connect[name].children), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; this.setStyle(this.childName(name, child), parts.shift()); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } function combineTRBL(name) { var e_2, _a; var children = Styles.connect[name].children; var parts = []; try { for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) { var child = children_1_1.value; var part = this.styles[name + '-' + child]; if (!part) { delete this.styles[name]; return; } parts.push(part); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1); } finally { if (e_2) throw e_2.error; } } if (parts[3] === parts[1]) { parts.pop(); if (parts[2] === parts[0]) { parts.pop(); if (parts[1] === parts[0]) { parts.pop(); } } } this.styles[name] = parts.join(' '); } function splitSame(name) { var e_3, _a; try { for (var _b = __values(Styles.connect[name].children), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; this.setStyle(this.childName(name, child), this.styles[name]); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } } function combineSame(name) { var e_4, _a; var children = __spread(Styles.connect[name].children); var value = this.styles[this.childName(name, children.shift())]; try { for (var children_2 = __values(children), children_2_1 = children_2.next(); !children_2_1.done; children_2_1 = children_2.next()) { var child = children_2_1.value; if (this.styles[this.childName(name, child)] !== value) { delete this.styles[name]; return; } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (children_2_1 && !children_2_1.done && (_a = children_2.return)) _a.call(children_2); } finally { if (e_4) throw e_4.error; } } this.styles[name] = value; } var BORDER = { width: /^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/, style: /^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/ }; function splitWSC(name) { var e_5, _a, e_6, _b; var parts = { width: '', style: '', color: '' }; try { for (var _c = __values(splitSpaces(this.styles[name])), _d = _c.next(); !_d.done; _d = _c.next()) { var part = _d.value; if (part.match(BORDER.width) && parts.width === '') { parts.width = part; } else if (part.match(BORDER.style) && parts.style === '') { parts.style = part; } else { parts.color = part; } } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_5) throw e_5.error; } } try { for (var _e = __values(Styles.connect[name].children), _f = _e.next(); !_f.done; _f = _e.next()) { var child = _f.value; this.setStyle(this.childName(name, child), parts[child]); } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_6) throw e_6.error; } } } function combineWSC(name) { var e_7, _a; var parts = []; try { for (var _b = __values(Styles.connect[name].children), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; var value = this.styles[this.childName(name, child)]; if (value) { parts.push(value); } } } catch (e_7_1) { e_7 = { error: e_7_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_7) throw e_7.error; } } if (parts.length) { this.styles[name] = parts.join(' '); } else { delete this.styles[name]; } } var FONT = { style: /^(?:normal|italic|oblique|inherit|initial|unset)$/, variant: new RegExp('^(?:' + ['normal|none', 'inherit|initial|unset', 'common-ligatures|no-common-ligatures', 'discretionary-ligatures|no-discretionary-ligatures', 'historical-ligatures|no-historical-ligatures', 'contextual|no-contextual', '(?:stylistic|character-variant|swash|ornaments|annotation)\\([^)]*\\)', 'small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps', 'lining-nums|oldstyle-nums|proportional-nums|tabular-nums', 'diagonal-fractions|stacked-fractions', 'ordinal|slashed-zero', 'jis78|jis83|jis90|jis04|simplified|traditional', 'full-width|proportional-width', 'ruby'].join('|') + ')$'), weight: /^(?:normal|bold|bolder|lighter|[1-9]00|inherit|initial|unset)$/, stretch: new RegExp('^(?:' + ['normal', '(?:(?:ultra|extra|semi)-)?condensed', '(?:(?:semi|extra|ulta)-)?expanded', 'inherit|initial|unset'].join('|') + ')$'), size: new RegExp('^(?:' + ['xx-small|x-small|small|medium|large|x-large|xx-large|larger|smaller', '[\d.]+%|[\d.]+[a-z]+', 'inherit|initial|unset'].join('|') + ')' + '(?:\/(?:normal|[\d.\+](?:%|[a-z]+)?))?$') }; function splitFont(name) { var e_8, _a, e_9, _b; var parts = splitSpaces(this.styles[name]); var value = { style: '', variant: [], weight: '', stretch: '', size: '', family: '', 'line-height': '' }; try { for (var parts_1 = __values(parts), parts_1_1 = parts_1.next(); !parts_1_1.done; parts_1_1 = parts_1.next()) { var part = parts_1_1.value; value.family = part; try { for (var _c = (e_9 = void 0, __values(Object.keys(FONT))), _d = _c.next(); !_d.done; _d = _c.next()) { var name_1 = _d.value; if ((Array.isArray(value[name_1]) || value[name_1] === '') && part.match(FONT[name_1])) { if (name_1 === 'size') { var _e = __read(part.split(/\//), 2), size = _e[0], height = _e[1]; value[name_1] = size; if (height) { value['line-height'] = height; } } else if (value.size === '') { if (Array.isArray(value[name_1])) { value[name_1].push(part); } else { value[name_1] = part; } } } } } catch (e_9_1) { e_9 = { error: e_9_1 }; } finally { try { if (_d && !_d.done && (_b = _c.return)) _b.call(_c); } finally { if (e_9) throw e_9.error; } } } } catch (e_8_1) { e_8 = { error: e_8_1 }; } finally { try { if (parts_1_1 && !parts_1_1.done && (_a = parts_1.return)) _a.call(parts_1); } finally { if (e_8) throw e_8.error; } } saveFontParts(name, value); delete this.styles[name]; } function saveFontParts(name, value) { var e_10, _a; try { for (var _b = __values(Styles.connect[name].children), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; var cname = this.childName(name, child); if (Array.isArray(value[child])) { var values = value[child]; if (values.length) { this.styles[cname] = values.join(' '); } } else if (value[child] !== '') { this.styles[cname] = value[child]; } } } catch (e_10_1) { e_10 = { error: e_10_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_10) throw e_10.error; } } } function combineFont(_name) { } var Styles = (function () { function Styles(cssText) { if (cssText === void 0) { cssText = ''; } this.parse(cssText); } Object.defineProperty(Styles.prototype, "cssText", { get: function () { var e_11, _a; var styles = []; try { for (var _b = __values(Object.keys(this.styles)), _c = _b.next(); !_c.done; _c = _b.next()) { var name_2 = _c.value; var parent_1 = this.parentName(name_2); if (!this.styles[parent_1]) { styles.push(name_2 + ': ' + this.styles[name_2]); } } } catch (e_11_1) { e_11 = { error: e_11_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_11) throw e_11.error; } } return styles.join('; '); }, enumerable: false, configurable: true }); Styles.prototype.set = function (name, value) { name = this.normalizeName(name); this.setStyle(name, value); if (Styles.connect[name] && !Styles.connect[name].combine) { this.combineChildren(name); delete this.styles[name]; } while (name.match(/-/)) { name = this.parentName(name); if (!Styles.connect[name]) break; Styles.connect[name].combine.call(this, name); } }; Styles.prototype.get = function (name) { name = this.normalizeName(name); return (this.styles.hasOwnProperty(name) ? this.styles[name] : ''); }; Styles.prototype.setStyle = function (name, value) { this.styles[name] = value; if (Styles.connect[name] && Styles.connect[name].children) { Styles.connect[name].split.call(this, name); } if (value === '') { delete this.styles[name]; } }; Styles.prototype.combineChildren = function (name) { var e_12, _a; var parent = this.parentName(name); try { for (var _b = __values(Styles.connect[name].children), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; var cname = this.childName(parent, child); Styles.connect[cname].combine.call(this, cname); } } catch (e_12_1) { e_12 = { error: e_12_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_12) throw e_12.error; } } }; Styles.prototype.parentName = function (name) { var parent = name.replace(/-[^-]*$/, ''); return (name === parent ? '' : parent); }; Styles.prototype.childName = function (name, child) { if (child.match(/-/)) { return child; } if (Styles.connect[name] && !Styles.connect[name].combine) { child += name.replace(/.*-/, '-'); name = this.parentName(name); } return name + '-' + child; }; Styles.prototype.normalizeName = function (name) { return name.replace(/[A-Z]/g, function (c) { return '-' + c.toLowerCase(); }); }; Styles.prototype.parse = function (cssText) { if (cssText === void 0) { cssText = ''; } var PATTERN = this.constructor.pattern; this.styles = {}; var parts = cssText.replace(PATTERN.comment, '').split(PATTERN.style); while (parts.length > 1) { var _a = __read(parts.splice(0, 3), 3), space = _a[0], name_3 = _a[1], value = _a[2]; if (space.match(/[^\s\n]/)) return; this.set(name_3, value); } }; Styles.pattern = { style: /([-a-z]+)[\s\n]*:[\s\n]*((?:'[^']*'|"[^"]*"|\n|.)*?)[\s\n]*(?:;|$)/g, comment: /\/\*[^]*?\*\//g }; Styles.connect = { padding: { children: TRBL, split: splitTRBL, combine: combineTRBL }, border: { children: TRBL, split: splitSame, combine: combineSame }, 'border-top': { children: WSC, split: splitWSC, combine: combineWSC }, 'border-right': { children: WSC, split: splitWSC, combine: combineWSC }, 'border-bottom': { children: WSC, split: splitWSC, combine: combineWSC }, 'border-left': { children: WSC, split: splitWSC, combine: combineWSC }, 'border-width': { children: TRBL, split: splitTRBL, combine: null }, 'border-style': { children: TRBL, split: splitTRBL, combine: null }, 'border-color': { children: TRBL, split: splitTRBL, combine: null }, font: { children: ['style', 'variant', 'weight', 'stretch', 'line-height', 'size', 'family'], split: splitFont, combine: combineFont } }; return Styles; }()); exports.Styles = Styles; //# sourceMappingURL=Styles.js.map /***/ }), /* 82 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); var NodeUtil_js_1 = __webpack_require__(7); var Stack = (function () { function Stack(_factory, _env, inner) { this._factory = _factory; this._env = _env; this.global = {}; this.stack = []; this.global = { isInner: inner }; this.stack = [this._factory.create('start', this.global)]; if (_env) { this.stack[0].env = _env; } this.env = this.stack[0].env; } Object.defineProperty(Stack.prototype, "env", { get: function () { return this._env; }, set: function (env) { this._env = env; }, enumerable: false, configurable: true }); Stack.prototype.Push = function () { var e_1, _a; var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } try { for (var args_1 = __values(args), args_1_1 = args_1.next(); !args_1_1.done; args_1_1 = args_1.next()) { var node = args_1_1.value; if (!node) { continue; } var item = NodeUtil_js_1.default.isNode(node) ? this._factory.create('mml', node) : node; item.global = this.global; var _b = __read(this.stack.length ? this.Top().checkItem(item) : [null, true], 2), top_1 = _b[0], success = _b[1]; if (!success) { continue; } if (top_1) { this.Pop(); this.Push.apply(this, __spread(top_1)); continue; } this.stack.push(item); if (item.env) { if (item.copyEnv) { Object.assign(item.env, this.env); } this.env = item.env; } else { item.env = this.env; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (args_1_1 && !args_1_1.done && (_a = args_1.return)) _a.call(args_1); } finally { if (e_1) throw e_1.error; } } }; Stack.prototype.Pop = function () { var item = this.stack.pop(); if (!item.isOpen) { delete item.env; } this.env = (this.stack.length ? this.Top().env : {}); return item; }; Stack.prototype.Top = function (n) { if (n === void 0) { n = 1; } return this.stack.length < n ? null : this.stack[this.stack.length - n]; }; Stack.prototype.Prev = function (noPop) { var top = this.Top(); return noPop ? top.First : top.Pop(); }; Stack.prototype.toString = function () { return 'stack[\n ' + this.stack.join('\n ') + '\n]'; }; return Stack; }()); exports.default = Stack; //# sourceMappingURL=Stack.js.map /***/ }), /* 83 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); var StackItemFactory_js_1 = __webpack_require__(131); var NodeFactory_js_1 = __webpack_require__(41); var Options_js_1 = __webpack_require__(6); var ParseOptions = (function () { function ParseOptions(configuration, options) { if (options === void 0) { options = []; } this.options = {}; this.packageData = new Map(); this.parsers = []; this.root = null; this.nodeLists = {}; this.error = false; this.handlers = configuration.handlers; this.nodeFactory = new NodeFactory_js_1.NodeFactory(); this.nodeFactory.configuration = this; this.nodeFactory.setCreators(configuration.nodes); this.itemFactory = new StackItemFactory_js_1.default(configuration.items); this.itemFactory.configuration = this; Options_js_1.defaultOptions.apply(void 0, __spread([this.options], options)); Options_js_1.defaultOptions(this.options, configuration.options); } ParseOptions.prototype.pushParser = function (parser) { this.parsers.unshift(parser); }; ParseOptions.prototype.popParser = function () { this.parsers.shift(); }; Object.defineProperty(ParseOptions.prototype, "parser", { get: function () { return this.parsers[0]; }, enumerable: false, configurable: true }); ParseOptions.prototype.clear = function () { this.parsers = []; this.root = null; this.nodeLists = {}; this.error = false; this.tags.resetTag(); }; ParseOptions.prototype.addNode = function (property, node) { var list = this.nodeLists[property]; if (!list) { list = this.nodeLists[property] = []; } list.push(node); }; ParseOptions.prototype.getList = function (property) { var e_1, _a; var list = this.nodeLists[property] || []; var result = []; try { for (var list_1 = __values(list), list_1_1 = list_1.next(); !list_1_1.done; list_1_1 = list_1.next()) { var node = list_1_1.value; if (this.inTree(node)) { result.push(node); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (list_1_1 && !list_1_1.done && (_a = list_1.return)) _a.call(list_1); } finally { if (e_1) throw e_1.error; } } this.nodeLists[property] = result; return result; }; ParseOptions.prototype.inTree = function (node) { while (node && node !== this.root) { node = node.parent; } return !!node; }; return ParseOptions; }()); exports.default = ParseOptions; //# sourceMappingURL=ParseOptions.js.map /***/ }), /* 84 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EncloseConfiguration = exports.EncloseMethods = exports.ENCLOSE_OPTIONS = void 0; var Configuration_js_1 = __webpack_require__(2); var SymbolMap_js_1 = __webpack_require__(3); var ParseUtil_js_1 = __webpack_require__(8); exports.ENCLOSE_OPTIONS = { 'data-arrowhead': 1, color: 1, mathcolor: 1, background: 1, mathbackground: 1, 'data-padding': 1, 'data-thickness': 1 }; exports.EncloseMethods = {}; exports.EncloseMethods.Enclose = function (parser, name) { var notation = parser.GetArgument(name).replace(/,/g, ' '); var attr = parser.GetBrackets(name, ''); var math = parser.ParseArg(name); var def = ParseUtil_js_1.default.keyvalOptions(attr, exports.ENCLOSE_OPTIONS); def.notation = notation; parser.Push(parser.create('node', 'menclose', [math], def)); }; new SymbolMap_js_1.CommandMap('enclose', { enclose: 'Enclose' }, exports.EncloseMethods); exports.EncloseConfiguration = Configuration_js_1.Configuration.create('enclose', { handler: { macro: ['enclose'] } }); //# sourceMappingURL=EncloseConfiguration.js.map /***/ }), /* 85 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var TexError_js_1 = __webpack_require__(4); var sm = __webpack_require__(3); var BaseMethods_js_1 = __webpack_require__(17); var ParseUtil_js_1 = __webpack_require__(8); var NewcommandUtil_js_1 = __webpack_require__(44); var NewcommandMethods = {}; NewcommandMethods.NewCommand = function (parser, name) { var cs = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); var n = parser.GetBrackets(name); var opt = parser.GetBrackets(name); var def = parser.GetArgument(name); if (cs.charAt(0) === '\\') { cs = cs.substr(1); } if (!cs.match(/^(.|[a-z]+)$/i)) { throw new TexError_js_1.default('IllegalControlSequenceName', 'Illegal control sequence name for %1', name); } if (n) { n = ParseUtil_js_1.default.trimSpaces(n); if (!n.match(/^[0-9]+$/)) { throw new TexError_js_1.default('IllegalParamNumber', 'Illegal number of parameters specified in %1', name); } } NewcommandUtil_js_1.default.addMacro(parser, cs, NewcommandMethods.Macro, [def, n, opt]); }; NewcommandMethods.NewEnvironment = function (parser, name) { var env = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)); var n = parser.GetBrackets(name); var opt = parser.GetBrackets(name); var bdef = parser.GetArgument(name); var edef = parser.GetArgument(name); if (n) { n = ParseUtil_js_1.default.trimSpaces(n); if (!n.match(/^[0-9]+$/)) { throw new TexError_js_1.default('IllegalParamNumber', 'Illegal number of parameters specified in %1', name); } } NewcommandUtil_js_1.default.addEnvironment(parser, env, NewcommandMethods.BeginEnv, [true, bdef, edef, n, opt]); }; NewcommandMethods.MacroDef = function (parser, name) { var cs = NewcommandUtil_js_1.default.GetCSname(parser, name); var params = NewcommandUtil_js_1.default.GetTemplate(parser, name, '\\' + cs); var def = parser.GetArgument(name); !(params instanceof Array) ? NewcommandUtil_js_1.default.addMacro(parser, cs, NewcommandMethods.Macro, [def, params]) : NewcommandUtil_js_1.default.addMacro(parser, cs, NewcommandMethods.MacroWithTemplate, [def].concat(params)); }; NewcommandMethods.Let = function (parser, name) { var cs = NewcommandUtil_js_1.default.GetCSname(parser, name); var c = parser.GetNext(); if (c === '=') { parser.i++; c = parser.GetNext(); } var handlers = parser.configuration.handlers; if (c === '\\') { name = NewcommandUtil_js_1.default.GetCSname(parser, name); var macro_1 = handlers.get('delimiter').lookup('\\' + name); if (macro_1) { NewcommandUtil_js_1.default.addDelimiter(parser, '\\' + cs, macro_1.char, macro_1.attributes); return; } var map_1 = handlers.get('macro').applicable(name); if (!map_1) { return; } if (map_1 instanceof sm.MacroMap) { var macro_2 = map_1.lookup(name); NewcommandUtil_js_1.default.addMacro(parser, cs, macro_2.func, macro_2.args, macro_2.symbol); return; } macro_1 = map_1.lookup(name); var newArgs = NewcommandUtil_js_1.default.disassembleSymbol(cs, macro_1); var method = function (p, _cs) { var rest = []; for (var _i = 2; _i < arguments.length; _i++) { rest[_i - 2] = arguments[_i]; } var symb = NewcommandUtil_js_1.default.assembleSymbol(rest); return map_1.parser(p, symb); }; NewcommandUtil_js_1.default.addMacro(parser, cs, method, newArgs); return; } parser.i++; var macro = handlers.get('delimiter').lookup(c); if (macro) { NewcommandUtil_js_1.default.addDelimiter(parser, '\\' + cs, macro.char, macro.attributes); return; } NewcommandUtil_js_1.default.addMacro(parser, cs, NewcommandMethods.Macro, [c]); }; NewcommandMethods.MacroWithTemplate = function (parser, name, text, n) { var params = []; for (var _i = 4; _i < arguments.length; _i++) { params[_i - 4] = arguments[_i]; } var argCount = parseInt(n, 10); if (argCount) { var args = []; parser.GetNext(); if (params[0] && !NewcommandUtil_js_1.default.MatchParam(parser, params[0])) { throw new TexError_js_1.default('MismatchUseDef', 'Use of %1 doesn\'t match its definition', name); } for (var i = 0; i < argCount; i++) { args.push(NewcommandUtil_js_1.default.GetParameter(parser, name, params[i + 1])); } text = ParseUtil_js_1.default.substituteArgs(parser, args, text); } parser.string = ParseUtil_js_1.default.addArgs(parser, text, parser.string.slice(parser.i)); parser.i = 0; if (++parser.macroCount > parser.configuration.options['maxMacros']) { throw new TexError_js_1.default('MaxMacroSub1', 'MathJax maximum macro substitution count exceeded; ' + 'is here a recursive macro call?'); } }; NewcommandMethods.BeginEnv = function (parser, begin, bdef, edef, n, def) { if (begin.getProperty('end') && parser.stack.env['closing'] === begin.getName()) { delete parser.stack.env['closing']; var rest = parser.string.slice(parser.i); parser.string = edef; parser.i = 0; parser.Parse(); parser.string = rest; parser.i = 0; return parser.itemFactory.create('end').setProperty('name', begin.getName()); } if (n) { var args = []; if (def != null) { var optional = parser.GetBrackets('\\begin{' + begin.getName() + '}'); args.push(optional == null ? def : optional); } for (var i = args.length; i < n; i++) { args.push(parser.GetArgument('\\begin{' + begin.getName() + '}')); } bdef = ParseUtil_js_1.default.substituteArgs(parser, args, bdef); edef = ParseUtil_js_1.default.substituteArgs(parser, [], edef); } parser.string = ParseUtil_js_1.default.addArgs(parser, bdef, parser.string.slice(parser.i)); parser.i = 0; return parser.itemFactory.create('beginEnv').setProperty('name', begin.getName()); }; NewcommandMethods.Macro = BaseMethods_js_1.default.Macro; exports.default = NewcommandMethods; //# sourceMappingURL=NewcommandMethods.js.map /***/ }), /* 86 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.NewcommandConfiguration = void 0; var Configuration_js_1 = __webpack_require__(2); var NewcommandItems_js_1 = __webpack_require__(153); var NewcommandUtil_js_1 = __webpack_require__(44); __webpack_require__(281); var ParseMethods_js_1 = __webpack_require__(24); var sm = __webpack_require__(3); var init = function (config) { new sm.DelimiterMap(NewcommandUtil_js_1.default.NEW_DELIMITER, ParseMethods_js_1.default.delimiter, {}); new sm.CommandMap(NewcommandUtil_js_1.default.NEW_COMMAND, {}, {}); new sm.EnvironmentMap(NewcommandUtil_js_1.default.NEW_ENVIRONMENT, ParseMethods_js_1.default.environment, {}, {}); config.append(Configuration_js_1.Configuration.local({ handler: { character: [], delimiter: [NewcommandUtil_js_1.default.NEW_DELIMITER], macro: [NewcommandUtil_js_1.default.NEW_DELIMITER, NewcommandUtil_js_1.default.NEW_COMMAND], environment: [NewcommandUtil_js_1.default.NEW_ENVIRONMENT] }, priority: -1 })); }; exports.NewcommandConfiguration = Configuration_js_1.Configuration.create('newcommand', { handler: { macro: ['Newcommand-macros'] }, items: (_a = {}, _a[NewcommandItems_js_1.BeginEnvItem.prototype.kind] = NewcommandItems_js_1.BeginEnvItem, _a), options: { maxMacros: 1000 }, init: init }); //# sourceMappingURL=NewcommandConfiguration.js.map /***/ }), /* 87 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TextMacrosMethods = void 0; var TexParser_js_1 = __webpack_require__(12); var Retries_js_1 = __webpack_require__(40); var BaseMethods_js_1 = __webpack_require__(17); exports.TextMacrosMethods = { Comment: function (parser, _c) { while (parser.i < parser.string.length && parser.string.charAt(parser.i) !== '\n') { parser.i++; } parser.i++; }, Math: function (parser, open) { parser.saveText(); var i = parser.i; var j, c; var braces = 0; while ((c = parser.GetNext())) { j = parser.i++; switch (c) { case '\\': var cs = parser.GetCS(); if (cs === ')') c = '\\('; case '$': if (braces === 0 && open === c) { var config = parser.texParser.configuration; var mml = (new TexParser_js_1.default(parser.string.substr(i, j - i), parser.stack.env, config)).mml(); parser.PushMath(mml); return; } break; case '{': braces++; break; case '}': if (braces === 0) { parser.Error('ExtraCloseMissingOpen', 'Extra close brace or missing open brace'); } braces--; break; } } parser.Error('MathNotTerminated', 'Math-mode is not properly terminated'); }, MathModeOnly: function (parser, c) { parser.Error('MathModeOnly', '\'%1\' allowed only in math mode', c); }, Misplaced: function (parser, c) { parser.Error('Misplaced', '\'%1\' can not be used here', c); }, OpenBrace: function (parser, _c) { var env = parser.stack.env; parser.envStack.push(env); parser.stack.env = Object.assign({}, env); }, CloseBrace: function (parser, _c) { if (parser.envStack.length) { parser.saveText(); parser.stack.env = parser.envStack.pop(); } else { parser.Error('ExtraCloseMissingOpen', 'Extra close brace or missing open brace'); } }, OpenQuote: function (parser, c) { if (parser.string.charAt(parser.i) === c) { parser.text += '\u201C'; parser.i++; } else { parser.text += '\u2018'; } }, CloseQuote: function (parser, c) { if (parser.string.charAt(parser.i) === c) { parser.text += '\u201D'; parser.i++; } else { parser.text += '\u2019'; } }, Tilde: function (parser, _c) { parser.text += '\u00A0'; }, Space: function (parser, _c) { parser.text += ' '; while (parser.GetNext().match(/\s/)) parser.i++; }, SelfQuote: function (parser, name) { parser.text += name.substr(1); }, Insert: function (parser, _name, c) { parser.text += c; }, Accent: function (parser, _name, c) { var base = parser.ParseArg(name); var accent = parser.create('token', 'mo', {}, c); parser.addAttributes(accent); parser.Push(parser.create('node', 'mover', [base, accent])); }, Emph: function (parser, name) { var variant = (parser.stack.env.mathvariant === '-tex-mathit' ? 'normal' : '-tex-mathit'); parser.Push(parser.ParseTextArg(name, { mathvariant: variant })); }, SetFont: function (parser, _name, variant) { parser.saveText(); parser.stack.env.mathvariant = variant; }, SetSize: function (parser, _name, size) { parser.saveText(); parser.stack.env.mathsize = size; }, CheckAutoload: function (parser, name) { var autoload = parser.configuration.packageData.get('autoload'); var texParser = parser.texParser; name = name.slice(1); var macro = texParser.lookup('macro', name); if (!macro || (autoload && macro._func === autoload.Autoload)) { texParser.parse('macro', [texParser, name]); if (!macro) return; Retries_js_1.retryAfter(Promise.resolve()); } texParser.parse('macro', [parser, name]); }, Macro: BaseMethods_js_1.default.Macro, Spacer: BaseMethods_js_1.default.Spacer, Hskip: BaseMethods_js_1.default.Hskip, rule: BaseMethods_js_1.default.rule, Rule: BaseMethods_js_1.default.Rule, HandleRef: BaseMethods_js_1.default.HandleRef }; //# sourceMappingURL=TextMacrosMethods.js.map /***/ }), /* 88 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.RequireConfiguration = exports.options = exports.RequireMethods = exports.RequireLoad = void 0; var Configuration_js_1 = __webpack_require__(2); var SymbolMap_js_1 = __webpack_require__(3); var TexError_js_1 = __webpack_require__(4); var global_js_1 = __webpack_require__(1); var package_js_1 = __webpack_require__(25); var loader_js_1 = __webpack_require__(11); var mathjax_js_1 = __webpack_require__(27); var Options_js_1 = __webpack_require__(6); var MJCONFIG = global_js_1.MathJax.config; function RegisterExtension(jax, name) { var _a; var require = jax.parseOptions.options.require; var required = jax.parseOptions.packageData.get('require').required; var extension = name.substr(require.prefix.length); if (required.indexOf(extension) < 0) { required.push(extension); RegisterDependencies(jax, loader_js_1.CONFIG.dependencies[name]); var handler = Configuration_js_1.ConfigurationHandler.get(extension); if (handler) { var options_1 = MJCONFIG[name] || {}; if (handler.options && Object.keys(handler.options).length === 1 && handler.options[extension]) { options_1 = (_a = {}, _a[extension] = options_1, _a); } jax.configuration.add(handler, jax, options_1); var configured = jax.parseOptions.packageData.get('require').configured; if (handler.preprocessors.length && !configured.has(extension)) { configured.set(extension, true); mathjax_js_1.mathjax.retryAfter(Promise.resolve()); } } } } function RegisterDependencies(jax, names) { var e_1, _a; if (names === void 0) { names = []; } var prefix = jax.parseOptions.options.require.prefix; try { for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) { var name_1 = names_1_1.value; if (name_1.substr(0, prefix.length) === prefix) { RegisterExtension(jax, name_1); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (names_1_1 && !names_1_1.done && (_a = names_1.return)) _a.call(names_1); } finally { if (e_1) throw e_1.error; } } } function RequireLoad(parser, name) { var options = parser.options.require; var allow = options.allow; var extension = (name.substr(0, 1) === '[' ? '' : options.prefix) + name; var allowed = (allow.hasOwnProperty(extension) ? allow[extension] : allow.hasOwnProperty(name) ? allow[name] : options.defaultAllow); if (!allowed) { throw new TexError_js_1.default('BadRequire', 'Extension "%1" is now allowed to be loaded', extension); } if (package_js_1.Package.packages.has(extension)) { RegisterExtension(parser.configuration.packageData.get('require').jax, extension); } else { mathjax_js_1.mathjax.retryAfter(loader_js_1.Loader.load(extension)); } } exports.RequireLoad = RequireLoad; function config(_config, jax) { jax.parseOptions.packageData.set('require', { jax: jax, required: __spread(jax.options.packages), configured: new Map() }); var options = jax.parseOptions.options.require; var prefix = options.prefix; if (prefix.match(/[^_a-zA-Z0-9]/)) { throw Error('Illegal characters used in \\require prefix'); } if (!loader_js_1.CONFIG.paths[prefix]) { loader_js_1.CONFIG.paths[prefix] = '[mathjax]/input/tex/extensions'; } options.prefix = '[' + prefix + ']/'; } exports.RequireMethods = { Require: function (parser, name) { var required = parser.GetArgument(name); if (required.match(/[^_a-zA-Z0-9]/) || required === '') { throw new TexError_js_1.default('BadPackageName', 'Argument for %1 is not a valid package name', name); } RequireLoad(parser, required); } }; exports.options = { require: { allow: Options_js_1.expandable({ base: false, 'all-packages': false }), defaultAllow: true, prefix: 'tex' } }; new SymbolMap_js_1.CommandMap('require', { require: 'Require' }, exports.RequireMethods); exports.RequireConfiguration = Configuration_js_1.Configuration.create('require', { handler: { macro: ['require'] }, config: config, options: exports.options }); //# sourceMappingURL=RequireConfiguration.js.map /***/ }), /* 89 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonInferredMrowMixin = exports.CommonMrowMixin = void 0; var BBox_js_1 = __webpack_require__(16); function CommonMrowMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var e_1, _a; var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.stretchChildren(); try { for (var _b = __values(_this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child.bbox.pwidth) { _this.bbox.pwidth = BBox_js_1.BBox.fullWidth; break; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return _this; } Object.defineProperty(class_1.prototype, "fixesPWidth", { get: function () { return false; }, enumerable: false, configurable: true }); class_1.prototype.stretchChildren = function () { var e_2, _a, e_3, _b, e_4, _c; var stretchy = []; try { for (var _d = __values(this.childNodes), _e = _d.next(); !_e.done; _e = _d.next()) { var child = _e.value; if (child.canStretch(1)) { stretchy.push(child); } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_2) throw e_2.error; } } var count = stretchy.length; var nodeCount = this.childNodes.length; if (count && nodeCount > 1) { var H = 0, D = 0; var all = (count > 1 && count === nodeCount); try { for (var _f = __values(this.childNodes), _g = _f.next(); !_g.done; _g = _f.next()) { var child = _g.value; var noStretch = (child.stretch.dir === 0); if (all || noStretch) { var _h = child.getBBox(noStretch), h = _h.h, d = _h.d; if (h > H) H = h; if (d > D) D = d; } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_3) throw e_3.error; } } try { for (var stretchy_1 = __values(stretchy), stretchy_1_1 = stretchy_1.next(); !stretchy_1_1.done; stretchy_1_1 = stretchy_1.next()) { var child = stretchy_1_1.value; child.coreMO().getStretchedVariant([H, D]); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (stretchy_1_1 && !stretchy_1_1.done && (_c = stretchy_1.return)) _c.call(stretchy_1); } finally { if (e_4) throw e_4.error; } } } }; return class_1; }(Base)); } exports.CommonMrowMixin = CommonMrowMixin; function CommonInferredMrowMixin(Base) { return (function (_super) { __extends(class_2, _super); function class_2() { return _super !== null && _super.apply(this, arguments) || this; } class_2.prototype.getScale = function () { this.bbox.scale = this.parent.bbox.scale; this.bbox.rscale = 1; }; return class_2; }(Base)); } exports.CommonInferredMrowMixin = CommonInferredMrowMixin; //# sourceMappingURL=mrow.js.map /***/ }), /* 90 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmsqrt = void 0; var Wrapper_js_1 = __webpack_require__(5); var msqrt_js_1 = __webpack_require__(196); var msqrt_js_2 = __webpack_require__(65); var CHTMLmsqrt = (function (_super) { __extends(CHTMLmsqrt, _super); function CHTMLmsqrt() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmsqrt.prototype.toCHTML = function (parent) { var surd = this.childNodes[this.surd]; var base = this.childNodes[this.base]; var sbox = surd.getBBox(); var bbox = base.getBBox(); var _a = __read(this.getPQ(sbox), 2), q = _a[1]; var t = this.font.params.rule_thickness; var H = bbox.h + q + t; var CHTML = this.standardCHTMLnode(parent); var SURD, BASE, ROOT, root; if (this.root != null) { ROOT = this.adaptor.append(CHTML, this.html('mjx-root')); root = this.childNodes[this.root]; } var SQRT = this.adaptor.append(CHTML, this.html('mjx-sqrt', {}, [ SURD = this.html('mjx-surd'), BASE = this.html('mjx-box', { style: { paddingTop: this.em(q) } }) ])); this.addRoot(ROOT, root, sbox, H); surd.toCHTML(SURD); base.toCHTML(BASE); if (surd.size < 0) { this.adaptor.addClass(SQRT, 'mjx-tall'); } }; CHTMLmsqrt.prototype.addRoot = function (_ROOT, _root, _sbox, _H) { }; CHTMLmsqrt.kind = msqrt_js_2.MmlMsqrt.prototype.kind; CHTMLmsqrt.styles = { 'mjx-root': { display: 'inline-block', 'white-space': 'nowrap' }, 'mjx-surd': { display: 'inline-block', 'vertical-align': 'top' }, 'mjx-sqrt': { display: 'inline-block', 'padding-top': '.07em' }, 'mjx-sqrt > mjx-box': { 'border-top': '.07em solid' }, 'mjx-sqrt.mjx-tall > mjx-box': { 'padding-left': '.3em', 'margin-left': '-.3em' } }; return CHTMLmsqrt; }(msqrt_js_1.CommonMsqrtMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmsqrt = CHTMLmsqrt; //# sourceMappingURL=msqrt.js.map /***/ }), /* 91 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMlabeledtrMixin = exports.CommonMtrMixin = void 0; function CommonMtrMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_1.prototype, "fixesPWidth", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "numCells", { get: function () { return this.childNodes.length; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "labeled", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "tableCells", { get: function () { return this.childNodes; }, enumerable: false, configurable: true }); class_1.prototype.getChild = function (i) { return this.childNodes[i]; }; class_1.prototype.getChildBBoxes = function () { return this.childNodes.map(function (cell) { return cell.getBBox(); }); }; class_1.prototype.stretchChildren = function (HD) { var e_1, _a, e_2, _b, e_3, _c; if (HD === void 0) { HD = null; } var stretchy = []; var children = (this.labeled ? this.childNodes.slice(1) : this.childNodes); try { for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) { var mtd = children_1_1.value; var child = mtd.childNodes[0]; if (child.canStretch(1)) { stretchy.push(child); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1); } finally { if (e_1) throw e_1.error; } } var count = stretchy.length; var nodeCount = this.childNodes.length; if (count && nodeCount > 1) { if (HD === null) { var H = 0, D = 0; var all = (count > 1 && count === nodeCount); try { for (var children_2 = __values(children), children_2_1 = children_2.next(); !children_2_1.done; children_2_1 = children_2.next()) { var mtd = children_2_1.value; var child = mtd.childNodes[0]; var noStretch = (child.stretch.dir === 0); if (all || noStretch) { var _d = child.getBBox(noStretch), h = _d.h, d = _d.d; if (h > H) { H = h; } if (d > D) { D = d; } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (children_2_1 && !children_2_1.done && (_b = children_2.return)) _b.call(children_2); } finally { if (e_2) throw e_2.error; } } HD = [H, D]; } try { for (var stretchy_1 = __values(stretchy), stretchy_1_1 = stretchy_1.next(); !stretchy_1_1.done; stretchy_1_1 = stretchy_1.next()) { var child = stretchy_1_1.value; child.coreMO().getStretchedVariant(HD); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (stretchy_1_1 && !stretchy_1_1.done && (_c = stretchy_1.return)) _c.call(stretchy_1); } finally { if (e_3) throw e_3.error; } } } }; return class_1; }(Base)); } exports.CommonMtrMixin = CommonMtrMixin; function CommonMlabeledtrMixin(Base) { return (function (_super) { __extends(class_2, _super); function class_2() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_2.prototype, "numCells", { get: function () { return Math.max(0, this.childNodes.length - 1); }, enumerable: false, configurable: true }); Object.defineProperty(class_2.prototype, "labeled", { get: function () { return true; }, enumerable: false, configurable: true }); Object.defineProperty(class_2.prototype, "tableCells", { get: function () { return this.childNodes.slice(1); }, enumerable: false, configurable: true }); class_2.prototype.getChild = function (i) { return this.childNodes[i + 1]; }; class_2.prototype.getChildBBoxes = function () { return this.childNodes.slice(1).map(function (cell) { return cell.getBBox(); }); }; return class_2; }(Base)); } exports.CommonMlabeledtrMixin = CommonMlabeledtrMixin; //# sourceMappingURL=mtr.js.map /***/ }), /* 92 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMactionMixin = exports.TooltipData = void 0; var string_js_1 = __webpack_require__(14); exports.TooltipData = { dx: '.2em', dy: '.1em', postDelay: 600, clearDelay: 100, hoverTimer: new Map(), clearTimer: new Map(), stopTimers: function (node, data) { if (data.clearTimer.has(node)) { clearTimeout(data.clearTimer.get(node)); data.clearTimer.delete(node); } if (data.hoverTimer.has(node)) { clearTimeout(data.hoverTimer.get(node)); data.hoverTimer.delete(node); } } }; function CommonMactionMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; var actions = _this.constructor.actions; var action = _this.node.attributes.get('actiontype'); var _a = __read(actions.get(action) || [(function (_node, _data) { }), {}], 2), handler = _a[0], data = _a[1]; _this.action = handler; _this.data = data; _this.getParameters(); return _this; } Object.defineProperty(class_1.prototype, "selected", { get: function () { var selection = this.node.attributes.get('selection'); var i = Math.max(1, Math.min(this.childNodes.length, selection)) - 1; return this.childNodes[i] || this.wrap(this.node.selected); }, enumerable: false, configurable: true }); class_1.prototype.getParameters = function () { var offsets = this.node.attributes.get('data-offsets'); var _a = __read(string_js_1.split(offsets || ''), 2), dx = _a[0], dy = _a[1]; this.dx = this.length2em(dx || exports.TooltipData.dx); this.dy = this.length2em(dy || exports.TooltipData.dy); }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } bbox.updateFrom(this.selected.getBBox()); this.selected.setChildPWidths(recompute); }; return class_1; }(Base)); } exports.CommonMactionMixin = CommonMactionMixin; //# sourceMappingURL=maction.js.map /***/ }), /* 93 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.browserAdaptor = void 0; var HTMLAdaptor_js_1 = __webpack_require__(103); function browserAdaptor() { return new HTMLAdaptor_js_1.HTMLAdaptor(window); } exports.browserAdaptor = browserAdaptor; //# sourceMappingURL=browserAdaptor.js.map /***/ }), /* 94 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TeX = void 0; var InputJax_js_1 = __webpack_require__(53); var Options_js_1 = __webpack_require__(6); var FindTeX_js_1 = __webpack_require__(129); var FilterUtil_js_1 = __webpack_require__(130); var NodeUtil_js_1 = __webpack_require__(7); var TexParser_js_1 = __webpack_require__(12); var TexError_js_1 = __webpack_require__(4); var ParseOptions_js_1 = __webpack_require__(83); var Tags_js_1 = __webpack_require__(21); var Configuration_js_1 = __webpack_require__(2); __webpack_require__(42); var TeX = (function (_super) { __extends(TeX, _super); function TeX(options) { if (options === void 0) { options = {}; } var _this = this; var _a = __read(Options_js_1.separateOptions(options, TeX.OPTIONS, FindTeX_js_1.FindTeX.OPTIONS), 3), rest = _a[0], tex = _a[1], find = _a[2]; _this = _super.call(this, tex) || this; _this.findTeX = _this.options['FindTeX'] || new FindTeX_js_1.FindTeX(find); var packages = _this.options.packages; var configuration = _this.configuration = TeX.configure(packages); var parseOptions = _this._parseOptions = new ParseOptions_js_1.default(configuration, [_this.options, Tags_js_1.TagsFactory.OPTIONS]); Options_js_1.userOptions(parseOptions.options, rest); configuration.config(_this); TeX.tags(parseOptions, configuration); _this.postFilters.add(FilterUtil_js_1.default.cleanSubSup, -6); _this.postFilters.add(FilterUtil_js_1.default.setInherited, -5); _this.postFilters.add(FilterUtil_js_1.default.moveLimits, -4); _this.postFilters.add(FilterUtil_js_1.default.cleanStretchy, -3); _this.postFilters.add(FilterUtil_js_1.default.cleanAttributes, -2); _this.postFilters.add(FilterUtil_js_1.default.combineRelations, -1); return _this; } TeX.configure = function (packages) { var configuration = new Configuration_js_1.ParserConfiguration(packages); configuration.init(); return configuration; }; TeX.tags = function (options, configuration) { Tags_js_1.TagsFactory.addTags(configuration.tags); Tags_js_1.TagsFactory.setDefault(options.options.tags); options.tags = Tags_js_1.TagsFactory.getDefault(); options.tags.configuration = options; }; TeX.prototype.setMmlFactory = function (mmlFactory) { _super.prototype.setMmlFactory.call(this, mmlFactory); this._parseOptions.nodeFactory.setMmlFactory(mmlFactory); }; Object.defineProperty(TeX.prototype, "parseOptions", { get: function () { return this._parseOptions; }, enumerable: false, configurable: true }); TeX.prototype.compile = function (math, document) { this.parseOptions.clear(); this.executeFilters(this.preFilters, math, document, this.parseOptions); var display = math.display; this.latex = math.math; var node; this.parseOptions.tags.startEquation(math); try { var parser = new TexParser_js_1.default(this.latex, { display: display, isInner: false }, this.parseOptions); node = parser.mml(); } catch (err) { if (!(err instanceof TexError_js_1.default)) { throw err; } this.parseOptions.error = true; node = this.options.formatError(this, err); } node = this.parseOptions.nodeFactory.create('node', 'math', [node]); if (display) { NodeUtil_js_1.default.setAttribute(node, 'display', 'block'); } this.parseOptions.tags.finishEquation(math); this.parseOptions.root = node; this.executeFilters(this.postFilters, math, document, this.parseOptions); this.mathNode = this.parseOptions.root; return this.mathNode; }; TeX.prototype.findMath = function (strings) { return this.findTeX.findMath(strings); }; TeX.prototype.formatError = function (err) { var message = err.message.replace(/\n.*/, ''); return this.parseOptions.nodeFactory.create('error', message, err.id, this.latex); }; TeX.NAME = 'TeX'; TeX.OPTIONS = __assign(__assign({}, InputJax_js_1.AbstractInputJax.OPTIONS), { FindTeX: null, packages: ['base'], digits: /^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)?|\.[0-9]+)/, maxBuffer: 5 * 1024, formatError: function (jax, err) { return jax.formatError(err); } }); return TeX; }(InputJax_js_1.AbstractInputJax)); exports.TeX = TeX; //# sourceMappingURL=tex.js.map /***/ }), /* 95 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AllPackages = void 0; __webpack_require__(42); __webpack_require__(132); __webpack_require__(133); __webpack_require__(135); __webpack_require__(137); __webpack_require__(138); __webpack_require__(139); __webpack_require__(142); __webpack_require__(145); __webpack_require__(146); __webpack_require__(150); __webpack_require__(151); __webpack_require__(84); __webpack_require__(152); __webpack_require__(154); __webpack_require__(156); __webpack_require__(86); __webpack_require__(157); __webpack_require__(158); __webpack_require__(159); __webpack_require__(162); __webpack_require__(163); __webpack_require__(165); __webpack_require__(166); if (typeof MathJax !== 'undefined' && MathJax.loader) { MathJax.loader.preLoad('[tex]/action', '[tex]/ams', '[tex]/amscd', '[tex]/bbox', '[tex]/boldsymbol', '[tex]/braket', '[tex]/bussproofs', '[tex]/cancel', '[tex]/color', '[tex]/colorv2', '[tex]/enclose', '[tex]/extpfeil', '[tex]/html', '[tex]/mhchem', '[tex]/newcommand', '[tex]/noerrors', '[tex]/noundefined', '[tex]/physics', '[tex]/unicode', '[tex]/verb', '[tex]/configmacros', '[tex]/tagformat', '[tex]/textmacros'); } exports.AllPackages = [ 'base', 'action', 'ams', 'amscd', 'bbox', 'boldsymbol', 'braket', 'bussproofs', 'cancel', 'color', 'enclose', 'extpfeil', 'html', 'mhchem', 'newcommand', 'noerrors', 'noundefined', 'unicode', 'verb', 'configmacros', 'tagformat', 'textmacros' ]; //# sourceMappingURL=AllPackages.js.map /***/ }), /* 96 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTML = void 0; var OutputJax_js_1 = __webpack_require__(167); var WrapperFactory_js_1 = __webpack_require__(168); var tex_js_1 = __webpack_require__(35); var LENGTHS = __webpack_require__(19); var string_js_1 = __webpack_require__(14); var CHTML = (function (_super) { __extends(CHTML, _super); function CHTML(options) { if (options === void 0) { options = null; } var _this = _super.call(this, options, WrapperFactory_js_1.CHTMLWrapperFactory, tex_js_1.TeXFont) || this; _this.chtmlStyles = null; _this.font.adaptiveCSS(_this.options.adaptiveCSS); return _this; } CHTML.prototype.escaped = function (math, html) { this.setDocument(html); return this.html('span', {}, [this.text(math.math)]); }; CHTML.prototype.styleSheet = function (html) { if (this.chtmlStyles && !this.options.adaptiveCSS) { return null; } var sheet = this.chtmlStyles = _super.prototype.styleSheet.call(this, html); this.adaptor.setAttribute(sheet, 'id', CHTML.STYLESHEETID); return sheet; }; CHTML.prototype.addClassStyles = function (CLASS) { var _a; if (!this.options.adaptiveCSS || CLASS.used) { if (CLASS.autoStyle && CLASS.kind !== 'unknown') { this.cssStyles.addStyles((_a = {}, _a['mjx-' + CLASS.kind] = { display: 'inline-block', 'text-align': 'left' }, _a)); } _super.prototype.addClassStyles.call(this, CLASS); } }; CHTML.prototype.processMath = function (math, parent) { this.factory.wrap(math).toCHTML(parent); }; CHTML.prototype.clearCache = function () { var e_1, _a; this.cssStyles.clear(); this.font.clearCache(); try { for (var _b = __values(this.factory.getKinds()), _c = _b.next(); !_c.done; _c = _b.next()) { var kind = _c.value; this.factory.getNodeClass(kind).used = false; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; CHTML.prototype.unknownText = function (text, variant) { var styles = {}; var scale = 100 / this.math.metrics.scale; if (scale !== 100) { styles['font-size'] = this.fixed(scale, 1) + '%'; styles.padding = LENGTHS.em(75 / scale) + ' 0 ' + LENGTHS.em(20 / scale) + ' 0'; } if (variant !== '-explicitFont') { var c = string_js_1.unicodeChars(text); if (c.length !== 1 || c[0] < 0x1D400 || c[0] > 0x1D7FF) { this.cssFontStyles(this.font.getCssFont(variant), styles); } } return this.html('mjx-utext', { variant: variant, style: styles }, [this.text(text)]); }; CHTML.prototype.measureTextNode = function (text) { var adaptor = this.adaptor; text = adaptor.clone(text); var style = { position: 'absolute', 'white-space': 'nowrap' }; var node = this.html('mjx-measure-text', { style: style }, [text]); adaptor.append(adaptor.parent(this.math.start.node), this.container); adaptor.append(this.container, node); var w = adaptor.nodeSize(text, this.math.metrics.em)[0] / this.math.metrics.scale; adaptor.remove(this.container); adaptor.remove(node); return { w: w, h: .75, d: .2 }; }; CHTML.NAME = 'CHTML'; CHTML.OPTIONS = __assign(__assign({}, OutputJax_js_1.CommonOutputJax.OPTIONS), { adaptiveCSS: true }); CHTML.commonStyles = { 'mjx-container[jax="CHTML"]': { 'line-height': 0 }, 'mjx-container [space="1"]': { 'margin-left': '.111em' }, 'mjx-container [space="2"]': { 'margin-left': '.167em' }, 'mjx-container [space="3"]': { 'margin-left': '.222em' }, 'mjx-container [space="4"]': { 'margin-left': '.278em' }, 'mjx-container [space="5"]': { 'margin-left': '.333em' }, 'mjx-container [rspace="1"]': { 'margin-right': '.111em' }, 'mjx-container [rspace="2"]': { 'margin-right': '.167em' }, 'mjx-container [rspace="3"]': { 'margin-right': '.222em' }, 'mjx-container [rspace="4"]': { 'margin-right': '.278em' }, 'mjx-container [rspace="5"]': { 'margin-right': '.333em' }, 'mjx-container [size="s"]': { 'font-size': '70.7%' }, 'mjx-container [size="ss"]': { 'font-size': '50%' }, 'mjx-container [size="Tn"]': { 'font-size': '60%' }, 'mjx-container [size="sm"]': { 'font-size': '85%' }, 'mjx-container [size="lg"]': { 'font-size': '120%' }, 'mjx-container [size="Lg"]': { 'font-size': '144%' }, 'mjx-container [size="LG"]': { 'font-size': '173%' }, 'mjx-container [size="hg"]': { 'font-size': '207%' }, 'mjx-container [size="HG"]': { 'font-size': '249%' }, 'mjx-container [width="full"]': { width: '100%' }, 'mjx-box': { display: 'inline-block' }, 'mjx-block': { display: 'block' }, 'mjx-itable': { display: 'inline-table' }, 'mjx-row': { display: 'table-row' }, 'mjx-row > *': { display: 'table-cell' }, 'mjx-mtext': { display: 'inline-block' }, 'mjx-mstyle': { display: 'inline-block' }, 'mjx-merror': { display: 'inline-block', color: 'red', 'background-color': 'yellow' }, 'mjx-mphantom': { visibility: 'hidden' } }; CHTML.STYLESHEETID = 'MJX-CHTML-styles'; return CHTML; }(OutputJax_js_1.CommonOutputJax)); exports.CHTML = CHTML; //# sourceMappingURL=chtml.js.map /***/ }), /* 97 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MenuHandler = exports.MenuMathDocumentMixin = exports.MenuMathItemMixin = void 0; var mathjax_js_1 = __webpack_require__(27); var MathItem_js_1 = __webpack_require__(15); var Options_js_1 = __webpack_require__(6); var Menu_js_1 = __webpack_require__(261); MathItem_js_1.newState('CONTEXT_MENU', 170); function MenuMathItemMixin(BaseMathItem) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.addMenu = function (document, force) { if (force === void 0) { force = false; } if (this.state() >= MathItem_js_1.STATE.CONTEXT_MENU) return; if (!this.isEscaped && (document.options.enableMenu || force)) { document.menu.addMenu(this); } this.state(MathItem_js_1.STATE.CONTEXT_MENU); }; class_1.prototype.checkLoading = function (document) { document.checkLoading(); }; return class_1; }(BaseMathItem)); } exports.MenuMathItemMixin = MenuMathItemMixin; function MenuMathDocumentMixin(BaseDocument) { var _a; return _a = (function (_super) { __extends(class_2, _super); function class_2() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.menu = new _this.options.MenuClass(_this, _this.options.menuOptions); var ProcessBits = _this.constructor.ProcessBits; if (!ProcessBits.has('context-menu')) { ProcessBits.allocate('context-menu'); } _this.options.MathItem = MenuMathItemMixin(_this.options.MathItem); return _this; } class_2.prototype.addMenu = function () { var e_1, _a; if (!this.processed.isSet('context-menu')) { try { for (var _b = __values(this.math), _c = _b.next(); !_c.done; _c = _b.next()) { var math = _c.value; math.addMenu(this); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this.processed.set('context-menu'); } return this; }; class_2.prototype.checkLoading = function () { if (this.menu.isLoading) { mathjax_js_1.mathjax.retryAfter(this.menu.loadingPromise.catch(function (err) { return console.log(err); })); } var settings = this.menu.settings; if (settings.collapsible) { this.options.enableComplexity = true; this.menu.checkComponent('a11y/complexity'); } if (settings.explorer) { this.options.enableEnrichment = true; this.options.enableExplorer = true; this.menu.checkComponent('a11y/explorer'); } return this; }; class_2.prototype.state = function (state, restore) { if (restore === void 0) { restore = false; } _super.prototype.state.call(this, state, restore); if (state < MathItem_js_1.STATE.CONTEXT_MENU) { this.processed.clear('context-menu'); } return this; }; class_2.prototype.updateDocument = function () { _super.prototype.updateDocument.call(this); this.menu.menu.store.sort(); return this; }; return class_2; }(BaseDocument)), _a.OPTIONS = __assign(__assign({}, BaseDocument.OPTIONS), { MenuClass: Menu_js_1.Menu, menuOptions: Menu_js_1.Menu.OPTIONS, enableMenu: true, a11y: (BaseDocument.OPTIONS.a11y || Options_js_1.expandable({})), renderActions: Options_js_1.expandable(__assign(__assign({}, BaseDocument.OPTIONS.renderActions), { addMenu: [MathItem_js_1.STATE.CONTEXT_MENU], checkLoading: [MathItem_js_1.STATE.UNPROCESSED + 1] })) }), _a; } exports.MenuMathDocumentMixin = MenuMathDocumentMixin; function MenuHandler(handler) { handler.documentClass = MenuMathDocumentMixin(handler.documentClass); return handler; } exports.MenuHandler = MenuHandler; //# sourceMappingURL=MenuHandler.js.map /***/ }), /* 98 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AssistiveMmlHandler = exports.AssistiveMmlMathDocumentMixin = exports.AssistiveMmlMathItemMixin = exports.LimitedMmlVisitor = void 0; var MathItem_js_1 = __webpack_require__(15); var SerializedMmlVisitor_js_1 = __webpack_require__(80); var Options_js_1 = __webpack_require__(6); var LimitedMmlVisitor = (function (_super) { __extends(LimitedMmlVisitor, _super); function LimitedMmlVisitor() { return _super !== null && _super.apply(this, arguments) || this; } LimitedMmlVisitor.prototype.getAttributes = function (node) { return _super.prototype.getAttributes.call(this, node).replace(/ ?id=".*?"/, ''); }; return LimitedMmlVisitor; }(SerializedMmlVisitor_js_1.SerializedMmlVisitor)); exports.LimitedMmlVisitor = LimitedMmlVisitor; MathItem_js_1.newState('ASSISTIVEMML', 153); function AssistiveMmlMathItemMixin(BaseMathItem) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.assistiveMml = function (document, force) { if (force === void 0) { force = false; } if (this.state() >= MathItem_js_1.STATE.ASSISTIVEMML) return; if (!this.isEscaped && (document.options.enableAssistiveMml || force)) { var adaptor = document.adaptor; var mml = document.toMML(this.root).replace(/\n */g, '').replace(//g, ''); var mmlNodes = adaptor.firstChild(adaptor.body(adaptor.parse(mml, 'text/html'))); var node = adaptor.node('mjx-assistive-mml', { role: 'presentation', unselectable: 'on', display: (this.display ? 'block' : 'inline') }, [mmlNodes]); adaptor.setAttribute(this.typesetRoot, 'role', 'presentation'); adaptor.setAttribute(adaptor.firstChild(this.typesetRoot), 'aria-hidden', 'true'); adaptor.setStyle(this.typesetRoot, 'position', 'relative'); adaptor.append(this.typesetRoot, node); } this.state(MathItem_js_1.STATE.ASSISTIVEMML); }; return class_1; }(BaseMathItem)); } exports.AssistiveMmlMathItemMixin = AssistiveMmlMathItemMixin; function AssistiveMmlMathDocumentMixin(BaseDocument) { var _a; return _a = (function (_super) { __extends(BaseClass, _super); function BaseClass() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; var CLASS = _this.constructor; var ProcessBits = CLASS.ProcessBits; if (!ProcessBits.has('assistive-mml')) { ProcessBits.allocate('assistive-mml'); } _this.visitor = new LimitedMmlVisitor(_this.mmlFactory); _this.options.MathItem = AssistiveMmlMathItemMixin(_this.options.MathItem); if ('addStyles' in _this) { _this.addStyles(CLASS.assistiveStyles); } return _this; } BaseClass.prototype.toMML = function (node) { return this.visitor.visitTree(node); }; BaseClass.prototype.assistiveMml = function () { var e_1, _a; if (!this.processed.isSet('assistive-mml')) { try { for (var _b = __values(this.math), _c = _b.next(); !_c.done; _c = _b.next()) { var math = _c.value; math.assistiveMml(this); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this.processed.set('assistive-mml'); } return this; }; BaseClass.prototype.state = function (state, restore) { if (restore === void 0) { restore = false; } _super.prototype.state.call(this, state, restore); if (state < MathItem_js_1.STATE.ASSISTIVEMML) { this.processed.clear('assistive-mml'); } return this; }; return BaseClass; }(BaseDocument)), _a.OPTIONS = __assign(__assign({}, BaseDocument.OPTIONS), { enableAssistiveMml: true, renderActions: Options_js_1.expandable(__assign(__assign({}, BaseDocument.OPTIONS.renderActions), { assistiveMml: [MathItem_js_1.STATE.ASSISTIVEMML] })) }), _a.assistiveStyles = { 'mjx-assistive-mml': { position: 'absolute !important', top: '0px', left: '0px', clip: 'rect(1px, 1px, 1px, 1px)', padding: '1px 0px 0px 0px !important', border: '0px !important', display: 'block !important', width: 'auto !important', overflow: 'hidden !important', '-webkit-touch-callout': 'none', '-webkit-user-select': 'none', '-khtml-user-select': 'none', '-moz-user-select': 'none', '-ms-user-select': 'none', 'user-select': 'none' }, 'mjx-assistive-mml[display="block"]': { width: '100% !important' } }, _a; } exports.AssistiveMmlMathDocumentMixin = AssistiveMmlMathDocumentMixin; function AssistiveMmlHandler(handler) { handler.documentClass = AssistiveMmlMathDocumentMixin(handler.documentClass); return handler; } exports.AssistiveMmlHandler = AssistiveMmlHandler; //# sourceMappingURL=assistive-mml.js.map /***/ }), /* 99 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractMenu = void 0; var abstract_postable_js_1 = __webpack_require__(100); var abstract_item_js_1 = __webpack_require__(36); var html_classes_js_1 = __webpack_require__(10); var item_submenu_js_1 = __webpack_require__(101); var AbstractMenu = (function (_super) { __extends(AbstractMenu, _super); function AbstractMenu() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.className = html_classes_js_1.HtmlClasses['CONTEXTMENU']; _this.role = 'menu'; _this._items = []; _this._baseMenu = null; return _this; } Object.defineProperty(AbstractMenu.prototype, "baseMenu", { get: function () { return this._baseMenu; }, set: function (menu) { this._baseMenu = menu; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMenu.prototype, "items", { get: function () { return this._items; }, set: function (items) { this._items = items; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMenu.prototype, "pool", { get: function () { return this.variablePool; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractMenu.prototype, "focused", { get: function () { return this._focused; }, set: function (item) { if (this._focused === item) { return; } if (!this._focused) { this.unfocus(); } var old = this._focused; this._focused = item; if (old) { old.unfocus(); } }, enumerable: false, configurable: true }); AbstractMenu.prototype.up = function (_event) { var items = this.items.filter(function (x) { return (x instanceof abstract_item_js_1.AbstractItem) && (!x.isHidden()); }); if (items.length === 0) { return; } if (!this.focused) { items[items.length - 1].focus(); return; } var index = items.indexOf(this.focused); if (index === -1) { return; } index = index ? --index : items.length - 1; items[index].focus(); }; AbstractMenu.prototype.down = function (_event) { var items = this.items.filter(function (x) { return (x instanceof abstract_item_js_1.AbstractItem) && (!x.isHidden()); }); if (items.length === 0) { return; } if (!this.focused) { items[0].focus(); return; } var index = items.indexOf(this.focused); if (index === -1) { return; } index++; index = (index === items.length) ? 0 : index; items[index].focus(); }; AbstractMenu.prototype.generateHtml = function () { _super.prototype.generateHtml.call(this); this.generateMenu(); }; AbstractMenu.prototype.generateMenu = function () { var e_1, _a; var html = this.html; html.classList.add(html_classes_js_1.HtmlClasses['MENU']); try { for (var _b = __values(this.items), _c = _b.next(); !_c.done; _c = _b.next()) { var item = _c.value; if (!item.isHidden()) { html.appendChild(item.html); continue; } var itemHtml = item.html; if (itemHtml.parentNode) { itemHtml.parentNode.removeChild(itemHtml); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; AbstractMenu.prototype.post = function (x, y) { this.variablePool.update(); _super.prototype.post.call(this, x, y); }; AbstractMenu.prototype.unpostSubmenus = function () { var e_2, _a; var submenus = this.items.filter(function (x) { return x instanceof item_submenu_js_1.Submenu; }); try { for (var submenus_1 = __values(submenus), submenus_1_1 = submenus_1.next(); !submenus_1_1.done; submenus_1_1 = submenus_1.next()) { var submenu = submenus_1_1.value; submenu.submenu.unpost(); if (submenu !== this.focused) { submenu.unfocus(); } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (submenus_1_1 && !submenus_1_1.done && (_a = submenus_1.return)) _a.call(submenus_1); } finally { if (e_2) throw e_2.error; } } }; AbstractMenu.prototype.unpost = function () { _super.prototype.unpost.call(this); this.unpostSubmenus(); this.focused = null; }; AbstractMenu.prototype.find = function (id) { var e_3, _a; try { for (var _b = __values(this.items), _c = _b.next(); !_c.done; _c = _b.next()) { var item = _c.value; if (item.type === 'rule') { continue; } if (item.id === id) { return item; } if (item.type === 'submenu') { var result = item.submenu.find(id); if (result) { return result; } } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } return null; }; return AbstractMenu; }(abstract_postable_js_1.AbstractPostable)); exports.AbstractMenu = AbstractMenu; //# sourceMappingURL=abstract_menu.js.map /***/ }), /* 100 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractPostable = void 0; var menu_element_js_1 = __webpack_require__(267); var AbstractPostable = (function (_super) { __extends(AbstractPostable, _super); function AbstractPostable() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.posted = false; return _this; } AbstractPostable.prototype.isPosted = function () { return this.posted; }; AbstractPostable.prototype.post = function (x, y) { if (this.posted) { return; } if (typeof (x) !== 'undefined' && typeof (y) !== 'undefined') { this.html.setAttribute('style', 'left: ' + x + 'px; top: ' + y + 'px;'); } this.display(); this.posted = true; }; AbstractPostable.prototype.unpost = function () { if (!this.posted) { return; } var html = this.html; if (html.parentNode) { html.parentNode.removeChild(html); } this.posted = false; }; return AbstractPostable; }(menu_element_js_1.MenuElement)); exports.AbstractPostable = AbstractPostable; //# sourceMappingURL=abstract_postable.js.map /***/ }), /* 101 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Submenu = void 0; var abstract_item_js_1 = __webpack_require__(36); var html_classes_js_1 = __webpack_require__(10); var Submenu = (function (_super) { __extends(Submenu, _super); function Submenu(menu, content, id) { var _this = _super.call(this, menu, 'submenu', content, id) || this; _this._submenu = null; return _this; } Submenu.fromJson = function (factory, _a, menu) { var content = _a.content, submenu = _a.menu, id = _a.id; var item = new this(menu, content, id); var sm = factory.get('subMenu')(factory, submenu, item); item.submenu = sm; return item; }; Object.defineProperty(Submenu.prototype, "submenu", { get: function () { return this._submenu; }, set: function (menu) { this._submenu = menu; }, enumerable: false, configurable: true }); Submenu.prototype.mouseover = function (event) { this.focus(); this.stop(event); }; Submenu.prototype.mouseout = function (event) { this.stop(event); }; Submenu.prototype.unfocus = function () { if (!this.submenu.isPosted()) { _super.prototype.unfocus.call(this); return; } if (this.menu.focused !== this) { _super.prototype.unfocus.call(this); this.menu.unpostSubmenus(); return; } this.html.setAttribute('tabindex', '-1'); this.html.blur(); }; Submenu.prototype.focus = function () { _super.prototype.focus.call(this); if (!this.submenu.isPosted() && !this.disabled) { this.submenu.post(); } }; Submenu.prototype.executeAction = function () { this.submenu.isPosted() ? this.submenu.unpost() : this.submenu.post(); }; Submenu.prototype.generateHtml = function () { _super.prototype.generateHtml.call(this); var html = this.html; this.span = document.createElement('span'); this.span.textContent = '\u25BA'; this.span.classList.add(html_classes_js_1.HtmlClasses['MENUARROW']); html.appendChild(this.span); html.setAttribute('aria-haspopup', 'true'); }; Submenu.prototype.left = function (event) { if (this.submenu.isPosted()) { this.submenu.unpost(); } else { _super.prototype.left.call(this, event); } }; Submenu.prototype.right = function (event) { if (!this.submenu.isPosted()) { this.submenu.post(); } else { this.submenu.down(event); } }; Submenu.prototype.toJson = function () { return { type: '' }; }; return Submenu; }(abstract_item_js_1.AbstractItem)); exports.Submenu = Submenu; //# sourceMappingURL=item_submenu.js.map /***/ }), /* 102 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Info = void 0; var close_button_js_1 = __webpack_require__(297); var html_classes_js_1 = __webpack_require__(10); var abstract_postable_js_1 = __webpack_require__(100); var Info = (function (_super) { __extends(Info, _super); function Info(title, content, signature) { var _this = _super.call(this) || this; _this.title = title; _this.signature = signature; _this.className = html_classes_js_1.HtmlClasses['INFO']; _this.role = 'dialog'; _this.contentDiv = _this.generateContent(); _this.close = _this.generateClose(); _this.content = content || function () { return ''; }; return _this; } Info.prototype.attachMenu = function (menu) { this.menu = menu; }; Info.prototype.generateHtml = function () { _super.prototype.generateHtml.call(this); var html = this.html; html.appendChild(this.generateTitle()); html.appendChild(this.contentDiv); html.appendChild(this.generateSignature()); html.appendChild(this.close.html); html.setAttribute('tabindex', '0'); }; Info.prototype.post = function () { _super.prototype.post.call(this); var doc = document.documentElement; var html = this.html; var H = window.innerHeight || doc.clientHeight || doc.scrollHeight || 0; var x = Math.floor((-html.offsetWidth) / 2); var y = Math.floor((H - html.offsetHeight) / 3); html.setAttribute('style', 'margin-left: ' + x + 'px; top: ' + y + 'px;'); if (window.event instanceof MouseEvent) { html.classList.add(html_classes_js_1.HtmlClasses['MOUSEPOST']); } html.focus(); }; Info.prototype.display = function () { this.menu.registerWidget(this); this.contentDiv.innerHTML = this.content(); var html = this.menu.html; if (html.parentNode) { html.parentNode.removeChild(html); } this.menu.frame.appendChild(this.html); }; Info.prototype.click = function (_event) { }; Info.prototype.keydown = function (event) { this.bubbleKey(); _super.prototype.keydown.call(this, event); }; Info.prototype.escape = function (_event) { this.unpost(); }; Info.prototype.unpost = function () { _super.prototype.unpost.call(this); this.html.classList.remove(html_classes_js_1.HtmlClasses['MOUSEPOST']); this.menu.unregisterWidget(this); }; Info.prototype.generateClose = function () { var close = new close_button_js_1.CloseButton(this); var html = close.html; html.classList.add(html_classes_js_1.HtmlClasses['INFOCLOSE']); html.setAttribute('aria-label', 'Close Dialog Box'); return close; }; Info.prototype.generateTitle = function () { var span = document.createElement('span'); span.innerHTML = this.title; span.classList.add(html_classes_js_1.HtmlClasses['INFOTITLE']); return span; }; Info.prototype.generateContent = function () { var div = document.createElement('div'); div.classList.add(html_classes_js_1.HtmlClasses['INFOCONTENT']); div.setAttribute('tabindex', '0'); return div; }; Info.prototype.generateSignature = function () { var span = document.createElement('span'); span.innerHTML = this.signature; span.classList.add(html_classes_js_1.HtmlClasses['INFOSIGNATURE']); return span; }; Info.prototype.toJson = function () { return { type: '' }; }; return Info; }(abstract_postable_js_1.AbstractPostable)); exports.Info = Info; //# sourceMappingURL=info.js.map /***/ }), /* 103 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.HTMLAdaptor = void 0; var DOMAdaptor_js_1 = __webpack_require__(104); var HTMLAdaptor = (function (_super) { __extends(HTMLAdaptor, _super); function HTMLAdaptor(window) { var _this = _super.call(this, window.document) || this; _this.window = window; _this.parser = new window.DOMParser(); return _this; } HTMLAdaptor.prototype.parse = function (text, format) { if (format === void 0) { format = 'text/html'; } return this.parser.parseFromString(text, format); }; HTMLAdaptor.prototype.create = function (kind, ns) { return (ns ? this.document.createElementNS(ns, kind) : this.document.createElement(kind)); }; HTMLAdaptor.prototype.text = function (text) { return this.document.createTextNode(text); }; HTMLAdaptor.prototype.head = function (doc) { return doc.head; }; HTMLAdaptor.prototype.body = function (doc) { return doc.body; }; HTMLAdaptor.prototype.root = function (doc) { return doc.documentElement; }; HTMLAdaptor.prototype.doctype = function (doc) { return ""; }; HTMLAdaptor.prototype.tags = function (node, name, ns) { if (ns === void 0) { ns = null; } var nodes = (ns ? node.getElementsByTagNameNS(ns, name) : node.getElementsByTagName(name)); return Array.from(nodes); }; HTMLAdaptor.prototype.getElements = function (nodes, _document) { var e_1, _a; var containers = []; try { for (var nodes_1 = __values(nodes), nodes_1_1 = nodes_1.next(); !nodes_1_1.done; nodes_1_1 = nodes_1.next()) { var node = nodes_1_1.value; if (typeof (node) === 'string') { containers = containers.concat(Array.from(this.document.querySelectorAll(node))); } else if (Array.isArray(node)) { containers = containers.concat(Array.from(node)); } else if (node instanceof this.window.NodeList || node instanceof this.window.HTMLCollection) { containers = containers.concat(Array.from(node)); } else { containers.push(node); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (nodes_1_1 && !nodes_1_1.done && (_a = nodes_1.return)) _a.call(nodes_1); } finally { if (e_1) throw e_1.error; } } return containers; }; HTMLAdaptor.prototype.contains = function (container, node) { return container.contains(node); }; HTMLAdaptor.prototype.parent = function (node) { return node.parentNode; }; HTMLAdaptor.prototype.append = function (node, child) { return node.appendChild(child); }; HTMLAdaptor.prototype.insert = function (nchild, ochild) { return this.parent(ochild).insertBefore(nchild, ochild); }; HTMLAdaptor.prototype.remove = function (child) { return this.parent(child).removeChild(child); }; HTMLAdaptor.prototype.replace = function (nnode, onode) { return this.parent(onode).replaceChild(nnode, onode); }; HTMLAdaptor.prototype.clone = function (node) { return node.cloneNode(true); }; HTMLAdaptor.prototype.split = function (node, n) { return node.splitText(n); }; HTMLAdaptor.prototype.next = function (node) { return node.nextSibling; }; HTMLAdaptor.prototype.previous = function (node) { return node.previousSibling; }; HTMLAdaptor.prototype.firstChild = function (node) { return node.firstChild; }; HTMLAdaptor.prototype.lastChild = function (node) { return node.lastChild; }; HTMLAdaptor.prototype.childNodes = function (node) { return Array.from(node.childNodes); }; HTMLAdaptor.prototype.childNode = function (node, i) { return node.childNodes[i]; }; HTMLAdaptor.prototype.kind = function (node) { return node.nodeName.toLowerCase(); }; HTMLAdaptor.prototype.value = function (node) { return node.nodeValue || ''; }; HTMLAdaptor.prototype.textContent = function (node) { return node.textContent; }; HTMLAdaptor.prototype.innerHTML = function (node) { return node.innerHTML; }; HTMLAdaptor.prototype.outerHTML = function (node) { return node.outerHTML; }; HTMLAdaptor.prototype.setAttribute = function (node, name, value, ns) { if (ns === void 0) { ns = null; } if (!ns) { return node.setAttribute(name, value); } name = ns.replace(/.*\//, '') + ':' + name.replace(/^.*:/, ''); return node.setAttributeNS(ns, name, value); }; HTMLAdaptor.prototype.getAttribute = function (node, name) { return node.getAttribute(name); }; HTMLAdaptor.prototype.removeAttribute = function (node, name) { return node.removeAttribute(name); }; HTMLAdaptor.prototype.hasAttribute = function (node, name) { return node.hasAttribute(name); }; HTMLAdaptor.prototype.allAttributes = function (node) { return Array.from(node.attributes).map(function (x) { return { name: x.name, value: x.value }; }); }; HTMLAdaptor.prototype.addClass = function (node, name) { if (node.classList) { node.classList.add(name); } else { node.className = (node.className + ' ' + name).trim(); } }; HTMLAdaptor.prototype.removeClass = function (node, name) { if (node.classList) { node.classList.remove(name); } else { node.className = node.className.split(/ /).filter(function (c) { return c !== name; }).join(' '); } }; HTMLAdaptor.prototype.hasClass = function (node, name) { if (node.classList) { return node.classList.contains(name); } return node.className.split(/ /).indexOf(name) >= 0; }; HTMLAdaptor.prototype.setStyle = function (node, name, value) { node.style[name] = value; }; HTMLAdaptor.prototype.getStyle = function (node, name) { return node.style[name]; }; HTMLAdaptor.prototype.allStyles = function (node) { return node.style.cssText; }; HTMLAdaptor.prototype.fontSize = function (node) { var style = this.window.getComputedStyle(node); return parseFloat(style.fontSize); }; HTMLAdaptor.prototype.fontFamily = function (node) { var style = this.window.getComputedStyle(node); return style.fontFamily || ''; }; HTMLAdaptor.prototype.nodeSize = function (node, em, local) { if (em === void 0) { em = 1; } if (local === void 0) { local = false; } if (local && node.getBBox) { var _a = node.getBBox(), width = _a.width, height = _a.height; return [width / em, height / em]; } return [node.offsetWidth / em, node.offsetHeight / em]; }; HTMLAdaptor.prototype.nodeBBox = function (node) { var _a = node.getBoundingClientRect(), left = _a.left, right = _a.right, top = _a.top, bottom = _a.bottom; return { left: left, right: right, top: top, bottom: bottom }; }; return HTMLAdaptor; }(DOMAdaptor_js_1.AbstractDOMAdaptor)); exports.HTMLAdaptor = HTMLAdaptor; //# sourceMappingURL=HTMLAdaptor.js.map /***/ }), /* 104 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractDOMAdaptor = void 0; var AbstractDOMAdaptor = (function () { function AbstractDOMAdaptor(document) { if (document === void 0) { document = null; } this.document = document; } AbstractDOMAdaptor.prototype.node = function (kind, def, children, ns) { var e_1, _a; if (def === void 0) { def = {}; } if (children === void 0) { children = []; } var node = this.create(kind, ns); this.setAttributes(node, def); try { for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) { var child = children_1_1.value; this.append(node, child); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1); } finally { if (e_1) throw e_1.error; } } return node; }; AbstractDOMAdaptor.prototype.setAttributes = function (node, def) { var e_2, _a, e_3, _b, e_4, _c; if (def.style && typeof (def.style) !== 'string') { try { for (var _d = __values(Object.keys(def.style)), _e = _d.next(); !_e.done; _e = _d.next()) { var key = _e.value; this.setStyle(node, key.replace(/-([a-z])/g, function (_m, c) { return c.toUpperCase(); }), def.style[key]); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_2) throw e_2.error; } } } if (def.properties) { try { for (var _f = __values(Object.keys(def.properties)), _g = _f.next(); !_g.done; _g = _f.next()) { var key = _g.value; node[key] = def.properties[key]; } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_3) throw e_3.error; } } } try { for (var _h = __values(Object.keys(def)), _j = _h.next(); !_j.done; _j = _h.next()) { var key = _j.value; if ((key !== 'style' || typeof (def.style) === 'string') && key !== 'properties') { this.setAttribute(node, key, def[key]); } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_j && !_j.done && (_c = _h.return)) _c.call(_h); } finally { if (e_4) throw e_4.error; } } }; AbstractDOMAdaptor.prototype.replace = function (nnode, onode) { this.insert(nnode, onode); this.remove(onode); return onode; }; AbstractDOMAdaptor.prototype.childNode = function (node, i) { return this.childNodes(node)[i]; }; AbstractDOMAdaptor.prototype.allClasses = function (node) { var classes = this.getAttribute(node, 'class'); return (!classes ? [] : classes.replace(/ +/g, ' ').replace(/^ /, '').replace(/ $/, '').split(/ /)); }; return AbstractDOMAdaptor; }()); exports.AbstractDOMAdaptor = AbstractDOMAdaptor; //# sourceMappingURL=DOMAdaptor.js.map /***/ }), /* 105 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractFindMath = void 0; var Options_js_1 = __webpack_require__(6); var AbstractFindMath = (function () { function AbstractFindMath(options) { var CLASS = this.constructor; this.options = Options_js_1.userOptions(Options_js_1.defaultOptions({}, CLASS.OPTIONS), options); } AbstractFindMath.OPTIONS = {}; return AbstractFindMath; }()); exports.AbstractFindMath = AbstractFindMath; //# sourceMappingURL=FindMath.js.map /***/ }), /* 106 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractHandler = void 0; var MathDocument_js_1 = __webpack_require__(52); var DefaultMathDocument = (function (_super) { __extends(DefaultMathDocument, _super); function DefaultMathDocument() { return _super !== null && _super.apply(this, arguments) || this; } return DefaultMathDocument; }(MathDocument_js_1.AbstractMathDocument)); var AbstractHandler = (function () { function AbstractHandler(adaptor, priority) { if (priority === void 0) { priority = 5; } this.documentClass = DefaultMathDocument; this.adaptor = adaptor; this.priority = priority; } Object.defineProperty(AbstractHandler.prototype, "name", { get: function () { return this.constructor.NAME; }, enumerable: false, configurable: true }); AbstractHandler.prototype.handlesDocument = function (_document) { return false; }; AbstractHandler.prototype.create = function (document, options) { return new this.documentClass(document, this.adaptor, options); }; AbstractHandler.NAME = 'generic'; return AbstractHandler; }()); exports.AbstractHandler = AbstractHandler; //# sourceMappingURL=Handler.js.map /***/ }), /* 107 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.LinkedList = exports.ListItem = exports.END = void 0; exports.END = Symbol(); var ListItem = (function () { function ListItem(data) { if (data === void 0) { data = null; } this.next = null; this.prev = null; this.data = data; } return ListItem; }()); exports.ListItem = ListItem; var LinkedList = (function () { function LinkedList() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } this.list = new ListItem(exports.END); this.list.next = this.list.prev = this.list; this.push.apply(this, __spread(args)); } LinkedList.prototype.toArray = function () { return Array.from(this); }; LinkedList.prototype.isBefore = function (a, b) { return a < b; }; LinkedList.prototype.push = function () { var e_1, _a; var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } try { for (var args_1 = __values(args), args_1_1 = args_1.next(); !args_1_1.done; args_1_1 = args_1.next()) { var data = args_1_1.value; var item = new ListItem(data); item.next = this.list; item.prev = this.list.prev; this.list.prev = item; item.prev.next = item; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (args_1_1 && !args_1_1.done && (_a = args_1.return)) _a.call(args_1); } finally { if (e_1) throw e_1.error; } } return this; }; LinkedList.prototype.pop = function () { var item = this.list.prev; if (item.data === exports.END) { return null; } this.list.prev = item.prev; item.prev.next = this.list; item.next = item.prev = null; return item.data; }; LinkedList.prototype.unshift = function () { var e_2, _a; var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } try { for (var _b = __values(args.slice(0).reverse()), _c = _b.next(); !_c.done; _c = _b.next()) { var data = _c.value; var item = new ListItem(data); item.next = this.list.next; item.prev = this.list; this.list.next = item; item.next.prev = item; } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } return this; }; LinkedList.prototype.shift = function () { var item = this.list.next; if (item.data === exports.END) { return null; } this.list.next = item.next; item.next.prev = this.list; item.next = item.prev = null; return item.data; }; LinkedList.prototype.remove = function () { var e_3, _a; var items = []; for (var _i = 0; _i < arguments.length; _i++) { items[_i] = arguments[_i]; } var map = new Map(); try { for (var items_1 = __values(items), items_1_1 = items_1.next(); !items_1_1.done; items_1_1 = items_1.next()) { var item_1 = items_1_1.value; map.set(item_1, true); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (items_1_1 && !items_1_1.done && (_a = items_1.return)) _a.call(items_1); } finally { if (e_3) throw e_3.error; } } var item = this.list.next; while (item.data !== exports.END) { var next = item.next; if (map.has(item.data)) { item.prev.next = item.next; item.next.prev = item.prev; item.next = item.prev = null; } item = next; } }; LinkedList.prototype.clear = function () { this.list.next.prev = this.list.prev.next = null; this.list.next = this.list.prev = this.list; return this; }; LinkedList.prototype[Symbol.iterator] = function () { var current = this.list; return { next: function () { current = current.next; return (current.data === exports.END ? { value: null, done: true } : { value: current.data, done: false }); } }; }; LinkedList.prototype.reversed = function () { var _a; var current = this.list; return _a = {}, _a[Symbol.iterator] = function () { return this; }, _a.next = function () { current = current.prev; return (current.data === exports.END ? { value: null, done: true } : { value: current.data, done: false }); }, _a.toArray = function () { return Array.from(this); }, _a; }; LinkedList.prototype.insert = function (data, isBefore) { if (isBefore === void 0) { isBefore = null; } if (isBefore === null) { isBefore = this.isBefore.bind(this); } var item = new ListItem(data); var cur = this.list.next; while (cur.data !== exports.END && isBefore(cur.data, item.data)) { cur = cur.next; } item.prev = cur.prev; item.next = cur; cur.prev.next = cur.prev = item; return this; }; LinkedList.prototype.sort = function (isBefore) { var e_4, _a; if (isBefore === void 0) { isBefore = null; } if (isBefore === null) { isBefore = this.isBefore.bind(this); } var lists = []; try { for (var _b = __values(this), _c = _b.next(); !_c.done; _c = _b.next()) { var item = _c.value; lists.push(new LinkedList(item)); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } this.list.next = this.list.prev = this.list; while (lists.length > 1) { var l1 = lists.shift(); var l2 = lists.shift(); l1.merge(l2, isBefore); lists.push(l1); } if (lists.length) { this.list = lists[0].list; } return this; }; LinkedList.prototype.merge = function (list, isBefore) { var _a, _b, _c, _d, _e; if (isBefore === void 0) { isBefore = null; } if (isBefore === null) { isBefore = this.isBefore.bind(this); } var lcur = this.list.next; var mcur = list.list.next; while (lcur.data !== exports.END && mcur.data !== exports.END) { if (isBefore(mcur.data, lcur.data)) { _a = __read([lcur, mcur], 2), mcur.prev.next = _a[0], lcur.prev.next = _a[1]; _b = __read([lcur.prev, mcur.prev], 2), mcur.prev = _b[0], lcur.prev = _b[1]; _c = __read([list.list, this.list], 2), this.list.prev.next = _c[0], list.list.prev.next = _c[1]; _d = __read([list.list.prev, this.list.prev], 2), this.list.prev = _d[0], list.list.prev = _d[1]; _e = __read([mcur.next, lcur], 2), lcur = _e[0], mcur = _e[1]; } else { lcur = lcur.next; } } if (mcur.data !== exports.END) { this.list.prev.next = list.list.next; list.list.next.prev = this.list.prev; list.list.prev.next = this.list; this.list.prev = list.list.prev; list.list.next = list.list.prev = list.list; } return this; }; return LinkedList; }()); exports.LinkedList = LinkedList; //# sourceMappingURL=LinkedList.js.map /***/ }), /* 108 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractNodeFactory = void 0; var Factory_js_1 = __webpack_require__(37); var AbstractNodeFactory = (function (_super) { __extends(AbstractNodeFactory, _super); function AbstractNodeFactory() { return _super !== null && _super.apply(this, arguments) || this; } AbstractNodeFactory.prototype.create = function (kind, properties, children) { if (properties === void 0) { properties = {}; } if (children === void 0) { children = []; } return this.node[kind](properties, children); }; return AbstractNodeFactory; }(Factory_js_1.AbstractFactory)); exports.AbstractNodeFactory = AbstractNodeFactory; //# sourceMappingURL=NodeFactory.js.map /***/ }), /* 109 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.MML = void 0; var MmlNode_js_1 = __webpack_require__(0); var math_js_1 = __webpack_require__(58); var mi_js_1 = __webpack_require__(38); var mn_js_1 = __webpack_require__(59); var mo_js_1 = __webpack_require__(32); var mtext_js_1 = __webpack_require__(60); var mspace_js_1 = __webpack_require__(61); var ms_js_1 = __webpack_require__(62); var mrow_js_1 = __webpack_require__(63); var mfrac_js_1 = __webpack_require__(64); var msqrt_js_1 = __webpack_require__(65); var mroot_js_1 = __webpack_require__(66); var mstyle_js_1 = __webpack_require__(111); var merror_js_1 = __webpack_require__(112); var mpadded_js_1 = __webpack_require__(67); var mphantom_js_1 = __webpack_require__(113); var mfenced_js_1 = __webpack_require__(68); var menclose_js_1 = __webpack_require__(69); var maction_js_1 = __webpack_require__(70); var msubsup_js_1 = __webpack_require__(39); var munderover_js_1 = __webpack_require__(71); var mmultiscripts_js_1 = __webpack_require__(72); var mtable_js_1 = __webpack_require__(73); var mtr_js_1 = __webpack_require__(74); var mtd_js_1 = __webpack_require__(75); var maligngroup_js_1 = __webpack_require__(114); var malignmark_js_1 = __webpack_require__(115); var mglyph_js_1 = __webpack_require__(76); var semantics_js_1 = __webpack_require__(77); var TeXAtom_js_1 = __webpack_require__(78); var mathchoice_js_1 = __webpack_require__(116); exports.MML = (_a = {}, _a[math_js_1.MmlMath.prototype.kind] = math_js_1.MmlMath, _a[mi_js_1.MmlMi.prototype.kind] = mi_js_1.MmlMi, _a[mn_js_1.MmlMn.prototype.kind] = mn_js_1.MmlMn, _a[mo_js_1.MmlMo.prototype.kind] = mo_js_1.MmlMo, _a[mtext_js_1.MmlMtext.prototype.kind] = mtext_js_1.MmlMtext, _a[mspace_js_1.MmlMspace.prototype.kind] = mspace_js_1.MmlMspace, _a[ms_js_1.MmlMs.prototype.kind] = ms_js_1.MmlMs, _a[mrow_js_1.MmlMrow.prototype.kind] = mrow_js_1.MmlMrow, _a[mrow_js_1.MmlInferredMrow.prototype.kind] = mrow_js_1.MmlInferredMrow, _a[mfrac_js_1.MmlMfrac.prototype.kind] = mfrac_js_1.MmlMfrac, _a[msqrt_js_1.MmlMsqrt.prototype.kind] = msqrt_js_1.MmlMsqrt, _a[mroot_js_1.MmlMroot.prototype.kind] = mroot_js_1.MmlMroot, _a[mstyle_js_1.MmlMstyle.prototype.kind] = mstyle_js_1.MmlMstyle, _a[merror_js_1.MmlMerror.prototype.kind] = merror_js_1.MmlMerror, _a[mpadded_js_1.MmlMpadded.prototype.kind] = mpadded_js_1.MmlMpadded, _a[mphantom_js_1.MmlMphantom.prototype.kind] = mphantom_js_1.MmlMphantom, _a[mfenced_js_1.MmlMfenced.prototype.kind] = mfenced_js_1.MmlMfenced, _a[menclose_js_1.MmlMenclose.prototype.kind] = menclose_js_1.MmlMenclose, _a[maction_js_1.MmlMaction.prototype.kind] = maction_js_1.MmlMaction, _a[msubsup_js_1.MmlMsub.prototype.kind] = msubsup_js_1.MmlMsub, _a[msubsup_js_1.MmlMsup.prototype.kind] = msubsup_js_1.MmlMsup, _a[msubsup_js_1.MmlMsubsup.prototype.kind] = msubsup_js_1.MmlMsubsup, _a[munderover_js_1.MmlMunder.prototype.kind] = munderover_js_1.MmlMunder, _a[munderover_js_1.MmlMover.prototype.kind] = munderover_js_1.MmlMover, _a[munderover_js_1.MmlMunderover.prototype.kind] = munderover_js_1.MmlMunderover, _a[mmultiscripts_js_1.MmlMmultiscripts.prototype.kind] = mmultiscripts_js_1.MmlMmultiscripts, _a[mmultiscripts_js_1.MmlMprescripts.prototype.kind] = mmultiscripts_js_1.MmlMprescripts, _a[mmultiscripts_js_1.MmlNone.prototype.kind] = mmultiscripts_js_1.MmlNone, _a[mtable_js_1.MmlMtable.prototype.kind] = mtable_js_1.MmlMtable, _a[mtr_js_1.MmlMlabeledtr.prototype.kind] = mtr_js_1.MmlMlabeledtr, _a[mtr_js_1.MmlMtr.prototype.kind] = mtr_js_1.MmlMtr, _a[mtd_js_1.MmlMtd.prototype.kind] = mtd_js_1.MmlMtd, _a[maligngroup_js_1.MmlMaligngroup.prototype.kind] = maligngroup_js_1.MmlMaligngroup, _a[malignmark_js_1.MmlMalignmark.prototype.kind] = malignmark_js_1.MmlMalignmark, _a[mglyph_js_1.MmlMglyph.prototype.kind] = mglyph_js_1.MmlMglyph, _a[semantics_js_1.MmlSemantics.prototype.kind] = semantics_js_1.MmlSemantics, _a[semantics_js_1.MmlAnnotation.prototype.kind] = semantics_js_1.MmlAnnotation, _a[semantics_js_1.MmlAnnotationXML.prototype.kind] = semantics_js_1.MmlAnnotationXML, _a[TeXAtom_js_1.TeXAtom.prototype.kind] = TeXAtom_js_1.TeXAtom, _a[mathchoice_js_1.MathChoice.prototype.kind] = mathchoice_js_1.MathChoice, _a[MmlNode_js_1.TextNode.prototype.kind] = MmlNode_js_1.TextNode, _a[MmlNode_js_1.XMLNode.prototype.kind] = MmlNode_js_1.XMLNode, _a); //# sourceMappingURL=MML.js.map /***/ }), /* 110 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OPTABLE = exports.MMLSPACING = exports.RANGES = exports.MO = exports.OPDEF = void 0; var MmlNode_js_1 = __webpack_require__(0); function OPDEF(lspace, rspace, texClass, properties) { if (texClass === void 0) { texClass = MmlNode_js_1.TEXCLASS.BIN; } if (properties === void 0) { properties = null; } return [lspace, rspace, texClass, properties]; } exports.OPDEF = OPDEF; exports.MO = { ORD: OPDEF(0, 0, MmlNode_js_1.TEXCLASS.ORD), ORD11: OPDEF(1, 1, MmlNode_js_1.TEXCLASS.ORD), ORD21: OPDEF(2, 1, MmlNode_js_1.TEXCLASS.ORD), ORD02: OPDEF(0, 2, MmlNode_js_1.TEXCLASS.ORD), ORD55: OPDEF(5, 5, MmlNode_js_1.TEXCLASS.ORD), OP: OPDEF(1, 2, MmlNode_js_1.TEXCLASS.OP, { largeop: true, movablelimits: true, symmetric: true }), OPFIXED: OPDEF(1, 2, MmlNode_js_1.TEXCLASS.OP, { largeop: true, movablelimits: true }), INTEGRAL: OPDEF(0, 1, MmlNode_js_1.TEXCLASS.OP, { largeop: true, symmetric: true }), INTEGRAL2: OPDEF(1, 2, MmlNode_js_1.TEXCLASS.OP, { largeop: true, symmetric: true }), BIN3: OPDEF(3, 3, MmlNode_js_1.TEXCLASS.BIN), BIN4: OPDEF(4, 4, MmlNode_js_1.TEXCLASS.BIN), BIN01: OPDEF(0, 1, MmlNode_js_1.TEXCLASS.BIN), BIN5: OPDEF(5, 5, MmlNode_js_1.TEXCLASS.BIN), TALLBIN: OPDEF(4, 4, MmlNode_js_1.TEXCLASS.BIN, { stretchy: true }), BINOP: OPDEF(4, 4, MmlNode_js_1.TEXCLASS.BIN, { largeop: true, movablelimits: true }), REL: OPDEF(5, 5, MmlNode_js_1.TEXCLASS.REL), REL1: OPDEF(1, 1, MmlNode_js_1.TEXCLASS.REL, { stretchy: true }), REL4: OPDEF(4, 4, MmlNode_js_1.TEXCLASS.REL), RELSTRETCH: OPDEF(5, 5, MmlNode_js_1.TEXCLASS.REL, { stretchy: true }), RELACCENT: OPDEF(5, 5, MmlNode_js_1.TEXCLASS.REL, { accent: true }), WIDEREL: OPDEF(5, 5, MmlNode_js_1.TEXCLASS.REL, { accent: true, stretchy: true }), OPEN: OPDEF(0, 0, MmlNode_js_1.TEXCLASS.OPEN, { fence: true, stretchy: true, symmetric: true }), CLOSE: OPDEF(0, 0, MmlNode_js_1.TEXCLASS.CLOSE, { fence: true, stretchy: true, symmetric: true }), INNER: OPDEF(0, 0, MmlNode_js_1.TEXCLASS.INNER), PUNCT: OPDEF(0, 3, MmlNode_js_1.TEXCLASS.PUNCT), ACCENT: OPDEF(0, 0, MmlNode_js_1.TEXCLASS.ORD, { accent: true }), WIDEACCENT: OPDEF(0, 0, MmlNode_js_1.TEXCLASS.ORD, { accent: true, stretchy: true }) }; exports.RANGES = [ [0x20, 0x7F, MmlNode_js_1.TEXCLASS.REL, 'BasicLatin'], [0xA0, 0xFF, MmlNode_js_1.TEXCLASS.ORD, 'Latin1Supplement'], [0x100, 0x17F, MmlNode_js_1.TEXCLASS.ORD, 'LatinExtendedA'], [0x180, 0x24F, MmlNode_js_1.TEXCLASS.ORD, 'LatinExtendedB'], [0x2B0, 0x2FF, MmlNode_js_1.TEXCLASS.ORD, 'SpacingModLetters'], [0x300, 0x36F, MmlNode_js_1.TEXCLASS.ORD, 'CombDiacritMarks'], [0x370, 0x3FF, MmlNode_js_1.TEXCLASS.ORD, 'GreekAndCoptic'], [0x1E00, 0x1EFF, MmlNode_js_1.TEXCLASS.ORD, 'LatinExtendedAdditional'], [0x2000, 0x206F, MmlNode_js_1.TEXCLASS.PUNCT, 'GeneralPunctuation'], [0x2070, 0x209F, MmlNode_js_1.TEXCLASS.ORD, 'SuperAndSubscripts'], [0x20A0, 0x20CF, MmlNode_js_1.TEXCLASS.ORD, 'Currency'], [0x20D0, 0x20FF, MmlNode_js_1.TEXCLASS.ORD, 'CombDiactForSymbols'], [0x2100, 0x214F, MmlNode_js_1.TEXCLASS.ORD, 'LetterlikeSymbols'], [0x2150, 0x218F, MmlNode_js_1.TEXCLASS.ORD, 'NumberForms'], [0x2190, 0x21FF, MmlNode_js_1.TEXCLASS.REL, 'Arrows'], [0x2200, 0x22FF, MmlNode_js_1.TEXCLASS.BIN, 'MathOperators'], [0x2300, 0x23FF, MmlNode_js_1.TEXCLASS.ORD, 'MiscTechnical'], [0x2460, 0x24FF, MmlNode_js_1.TEXCLASS.ORD, 'EnclosedAlphaNums'], [0x2500, 0x259F, MmlNode_js_1.TEXCLASS.ORD, 'BoxDrawing'], [0x25A0, 0x25FF, MmlNode_js_1.TEXCLASS.ORD, 'GeometricShapes'], [0x2700, 0x27BF, MmlNode_js_1.TEXCLASS.ORD, 'Dingbats'], [0x27C0, 0x27EF, MmlNode_js_1.TEXCLASS.ORD, 'MiscMathSymbolsA'], [0x27F0, 0x27FF, MmlNode_js_1.TEXCLASS.REL, 'SupplementalArrowsA'], [0x2900, 0x297F, MmlNode_js_1.TEXCLASS.REL, 'SupplementalArrowsB'], [0x2980, 0x29FF, MmlNode_js_1.TEXCLASS.ORD, 'MiscMathSymbolsB'], [0x2A00, 0x2AFF, MmlNode_js_1.TEXCLASS.BIN, 'SuppMathOperators'], [0x2B00, 0x2BFF, MmlNode_js_1.TEXCLASS.ORD, 'MiscSymbolsAndArrows'], [0x1D400, 0x1D7FF, MmlNode_js_1.TEXCLASS.ORD, 'MathAlphabets'] ]; exports.MMLSPACING = [ [0, 0], [1, 2], [3, 3], [4, 4], [0, 0], [0, 0], [0, 3] ]; exports.OPTABLE = { prefix: { '(': exports.MO.OPEN, '+': exports.MO.BIN01, '-': exports.MO.BIN01, '[': exports.MO.OPEN, '{': exports.MO.OPEN, '|': exports.MO.OPEN, '||': [0, 0, MmlNode_js_1.TEXCLASS.BIN, { fence: true, stretchy: true, symmetric: true }], '|||': [0, 0, MmlNode_js_1.TEXCLASS.ORD, { fence: true, stretchy: true, symmetric: true }], '\u00AC': exports.MO.ORD21, '\u00B1': exports.MO.BIN01, '\u2016': [0, 0, MmlNode_js_1.TEXCLASS.ORD, { fence: true, stretchy: true }], '\u2018': [0, 0, MmlNode_js_1.TEXCLASS.OPEN, { fence: true }], '\u201C': [0, 0, MmlNode_js_1.TEXCLASS.OPEN, { fence: true }], '\u2145': exports.MO.ORD21, '\u2146': OPDEF(2, 0, MmlNode_js_1.TEXCLASS.ORD), '\u2200': exports.MO.ORD21, '\u2202': exports.MO.ORD21, '\u2203': exports.MO.ORD21, '\u2204': exports.MO.ORD21, '\u2207': exports.MO.ORD21, '\u220F': exports.MO.OP, '\u2210': exports.MO.OP, '\u2211': exports.MO.OP, '\u2212': exports.MO.BIN01, '\u2213': exports.MO.BIN01, '\u221A': [1, 1, MmlNode_js_1.TEXCLASS.ORD, { stretchy: true }], '\u221B': exports.MO.ORD11, '\u221C': exports.MO.ORD11, '\u2220': exports.MO.ORD, '\u2221': exports.MO.ORD, '\u2222': exports.MO.ORD, '\u222B': exports.MO.INTEGRAL, '\u222C': exports.MO.INTEGRAL, '\u222D': exports.MO.INTEGRAL, '\u222E': exports.MO.INTEGRAL, '\u222F': exports.MO.INTEGRAL, '\u2230': exports.MO.INTEGRAL, '\u2231': exports.MO.INTEGRAL, '\u2232': exports.MO.INTEGRAL, '\u2233': exports.MO.INTEGRAL, '\u22C0': exports.MO.OP, '\u22C1': exports.MO.OP, '\u22C2': exports.MO.OP, '\u22C3': exports.MO.OP, '\u2308': exports.MO.OPEN, '\u230A': exports.MO.OPEN, '\u2772': exports.MO.OPEN, '\u27E6': exports.MO.OPEN, '\u27E8': exports.MO.OPEN, '\u27EA': exports.MO.OPEN, '\u27EC': exports.MO.OPEN, '\u27EE': exports.MO.OPEN, '\u2980': [0, 0, MmlNode_js_1.TEXCLASS.ORD, { fence: true, stretchy: true }], '\u2983': exports.MO.OPEN, '\u2985': exports.MO.OPEN, '\u2987': exports.MO.OPEN, '\u2989': exports.MO.OPEN, '\u298B': exports.MO.OPEN, '\u298D': exports.MO.OPEN, '\u298F': exports.MO.OPEN, '\u2991': exports.MO.OPEN, '\u2993': exports.MO.OPEN, '\u2995': exports.MO.OPEN, '\u2997': exports.MO.OPEN, '\u29FC': exports.MO.OPEN, '\u2A00': exports.MO.OP, '\u2A01': exports.MO.OP, '\u2A02': exports.MO.OP, '\u2A03': exports.MO.OP, '\u2A04': exports.MO.OP, '\u2A05': exports.MO.OP, '\u2A06': exports.MO.OP, '\u2A07': exports.MO.OP, '\u2A08': exports.MO.OP, '\u2A09': exports.MO.OP, '\u2A0A': exports.MO.OP, '\u2A0B': exports.MO.INTEGRAL2, '\u2A0C': exports.MO.INTEGRAL, '\u2A0D': exports.MO.INTEGRAL2, '\u2A0E': exports.MO.INTEGRAL2, '\u2A0F': exports.MO.INTEGRAL2, '\u2A10': exports.MO.OP, '\u2A11': exports.MO.OP, '\u2A12': exports.MO.OP, '\u2A13': exports.MO.OP, '\u2A14': exports.MO.OP, '\u2A15': exports.MO.INTEGRAL2, '\u2A16': exports.MO.INTEGRAL2, '\u2A17': exports.MO.INTEGRAL2, '\u2A18': exports.MO.INTEGRAL2, '\u2A19': exports.MO.INTEGRAL2, '\u2A1A': exports.MO.INTEGRAL2, '\u2A1B': exports.MO.INTEGRAL2, '\u2A1C': exports.MO.INTEGRAL2, '\u2AFC': exports.MO.OP, '\u2AFF': exports.MO.OP, }, postfix: { '!!': OPDEF(1, 0), '!': [1, 0, MmlNode_js_1.TEXCLASS.CLOSE, null], '&': exports.MO.ORD, ')': exports.MO.CLOSE, '++': OPDEF(0, 0), '--': OPDEF(0, 0), '..': OPDEF(0, 0), '...': exports.MO.ORD, '\'': exports.MO.ACCENT, ']': exports.MO.CLOSE, '^': exports.MO.WIDEACCENT, '_': exports.MO.WIDEACCENT, '`': exports.MO.ACCENT, '|': exports.MO.CLOSE, '}': exports.MO.CLOSE, '~': exports.MO.WIDEACCENT, '||': [0, 0, MmlNode_js_1.TEXCLASS.BIN, { fence: true, stretchy: true, symmetric: true }], '|||': [0, 0, MmlNode_js_1.TEXCLASS.ORD, { fence: true, stretchy: true, symmetric: true }], '\u00A8': exports.MO.ACCENT, '\u00AF': exports.MO.WIDEACCENT, '\u00B0': exports.MO.ORD, '\u00B4': exports.MO.ACCENT, '\u00B8': exports.MO.ACCENT, '\u02C6': exports.MO.WIDEACCENT, '\u02C7': exports.MO.WIDEACCENT, '\u02C9': exports.MO.WIDEACCENT, '\u02CA': exports.MO.ACCENT, '\u02CB': exports.MO.ACCENT, '\u02CD': exports.MO.WIDEACCENT, '\u02D8': exports.MO.ACCENT, '\u02D9': exports.MO.ACCENT, '\u02DA': exports.MO.ACCENT, '\u02DC': exports.MO.WIDEACCENT, '\u02DD': exports.MO.ACCENT, '\u02F7': exports.MO.WIDEACCENT, '\u0302': exports.MO.WIDEACCENT, '\u0311': exports.MO.ACCENT, '\u03F6': exports.MO.REL, '\u2016': [0, 0, MmlNode_js_1.TEXCLASS.ORD, { fence: true, stretchy: true }], '\u2019': [0, 0, MmlNode_js_1.TEXCLASS.CLOSE, { fence: true }], '\u201D': [0, 0, MmlNode_js_1.TEXCLASS.CLOSE, { fence: true }], '\u2032': exports.MO.ORD02, '\u203E': exports.MO.WIDEACCENT, '\u20DB': exports.MO.ACCENT, '\u20DC': exports.MO.ACCENT, '\u2309': exports.MO.CLOSE, '\u230B': exports.MO.CLOSE, '\u23B4': exports.MO.WIDEACCENT, '\u23B5': exports.MO.WIDEACCENT, '\u23DC': exports.MO.WIDEACCENT, '\u23DD': exports.MO.WIDEACCENT, '\u23DE': exports.MO.WIDEACCENT, '\u23DF': exports.MO.WIDEACCENT, '\u23E0': exports.MO.WIDEACCENT, '\u23E1': exports.MO.WIDEACCENT, '\u25A0': exports.MO.BIN3, '\u25A1': exports.MO.BIN3, '\u25AA': exports.MO.BIN3, '\u25AB': exports.MO.BIN3, '\u25AD': exports.MO.BIN3, '\u25AE': exports.MO.BIN3, '\u25AF': exports.MO.BIN3, '\u25B0': exports.MO.BIN3, '\u25B1': exports.MO.BIN3, '\u25B2': exports.MO.BIN4, '\u25B4': exports.MO.BIN4, '\u25B6': exports.MO.BIN4, '\u25B7': exports.MO.BIN4, '\u25B8': exports.MO.BIN4, '\u25BC': exports.MO.BIN4, '\u25BE': exports.MO.BIN4, '\u25C0': exports.MO.BIN4, '\u25C1': exports.MO.BIN4, '\u25C2': exports.MO.BIN4, '\u25C4': exports.MO.BIN4, '\u25C5': exports.MO.BIN4, '\u25C6': exports.MO.BIN4, '\u25C7': exports.MO.BIN4, '\u25C8': exports.MO.BIN4, '\u25C9': exports.MO.BIN4, '\u25CC': exports.MO.BIN4, '\u25CD': exports.MO.BIN4, '\u25CE': exports.MO.BIN4, '\u25CF': exports.MO.BIN4, '\u25D6': exports.MO.BIN4, '\u25D7': exports.MO.BIN4, '\u25E6': exports.MO.BIN4, '\u266D': exports.MO.ORD02, '\u266E': exports.MO.ORD02, '\u266F': exports.MO.ORD02, '\u2773': exports.MO.CLOSE, '\u27E7': exports.MO.CLOSE, '\u27E9': exports.MO.CLOSE, '\u27EB': exports.MO.CLOSE, '\u27ED': exports.MO.CLOSE, '\u27EF': exports.MO.CLOSE, '\u2980': [0, 0, MmlNode_js_1.TEXCLASS.ORD, { fence: true, stretchy: true }], '\u2984': exports.MO.CLOSE, '\u2986': exports.MO.CLOSE, '\u2988': exports.MO.CLOSE, '\u298A': exports.MO.CLOSE, '\u298C': exports.MO.CLOSE, '\u298E': exports.MO.CLOSE, '\u2990': exports.MO.CLOSE, '\u2992': exports.MO.CLOSE, '\u2994': exports.MO.CLOSE, '\u2996': exports.MO.CLOSE, '\u2998': exports.MO.CLOSE, '\u29FD': exports.MO.CLOSE, }, infix: { '!=': exports.MO.BIN4, '#': exports.MO.ORD, '$': exports.MO.ORD, '%': [3, 3, MmlNode_js_1.TEXCLASS.ORD, null], '&&': exports.MO.BIN4, '': exports.MO.ORD, '*': exports.MO.BIN3, '**': OPDEF(1, 1), '*=': exports.MO.BIN4, '+': exports.MO.BIN4, '+=': exports.MO.BIN4, ',': [0, 3, MmlNode_js_1.TEXCLASS.PUNCT, { linebreakstyle: 'after', separator: true }], '-': exports.MO.BIN4, '-=': exports.MO.BIN4, '->': exports.MO.BIN5, '.': [0, 3, MmlNode_js_1.TEXCLASS.PUNCT, { separator: true }], '/': exports.MO.ORD11, '//': OPDEF(1, 1), '/=': exports.MO.BIN4, ':': [1, 2, MmlNode_js_1.TEXCLASS.REL, null], ':=': exports.MO.BIN4, ';': [0, 3, MmlNode_js_1.TEXCLASS.PUNCT, { linebreakstyle: 'after', separator: true }], '<': exports.MO.REL, '<=': exports.MO.BIN5, '<>': OPDEF(1, 1), '=': exports.MO.REL, '==': exports.MO.BIN4, '>': exports.MO.REL, '>=': exports.MO.BIN5, '?': [1, 1, MmlNode_js_1.TEXCLASS.CLOSE, null], '@': exports.MO.ORD11, '\\': exports.MO.ORD, '^': exports.MO.ORD11, '_': exports.MO.ORD11, '|': [2, 2, MmlNode_js_1.TEXCLASS.ORD, { fence: true, stretchy: true, symmetric: true }], '||': [2, 2, MmlNode_js_1.TEXCLASS.BIN, { fence: true, stretchy: true, symmetric: true }], '|||': [2, 2, MmlNode_js_1.TEXCLASS.ORD, { fence: true, stretchy: true, symmetric: true }], '\u00B1': exports.MO.BIN4, '\u00B7': exports.MO.BIN4, '\u00D7': exports.MO.BIN4, '\u00F7': exports.MO.BIN4, '\u02B9': exports.MO.ORD, '\u0300': exports.MO.ACCENT, '\u0301': exports.MO.ACCENT, '\u0303': exports.MO.WIDEACCENT, '\u0304': exports.MO.ACCENT, '\u0306': exports.MO.ACCENT, '\u0307': exports.MO.ACCENT, '\u0308': exports.MO.ACCENT, '\u030C': exports.MO.ACCENT, '\u0332': exports.MO.WIDEACCENT, '\u0338': exports.MO.REL4, '\u2015': [0, 0, MmlNode_js_1.TEXCLASS.ORD, { stretchy: true }], '\u2017': [0, 0, MmlNode_js_1.TEXCLASS.ORD, { stretchy: true }], '\u2020': exports.MO.BIN3, '\u2021': exports.MO.BIN3, '\u2022': exports.MO.BIN4, '\u2026': exports.MO.INNER, '\u2044': exports.MO.TALLBIN, '\u2061': exports.MO.ORD, '\u2062': exports.MO.ORD, '\u2063': [0, 0, MmlNode_js_1.TEXCLASS.ORD, { linebreakstyle: 'after', separator: true }], '\u2064': exports.MO.ORD, '\u20D7': exports.MO.ACCENT, '\u2111': exports.MO.ORD, '\u2113': exports.MO.ORD, '\u2118': exports.MO.ORD, '\u211C': exports.MO.ORD, '\u2190': exports.MO.WIDEREL, '\u2191': exports.MO.RELSTRETCH, '\u2192': exports.MO.WIDEREL, '\u2193': exports.MO.RELSTRETCH, '\u2194': exports.MO.WIDEREL, '\u2195': exports.MO.RELSTRETCH, '\u2196': exports.MO.RELSTRETCH, '\u2197': exports.MO.RELSTRETCH, '\u2198': exports.MO.RELSTRETCH, '\u2199': exports.MO.RELSTRETCH, '\u219A': exports.MO.RELACCENT, '\u219B': exports.MO.RELACCENT, '\u219C': exports.MO.WIDEREL, '\u219D': exports.MO.WIDEREL, '\u219E': exports.MO.WIDEREL, '\u219F': exports.MO.WIDEREL, '\u21A0': exports.MO.WIDEREL, '\u21A1': exports.MO.RELSTRETCH, '\u21A2': exports.MO.WIDEREL, '\u21A3': exports.MO.WIDEREL, '\u21A4': exports.MO.WIDEREL, '\u21A5': exports.MO.RELSTRETCH, '\u21A6': exports.MO.WIDEREL, '\u21A7': exports.MO.RELSTRETCH, '\u21A8': exports.MO.RELSTRETCH, '\u21A9': exports.MO.WIDEREL, '\u21AA': exports.MO.WIDEREL, '\u21AB': exports.MO.WIDEREL, '\u21AC': exports.MO.WIDEREL, '\u21AD': exports.MO.WIDEREL, '\u21AE': exports.MO.RELACCENT, '\u21AF': exports.MO.RELSTRETCH, '\u21B0': exports.MO.RELSTRETCH, '\u21B1': exports.MO.RELSTRETCH, '\u21B2': exports.MO.RELSTRETCH, '\u21B3': exports.MO.RELSTRETCH, '\u21B4': exports.MO.RELSTRETCH, '\u21B5': exports.MO.RELSTRETCH, '\u21B6': exports.MO.RELACCENT, '\u21B7': exports.MO.RELACCENT, '\u21B8': exports.MO.REL, '\u21B9': exports.MO.WIDEREL, '\u21BA': exports.MO.REL, '\u21BB': exports.MO.REL, '\u21BC': exports.MO.WIDEREL, '\u21BD': exports.MO.WIDEREL, '\u21BE': exports.MO.RELSTRETCH, '\u21BF': exports.MO.RELSTRETCH, '\u21C0': exports.MO.WIDEREL, '\u21C1': exports.MO.WIDEREL, '\u21C2': exports.MO.RELSTRETCH, '\u21C3': exports.MO.RELSTRETCH, '\u21C4': exports.MO.WIDEREL, '\u21C5': exports.MO.RELSTRETCH, '\u21C6': exports.MO.WIDEREL, '\u21C7': exports.MO.WIDEREL, '\u21C8': exports.MO.RELSTRETCH, '\u21C9': exports.MO.WIDEREL, '\u21CA': exports.MO.RELSTRETCH, '\u21CB': exports.MO.WIDEREL, '\u21CC': exports.MO.WIDEREL, '\u21CD': exports.MO.RELACCENT, '\u21CE': exports.MO.RELACCENT, '\u21CF': exports.MO.RELACCENT, '\u21D0': exports.MO.WIDEREL, '\u21D1': exports.MO.RELSTRETCH, '\u21D2': exports.MO.WIDEREL, '\u21D3': exports.MO.RELSTRETCH, '\u21D4': exports.MO.WIDEREL, '\u21D5': exports.MO.RELSTRETCH, '\u21D6': exports.MO.RELSTRETCH, '\u21D7': exports.MO.RELSTRETCH, '\u21D8': exports.MO.RELSTRETCH, '\u21D9': exports.MO.RELSTRETCH, '\u21DA': exports.MO.WIDEREL, '\u21DB': exports.MO.WIDEREL, '\u21DC': exports.MO.WIDEREL, '\u21DD': exports.MO.WIDEREL, '\u21DE': exports.MO.REL, '\u21DF': exports.MO.REL, '\u21E0': exports.MO.WIDEREL, '\u21E1': exports.MO.RELSTRETCH, '\u21E2': exports.MO.WIDEREL, '\u21E3': exports.MO.RELSTRETCH, '\u21E4': exports.MO.WIDEREL, '\u21E5': exports.MO.WIDEREL, '\u21E6': exports.MO.WIDEREL, '\u21E7': exports.MO.RELSTRETCH, '\u21E8': exports.MO.WIDEREL, '\u21E9': exports.MO.RELSTRETCH, '\u21EA': exports.MO.RELSTRETCH, '\u21EB': exports.MO.RELSTRETCH, '\u21EC': exports.MO.RELSTRETCH, '\u21ED': exports.MO.RELSTRETCH, '\u21EE': exports.MO.RELSTRETCH, '\u21EF': exports.MO.RELSTRETCH, '\u21F0': exports.MO.WIDEREL, '\u21F1': exports.MO.REL, '\u21F2': exports.MO.REL, '\u21F3': exports.MO.RELSTRETCH, '\u21F4': exports.MO.RELACCENT, '\u21F5': exports.MO.RELSTRETCH, '\u21F6': exports.MO.WIDEREL, '\u21F7': exports.MO.RELACCENT, '\u21F8': exports.MO.RELACCENT, '\u21F9': exports.MO.RELACCENT, '\u21FA': exports.MO.RELACCENT, '\u21FB': exports.MO.RELACCENT, '\u21FC': exports.MO.RELACCENT, '\u21FD': exports.MO.WIDEREL, '\u21FE': exports.MO.WIDEREL, '\u21FF': exports.MO.WIDEREL, '\u2201': OPDEF(1, 2, MmlNode_js_1.TEXCLASS.ORD), '\u2205': exports.MO.ORD, '\u2206': exports.MO.BIN3, '\u2208': exports.MO.REL, '\u2209': exports.MO.REL, '\u220A': exports.MO.REL, '\u220B': exports.MO.REL, '\u220C': exports.MO.REL, '\u220D': exports.MO.REL, '\u220E': exports.MO.BIN3, '\u2212': exports.MO.BIN4, '\u2213': exports.MO.BIN4, '\u2214': exports.MO.BIN4, '\u2215': exports.MO.TALLBIN, '\u2216': exports.MO.BIN4, '\u2217': exports.MO.BIN4, '\u2218': exports.MO.BIN4, '\u2219': exports.MO.BIN4, '\u221D': exports.MO.REL, '\u221E': exports.MO.ORD, '\u221F': exports.MO.REL, '\u2223': exports.MO.REL, '\u2224': exports.MO.REL, '\u2225': exports.MO.REL, '\u2226': exports.MO.REL, '\u2227': exports.MO.BIN4, '\u2228': exports.MO.BIN4, '\u2229': exports.MO.BIN4, '\u222A': exports.MO.BIN4, '\u2234': exports.MO.REL, '\u2235': exports.MO.REL, '\u2236': exports.MO.REL, '\u2237': exports.MO.REL, '\u2238': exports.MO.BIN4, '\u2239': exports.MO.REL, '\u223A': exports.MO.BIN4, '\u223B': exports.MO.REL, '\u223C': exports.MO.REL, '\u223D': exports.MO.REL, '\u223D\u0331': exports.MO.BIN3, '\u223E': exports.MO.REL, '\u223F': exports.MO.BIN3, '\u2240': exports.MO.BIN4, '\u2241': exports.MO.REL, '\u2242': exports.MO.REL, '\u2242\u0338': exports.MO.REL, '\u2243': exports.MO.REL, '\u2244': exports.MO.REL, '\u2245': exports.MO.REL, '\u2246': exports.MO.REL, '\u2247': exports.MO.REL, '\u2248': exports.MO.REL, '\u2249': exports.MO.REL, '\u224A': exports.MO.REL, '\u224B': exports.MO.REL, '\u224C': exports.MO.REL, '\u224D': exports.MO.REL, '\u224E': exports.MO.REL, '\u224E\u0338': exports.MO.REL, '\u224F': exports.MO.REL, '\u224F\u0338': exports.MO.REL, '\u2250': exports.MO.REL, '\u2251': exports.MO.REL, '\u2252': exports.MO.REL, '\u2253': exports.MO.REL, '\u2254': exports.MO.REL, '\u2255': exports.MO.REL, '\u2256': exports.MO.REL, '\u2257': exports.MO.REL, '\u2258': exports.MO.REL, '\u2259': exports.MO.REL, '\u225A': exports.MO.REL, '\u225C': exports.MO.REL, '\u225D': exports.MO.REL, '\u225E': exports.MO.REL, '\u225F': exports.MO.REL, '\u2260': exports.MO.REL, '\u2261': exports.MO.REL, '\u2262': exports.MO.REL, '\u2263': exports.MO.REL, '\u2264': exports.MO.REL, '\u2265': exports.MO.REL, '\u2266': exports.MO.REL, '\u2266\u0338': exports.MO.REL, '\u2267': exports.MO.REL, '\u2268': exports.MO.REL, '\u2269': exports.MO.REL, '\u226A': exports.MO.REL, '\u226A\u0338': exports.MO.REL, '\u226B': exports.MO.REL, '\u226B\u0338': exports.MO.REL, '\u226C': exports.MO.REL, '\u226D': exports.MO.REL, '\u226E': exports.MO.REL, '\u226F': exports.MO.REL, '\u2270': exports.MO.REL, '\u2271': exports.MO.REL, '\u2272': exports.MO.REL, '\u2273': exports.MO.REL, '\u2274': exports.MO.REL, '\u2275': exports.MO.REL, '\u2276': exports.MO.REL, '\u2277': exports.MO.REL, '\u2278': exports.MO.REL, '\u2279': exports.MO.REL, '\u227A': exports.MO.REL, '\u227B': exports.MO.REL, '\u227C': exports.MO.REL, '\u227D': exports.MO.REL, '\u227E': exports.MO.REL, '\u227F': exports.MO.REL, '\u227F\u0338': exports.MO.REL, '\u2280': exports.MO.REL, '\u2281': exports.MO.REL, '\u2282': exports.MO.REL, '\u2282\u20D2': exports.MO.REL, '\u2283': exports.MO.REL, '\u2283\u20D2': exports.MO.REL, '\u2284': exports.MO.REL, '\u2285': exports.MO.REL, '\u2286': exports.MO.REL, '\u2287': exports.MO.REL, '\u2288': exports.MO.REL, '\u2289': exports.MO.REL, '\u228A': exports.MO.REL, '\u228B': exports.MO.REL, '\u228C': exports.MO.BIN4, '\u228D': exports.MO.BIN4, '\u228E': exports.MO.BIN4, '\u228F': exports.MO.REL, '\u228F\u0338': exports.MO.REL, '\u2290': exports.MO.REL, '\u2290\u0338': exports.MO.REL, '\u2291': exports.MO.REL, '\u2292': exports.MO.REL, '\u2293': exports.MO.BIN4, '\u2294': exports.MO.BIN4, '\u2295': exports.MO.BIN4, '\u2296': exports.MO.BIN4, '\u2297': exports.MO.BIN4, '\u2298': exports.MO.BIN4, '\u2299': exports.MO.BIN4, '\u229A': exports.MO.BIN4, '\u229B': exports.MO.BIN4, '\u229C': exports.MO.BIN4, '\u229D': exports.MO.BIN4, '\u229E': exports.MO.BIN4, '\u229F': exports.MO.BIN4, '\u22A0': exports.MO.BIN4, '\u22A1': exports.MO.BIN4, '\u22A2': exports.MO.REL, '\u22A3': exports.MO.REL, '\u22A4': exports.MO.ORD55, '\u22A5': exports.MO.REL, '\u22A6': exports.MO.REL, '\u22A7': exports.MO.REL, '\u22A8': exports.MO.REL, '\u22A9': exports.MO.REL, '\u22AA': exports.MO.REL, '\u22AB': exports.MO.REL, '\u22AC': exports.MO.REL, '\u22AD': exports.MO.REL, '\u22AE': exports.MO.REL, '\u22AF': exports.MO.REL, '\u22B0': exports.MO.REL, '\u22B1': exports.MO.REL, '\u22B2': exports.MO.REL, '\u22B3': exports.MO.REL, '\u22B4': exports.MO.REL, '\u22B5': exports.MO.REL, '\u22B6': exports.MO.REL, '\u22B7': exports.MO.REL, '\u22B8': exports.MO.REL, '\u22B9': exports.MO.REL, '\u22BA': exports.MO.BIN4, '\u22BB': exports.MO.BIN4, '\u22BC': exports.MO.BIN4, '\u22BD': exports.MO.BIN4, '\u22BE': exports.MO.BIN3, '\u22BF': exports.MO.BIN3, '\u22C4': exports.MO.BIN4, '\u22C5': exports.MO.BIN4, '\u22C6': exports.MO.BIN4, '\u22C7': exports.MO.BIN4, '\u22C8': exports.MO.REL, '\u22C9': exports.MO.BIN4, '\u22CA': exports.MO.BIN4, '\u22CB': exports.MO.BIN4, '\u22CC': exports.MO.BIN4, '\u22CD': exports.MO.REL, '\u22CE': exports.MO.BIN4, '\u22CF': exports.MO.BIN4, '\u22D0': exports.MO.REL, '\u22D1': exports.MO.REL, '\u22D2': exports.MO.BIN4, '\u22D3': exports.MO.BIN4, '\u22D4': exports.MO.REL, '\u22D5': exports.MO.REL, '\u22D6': exports.MO.REL, '\u22D7': exports.MO.REL, '\u22D8': exports.MO.REL, '\u22D9': exports.MO.REL, '\u22DA': exports.MO.REL, '\u22DB': exports.MO.REL, '\u22DC': exports.MO.REL, '\u22DD': exports.MO.REL, '\u22DE': exports.MO.REL, '\u22DF': exports.MO.REL, '\u22E0': exports.MO.REL, '\u22E1': exports.MO.REL, '\u22E2': exports.MO.REL, '\u22E3': exports.MO.REL, '\u22E4': exports.MO.REL, '\u22E5': exports.MO.REL, '\u22E6': exports.MO.REL, '\u22E7': exports.MO.REL, '\u22E8': exports.MO.REL, '\u22E9': exports.MO.REL, '\u22EA': exports.MO.REL, '\u22EB': exports.MO.REL, '\u22EC': exports.MO.REL, '\u22ED': exports.MO.REL, '\u22EE': exports.MO.ORD55, '\u22EF': exports.MO.INNER, '\u22F0': exports.MO.REL, '\u22F1': [5, 5, MmlNode_js_1.TEXCLASS.INNER, null], '\u22F2': exports.MO.REL, '\u22F3': exports.MO.REL, '\u22F4': exports.MO.REL, '\u22F5': exports.MO.REL, '\u22F6': exports.MO.REL, '\u22F7': exports.MO.REL, '\u22F8': exports.MO.REL, '\u22F9': exports.MO.REL, '\u22FA': exports.MO.REL, '\u22FB': exports.MO.REL, '\u22FC': exports.MO.REL, '\u22FD': exports.MO.REL, '\u22FE': exports.MO.REL, '\u22FF': exports.MO.REL, '\u2305': exports.MO.BIN3, '\u2306': exports.MO.BIN3, '\u2322': exports.MO.REL4, '\u2323': exports.MO.REL4, '\u2329': exports.MO.OPEN, '\u232A': exports.MO.CLOSE, '\u23AA': exports.MO.ORD, '\u23AF': [0, 0, MmlNode_js_1.TEXCLASS.ORD, { stretchy: true }], '\u23B0': exports.MO.OPEN, '\u23B1': exports.MO.CLOSE, '\u2500': exports.MO.ORD, '\u25B3': exports.MO.BIN4, '\u25B5': exports.MO.BIN4, '\u25B9': exports.MO.BIN4, '\u25BD': exports.MO.BIN4, '\u25BF': exports.MO.BIN4, '\u25C3': exports.MO.BIN4, '\u25EF': exports.MO.BIN3, '\u2660': exports.MO.ORD, '\u2661': exports.MO.ORD, '\u2662': exports.MO.ORD, '\u2663': exports.MO.ORD, '\u2758': exports.MO.REL, '\u27F0': exports.MO.RELSTRETCH, '\u27F1': exports.MO.RELSTRETCH, '\u27F5': exports.MO.WIDEREL, '\u27F6': exports.MO.WIDEREL, '\u27F7': exports.MO.WIDEREL, '\u27F8': exports.MO.WIDEREL, '\u27F9': exports.MO.WIDEREL, '\u27FA': exports.MO.WIDEREL, '\u27FB': exports.MO.WIDEREL, '\u27FC': exports.MO.WIDEREL, '\u27FD': exports.MO.WIDEREL, '\u27FE': exports.MO.WIDEREL, '\u27FF': exports.MO.WIDEREL, '\u2900': exports.MO.RELACCENT, '\u2901': exports.MO.RELACCENT, '\u2902': exports.MO.RELACCENT, '\u2903': exports.MO.RELACCENT, '\u2904': exports.MO.RELACCENT, '\u2905': exports.MO.RELACCENT, '\u2906': exports.MO.RELACCENT, '\u2907': exports.MO.RELACCENT, '\u2908': exports.MO.REL, '\u2909': exports.MO.REL, '\u290A': exports.MO.RELSTRETCH, '\u290B': exports.MO.RELSTRETCH, '\u290C': exports.MO.WIDEREL, '\u290D': exports.MO.WIDEREL, '\u290E': exports.MO.WIDEREL, '\u290F': exports.MO.WIDEREL, '\u2910': exports.MO.WIDEREL, '\u2911': exports.MO.RELACCENT, '\u2912': exports.MO.RELSTRETCH, '\u2913': exports.MO.RELSTRETCH, '\u2914': exports.MO.RELACCENT, '\u2915': exports.MO.RELACCENT, '\u2916': exports.MO.RELACCENT, '\u2917': exports.MO.RELACCENT, '\u2918': exports.MO.RELACCENT, '\u2919': exports.MO.RELACCENT, '\u291A': exports.MO.RELACCENT, '\u291B': exports.MO.RELACCENT, '\u291C': exports.MO.RELACCENT, '\u291D': exports.MO.RELACCENT, '\u291E': exports.MO.RELACCENT, '\u291F': exports.MO.RELACCENT, '\u2920': exports.MO.RELACCENT, '\u2921': exports.MO.RELSTRETCH, '\u2922': exports.MO.RELSTRETCH, '\u2923': exports.MO.REL, '\u2924': exports.MO.REL, '\u2925': exports.MO.REL, '\u2926': exports.MO.REL, '\u2927': exports.MO.REL, '\u2928': exports.MO.REL, '\u2929': exports.MO.REL, '\u292A': exports.MO.REL, '\u292B': exports.MO.REL, '\u292C': exports.MO.REL, '\u292D': exports.MO.REL, '\u292E': exports.MO.REL, '\u292F': exports.MO.REL, '\u2930': exports.MO.REL, '\u2931': exports.MO.REL, '\u2932': exports.MO.REL, '\u2933': exports.MO.RELACCENT, '\u2934': exports.MO.REL, '\u2935': exports.MO.REL, '\u2936': exports.MO.REL, '\u2937': exports.MO.REL, '\u2938': exports.MO.REL, '\u2939': exports.MO.REL, '\u293A': exports.MO.RELACCENT, '\u293B': exports.MO.RELACCENT, '\u293C': exports.MO.RELACCENT, '\u293D': exports.MO.RELACCENT, '\u293E': exports.MO.REL, '\u293F': exports.MO.REL, '\u2940': exports.MO.REL, '\u2941': exports.MO.REL, '\u2942': exports.MO.RELACCENT, '\u2943': exports.MO.RELACCENT, '\u2944': exports.MO.RELACCENT, '\u2945': exports.MO.RELACCENT, '\u2946': exports.MO.RELACCENT, '\u2947': exports.MO.RELACCENT, '\u2948': exports.MO.RELACCENT, '\u2949': exports.MO.REL, '\u294A': exports.MO.RELACCENT, '\u294B': exports.MO.RELACCENT, '\u294C': exports.MO.REL, '\u294D': exports.MO.REL, '\u294E': exports.MO.WIDEREL, '\u294F': exports.MO.RELSTRETCH, '\u2950': exports.MO.WIDEREL, '\u2951': exports.MO.RELSTRETCH, '\u2952': exports.MO.WIDEREL, '\u2953': exports.MO.WIDEREL, '\u2954': exports.MO.RELSTRETCH, '\u2955': exports.MO.RELSTRETCH, '\u2956': exports.MO.RELSTRETCH, '\u2957': exports.MO.RELSTRETCH, '\u2958': exports.MO.RELSTRETCH, '\u2959': exports.MO.RELSTRETCH, '\u295A': exports.MO.WIDEREL, '\u295B': exports.MO.WIDEREL, '\u295C': exports.MO.RELSTRETCH, '\u295D': exports.MO.RELSTRETCH, '\u295E': exports.MO.WIDEREL, '\u295F': exports.MO.WIDEREL, '\u2960': exports.MO.RELSTRETCH, '\u2961': exports.MO.RELSTRETCH, '\u2962': exports.MO.RELACCENT, '\u2963': exports.MO.REL, '\u2964': exports.MO.RELACCENT, '\u2965': exports.MO.REL, '\u2966': exports.MO.RELACCENT, '\u2967': exports.MO.RELACCENT, '\u2968': exports.MO.RELACCENT, '\u2969': exports.MO.RELACCENT, '\u296A': exports.MO.RELACCENT, '\u296B': exports.MO.RELACCENT, '\u296C': exports.MO.RELACCENT, '\u296D': exports.MO.RELACCENT, '\u296E': exports.MO.RELSTRETCH, '\u296F': exports.MO.RELSTRETCH, '\u2970': exports.MO.RELACCENT, '\u2971': exports.MO.RELACCENT, '\u2972': exports.MO.RELACCENT, '\u2973': exports.MO.RELACCENT, '\u2974': exports.MO.RELACCENT, '\u2975': exports.MO.RELACCENT, '\u2976': exports.MO.RELACCENT, '\u2977': exports.MO.RELACCENT, '\u2978': exports.MO.RELACCENT, '\u2979': exports.MO.RELACCENT, '\u297A': exports.MO.RELACCENT, '\u297B': exports.MO.RELACCENT, '\u297C': exports.MO.RELACCENT, '\u297D': exports.MO.RELACCENT, '\u297E': exports.MO.REL, '\u297F': exports.MO.REL, '\u2981': exports.MO.BIN3, '\u2982': exports.MO.BIN3, '\u2999': exports.MO.BIN3, '\u299A': exports.MO.BIN3, '\u299B': exports.MO.BIN3, '\u299C': exports.MO.BIN3, '\u299D': exports.MO.BIN3, '\u299E': exports.MO.BIN3, '\u299F': exports.MO.BIN3, '\u29A0': exports.MO.BIN3, '\u29A1': exports.MO.BIN3, '\u29A2': exports.MO.BIN3, '\u29A3': exports.MO.BIN3, '\u29A4': exports.MO.BIN3, '\u29A5': exports.MO.BIN3, '\u29A6': exports.MO.BIN3, '\u29A7': exports.MO.BIN3, '\u29A8': exports.MO.BIN3, '\u29A9': exports.MO.BIN3, '\u29AA': exports.MO.BIN3, '\u29AB': exports.MO.BIN3, '\u29AC': exports.MO.BIN3, '\u29AD': exports.MO.BIN3, '\u29AE': exports.MO.BIN3, '\u29AF': exports.MO.BIN3, '\u29B0': exports.MO.BIN3, '\u29B1': exports.MO.BIN3, '\u29B2': exports.MO.BIN3, '\u29B3': exports.MO.BIN3, '\u29B4': exports.MO.BIN3, '\u29B5': exports.MO.BIN3, '\u29B6': exports.MO.BIN4, '\u29B7': exports.MO.BIN4, '\u29B8': exports.MO.BIN4, '\u29B9': exports.MO.BIN4, '\u29BA': exports.MO.BIN4, '\u29BB': exports.MO.BIN4, '\u29BC': exports.MO.BIN4, '\u29BD': exports.MO.BIN4, '\u29BE': exports.MO.BIN4, '\u29BF': exports.MO.BIN4, '\u29C0': exports.MO.REL, '\u29C1': exports.MO.REL, '\u29C2': exports.MO.BIN3, '\u29C3': exports.MO.BIN3, '\u29C4': exports.MO.BIN4, '\u29C5': exports.MO.BIN4, '\u29C6': exports.MO.BIN4, '\u29C7': exports.MO.BIN4, '\u29C8': exports.MO.BIN4, '\u29C9': exports.MO.BIN3, '\u29CA': exports.MO.BIN3, '\u29CB': exports.MO.BIN3, '\u29CC': exports.MO.BIN3, '\u29CD': exports.MO.BIN3, '\u29CE': exports.MO.REL, '\u29CF': exports.MO.REL, '\u29CF\u0338': exports.MO.REL, '\u29D0': exports.MO.REL, '\u29D0\u0338': exports.MO.REL, '\u29D1': exports.MO.REL, '\u29D2': exports.MO.REL, '\u29D3': exports.MO.REL, '\u29D4': exports.MO.REL, '\u29D5': exports.MO.REL, '\u29D6': exports.MO.BIN4, '\u29D7': exports.MO.BIN4, '\u29D8': exports.MO.BIN3, '\u29D9': exports.MO.BIN3, '\u29DB': exports.MO.BIN3, '\u29DC': exports.MO.BIN3, '\u29DD': exports.MO.BIN3, '\u29DE': exports.MO.REL, '\u29DF': exports.MO.BIN3, '\u29E0': exports.MO.BIN3, '\u29E1': exports.MO.REL, '\u29E2': exports.MO.BIN4, '\u29E3': exports.MO.REL, '\u29E4': exports.MO.REL, '\u29E5': exports.MO.REL, '\u29E6': exports.MO.REL, '\u29E7': exports.MO.BIN3, '\u29E8': exports.MO.BIN3, '\u29E9': exports.MO.BIN3, '\u29EA': exports.MO.BIN3, '\u29EB': exports.MO.BIN3, '\u29EC': exports.MO.BIN3, '\u29ED': exports.MO.BIN3, '\u29EE': exports.MO.BIN3, '\u29EF': exports.MO.BIN3, '\u29F0': exports.MO.BIN3, '\u29F1': exports.MO.BIN3, '\u29F2': exports.MO.BIN3, '\u29F3': exports.MO.BIN3, '\u29F4': exports.MO.REL, '\u29F5': exports.MO.BIN4, '\u29F6': exports.MO.BIN4, '\u29F7': exports.MO.BIN4, '\u29F8': exports.MO.BIN3, '\u29F9': exports.MO.BIN3, '\u29FA': exports.MO.BIN3, '\u29FB': exports.MO.BIN3, '\u29FE': exports.MO.BIN4, '\u29FF': exports.MO.BIN4, '\u2A1D': exports.MO.BIN3, '\u2A1E': exports.MO.BIN3, '\u2A1F': exports.MO.BIN3, '\u2A20': exports.MO.BIN3, '\u2A21': exports.MO.BIN3, '\u2A22': exports.MO.BIN4, '\u2A23': exports.MO.BIN4, '\u2A24': exports.MO.BIN4, '\u2A25': exports.MO.BIN4, '\u2A26': exports.MO.BIN4, '\u2A27': exports.MO.BIN4, '\u2A28': exports.MO.BIN4, '\u2A29': exports.MO.BIN4, '\u2A2A': exports.MO.BIN4, '\u2A2B': exports.MO.BIN4, '\u2A2C': exports.MO.BIN4, '\u2A2D': exports.MO.BIN4, '\u2A2E': exports.MO.BIN4, '\u2A2F': exports.MO.BIN4, '\u2A30': exports.MO.BIN4, '\u2A31': exports.MO.BIN4, '\u2A32': exports.MO.BIN4, '\u2A33': exports.MO.BIN4, '\u2A34': exports.MO.BIN4, '\u2A35': exports.MO.BIN4, '\u2A36': exports.MO.BIN4, '\u2A37': exports.MO.BIN4, '\u2A38': exports.MO.BIN4, '\u2A39': exports.MO.BIN4, '\u2A3A': exports.MO.BIN4, '\u2A3B': exports.MO.BIN4, '\u2A3C': exports.MO.BIN4, '\u2A3D': exports.MO.BIN4, '\u2A3E': exports.MO.BIN4, '\u2A3F': exports.MO.BIN4, '\u2A40': exports.MO.BIN4, '\u2A41': exports.MO.BIN4, '\u2A42': exports.MO.BIN4, '\u2A43': exports.MO.BIN4, '\u2A44': exports.MO.BIN4, '\u2A45': exports.MO.BIN4, '\u2A46': exports.MO.BIN4, '\u2A47': exports.MO.BIN4, '\u2A48': exports.MO.BIN4, '\u2A49': exports.MO.BIN4, '\u2A4A': exports.MO.BIN4, '\u2A4B': exports.MO.BIN4, '\u2A4C': exports.MO.BIN4, '\u2A4D': exports.MO.BIN4, '\u2A4E': exports.MO.BIN4, '\u2A4F': exports.MO.BIN4, '\u2A50': exports.MO.BIN4, '\u2A51': exports.MO.BIN4, '\u2A52': exports.MO.BIN4, '\u2A53': exports.MO.BIN4, '\u2A54': exports.MO.BIN4, '\u2A55': exports.MO.BIN4, '\u2A56': exports.MO.BIN4, '\u2A57': exports.MO.BIN4, '\u2A58': exports.MO.BIN4, '\u2A59': exports.MO.REL, '\u2A5A': exports.MO.BIN4, '\u2A5B': exports.MO.BIN4, '\u2A5C': exports.MO.BIN4, '\u2A5D': exports.MO.BIN4, '\u2A5E': exports.MO.BIN4, '\u2A5F': exports.MO.BIN4, '\u2A60': exports.MO.BIN4, '\u2A61': exports.MO.BIN4, '\u2A62': exports.MO.BIN4, '\u2A63': exports.MO.BIN4, '\u2A64': exports.MO.BIN4, '\u2A65': exports.MO.BIN4, '\u2A66': exports.MO.REL, '\u2A67': exports.MO.REL, '\u2A68': exports.MO.REL, '\u2A69': exports.MO.REL, '\u2A6A': exports.MO.REL, '\u2A6B': exports.MO.REL, '\u2A6C': exports.MO.REL, '\u2A6D': exports.MO.REL, '\u2A6E': exports.MO.REL, '\u2A6F': exports.MO.REL, '\u2A70': exports.MO.REL, '\u2A71': exports.MO.BIN4, '\u2A72': exports.MO.BIN4, '\u2A73': exports.MO.REL, '\u2A74': exports.MO.REL, '\u2A75': exports.MO.REL, '\u2A76': exports.MO.REL, '\u2A77': exports.MO.REL, '\u2A78': exports.MO.REL, '\u2A79': exports.MO.REL, '\u2A7A': exports.MO.REL, '\u2A7B': exports.MO.REL, '\u2A7C': exports.MO.REL, '\u2A7D': exports.MO.REL, '\u2A7D\u0338': exports.MO.REL, '\u2A7E': exports.MO.REL, '\u2A7E\u0338': exports.MO.REL, '\u2A7F': exports.MO.REL, '\u2A80': exports.MO.REL, '\u2A81': exports.MO.REL, '\u2A82': exports.MO.REL, '\u2A83': exports.MO.REL, '\u2A84': exports.MO.REL, '\u2A85': exports.MO.REL, '\u2A86': exports.MO.REL, '\u2A87': exports.MO.REL, '\u2A88': exports.MO.REL, '\u2A89': exports.MO.REL, '\u2A8A': exports.MO.REL, '\u2A8B': exports.MO.REL, '\u2A8C': exports.MO.REL, '\u2A8D': exports.MO.REL, '\u2A8E': exports.MO.REL, '\u2A8F': exports.MO.REL, '\u2A90': exports.MO.REL, '\u2A91': exports.MO.REL, '\u2A92': exports.MO.REL, '\u2A93': exports.MO.REL, '\u2A94': exports.MO.REL, '\u2A95': exports.MO.REL, '\u2A96': exports.MO.REL, '\u2A97': exports.MO.REL, '\u2A98': exports.MO.REL, '\u2A99': exports.MO.REL, '\u2A9A': exports.MO.REL, '\u2A9B': exports.MO.REL, '\u2A9C': exports.MO.REL, '\u2A9D': exports.MO.REL, '\u2A9E': exports.MO.REL, '\u2A9F': exports.MO.REL, '\u2AA0': exports.MO.REL, '\u2AA1': exports.MO.REL, '\u2AA1\u0338': exports.MO.REL, '\u2AA2': exports.MO.REL, '\u2AA2\u0338': exports.MO.REL, '\u2AA3': exports.MO.REL, '\u2AA4': exports.MO.REL, '\u2AA5': exports.MO.REL, '\u2AA6': exports.MO.REL, '\u2AA7': exports.MO.REL, '\u2AA8': exports.MO.REL, '\u2AA9': exports.MO.REL, '\u2AAA': exports.MO.REL, '\u2AAB': exports.MO.REL, '\u2AAC': exports.MO.REL, '\u2AAD': exports.MO.REL, '\u2AAE': exports.MO.REL, '\u2AAF': exports.MO.REL, '\u2AAF\u0338': exports.MO.REL, '\u2AB0': exports.MO.REL, '\u2AB0\u0338': exports.MO.REL, '\u2AB1': exports.MO.REL, '\u2AB2': exports.MO.REL, '\u2AB3': exports.MO.REL, '\u2AB4': exports.MO.REL, '\u2AB5': exports.MO.REL, '\u2AB6': exports.MO.REL, '\u2AB7': exports.MO.REL, '\u2AB8': exports.MO.REL, '\u2AB9': exports.MO.REL, '\u2ABA': exports.MO.REL, '\u2ABB': exports.MO.REL, '\u2ABC': exports.MO.REL, '\u2ABD': exports.MO.REL, '\u2ABE': exports.MO.REL, '\u2ABF': exports.MO.REL, '\u2AC0': exports.MO.REL, '\u2AC1': exports.MO.REL, '\u2AC2': exports.MO.REL, '\u2AC3': exports.MO.REL, '\u2AC4': exports.MO.REL, '\u2AC5': exports.MO.REL, '\u2AC6': exports.MO.REL, '\u2AC7': exports.MO.REL, '\u2AC8': exports.MO.REL, '\u2AC9': exports.MO.REL, '\u2ACA': exports.MO.REL, '\u2ACB': exports.MO.REL, '\u2ACC': exports.MO.REL, '\u2ACD': exports.MO.REL, '\u2ACE': exports.MO.REL, '\u2ACF': exports.MO.REL, '\u2AD0': exports.MO.REL, '\u2AD1': exports.MO.REL, '\u2AD2': exports.MO.REL, '\u2AD3': exports.MO.REL, '\u2AD4': exports.MO.REL, '\u2AD5': exports.MO.REL, '\u2AD6': exports.MO.REL, '\u2AD7': exports.MO.REL, '\u2AD8': exports.MO.REL, '\u2AD9': exports.MO.REL, '\u2ADA': exports.MO.REL, '\u2ADB': exports.MO.REL, '\u2ADC': exports.MO.REL, '\u2ADD': exports.MO.REL, '\u2ADE': exports.MO.REL, '\u2ADF': exports.MO.REL, '\u2AE0': exports.MO.REL, '\u2AE1': exports.MO.REL, '\u2AE2': exports.MO.REL, '\u2AE3': exports.MO.REL, '\u2AE4': exports.MO.REL, '\u2AE5': exports.MO.REL, '\u2AE6': exports.MO.REL, '\u2AE7': exports.MO.REL, '\u2AE8': exports.MO.REL, '\u2AE9': exports.MO.REL, '\u2AEA': exports.MO.REL, '\u2AEB': exports.MO.REL, '\u2AEC': exports.MO.REL, '\u2AED': exports.MO.REL, '\u2AEE': exports.MO.REL, '\u2AEF': exports.MO.REL, '\u2AF0': exports.MO.REL, '\u2AF1': exports.MO.REL, '\u2AF2': exports.MO.REL, '\u2AF3': exports.MO.REL, '\u2AF4': exports.MO.BIN4, '\u2AF5': exports.MO.BIN4, '\u2AF6': exports.MO.BIN4, '\u2AF7': exports.MO.REL, '\u2AF8': exports.MO.REL, '\u2AF9': exports.MO.REL, '\u2AFA': exports.MO.REL, '\u2AFB': exports.MO.BIN4, '\u2AFD': exports.MO.BIN4, '\u2AFE': exports.MO.BIN3, '\u2B45': exports.MO.RELSTRETCH, '\u2B46': exports.MO.RELSTRETCH, '\u3008': exports.MO.OPEN, '\u3009': exports.MO.CLOSE, '\uFE37': exports.MO.WIDEACCENT, '\uFE38': exports.MO.WIDEACCENT, } }; exports.OPTABLE['infix']['^'] = exports.MO.WIDEREL; exports.OPTABLE['infix']['_'] = exports.MO.WIDEREL; exports.OPTABLE['prefix']['\u2223'] = exports.MO.OPEN; exports.OPTABLE['prefix']['\u2225'] = exports.MO.OPEN; exports.OPTABLE['postfix']['\u2223'] = exports.MO.CLOSE; exports.OPTABLE['postfix']['\u2225'] = exports.MO.CLOSE; //# sourceMappingURL=OperatorDictionary.js.map /***/ }), /* 111 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMstyle = void 0; var MmlNode_js_1 = __webpack_require__(0); var Attributes_js_1 = __webpack_require__(26); var MmlMstyle = (function (_super) { __extends(MmlMstyle, _super); function MmlMstyle() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMstyle.prototype, "kind", { get: function () { return 'mstyle'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMstyle.prototype, "notParent", { get: function () { return true; }, enumerable: false, configurable: true }); MmlMstyle.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) { var scriptlevel = this.attributes.getExplicit('scriptlevel'); if (scriptlevel != null) { scriptlevel = scriptlevel.toString(); if (scriptlevel.match(/^\s*[-+]/)) { level += parseInt(scriptlevel); } else { level = parseInt(scriptlevel); } } var displaystyle = this.attributes.getExplicit('displaystyle'); if (displaystyle != null) { display = (displaystyle === true); } attributes = this.addInheritedAttributes(attributes, this.attributes.getAllAttributes()); this.childNodes[0].setInheritedAttributes(attributes, display, level, prime); }; MmlMstyle.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlLayoutNode.defaults), { scriptlevel: Attributes_js_1.INHERIT, displaystyle: Attributes_js_1.INHERIT, scriptsizemultiplier: 1 / Math.sqrt(2), scriptminsize: '8px', mathbackground: Attributes_js_1.INHERIT, mathcolor: Attributes_js_1.INHERIT, dir: Attributes_js_1.INHERIT, infixlinebreakstyle: 'before' }); return MmlMstyle; }(MmlNode_js_1.AbstractMmlLayoutNode)); exports.MmlMstyle = MmlMstyle; //# sourceMappingURL=mstyle.js.map /***/ }), /* 112 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMerror = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMerror = (function (_super) { __extends(MmlMerror, _super); function MmlMerror() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.texClass = MmlNode_js_1.TEXCLASS.ORD; return _this; } Object.defineProperty(MmlMerror.prototype, "kind", { get: function () { return 'merror'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMerror.prototype, "arity", { get: function () { return -1; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMerror.prototype, "linebreakContainer", { get: function () { return true; }, enumerable: false, configurable: true }); MmlMerror.defaults = __assign({}, MmlNode_js_1.AbstractMmlNode.defaults); return MmlMerror; }(MmlNode_js_1.AbstractMmlNode)); exports.MmlMerror = MmlMerror; //# sourceMappingURL=merror.js.map /***/ }), /* 113 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMphantom = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMphantom = (function (_super) { __extends(MmlMphantom, _super); function MmlMphantom() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.texClass = MmlNode_js_1.TEXCLASS.ORD; return _this; } Object.defineProperty(MmlMphantom.prototype, "kind", { get: function () { return 'mphantom'; }, enumerable: false, configurable: true }); MmlMphantom.defaults = __assign({}, MmlNode_js_1.AbstractMmlLayoutNode.defaults); return MmlMphantom; }(MmlNode_js_1.AbstractMmlLayoutNode)); exports.MmlMphantom = MmlMphantom; //# sourceMappingURL=mphantom.js.map /***/ }), /* 114 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMaligngroup = void 0; var MmlNode_js_1 = __webpack_require__(0); var Attributes_js_1 = __webpack_require__(26); var MmlMaligngroup = (function (_super) { __extends(MmlMaligngroup, _super); function MmlMaligngroup() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMaligngroup.prototype, "kind", { get: function () { return 'maligngroup'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMaligngroup.prototype, "isSpacelike", { get: function () { return true; }, enumerable: false, configurable: true }); MmlMaligngroup.prototype.setChildInheritedAttributes = function (attributes, display, level, prime) { attributes = this.addInheritedAttributes(attributes, this.attributes.getAllAttributes()); _super.prototype.setChildInheritedAttributes.call(this, attributes, display, level, prime); }; MmlMaligngroup.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlLayoutNode.defaults), { groupalign: Attributes_js_1.INHERIT }); return MmlMaligngroup; }(MmlNode_js_1.AbstractMmlLayoutNode)); exports.MmlMaligngroup = MmlMaligngroup; //# sourceMappingURL=maligngroup.js.map /***/ }), /* 115 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlMalignmark = void 0; var MmlNode_js_1 = __webpack_require__(0); var MmlMalignmark = (function (_super) { __extends(MmlMalignmark, _super); function MmlMalignmark() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MmlMalignmark.prototype, "kind", { get: function () { return 'malignmark'; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMalignmark.prototype, "arity", { get: function () { return 0; }, enumerable: false, configurable: true }); Object.defineProperty(MmlMalignmark.prototype, "isSpacelike", { get: function () { return true; }, enumerable: false, configurable: true }); MmlMalignmark.defaults = __assign(__assign({}, MmlNode_js_1.AbstractMmlNode.defaults), { edge: 'left' }); return MmlMalignmark; }(MmlNode_js_1.AbstractMmlNode)); exports.MmlMalignmark = MmlMalignmark; //# sourceMappingURL=malignmark.js.map /***/ }), /* 116 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MathChoice = void 0; var MmlNode_js_1 = __webpack_require__(0); var MathChoice = (function (_super) { __extends(MathChoice, _super); function MathChoice() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(MathChoice.prototype, "kind", { get: function () { return 'MathChoice'; }, enumerable: false, configurable: true }); Object.defineProperty(MathChoice.prototype, "arity", { get: function () { return 4; }, enumerable: false, configurable: true }); Object.defineProperty(MathChoice.prototype, "notParent", { get: function () { return true; }, enumerable: false, configurable: true }); MathChoice.prototype.setInheritedAttributes = function (attributes, display, level, prime) { var selection = (display ? 0 : Math.max(0, Math.min(level, 2)) + 1); var child = this.childNodes[selection] || this.factory.create('mrow'); this.parent.replaceChild(child, this); child.setInheritedAttributes(attributes, display, level, prime); }; MathChoice.defaults = __assign({}, MmlNode_js_1.AbstractMmlBaseNode.defaults); return MathChoice; }(MmlNode_js_1.AbstractMmlBaseNode)); exports.MathChoice = MathChoice; //# sourceMappingURL=mathchoice.js.map /***/ }), /* 117 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.BitFieldClass = exports.BitField = void 0; var BitField = (function () { function BitField() { this.bits = 0; } BitField.allocate = function () { var e_1, _a; var names = []; for (var _i = 0; _i < arguments.length; _i++) { names[_i] = arguments[_i]; } try { for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) { var name_1 = names_1_1.value; if (this.has(name_1)) { throw new Error('Bit already allocated for ' + name_1); } if (this.next === BitField.MAXBIT) { throw new Error('Maximum number of bits already allocated'); } this.names.set(name_1, this.next); this.next <<= 1; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (names_1_1 && !names_1_1.done && (_a = names_1.return)) _a.call(names_1); } finally { if (e_1) throw e_1.error; } } }; BitField.has = function (name) { return this.names.has(name); }; BitField.prototype.set = function (name) { this.bits |= this.getBit(name); }; BitField.prototype.clear = function (name) { this.bits &= ~this.getBit(name); }; BitField.prototype.isSet = function (name) { return !!(this.bits & this.getBit(name)); }; BitField.prototype.reset = function () { this.bits = 0; }; BitField.prototype.getBit = function (name) { var bit = this.constructor.names.get(name); if (!bit) { throw new Error('Unknown bit-field name: ' + name); } return bit; }; BitField.MAXBIT = 1 << 31; BitField.next = 1; BitField.names = new Map(); return BitField; }()); exports.BitField = BitField; function BitFieldClass() { var names = []; for (var _i = 0; _i < arguments.length; _i++) { names[_i] = arguments[_i]; } var Bits = (function (_super) { __extends(Bits, _super); function Bits() { return _super !== null && _super.apply(this, arguments) || this; } return Bits; }(BitField)); Bits.allocate.apply(Bits, __spread(names)); return Bits; } exports.BitFieldClass = BitFieldClass; //# sourceMappingURL=BitField.js.map /***/ }), /* 118 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.HandlerList = void 0; var PrioritizedList_js_1 = __webpack_require__(22); var HandlerList = (function (_super) { __extends(HandlerList, _super); function HandlerList() { return _super !== null && _super.apply(this, arguments) || this; } HandlerList.prototype.register = function (handler) { return this.add(handler, handler.priority); }; HandlerList.prototype.unregister = function (handler) { this.remove(handler); }; HandlerList.prototype.handlesDocument = function (document) { var e_1, _a; try { for (var _b = __values(this), _c = _b.next(); !_c.done; _c = _b.next()) { var item = _c.value; var handler = item.item; if (handler.handlesDocument(document)) { return handler; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } throw new Error("Can't find handler for document"); }; HandlerList.prototype.document = function (document, options) { if (options === void 0) { options = null; } return this.handlesDocument(document).create(document, options); }; return HandlerList; }(PrioritizedList_js_1.PrioritizedList)); exports.HandlerList = HandlerList; //# sourceMappingURL=HandlerList.js.map /***/ }), /* 119 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractVisitor = void 0; var Node_js_1 = __webpack_require__(57); var AbstractVisitor = (function () { function AbstractVisitor(factory) { var e_1, _a; this.nodeHandlers = new Map(); try { for (var _b = __values(factory.getKinds()), _c = _b.next(); !_c.done; _c = _b.next()) { var kind = _c.value; var method = this[AbstractVisitor.methodName(kind)]; if (method) { this.nodeHandlers.set(kind, method); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } AbstractVisitor.methodName = function (kind) { return 'visit' + (kind.charAt(0).toUpperCase() + kind.substr(1)).replace(/[^a-z0-9_]/ig, '_') + 'Node'; }; AbstractVisitor.prototype.visitTree = function (tree) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } return this.visitNode.apply(this, __spread([tree], args)); }; AbstractVisitor.prototype.visitNode = function (node) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } var handler = this.nodeHandlers.get(node.kind) || this.visitDefault; return handler.call.apply(handler, __spread([this, node], args)); }; AbstractVisitor.prototype.visitDefault = function (node) { var e_2, _a; var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } if (node instanceof Node_js_1.AbstractNode) { try { for (var _b = __values(node.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; this.visitNode.apply(this, __spread([child], args)); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } } }; AbstractVisitor.prototype.setNodeHandler = function (kind, handler) { this.nodeHandlers.set(kind, handler); }; AbstractVisitor.prototype.removeNodeHandler = function (kind) { this.nodeHandlers.delete(kind); }; return AbstractVisitor; }()); exports.AbstractVisitor = AbstractVisitor; //# sourceMappingURL=Visitor.js.map /***/ }), /* 120 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractWrapper = void 0; var AbstractWrapper = (function () { function AbstractWrapper(factory, node) { this.factory = factory; this.node = node; } Object.defineProperty(AbstractWrapper.prototype, "kind", { get: function () { return this.node.kind; }, enumerable: false, configurable: true }); AbstractWrapper.prototype.wrap = function (node) { return this.factory.wrap(node); }; return AbstractWrapper; }()); exports.AbstractWrapper = AbstractWrapper; //# sourceMappingURL=Wrapper.js.map /***/ }), /* 121 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractWrapperFactory = void 0; var Factory_js_1 = __webpack_require__(37); var AbstractWrapperFactory = (function (_super) { __extends(AbstractWrapperFactory, _super); function AbstractWrapperFactory() { return _super !== null && _super.apply(this, arguments) || this; } AbstractWrapperFactory.prototype.wrap = function (node) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } return this.create.apply(this, __spread([node.kind, node], args)); }; return AbstractWrapperFactory; }(Factory_js_1.AbstractFactory)); exports.AbstractWrapperFactory = AbstractWrapperFactory; //# sourceMappingURL=WrapperFactory.js.map /***/ }), /* 122 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.HTMLDocument = void 0; var MathDocument_js_1 = __webpack_require__(52); var Options_js_1 = __webpack_require__(6); var HTMLMathItem_js_1 = __webpack_require__(123); var HTMLMathList_js_1 = __webpack_require__(124); var HTMLDomStrings_js_1 = __webpack_require__(125); var MathItem_js_1 = __webpack_require__(15); var HTMLDocument = (function (_super) { __extends(HTMLDocument, _super); function HTMLDocument(document, adaptor, options) { var _this = this; var _a = __read(Options_js_1.separateOptions(options, HTMLDomStrings_js_1.HTMLDomStrings.OPTIONS), 2), html = _a[0], dom = _a[1]; _this = _super.call(this, document, adaptor, html) || this; _this.domStrings = _this.options['DomStrings'] || new HTMLDomStrings_js_1.HTMLDomStrings(dom); _this.domStrings.adaptor = adaptor; _this.styles = []; return _this; } HTMLDocument.prototype.findPosition = function (N, index, delim, nodes) { var e_1, _a; var adaptor = this.adaptor; try { for (var _b = __values(nodes[N]), _c = _b.next(); !_c.done; _c = _b.next()) { var list = _c.value; var _d = __read(list, 2), node = _d[0], n = _d[1]; if (index <= n && adaptor.kind(node) === '#text') { return { node: node, n: Math.max(index, 0), delim: delim }; } index -= n; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return { node: null, n: 0, delim: delim }; }; HTMLDocument.prototype.mathItem = function (item, jax, nodes) { var math = item.math; var start = this.findPosition(item.n, item.start.n, item.open, nodes); var end = this.findPosition(item.n, item.end.n, item.close, nodes); return new this.options.MathItem(math, jax, item.display, start, end); }; HTMLDocument.prototype.findMath = function (options) { var e_2, _a, e_3, _b, _c, e_4, _d, e_5, _e; if (!this.processed.isSet('findMath')) { this.adaptor.document = this.document; options = Options_js_1.userOptions({ elements: this.options.elements || [this.adaptor.body(this.document)] }, options); try { for (var _f = __values(this.adaptor.getElements(options['elements'], this.document)), _g = _f.next(); !_g.done; _g = _f.next()) { var container = _g.value; var _h = __read([null, null], 2), strings = _h[0], nodes = _h[1]; try { for (var _j = (e_3 = void 0, __values(this.inputJax)), _k = _j.next(); !_k.done; _k = _j.next()) { var jax = _k.value; var list = new (this.options['MathList'])(); if (jax.processStrings) { if (strings === null) { _c = __read(this.domStrings.find(container), 2), strings = _c[0], nodes = _c[1]; } try { for (var _l = (e_4 = void 0, __values(jax.findMath(strings))), _m = _l.next(); !_m.done; _m = _l.next()) { var math = _m.value; list.push(this.mathItem(math, jax, nodes)); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_m && !_m.done && (_d = _l.return)) _d.call(_l); } finally { if (e_4) throw e_4.error; } } } else { try { for (var _o = (e_5 = void 0, __values(jax.findMath(container))), _p = _o.next(); !_p.done; _p = _o.next()) { var math = _p.value; var item = new this.options.MathItem(math.math, jax, math.display, math.start, math.end); list.push(item); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_p && !_p.done && (_e = _o.return)) _e.call(_o); } finally { if (e_5) throw e_5.error; } } } this.math.merge(list); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_k && !_k.done && (_b = _j.return)) _b.call(_j); } finally { if (e_3) throw e_3.error; } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_g && !_g.done && (_a = _f.return)) _a.call(_f); } finally { if (e_2) throw e_2.error; } } this.processed.set('findMath'); } return this; }; HTMLDocument.prototype.updateDocument = function () { if (!this.processed.isSet('updateDocument')) { this.addPageElements(); this.addStyleSheet(); _super.prototype.updateDocument.call(this); this.processed.set('updateDocument'); } return this; }; HTMLDocument.prototype.addPageElements = function () { var body = this.adaptor.body(this.document); var node = this.documentPageElements(); if (node) { this.adaptor.append(body, node); } }; HTMLDocument.prototype.addStyleSheet = function () { var sheet = this.documentStyleSheet(); if (sheet) { var head = this.adaptor.head(this.document); var styles = this.findSheet(head, this.adaptor.getAttribute(sheet, 'id')); if (styles) { this.adaptor.replace(sheet, styles); } else { this.adaptor.append(head, sheet); } } }; HTMLDocument.prototype.findSheet = function (head, id) { var e_6, _a; if (id) { try { for (var _b = __values(this.adaptor.tags(head, 'style')), _c = _b.next(); !_c.done; _c = _b.next()) { var sheet = _c.value; if (this.adaptor.getAttribute(sheet, 'id') === id) { return sheet; } } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_6) throw e_6.error; } } } return null; }; HTMLDocument.prototype.removeFromDocument = function (restore) { var e_7, _a; if (restore === void 0) { restore = false; } if (this.processed.isSet('updateDocument')) { try { for (var _b = __values(this.math), _c = _b.next(); !_c.done; _c = _b.next()) { var math = _c.value; if (math.state() >= MathItem_js_1.STATE.INSERTED) { math.state(MathItem_js_1.STATE.TYPESET, restore); } } } catch (e_7_1) { e_7 = { error: e_7_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_7) throw e_7.error; } } } this.processed.clear('updateDocument'); return this; }; HTMLDocument.prototype.documentStyleSheet = function () { return this.outputJax.styleSheet(this); }; HTMLDocument.prototype.documentPageElements = function () { return this.outputJax.pageElements(this); }; HTMLDocument.prototype.addStyles = function (styles) { this.styles.push(styles); }; HTMLDocument.prototype.getStyles = function () { return this.styles; }; HTMLDocument.KIND = 'HTML'; HTMLDocument.OPTIONS = __assign(__assign({}, MathDocument_js_1.AbstractMathDocument.OPTIONS), { renderActions: Options_js_1.expandable(__assign(__assign({}, MathDocument_js_1.AbstractMathDocument.OPTIONS.renderActions), { styles: [MathItem_js_1.STATE.INSERTED + 1, '', 'updateStyleSheet', false] })), MathList: HTMLMathList_js_1.HTMLMathList, MathItem: HTMLMathItem_js_1.HTMLMathItem, DomStrings: null }); return HTMLDocument; }(MathDocument_js_1.AbstractMathDocument)); exports.HTMLDocument = HTMLDocument; //# sourceMappingURL=HTMLDocument.js.map /***/ }), /* 123 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.HTMLMathItem = void 0; var MathItem_js_1 = __webpack_require__(15); var HTMLMathItem = (function (_super) { __extends(HTMLMathItem, _super); function HTMLMathItem(math, jax, display, start, end) { if (display === void 0) { display = true; } if (start === void 0) { start = { node: null, n: 0, delim: '' }; } if (end === void 0) { end = { node: null, n: 0, delim: '' }; } return _super.call(this, math, jax, display, start, end) || this; } Object.defineProperty(HTMLMathItem.prototype, "adaptor", { get: function () { return this.inputJax.adaptor; }, enumerable: false, configurable: true }); HTMLMathItem.prototype.updateDocument = function (_html) { if (this.state() < MathItem_js_1.STATE.INSERTED) { if (this.inputJax.processStrings) { var node = this.start.node; if (node === this.end.node) { if (this.end.n && this.end.n < this.adaptor.value(this.end.node).length) { this.adaptor.split(this.end.node, this.end.n); } if (this.start.n) { node = this.adaptor.split(this.start.node, this.start.n); } this.adaptor.replace(this.typesetRoot, node); } else { if (this.start.n) { node = this.adaptor.split(node, this.start.n); } while (node !== this.end.node) { var next = this.adaptor.next(node); this.adaptor.remove(node); node = next; } this.adaptor.insert(this.typesetRoot, node); if (this.end.n < this.adaptor.value(node).length) { this.adaptor.split(node, this.end.n); } this.adaptor.remove(node); } } else { this.adaptor.replace(this.typesetRoot, this.start.node); } this.start.node = this.end.node = this.typesetRoot; this.start.n = this.end.n = 0; this.state(MathItem_js_1.STATE.INSERTED); } }; HTMLMathItem.prototype.updateStyleSheet = function (document) { document.addStyleSheet(); }; HTMLMathItem.prototype.removeFromDocument = function (restore) { if (restore === void 0) { restore = false; } if (this.state() >= MathItem_js_1.STATE.TYPESET) { var adaptor = this.adaptor; var node = this.start.node; var math = adaptor.text(''); if (restore) { var text = this.start.delim + this.math + this.end.delim; if (this.inputJax.processStrings) { math = adaptor.text(text); } else { var doc = adaptor.parse(text, 'text/html'); math = adaptor.firstChild(adaptor.body(doc)); } } if (adaptor.parent(node)) { adaptor.replace(math, node); } this.start.node = this.end.node = math; this.start.n = this.end.n = 0; } }; return HTMLMathItem; }(MathItem_js_1.AbstractMathItem)); exports.HTMLMathItem = HTMLMathItem; //# sourceMappingURL=HTMLMathItem.js.map /***/ }), /* 124 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.HTMLMathList = void 0; var MathList_js_1 = __webpack_require__(55); var HTMLMathList = (function (_super) { __extends(HTMLMathList, _super); function HTMLMathList() { return _super !== null && _super.apply(this, arguments) || this; } return HTMLMathList; }(MathList_js_1.AbstractMathList)); exports.HTMLMathList = HTMLMathList; //# sourceMappingURL=HTMLMathList.js.map /***/ }), /* 125 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.HTMLDomStrings = void 0; var Options_js_1 = __webpack_require__(6); var HTMLDomStrings = (function () { function HTMLDomStrings(options) { if (options === void 0) { options = null; } var CLASS = this.constructor; this.options = Options_js_1.userOptions(Options_js_1.defaultOptions({}, CLASS.OPTIONS), options); this.init(); this.getPatterns(); } HTMLDomStrings.prototype.init = function () { this.strings = []; this.string = ''; this.snodes = []; this.nodes = []; this.stack = []; }; HTMLDomStrings.prototype.getPatterns = function () { var skip = Options_js_1.makeArray(this.options['skipHtmlTags']); var ignore = Options_js_1.makeArray(this.options['ignoreHtmlClass']); var process = Options_js_1.makeArray(this.options['processHtmlClass']); this.skipHtmlTags = new RegExp('^(?:' + skip.join('|') + ')$', 'i'); this.ignoreHtmlClass = new RegExp('(?:^| )(?:' + ignore.join('|') + ')(?: |$)'); this.processHtmlClass = new RegExp('(?:^| )(?:' + process + ')(?: |$)'); }; HTMLDomStrings.prototype.pushString = function () { if (this.string.match(/\S/)) { this.strings.push(this.string); this.nodes.push(this.snodes); } this.string = ''; this.snodes = []; }; HTMLDomStrings.prototype.extendString = function (node, text) { this.snodes.push([node, text.length]); this.string += text; }; HTMLDomStrings.prototype.handleText = function (node, ignore) { if (!ignore) { this.extendString(node, this.adaptor.value(node)); } return this.adaptor.next(node); }; HTMLDomStrings.prototype.handleTag = function (node, ignore) { if (!ignore) { var text = this.options['includeHtmlTags'][this.adaptor.kind(node)]; this.extendString(node, text); } return this.adaptor.next(node); }; HTMLDomStrings.prototype.handleContainer = function (node, ignore) { this.pushString(); var cname = this.adaptor.getAttribute(node, 'class') || ''; var tname = this.adaptor.kind(node) || ''; var process = this.processHtmlClass.exec(cname); var next = node; if (this.adaptor.firstChild(node) && !this.adaptor.getAttribute(node, 'data-MJX') && (process || !this.skipHtmlTags.exec(tname))) { if (this.adaptor.next(node)) { this.stack.push([this.adaptor.next(node), ignore]); } next = this.adaptor.firstChild(node); ignore = (ignore || this.ignoreHtmlClass.exec(cname)) && !process; } else { next = this.adaptor.next(node); } return [next, ignore]; }; HTMLDomStrings.prototype.find = function (node) { var _a, _b; this.init(); var stop = this.adaptor.next(node); var ignore = false; var include = this.options['includeHtmlTags']; while (node && node !== stop) { if (this.adaptor.kind(node) === '#text') { node = this.handleText(node, ignore); } else if (include[this.adaptor.kind(node)] !== undefined) { node = this.handleTag(node, ignore); } else { _a = __read(this.handleContainer(node, ignore), 2), node = _a[0], ignore = _a[1]; } if (!node && this.stack.length) { this.pushString(); _b = __read(this.stack.pop(), 2), node = _b[0], ignore = _b[1]; } } this.pushString(); var result = [this.strings, this.nodes]; this.init(); return result; }; HTMLDomStrings.OPTIONS = { skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code', 'annotation', 'annotation-xml'], includeHtmlTags: { br: '\n', wbr: '', '#comment': '' }, ignoreHtmlClass: 'mathjax_ignore', processHtmlClass: 'mathjax_process' }; return HTMLDomStrings; }()); exports.HTMLDomStrings = HTMLDomStrings; //# sourceMappingURL=HTMLDomStrings.js.map /***/ }), /* 126 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.asyncLoad = void 0; var mathjax_js_1 = __webpack_require__(27); function asyncLoad(name) { if (!mathjax_js_1.mathjax.asyncLoad) { return Promise.reject("Can't load '" + name + "': No asyncLoad method specified"); } return new Promise(function (ok, fail) { var result = mathjax_js_1.mathjax.asyncLoad(name); if (result instanceof Promise) { result.then(function (value) { return ok(value); }).catch(function (err) { return fail(err); }); } else { ok(result); } }); } exports.asyncLoad = asyncLoad; //# sourceMappingURL=AsyncLoad.js.map /***/ }), /* 127 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CssStyles = void 0; var CssStyles = (function () { function CssStyles(styles) { if (styles === void 0) { styles = null; } this.styles = {}; this.addStyles(styles); } Object.defineProperty(CssStyles.prototype, "cssText", { get: function () { return this.getStyleString(); }, enumerable: false, configurable: true }); CssStyles.prototype.addStyles = function (styles) { var e_1, _a; if (!styles) return; try { for (var _b = __values(Object.keys(styles)), _c = _b.next(); !_c.done; _c = _b.next()) { var style = _c.value; if (!this.styles[style]) { this.styles[style] = {}; } Object.assign(this.styles[style], styles[style]); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; CssStyles.prototype.removeStyles = function () { var e_2, _a; var selectors = []; for (var _i = 0; _i < arguments.length; _i++) { selectors[_i] = arguments[_i]; } try { for (var selectors_1 = __values(selectors), selectors_1_1 = selectors_1.next(); !selectors_1_1.done; selectors_1_1 = selectors_1.next()) { var selector = selectors_1_1.value; delete this.styles[selector]; } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (selectors_1_1 && !selectors_1_1.done && (_a = selectors_1.return)) _a.call(selectors_1); } finally { if (e_2) throw e_2.error; } } }; CssStyles.prototype.clear = function () { this.styles = {}; }; CssStyles.prototype.getStyleString = function () { var e_3, _a; var selectors = Object.keys(this.styles); var defs = new Array(selectors.length); var i = 0; try { for (var selectors_2 = __values(selectors), selectors_2_1 = selectors_2.next(); !selectors_2_1.done; selectors_2_1 = selectors_2.next()) { var selector = selectors_2_1.value; defs[i++] = selector + ' {\n' + this.getStyleDefString(this.styles[selector]) + '\n}'; } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (selectors_2_1 && !selectors_2_1.done && (_a = selectors_2.return)) _a.call(selectors_2); } finally { if (e_3) throw e_3.error; } } return defs.join('\n\n'); }; CssStyles.prototype.getStyleDefString = function (styles) { var e_4, _a; var properties = Object.keys(styles); var values = new Array(properties.length); var i = 0; try { for (var properties_1 = __values(properties), properties_1_1 = properties_1.next(); !properties_1_1.done; properties_1_1 = properties_1.next()) { var property = properties_1_1.value; values[i++] = ' ' + property + ': ' + styles[property] + ';'; } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (properties_1_1 && !properties_1_1.done && (_a = properties_1.return)) _a.call(properties_1); } finally { if (e_4) throw e_4.error; } } return values.join('\n'); }; return CssStyles; }()); exports.CssStyles = CssStyles; //# sourceMappingURL=StyleList.js.map /***/ }), /* 128 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.max = exports.sum = void 0; function sum(A) { return A.reduce(function (a, b) { return a + b; }, 0); } exports.sum = sum; function max(A) { return A.reduce(function (a, b) { return Math.max(a, b); }, 0); } exports.max = max; //# sourceMappingURL=numeric.js.map /***/ }), /* 129 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.FindTeX = void 0; var FindMath_js_1 = __webpack_require__(105); var string_js_1 = __webpack_require__(14); var MathItem_js_1 = __webpack_require__(15); var FindTeX = (function (_super) { __extends(FindTeX, _super); function FindTeX(options) { var _this = _super.call(this, options) || this; _this.getPatterns(); return _this; } FindTeX.prototype.getPatterns = function () { var _this = this; var options = this.options; var starts = [], parts = [], subparts = []; this.end = {}; this.env = this.sub = 0; var i = 1; options['inlineMath'].forEach(function (delims) { return _this.addPattern(starts, delims, false); }); options['displayMath'].forEach(function (delims) { return _this.addPattern(starts, delims, true); }); if (starts.length) { parts.push(starts.sort(string_js_1.sortLength).join('|')); } if (options['processEnvironments']) { parts.push('\\\\begin\\s*\\{([^}]*)\\}'); this.env = i; i++; } if (options['processEscapes']) { subparts.push('\\\\([\\\\$])'); } if (options['processRefs']) { subparts.push('(\\\\(?:eq)?ref\\s*\\{[^}]*\\})'); } if (subparts.length) { parts.push('(' + subparts.join('|') + ')'); this.sub = i; } this.start = new RegExp(parts.join('|'), 'g'); this.hasPatterns = (parts.length > 0); }; FindTeX.prototype.addPattern = function (starts, delims, display) { var _a = __read(delims, 2), open = _a[0], close = _a[1]; starts.push(string_js_1.quotePattern(open)); this.end[open] = [close, display, this.endPattern(close)]; }; FindTeX.prototype.endPattern = function (end, endp) { return new RegExp((endp || string_js_1.quotePattern(end)) + '|\\\\(?:[a-zA-Z]|.)|[{}]', 'g'); }; FindTeX.prototype.findEnd = function (text, n, start, end) { var _a = __read(end, 3), close = _a[0], display = _a[1], pattern = _a[2]; var i = pattern.lastIndex = start.index + start[0].length; var match, braces = 0; while ((match = pattern.exec(text))) { if ((match[1] || match[0]) === close && braces === 0) { return MathItem_js_1.protoItem(start[0], text.substr(i, match.index - i), match[0], n, start.index, match.index + match[0].length, display); } else if (match[0] === '{') { braces++; } else if (match[0] === '}' && braces) { braces--; } } return null; }; FindTeX.prototype.findMathInString = function (math, n, text) { var start, match; this.start.lastIndex = 0; while ((start = this.start.exec(text))) { if (start[this.env] !== undefined && this.env) { var end = '\\\\end\\s*(\\{' + string_js_1.quotePattern(start[this.env]) + '\\})'; match = this.findEnd(text, n, start, ['{' + start[this.env] + '}', true, this.endPattern(null, end)]); if (match) { match.math = match.open + match.math + match.close; match.open = match.close = ''; } } else if (start[this.sub] !== undefined && this.sub) { var math_1 = start[this.sub]; var end = start.index + start[this.sub].length; if (math_1.length === 2) { match = MathItem_js_1.protoItem('', math_1.substr(1), '', n, start.index, end); } else { match = MathItem_js_1.protoItem('', math_1, '', n, start.index, end, false); } } else { match = this.findEnd(text, n, start, this.end[start[0]]); } if (match) { math.push(match); this.start.lastIndex = match.end.n; } } }; FindTeX.prototype.findMath = function (strings) { var math = []; if (this.hasPatterns) { for (var i = 0, m = strings.length; i < m; i++) { this.findMathInString(math, i, strings[i]); } } return math; }; FindTeX.OPTIONS = { inlineMath: [ ['\\(', '\\)'] ], displayMath: [ ['$$', '$$'], ['\\[', '\\]'] ], processEscapes: true, processEnvironments: true, processRefs: true, }; return FindTeX; }(FindMath_js_1.AbstractFindMath)); exports.FindTeX = FindTeX; //# sourceMappingURL=FindTeX.js.map /***/ }), /* 130 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); var MmlNode_js_1 = __webpack_require__(0); var NodeUtil_js_1 = __webpack_require__(7); var FilterUtil; (function (FilterUtil) { FilterUtil.cleanStretchy = function (arg) { var e_1, _a; var options = arg.data; try { for (var _b = __values(options.getList('fixStretchy')), _c = _b.next(); !_c.done; _c = _b.next()) { var mo = _c.value; if (NodeUtil_js_1.default.getProperty(mo, 'fixStretchy')) { var symbol = NodeUtil_js_1.default.getForm(mo); if (symbol && symbol[3] && symbol[3]['stretchy']) { NodeUtil_js_1.default.setAttribute(mo, 'stretchy', false); } var parent_1 = mo.parent; if (!NodeUtil_js_1.default.getTexClass(mo) && (!symbol || !symbol[2])) { var texAtom = options.nodeFactory.create('node', 'TeXAtom', [mo]); parent_1.replaceChild(texAtom, mo); texAtom.inheritAttributesFrom(mo); } NodeUtil_js_1.default.removeProperties(mo, 'fixStretchy'); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; FilterUtil.cleanAttributes = function (arg) { var node = arg.data.root; node.walkTree(function (mml, _d) { var e_2, _a; var attribs = mml.attributes; if (!attribs) { return; } try { for (var _b = __values(attribs.getExplicitNames()), _c = _b.next(); !_c.done; _c = _b.next()) { var key = _c.value; if (attribs.attributes[key] === mml.attributes.getInherited(key)) { delete attribs.attributes[key]; } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } }, {}); }; FilterUtil.combineRelations = function (arg) { var e_3, _a; try { for (var _b = __values(arg.data.getList('mo')), _c = _b.next(); !_c.done; _c = _b.next()) { var mo = _c.value; if (mo.getProperty('relationsCombined') || !mo.parent || (mo.parent && !NodeUtil_js_1.default.isType(mo.parent, 'mrow')) || NodeUtil_js_1.default.getTexClass(mo) !== MmlNode_js_1.TEXCLASS.REL) { continue; } var mml = mo.parent; var m2 = void 0; var children = mml.childNodes; var next = children.indexOf(mo) + 1; var variantForm = NodeUtil_js_1.default.getProperty(mo, 'variantForm'); while (next < children.length && (m2 = children[next]) && NodeUtil_js_1.default.isType(m2, 'mo') && NodeUtil_js_1.default.getTexClass(m2) === MmlNode_js_1.TEXCLASS.REL) { if (variantForm === NodeUtil_js_1.default.getProperty(m2, 'variantForm') && _compareExplicit(mo, m2)) { NodeUtil_js_1.default.appendChildren(mo, NodeUtil_js_1.default.getChildren(m2)); _copyExplicit(['stretchy', 'rspace'], mo, m2); NodeUtil_js_1.default.setProperties(mo, m2.getAllProperties()); children.splice(next, 1); m2.parent = null; m2.setProperty('relationsCombined', true); } else { if (mo.attributes.getExplicit('rspace') == null) { NodeUtil_js_1.default.setAttribute(mo, 'rspace', '0pt'); } if (m2.attributes.getExplicit('lspace') == null) { NodeUtil_js_1.default.setAttribute(m2, 'lspace', '0pt'); } break; } } mo.attributes.setInherited('form', mo.getForms()[0]); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } }; var _copyExplicit = function (attrs, node1, node2) { var attr1 = node1.attributes; var attr2 = node2.attributes; attrs.forEach(function (x) { var attr = attr2.getExplicit(x); if (attr != null) { attr1.set(x, attr); } }); }; var _compareExplicit = function (node1, node2) { var e_4, _a; var filter = function (attr, space) { var exp = attr.getExplicitNames(); return exp.filter(function (x) { return x !== space && (x !== 'stretchy' || attr.getExplicit('stretchy')); }); }; var attr1 = node1.attributes; var attr2 = node2.attributes; var exp1 = filter(attr1, 'lspace'); var exp2 = filter(attr2, 'rspace'); if (exp1.length !== exp2.length) { return false; } try { for (var exp1_1 = __values(exp1), exp1_1_1 = exp1_1.next(); !exp1_1_1.done; exp1_1_1 = exp1_1.next()) { var name_1 = exp1_1_1.value; if (attr1.getExplicit(name_1) !== attr2.getExplicit(name_1)) { return false; } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (exp1_1_1 && !exp1_1_1.done && (_a = exp1_1.return)) _a.call(exp1_1); } finally { if (e_4) throw e_4.error; } } return true; }; var _cleanSubSup = function (options, low, up) { var e_5, _a; try { for (var _b = __values(options.getList('m' + low + up)), _c = _b.next(); !_c.done; _c = _b.next()) { var mml = _c.value; var children = mml.childNodes; if (children[mml[low]] && children[mml[up]]) { continue; } var parent_2 = mml.parent; var newNode = (children[mml[low]] ? options.nodeFactory.create('node', 'm' + low, [children[mml.base], children[mml[low]]]) : options.nodeFactory.create('node', 'm' + up, [children[mml.base], children[mml[up]]])); NodeUtil_js_1.default.copyAttributes(mml, newNode); if (parent_2) { parent_2.replaceChild(newNode, mml); } else { options.root = newNode; } } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_5) throw e_5.error; } } }; FilterUtil.cleanSubSup = function (arg) { var options = arg.data; if (options.error) { return; } _cleanSubSup(options, 'sub', 'sup'); _cleanSubSup(options, 'under', 'over'); }; var _moveLimits = function (options, underover, subsup) { var e_6, _a; try { for (var _b = __values(options.getList(underover)), _c = _b.next(); !_c.done; _c = _b.next()) { var mml = _c.value; if (mml.attributes.get('displaystyle')) { continue; } var base = mml.childNodes[mml.base]; var mo = base.coreMO(); if (base.getProperty('movablelimits') && !mo.attributes.getExplicit('movablelimits')) { var node = options.nodeFactory.create('node', subsup, mml.childNodes); NodeUtil_js_1.default.copyAttributes(mml, node); if (mml.parent) { mml.parent.replaceChild(node, mml); } else { options.root = node; } } } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_6) throw e_6.error; } } }; FilterUtil.moveLimits = function (arg) { var options = arg.data; _moveLimits(options, 'munderover', 'msubsup'); _moveLimits(options, 'munder', 'msub'); _moveLimits(options, 'mover', 'msup'); }; FilterUtil.setInherited = function (arg) { arg.data.root.setInheritedAttributes({}, arg.math['display'], 0, false); }; })(FilterUtil || (FilterUtil = {})); exports.default = FilterUtil; //# sourceMappingURL=FilterUtil.js.map /***/ }), /* 131 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var _a; Object.defineProperty(exports, "__esModule", { value: true }); var StackItem_js_1 = __webpack_require__(23); var Factory_js_1 = __webpack_require__(37); var DummyItem = (function (_super) { __extends(DummyItem, _super); function DummyItem() { return _super !== null && _super.apply(this, arguments) || this; } return DummyItem; }(StackItem_js_1.BaseItem)); var StackItemFactory = (function (_super) { __extends(StackItemFactory, _super); function StackItemFactory() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.defaultKind = 'dummy'; _this.configuration = null; return _this; } StackItemFactory.DefaultStackItems = (_a = {}, _a[DummyItem.prototype.kind] = DummyItem, _a); return StackItemFactory; }(Factory_js_1.AbstractFactory)); exports.default = StackItemFactory; //# sourceMappingURL=StackItemFactory.js.map /***/ }), /* 132 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ActionConfiguration = exports.ActionMethods = void 0; var Configuration_js_1 = __webpack_require__(2); var TexParser_js_1 = __webpack_require__(12); var SymbolMap_js_1 = __webpack_require__(3); var BaseMethods_js_1 = __webpack_require__(17); exports.ActionMethods = {}; exports.ActionMethods.Macro = BaseMethods_js_1.default.Macro; exports.ActionMethods.Toggle = function (parser, name) { var children = []; var arg; while ((arg = parser.GetArgument(name)) !== '\\endtoggle') { children.push(new TexParser_js_1.default(arg, parser.stack.env, parser.configuration).mml()); } parser.Push(parser.create('node', 'maction', children, { actiontype: 'toggle' })); }; exports.ActionMethods.Mathtip = function (parser, name) { var arg = parser.ParseArg(name); var tip = parser.ParseArg(name); parser.Push(parser.create('node', 'maction', [arg, tip], { actiontype: 'tooltip' })); }; new SymbolMap_js_1.CommandMap('action-macros', { toggle: 'Toggle', mathtip: 'Mathtip', texttip: ['Macro', '\\mathtip{#1}{\\text{#2}}', 2] }, exports.ActionMethods); exports.ActionConfiguration = Configuration_js_1.Configuration.create('action', { handler: { macro: ['action-macros'] } }); //# sourceMappingURL=ActionConfiguration.js.map /***/ }), /* 133 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.AmsConfiguration = exports.AmsTags = void 0; var Configuration_js_1 = __webpack_require__(2); var AmsItems_js_1 = __webpack_require__(134); var Tags_js_1 = __webpack_require__(21); var AmsMethods_js_1 = __webpack_require__(34); __webpack_require__(277); var SymbolMap_js_1 = __webpack_require__(3); var AmsTags = (function (_super) { __extends(AmsTags, _super); function AmsTags() { return _super !== null && _super.apply(this, arguments) || this; } return AmsTags; }(Tags_js_1.AbstractTags)); exports.AmsTags = AmsTags; var init = function (config) { new SymbolMap_js_1.CommandMap(AmsMethods_js_1.NEW_OPS, {}, {}); config.append(Configuration_js_1.Configuration.local({ handler: { macro: [AmsMethods_js_1.NEW_OPS] }, priority: -1 })); }; exports.AmsConfiguration = Configuration_js_1.Configuration.create('ams', { handler: { delimiter: ['AMSsymbols-delimiter', 'AMSmath-delimiter'], macro: ['AMSsymbols-mathchar0mi', 'AMSsymbols-mathchar0m0', 'AMSsymbols-delimiter', 'AMSsymbols-macros', 'AMSmath-mathchar0mo', 'AMSmath-macros', 'AMSmath-delimiter'], environment: ['AMSmath-environment'] }, items: (_a = {}, _a[AmsItems_js_1.MultlineItem.prototype.kind] = AmsItems_js_1.MultlineItem, _a), tags: { 'ams': AmsTags }, init: init }); //# sourceMappingURL=AmsConfiguration.js.map /***/ }), /* 134 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.MultlineItem = void 0; var BaseItems_js_1 = __webpack_require__(29); var ParseUtil_js_1 = __webpack_require__(8); var NodeUtil_js_1 = __webpack_require__(7); var TexError_js_1 = __webpack_require__(4); var TexConstants_js_1 = __webpack_require__(13); var MultlineItem = (function (_super) { __extends(MultlineItem, _super); function MultlineItem(factory) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } var _this = _super.call(this, factory) || this; _this.factory.configuration.tags.start('multline', true, args[0]); return _this; } Object.defineProperty(MultlineItem.prototype, "kind", { get: function () { return 'multline'; }, enumerable: false, configurable: true }); MultlineItem.prototype.EndEntry = function () { if (this.table.length) { ParseUtil_js_1.default.fixInitialMO(this.factory.configuration, this.nodes); } var shove = this.getProperty('shove'); var mtd = this.create('node', 'mtd', this.nodes, shove ? { columnalign: shove } : {}); this.setProperty('shove', null); this.row.push(mtd); this.Clear(); }; MultlineItem.prototype.EndRow = function () { if (this.row.length !== 1) { throw new TexError_js_1.default('MultlineRowsOneCol', 'The rows within the %1 environment must have exactly one column', 'multline'); } var row = this.create('node', 'mtr', this.row); this.table.push(row); this.row = []; }; MultlineItem.prototype.EndTable = function () { _super.prototype.EndTable.call(this); if (this.table.length) { var m = this.table.length - 1, label = -1; if (!NodeUtil_js_1.default.getAttribute(NodeUtil_js_1.default.getChildren(this.table[0])[0], 'columnalign')) { NodeUtil_js_1.default.setAttribute(NodeUtil_js_1.default.getChildren(this.table[0])[0], 'columnalign', TexConstants_js_1.TexConstant.Align.LEFT); } if (!NodeUtil_js_1.default.getAttribute(NodeUtil_js_1.default.getChildren(this.table[m])[0], 'columnalign')) { NodeUtil_js_1.default.setAttribute(NodeUtil_js_1.default.getChildren(this.table[m])[0], 'columnalign', TexConstants_js_1.TexConstant.Align.RIGHT); } var tag = this.factory.configuration.tags.getTag(); if (tag) { label = (this.arraydef.side === TexConstants_js_1.TexConstant.Align.LEFT ? 0 : this.table.length - 1); var mtr = this.table[label]; var mlabel = this.create('node', 'mlabeledtr', [tag].concat(NodeUtil_js_1.default.getChildren(mtr))); NodeUtil_js_1.default.copyAttributes(mtr, mlabel); this.table[label] = mlabel; } } this.factory.configuration.tags.end(); }; return MultlineItem; }(BaseItems_js_1.ArrayItem)); exports.MultlineItem = MultlineItem; //# sourceMappingURL=AmsItems.js.map /***/ }), /* 135 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AmsCdConfiguration = void 0; var Configuration_js_1 = __webpack_require__(2); __webpack_require__(278); exports.AmsCdConfiguration = Configuration_js_1.Configuration.create('amscd', { handler: { character: ['amscd_special'], macro: ['amscd_macros'], environment: ['amscd_environment'] }, options: { amscd: { colspace: '5pt', rowspace: '5pt', harrowsize: '2.75em', varrowsize: '1.75em', hideHorizontalLabels: false } } }); //# sourceMappingURL=AmsCdConfiguration.js.map /***/ }), /* 136 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var TexParser_js_1 = __webpack_require__(12); var BaseConfiguration_js_1 = __webpack_require__(42); var MmlNode_js_1 = __webpack_require__(0); var NodeUtil_js_1 = __webpack_require__(7); var AmsCdMethods = {}; AmsCdMethods.CD = function (parser, begin) { parser.Push(begin); var item = parser.itemFactory.create('array'); var options = parser.configuration.options.amscd; item.setProperties({ minw: parser.stack.env.CD_minw || options.harrowsize, minh: parser.stack.env.CD_minh || options.varrowsize }); item.arraydef = { columnalign: 'center', columnspacing: options.colspace, rowspacing: options.rowspace, displaystyle: true }; return item; }; AmsCdMethods.arrow = function (parser, name) { var c = parser.string.charAt(parser.i); if (!c.match(/[>': '\u2192', '<': '\u2190', 'V': '\u2193', 'A': '\u2191' }[c]; var a = parser.GetUpTo(name + c, c); var b = parser.GetUpTo(name + c, c); if (c === '>' || c === '<') { mml = parser.create('token', 'mo', hdef, arrow); if (!a) { a = '\\kern ' + top.getProperty('minw'); } if (a || b) { var pad = { width: '.67em', lspace: '.33em' }; mml = parser.create('node', 'munderover', [mml]); if (a) { var nodeA = new TexParser_js_1.default(a, parser.stack.env, parser.configuration).mml(); var mpadded = parser.create('node', 'mpadded', [nodeA], pad); NodeUtil_js_1.default.setAttribute(mpadded, 'voffset', '.1em'); NodeUtil_js_1.default.setChild(mml, mml.over, mpadded); } if (b) { var nodeB = new TexParser_js_1.default(b, parser.stack.env, parser.configuration).mml(); NodeUtil_js_1.default.setChild(mml, mml.under, parser.create('node', 'mpadded', [nodeB], pad)); } if (parser.configuration.options.amscd.hideHorizontalLabels) { mml = parser.create('node', 'mpadded', mml, { depth: 0, height: '.67em' }); } } } else { var arrowNode = parser.create('token', 'mo', vdef, arrow); mml = arrowNode; if (a || b) { mml = parser.create('node', 'mrow'); if (a) { NodeUtil_js_1.default.appendChildren(mml, [new TexParser_js_1.default('\\scriptstyle\\llap{' + a + '}', parser.stack.env, parser.configuration).mml()]); } arrowNode.texClass = MmlNode_js_1.TEXCLASS.ORD; NodeUtil_js_1.default.appendChildren(mml, [arrowNode]); if (b) { NodeUtil_js_1.default.appendChildren(mml, [new TexParser_js_1.default('\\scriptstyle\\rlap{' + b + '}', parser.stack.env, parser.configuration).mml()]); } } } } if (mml) { parser.Push(mml); } AmsCdMethods.cell(parser, name); }; AmsCdMethods.cell = function (parser, name) { var top = parser.stack.Top(); if ((top.table || []).length % 2 === 0 && (top.row || []).length === 0) { parser.Push(parser.create('node', 'mpadded', [], { height: '8.5pt', depth: '2pt' })); } parser.Push(parser.itemFactory.create('cell').setProperties({ isEntry: true, name: name })); }; AmsCdMethods.minCDarrowwidth = function (parser, name) { parser.stack.env.CD_minw = parser.GetDimen(name); }; AmsCdMethods.minCDarrowheight = function (parser, name) { parser.stack.env.CD_minh = parser.GetDimen(name); }; exports.default = AmsCdMethods; //# sourceMappingURL=AmsCdMethods.js.map /***/ }), /* 137 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BboxConfiguration = exports.BboxMethods = void 0; var Configuration_js_1 = __webpack_require__(2); var SymbolMap_js_1 = __webpack_require__(3); var TexError_js_1 = __webpack_require__(4); exports.BboxMethods = {}; exports.BboxMethods.BBox = function (parser, name) { var bbox = parser.GetBrackets(name, ''); var math = parser.ParseArg(name); var parts = bbox.split(/,/); var def, background, style; for (var i = 0, m = parts.length; i < m; i++) { var part = parts[i].trim(); var match = part.match(/^(\.\d+|\d+(\.\d*)?)(pt|em|ex|mu|px|in|cm|mm)$/); if (match) { if (def) { throw new TexError_js_1.default('MultipleBBoxProperty', '%1 specified twice in %2', 'Padding', name); } var pad = BBoxPadding(match[1] + match[3]); if (pad) { def = { height: '+' + pad, depth: '+' + pad, lspace: pad, width: '+' + (2 * parseInt(match[1], 10)) + match[3] }; } } else if (part.match(/^([a-z0-9]+|\#[0-9a-f]{6}|\#[0-9a-f]{3})$/i)) { if (background) { throw new TexError_js_1.default('MultipleBBoxProperty', '%1 specified twice in %2', 'Background', name); } background = part; } else if (part.match(/^[-a-z]+:/i)) { if (style) { throw new TexError_js_1.default('MultipleBBoxProperty', '%1 specified twice in %2', 'Style', name); } style = BBoxStyle(part); } else if (part !== '') { throw new TexError_js_1.default('InvalidBBoxProperty', '"%1" doesn\'t look like a color, a padding dimension, or a style', part); } } if (def) { math = parser.create('node', 'mpadded', [math], def); } if (background || style) { def = {}; if (background) { Object.assign(def, { mathbackground: background }); } if (style) { Object.assign(def, { style: style }); } math = parser.create('node', 'mstyle', [math], def); } parser.Push(math); }; var BBoxStyle = function (styles) { return styles; }; var BBoxPadding = function (pad) { return pad; }; new SymbolMap_js_1.CommandMap('bbox', { bbox: 'BBox' }, exports.BboxMethods); exports.BboxConfiguration = Configuration_js_1.Configuration.create('bbox', { handler: { macro: ['bbox'] } }); //# sourceMappingURL=BboxConfiguration.js.map /***/ }), /* 138 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.BoldsymbolConfiguration = exports.rewriteBoldTokens = exports.createBoldToken = exports.BoldsymbolMethods = void 0; var Configuration_js_1 = __webpack_require__(2); var NodeUtil_js_1 = __webpack_require__(7); var TexConstants_js_1 = __webpack_require__(13); var SymbolMap_js_1 = __webpack_require__(3); var NodeFactory_js_1 = __webpack_require__(41); var BOLDVARIANT = {}; BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.NORMAL] = TexConstants_js_1.TexConstant.Variant.BOLD; BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.ITALIC] = TexConstants_js_1.TexConstant.Variant.BOLDITALIC; BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.FRAKTUR] = TexConstants_js_1.TexConstant.Variant.BOLDFRAKTUR; BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.SCRIPT] = TexConstants_js_1.TexConstant.Variant.BOLDSCRIPT; BOLDVARIANT[TexConstants_js_1.TexConstant.Variant.SANSSERIF] = TexConstants_js_1.TexConstant.Variant.BOLDSANSSERIF; BOLDVARIANT['-tex-calligraphic'] = '-tex-bold-calligraphic'; BOLDVARIANT['-tex-oldstyle'] = '-tex-bold-oldstyle'; exports.BoldsymbolMethods = {}; exports.BoldsymbolMethods.Boldsymbol = function (parser, name) { var boldsymbol = parser.stack.env['boldsymbol']; parser.stack.env['boldsymbol'] = true; var mml = parser.ParseArg(name); parser.stack.env['boldsymbol'] = boldsymbol; parser.Push(mml); }; new SymbolMap_js_1.CommandMap('boldsymbol', { boldsymbol: 'Boldsymbol' }, exports.BoldsymbolMethods); function createBoldToken(factory, kind, def, text) { var token = NodeFactory_js_1.NodeFactory.createToken(factory, kind, def, text); if (kind !== 'mtext' && factory.configuration.parser.stack.env['boldsymbol']) { NodeUtil_js_1.default.setProperty(token, 'fixBold', true); factory.configuration.addNode('fixBold', token); } return token; } exports.createBoldToken = createBoldToken; function rewriteBoldTokens(arg) { var e_1, _a; try { for (var _b = __values(arg.data.getList('fixBold')), _c = _b.next(); !_c.done; _c = _b.next()) { var node = _c.value; if (NodeUtil_js_1.default.getProperty(node, 'fixBold')) { var variant = NodeUtil_js_1.default.getAttribute(node, 'mathvariant'); if (variant == null) { NodeUtil_js_1.default.setAttribute(node, 'mathvariant', TexConstants_js_1.TexConstant.Variant.BOLD); } else { NodeUtil_js_1.default.setAttribute(node, 'mathvariant', BOLDVARIANT[variant] || variant); } NodeUtil_js_1.default.removeProperties(node, 'fixBold'); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } exports.rewriteBoldTokens = rewriteBoldTokens; exports.BoldsymbolConfiguration = Configuration_js_1.Configuration.create('boldsymbol', { handler: { macro: ['boldsymbol'] }, nodes: { 'token': createBoldToken }, postprocessors: [rewriteBoldTokens] }); //# sourceMappingURL=BoldsymbolConfiguration.js.map /***/ }), /* 139 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.BraketConfiguration = void 0; var Configuration_js_1 = __webpack_require__(2); var BraketItems_js_1 = __webpack_require__(140); __webpack_require__(279); exports.BraketConfiguration = Configuration_js_1.Configuration.create('braket', { handler: { character: ['Braket-characters'], macro: ['Braket-macros'] }, items: (_a = {}, _a[BraketItems_js_1.BraketItem.prototype.kind] = BraketItems_js_1.BraketItem, _a) }); //# sourceMappingURL=BraketConfiguration.js.map /***/ }), /* 140 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.BraketItem = void 0; var StackItem_js_1 = __webpack_require__(23); var MmlNode_js_1 = __webpack_require__(0); var ParseUtil_js_1 = __webpack_require__(8); var BraketItem = (function (_super) { __extends(BraketItem, _super); function BraketItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(BraketItem.prototype, "kind", { get: function () { return 'braket'; }, enumerable: false, configurable: true }); Object.defineProperty(BraketItem.prototype, "isOpen", { get: function () { return true; }, enumerable: false, configurable: true }); BraketItem.prototype.checkItem = function (item) { if (item.isKind('close')) { return [[this.factory.create('mml', this.toMml())], true]; } if (item.isKind('mml')) { this.Push(item.toMml()); if (this.getProperty('single')) { return [[this.toMml()], true]; } return StackItem_js_1.BaseItem.fail; } return _super.prototype.checkItem.call(this, item); }; BraketItem.prototype.toMml = function () { var inner = _super.prototype.toMml.call(this); var open = this.getProperty('open'); var close = this.getProperty('close'); if (this.getProperty('stretchy')) { return ParseUtil_js_1.default.fenced(this.factory.configuration, open, inner, close); } var attrs = { fence: true, stretchy: false, symmetric: true, texClass: MmlNode_js_1.TEXCLASS.OPEN }; var openNode = this.create('token', 'mo', attrs, open); attrs.texClass = MmlNode_js_1.TEXCLASS.CLOSE; var closeNode = this.create('token', 'mo', attrs, close); var mrow = this.create('node', 'mrow', [openNode, inner, closeNode], { open: open, close: close, texClass: MmlNode_js_1.TEXCLASS.INNER }); return mrow; }; return BraketItem; }(StackItem_js_1.BaseItem)); exports.BraketItem = BraketItem; //# sourceMappingURL=BraketItems.js.map /***/ }), /* 141 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var BaseMethods_js_1 = __webpack_require__(17); var MmlNode_js_1 = __webpack_require__(0); var TexError_js_1 = __webpack_require__(4); var BraketMethods = {}; BraketMethods.Macro = BaseMethods_js_1.default.Macro; BraketMethods.Braket = function (parser, _name, open, close, stretchy, barmax) { var next = parser.GetNext(); if (next === '') { throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', parser.currentCS); } var single = true; if (next === '{') { parser.i++; single = false; } parser.Push(parser.itemFactory.create('braket') .setProperties({ barmax: barmax, barcount: 0, open: open, close: close, stretchy: stretchy, single: single })); }; BraketMethods.Bar = function (parser, name) { var c = name === '|' ? '|' : '\u2225'; var top = parser.stack.Top(); if (top.kind !== 'braket' || top.getProperty('barcount') >= top.getProperty('barmax')) { var mml = parser.create('token', 'mo', { texClass: MmlNode_js_1.TEXCLASS.ORD, stretchy: false }, c); parser.Push(mml); return; } if (c === '|' && parser.GetNext() === '|') { parser.i++; c = '\u2225'; } var stretchy = top.getProperty('stretchy'); if (!stretchy) { var node_1 = parser.create('token', 'mo', { stretchy: false, braketbar: true }, c); parser.Push(node_1); return; } var node = parser.create('node', 'TeXAtom', [], { texClass: MmlNode_js_1.TEXCLASS.CLOSE }); parser.Push(node); top.setProperty('barcount', top.getProperty('barcount') + 1); node = parser.create('token', 'mo', { stretchy: true, braketbar: true }, c); parser.Push(node); node = parser.create('node', 'TeXAtom', [], { texClass: MmlNode_js_1.TEXCLASS.OPEN }); parser.Push(node); }; exports.default = BraketMethods; //# sourceMappingURL=BraketMethods.js.map /***/ }), /* 142 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.BussproofsConfiguration = void 0; var Configuration_js_1 = __webpack_require__(2); var BussproofsItems_js_1 = __webpack_require__(143); var BussproofsUtil_js_1 = __webpack_require__(43); __webpack_require__(280); exports.BussproofsConfiguration = Configuration_js_1.Configuration.create('bussproofs', { handler: { macro: ['Bussproofs-macros'], environment: ['Bussproofs-environments'] }, items: (_a = {}, _a[BussproofsItems_js_1.ProofTreeItem.prototype.kind] = BussproofsItems_js_1.ProofTreeItem, _a), preprocessors: [ [BussproofsUtil_js_1.saveDocument, 1] ], postprocessors: [ [BussproofsUtil_js_1.clearDocument, 3], [BussproofsUtil_js_1.makeBsprAttributes, 2], [BussproofsUtil_js_1.balanceRules, 1] ] }); //# sourceMappingURL=BussproofsConfiguration.js.map /***/ }), /* 143 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.ProofTreeItem = void 0; var TexError_js_1 = __webpack_require__(4); var StackItem_js_1 = __webpack_require__(23); var Stack_js_1 = __webpack_require__(82); var BussproofsUtil = __webpack_require__(43); var ProofTreeItem = (function (_super) { __extends(ProofTreeItem, _super); function ProofTreeItem() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.leftLabel = null; _this.rigthLabel = null; _this.innerStack = new Stack_js_1.default(_this.factory, {}, true); return _this; } Object.defineProperty(ProofTreeItem.prototype, "kind", { get: function () { return 'proofTree'; }, enumerable: false, configurable: true }); ProofTreeItem.prototype.checkItem = function (item) { if (item.isKind('end') && item.getName() === 'prooftree') { var node = this.toMml(); BussproofsUtil.setProperty(node, 'proof', true); return [[this.factory.create('mml', node), item], true]; } if (item.isKind('stop')) { throw new TexError_js_1.default('EnvMissingEnd', 'Missing \\end{%1}', this.getName()); } this.innerStack.Push(item); return StackItem_js_1.BaseItem.fail; }; ProofTreeItem.prototype.toMml = function () { var tree = _super.prototype.toMml.call(this); var start = this.innerStack.Top(); if (start.isKind('start') && !start.Size()) { return tree; } this.innerStack.Push(this.factory.create('stop')); var prefix = this.innerStack.Top().toMml(); return this.create('node', 'mrow', [prefix, tree], {}); }; return ProofTreeItem; }(StackItem_js_1.BaseItem)); exports.ProofTreeItem = ProofTreeItem; //# sourceMappingURL=BussproofsItems.js.map /***/ }), /* 144 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); var TexError_js_1 = __webpack_require__(4); var TexParser_js_1 = __webpack_require__(12); var ParseUtil_js_1 = __webpack_require__(8); var BussproofsUtil = __webpack_require__(43); var BussproofsMethods = {}; BussproofsMethods.Prooftree = function (parser, begin) { parser.Push(begin); var newItem = parser.itemFactory.create('proofTree'). setProperties({ name: begin.getName(), line: 'solid', currentLine: 'solid', rootAtTop: false }); return newItem; }; BussproofsMethods.Axiom = function (parser, name) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } var content = paddedContent(parser, parser.GetArgument(name)); BussproofsUtil.setProperty(content, 'axiom', true); top.Push(content); }; var paddedContent = function (parser, content) { var nodes = ParseUtil_js_1.default.internalMath(parser, ParseUtil_js_1.default.trimSpaces(content), 0); if (!nodes[0].childNodes[0].childNodes.length) { return parser.create('node', 'mrow', []); } var lpad = parser.create('node', 'mspace', [], { width: '.5ex' }); var rpad = parser.create('node', 'mspace', [], { width: '.5ex' }); return parser.create('node', 'mrow', __spread([lpad], nodes, [rpad])); }; BussproofsMethods.Inference = function (parser, name, n) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } if (top.Size() < n) { throw new TexError_js_1.default('BadProofTree', 'Proof tree badly specified.'); } var rootAtTop = top.getProperty('rootAtTop'); var childCount = (n === 1 && !top.Peek()[0].childNodes.length) ? 0 : n; var children = []; do { if (children.length) { children.unshift(parser.create('node', 'mtd', [], {})); } children.unshift(parser.create('node', 'mtd', [top.Pop()], { 'rowalign': (rootAtTop ? 'top' : 'bottom') })); n--; } while (n > 0); var row = parser.create('node', 'mtr', children, {}); var table = parser.create('node', 'mtable', [row], { framespacing: '0 0' }); var conclusion = paddedContent(parser, parser.GetArgument(name)); var style = top.getProperty('currentLine'); if (style !== top.getProperty('line')) { top.setProperty('currentLine', top.getProperty('line')); } var rule = createRule(parser, table, [conclusion], top.getProperty('left'), top.getProperty('right'), style, rootAtTop); top.setProperty('left', null); top.setProperty('right', null); BussproofsUtil.setProperty(rule, 'inference', childCount); parser.configuration.addNode('inference', rule); top.Push(rule); }; function createRule(parser, premise, conclusions, left, right, style, rootAtTop) { var upper = parser.create('node', 'mtr', [parser.create('node', 'mtd', [premise], {})], {}); var lower = parser.create('node', 'mtr', [parser.create('node', 'mtd', conclusions, {})], {}); var rule = parser.create('node', 'mtable', rootAtTop ? [lower, upper] : [upper, lower], { align: 'top 2', rowlines: style, framespacing: '0 0' }); BussproofsUtil.setProperty(rule, 'inferenceRule', rootAtTop ? 'up' : 'down'); var leftLabel, rightLabel; if (left) { leftLabel = parser.create('node', 'mpadded', [left], { height: '+.5em', width: '+.5em', voffset: '-.15em' }); BussproofsUtil.setProperty(leftLabel, 'prooflabel', 'left'); } if (right) { rightLabel = parser.create('node', 'mpadded', [right], { height: '+.5em', width: '+.5em', voffset: '-.15em' }); BussproofsUtil.setProperty(rightLabel, 'prooflabel', 'right'); } var children, label; if (left && right) { children = [leftLabel, rule, rightLabel]; label = 'both'; } else if (left) { children = [leftLabel, rule]; label = 'left'; } else if (right) { children = [rule, rightLabel]; label = 'right'; } else { return rule; } rule = parser.create('node', 'mrow', children); BussproofsUtil.setProperty(rule, 'labelledRule', label); return rule; } BussproofsMethods.Label = function (parser, name, side) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } var content = ParseUtil_js_1.default.internalMath(parser, parser.GetArgument(name), 0); var label = (content.length > 1) ? parser.create('node', 'mrow', content, {}) : content[0]; top.setProperty(side, label); }; BussproofsMethods.SetLine = function (parser, _name, style, always) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } top.setProperty('currentLine', style); if (always) { top.setProperty('line', style); } }; BussproofsMethods.RootAtTop = function (parser, _name, where) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } top.setProperty('rootAtTop', where); }; BussproofsMethods.AxiomF = function (parser, name) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } var line = parseFCenterLine(parser, name); BussproofsUtil.setProperty(line, 'axiom', true); top.Push(line); }; function parseFCenterLine(parser, name) { var dollar = parser.GetNext(); if (dollar !== '$') { throw new TexError_js_1.default('IllegalUseOfCommand', 'Use of %1 does not match it\'s definition.', name); } parser.i++; var axiom = parser.GetUpTo(name, '$'); if (axiom.indexOf('\\fCenter') === -1) { throw new TexError_js_1.default('IllegalUseOfCommand', 'Missing \\fCenter in %1.', name); } var _a = __read(axiom.split('\\fCenter'), 2), prem = _a[0], conc = _a[1]; var premise = (new TexParser_js_1.default(prem, parser.stack.env, parser.configuration)).mml(); var conclusion = (new TexParser_js_1.default(conc, parser.stack.env, parser.configuration)).mml(); var fcenter = (new TexParser_js_1.default('\\fCenter', parser.stack.env, parser.configuration)).mml(); var left = parser.create('node', 'mtd', [premise], {}); var middle = parser.create('node', 'mtd', [fcenter], {}); var right = parser.create('node', 'mtd', [conclusion], {}); var row = parser.create('node', 'mtr', [left, middle, right], {}); var table = parser.create('node', 'mtable', [row], { columnspacing: '.5ex', columnalign: 'center 2' }); BussproofsUtil.setProperty(table, 'sequent', true); parser.configuration.addNode('sequent', row); return table; } BussproofsMethods.FCenter = function (_parser, _name) { }; BussproofsMethods.InferenceF = function (parser, name, n) { var top = parser.stack.Top(); if (top.kind !== 'proofTree') { throw new TexError_js_1.default('IllegalProofCommand', 'Proof commands only allowed in prooftree environment.'); } if (top.Size() < n) { throw new TexError_js_1.default('BadProofTree', 'Proof tree badly specified.'); } var rootAtTop = top.getProperty('rootAtTop'); var childCount = (n === 1 && !top.Peek()[0].childNodes.length) ? 0 : n; var children = []; do { if (children.length) { children.unshift(parser.create('node', 'mtd', [], {})); } children.unshift(parser.create('node', 'mtd', [top.Pop()], { 'rowalign': (rootAtTop ? 'top' : 'bottom') })); n--; } while (n > 0); var row = parser.create('node', 'mtr', children, {}); var table = parser.create('node', 'mtable', [row], { framespacing: '0 0' }); var conclusion = parseFCenterLine(parser, name); var style = top.getProperty('currentLine'); if (style !== top.getProperty('line')) { top.setProperty('currentLine', top.getProperty('line')); } var rule = createRule(parser, table, [conclusion], top.getProperty('left'), top.getProperty('right'), style, rootAtTop); top.setProperty('left', null); top.setProperty('right', null); BussproofsUtil.setProperty(rule, 'inference', childCount); parser.configuration.addNode('inference', rule); top.Push(rule); }; exports.default = BussproofsMethods; //# sourceMappingURL=BussproofsMethods.js.map /***/ }), /* 145 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CancelConfiguration = exports.CancelMethods = void 0; var Configuration_js_1 = __webpack_require__(2); var TexConstants_js_1 = __webpack_require__(13); var SymbolMap_js_1 = __webpack_require__(3); var ParseUtil_js_1 = __webpack_require__(8); var EncloseConfiguration_js_1 = __webpack_require__(84); exports.CancelMethods = {}; exports.CancelMethods.Cancel = function (parser, name, notation) { var attr = parser.GetBrackets(name, ''); var math = parser.ParseArg(name); var def = ParseUtil_js_1.default.keyvalOptions(attr, EncloseConfiguration_js_1.ENCLOSE_OPTIONS); def['notation'] = notation; parser.Push(parser.create('node', 'menclose', [math], def)); }; exports.CancelMethods.CancelTo = function (parser, name) { var attr = parser.GetBrackets(name, ''); var value = parser.ParseArg(name); var math = parser.ParseArg(name); var def = ParseUtil_js_1.default.keyvalOptions(attr, EncloseConfiguration_js_1.ENCLOSE_OPTIONS); def['notation'] = [TexConstants_js_1.TexConstant.Notation.UPDIAGONALSTRIKE, TexConstants_js_1.TexConstant.Notation.UPDIAGONALARROW, TexConstants_js_1.TexConstant.Notation.NORTHEASTARROW].join(' '); value = parser.create('node', 'mpadded', [value], { depth: '-.1em', height: '+.1em', voffset: '.1em' }); parser.Push(parser.create('node', 'msup', [parser.create('node', 'menclose', [math], def), value])); }; new SymbolMap_js_1.CommandMap('cancel', { cancel: ['Cancel', TexConstants_js_1.TexConstant.Notation.UPDIAGONALSTRIKE], bcancel: ['Cancel', TexConstants_js_1.TexConstant.Notation.DOWNDIAGONALSTRIKE], xcancel: ['Cancel', TexConstants_js_1.TexConstant.Notation.UPDIAGONALSTRIKE + ' ' + TexConstants_js_1.TexConstant.Notation.DOWNDIAGONALSTRIKE], cancelto: 'CancelTo' }, exports.CancelMethods); exports.CancelConfiguration = Configuration_js_1.Configuration.create('cancel', { handler: { macro: ['cancel'] } }); //# sourceMappingURL=CancelConfiguration.js.map /***/ }), /* 146 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ColorConfiguration = void 0; var SymbolMap_js_1 = __webpack_require__(3); var Configuration_js_1 = __webpack_require__(2); var ColorMethods_js_1 = __webpack_require__(147); var ColorUtil_js_1 = __webpack_require__(148); new SymbolMap_js_1.CommandMap('color', { color: 'Color', textcolor: 'TextColor', definecolor: 'DefineColor', colorbox: 'ColorBox', fcolorbox: 'FColorBox' }, ColorMethods_js_1.ColorMethods); var config = function (_config, jax) { jax.parseOptions.packageData.set('color', { model: new ColorUtil_js_1.ColorModel() }); }; exports.ColorConfiguration = Configuration_js_1.Configuration.create('color', { handler: { macro: ['color'], }, options: { color: { padding: '5px', borderWidth: '2px' } }, config: config }); //# sourceMappingURL=ColorConfiguration.js.map /***/ }), /* 147 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ColorMethods = void 0; var NodeUtil_js_1 = __webpack_require__(7); var ParseUtil_js_1 = __webpack_require__(8); function padding(colorPadding) { var pad = "+" + colorPadding; var unit = colorPadding.replace(/^.*?([a-z]*)$/, '$1'); var pad2 = 2 * parseFloat(pad); return { width: "+" + pad2 + unit, height: pad, depth: pad, lspace: colorPadding, }; } exports.ColorMethods = {}; exports.ColorMethods.Color = function (parser, name) { var model = parser.GetBrackets(name, ''); var colorDef = parser.GetArgument(name); var colorModel = parser.configuration.packageData.get('color').model; var color = colorModel.getColor(model, colorDef); var style = parser.itemFactory.create('style') .setProperties({ styles: { mathcolor: color } }); parser.stack.env['color'] = color; parser.Push(style); }; exports.ColorMethods.TextColor = function (parser, name) { var model = parser.GetBrackets(name, ''); var colorDef = parser.GetArgument(name); var colorModel = parser.configuration.packageData.get('color').model; var color = colorModel.getColor(model, colorDef); var old = parser.stack.env['color']; parser.stack.env['color'] = color; var math = parser.ParseArg(name); if (old) { parser.stack.env['color'] = old; } else { delete parser.stack.env['color']; } var node = parser.create('node', 'mstyle', [math], { mathcolor: color }); parser.Push(node); }; exports.ColorMethods.DefineColor = function (parser, name) { var cname = parser.GetArgument(name); var model = parser.GetArgument(name); var def = parser.GetArgument(name); var colorModel = parser.configuration.packageData.get('color').model; colorModel.defineColor(model, cname, def); }; exports.ColorMethods.ColorBox = function (parser, name) { var cname = parser.GetArgument(name); var math = ParseUtil_js_1.default.internalMath(parser, parser.GetArgument(name)); var colorModel = parser.configuration.packageData.get('color').model; var node = parser.create('node', 'mpadded', math, { mathbackground: colorModel.getColor('named', cname) }); NodeUtil_js_1.default.setProperties(node, padding(parser.options.color.padding)); parser.Push(node); }; exports.ColorMethods.FColorBox = function (parser, name) { var fname = parser.GetArgument(name); var cname = parser.GetArgument(name); var math = ParseUtil_js_1.default.internalMath(parser, parser.GetArgument(name)); var options = parser.options.color; var colorModel = parser.configuration.packageData.get('color').model; var node = parser.create('node', 'mpadded', math, { mathbackground: colorModel.getColor('named', cname), style: "border: " + options.borderWidth + " solid " + colorModel.getColor('named', fname) }); NodeUtil_js_1.default.setProperties(node, padding(options.padding)); parser.Push(node); }; //# sourceMappingURL=ColorMethods.js.map /***/ }), /* 148 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ColorModel = void 0; var TexError_js_1 = __webpack_require__(4); var ColorConstants_js_1 = __webpack_require__(149); var ColorModelProcessors = new Map(); var ColorModel = (function () { function ColorModel() { this.userColors = new Map(); } ColorModel.prototype.normalizeColor = function (model, def) { if (!model || model === 'named') { return def; } if (ColorModelProcessors.has(model)) { var modelProcessor = ColorModelProcessors.get(model); return modelProcessor(def); } throw new TexError_js_1.default('UndefinedColorModel', 'Color model \'%1\' not defined', model); }; ColorModel.prototype.getColor = function (model, def) { if (!model || model === 'named') { return this.getColorByName(def); } return this.normalizeColor(model, def); }; ColorModel.prototype.getColorByName = function (name) { if (this.userColors.has(name)) { return this.userColors.get(name); } if (ColorConstants_js_1.COLORS.has(name)) { return ColorConstants_js_1.COLORS.get(name); } return name; }; ColorModel.prototype.defineColor = function (model, name, def) { var normalized = this.normalizeColor(model, def); this.userColors.set(name, normalized); }; return ColorModel; }()); exports.ColorModel = ColorModel; ColorModelProcessors.set('rgb', function (rgb) { var e_1, _a; var rgbParts = rgb.trim().split(/\s*,\s*/); var RGB = '#'; if (rgbParts.length !== 3) { throw new TexError_js_1.default('ModelArg1', 'Color values for the %1 model require 3 numbers', 'rgb'); } try { for (var rgbParts_1 = __values(rgbParts), rgbParts_1_1 = rgbParts_1.next(); !rgbParts_1_1.done; rgbParts_1_1 = rgbParts_1.next()) { var rgbPart = rgbParts_1_1.value; if (!rgbPart.match(/^(\d+(\.\d*)?|\.\d+)$/)) { throw new TexError_js_1.default('InvalidDecimalNumber', 'Invalid decimal number'); } var n = parseFloat(rgbPart); if (n < 0 || n > 1) { throw new TexError_js_1.default('ModelArg2', 'Color values for the %1 model must be between %2 and %3', 'rgb', '0', '1'); } var pn = Math.floor(n * 255).toString(16); if (pn.length < 2) { pn = '0' + pn; } RGB += pn; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (rgbParts_1_1 && !rgbParts_1_1.done && (_a = rgbParts_1.return)) _a.call(rgbParts_1); } finally { if (e_1) throw e_1.error; } } return RGB; }); ColorModelProcessors.set('RGB', function (rgb) { var e_2, _a; var rgbParts = rgb.trim().split(/\s*,\s*/); var RGB = '#'; if (rgbParts.length !== 3) { throw new TexError_js_1.default('ModelArg1', 'Color values for the %1 model require 3 numbers', 'RGB'); } try { for (var rgbParts_2 = __values(rgbParts), rgbParts_2_1 = rgbParts_2.next(); !rgbParts_2_1.done; rgbParts_2_1 = rgbParts_2.next()) { var rgbPart = rgbParts_2_1.value; if (!rgbPart.match(/^\d+$/)) { throw new TexError_js_1.default('InvalidNumber', 'Invalid number'); } var n = parseInt(rgbPart); if (n > 255) { throw new TexError_js_1.default('ModelArg2', 'Color values for the %1 model must be between %2 and %3', 'RGB', '0', '255'); } var pn = n.toString(16); if (pn.length < 2) { pn = '0' + pn; } RGB += pn; } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (rgbParts_2_1 && !rgbParts_2_1.done && (_a = rgbParts_2.return)) _a.call(rgbParts_2); } finally { if (e_2) throw e_2.error; } } return RGB; }); ColorModelProcessors.set('gray', function (gray) { if (!gray.match(/^\s*(\d+(\.\d*)?|\.\d+)\s*$/)) { throw new TexError_js_1.default('InvalidDecimalNumber', 'Invalid decimal number'); } var n = parseFloat(gray); if (n < 0 || n > 1) { throw new TexError_js_1.default('ModelArg2', 'Color values for the %1 model must be between %2 and %3', 'gray', '0', '1'); } var pn = Math.floor(n * 255).toString(16); if (pn.length < 2) { pn = '0' + pn; } return "#" + pn + pn + pn; }); //# sourceMappingURL=ColorUtil.js.map /***/ }), /* 149 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.COLORS = void 0; exports.COLORS = new Map([ ['Apricot', '#FBB982'], ['Aquamarine', '#00B5BE'], ['Bittersweet', '#C04F17'], ['Black', '#221E1F'], ['Blue', '#2D2F92'], ['BlueGreen', '#00B3B8'], ['BlueViolet', '#473992'], ['BrickRed', '#B6321C'], ['Brown', '#792500'], ['BurntOrange', '#F7921D'], ['CadetBlue', '#74729A'], ['CarnationPink', '#F282B4'], ['Cerulean', '#00A2E3'], ['CornflowerBlue', '#41B0E4'], ['Cyan', '#00AEEF'], ['Dandelion', '#FDBC42'], ['DarkOrchid', '#A4538A'], ['Emerald', '#00A99D'], ['ForestGreen', '#009B55'], ['Fuchsia', '#8C368C'], ['Goldenrod', '#FFDF42'], ['Gray', '#949698'], ['Green', '#00A64F'], ['GreenYellow', '#DFE674'], ['JungleGreen', '#00A99A'], ['Lavender', '#F49EC4'], ['LimeGreen', '#8DC73E'], ['Magenta', '#EC008C'], ['Mahogany', '#A9341F'], ['Maroon', '#AF3235'], ['Melon', '#F89E7B'], ['MidnightBlue', '#006795'], ['Mulberry', '#A93C93'], ['NavyBlue', '#006EB8'], ['OliveGreen', '#3C8031'], ['Orange', '#F58137'], ['OrangeRed', '#ED135A'], ['Orchid', '#AF72B0'], ['Peach', '#F7965A'], ['Periwinkle', '#7977B8'], ['PineGreen', '#008B72'], ['Plum', '#92268F'], ['ProcessBlue', '#00B0F0'], ['Purple', '#99479B'], ['RawSienna', '#974006'], ['Red', '#ED1B23'], ['RedOrange', '#F26035'], ['RedViolet', '#A1246B'], ['Rhodamine', '#EF559F'], ['RoyalBlue', '#0071BC'], ['RoyalPurple', '#613F99'], ['RubineRed', '#ED017D'], ['Salmon', '#F69289'], ['SeaGreen', '#3FBC9D'], ['Sepia', '#671800'], ['SkyBlue', '#46C5DD'], ['SpringGreen', '#C6DC67'], ['Tan', '#DA9D76'], ['TealBlue', '#00AEB3'], ['Thistle', '#D883B7'], ['Turquoise', '#00B4CE'], ['Violet', '#58429B'], ['VioletRed', '#EF58A0'], ['White', '#FFFFFF'], ['WildStrawberry', '#EE2967'], ['Yellow', '#FFF200'], ['YellowGreen', '#98CC70'], ['YellowOrange', '#FAA21A'], ]); //# sourceMappingURL=ColorConstants.js.map /***/ }), /* 150 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ColorConfiguration = exports.ColorV2Methods = void 0; var SymbolMap_js_1 = __webpack_require__(3); var Configuration_js_1 = __webpack_require__(2); exports.ColorV2Methods = { Color: function (parser, name) { var color = parser.GetArgument(name); var old = parser.stack.env['color']; parser.stack.env['color'] = color; var math = parser.ParseArg(name); if (old) { parser.stack.env['color'] = old; } else { delete parser.stack.env['color']; } var node = parser.create('node', 'mstyle', [math], { mathcolor: color }); parser.Push(node); } }; new SymbolMap_js_1.CommandMap('colorv2', { color: 'Color' }, exports.ColorV2Methods); exports.ColorConfiguration = Configuration_js_1.Configuration.create('colorv2', { handler: { macro: ['colorv2'] } }); //# sourceMappingURL=ColorV2Configuration.js.map /***/ }), /* 151 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConfigMacrosConfiguration = void 0; var Configuration_js_1 = __webpack_require__(2); var Options_js_1 = __webpack_require__(6); var SymbolMap_js_1 = __webpack_require__(3); var Symbol_js_1 = __webpack_require__(28); var NewcommandMethods_js_1 = __webpack_require__(85); var MACROSMAP = 'configmacros-map'; function configmacrosInit(config) { new SymbolMap_js_1.CommandMap(MACROSMAP, {}, {}); config.append(Configuration_js_1.Configuration.local({ handler: { macro: [MACROSMAP] }, priority: 3 })); } function configmacrosConfig(_config, jax) { var e_1, _a; var macrosMap = jax.parseOptions.handlers.retrieve(MACROSMAP); var macros = jax.parseOptions.options.macros; try { for (var _b = __values(Object.keys(macros)), _c = _b.next(); !_c.done; _c = _b.next()) { var cs = _c.value; var def = (typeof macros[cs] === 'string' ? [macros[cs]] : macros[cs]); var macro = Array.isArray(def[2]) ? new Symbol_js_1.Macro(cs, NewcommandMethods_js_1.default.MacroWithTemplate, def.slice(0, 2).concat(def[2])) : new Symbol_js_1.Macro(cs, NewcommandMethods_js_1.default.Macro, def); macrosMap.add(cs, macro); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } exports.ConfigMacrosConfiguration = Configuration_js_1.Configuration.create('configmacros', { init: configmacrosInit, config: configmacrosConfig, options: { macros: Options_js_1.expandable({}) } }); //# sourceMappingURL=ConfigMacrosConfiguration.js.map /***/ }), /* 152 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExtpfeilConfiguration = exports.ExtpfeilMethods = void 0; var Configuration_js_1 = __webpack_require__(2); var SymbolMap_js_1 = __webpack_require__(3); var AmsMethods_js_1 = __webpack_require__(34); var NewcommandUtil_js_1 = __webpack_require__(44); var NewcommandConfiguration_js_1 = __webpack_require__(86); var TexError_js_1 = __webpack_require__(4); exports.ExtpfeilMethods = {}; exports.ExtpfeilMethods.xArrow = AmsMethods_js_1.AmsMethods.xArrow; exports.ExtpfeilMethods.NewExtArrow = function (parser, name) { var cs = parser.GetArgument(name); var space = parser.GetArgument(name); var chr = parser.GetArgument(name); if (!cs.match(/^\\([a-z]+|.)$/i)) { throw new TexError_js_1.default('NewextarrowArg1', 'First argument to %1 must be a control sequence name', name); } if (!space.match(/^(\d+),(\d+)$/)) { throw new TexError_js_1.default('NewextarrowArg2', 'Second argument to %1 must be two integers separated by a comma', name); } if (!chr.match(/^(\d+|0x[0-9A-F]+)$/i)) { throw new TexError_js_1.default('NewextarrowArg3', 'Third argument to %1 must be a unicode character number', name); } cs = cs.substr(1); var spaces = space.split(','); NewcommandUtil_js_1.default.addMacro(parser, cs, exports.ExtpfeilMethods.xArrow, [parseInt(chr), parseInt(spaces[0]), parseInt(spaces[1])]); }; new SymbolMap_js_1.CommandMap('extpfeil', { xtwoheadrightarrow: ['xArrow', 0x21A0, 12, 16], xtwoheadleftarrow: ['xArrow', 0x219E, 17, 13], xmapsto: ['xArrow', 0x21A6, 6, 7], xlongequal: ['xArrow', 0x003D, 7, 7], xtofrom: ['xArrow', 0x21C4, 12, 12], Newextarrow: 'NewExtArrow' }, exports.ExtpfeilMethods); var init = function (config) { NewcommandConfiguration_js_1.NewcommandConfiguration.init(config); }; exports.ExtpfeilConfiguration = Configuration_js_1.Configuration.create('extpfeil', { handler: { macro: ['extpfeil'] }, init: init }); //# sourceMappingURL=ExtpfeilConfiguration.js.map /***/ }), /* 153 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.BeginEnvItem = void 0; var TexError_js_1 = __webpack_require__(4); var StackItem_js_1 = __webpack_require__(23); var BeginEnvItem = (function (_super) { __extends(BeginEnvItem, _super); function BeginEnvItem() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(BeginEnvItem.prototype, "kind", { get: function () { return 'beginEnv'; }, enumerable: false, configurable: true }); Object.defineProperty(BeginEnvItem.prototype, "isOpen", { get: function () { return true; }, enumerable: false, configurable: true }); BeginEnvItem.prototype.checkItem = function (item) { if (item.isKind('end')) { if (item.getName() !== this.getName()) { throw new TexError_js_1.default('EnvBadEnd', '\\begin{%1} ended with \\end{%2}', this.getName(), item.getName()); } return [[this.factory.create('mml', this.toMml())], true]; } if (item.isKind('stop')) { throw new TexError_js_1.default('EnvMissingEnd', 'Missing \\end{%1}', this.getName()); } return _super.prototype.checkItem.call(this, item); }; return BeginEnvItem; }(StackItem_js_1.BaseItem)); exports.BeginEnvItem = BeginEnvItem; //# sourceMappingURL=NewcommandItems.js.map /***/ }), /* 154 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HtmlConfiguration = void 0; var Configuration_js_1 = __webpack_require__(2); var SymbolMap_js_1 = __webpack_require__(3); var HtmlMethods_js_1 = __webpack_require__(155); new SymbolMap_js_1.CommandMap('html_macros', { href: 'Href', 'class': 'Class', style: 'Style', cssId: 'Id' }, HtmlMethods_js_1.default); exports.HtmlConfiguration = Configuration_js_1.Configuration.create('html', { handler: { macro: ['html_macros'] } }); //# sourceMappingURL=HtmlConfiguration.js.map /***/ }), /* 155 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var NodeUtil_js_1 = __webpack_require__(7); var HtmlMethods = {}; HtmlMethods.Href = function (parser, name) { var url = parser.GetArgument(name); var arg = GetArgumentMML(parser, name); NodeUtil_js_1.default.setAttribute(arg, 'href', url); parser.Push(arg); }; HtmlMethods.Class = function (parser, name) { var CLASS = parser.GetArgument(name); var arg = GetArgumentMML(parser, name); var oldClass = NodeUtil_js_1.default.getAttribute(arg, 'class'); if (oldClass) { CLASS = oldClass + ' ' + CLASS; } NodeUtil_js_1.default.setAttribute(arg, 'class', CLASS); parser.Push(arg); }; HtmlMethods.Style = function (parser, name) { var style = parser.GetArgument(name); var arg = GetArgumentMML(parser, name); var oldStyle = NodeUtil_js_1.default.getAttribute(arg, 'style'); if (oldStyle) { if (style.charAt(style.length - 1) !== ';') { style += ';'; } style = oldStyle + ' ' + style; } NodeUtil_js_1.default.setAttribute(arg, 'style', style); parser.Push(arg); }; HtmlMethods.Id = function (parser, name) { var ID = parser.GetArgument(name); var arg = GetArgumentMML(parser, name); NodeUtil_js_1.default.setAttribute(arg, 'id', ID); parser.Push(arg); }; var GetArgumentMML = function (parser, name) { var arg = parser.ParseArg(name); if (!NodeUtil_js_1.default.isInferred(arg)) { return arg; } var children = NodeUtil_js_1.default.getChildren(arg); if (children.length === 1) { return children[0]; } var mrow = parser.create('node', 'mrow'); NodeUtil_js_1.default.copyChildren(arg, mrow); NodeUtil_js_1.default.copyAttributes(arg, mrow); return mrow; }; exports.default = HtmlMethods; //# sourceMappingURL=HtmlMethods.js.map /***/ }), /* 156 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MhchemConfiguration = void 0; var Configuration_js_1 = __webpack_require__(2); var SymbolMap_js_1 = __webpack_require__(3); var TexError_js_1 = __webpack_require__(4); var BaseMethods_js_1 = __webpack_require__(17); var AmsMethods_js_1 = __webpack_require__(34); var mhchem_parser_js_1 = __webpack_require__(282); var MhchemMethods = {}; MhchemMethods.Macro = BaseMethods_js_1.default.Macro; MhchemMethods.xArrow = AmsMethods_js_1.AmsMethods.xArrow; MhchemMethods.Machine = function (parser, name, machine) { try { var arg = parser.GetArgument(name); var data = mhchem_parser_js_1.mhchemParser.go(arg, machine); var tex = mhchem_parser_js_1.texify.go(data); parser.string = tex + parser.string.substr(parser.i); parser.i = 0; } catch (err) { throw new TexError_js_1.default(err[0], err[1], err.slice(2)); } }; new SymbolMap_js_1.CommandMap('mhchem', { ce: ['Machine', 'ce'], pu: ['Machine', 'pu'], longrightleftharpoons: ['Macro', '\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}'], longRightleftharpoons: ['Macro', '\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{\\leftharpoondown}}'], longLeftrightharpoons: ['Macro', '\\stackrel{\\textstyle\\vphantom{{-}}{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}'], longleftrightarrows: ['Macro', '\\stackrel{\\longrightarrow}{\\smash{\\longleftarrow}\\Rule{0px}{.25em}{0px}}'], tripledash: ['Macro', '\\vphantom{-}\\raise2mu{\\kern2mu\\tiny\\text{-}\\kern1mu\\text{-}\\kern1mu\\text{-}\\kern2mu}'], xrightarrow: ['xArrow', 0x2192, 5, 6], xleftarrow: ['xArrow', 0x2190, 7, 3], xleftrightarrow: ['xArrow', 0x2194, 6, 6], xrightleftharpoons: ['xArrow', 0x21CC, 5, 7], xRightleftharpoons: ['xArrow', 0x21CC, 5, 7], xLeftrightharpoons: ['xArrow', 0x21CC, 5, 7] }, MhchemMethods); exports.MhchemConfiguration = Configuration_js_1.Configuration.create('mhchem', { handler: { macro: ['mhchem'] } }); //# sourceMappingURL=MhchemConfiguration.js.map /***/ }), /* 157 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NoErrorsConfiguration = void 0; var Configuration_js_1 = __webpack_require__(2); function noErrors(factory, message, _id, expr) { var mtext = factory.create('token', 'mtext', {}, expr.replace(/\n/g, ' ')); var error = factory.create('node', 'merror', [mtext], { 'data-mjx-error': message, title: message }); return error; } exports.NoErrorsConfiguration = Configuration_js_1.Configuration.create('noerrors', { nodes: { 'error': noErrors } }); //# sourceMappingURL=NoErrorsConfiguration.js.map /***/ }), /* 158 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.NoUndefinedConfiguration = void 0; var Configuration_js_1 = __webpack_require__(2); function noUndefined(parser, name) { var e_1, _a; var textNode = parser.create('text', '\\' + name); var options = parser.options.noundefined || {}; var def = {}; try { for (var _b = __values(['color', 'background', 'size']), _c = _b.next(); !_c.done; _c = _b.next()) { var id = _c.value; if (options[id]) { def['math' + id] = options[id]; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } parser.Push(parser.create('node', 'mtext', [], def, textNode)); } exports.NoUndefinedConfiguration = Configuration_js_1.Configuration.create('noundefined', { fallback: { macro: noUndefined }, options: { noundefined: { color: 'red', background: '', size: '' } }, priority: 3 }); //# sourceMappingURL=NoUndefinedConfiguration.js.map /***/ }), /* 159 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.PhysicsConfiguration = void 0; var Configuration_js_1 = __webpack_require__(2); var PhysicsItems_js_1 = __webpack_require__(160); __webpack_require__(283); exports.PhysicsConfiguration = Configuration_js_1.Configuration.create('physics', { handler: { macro: [ 'Physics-automatic-bracing-macros', 'Physics-vector-macros', 'Physics-vector-chars', 'Physics-derivative-macros', 'Physics-expressions-macros', 'Physics-quick-quad-macros', 'Physics-bra-ket-macros', 'Physics-matrix-macros' ], character: ['Physics-characters'], environment: ['Physics-aux-envs'] }, items: (_a = {}, _a[PhysicsItems_js_1.AutoOpen.prototype.kind] = PhysicsItems_js_1.AutoOpen, _a) }); //# sourceMappingURL=PhysicsConfiguration.js.map /***/ }), /* 160 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.AutoOpen = void 0; var StackItem_js_1 = __webpack_require__(23); var ParseUtil_js_1 = __webpack_require__(8); var TexParser_js_1 = __webpack_require__(12); var AutoOpen = (function (_super) { __extends(AutoOpen, _super); function AutoOpen() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(AutoOpen.prototype, "kind", { get: function () { return 'auto open'; }, enumerable: false, configurable: true }); Object.defineProperty(AutoOpen.prototype, "isOpen", { get: function () { return true; }, enumerable: false, configurable: true }); AutoOpen.prototype.toMml = function () { var parser = this.factory.configuration.parser; var right = this.getProperty('right'); if (this.getProperty('smash')) { var mml_1 = _super.prototype.toMml.call(this); var smash = parser.create('node', 'mpadded', [mml_1], { height: 0, depth: 0 }); this.Clear(); this.Push(parser.create('node', 'TeXAtom', [smash])); } if (right) { this.Push(new TexParser_js_1.default(right, parser.stack.env, parser.configuration).mml()); } var mml = _super.prototype.toMml.call(this); return ParseUtil_js_1.default.fenced(this.factory.configuration, this.getProperty('open'), mml, this.getProperty('close'), this.getProperty('big')); }; AutoOpen.prototype.checkItem = function (item) { var close = item.getProperty('autoclose'); if (close && close === this.getProperty('close')) { if (this.getProperty('ignore')) { this.Clear(); return [[], true]; } return [[this.toMml()], true]; } return _super.prototype.checkItem.call(this, item); }; return AutoOpen; }(StackItem_js_1.BaseItem)); exports.AutoOpen = AutoOpen; //# sourceMappingURL=PhysicsItems.js.map /***/ }), /* 161 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); var BaseMethods_js_1 = __webpack_require__(17); var TexParser_js_1 = __webpack_require__(12); var TexError_js_1 = __webpack_require__(4); var MmlNode_js_1 = __webpack_require__(0); var ParseUtil_js_1 = __webpack_require__(8); var NodeUtil_js_1 = __webpack_require__(7); var NodeFactory_js_1 = __webpack_require__(41); var PhysicsMethods = {}; var pairs = { '(': ')', '[': ']', '{': '}', '|': '|', }; var biggs = /^(b|B)i(g{1,2})$/; PhysicsMethods.Quantity = function (parser, name, open, close, arg, named, variant) { if (open === void 0) { open = '('; } if (close === void 0) { close = ')'; } if (arg === void 0) { arg = false; } if (named === void 0) { named = ''; } if (variant === void 0) { variant = ''; } var star = arg ? parser.GetStar() : false; var next = parser.GetNext(); var position = parser.i; var big = null; if (next === '\\') { parser.i++; big = parser.GetCS(); if (!big.match(biggs)) { var empty = parser.create('node', 'mrow'); parser.Push(ParseUtil_js_1.default.fenced(parser.configuration, open, empty, close)); parser.i = position; return; } next = parser.GetNext(); } var right = pairs[next]; if (arg && next !== '{') { throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', parser.currentCS); } if (!right) { var empty = parser.create('node', 'mrow'); parser.Push(ParseUtil_js_1.default.fenced(parser.configuration, open, empty, close)); parser.i = position; return; } if (named) { var mml = parser.create('token', 'mi', { texClass: MmlNode_js_1.TEXCLASS.OP }, named); if (variant) { NodeUtil_js_1.default.setAttribute(mml, 'mathvariant', variant); } parser.Push(parser.itemFactory.create('fn', mml)); } if (next === '{') { var argument = parser.GetArgument(name); next = arg ? open : '\\{'; right = arg ? close : '\\}'; argument = star ? next + ' ' + argument + ' ' + right : (big ? '\\' + big + 'l' + next + ' ' + argument + ' ' + '\\' + big + 'r' + right : '\\left' + next + ' ' + argument + ' ' + '\\right' + right); parser.Push(new TexParser_js_1.default(argument, parser.stack.env, parser.configuration).mml()); return; } if (arg) { next = open; right = close; } parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: next, close: right, big: big })); }; PhysicsMethods.Eval = function (parser, name) { var star = parser.GetStar(); var next = parser.GetNext(); if (next === '{') { var arg = parser.GetArgument(name); var replace = '\\left. ' + (star ? '\\smash{' + arg + '}' : arg) + ' ' + '\\vphantom{\\int}\\right|'; parser.string = parser.string.slice(0, parser.i) + replace + parser.string.slice(parser.i); return; } if (next === '(' || next === '[') { parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: next, close: '|', smash: star, right: '\\vphantom{\\int}' })); return; } throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', parser.currentCS); }; PhysicsMethods.Commutator = function (parser, name, open, close) { if (open === void 0) { open = '['; } if (close === void 0) { close = ']'; } var star = parser.GetStar(); var next = parser.GetNext(); var big = null; if (next === '\\') { parser.i++; big = parser.GetCS(); if (!big.match(biggs)) { throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', parser.currentCS); } next = parser.GetNext(); } if (next !== '{') { throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', parser.currentCS); } var arg1 = parser.GetArgument(name); var arg2 = parser.GetArgument(name); var argument = arg1 + ',' + arg2; argument = star ? open + ' ' + argument + ' ' + close : (big ? '\\' + big + 'l' + open + ' ' + argument + ' ' + '\\' + big + 'r' + close : '\\left' + open + ' ' + argument + ' ' + '\\right' + close); parser.Push(new TexParser_js_1.default(argument, parser.stack.env, parser.configuration).mml()); }; var latinCap = [0x41, 0x5A]; var latinSmall = [0x61, 0x7A]; var greekCap = [0x391, 0x3A9]; var greekSmall = [0x3B1, 0x3C9]; var digits = [0x30, 0x39]; function inRange(value, range) { return (value >= range[0] && value <= range[1]); } function createVectorToken(factory, kind, def, text) { var parser = factory.configuration.parser; var token = NodeFactory_js_1.NodeFactory.createToken(factory, kind, def, text); var code = text.codePointAt(0); if (text.length === 1 && !parser.stack.env.font && parser.stack.env.vectorFont && (inRange(code, latinCap) || inRange(code, latinSmall) || inRange(code, greekCap) || inRange(code, digits) || (inRange(code, greekSmall) && parser.stack.env.vectorStar) || NodeUtil_js_1.default.getAttribute(token, 'accent'))) { NodeUtil_js_1.default.setAttribute(token, 'mathvariant', parser.stack.env.vectorFont); } return token; } PhysicsMethods.VectorBold = function (parser, name) { var star = parser.GetStar(); var arg = parser.GetArgument(name); var oldToken = parser.configuration.nodeFactory.get('token'); var oldFont = parser.stack.env.font; delete parser.stack.env.font; parser.configuration.nodeFactory.set('token', createVectorToken); parser.stack.env.vectorFont = star ? 'bold-italic' : 'bold'; parser.stack.env.vectorStar = star; var node = new TexParser_js_1.default(arg, parser.stack.env, parser.configuration).mml(); if (oldFont) { parser.stack.env.font = oldFont; } delete parser.stack.env.vectorFont; delete parser.stack.env.vectorStar; parser.configuration.nodeFactory.set('token', oldToken); parser.Push(node); }; PhysicsMethods.StarMacro = function (parser, name, argcount) { var parts = []; for (var _i = 3; _i < arguments.length; _i++) { parts[_i - 3] = arguments[_i]; } var star = parser.GetStar(); var args = []; if (argcount) { for (var i = args.length; i < argcount; i++) { args.push(parser.GetArgument(name)); } } var macro = parts.join(star ? '*' : ''); macro = ParseUtil_js_1.default.substituteArgs(parser, args, macro); parser.string = ParseUtil_js_1.default.addArgs(parser, macro, parser.string.slice(parser.i)); parser.i = 0; if (++parser.macroCount > parser.configuration.options['maxMacros']) { throw new TexError_js_1.default('MaxMacroSub1', 'MathJax maximum macro substitution count exceeded; ' + 'is there a recursive macro call?'); } }; var vectorApplication = function (parser, kind, name, operator, fences) { var op = new TexParser_js_1.default(operator, parser.stack.env, parser.configuration).mml(); parser.Push(parser.itemFactory.create(kind, op)); var left = parser.GetNext(); var right = pairs[left]; if (!right) { return; } var lfence = '', rfence = '', arg = ''; var enlarge = fences.indexOf(left) !== -1; if (left === '{') { arg = parser.GetArgument(name); lfence = enlarge ? '\\left\\{' : ''; rfence = enlarge ? '\\right\\}' : ''; var macro = lfence + ' ' + arg + ' ' + rfence; parser.string = macro + parser.string.slice(parser.i); parser.i = 0; return; } if (!enlarge) { return; } parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: left, close: right })); }; PhysicsMethods.OperatorApplication = function (parser, name, operator) { var fences = []; for (var _i = 3; _i < arguments.length; _i++) { fences[_i - 3] = arguments[_i]; } vectorApplication(parser, 'fn', name, operator, fences); }; PhysicsMethods.VectorOperator = function (parser, name, operator) { var fences = []; for (var _i = 3; _i < arguments.length; _i++) { fences[_i - 3] = arguments[_i]; } vectorApplication(parser, 'mml', name, operator, fences); }; PhysicsMethods.Expression = function (parser, name, opt, id) { if (opt === void 0) { opt = true; } if (id === void 0) { id = ''; } id = id || name.slice(1); var exp = opt ? parser.GetBrackets(name) : null; var mml = parser.create('token', 'mi', { texClass: MmlNode_js_1.TEXCLASS.OP }, id); if (exp) { var sup = new TexParser_js_1.default(exp, parser.stack.env, parser.configuration).mml(); mml = parser.create('node', 'msup', [mml, sup]); } parser.Push(parser.itemFactory.create('fn', mml)); if (parser.GetNext() !== '(') { return; } parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: '(', close: ')' })); }; PhysicsMethods.Qqtext = function (parser, name, text) { var star = parser.GetStar(); var arg = text ? text : parser.GetArgument(name); var replace = (star ? '' : '\\quad') + '\\text{' + arg + '}\\quad '; parser.string = parser.string.slice(0, parser.i) + replace + parser.string.slice(parser.i); }; PhysicsMethods.Differential = function (parser, name, op) { var optArg = parser.GetBrackets(name); var power = optArg != null ? '^{' + optArg + '}' : ' '; var parens = parser.GetNext() === '('; var braces = parser.GetNext() === '{'; var macro = op + power; if (!(parens || braces)) { macro += parser.GetArgument(name, true) || ''; var mml = new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml(); parser.Push(mml); return; } if (braces) { macro += parser.GetArgument(name); var mml = new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml(); parser.Push(parser.create('node', 'TeXAtom', [mml], { texClass: MmlNode_js_1.TEXCLASS.OP })); return; } parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: '(', close: ')' })); }; PhysicsMethods.Derivative = function (parser, name, argMax, op) { var star = parser.GetStar(); var optArg = parser.GetBrackets(name); var argCounter = 1; var args = []; args.push(parser.GetArgument(name)); while (parser.GetNext() === '{' && argCounter < argMax) { args.push(parser.GetArgument(name)); argCounter++; } var ignore = false; var power1 = ' '; var power2 = ' '; if (argMax > 2 && args.length > 2) { power1 = '^{' + (args.length - 1) + '}'; ignore = true; } else if (optArg != null) { if (argMax > 2 && args.length > 1) { ignore = true; } power1 = '^{' + optArg + '}'; power2 = power1; } var frac = star ? '\\flatfrac' : '\\frac'; var first = args.length > 1 ? args[0] : ''; var second = args.length > 1 ? args[1] : args[0]; var rest = ''; for (var i = 2, arg = void 0; arg = args[i]; i++) { rest += op + ' ' + arg; } var macro = frac + '{' + op + power1 + first + '}' + '{' + op + ' ' + second + power2 + ' ' + rest + '}'; parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); if (parser.GetNext() === '(') { parser.i++; parser.Push(parser.itemFactory.create('auto open') .setProperties({ open: '(', close: ')', ignore: ignore })); } }; PhysicsMethods.Bra = function (parser, name) { var starBra = parser.GetStar(); var bra = parser.GetArgument(name); var ket = ''; var hasKet = false; var starKet = false; if (parser.GetNext() === '\\') { var saveI = parser.i; parser.i++; var cs = parser.GetCS(); var symbol = parser.lookup('macro', cs); if (symbol && symbol.symbol === 'ket') { hasKet = true; saveI = parser.i; starKet = parser.GetStar(); if (parser.GetNext() === '{') { ket = parser.GetArgument(cs, true); } else { parser.i = saveI; starKet = false; } } else { parser.i = saveI; } } var macro = ''; if (hasKet) { macro = (starBra || starKet) ? "\\langle{" + bra + "}\\vert{" + ket + "}\\rangle" : "\\left\\langle{" + bra + "}\\middle\\vert{" + ket + "}\\right\\rangle"; } else { macro = (starBra || starKet) ? "\\langle{" + bra + "}\\vert" : "\\left\\langle{" + bra + "}\\right\\vert{" + ket + "}"; } parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.Ket = function (parser, name) { var star = parser.GetStar(); var ket = parser.GetArgument(name); var macro = star ? "\\vert{" + ket + "}\\rangle" : "\\left\\vert{" + ket + "}\\right\\rangle"; parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.BraKet = function (parser, name) { var star = parser.GetStar(); var bra = parser.GetArgument(name); var ket = null; if (parser.GetNext() === '{') { ket = parser.GetArgument(name, true); } var macro = ''; if (ket == null) { macro = star ? "\\langle{" + bra + "}\\vert{" + bra + "}\\rangle" : "\\left\\langle{" + bra + "}\\middle\\vert{" + bra + "}\\right\\rangle"; } else { macro = star ? "\\langle{" + bra + "}\\vert{" + ket + "}\\rangle" : "\\left\\langle{" + bra + "}\\middle\\vert{" + ket + "}\\right\\rangle"; } parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.KetBra = function (parser, name) { var star = parser.GetStar(); var ket = parser.GetArgument(name); var bra = null; if (parser.GetNext() === '{') { bra = parser.GetArgument(name, true); } var macro = ''; if (bra == null) { macro = star ? "\\vert{" + ket + "}\\rangle\\!\\langle{" + ket + "}\\vert" : "\\left\\vert{" + ket + "}\\middle\\rangle\\!\\middle\\langle{" + ket + "}\\right\\vert"; } else { macro = star ? "\\vert{" + ket + "}\\rangle\\!\\langle{" + bra + "}\\vert" : "\\left\\vert{" + ket + "}\\middle\\rangle\\!\\middle\\langle{" + bra + "}\\right\\vert"; } parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; function outputBraket(_a, star1, star2) { var _b = __read(_a, 3), arg1 = _b[0], arg2 = _b[1], arg3 = _b[2]; return (star1 && star2) ? "\\left\\langle{" + arg1 + "}\\middle\\vert{" + arg2 + "}\\middle\\vert{" + arg3 + "}\\right\\rangle" : (star1 ? "\\langle{" + arg1 + "}\\vert{" + arg2 + "}\\vert{" + arg3 + "}\\rangle" : "\\left\\langle{" + arg1 + "}\\right\\vert{" + arg2 + "}\\left\\vert{" + arg3 + "}\\right\\rangle"); } PhysicsMethods.Expectation = function (parser, name) { var star1 = parser.GetStar(); var star2 = star1 && parser.GetStar(); var arg1 = parser.GetArgument(name); var arg2 = null; if (parser.GetNext() === '{') { arg2 = parser.GetArgument(name, true); } var macro = (arg1 && arg2) ? outputBraket([arg2, arg1, arg2], star1, star2) : (star1 ? "\\langle {" + arg1 + "} \\rangle" : "\\left\\langle {" + arg1 + "} \\right\\rangle"); parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.MatrixElement = function (parser, name) { var star1 = parser.GetStar(); var star2 = star1 && parser.GetStar(); var arg1 = parser.GetArgument(name); var arg2 = parser.GetArgument(name); var arg3 = parser.GetArgument(name); var macro = outputBraket([arg1, arg2, arg3], star1, star2); parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.MatrixQuantity = function (parser, name, small) { var star = parser.GetStar(); var next = parser.GetNext(); var array = small ? 'smallmatrix' : 'array'; var arg = ''; var open = ''; var close = ''; switch (next) { case '{': arg = parser.GetArgument(name); break; case '(': parser.i++; open = star ? '\\lgroup' : '('; close = star ? '\\rgroup' : ')'; arg = parser.GetUpTo(name, ')'); break; case '[': parser.i++; open = '['; close = ']'; arg = parser.GetUpTo(name, ']'); break; case '|': parser.i++; open = '|'; close = '|'; arg = parser.GetUpTo(name, '|'); break; default: open = '('; close = ')'; break; } var macro = (open ? '\\left' : '') + open + '\\begin{' + array + '}{} ' + arg + '\\end{' + array + '}' + (open ? '\\right' : '') + close; parser.Push(new TexParser_js_1.default(macro, parser.stack.env, parser.configuration).mml()); }; PhysicsMethods.IdentityMatrix = function (parser, name) { var arg = parser.GetArgument(name); var size = parseInt(arg, 10); if (isNaN(size)) { throw new TexError_js_1.default('InvalidNumber', 'Invalid number'); } if (size <= 1) { parser.string = '1' + parser.string.slice(parser.i); parser.i = 0; return; } var zeros = Array(size).fill('0'); var columns = []; for (var i = 0; i < size; i++) { var row = zeros.slice(); row[i] = '1'; columns.push(row.join(' & ')); } parser.string = columns.join('\\\\ ') + parser.string.slice(parser.i); parser.i = 0; }; PhysicsMethods.XMatrix = function (parser, name) { var star = parser.GetStar(); var arg1 = parser.GetArgument(name); var arg2 = parser.GetArgument(name); var arg3 = parser.GetArgument(name); var n = parseInt(arg2, 10); var m = parseInt(arg3, 10); if (isNaN(n) || isNaN(m) || m.toString() !== arg3 || n.toString() !== arg2) { throw new TexError_js_1.default('InvalidNumber', 'Invalid number'); } n = n < 1 ? 1 : n; m = m < 1 ? 1 : m; if (!star) { var row = Array(m).fill(arg1).join(' & '); var matrix_1 = Array(n).fill(row).join('\\\\ '); parser.string = matrix_1 + parser.string.slice(parser.i); parser.i = 0; return; } var matrix = ''; if (n === 1 && m === 1) { matrix = arg1; } else if (n === 1) { var row = []; for (var i = 1; i <= m; i++) { row.push(arg1 + "_{" + i + "}"); } matrix = row.join(' & '); } else if (m === 1) { var row = []; for (var i = 1; i <= n; i++) { row.push(arg1 + "_{" + i + "}"); } matrix = row.join('\\\\ '); } else { var rows = []; for (var i = 1; i <= n; i++) { var row = []; for (var j = 1; j <= m; j++) { row.push(arg1 + "_{{" + i + "}{" + j + "}}"); } rows.push(row.join(' & ')); } matrix = rows.join('\\\\ '); } parser.string = matrix + parser.string.slice(parser.i); parser.i = 0; return; }; PhysicsMethods.PauliMatrix = function (parser, name) { var arg = parser.GetArgument(name); var matrix = arg.slice(1); switch (arg[0]) { case '0': matrix += ' 1 & 0\\\\ 0 & 1'; break; case '1': case 'x': matrix += ' 0 & 1\\\\ 1 & 0'; break; case '2': case 'y': matrix += ' 0 & -i\\\\ i & 0'; break; case '3': case 'z': matrix += ' 1 & 0\\\\ 0 & -1'; break; default: } parser.string = matrix + parser.string.slice(parser.i); parser.i = 0; }; PhysicsMethods.DiagonalMatrix = function (parser, name, anti) { if (parser.GetNext() !== '{') { return; } var startI = parser.i; parser.GetArgument(name); var endI = parser.i; parser.i = startI + 1; var elements = []; var element = ''; var currentI = parser.i; while (currentI < endI) { try { element = parser.GetUpTo(name, ','); } catch (e) { parser.i = endI; elements.push(parser.string.slice(currentI, endI - 1)); break; } if (parser.i >= endI) { elements.push(parser.string.slice(currentI, endI)); break; } currentI = parser.i; elements.push(element); } parser.string = makeDiagMatrix(elements, anti) + parser.string.slice(endI); parser.i = 0; }; function makeDiagMatrix(elements, anti) { var length = elements.length; var matrix = []; for (var i = 0; i < length; i++) { matrix.push(Array(anti ? length - i : i + 1).join('&') + '\\mqty{' + elements[i] + '}'); } return matrix.join('\\\\ '); } PhysicsMethods.AutoClose = function (parser, fence, _texclass) { var mo = parser.create('token', 'mo', { stretchy: false }, fence); var item = parser.itemFactory.create('mml', mo). setProperties({ autoclose: fence }); parser.Push(item); }; PhysicsMethods.Macro = BaseMethods_js_1.default.Macro; PhysicsMethods.NamedFn = BaseMethods_js_1.default.NamedFn; PhysicsMethods.Array = BaseMethods_js_1.default.Array; exports.default = PhysicsMethods; //# sourceMappingURL=PhysicsMethods.js.map /***/ }), /* 162 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.TagFormatConfiguration = exports.tagformatConfig = void 0; var Configuration_js_1 = __webpack_require__(2); var Tags_js_1 = __webpack_require__(21); var tagID = 0; function tagformatConfig(config, jax) { var tags = jax.parseOptions.options.tags; if (tags !== 'base' && config.tags.hasOwnProperty(tags)) { Tags_js_1.TagsFactory.add(tags, config.tags[tags]); } var TagClass = Tags_js_1.TagsFactory.create(jax.parseOptions.options.tags).constructor; var TagFormat = (function (_super) { __extends(TagFormat, _super); function TagFormat() { return _super !== null && _super.apply(this, arguments) || this; } TagFormat.prototype.formatNumber = function (n) { return jax.parseOptions.options.tagformat.number(n); }; TagFormat.prototype.formatTag = function (tag) { return jax.parseOptions.options.tagformat.tag(tag); }; TagFormat.prototype.formatId = function (id) { return jax.parseOptions.options.tagformat.id(id); }; TagFormat.prototype.formatUrl = function (id, base) { return jax.parseOptions.options.tagformat.url(id, base); }; return TagFormat; }(TagClass)); tagID++; var tagName = 'configTags-' + tagID; Tags_js_1.TagsFactory.add(tagName, TagFormat); jax.parseOptions.options.tags = tagName; } exports.tagformatConfig = tagformatConfig; exports.TagFormatConfiguration = Configuration_js_1.Configuration.create('tagformat', { config: [tagformatConfig, 10], options: { tagformat: { number: function (n) { return n.toString(); }, tag: function (tag) { return '(' + tag + ')'; }, id: function (id) { return 'mjx-eqn-' + id.replace(/\s/g, '_'); }, url: function (id, base) { return base + '#' + encodeURIComponent(id); }, } } }); //# sourceMappingURL=TagFormatConfiguration.js.map /***/ }), /* 163 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.textBase = void 0; var Configuration_js_1 = __webpack_require__(2); var ParseOptions_js_1 = __webpack_require__(83); var Tags_js_1 = __webpack_require__(21); var BaseItems_js_1 = __webpack_require__(29); var TextParser_js_1 = __webpack_require__(164); var TextMacrosMethods_js_1 = __webpack_require__(87); __webpack_require__(284); exports.textBase = Configuration_js_1.Configuration.local({ handler: { character: ['command', 'text-special'], macro: ['text-macros'] }, fallback: { character: function (parser, c) { parser.text += c; }, macro: function (parser, name) { var texParser = parser.texParser; var macro = texParser.lookup('macro', name); if (macro && macro._func !== TextMacrosMethods_js_1.TextMacrosMethods.Macro) { parser.Error('MathMacro', '%1 is only supported in math mode', '\\' + name); } texParser.parse('macro', [macro ? parser : texParser, name]); } }, items: (_a = {}, _a[BaseItems_js_1.StartItem.prototype.kind] = BaseItems_js_1.StartItem, _a[BaseItems_js_1.StopItem.prototype.kind] = BaseItems_js_1.StopItem, _a[BaseItems_js_1.MmlItem.prototype.kind] = BaseItems_js_1.MmlItem, _a[BaseItems_js_1.StyleItem.prototype.kind] = BaseItems_js_1.StyleItem, _a) }); function internalMath(parser, text, level, mathvariant) { var config = parser.configuration.packageData.get('textmacros'); if (!(parser instanceof TextParser_js_1.TextParser)) { config.texParser = parser; } return [(new TextParser_js_1.TextParser(text, mathvariant ? { mathvariant: mathvariant } : {}, config.parseOptions, level)).mml()]; } Configuration_js_1.Configuration.create('textmacros', { config: function (_config, jax) { var textConf = new Configuration_js_1.ParserConfiguration([]); textConf.append(exports.textBase); textConf.init(); var parseOptions = new ParseOptions_js_1.default(textConf, []); parseOptions.options = jax.parseOptions.options; textConf.config(jax); Tags_js_1.TagsFactory.addTags(textConf.tags); parseOptions.tags = Tags_js_1.TagsFactory.getDefault(); parseOptions.tags.configuration = parseOptions; parseOptions.packageData = jax.parseOptions.packageData; parseOptions.packageData.set('textmacros', { parseOptions: parseOptions, jax: jax, texParser: null }); parseOptions.options.internalMath = internalMath; }, preprocessors: [function (data) { var config = data.data.packageData.get('textmacros'); config.parseOptions.nodeFactory.setMmlFactory(config.jax.mmlFactory); }] }); //# sourceMappingURL=TextMacrosConfiguration.js.map /***/ }), /* 164 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TextParser = void 0; var TexParser_js_1 = __webpack_require__(12); var TexError_js_1 = __webpack_require__(4); var ParseUtil_js_1 = __webpack_require__(8); var MmlNode_js_1 = __webpack_require__(0); var NodeUtil_js_1 = __webpack_require__(7); var BaseItems_js_1 = __webpack_require__(29); var TextParser = (function (_super) { __extends(TextParser, _super); function TextParser(text, env, configuration, level) { var _this = _super.call(this, text, env, configuration) || this; _this.level = level; return _this; } Object.defineProperty(TextParser.prototype, "texParser", { get: function () { return this.configuration.packageData.get('textmacros').texParser; }, enumerable: false, configurable: true }); Object.defineProperty(TextParser.prototype, "tags", { get: function () { return this.texParser.tags; }, enumerable: false, configurable: true }); TextParser.prototype.mml = function () { return (this.level != null ? this.create('node', 'mstyle', this.nodes, { displaystyle: false, scriptlevel: this.level }) : this.nodes.length === 1 ? this.nodes[0] : this.create('node', 'inferredMrow', this.nodes)); }; TextParser.prototype.Parse = function () { this.text = ''; this.nodes = []; this.envStack = []; _super.prototype.Parse.call(this); }; TextParser.prototype.saveText = function () { if (this.text) { var mathvariant = this.stack.env.mathvariant; var text = ParseUtil_js_1.default.internalText(this, this.text, mathvariant ? { mathvariant: mathvariant } : {}); this.text = ''; this.Push(text); } }; TextParser.prototype.Push = function (mml) { if (this.text) { this.saveText(); } if (mml instanceof BaseItems_js_1.StopItem) { return _super.prototype.Push.call(this, mml); } if (mml instanceof BaseItems_js_1.StyleItem) { this.stack.env.mathcolor = this.stack.env.color; return; } if (mml instanceof MmlNode_js_1.AbstractMmlNode) { this.addAttributes(mml); this.nodes.push(mml); } }; TextParser.prototype.PushMath = function (mml) { var e_1, _a; var env = this.stack.env; try { for (var _b = __values(['mathsize', 'mathcolor']), _c = _b.next(); !_c.done; _c = _b.next()) { var name_1 = _c.value; if (env[name_1] && !mml.attributes.getExplicit(name_1)) { if (!mml.isToken && !mml.isKind('mstyle')) { mml = this.create('node', 'mstyle', [mml]); } NodeUtil_js_1.default.setAttribute(mml, name_1, env[name_1]); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } if (mml.isKind('inferredMrow')) { mml = this.create('node', 'mrow', mml.childNodes); } this.nodes.push(mml); }; TextParser.prototype.addAttributes = function (mml) { var e_2, _a; var env = this.stack.env; if (!mml.isToken) return; try { for (var _b = __values(['mathsize', 'mathcolor', 'mathvariant']), _c = _b.next(); !_c.done; _c = _b.next()) { var name_2 = _c.value; if (env[name_2] && !mml.attributes.getExplicit(name_2)) { NodeUtil_js_1.default.setAttribute(mml, name_2, env[name_2]); } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } }; TextParser.prototype.ParseTextArg = function (name, env) { var text = this.GetArgument(name); env = Object.assign(Object.assign({}, this.stack.env), env); return (new TextParser(text, env, this.configuration)).mml(); }; TextParser.prototype.ParseArg = function (name) { return (new TextParser(this.GetArgument(name), this.stack.env, this.configuration)).mml(); }; TextParser.prototype.Error = function (id, message) { var args = []; for (var _i = 2; _i < arguments.length; _i++) { args[_i - 2] = arguments[_i]; } throw new (TexError_js_1.default.bind.apply(TexError_js_1.default, __spread([void 0, id, message], args)))(); }; return TextParser; }(TexParser_js_1.default)); exports.TextParser = TextParser; //# sourceMappingURL=TextParser.js.map /***/ }), /* 165 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UnicodeConfiguration = exports.UnicodeMethods = void 0; var Configuration_js_1 = __webpack_require__(2); var TexError_js_1 = __webpack_require__(4); var SymbolMap_js_1 = __webpack_require__(3); var ParseUtil_js_1 = __webpack_require__(8); var NodeUtil_js_1 = __webpack_require__(7); var Entities_js_1 = __webpack_require__(20); exports.UnicodeMethods = {}; var UnicodeCache = {}; exports.UnicodeMethods.Unicode = function (parser, name) { var HD = parser.GetBrackets(name); var HDsplit = null; var font = null; if (HD) { if (HD.replace(/ /g, ''). match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)) { HDsplit = HD.replace(/ /g, '').split(/,/); font = parser.GetBrackets(name); } else { font = HD; } } var n = ParseUtil_js_1.default.trimSpaces(parser.GetArgument(name)).replace(/^0x/, 'x'); if (!n.match(/^(x[0-9A-Fa-f]+|[0-9]+)$/)) { throw new TexError_js_1.default('BadUnicode', 'Argument to \\unicode must be a number'); } var N = parseInt(n.match(/^x/) ? '0' + n : n); if (!UnicodeCache[N]) { UnicodeCache[N] = [800, 200, font, N]; } else if (!font) { font = UnicodeCache[N][2]; } if (HDsplit) { UnicodeCache[N][0] = Math.floor(parseFloat(HDsplit[0]) * 1000); UnicodeCache[N][1] = Math.floor(parseFloat(HDsplit[1]) * 1000); } var variant = parser.stack.env.font; var def = {}; if (font) { UnicodeCache[N][2] = def.fontfamily = font.replace(/'/g, '\''); if (variant) { if (variant.match(/bold/)) { def.fontweight = 'bold'; } if (variant.match(/italic|-mathit/)) { def.fontstyle = 'italic'; } } } else if (variant) { def.mathvariant = variant; } var node = parser.create('token', 'mtext', def, Entities_js_1.numeric(n)); NodeUtil_js_1.default.setProperty(node, 'unicode', true); parser.Push(node); }; new SymbolMap_js_1.CommandMap('unicode', { unicode: 'Unicode' }, exports.UnicodeMethods); exports.UnicodeConfiguration = Configuration_js_1.Configuration.create('unicode', { handler: { macro: ['unicode'] } }); //# sourceMappingURL=UnicodeConfiguration.js.map /***/ }), /* 166 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VerbConfiguration = exports.VerbMethods = void 0; var Configuration_js_1 = __webpack_require__(2); var TexConstants_js_1 = __webpack_require__(13); var SymbolMap_js_1 = __webpack_require__(3); var TexError_js_1 = __webpack_require__(4); exports.VerbMethods = {}; exports.VerbMethods.Verb = function (parser, name) { var c = parser.GetNext(); var start = ++parser.i; if (c === '') { throw new TexError_js_1.default('MissingArgFor', 'Missing argument for %1', name); } while (parser.i < parser.string.length && parser.string.charAt(parser.i) !== c) { parser.i++; } if (parser.i === parser.string.length) { throw new TexError_js_1.default('NoClosingDelim', 'Can\'t find closing delimiter for %1', parser.currentCS); } var text = parser.string.slice(start, parser.i).replace(/ /g, '\u00A0'); parser.i++; parser.Push(parser.create('token', 'mtext', { mathvariant: TexConstants_js_1.TexConstant.Variant.MONOSPACE }, text)); }; new SymbolMap_js_1.CommandMap('verb', { verb: 'Verb' }, exports.VerbMethods); exports.VerbConfiguration = Configuration_js_1.Configuration.create('verb', { handler: { macro: ['verb'] } }); //# sourceMappingURL=VerbConfiguration.js.map /***/ }), /* 167 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonOutputJax = void 0; var OutputJax_js_1 = __webpack_require__(54); var MathItem_js_1 = __webpack_require__(15); var Options_js_1 = __webpack_require__(6); var lengths_js_1 = __webpack_require__(19); var Styles_js_1 = __webpack_require__(81); var StyleList_js_1 = __webpack_require__(127); var CommonOutputJax = (function (_super) { __extends(CommonOutputJax, _super); function CommonOutputJax(options, defaultFactory, defaultFont) { if (options === void 0) { options = null; } if (defaultFactory === void 0) { defaultFactory = null; } if (defaultFont === void 0) { defaultFont = null; } var _this = this; var _a = __read(Options_js_1.separateOptions(options, defaultFont.OPTIONS), 2), jaxOptions = _a[0], fontOptions = _a[1]; _this = _super.call(this, jaxOptions) || this; _this.factory = _this.options.wrapperFactory || new defaultFactory(); _this.factory.jax = _this; _this.cssStyles = _this.options.cssStyles || new StyleList_js_1.CssStyles(); _this.font = _this.options.font || new defaultFont(fontOptions); _this.unknownCache = new Map(); return _this; } CommonOutputJax.prototype.typeset = function (math, html) { this.setDocument(html); var node = this.createNode(); this.toDOM(math, node, html); return node; }; CommonOutputJax.prototype.createNode = function () { var jax = this.constructor.NAME; return this.html('mjx-container', { 'class': 'MathJax', jax: jax }); }; CommonOutputJax.prototype.setScale = function (node) { var scale = this.math.metrics.scale * this.options.scale; if (scale !== 1) { this.adaptor.setStyle(node, 'fontSize', lengths_js_1.percent(scale)); } }; CommonOutputJax.prototype.toDOM = function (math, node, html) { if (html === void 0) { html = null; } this.setDocument(html); this.math = math; this.pxPerEm = math.metrics.ex / this.font.params.x_height; math.root.setTeXclass(null); this.setScale(node); this.nodeMap = new Map(); this.container = node; this.processMath(math.root, node); this.nodeMap = null; this.executeFilters(this.postFilters, math, html, node); }; CommonOutputJax.prototype.getBBox = function (math, html) { this.setDocument(html); this.math = math; math.root.setTeXclass(null); this.nodeMap = new Map(); var bbox = this.factory.wrap(math.root).getBBox(); this.nodeMap = null; return bbox; }; CommonOutputJax.prototype.getMetrics = function (html) { var e_1, _a; this.setDocument(html); var adaptor = this.adaptor; var maps = this.getMetricMaps(html); try { for (var _b = __values(html.math), _c = _b.next(); !_c.done; _c = _b.next()) { var math = _c.value; var parent_1 = adaptor.parent(math.start.node); if (math.state() < MathItem_js_1.STATE.METRICS && parent_1) { var map = maps[math.display ? 1 : 0]; var _d = map.get(parent_1), em = _d.em, ex = _d.ex, containerWidth = _d.containerWidth, lineWidth = _d.lineWidth, scale = _d.scale, family = _d.family; math.setMetrics(em, ex, containerWidth, lineWidth, scale); if (this.options.mtextInheritFont) { math.outputData.mtextFamily = family; } if (this.options.merrorInheritFont) { math.outputData.merrorFamily = family; } math.state(MathItem_js_1.STATE.METRICS); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; CommonOutputJax.prototype.getMetricsFor = function (node, display) { var getFamily = (this.options.mtextInheritFont || this.options.merrorInheritFont); var test = this.getTestElement(node, display); var metrics = this.measureMetrics(test, getFamily); this.adaptor.remove(test); return metrics; }; CommonOutputJax.prototype.getMetricMaps = function (html) { var e_2, _a, e_3, _b, e_4, _c, e_5, _d, e_6, _e; var adaptor = this.adaptor; var domMaps = [new Map(), new Map()]; try { for (var _f = __values(html.math), _g = _f.next(); !_g.done; _g = _f.next()) { var math = _g.value; var node = adaptor.parent(math.start.node); if (node && math.state() < MathItem_js_1.STATE.METRICS) { var map = domMaps[math.display ? 1 : 0]; if (!map.has(node)) { map.set(node, this.getTestElement(node, math.display)); } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_g && !_g.done && (_a = _f.return)) _a.call(_f); } finally { if (e_2) throw e_2.error; } } var getFamily = this.options.mtextInheritFont || this.options.merrorInheritFont; var maps = [new Map(), new Map()]; try { for (var _h = __values(maps.keys()), _j = _h.next(); !_j.done; _j = _h.next()) { var i = _j.value; try { for (var _k = (e_4 = void 0, __values(domMaps[i].keys())), _l = _k.next(); !_l.done; _l = _k.next()) { var node = _l.value; maps[i].set(node, this.measureMetrics(domMaps[i].get(node), getFamily)); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_l && !_l.done && (_c = _k.return)) _c.call(_k); } finally { if (e_4) throw e_4.error; } } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_j && !_j.done && (_b = _h.return)) _b.call(_h); } finally { if (e_3) throw e_3.error; } } try { for (var _m = __values(maps.keys()), _o = _m.next(); !_o.done; _o = _m.next()) { var i = _o.value; try { for (var _p = (e_6 = void 0, __values(domMaps[i].values())), _q = _p.next(); !_q.done; _q = _p.next()) { var node = _q.value; adaptor.remove(node); } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_q && !_q.done && (_e = _p.return)) _e.call(_p); } finally { if (e_6) throw e_6.error; } } } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_o && !_o.done && (_d = _m.return)) _d.call(_m); } finally { if (e_5) throw e_5.error; } } return maps; }; CommonOutputJax.prototype.getTestElement = function (node, display) { var adaptor = this.adaptor; if (!this.testInline) { this.testInline = this.html('mjx-test', { style: { display: 'inline-block', width: '100%', 'font-style': 'normal', 'font-weight': 'normal', 'font-size': '100%', 'font-size-adjust': 'none', 'text-indent': 0, 'text-transform': 'none', 'letter-spacing': 'normal', 'word-spacing': 'normal', overflow: 'hidden', height: '1px', 'margin-right': '-1px' } }, [ this.html('mjx-left-box', { style: { display: 'inline-block', width: 0, 'float': 'left' } }), this.html('mjx-ex-box', { style: { position: 'absolute', overflow: 'hidden', width: '1px', height: '60ex' } }), this.html('mjx-right-box', { style: { display: 'inline-block', width: 0, 'float': 'right' } }) ]); this.testDisplay = adaptor.clone(this.testInline); adaptor.setStyle(this.testDisplay, 'display', 'table'); adaptor.setStyle(this.testDisplay, 'margin-right', ''); adaptor.setStyle(adaptor.firstChild(this.testDisplay), 'display', 'none'); var right = adaptor.lastChild(this.testDisplay); adaptor.setStyle(right, 'display', 'table-cell'); adaptor.setStyle(right, 'width', '10000em'); adaptor.setStyle(right, 'float', ''); } return adaptor.append(node, adaptor.clone(display ? this.testDisplay : this.testInline)); }; CommonOutputJax.prototype.measureMetrics = function (node, getFamily) { var adaptor = this.adaptor; var family = (getFamily ? adaptor.fontFamily(node) : ''); var em = adaptor.fontSize(node); var ex = (adaptor.nodeSize(adaptor.childNode(node, 1))[1] / 60) || (em * this.options.exFactor); var containerWidth = (adaptor.getStyle(node, 'display') === 'table' ? adaptor.nodeSize(adaptor.lastChild(node))[0] - 1 : adaptor.nodeBBox(adaptor.lastChild(node)).left - adaptor.nodeBBox(adaptor.firstChild(node)).left - 2); var scale = Math.max(this.options.minScale, this.options.matchFontHeight ? ex / this.font.params.x_height / em : 1); var lineWidth = 1000000; return { em: em, ex: ex, containerWidth: containerWidth, lineWidth: lineWidth, scale: scale, family: family }; }; CommonOutputJax.prototype.styleSheet = function (html) { var e_7, _a, e_8, _b; this.setDocument(html); this.cssStyles.clear(); this.cssStyles.addStyles(this.constructor.commonStyles); if ('getStyles' in html) { try { for (var _c = __values(html.getStyles()), _d = _c.next(); !_d.done; _d = _c.next()) { var styles = _d.value; this.cssStyles.addStyles(styles); } } catch (e_7_1) { e_7 = { error: e_7_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_7) throw e_7.error; } } } try { for (var _e = __values(this.factory.getKinds()), _f = _e.next(); !_f.done; _f = _e.next()) { var kind = _f.value; this.addClassStyles(this.factory.getNodeClass(kind)); } } catch (e_8_1) { e_8 = { error: e_8_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_8) throw e_8.error; } } this.cssStyles.addStyles(this.font.styles); var sheet = this.html('style', { id: 'MJX-styles' }, [this.text('\n' + this.cssStyles.cssText + '\n')]); return sheet; }; CommonOutputJax.prototype.addClassStyles = function (CLASS) { this.cssStyles.addStyles(CLASS.styles); }; CommonOutputJax.prototype.setDocument = function (html) { if (html) { this.document = html; this.adaptor.document = html.document; } }; CommonOutputJax.prototype.html = function (type, def, content, ns) { if (def === void 0) { def = {}; } if (content === void 0) { content = []; } return this.adaptor.node(type, def, content, ns); }; CommonOutputJax.prototype.text = function (text) { return this.adaptor.text(text); }; CommonOutputJax.prototype.fixed = function (m, n) { if (n === void 0) { n = 3; } if (Math.abs(m) < .0006) { return '0'; } return m.toFixed(n).replace(/\.?0+$/, ''); }; CommonOutputJax.prototype.measureText = function (text, variant, font) { if (font === void 0) { font = ['', false, false]; } var node = this.unknownText(text, variant); if (variant === '-explicitFont') { var styles = this.cssFontStyles(font); this.adaptor.setAttributes(node, { style: styles }); } return this.measureTextNodeWithCache(node, text, variant, font); }; CommonOutputJax.prototype.measureTextNodeWithCache = function (text, chars, variant, font) { if (font === void 0) { font = ['', false, false]; } if (variant === '-explicitFont') { variant = [font[0], font[1] ? 'T' : 'F', font[2] ? 'T' : 'F', ''].join('-'); } if (!this.unknownCache.has(variant)) { this.unknownCache.set(variant, new Map()); } var map = this.unknownCache.get(variant); var cached = map.get(chars); if (cached) return cached; var bbox = this.measureTextNode(text); map.set(chars, bbox); return bbox; }; CommonOutputJax.prototype.measureXMLnode = function (xml) { var adaptor = this.adaptor; var content = this.html('mjx-xml-block', { style: { display: 'inline-block' } }, [adaptor.clone(xml)]); var base = this.html('mjx-baseline', { style: { display: 'inline-block', width: 0, height: 0 } }); var style = { position: 'absolute', display: 'inline-block', 'font-family': 'initial', 'line-height': 'normal' }; var node = this.html('mjx-measure-xml', { style: style }, [base, content]); adaptor.append(adaptor.parent(this.math.start.node), this.container); adaptor.append(this.container, node); var em = this.math.metrics.em * this.math.metrics.scale; var _a = adaptor.nodeBBox(content), left = _a.left, right = _a.right, bottom = _a.bottom, top = _a.top; var w = (right - left) / em; var h = (adaptor.nodeBBox(base).top - top) / em; var d = (bottom - top) / em - h; adaptor.remove(this.container); adaptor.remove(node); return { w: w, h: h, d: d }; }; CommonOutputJax.prototype.cssFontStyles = function (font, styles) { if (styles === void 0) { styles = {}; } var _a = __read(font, 3), family = _a[0], italic = _a[1], bold = _a[2]; styles['font-family'] = this.font.getFamily(family); if (italic) styles['font-style'] = 'italic'; if (bold) styles['font-weight'] = 'bold'; return styles; }; CommonOutputJax.prototype.getFontData = function (styles) { if (!styles) { styles = new Styles_js_1.Styles(); } return [this.font.getFamily(styles.get('font-family')), styles.get('font-style') === 'italic', styles.get('font-weight') === 'bold']; }; CommonOutputJax.NAME = 'Common'; CommonOutputJax.OPTIONS = __assign(__assign({}, OutputJax_js_1.AbstractOutputJax.OPTIONS), { scale: 1, minScale: .5, matchFontHeight: true, mtextInheritFont: false, merrorInheritFont: false, mtextFont: '', merrorFont: 'serif', mathmlSpacing: false, skipAttributes: {}, exFactor: .5, displayAlign: 'center', displayIndent: '0', wrapperFactory: null, font: null, cssStyles: null }); CommonOutputJax.commonStyles = {}; return CommonOutputJax; }(OutputJax_js_1.AbstractOutputJax)); exports.CommonOutputJax = CommonOutputJax; //# sourceMappingURL=OutputJax.js.map /***/ }), /* 168 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLWrapperFactory = void 0; var WrapperFactory_js_1 = __webpack_require__(169); var Wrappers_js_1 = __webpack_require__(170); var CHTMLWrapperFactory = (function (_super) { __extends(CHTMLWrapperFactory, _super); function CHTMLWrapperFactory() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLWrapperFactory.defaultNodes = Wrappers_js_1.CHTMLWrappers; return CHTMLWrapperFactory; }(WrapperFactory_js_1.CommonWrapperFactory)); exports.CHTMLWrapperFactory = CHTMLWrapperFactory; //# sourceMappingURL=WrapperFactory.js.map /***/ }), /* 169 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonWrapperFactory = void 0; var WrapperFactory_js_1 = __webpack_require__(121); var CommonWrapperFactory = (function (_super) { __extends(CommonWrapperFactory, _super); function CommonWrapperFactory() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.jax = null; return _this; } Object.defineProperty(CommonWrapperFactory.prototype, "Wrappers", { get: function () { return this.node; }, enumerable: false, configurable: true }); CommonWrapperFactory.defaultNodes = {}; return CommonWrapperFactory; }(WrapperFactory_js_1.AbstractWrapperFactory)); exports.CommonWrapperFactory = CommonWrapperFactory; //# sourceMappingURL=WrapperFactory.js.map /***/ }), /* 170 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLWrappers = void 0; var Wrapper_js_1 = __webpack_require__(5); var math_js_1 = __webpack_require__(172); var mi_js_1 = __webpack_require__(174); var mo_js_1 = __webpack_require__(176); var mn_js_1 = __webpack_require__(178); var ms_js_1 = __webpack_require__(180); var mtext_js_1 = __webpack_require__(182); var mspace_js_1 = __webpack_require__(184); var mpadded_js_1 = __webpack_require__(186); var menclose_js_1 = __webpack_require__(188); var mrow_js_1 = __webpack_require__(191); var mfenced_js_1 = __webpack_require__(192); var mfrac_js_1 = __webpack_require__(194); var msqrt_js_1 = __webpack_require__(90); var mroot_js_1 = __webpack_require__(197); var msubsup_js_1 = __webpack_require__(46); var munderover_js_1 = __webpack_require__(201); var mmultiscripts_js_1 = __webpack_require__(202); var mtable_js_1 = __webpack_require__(204); var mtr_js_1 = __webpack_require__(206); var mtd_js_1 = __webpack_require__(207); var maction_js_1 = __webpack_require__(209); var mglyph_js_1 = __webpack_require__(210); var semantics_js_1 = __webpack_require__(212); var TeXAtom_js_1 = __webpack_require__(214); var TextNode_js_1 = __webpack_require__(216); exports.CHTMLWrappers = (_a = {}, _a[math_js_1.CHTMLmath.kind] = math_js_1.CHTMLmath, _a[mrow_js_1.CHTMLmrow.kind] = mrow_js_1.CHTMLmrow, _a[mrow_js_1.CHTMLinferredMrow.kind] = mrow_js_1.CHTMLinferredMrow, _a[mi_js_1.CHTMLmi.kind] = mi_js_1.CHTMLmi, _a[mo_js_1.CHTMLmo.kind] = mo_js_1.CHTMLmo, _a[mn_js_1.CHTMLmn.kind] = mn_js_1.CHTMLmn, _a[ms_js_1.CHTMLms.kind] = ms_js_1.CHTMLms, _a[mtext_js_1.CHTMLmtext.kind] = mtext_js_1.CHTMLmtext, _a[mspace_js_1.CHTMLmspace.kind] = mspace_js_1.CHTMLmspace, _a[mpadded_js_1.CHTMLmpadded.kind] = mpadded_js_1.CHTMLmpadded, _a[menclose_js_1.CHTMLmenclose.kind] = menclose_js_1.CHTMLmenclose, _a[mfrac_js_1.CHTMLmfrac.kind] = mfrac_js_1.CHTMLmfrac, _a[msqrt_js_1.CHTMLmsqrt.kind] = msqrt_js_1.CHTMLmsqrt, _a[mroot_js_1.CHTMLmroot.kind] = mroot_js_1.CHTMLmroot, _a[msubsup_js_1.CHTMLmsub.kind] = msubsup_js_1.CHTMLmsub, _a[msubsup_js_1.CHTMLmsup.kind] = msubsup_js_1.CHTMLmsup, _a[msubsup_js_1.CHTMLmsubsup.kind] = msubsup_js_1.CHTMLmsubsup, _a[munderover_js_1.CHTMLmunder.kind] = munderover_js_1.CHTMLmunder, _a[munderover_js_1.CHTMLmover.kind] = munderover_js_1.CHTMLmover, _a[munderover_js_1.CHTMLmunderover.kind] = munderover_js_1.CHTMLmunderover, _a[mmultiscripts_js_1.CHTMLmmultiscripts.kind] = mmultiscripts_js_1.CHTMLmmultiscripts, _a[mfenced_js_1.CHTMLmfenced.kind] = mfenced_js_1.CHTMLmfenced, _a[mtable_js_1.CHTMLmtable.kind] = mtable_js_1.CHTMLmtable, _a[mtr_js_1.CHTMLmtr.kind] = mtr_js_1.CHTMLmtr, _a[mtr_js_1.CHTMLmlabeledtr.kind] = mtr_js_1.CHTMLmlabeledtr, _a[mtd_js_1.CHTMLmtd.kind] = mtd_js_1.CHTMLmtd, _a[maction_js_1.CHTMLmaction.kind] = maction_js_1.CHTMLmaction, _a[mglyph_js_1.CHTMLmglyph.kind] = mglyph_js_1.CHTMLmglyph, _a[semantics_js_1.CHTMLsemantics.kind] = semantics_js_1.CHTMLsemantics, _a[semantics_js_1.CHTMLannotation.kind] = semantics_js_1.CHTMLannotation, _a[semantics_js_1.CHTMLannotationXML.kind] = semantics_js_1.CHTMLannotationXML, _a[semantics_js_1.CHTMLxml.kind] = semantics_js_1.CHTMLxml, _a[TeXAtom_js_1.CHTMLTeXAtom.kind] = TeXAtom_js_1.CHTMLTeXAtom, _a[TextNode_js_1.CHTMLTextNode.kind] = TextNode_js_1.CHTMLTextNode, _a[Wrapper_js_1.CHTMLWrapper.kind] = Wrapper_js_1.CHTMLWrapper, _a); //# sourceMappingURL=Wrappers.js.map /***/ }), /* 171 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonWrapper = void 0; var Wrapper_js_1 = __webpack_require__(120); var MmlNode_js_1 = __webpack_require__(0); var string_js_1 = __webpack_require__(14); var LENGTHS = __webpack_require__(19); var Styles_js_1 = __webpack_require__(81); var BBox_js_1 = __webpack_require__(16); var FontData_js_1 = __webpack_require__(30); var SMALLSIZE = 2 / 18; function MathMLSpace(script, size) { return (script ? size < SMALLSIZE ? 0 : SMALLSIZE : size); } var CommonWrapper = (function (_super) { __extends(CommonWrapper, _super); function CommonWrapper(factory, node, parent) { if (parent === void 0) { parent = null; } var _this = _super.call(this, factory, node) || this; _this.parent = null; _this.removedStyles = null; _this.styles = null; _this.variant = ''; _this.bboxComputed = false; _this.stretch = FontData_js_1.NOSTRETCH; _this.font = null; _this.parent = parent; _this.font = factory.jax.font; _this.bbox = BBox_js_1.BBox.zero(); _this.getStyles(); _this.getVariant(); _this.getScale(); _this.getSpace(); _this.childNodes = node.childNodes.map(function (child) { var wrapped = _this.wrap(child); if (wrapped.bbox.pwidth && (node.notParent || node.isKind('math'))) { _this.bbox.pwidth = BBox_js_1.BBox.fullWidth; } return wrapped; }); return _this; } Object.defineProperty(CommonWrapper.prototype, "jax", { get: function () { return this.factory.jax; }, enumerable: false, configurable: true }); Object.defineProperty(CommonWrapper.prototype, "adaptor", { get: function () { return this.factory.jax.adaptor; }, enumerable: false, configurable: true }); Object.defineProperty(CommonWrapper.prototype, "metrics", { get: function () { return this.factory.jax.math.metrics; }, enumerable: false, configurable: true }); Object.defineProperty(CommonWrapper.prototype, "fixesPWidth", { get: function () { return !this.node.notParent && !this.node.isToken; }, enumerable: false, configurable: true }); CommonWrapper.prototype.wrap = function (node, parent) { if (parent === void 0) { parent = null; } var wrapped = this.factory.wrap(node, parent || this); if (parent) { parent.childNodes.push(wrapped); } this.jax.nodeMap.set(node, wrapped); return wrapped; }; CommonWrapper.prototype.getBBox = function (save) { if (save === void 0) { save = true; } if (this.bboxComputed) { return this.bbox; } var bbox = (save ? this.bbox : BBox_js_1.BBox.zero()); this.computeBBox(bbox); this.bboxComputed = save; return bbox; }; CommonWrapper.prototype.computeBBox = function (bbox, recompute) { var e_1, _a; if (recompute === void 0) { recompute = false; } bbox.empty(); try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; bbox.append(child.getBBox()); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } bbox.clean(); if (this.fixesPWidth && this.setChildPWidths(recompute)) { this.computeBBox(bbox, true); } }; CommonWrapper.prototype.setChildPWidths = function (recompute, w, clear) { var e_2, _a; if (w === void 0) { w = null; } if (clear === void 0) { clear = true; } if (recompute) { return false; } if (clear) { this.bbox.pwidth = ''; } var changed = false; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; var cbox = child.getBBox(); if (cbox.pwidth && child.setChildPWidths(recompute, w === null ? cbox.w : w, clear)) { changed = true; } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } return changed; }; CommonWrapper.prototype.invalidateBBox = function () { if (this.bboxComputed) { this.bboxComputed = false; if (this.parent) { this.parent.invalidateBBox(); } } }; CommonWrapper.prototype.copySkewIC = function (bbox) { var first = this.childNodes[0]; if (first && first.bbox.sk) { bbox.sk = first.bbox.sk; } var last = this.childNodes[this.childNodes.length - 1]; if (last && last.bbox.ic) { bbox.ic = last.bbox.ic; bbox.w += bbox.ic; } }; CommonWrapper.prototype.getStyles = function () { var styleString = this.node.attributes.getExplicit('style'); if (!styleString) return; var style = this.styles = new Styles_js_1.Styles(styleString); for (var i = 0, m = CommonWrapper.removeStyles.length; i < m; i++) { var id = CommonWrapper.removeStyles[i]; if (style.get(id)) { if (!this.removedStyles) this.removedStyles = {}; this.removedStyles[id] = style.get(id); style.set(id, ''); } } }; CommonWrapper.prototype.getVariant = function () { if (!this.node.isToken) return; var attributes = this.node.attributes; var variant = attributes.get('mathvariant'); if (!attributes.getExplicit('mathvariant')) { var values = attributes.getList('fontfamily', 'fontweight', 'fontstyle'); if (this.removedStyles) { var style = this.removedStyles; if (style.fontFamily) values.family = style.fontFamily; if (style.fontWeight) values.weight = style.fontWeight; if (style.fontStyle) values.style = style.fontStyle; } if (values.fontfamily) values.family = values.fontfamily; if (values.fontweight) values.weight = values.fontweight; if (values.fontstyle) values.style = values.fontstyle; if (values.weight && values.weight.match(/^\d+$/)) { values.weight = (parseInt(values.weight) > 600 ? 'bold' : 'normal'); } if (values.family) { variant = this.explicitVariant(values.family, values.weight, values.style); } else { if (this.node.getProperty('variantForm')) variant = '-tex-variant'; variant = (CommonWrapper.BOLDVARIANTS[values.weight] || {})[variant] || variant; variant = (CommonWrapper.ITALICVARIANTS[values.style] || {})[variant] || variant; } } this.variant = variant; }; CommonWrapper.prototype.explicitVariant = function (fontFamily, fontWeight, fontStyle) { var style = this.styles; if (!style) style = this.styles = new Styles_js_1.Styles(); style.set('fontFamily', fontFamily); if (fontWeight) style.set('fontWeight', fontWeight); if (fontStyle) style.set('fontStyle', fontStyle); return '-explicitFont'; }; CommonWrapper.prototype.getScale = function () { var scale = 1, parent = this.parent; var pscale = (parent ? parent.bbox.scale : 1); var attributes = this.node.attributes; var scriptlevel = Math.min(attributes.get('scriptlevel'), 2); var fontsize = attributes.get('fontsize'); var mathsize = (this.node.isToken || this.node.isKind('mstyle') ? attributes.get('mathsize') : attributes.getInherited('mathsize')); if (scriptlevel !== 0) { scale = Math.pow(attributes.get('scriptsizemultiplier'), scriptlevel); var scriptminsize = this.length2em(attributes.get('scriptminsize'), .8, 1); if (scale < scriptminsize) scale = scriptminsize; } if (this.removedStyles && this.removedStyles.fontSize && !fontsize) { fontsize = this.removedStyles.fontSize; } if (fontsize && !attributes.getExplicit('mathsize')) { mathsize = fontsize; } if (mathsize !== '1') { scale *= this.length2em(mathsize, 1, 1); } this.bbox.scale = scale; this.bbox.rscale = scale / pscale; }; CommonWrapper.prototype.getSpace = function () { var isTop = this.isTopEmbellished(); var hasSpacing = this.node.hasSpacingAttributes(); if (this.jax.options.mathmlSpacing || hasSpacing) { isTop && this.getMathMLSpacing(); } else { this.getTeXSpacing(isTop, hasSpacing); } }; CommonWrapper.prototype.getMathMLSpacing = function () { var node = this.node.coreMO(); var attributes = node.attributes; var isScript = (attributes.get('scriptlevel') > 0); this.bbox.L = (attributes.isSet('lspace') ? Math.max(0, this.length2em(attributes.get('lspace'))) : MathMLSpace(isScript, node.lspace)); this.bbox.R = (attributes.isSet('rspace') ? Math.max(0, this.length2em(attributes.get('rspace'))) : MathMLSpace(isScript, node.rspace)); }; CommonWrapper.prototype.getTeXSpacing = function (isTop, hasSpacing) { if (!hasSpacing) { var space = this.node.texSpacing(); if (space) { this.bbox.L = this.length2em(space); } } if (isTop || hasSpacing) { var attributes = this.node.coreMO().attributes; if (attributes.isSet('lspace')) { this.bbox.L = Math.max(0, this.length2em(attributes.get('lspace'))); } if (attributes.isSet('rspace')) { this.bbox.R = Math.max(0, this.length2em(attributes.get('rspace'))); } } }; CommonWrapper.prototype.isTopEmbellished = function () { return (this.node.isEmbellished && !(this.node.Parent && this.node.Parent.isEmbellished)); }; CommonWrapper.prototype.core = function () { return this.jax.nodeMap.get(this.node.core()); }; CommonWrapper.prototype.coreMO = function () { return this.jax.nodeMap.get(this.node.coreMO()); }; CommonWrapper.prototype.getText = function () { var e_3, _a; var text = ''; if (this.node.isToken) { try { for (var _b = __values(this.node.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child instanceof MmlNode_js_1.TextNode) { text += child.getText(); } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } } return text; }; CommonWrapper.prototype.canStretch = function (direction) { this.stretch = FontData_js_1.NOSTRETCH; if (this.node.isEmbellished) { var core = this.core(); if (core && core.node !== this.node) { if (core.canStretch(direction)) { this.stretch = core.stretch; } } } return this.stretch.dir !== 0; }; CommonWrapper.prototype.getAlignShift = function () { var _a; var _b = (_a = this.node.attributes).getList.apply(_a, __spread(MmlNode_js_1.indentAttributes)), indentalign = _b.indentalign, indentshift = _b.indentshift, indentalignfirst = _b.indentalignfirst, indentshiftfirst = _b.indentshiftfirst; if (indentalignfirst !== 'indentalign') { indentalign = indentalignfirst; } if (indentalign === 'auto') { indentalign = this.jax.options.displayAlign; } if (indentshiftfirst !== 'indentshift') { indentshift = indentshiftfirst; } if (indentshift === 'auto') { indentshift = this.jax.options.displayIndent; if (indentalign === 'right' && !indentshift.match(/^\s*0[a-z]*\s*$/)) { indentshift = ('-' + indentshift.trim()).replace(/^--/, ''); } } var shift = this.length2em(indentshift, this.metrics.containerWidth); return [indentalign, shift]; }; CommonWrapper.prototype.getAlignX = function (W, bbox, align) { return (align === 'right' ? W - (bbox.w + bbox.R) * bbox.rscale : align === 'left' ? bbox.L * bbox.rscale : (W - bbox.w * bbox.rscale) / 2); }; CommonWrapper.prototype.getAlignY = function (H, D, h, d, align) { return (align === 'top' ? H - h : align === 'bottom' ? d - D : align === 'middle' ? ((H - h) - (D - d)) / 2 : 0); }; CommonWrapper.prototype.getWrapWidth = function (i) { return this.childNodes[i].getBBox().w; }; CommonWrapper.prototype.getChildAlign = function (_i) { return 'left'; }; CommonWrapper.prototype.percent = function (m) { return LENGTHS.percent(m); }; CommonWrapper.prototype.em = function (m) { return LENGTHS.em(m); }; CommonWrapper.prototype.px = function (m, M) { if (M === void 0) { M = -LENGTHS.BIGDIMEN; } return LENGTHS.px(m, M, this.metrics.em); }; CommonWrapper.prototype.length2em = function (length, size, scale) { if (size === void 0) { size = 1; } if (scale === void 0) { scale = null; } if (scale === null) { scale = this.bbox.scale; } return LENGTHS.length2em(length, size, scale, this.jax.pxPerEm); }; CommonWrapper.prototype.unicodeChars = function (text, name) { if (name === void 0) { name = this.variant; } var chars = string_js_1.unicodeChars(text); var variant = this.font.getVariant(name); if (variant && variant.chars) { var map_1 = variant.chars; chars = chars.map(function (n) { return ((map_1[n] || [])[3] || {}).smp || n; }); } return chars; }; CommonWrapper.prototype.remapChars = function (chars) { return chars; }; CommonWrapper.prototype.mmlText = function (text) { return this.node.factory.create('text').setText(text); }; CommonWrapper.prototype.mmlNode = function (kind, properties, children) { if (properties === void 0) { properties = {}; } if (children === void 0) { children = []; } return this.node.factory.create(kind, properties, children); }; CommonWrapper.prototype.createMo = function (text) { var mmlFactory = this.node.factory; var textNode = mmlFactory.create('text').setText(text); var mml = mmlFactory.create('mo', { stretchy: true }, [textNode]); mml.inheritAttributesFrom(this.node); var node = this.wrap(mml); node.parent = this; return node; }; CommonWrapper.prototype.getVariantChar = function (variant, n) { var char = this.font.getChar(variant, n) || [0, 0, 0, { unknown: true }]; if (char.length === 3) { char[3] = {}; } return char; }; CommonWrapper.kind = 'unknown'; CommonWrapper.styles = {}; CommonWrapper.removeStyles = [ 'fontSize', 'fontFamily', 'fontWeight', 'fontStyle', 'fontVariant', 'font' ]; CommonWrapper.skipAttributes = { fontfamily: true, fontsize: true, fontweight: true, fontstyle: true, color: true, background: true, 'class': true, href: true, style: true, xmlns: true }; CommonWrapper.BOLDVARIANTS = { bold: { normal: 'bold', italic: 'bold-italic', fraktur: 'bold-fraktur', script: 'bold-script', 'sans-serif': 'bold-sans-serif', 'sans-serif-italic': 'sans-serif-bold-italic' }, normal: { bold: 'normal', 'bold-italic': 'italic', 'bold-fraktur': 'fraktur', 'bold-script': 'script', 'bold-sans-serif': 'sans-serif', 'sans-serif-bold-italic': 'sans-serif-italic' } }; CommonWrapper.ITALICVARIANTS = { italic: { normal: 'italic', bold: 'bold-italic', 'sans-serif': 'sans-serif-italic', 'bold-sans-serif': 'sans-serif-bold-italic' }, normal: { italic: 'normal', 'bold-italic': 'bold', 'sans-serif-italic': 'sans-serif', 'sans-serif-bold-italic': 'bold-sans-serif' } }; return CommonWrapper; }(Wrapper_js_1.AbstractWrapper)); exports.CommonWrapper = CommonWrapper; //# sourceMappingURL=Wrapper.js.map /***/ }), /* 172 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmath = void 0; var Wrapper_js_1 = __webpack_require__(5); var math_js_1 = __webpack_require__(173); var math_js_2 = __webpack_require__(58); var BBox_js_1 = __webpack_require__(16); var CHTMLmath = (function (_super) { __extends(CHTMLmath, _super); function CHTMLmath() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmath.prototype.toCHTML = function (parent) { _super.prototype.toCHTML.call(this, parent); var chtml = this.chtml; var adaptor = this.adaptor; var display = (this.node.attributes.get('display') === 'block'); if (display) { adaptor.setAttribute(chtml, 'display', 'true'); adaptor.setAttribute(parent, 'display', 'true'); this.handleDisplay(parent); } else { this.handleInline(parent); } adaptor.addClass(chtml, 'MJX-TEX'); }; CHTMLmath.prototype.handleDisplay = function (parent) { var adaptor = this.adaptor; var _a = __read(this.getAlignShift(), 2), align = _a[0], shift = _a[1]; if (align !== 'center') { adaptor.setAttribute(parent, 'justify', align); } if (this.bbox.pwidth === BBox_js_1.BBox.fullWidth) { adaptor.setAttribute(parent, 'width', 'full'); if (this.jax.table) { var _b = this.jax.table.getBBox(), L = _b.L, w = _b.w, R = _b.R; if (align === 'right') { R = Math.max(R || -shift, -shift); } else if (align === 'left') { L = Math.max(L || shift, shift); } else if (align === 'center') { w += 2 * Math.abs(shift); } var W = this.em(Math.max(0, L + w + R)); adaptor.setStyle(parent, 'min-width', W); adaptor.setStyle(this.jax.table.chtml, 'min-width', W); } } else { this.setIndent(this.chtml, align, shift); } }; CHTMLmath.prototype.handleInline = function (parent) { var adaptor = this.adaptor; var margin = adaptor.getStyle(this.chtml, 'margin-right'); if (margin) { adaptor.setStyle(this.chtml, 'margin-right', ''); adaptor.setStyle(parent, 'margin-right', margin); adaptor.setStyle(parent, 'width', '0'); } }; CHTMLmath.prototype.setChildPWidths = function (recompute, w, clear) { if (w === void 0) { w = null; } if (clear === void 0) { clear = true; } return (this.parent ? _super.prototype.setChildPWidths.call(this, recompute, w, clear) : false); }; CHTMLmath.kind = math_js_2.MmlMath.prototype.kind; CHTMLmath.styles = { 'mjx-math': { 'line-height': 0, 'text-align': 'left', 'text-indent': 0, 'font-style': 'normal', 'font-weight': 'normal', 'font-size': '100%', 'font-size-adjust': 'none', 'letter-spacing': 'normal', 'word-wrap': 'normal', 'word-spacing': 'normal', 'white-space': 'nowrap', 'direction': 'ltr', 'padding': '1px 0' }, 'mjx-container[jax="CHTML"][display="true"]': { display: 'block', 'text-align': 'center', margin: '1em 0' }, 'mjx-container[jax="CHTML"][display="true"][width="full"]': { display: 'flex' }, 'mjx-container[jax="CHTML"][display="true"] mjx-math': { padding: 0 }, 'mjx-container[jax="CHTML"][justify="left"]': { 'text-align': 'left' }, 'mjx-container[jax="CHTML"][justify="right"]': { 'text-align': 'right' } }; return CHTMLmath; }(math_js_1.CommonMathMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmath = CHTMLmath; //# sourceMappingURL=math.js.map /***/ }), /* 173 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMathMixin = void 0; function CommonMathMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.getWrapWidth = function (_i) { return (this.parent ? this.getBBox().w : this.metrics.containerWidth / this.jax.pxPerEm); }; return class_1; }(Base)); } exports.CommonMathMixin = CommonMathMixin; //# sourceMappingURL=math.js.map /***/ }), /* 174 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmi = void 0; var Wrapper_js_1 = __webpack_require__(5); var mi_js_1 = __webpack_require__(175); var mi_js_2 = __webpack_require__(38); var CHTMLmi = (function (_super) { __extends(CHTMLmi, _super); function CHTMLmi() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmi.prototype.toCHTML = function (parent) { _super.prototype.toCHTML.call(this, parent); if (this.noIC) { this.adaptor.setAttribute(this.chtml, 'noIC', 'true'); } }; CHTMLmi.kind = mi_js_2.MmlMi.prototype.kind; return CHTMLmi; }(mi_js_1.CommonMiMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmi = CHTMLmi; //# sourceMappingURL=mi.js.map /***/ }), /* 175 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMiMixin = void 0; function CommonMiMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.noIC = false; return _this; } class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } _super.prototype.computeBBox.call(this, bbox); this.copySkewIC(bbox); if (this.noIC) { bbox.w -= bbox.ic; } }; return class_1; }(Base)); } exports.CommonMiMixin = CommonMiMixin; //# sourceMappingURL=mi.js.map /***/ }), /* 176 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmo = void 0; var Wrapper_js_1 = __webpack_require__(5); var mo_js_1 = __webpack_require__(177); var mo_js_2 = __webpack_require__(32); var BBox_js_1 = __webpack_require__(16); var CHTMLmo = (function (_super) { __extends(CHTMLmo, _super); function CHTMLmo() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmo.prototype.toCHTML = function (parent) { var e_1, _a; var attributes = this.node.attributes; var symmetric = attributes.get('symmetric') && this.stretch.dir !== 2; var stretchy = this.stretch.dir !== 0; if (stretchy && this.size === null) { this.getStretchedVariant([]); } var chtml = this.standardCHTMLnode(parent); if (this.noIC) { this.adaptor.setAttribute(chtml, 'noIC', 'true'); } if (stretchy && this.size < 0) { this.stretchHTML(chtml); } else { if (symmetric || attributes.get('largeop')) { var bbox = BBox_js_1.BBox.empty(); _super.prototype.computeBBox.call(this, bbox); var u = this.em((bbox.d - bbox.h) / 2 + this.font.params.axis_height); if (u !== '0') { this.adaptor.setStyle(chtml, 'verticalAlign', u); } } try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; child.toCHTML(chtml); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } }; CHTMLmo.prototype.stretchHTML = function (chtml) { var c = this.getText().codePointAt(0); var delim = this.stretch; delim.used = true; var stretch = delim.stretch; var content = []; if (stretch[0]) { content.push(this.html('mjx-beg', {}, [this.html('mjx-c')])); } content.push(this.html('mjx-ext', {}, [this.html('mjx-c')])); if (stretch.length === 4) { content.push(this.html('mjx-mid', {}, [this.html('mjx-c')]), this.html('mjx-ext', {}, [this.html('mjx-c')])); } if (stretch[2]) { content.push(this.html('mjx-end', {}, [this.html('mjx-c')])); } var styles = {}; var _a = this.bbox, h = _a.h, d = _a.d, w = _a.w; if (delim.dir === 1) { content.push(this.html('mjx-mark')); styles.height = this.em(h + d); styles.verticalAlign = this.em(-d); } else { styles.width = this.em(w); } var dir = mo_js_1.DirectionVH[delim.dir]; var properties = { class: this.char(delim.c || c), style: styles }; var html = this.html('mjx-stretchy-' + dir, properties, content); this.adaptor.append(chtml, html); }; CHTMLmo.kind = mo_js_2.MmlMo.prototype.kind; CHTMLmo.styles = { 'mjx-stretchy-h': { display: 'inline-table', width: '100%' }, 'mjx-stretchy-h > *': { display: 'table-cell', width: 0 }, 'mjx-stretchy-h > * > mjx-c': { display: 'inline-block', transform: 'scalex(1.0000001)' }, 'mjx-stretchy-h > * > mjx-c::before': { display: 'inline-block', padding: '.001em 0', width: 'initial' }, 'mjx-stretchy-h > mjx-ext': { overflow: 'hidden', width: '100%' }, 'mjx-stretchy-h > mjx-ext > mjx-c::before': { transform: 'scalex(500)' }, 'mjx-stretchy-h > mjx-ext > mjx-c': { width: 0 }, 'mjx-stretchy-h > mjx-beg > mjx-c': { 'margin-right': '-.1em' }, 'mjx-stretchy-h > mjx-end > mjx-c': { 'margin-left': '-.1em' }, 'mjx-stretchy-v': { display: 'inline-block' }, 'mjx-stretchy-v > *': { display: 'block' }, 'mjx-stretchy-v > mjx-beg': { height: 0 }, 'mjx-stretchy-v > mjx-end > mjx-c': { display: 'block' }, 'mjx-stretchy-v > * > mjx-c': { transform: 'scaley(1.0000001)', 'transform-origin': 'left center', overflow: 'hidden' }, 'mjx-stretchy-v > mjx-ext': { display: 'block', height: '100%', 'box-sizing': 'border-box', border: '0px solid transparent', overflow: 'hidden' }, 'mjx-stretchy-v > mjx-ext > mjx-c::before': { width: 'initial' }, 'mjx-stretchy-v > mjx-ext > mjx-c': { transform: 'scaleY(500) translateY(.1em)', overflow: 'visible' }, 'mjx-mark': { display: 'inline-block', height: '0px' } }; return CHTMLmo; }(mo_js_1.CommonMoMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmo = CHTMLmo; //# sourceMappingURL=mo.js.map /***/ }), /* 177 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMoMixin = exports.DirectionVH = void 0; var FontData_js_1 = __webpack_require__(30); exports.DirectionVH = (_a = {}, _a[1] = 'v', _a[2] = 'h', _a); function CommonMoMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.noIC = false; _this.size = null; _this.isAccent = _this.node.isAccent; return _this; } class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } var stretchy = (this.stretch.dir !== 0); if (stretchy && this.size === null) { this.getStretchedVariant([0]); } if (stretchy && this.size < 0) return; _super.prototype.computeBBox.call(this, bbox); this.copySkewIC(bbox); if (this.noIC) { bbox.w -= bbox.ic; } if (this.node.attributes.get('symmetric') && this.stretch.dir !== 2) { var d = ((bbox.h + bbox.d) / 2 + this.font.params.axis_height) - bbox.h; bbox.h += d; bbox.d -= d; } }; class_1.prototype.getVariant = function () { if (this.node.attributes.get('largeop')) { this.variant = (this.node.attributes.get('displaystyle') ? '-largeop' : '-smallop'); } else { _super.prototype.getVariant.call(this); } }; class_1.prototype.canStretch = function (direction) { if (this.stretch.dir !== 0) { return this.stretch.dir === direction; } var attributes = this.node.attributes; if (!attributes.get('stretchy')) return false; var c = this.getText(); if (Array.from(c).length !== 1) return false; var delim = this.font.getDelimiter(c.codePointAt(0)); this.stretch = (delim && delim.dir === direction ? delim : FontData_js_1.NOSTRETCH); return this.stretch.dir !== 0; }; class_1.prototype.getStretchedVariant = function (WH, exact) { var e_1, _a; if (exact === void 0) { exact = false; } if (this.stretch.dir !== 0) { var D = this.getWH(WH); var min = this.getSize('minsize', 0); var max = this.getSize('maxsize', Infinity); D = Math.max(min, Math.min(max, D)); var m = (min || exact ? D : Math.max(D * this.font.params.delimiterfactor / 1000, D - this.font.params.delimitershortfall)); var delim = this.stretch; var c = delim.c || this.getText().codePointAt(0); var i = 0; if (delim.sizes) { try { for (var _b = __values(delim.sizes), _c = _b.next(); !_c.done; _c = _b.next()) { var d = _c.value; if (d >= m) { this.variant = this.font.getSizeVariant(c, i); this.size = i; return; } i++; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } if (delim.stretch) { this.size = -1; this.invalidateBBox(); this.getStretchBBox(WH, D, delim); } else { this.variant = this.font.getSizeVariant(c, i - 1); this.size = i - 1; } } }; class_1.prototype.getSize = function (name, value) { var attributes = this.node.attributes; if (attributes.isSet(name)) { value = this.length2em(attributes.get(name), 1, 1); } return value; }; class_1.prototype.getWH = function (WH) { if (WH.length === 0) return 0; if (WH.length === 1) return WH[0]; var _a = __read(WH, 2), H = _a[0], D = _a[1]; var a = this.font.params.axis_height; return (this.node.attributes.get('symmetric') ? 2 * Math.max(H - a, D + a) : H + D); }; class_1.prototype.getStretchBBox = function (WHD, D, C) { var _a; if (C.hasOwnProperty('min') && C.min > D) { D = C.min; } var _b = __read(C.HDW, 3), h = _b[0], d = _b[1], w = _b[2]; if (this.stretch.dir === 1) { _a = __read(this.getBaseline(WHD, D, C), 2), h = _a[0], d = _a[1]; } else { w = D; } this.bbox.h = h; this.bbox.d = d; this.bbox.w = w; }; class_1.prototype.getBaseline = function (WHD, HD, C) { var hasWHD = (WHD.length === 2 && WHD[0] + WHD[1] === HD); var symmetric = this.node.attributes.get('symmetric'); var _a = __read((hasWHD ? WHD : [HD, 0]), 2), H = _a[0], D = _a[1]; var _b = __read([H + D, 0], 2), h = _b[0], d = _b[1]; if (symmetric) { var a = this.font.params.axis_height; if (hasWHD) { h = 2 * Math.max(H - a, D + a); } d = h / 2 - a; } else if (hasWHD) { d = D; } else { var _c = __read((C.HDW || [.75, .25]), 2), ch = _c[0], cd = _c[1]; d = cd * (h / (ch + cd)); } return [h - d, d]; }; class_1.prototype.remapChars = function (chars) { if (chars.length === 1) { var parent_1 = this.node.coreParent().parent; var isAccent = this.isAccent && !parent_1.isKind('mrow'); var map = (isAccent ? 'accent' : 'mo'); var text = this.font.getRemappedChar(map, chars[0]); if (text) { chars = this.unicodeChars(text, this.variant); } } return chars; }; return class_1; }(Base)); } exports.CommonMoMixin = CommonMoMixin; //# sourceMappingURL=mo.js.map /***/ }), /* 178 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmn = void 0; var Wrapper_js_1 = __webpack_require__(5); var mn_js_1 = __webpack_require__(179); var mn_js_2 = __webpack_require__(59); var CHTMLmn = (function (_super) { __extends(CHTMLmn, _super); function CHTMLmn() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmn.kind = mn_js_2.MmlMn.prototype.kind; return CHTMLmn; }(mn_js_1.CommonMnMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmn = CHTMLmn; //# sourceMappingURL=mn.js.map /***/ }), /* 179 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMnMixin = void 0; function CommonMnMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.remapChars = function (chars) { if (chars.length) { var text = this.font.getRemappedChar('mn', chars[0]); if (text) { var c = this.unicodeChars(text, this.variant); if (c.length === 1) { chars[0] = c[0]; } else { chars = c.concat(chars.slice(1)); } } } return chars; }; return class_1; }(Base)); } exports.CommonMnMixin = CommonMnMixin; //# sourceMappingURL=mn.js.map /***/ }), /* 180 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLms = void 0; var Wrapper_js_1 = __webpack_require__(5); var ms_js_1 = __webpack_require__(181); var ms_js_2 = __webpack_require__(62); var CHTMLms = (function (_super) { __extends(CHTMLms, _super); function CHTMLms() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLms.kind = ms_js_2.MmlMs.prototype.kind; return CHTMLms; }(ms_js_1.CommonMsMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLms = CHTMLms; //# sourceMappingURL=ms.js.map /***/ }), /* 181 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMsMixin = void 0; function CommonMsMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; var attributes = _this.node.attributes; var quotes = attributes.getList('lquote', 'rquote'); if (_this.variant !== 'monospace') { if (!attributes.isSet('lquote') && quotes.lquote === '"') quotes.lquote = '\u201C'; if (!attributes.isSet('rquote') && quotes.rquote === '"') quotes.rquote = '\u201D'; } _this.childNodes.unshift(_this.createText(quotes.lquote)); _this.childNodes.push(_this.createText(quotes.rquote)); return _this; } class_1.prototype.createText = function (text) { var node = this.wrap(this.mmlText(text)); node.parent = this; return node; }; return class_1; }(Base)); } exports.CommonMsMixin = CommonMsMixin; //# sourceMappingURL=ms.js.map /***/ }), /* 182 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmtext = void 0; var Wrapper_js_1 = __webpack_require__(5); var mtext_js_1 = __webpack_require__(183); var mtext_js_2 = __webpack_require__(60); var CHTMLmtext = (function (_super) { __extends(CHTMLmtext, _super); function CHTMLmtext() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmtext.kind = mtext_js_2.MmlMtext.prototype.kind; return CHTMLmtext; }(mtext_js_1.CommonMtextMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmtext = CHTMLmtext; //# sourceMappingURL=mtext.js.map /***/ }), /* 183 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMtextMixin = void 0; function CommonMtextMixin(Base) { var _a; return _a = (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.getVariant = function () { var options = this.jax.options; var data = this.jax.math.outputData; var merror = ((!!data.merrorFamily || !!options.merrorFont) && this.node.Parent.isKind('merror')); if (!!data.mtextFamily || !!options.mtextFont || merror) { var variant = this.node.attributes.get('mathvariant'); var font = this.constructor.INHERITFONTS[variant] || this.jax.font.getCssFont(variant); var family = font[0] || (merror ? data.merrorFamily || options.merrorFont : data.mtextFamily || options.mtextFont); this.variant = this.explicitVariant(family, font[2] ? 'bold' : '', font[1] ? 'italic' : ''); return; } _super.prototype.getVariant.call(this); }; return class_1; }(Base)), _a.INHERITFONTS = { normal: ['', false, false], bold: ['', false, true], italic: ['', true, false], 'bold-italic': ['', true, true] }, _a; } exports.CommonMtextMixin = CommonMtextMixin; //# sourceMappingURL=mtext.js.map /***/ }), /* 184 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmspace = void 0; var Wrapper_js_1 = __webpack_require__(5); var mspace_js_1 = __webpack_require__(185); var mspace_js_2 = __webpack_require__(61); var CHTMLmspace = (function (_super) { __extends(CHTMLmspace, _super); function CHTMLmspace() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmspace.prototype.toCHTML = function (parent) { var chtml = this.standardCHTMLnode(parent); var _a = this.getBBox(), w = _a.w, h = _a.h, d = _a.d; if (w < 0) { this.adaptor.setStyle(chtml, 'marginRight', this.em(w)); w = 0; } if (w) { this.adaptor.setStyle(chtml, 'width', this.em(w)); } h = Math.max(0, h + d); if (h) { this.adaptor.setStyle(chtml, 'height', this.em(Math.max(0, h))); } if (d) { this.adaptor.setStyle(chtml, 'verticalAlign', this.em(-d)); } }; CHTMLmspace.kind = mspace_js_2.MmlMspace.prototype.kind; return CHTMLmspace; }(mspace_js_1.CommonMspaceMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmspace = CHTMLmspace; //# sourceMappingURL=mspace.js.map /***/ }), /* 185 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMspaceMixin = void 0; function CommonMspaceMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } var attributes = this.node.attributes; bbox.w = this.length2em(attributes.get('width'), 0); bbox.h = this.length2em(attributes.get('height'), 0); bbox.d = this.length2em(attributes.get('depth'), 0); }; class_1.prototype.handleVariant = function () { }; return class_1; }(Base)); } exports.CommonMspaceMixin = CommonMspaceMixin; //# sourceMappingURL=mspace.js.map /***/ }), /* 186 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmpadded = void 0; var Wrapper_js_1 = __webpack_require__(5); var mpadded_js_1 = __webpack_require__(187); var mpadded_js_2 = __webpack_require__(67); var CHTMLmpadded = (function (_super) { __extends(CHTMLmpadded, _super); function CHTMLmpadded() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmpadded.prototype.toCHTML = function (parent) { var e_1, _a; var chtml = this.standardCHTMLnode(parent); var content = []; var style = {}; var _b = __read(this.getDimens(), 9), W = _b[2], dh = _b[3], dd = _b[4], dw = _b[5], x = _b[6], y = _b[7], dx = _b[8]; if (dw) { style.width = this.em(W + dw); } if (dh || dd) { style.margin = this.em(dh) + ' 0 ' + this.em(dd); } if (x + dx || y) { style.position = 'relative'; var rbox = this.html('mjx-rbox', { style: { left: this.em(x + dx), top: this.em(-y) } }); if (x + dx && this.childNodes[0].getBBox().pwidth) { this.adaptor.setAttribute(rbox, 'width', 'full'); this.adaptor.setStyle(rbox, 'left', this.em(x)); } content.push(rbox); } chtml = this.adaptor.append(chtml, this.html('mjx-block', { style: style }, content)); try { for (var _c = __values(this.childNodes), _d = _c.next(); !_d.done; _d = _c.next()) { var child = _d.value; child.toCHTML(content[0] || chtml); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_1) throw e_1.error; } } }; CHTMLmpadded.kind = mpadded_js_2.MmlMpadded.prototype.kind; CHTMLmpadded.styles = { 'mjx-mpadded': { display: 'inline-block' }, 'mjx-rbox': { display: 'inline-block', position: 'relative' } }; return CHTMLmpadded; }(mpadded_js_1.CommonMpaddedMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmpadded = CHTMLmpadded; //# sourceMappingURL=mpadded.js.map /***/ }), /* 187 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMpaddedMixin = void 0; function CommonMpaddedMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.getDimens = function () { var values = this.node.attributes.getList('width', 'height', 'depth', 'lspace', 'voffset'); var bbox = this.childNodes[0].getBBox(); var w = bbox.w, h = bbox.h, d = bbox.d; var W = w, H = h, D = d, x = 0, y = 0, dx = 0; if (values.width !== '') w = this.dimen(values.width, bbox, 'w', 0); if (values.height !== '') h = this.dimen(values.height, bbox, 'h', 0); if (values.depth !== '') d = this.dimen(values.depth, bbox, 'd', 0); if (values.voffset !== '') y = this.dimen(values.voffset, bbox); if (values.lspace !== '') x = this.dimen(values.lspace, bbox); var align = this.node.attributes.get('data-align'); if (align) { dx = this.getAlignX(w, bbox, align); } return [H, D, W, h - H, d - D, w - W, x, y, dx]; }; class_1.prototype.dimen = function (length, bbox, d, m) { if (d === void 0) { d = ''; } if (m === void 0) { m = null; } length = String(length); var match = length.match(/width|height|depth/); var size = (match ? bbox[match[0].charAt(0)] : (d ? bbox[d] : 0)); var dimen = (this.length2em(length, size) || 0); if (length.match(/^[-+]/) && d) { dimen += size; } if (m != null) { dimen = Math.max(m, dimen); } return dimen; }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var _a = __read(this.getDimens(), 6), H = _a[0], D = _a[1], W = _a[2], dh = _a[3], dd = _a[4], dw = _a[5]; bbox.w = W + dw; bbox.h = H + dh; bbox.d = D + dd; this.setChildPWidths(recompute, bbox.w); }; class_1.prototype.getWrapWidth = function (_i) { return this.getBBox().w; }; class_1.prototype.getChildAlign = function (_i) { return this.node.attributes.get('data-align') || 'left'; }; return class_1; }(Base)); } exports.CommonMpaddedMixin = CommonMpaddedMixin; //# sourceMappingURL=mpadded.js.map /***/ }), /* 188 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmenclose = void 0; var Wrapper_js_1 = __webpack_require__(5); var menclose_js_1 = __webpack_require__(189); var Notation = __webpack_require__(190); var menclose_js_2 = __webpack_require__(69); var lengths_js_1 = __webpack_require__(19); function Angle(x, y) { return Math.atan2(x, y).toFixed(3).replace(/\.?0+$/, ''); } var ANGLE = Angle(Notation.ARROWDX, Notation.ARROWY); var CHTMLmenclose = (function (_super) { __extends(CHTMLmenclose, _super); function CHTMLmenclose() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmenclose.prototype.toCHTML = function (parent) { var e_1, _a, e_2, _b; var adaptor = this.adaptor; var chtml = this.standardCHTMLnode(parent); var block = adaptor.append(chtml, this.html('mjx-box')); if (this.renderChild) { this.renderChild(this, block); } else { this.childNodes[0].toCHTML(block); } try { for (var _c = __values(Object.keys(this.notations)), _d = _c.next(); !_d.done; _d = _c.next()) { var name_1 = _d.value; var notation = this.notations[name_1]; !notation.renderChild && notation.renderer(this, block); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_1) throw e_1.error; } } var pbox = this.getPadding(); try { for (var _e = __values(Notation.sideNames), _f = _e.next(); !_f.done; _f = _e.next()) { var name_2 = _f.value; var i = Notation.sideIndex[name_2]; pbox[i] > 0 && adaptor.setStyle(block, 'padding-' + name_2, this.em(pbox[i])); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_2) throw e_2.error; } } }; CHTMLmenclose.prototype.arrow = function (w, a, double) { if (double === void 0) { double = false; } var W = this.getBBox().w; var style = { width: this.em(w) }; if (W !== w) { style.left = this.em((W - w) / 2); } if (a) { style.transform = 'rotate(' + this.fixed(a) + 'rad)'; } var arrow = this.html('mjx-arrow', { style: style }, [ this.html('mjx-aline'), this.html('mjx-rthead'), this.html('mjx-rbhead') ]); if (double) { this.adaptor.append(arrow, this.html('mjx-lthead')); this.adaptor.append(arrow, this.html('mjx-lbhead')); this.adaptor.setAttribute(arrow, 'double', 'true'); } this.adjustArrow(arrow, double); return arrow; }; CHTMLmenclose.prototype.adjustArrow = function (arrow, double) { var _this = this; var t = this.thickness; var head = this.arrowhead; if (head.x === Notation.ARROWX && head.y === Notation.ARROWY && head.dx === Notation.ARROWDX && t === Notation.THICKNESS) return; var _a = __read([t * head.x, t * head.y].map(function (x) { return _this.em(x); }), 2), x = _a[0], y = _a[1]; var a = Angle(head.dx, head.y); var _b = __read(this.adaptor.childNodes(arrow), 5), line = _b[0], rthead = _b[1], rbhead = _b[2], lthead = _b[3], lbhead = _b[4]; this.adjustHead(rthead, [y, '0', '1px', x], a); this.adjustHead(rbhead, ['1px', '0', y, x], '-' + a); this.adjustHead(lthead, [y, x, '1px', '0'], '-' + a); this.adjustHead(lbhead, ['1px', x, y, '0'], a); this.adjustLine(line, t, head.x, double); }; CHTMLmenclose.prototype.adjustHead = function (head, border, a) { if (head) { this.adaptor.setStyle(head, 'border-width', border.join(' ')); this.adaptor.setStyle(head, 'transform', 'skewX(' + a + 'rad)'); } }; CHTMLmenclose.prototype.adjustLine = function (line, t, x, double) { this.adaptor.setStyle(line, 'borderTop', this.em(t) + ' solid'); this.adaptor.setStyle(line, 'top', this.em(-t / 2)); this.adaptor.setStyle(line, 'right', this.em(t * (x - 1))); if (double) { this.adaptor.setStyle(line, 'left', this.em(t * (x - 1))); } }; CHTMLmenclose.prototype.adjustBorder = function (node) { if (this.thickness !== Notation.THICKNESS) { this.adaptor.setStyle(node, 'borderWidth', this.em(this.thickness)); } return node; }; CHTMLmenclose.prototype.adjustThickness = function (shape) { if (this.thickness !== Notation.THICKNESS) { this.adaptor.setStyle(shape, 'strokeWidth', this.fixed(this.thickness)); } return shape; }; CHTMLmenclose.prototype.fixed = function (m, n) { if (n === void 0) { n = 3; } if (Math.abs(m) < .0006) { return '0'; } return m.toFixed(n).replace(/\.?0+$/, ''); }; CHTMLmenclose.prototype.em = function (m) { return _super.prototype.em.call(this, m); }; CHTMLmenclose.kind = menclose_js_2.MmlMenclose.prototype.kind; CHTMLmenclose.styles = { 'mjx-menclose': { position: 'relative' }, 'mjx-menclose > mjx-dstrike': { display: 'inline-block', left: 0, top: 0, position: 'absolute', 'border-top': Notation.SOLID, 'transform-origin': 'top left' }, 'mjx-menclose > mjx-ustrike': { display: 'inline-block', left: 0, bottom: 0, position: 'absolute', 'border-top': Notation.SOLID, 'transform-origin': 'bottom left' }, 'mjx-menclose > mjx-hstrike': { 'border-top': Notation.SOLID, position: 'absolute', left: 0, right: 0, bottom: '50%', transform: 'translateY(' + lengths_js_1.em(Notation.THICKNESS / 2) + ')' }, 'mjx-menclose > mjx-vstrike': { 'border-left': Notation.SOLID, position: 'absolute', top: 0, bottom: 0, right: '50%', transform: 'translateX(' + lengths_js_1.em(Notation.THICKNESS / 2) + ')' }, 'mjx-menclose > mjx-rbox': { position: 'absolute', top: 0, bottom: 0, right: 0, left: 0, 'border': Notation.SOLID, 'border-radius': lengths_js_1.em(Notation.THICKNESS + Notation.PADDING) }, 'mjx-menclose > mjx-cbox': { position: 'absolute', top: 0, bottom: 0, right: 0, left: 0, 'border': Notation.SOLID, 'border-radius': '50%' }, 'mjx-menclose > mjx-arrow': { position: 'absolute', left: 0, bottom: '50%', height: 0, width: 0 }, 'mjx-menclose > mjx-arrow > *': { display: 'block', position: 'absolute', 'transform-origin': 'bottom', 'border-left': lengths_js_1.em(Notation.THICKNESS * Notation.ARROWX) + ' solid', 'border-right': 0, 'box-sizing': 'border-box' }, 'mjx-menclose > mjx-arrow > mjx-aline': { left: 0, top: lengths_js_1.em(-Notation.THICKNESS / 2), right: lengths_js_1.em(Notation.THICKNESS * (Notation.ARROWX - 1)), height: 0, 'border-top': lengths_js_1.em(Notation.THICKNESS) + ' solid', 'border-left': 0 }, 'mjx-menclose > mjx-arrow[double] > mjx-aline': { left: lengths_js_1.em(Notation.THICKNESS * (Notation.ARROWX - 1)), height: 0, }, 'mjx-menclose > mjx-arrow > mjx-rthead': { transform: 'skewX(' + ANGLE + 'rad)', right: 0, bottom: '-1px', 'border-bottom': '1px solid transparent', 'border-top': lengths_js_1.em(Notation.THICKNESS * Notation.ARROWY) + ' solid transparent' }, 'mjx-menclose > mjx-arrow > mjx-rbhead': { transform: 'skewX(-' + ANGLE + 'rad)', 'transform-origin': 'top', right: 0, top: '-1px', 'border-top': '1px solid transparent', 'border-bottom': lengths_js_1.em(Notation.THICKNESS * Notation.ARROWY) + ' solid transparent' }, 'mjx-menclose > mjx-arrow > mjx-lthead': { transform: 'skewX(-' + ANGLE + 'rad)', left: 0, bottom: '-1px', 'border-left': 0, 'border-right': lengths_js_1.em(Notation.THICKNESS * Notation.ARROWX) + ' solid', 'border-bottom': '1px solid transparent', 'border-top': lengths_js_1.em(Notation.THICKNESS * Notation.ARROWY) + ' solid transparent' }, 'mjx-menclose > mjx-arrow > mjx-lbhead': { transform: 'skewX(' + ANGLE + 'rad)', 'transform-origin': 'top', left: 0, top: '-1px', 'border-left': 0, 'border-right': lengths_js_1.em(Notation.THICKNESS * Notation.ARROWX) + ' solid', 'border-top': '1px solid transparent', 'border-bottom': lengths_js_1.em(Notation.THICKNESS * Notation.ARROWY) + ' solid transparent' }, 'mjx-menclose > dbox': { position: 'absolute', top: 0, bottom: 0, left: lengths_js_1.em(-1.5 * Notation.PADDING), width: lengths_js_1.em(3 * Notation.PADDING), border: lengths_js_1.em(Notation.THICKNESS) + ' solid', 'border-radius': '50%', 'clip-path': 'inset(0 0 0 ' + lengths_js_1.em(1.5 * Notation.PADDING) + ')', 'box-sizing': 'border-box' } }; CHTMLmenclose.notations = new Map([ Notation.Border('top'), Notation.Border('right'), Notation.Border('bottom'), Notation.Border('left'), Notation.Border2('actuarial', 'top', 'right'), Notation.Border2('madruwb', 'bottom', 'right'), Notation.DiagonalStrike('up', 1), Notation.DiagonalStrike('down', -1), ['horizontalstrike', { renderer: Notation.RenderElement('hstrike', 'Y'), bbox: function (node) { return [0, node.padding, 0, node.padding]; } }], ['verticalstrike', { renderer: Notation.RenderElement('vstrike', 'X'), bbox: function (node) { return [node.padding, 0, node.padding, 0]; } }], ['box', { renderer: function (node, child) { node.adaptor.setStyle(child, 'border', node.em(node.thickness) + ' solid'); }, bbox: Notation.fullBBox, border: Notation.fullBorder, remove: 'left right top bottom' }], ['roundedbox', { renderer: Notation.RenderElement('rbox'), bbox: Notation.fullBBox }], ['circle', { renderer: Notation.RenderElement('cbox'), bbox: Notation.fullBBox }], ['phasorangle', { renderer: function (node, child) { var _a = node.getBBox(), h = _a.h, d = _a.d; var _b = __read(node.getArgMod(1.75 * node.padding, h + d), 2), a = _b[0], W = _b[1]; var t = node.thickness * Math.sin(a) * .9; node.adaptor.setStyle(child, 'border-bottom', node.em(node.thickness) + ' solid'); var strike = node.adjustBorder(node.html('mjx-ustrike', { style: { width: node.em(W), transform: 'translateX(' + node.em(t) + ') rotate(' + node.fixed(-a) + 'rad)', } })); node.adaptor.append(node.chtml, strike); }, bbox: function (node) { var p = node.padding / 2; var t = node.thickness; return [2 * p, p, p + t, 3 * p + t]; }, border: function (node) { return [0, 0, node.thickness, 0]; }, remove: 'bottom' }], Notation.Arrow('up'), Notation.Arrow('down'), Notation.Arrow('left'), Notation.Arrow('right'), Notation.Arrow('updown'), Notation.Arrow('leftright'), Notation.DiagonalArrow('updiagonal'), Notation.DiagonalArrow('northeast'), Notation.DiagonalArrow('southeast'), Notation.DiagonalArrow('northwest'), Notation.DiagonalArrow('southwest'), Notation.DiagonalArrow('northeastsouthwest'), Notation.DiagonalArrow('northwestsoutheast'), ['longdiv', { renderer: function (node, child) { var adaptor = node.adaptor; adaptor.setStyle(child, 'border-top', node.em(node.thickness) + ' solid'); var arc = adaptor.append(node.chtml, node.html('dbox')); var t = node.thickness; var p = node.padding; if (t !== Notation.THICKNESS) { adaptor.setStyle(arc, 'border-width', node.em(t)); } if (p !== Notation.PADDING) { adaptor.setStyle(arc, 'left', node.em(-1.5 * p)); adaptor.setStyle(arc, 'width', node.em(3 * p)); adaptor.setStyle(arc, 'clip-path', 'inset(0 0 0 ' + node.em(1.5 * p) + ')'); } }, bbox: function (node) { var p = node.padding; var t = node.thickness; return [p + t, p, p, 2 * p + t / 2]; } }], ['radical', { renderer: function (node, child) { node.msqrt.toCHTML(child); var TRBL = node.sqrtTRBL(); node.adaptor.setStyle(node.msqrt.chtml, 'margin', TRBL.map(function (x) { return node.em(-x); }).join(' ')); }, init: function (node) { node.msqrt = node.createMsqrt(node.childNodes[0]); }, bbox: function (node) { return node.sqrtTRBL(); }, renderChild: true }] ]); return CHTMLmenclose; }(menclose_js_1.CommonMencloseMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmenclose = CHTMLmenclose; //# sourceMappingURL=menclose.js.map /***/ }), /* 189 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMencloseMixin = void 0; var Notation = __webpack_require__(45); var string_js_1 = __webpack_require__(14); function CommonMencloseMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.notations = {}; _this.renderChild = null; _this.msqrt = null; _this.padding = Notation.PADDING; _this.thickness = Notation.THICKNESS; _this.arrowhead = { x: Notation.ARROWX, y: Notation.ARROWY, dx: Notation.ARROWDX }; _this.getParameters(); _this.getNotations(); _this.removeRedundantNotations(); _this.initializeNotations(); return _this; } class_1.prototype.getParameters = function () { var attributes = this.node.attributes; var padding = attributes.get('data-padding'); if (padding !== undefined) { this.padding = this.length2em(padding, Notation.PADDING); } var thickness = attributes.get('data-thickness'); if (thickness !== undefined) { this.thickness = this.length2em(thickness, Notation.THICKNESS); } var arrowhead = attributes.get('data-arrowhead'); if (arrowhead !== undefined) { var _b = __read(string_js_1.split(arrowhead), 3), x = _b[0], y = _b[1], dx = _b[2]; this.arrowhead = { x: (x ? parseFloat(x) : Notation.ARROWX), y: (y ? parseFloat(y) : Notation.ARROWY), dx: (dx ? parseFloat(dx) : Notation.ARROWDX) }; } }; class_1.prototype.getNotations = function () { var e_1, _b; var Notations = this.constructor.notations; try { for (var _c = __values(string_js_1.split(this.node.attributes.get('notation'))), _d = _c.next(); !_d.done; _d = _c.next()) { var name_1 = _d.value; var notation = Notations.get(name_1); if (notation) { this.notations[name_1] = notation; if (notation.renderChild) { this.renderChild = notation.renderer; } } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_b = _c.return)) _b.call(_c); } finally { if (e_1) throw e_1.error; } } }; class_1.prototype.removeRedundantNotations = function () { var e_2, _b, e_3, _c; try { for (var _d = __values(Object.keys(this.notations)), _e = _d.next(); !_e.done; _e = _d.next()) { var name_2 = _e.value; if (this.notations[name_2]) { var remove = this.notations[name_2].remove || ''; try { for (var _f = (e_3 = void 0, __values(remove.split(/ /))), _g = _f.next(); !_g.done; _g = _f.next()) { var notation = _g.value; delete this.notations[notation]; } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_g && !_g.done && (_c = _f.return)) _c.call(_f); } finally { if (e_3) throw e_3.error; } } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_e && !_e.done && (_b = _d.return)) _b.call(_d); } finally { if (e_2) throw e_2.error; } } }; class_1.prototype.initializeNotations = function () { var e_4, _b; try { for (var _c = __values(Object.keys(this.notations)), _d = _c.next(); !_d.done; _d = _c.next()) { var name_3 = _d.value; var init = this.notations[name_3].init; init && init(this); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_d && !_d.done && (_b = _c.return)) _b.call(_c); } finally { if (e_4) throw e_4.error; } } }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var _b = __read(this.getBBoxExtenders(), 4), T = _b[0], R = _b[1], B = _b[2], L = _b[3]; var child = this.childNodes[0].getBBox(); bbox.combine(child, L, 0); bbox.h += T; bbox.d += B; bbox.w += R; this.setChildPWidths(recompute); }; class_1.prototype.getBBoxExtenders = function () { var e_5, _b; var TRBL = [0, 0, 0, 0]; try { for (var _c = __values(Object.keys(this.notations)), _d = _c.next(); !_d.done; _d = _c.next()) { var name_4 = _d.value; this.maximizeEntries(TRBL, this.notations[name_4].bbox(this)); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_d && !_d.done && (_b = _c.return)) _b.call(_c); } finally { if (e_5) throw e_5.error; } } return TRBL; }; class_1.prototype.getPadding = function () { var e_6, _b; var TRBL = [0, 0, 0, 0]; var BTRBL = [0, 0, 0, 0]; try { for (var _c = __values(Object.keys(this.notations)), _d = _c.next(); !_d.done; _d = _c.next()) { var name_5 = _d.value; this.maximizeEntries(TRBL, this.notations[name_5].bbox(this)); var border = this.notations[name_5].border; if (border) { this.maximizeEntries(BTRBL, border(this)); } } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_d && !_d.done && (_b = _c.return)) _b.call(_c); } finally { if (e_6) throw e_6.error; } } return [0, 1, 2, 3].map(function (i) { return TRBL[i] - BTRBL[i]; }); }; class_1.prototype.maximizeEntries = function (X, Y) { for (var i = 0; i < X.length; i++) { if (X[i] < Y[i]) { X[i] = Y[i]; } } }; class_1.prototype.getArgMod = function (w, h) { return [Math.atan2(h, w), Math.sqrt(w * w + h * h)]; }; class_1.prototype.arrow = function (_w, _a, _double) { if (_double === void 0) { _double = false; } return null; }; class_1.prototype.arrowData = function () { var _b = __read([this.padding, this.thickness], 2), p = _b[0], t = _b[1]; var r = t * (this.arrowhead.x + Math.max(1, this.arrowhead.dx)); var _c = this.childNodes[0].getBBox(), h = _c.h, d = _c.d, w = _c.w; var H = h + d; var R = Math.sqrt(H * H + w * w); var x = Math.max(p, r * w / R); var y = Math.max(p, r * H / R); var _d = __read(this.getArgMod(w + 2 * x, H + 2 * y), 2), a = _d[0], W = _d[1]; return { a: a, W: W, x: x, y: y }; }; class_1.prototype.createMsqrt = function (child) { var mmlFactory = this.node.factory; var mml = mmlFactory.create('msqrt'); mml.inheritAttributesFrom(this.node); mml.childNodes[0] = child.node; var node = this.wrap(mml); node.parent = this; return node; }; class_1.prototype.sqrtTRBL = function () { var bbox = this.msqrt.getBBox(); var cbox = this.msqrt.childNodes[0].getBBox(); return [bbox.h - cbox.h, 0, bbox.d - cbox.d, bbox.w - cbox.w]; }; return class_1; }(Base)); } exports.CommonMencloseMixin = CommonMencloseMixin; //# sourceMappingURL=menclose.js.map /***/ }), /* 190 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Arrow = exports.DiagonalArrow = exports.DiagonalStrike = exports.Border2 = exports.Border = exports.RenderElement = void 0; var Notation = __webpack_require__(45); __exportStar(__webpack_require__(45), exports); exports.RenderElement = function (name, offset) { if (offset === void 0) { offset = ''; } return (function (node, _child) { var shape = node.adjustBorder(node.html('mjx-' + name)); if (offset && node.thickness !== Notation.THICKNESS) { var transform = 'translate' + offset + '(' + node.em(node.thickness / 2) + ')'; node.adaptor.setStyle(shape, 'transform', transform); } node.adaptor.append(node.chtml, shape); }); }; exports.Border = function (side) { return Notation.CommonBorder(function (node, child) { node.adaptor.setStyle(child, 'border-' + side, node.em(node.thickness) + ' solid'); })(side); }; exports.Border2 = function (name, side1, side2) { return Notation.CommonBorder2(function (node, child) { var border = node.em(node.thickness) + ' solid'; node.adaptor.setStyle(child, 'border-' + side1, border); node.adaptor.setStyle(child, 'border-' + side2, border); })(name, side1, side2); }; exports.DiagonalStrike = function (name, neg) { return Notation.CommonDiagonalStrike(function (cname) { return function (node, _child) { var _a = node.getBBox(), w = _a.w, h = _a.h, d = _a.d; var _b = __read(node.getArgMod(w, h + d), 2), a = _b[0], W = _b[1]; var t = neg * node.thickness / 2; var strike = node.adjustBorder(node.html(cname, { style: { width: node.em(W), transform: 'rotate(' + node.fixed(-neg * a) + 'rad) translateY(' + t + 'em)', } })); node.adaptor.append(node.chtml, strike); }; })(name); }; exports.DiagonalArrow = function (name) { return Notation.CommonDiagonalArrow(function (node, arrow) { node.adaptor.append(node.chtml, arrow); })(name); }; exports.Arrow = function (name) { return Notation.CommonArrow(function (node, arrow) { node.adaptor.append(node.chtml, arrow); })(name); }; //# sourceMappingURL=Notation.js.map /***/ }), /* 191 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLinferredMrow = exports.CHTMLmrow = void 0; var Wrapper_js_1 = __webpack_require__(5); var mrow_js_1 = __webpack_require__(89); var mrow_js_2 = __webpack_require__(89); var mrow_js_3 = __webpack_require__(63); var CHTMLmrow = (function (_super) { __extends(CHTMLmrow, _super); function CHTMLmrow() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmrow.prototype.toCHTML = function (parent) { var e_1, _a; var chtml = (this.node.isInferred ? (this.chtml = parent) : this.standardCHTMLnode(parent)); var hasNegative = false; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; child.toCHTML(chtml); if (child.bbox.w < 0) { hasNegative = true; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } if (hasNegative) { var w = this.getBBox().w; if (w) { this.adaptor.setStyle(chtml, 'width', this.em(Math.max(0, w))); if (w < 0) { this.adaptor.setStyle(chtml, 'marginRight', this.em(w)); } } } }; CHTMLmrow.kind = mrow_js_3.MmlMrow.prototype.kind; return CHTMLmrow; }(mrow_js_1.CommonMrowMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmrow = CHTMLmrow; var CHTMLinferredMrow = (function (_super) { __extends(CHTMLinferredMrow, _super); function CHTMLinferredMrow() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLinferredMrow.kind = mrow_js_3.MmlInferredMrow.prototype.kind; return CHTMLinferredMrow; }(mrow_js_2.CommonInferredMrowMixin(CHTMLmrow))); exports.CHTMLinferredMrow = CHTMLinferredMrow; //# sourceMappingURL=mrow.js.map /***/ }), /* 192 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmfenced = void 0; var Wrapper_js_1 = __webpack_require__(5); var mfenced_js_1 = __webpack_require__(193); var mfenced_js_2 = __webpack_require__(68); var CHTMLmfenced = (function (_super) { __extends(CHTMLmfenced, _super); function CHTMLmfenced() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmfenced.prototype.toCHTML = function (parent) { var chtml = this.standardCHTMLnode(parent); this.mrow.toCHTML(chtml); }; CHTMLmfenced.kind = mfenced_js_2.MmlMfenced.prototype.kind; return CHTMLmfenced; }(mfenced_js_1.CommonMfencedMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmfenced = CHTMLmfenced; //# sourceMappingURL=mfenced.js.map /***/ }), /* 193 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMfencedMixin = void 0; function CommonMfencedMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.mrow = null; _this.createMrow(); _this.addMrowChildren(); return _this; } class_1.prototype.createMrow = function () { var mmlFactory = this.node.factory; var mrow = mmlFactory.create('inferredMrow'); mrow.inheritAttributesFrom(this.node); this.mrow = this.wrap(mrow); this.mrow.parent = this; }; class_1.prototype.addMrowChildren = function () { var e_1, _a; var mfenced = this.node; var mrow = this.mrow; this.addMo(mfenced.open); if (this.childNodes.length) { mrow.childNodes.push(this.childNodes[0]); } var i = 0; try { for (var _b = __values(this.childNodes.slice(1)), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; this.addMo(mfenced.separators[i++]); mrow.childNodes.push(child); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this.addMo(mfenced.close); mrow.stretchChildren(); }; class_1.prototype.addMo = function (node) { if (!node) return; var mo = this.wrap(node); this.mrow.childNodes.push(mo); mo.parent = this.mrow; }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } bbox.updateFrom(this.mrow.getBBox()); this.setChildPWidths(recompute); }; return class_1; }(Base)); } exports.CommonMfencedMixin = CommonMfencedMixin; //# sourceMappingURL=mfenced.js.map /***/ }), /* 194 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmfrac = void 0; var Wrapper_js_1 = __webpack_require__(5); var mfrac_js_1 = __webpack_require__(195); var mfrac_js_2 = __webpack_require__(64); var CHTMLmfrac = (function (_super) { __extends(CHTMLmfrac, _super); function CHTMLmfrac() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmfrac.prototype.toCHTML = function (parent) { this.standardCHTMLnode(parent); var _a = this.node.attributes.getList('linethickness', 'bevelled'), linethickness = _a.linethickness, bevelled = _a.bevelled; var display = this.isDisplay(); if (bevelled) { this.makeBevelled(display); } else { var thickness = this.length2em(String(linethickness), .06); if (thickness === 0) { this.makeAtop(display); } else { this.makeFraction(display, thickness); } } }; CHTMLmfrac.prototype.makeFraction = function (display, t) { var _a = this.node.attributes.getList('numalign', 'denomalign'), numalign = _a.numalign, denomalign = _a.denomalign; var withDelims = this.node.getProperty('withDelims'); var attr = (display ? { type: 'd' } : {}); var fattr = (withDelims ? __assign(__assign({}, attr), { delims: 'true' }) : __assign({}, attr)); var nattr = (numalign !== 'center' ? { align: numalign } : {}); var dattr = (denomalign !== 'center' ? { align: denomalign } : {}); var dsattr = __assign({}, attr), nsattr = __assign({}, attr); var tex = this.font.params; if (t !== .06) { var a = tex.axis_height; var tEm = this.em(t); var _b = this.getTUV(display, t), T = _b.T, u = _b.u, v = _b.v; var m = (display ? this.em(3 * t) : tEm) + ' -.1em'; attr.style = { height: tEm, 'border-top': tEm + ' solid', margin: m }; var nh = this.em(Math.max(0, u)); nsattr.style = { height: nh, 'vertical-align': '-' + nh }; dsattr.style = { height: this.em(Math.max(0, v)) }; fattr.style = { 'vertical-align': this.em(a - T) }; } var num, den; this.adaptor.append(this.chtml, this.html('mjx-frac', fattr, [ num = this.html('mjx-num', nattr, [this.html('mjx-nstrut', nsattr)]), this.html('mjx-dbox', {}, [ this.html('mjx-dtable', {}, [ this.html('mjx-line', attr), this.html('mjx-row', {}, [ den = this.html('mjx-den', dattr, [this.html('mjx-dstrut', dsattr)]) ]) ]) ]) ])); this.childNodes[0].toCHTML(num); this.childNodes[1].toCHTML(den); }; CHTMLmfrac.prototype.makeAtop = function (display) { var _a = this.node.attributes.getList('numalign', 'denomalign'), numalign = _a.numalign, denomalign = _a.denomalign; var withDelims = this.node.getProperty('withDelims'); var attr = (display ? { type: 'd', atop: true } : { atop: true }); var fattr = (withDelims ? __assign(__assign({}, attr), { delims: true }) : __assign({}, attr)); var nattr = (numalign !== 'center' ? { align: numalign } : {}); var dattr = (denomalign !== 'center' ? { align: denomalign } : {}); var _b = this.getUVQ(display), v = _b.v, q = _b.q; nattr.style = { 'padding-bottom': this.em(q) }; fattr.style = { 'vertical-align': this.em(-v) }; var num, den; this.adaptor.append(this.chtml, this.html('mjx-frac', fattr, [ num = this.html('mjx-num', nattr), den = this.html('mjx-den', dattr) ])); this.childNodes[0].toCHTML(num); this.childNodes[1].toCHTML(den); }; CHTMLmfrac.prototype.makeBevelled = function (display) { var adaptor = this.adaptor; adaptor.setAttribute(this.chtml, 'bevelled', 'ture'); var num = adaptor.append(this.chtml, this.html('mjx-num')); this.childNodes[0].toCHTML(num); this.bevel.toCHTML(this.chtml); var den = adaptor.append(this.chtml, this.html('mjx-den')); this.childNodes[1].toCHTML(den); var _a = this.getBevelData(display), u = _a.u, v = _a.v, delta = _a.delta, nbox = _a.nbox, dbox = _a.dbox; if (u) { adaptor.setStyle(num, 'verticalAlign', this.em(u / nbox.scale)); } if (v) { adaptor.setStyle(den, 'verticalAlign', this.em(v / dbox.scale)); } var dx = this.em(-delta / 2); adaptor.setStyle(this.bevel.chtml, 'marginLeft', dx); adaptor.setStyle(this.bevel.chtml, 'marginRight', dx); }; CHTMLmfrac.kind = mfrac_js_2.MmlMfrac.prototype.kind; CHTMLmfrac.styles = { 'mjx-frac': { display: 'inline-block', 'vertical-align': '0.17em', padding: '0 .22em' }, 'mjx-frac[type="d"]': { 'vertical-align': '.04em' }, 'mjx-frac[delims]': { padding: '0 .1em' }, 'mjx-frac[atop]': { padding: '0 .12em' }, 'mjx-frac[atop][delims]': { padding: '0' }, 'mjx-dtable': { display: 'inline-table', width: '100%' }, 'mjx-dtable > *': { 'font-size': '2000%' }, 'mjx-dbox': { display: 'block', 'font-size': '5%' }, 'mjx-num': { display: 'block', 'text-align': 'center' }, 'mjx-den': { display: 'block', 'text-align': 'center' }, 'mjx-mfrac[bevelled] > mjx-num': { display: 'inline-block' }, 'mjx-mfrac[bevelled] > mjx-den': { display: 'inline-block' }, 'mjx-den[align="right"], mjx-num[align="right"]': { 'text-align': 'right' }, 'mjx-den[align="left"], mjx-num[align="left"]': { 'text-align': 'left' }, 'mjx-nstrut': { display: 'inline-block', height: '.054em', width: 0, 'vertical-align': '-.054em' }, 'mjx-nstrut[type="d"]': { height: '.217em', 'vertical-align': '-.217em', }, 'mjx-dstrut': { display: 'inline-block', height: '.505em', width: 0 }, 'mjx-dstrut[type="d"]': { height: '.726em', }, 'mjx-line': { display: 'block', 'box-sizing': 'border-box', 'min-height': '1px', height: '.06em', 'border-top': '.06em solid', margin: '.06em -.1em', overflow: 'hidden' }, 'mjx-line[type="d"]': { margin: '.18em -.1em' } }; return CHTMLmfrac; }(mfrac_js_1.CommonMfracMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmfrac = CHTMLmfrac; //# sourceMappingURL=mfrac.js.map /***/ }), /* 195 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMfracMixin = void 0; function CommonMfracMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.bevel = null; _this.pad = (_this.node.getProperty('withDelims') ? 0 : _this.font.params.nulldelimiterspace); if (_this.node.attributes.get('bevelled')) { var H = _this.getBevelData(_this.isDisplay()).H; var bevel = _this.bevel = _this.createMo('/'); bevel.canStretch(1); bevel.getStretchedVariant([H], true); } return _this; } class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } bbox.empty(); var _a = this.node.attributes.getList('linethickness', 'bevelled'), linethickness = _a.linethickness, bevelled = _a.bevelled; var display = this.isDisplay(); var w = null; if (bevelled) { this.getBevelledBBox(bbox, display); } else { var thickness = this.length2em(String(linethickness), .06); w = -2 * this.pad; if (thickness === 0) { this.getAtopBBox(bbox, display); } else { this.getFractionBBox(bbox, display, thickness); w -= .2; } w += bbox.w; } bbox.clean(); this.setChildPWidths(recompute, w); }; class_1.prototype.getFractionBBox = function (bbox, display, t) { var nbox = this.childNodes[0].getBBox(); var dbox = this.childNodes[1].getBBox(); var tex = this.font.params; var a = tex.axis_height; var _a = this.getTUV(display, t), T = _a.T, u = _a.u, v = _a.v; bbox.combine(nbox, 0, a + T + Math.max(nbox.d * nbox.rscale, u)); bbox.combine(dbox, 0, a - T - Math.max(dbox.h * dbox.rscale, v)); bbox.w += 2 * this.pad + .2; }; class_1.prototype.getTUV = function (display, t) { var tex = this.font.params; var a = tex.axis_height; var T = (display ? 3.5 : 1.5) * t; return { T: (display ? 3.5 : 1.5) * t, u: (display ? tex.num1 : tex.num2) - a - T, v: (display ? tex.denom1 : tex.denom2) + a - T }; }; class_1.prototype.getAtopBBox = function (bbox, display) { var _a = this.getUVQ(display), u = _a.u, v = _a.v, nbox = _a.nbox, dbox = _a.dbox; bbox.combine(nbox, 0, u); bbox.combine(dbox, 0, -v); bbox.w += 2 * this.pad; }; class_1.prototype.getUVQ = function (display) { var nbox = this.childNodes[0].getBBox(); var dbox = this.childNodes[1].getBBox(); var tex = this.font.params; var _a = __read((display ? [tex.num1, tex.denom1] : [tex.num3, tex.denom2]), 2), u = _a[0], v = _a[1]; var p = (display ? 7 : 3) * tex.rule_thickness; var q = (u - nbox.d * nbox.scale) - (dbox.h * dbox.scale - v); if (q < p) { u += (p - q) / 2; v += (p - q) / 2; q = p; } return { u: u, v: v, q: q, nbox: nbox, dbox: dbox }; }; class_1.prototype.getBevelledBBox = function (bbox, display) { var _a = this.getBevelData(display), u = _a.u, v = _a.v, delta = _a.delta, nbox = _a.nbox, dbox = _a.dbox; var lbox = this.bevel.getBBox(); bbox.combine(nbox, 0, u); bbox.combine(lbox, bbox.w - delta / 2, 0); bbox.combine(dbox, bbox.w - delta / 2, v); }; class_1.prototype.getBevelData = function (display) { var nbox = this.childNodes[0].getBBox(); var dbox = this.childNodes[1].getBBox(); var delta = (display ? .4 : .15); var H = Math.max(nbox.scale * (nbox.h + nbox.d), dbox.scale * (dbox.h + dbox.d)) + 2 * delta; var a = this.font.params.axis_height; var u = nbox.scale * (nbox.d - nbox.h) / 2 + a + delta; var v = dbox.scale * (dbox.d - dbox.h) / 2 + a - delta; return { H: H, delta: delta, u: u, v: v, nbox: nbox, dbox: dbox }; }; class_1.prototype.canStretch = function (_direction) { return false; }; class_1.prototype.isDisplay = function () { var _a = this.node.attributes.getList('displaystyle', 'scriptlevel'), displaystyle = _a.displaystyle, scriptlevel = _a.scriptlevel; return displaystyle && scriptlevel === 0; }; class_1.prototype.getWrapWidth = function (i) { var attributes = this.node.attributes; if (attributes.get('bevelled')) { return this.childNodes[i].getBBox().w; } var w = this.getBBox().w; var thickness = this.length2em(attributes.get('linethickness')); return w - (thickness ? .2 : 0) - 2 * this.pad; }; class_1.prototype.getChildAlign = function (i) { var attributes = this.node.attributes; return (attributes.get('bevelled') ? 'left' : attributes.get(['numalign', 'denomalign'][i])); }; return class_1; }(Base)); } exports.CommonMfracMixin = CommonMfracMixin; //# sourceMappingURL=mfrac.js.map /***/ }), /* 196 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMsqrtMixin = void 0; var BBox_js_1 = __webpack_require__(16); function CommonMsqrtMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; var surd = _this.createMo('\u221A'); surd.canStretch(1); var _a = _this.childNodes[_this.base].getBBox(), h = _a.h, d = _a.d; var t = _this.font.params.rule_thickness; var p = (_this.node.attributes.get('displaystyle') ? _this.font.params.x_height : t); _this.surdH = h + d + 2 * t + p / 4; surd.getStretchedVariant([_this.surdH - d, d], true); return _this; } Object.defineProperty(class_1.prototype, "base", { get: function () { return 0; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "surd", { get: function () { return 1; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "root", { get: function () { return null; }, enumerable: false, configurable: true }); class_1.prototype.createMo = function (text) { var node = _super.prototype.createMo.call(this, text); this.childNodes.push(node); return node; }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var surdbox = this.childNodes[this.surd].getBBox(); var basebox = new BBox_js_1.BBox(this.childNodes[this.base].getBBox()); var q = this.getPQ(surdbox)[1]; var t = this.font.params.rule_thickness; var H = basebox.h + q + t; var _a = __read(this.getRootDimens(surdbox, H), 1), x = _a[0]; bbox.h = H + t; this.combineRootBBox(bbox, surdbox, H); bbox.combine(surdbox, x, H - surdbox.h); bbox.combine(basebox, x + surdbox.w, 0); bbox.clean(); this.setChildPWidths(recompute); }; class_1.prototype.combineRootBBox = function (_bbox, _sbox, _H) { }; class_1.prototype.getPQ = function (sbox) { var t = this.font.params.rule_thickness; var p = (this.node.attributes.get('displaystyle') ? this.font.params.x_height : t); var q = (sbox.h + sbox.d > this.surdH ? ((sbox.h + sbox.d) - (this.surdH - 2 * t - p / 2)) / 2 : t + p / 4); return [p, q]; }; class_1.prototype.getRootDimens = function (_sbox, _H) { return [0, 0, 0, 0]; }; return class_1; }(Base)); } exports.CommonMsqrtMixin = CommonMsqrtMixin; //# sourceMappingURL=msqrt.js.map /***/ }), /* 197 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmroot = void 0; var msqrt_js_1 = __webpack_require__(90); var mroot_js_1 = __webpack_require__(198); var mroot_js_2 = __webpack_require__(66); var CHTMLmroot = (function (_super) { __extends(CHTMLmroot, _super); function CHTMLmroot() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmroot.prototype.addRoot = function (ROOT, root, sbox, H) { root.toCHTML(ROOT); var _a = __read(this.getRootDimens(sbox, H), 3), x = _a[0], h = _a[1], dx = _a[2]; this.adaptor.setStyle(ROOT, 'verticalAlign', this.em(h)); this.adaptor.setStyle(ROOT, 'width', this.em(x)); if (dx) { this.adaptor.setStyle(this.adaptor.firstChild(ROOT), 'paddingLeft', this.em(dx)); } }; CHTMLmroot.kind = mroot_js_2.MmlMroot.prototype.kind; return CHTMLmroot; }(mroot_js_1.CommonMrootMixin(msqrt_js_1.CHTMLmsqrt))); exports.CHTMLmroot = CHTMLmroot; //# sourceMappingURL=mroot.js.map /***/ }), /* 198 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMrootMixin = void 0; function CommonMrootMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_1.prototype, "surd", { get: function () { return 2; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "root", { get: function () { return 1; }, enumerable: false, configurable: true }); class_1.prototype.combineRootBBox = function (BBOX, sbox, H) { var bbox = this.childNodes[this.root].getBBox(); var h = this.getRootDimens(sbox, H)[1]; BBOX.combine(bbox, 0, h); }; class_1.prototype.getRootDimens = function (sbox, H) { var surd = this.childNodes[this.surd]; var bbox = this.childNodes[this.root].getBBox(); var offset = (surd.size < 0 ? .5 : .6) * sbox.w; var w = bbox.w, rscale = bbox.rscale; var W = Math.max(w, offset / rscale); var dx = Math.max(0, W - w); var h = this.rootHeight(bbox, sbox, surd.size, H); var x = W * rscale - offset; return [x, h, dx]; }; class_1.prototype.rootHeight = function (rbox, sbox, size, H) { var h = sbox.h + sbox.d; var b = (size < 0 ? 1.9 : .55 * h) - (h - H); return b + Math.max(0, rbox.d * rbox.rscale); }; return class_1; }(Base)); } exports.CommonMrootMixin = CommonMrootMixin; //# sourceMappingURL=mroot.js.map /***/ }), /* 199 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLscriptbase = void 0; var Wrapper_js_1 = __webpack_require__(5); var scriptbase_js_1 = __webpack_require__(200); var CHTMLscriptbase = (function (_super) { __extends(CHTMLscriptbase, _super); function CHTMLscriptbase() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLscriptbase.prototype.toCHTML = function (parent) { this.chtml = this.standardCHTMLnode(parent); var _a = __read(this.getOffset(this.baseChild.getBBox(), this.script.getBBox()), 2), x = _a[0], v = _a[1]; var style = { 'vertical-align': this.em(v) }; if (x) { style['margin-left'] = this.em(x); } this.baseChild.toCHTML(this.chtml); this.script.toCHTML(this.adaptor.append(this.chtml, this.html('mjx-script', { style: style }))); }; CHTMLscriptbase.prototype.setDeltaW = function (nodes, dx) { for (var i = 0; i < dx.length; i++) { if (dx[i]) { this.adaptor.setStyle(nodes[i], 'paddingLeft', this.em(dx[i])); } } }; CHTMLscriptbase.prototype.adjustOverDepth = function (over, overbox) { if (overbox.d >= 0) return; this.adaptor.setStyle(over, 'marginBottom', this.em(overbox.d * overbox.rscale)); }; CHTMLscriptbase.prototype.adjustUnderDepth = function (under, underbox) { var e_1, _a; if (underbox.d >= 0) return; var adaptor = this.adaptor; var v = this.em(underbox.d); var box = this.html('mjx-box', { style: { 'margin-bottom': v, 'vertical-align': v } }); try { for (var _b = __values(adaptor.childNodes(adaptor.firstChild(under))), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; adaptor.append(box, child); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } adaptor.append(adaptor.firstChild(under), box); }; CHTMLscriptbase.kind = 'scriptbase'; CHTMLscriptbase.useIC = false; return CHTMLscriptbase; }(scriptbase_js_1.CommonScriptbaseMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLscriptbase = CHTMLscriptbase; //# sourceMappingURL=scriptbase.js.map /***/ }), /* 200 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonScriptbaseMixin = void 0; var DELTA = 1.5; function CommonScriptbaseMixin(Base) { var _a; return _a = (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; var core = _this.baseCore = _this.childNodes[0]; if (!core) return _this; while (core.childNodes.length === 1 && (core.node.isKind('mrow') || core.node.isKind('TeXAtom') || core.node.isKind('mstyle') || core.node.isKind('mpadded') || core.node.isKind('mphantom') || core.node.isKind('semantics'))) { core = core.childNodes[0]; if (!core) return _this; } if (!('noIC' in core)) return _this; _this.baseCore = core; if (!_this.constructor.useIC) { core.noIC = true; } return _this; } Object.defineProperty(class_1.prototype, "baseChild", { get: function () { return this.childNodes[this.node.base]; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "script", { get: function () { return this.childNodes[1]; }, enumerable: false, configurable: true }); class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var basebox = this.baseChild.getBBox(); var scriptbox = this.script.getBBox(); var _a = __read(this.getOffset(basebox, scriptbox), 2), x = _a[0], y = _a[1]; bbox.append(basebox); bbox.combine(scriptbox, bbox.w + x, y); bbox.w += this.font.params.scriptspace; bbox.clean(); this.setChildPWidths(recompute); }; class_1.prototype.coreIC = function () { var corebox = this.baseCore.getBBox(); return (corebox.ic ? 1.05 * corebox.ic + .05 : 0); }; class_1.prototype.coreScale = function () { var scale = this.baseChild.getBBox().rscale; var base = this.baseChild; while ((base.node.isKind('mstyle') || base.node.isKind('mrow') || base.node.isKind('TeXAtom')) && base.childNodes.length === 1) { base = base.childNodes[0]; scale *= base.getBBox().rscale; } return scale; }; class_1.prototype.isCharBase = function () { var base = this.baseChild; while ((base.node.isKind('mstyle') || base.node.isKind('mrow')) && base.childNodes.length === 1) { base = base.childNodes[0]; } return ((base.node.isKind('mo') || base.node.isKind('mi') || base.node.isKind('mn')) && base.bbox.rscale === 1 && Array.from(base.getText()).length === 1 && !base.node.attributes.get('largeop')); }; class_1.prototype.getOffset = function (_bbox, _sbox) { return [0, 0]; }; class_1.prototype.getV = function (bbox, sbox) { var tex = this.font.params; var subscriptshift = this.length2em(this.node.attributes.get('subscriptshift'), tex.sub1); return Math.max(this.isCharBase() ? 0 : bbox.d * bbox.rscale + tex.sub_drop * sbox.rscale, subscriptshift, sbox.h * sbox.rscale - (4 / 5) * tex.x_height); }; class_1.prototype.getU = function (bbox, sbox) { var tex = this.font.params; var attr = this.node.attributes.getList('displaystyle', 'superscriptshift'); var prime = this.node.getProperty('texprimestyle'); var p = prime ? tex.sup3 : (attr.displaystyle ? tex.sup1 : tex.sup2); var superscriptshift = this.length2em(attr.superscriptshift, p); return Math.max(this.isCharBase() ? 0 : bbox.h * bbox.rscale - tex.sup_drop * sbox.rscale, superscriptshift, sbox.d * sbox.rscale + (1 / 4) * tex.x_height); }; class_1.prototype.hasMovableLimits = function () { var display = this.node.attributes.get('displaystyle'); var mo = this.baseChild.coreMO().node; return (!display && !!mo.attributes.get('movablelimits')); }; class_1.prototype.getOverKU = function (basebox, overbox) { var accent = this.node.attributes.get('accent'); var tex = this.font.params; var d = overbox.d * overbox.rscale; var k = (accent ? tex.rule_thickness : Math.max(tex.big_op_spacing1, tex.big_op_spacing3 - Math.max(0, d))) - (this.baseChild.node.isKind('munderover') ? .1 : 0); return [k, basebox.h * basebox.rscale + k + d]; }; class_1.prototype.getUnderKV = function (basebox, underbox) { var accent = this.node.attributes.get('accentunder'); var tex = this.font.params; var h = underbox.h * underbox.rscale; var k = (accent ? tex.rule_thickness : Math.max(tex.big_op_spacing2, tex.big_op_spacing4 - h)) - (this.baseChild.node.isKind('munderover') ? .1 : 0); return [k, -(basebox.d * basebox.rscale + k + h)]; }; class_1.prototype.getDeltaW = function (boxes, delta) { var e_1, _a, e_2, _b; if (delta === void 0) { delta = [0, 0, 0]; } var align = this.node.attributes.get('align'); var widths = boxes.map(function (box) { return box.w * box.rscale; }); var w = Math.max.apply(Math, __spread(widths)); var dw = []; var m = 0; try { for (var _c = __values(widths.keys()), _d = _c.next(); !_d.done; _d = _c.next()) { var i = _d.value; dw[i] = (align === 'center' ? (w - widths[i]) / 2 : align === 'right' ? w - widths[i] : 0) + delta[i]; if (dw[i] < m) { m = -dw[i]; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_1) throw e_1.error; } } if (m) { try { for (var _e = __values(dw.keys()), _f = _e.next(); !_f.done; _f = _e.next()) { var i = _f.value; dw[i] += m; } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_2) throw e_2.error; } } } return dw; }; class_1.prototype.getDelta = function (noskew) { if (noskew === void 0) { noskew = false; } var accent = this.node.attributes.get('accent'); var ddelta = (accent && !noskew ? this.baseChild.coreMO().bbox.sk : 0); return (DELTA * this.baseCore.bbox.ic / 2 + ddelta) * this.coreScale(); }; class_1.prototype.stretchChildren = function () { var e_3, _a, e_4, _b, e_5, _c; var stretchy = []; try { for (var _d = __values(this.childNodes), _e = _d.next(); !_e.done; _e = _d.next()) { var child = _e.value; if (child.canStretch(2)) { stretchy.push(child); } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_3) throw e_3.error; } } var count = stretchy.length; var nodeCount = this.childNodes.length; if (count && nodeCount > 1) { var W = 0; var all = (count > 1 && count === nodeCount); try { for (var _f = __values(this.childNodes), _g = _f.next(); !_g.done; _g = _f.next()) { var child = _g.value; var noStretch = (child.stretch.dir === 0); if (all || noStretch) { var _h = child.getBBox(noStretch), w = _h.w, rscale = _h.rscale; if (w * rscale > W) W = w * rscale; } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_4) throw e_4.error; } } try { for (var stretchy_1 = __values(stretchy), stretchy_1_1 = stretchy_1.next(); !stretchy_1_1.done; stretchy_1_1 = stretchy_1.next()) { var child = stretchy_1_1.value; child.coreMO().getStretchedVariant([W / child.bbox.rscale]); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (stretchy_1_1 && !stretchy_1_1.done && (_c = stretchy_1.return)) _c.call(stretchy_1); } finally { if (e_5) throw e_5.error; } } } }; return class_1; }(Base)), _a.useIC = false, _a; } exports.CommonScriptbaseMixin = CommonScriptbaseMixin; //# sourceMappingURL=scriptbase.js.map /***/ }), /* 201 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmunderover = exports.CHTMLmover = exports.CHTMLmunder = void 0; var msubsup_js_1 = __webpack_require__(46); var munderover_js_1 = __webpack_require__(48); var munderover_js_2 = __webpack_require__(48); var munderover_js_3 = __webpack_require__(48); var munderover_js_4 = __webpack_require__(71); var CHTMLmunder = (function (_super) { __extends(CHTMLmunder, _super); function CHTMLmunder() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmunder.prototype.toCHTML = function (parent) { if (this.hasMovableLimits()) { _super.prototype.toCHTML.call(this, parent); this.adaptor.setAttribute(this.chtml, 'limits', 'false'); return; } this.chtml = this.standardCHTMLnode(parent); var base = this.adaptor.append(this.adaptor.append(this.chtml, this.html('mjx-row')), this.html('mjx-base')); var under = this.adaptor.append(this.adaptor.append(this.chtml, this.html('mjx-row')), this.html('mjx-under')); this.baseChild.toCHTML(base); this.script.toCHTML(under); var basebox = this.baseChild.getBBox(); var underbox = this.script.getBBox(); var k = this.getUnderKV(basebox, underbox)[0]; var delta = this.getDelta(true); this.adaptor.setStyle(under, 'paddingTop', this.em(k)); this.setDeltaW([base, under], this.getDeltaW([basebox, underbox], [0, -delta])); this.adjustUnderDepth(under, underbox); }; CHTMLmunder.kind = munderover_js_4.MmlMunder.prototype.kind; CHTMLmunder.useIC = true; CHTMLmunder.styles = { 'mjx-over': { 'text-align': 'left' }, 'mjx-munder:not([limits="false"])': { display: 'inline-table', }, 'mjx-munder > mjx-row': { 'text-align': 'left' }, 'mjx-under': { 'padding-bottom': '.1em' } }; return CHTMLmunder; }(munderover_js_1.CommonMunderMixin(msubsup_js_1.CHTMLmsub))); exports.CHTMLmunder = CHTMLmunder; var CHTMLmover = (function (_super) { __extends(CHTMLmover, _super); function CHTMLmover() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmover.prototype.toCHTML = function (parent) { if (this.hasMovableLimits()) { _super.prototype.toCHTML.call(this, parent); this.adaptor.setAttribute(this.chtml, 'limits', 'false'); return; } this.chtml = this.standardCHTMLnode(parent); var over = this.adaptor.append(this.chtml, this.html('mjx-over')); var base = this.adaptor.append(this.chtml, this.html('mjx-base')); this.script.toCHTML(over); this.baseChild.toCHTML(base); var overbox = this.script.getBBox(); var basebox = this.baseChild.getBBox(); var k = this.getOverKU(basebox, overbox)[0]; var delta = this.getDelta(); this.adaptor.setStyle(over, 'paddingBottom', this.em(k)); this.setDeltaW([base, over], this.getDeltaW([basebox, overbox], [0, delta])); this.adjustOverDepth(over, overbox); }; CHTMLmover.kind = munderover_js_4.MmlMover.prototype.kind; CHTMLmover.useIC = true; CHTMLmover.styles = { 'mjx-mover:not([limits="false"])': { 'padding-top': '.1em' }, 'mjx-mover:not([limits="false"]) > *': { display: 'block', 'text-align': 'left' } }; return CHTMLmover; }(munderover_js_2.CommonMoverMixin(msubsup_js_1.CHTMLmsup))); exports.CHTMLmover = CHTMLmover; var CHTMLmunderover = (function (_super) { __extends(CHTMLmunderover, _super); function CHTMLmunderover() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmunderover.prototype.toCHTML = function (parent) { if (this.hasMovableLimits()) { _super.prototype.toCHTML.call(this, parent); this.adaptor.setAttribute(this.chtml, 'limits', 'false'); return; } this.chtml = this.standardCHTMLnode(parent); var over = this.adaptor.append(this.chtml, this.html('mjx-over')); var table = this.adaptor.append(this.adaptor.append(this.chtml, this.html('mjx-box')), this.html('mjx-munder')); var base = this.adaptor.append(this.adaptor.append(table, this.html('mjx-row')), this.html('mjx-base')); var under = this.adaptor.append(this.adaptor.append(table, this.html('mjx-row')), this.html('mjx-under')); this.overChild.toCHTML(over); this.baseChild.toCHTML(base); this.underChild.toCHTML(under); var overbox = this.overChild.getBBox(); var basebox = this.baseChild.getBBox(); var underbox = this.underChild.getBBox(); var ok = this.getOverKU(basebox, overbox)[0]; var uk = this.getUnderKV(basebox, underbox)[0]; var delta = this.getDelta(); this.adaptor.setStyle(over, 'paddingBottom', this.em(ok)); this.adaptor.setStyle(under, 'paddingTop', this.em(uk)); this.setDeltaW([base, under, over], this.getDeltaW([basebox, underbox, overbox], [0, -delta, delta])); this.adjustOverDepth(over, overbox); this.adjustUnderDepth(under, underbox); }; CHTMLmunderover.kind = munderover_js_4.MmlMunderover.prototype.kind; CHTMLmunderover.useIC = true; CHTMLmunderover.styles = { 'mjx-munderover:not([limits="false"])': { 'padding-top': '.1em' }, 'mjx-munderover:not([limits="false"]) > *': { display: 'block' }, }; return CHTMLmunderover; }(munderover_js_3.CommonMunderoverMixin(msubsup_js_1.CHTMLmsubsup))); exports.CHTMLmunderover = CHTMLmunderover; //# sourceMappingURL=munderover.js.map /***/ }), /* 202 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmmultiscripts = void 0; var msubsup_js_1 = __webpack_require__(46); var mmultiscripts_js_1 = __webpack_require__(203); var mmultiscripts_js_2 = __webpack_require__(72); var CHTMLmmultiscripts = (function (_super) { __extends(CHTMLmmultiscripts, _super); function CHTMLmmultiscripts() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmmultiscripts.prototype.toCHTML = function (parent) { var chtml = this.standardCHTMLnode(parent); var data = this.getScriptData(); var sub = this.combinePrePost(data.sub, data.psub); var sup = this.combinePrePost(data.sup, data.psup); var _a = __read(this.getUVQ(data.base, sub, sup), 2), u = _a[0], v = _a[1]; if (data.numPrescripts) { this.addScripts(u, -v, true, data.psub, data.psup, this.firstPrescript, data.numPrescripts); } this.childNodes[0].toCHTML(chtml); if (data.numScripts) { this.addScripts(u, -v, false, data.sub, data.sup, 1, data.numScripts); } }; CHTMLmmultiscripts.prototype.addScripts = function (u, v, isPre, sub, sup, i, n) { var adaptor = this.adaptor; var q = (u - sup.d) + (v - sub.h); var U = (u < 0 && v === 0 ? sub.h + u : u); var rowdef = (q > 0 ? { style: { height: this.em(q) } } : {}); var tabledef = (U ? { style: { 'vertical-align': this.em(U) } } : {}); var supRow = this.html('mjx-row'); var sepRow = this.html('mjx-row', rowdef); var subRow = this.html('mjx-row'); var name = 'mjx-' + (isPre ? 'pre' : '') + 'scripts'; adaptor.append(this.chtml, this.html(name, tabledef, [supRow, sepRow, subRow])); var m = i + 2 * n; while (i < m) { this.childNodes[i++].toCHTML(adaptor.append(subRow, this.html('mjx-cell'))); this.childNodes[i++].toCHTML(adaptor.append(supRow, this.html('mjx-cell'))); } }; CHTMLmmultiscripts.kind = mmultiscripts_js_2.MmlMmultiscripts.prototype.kind; CHTMLmmultiscripts.styles = { 'mjx-prescripts': { display: 'inline-table', 'padding-left': '.05em' }, 'mjx-scripts': { display: 'inline-table', 'padding-right': '.05em' }, 'mjx-prescripts > mjx-row > mjx-cell': { 'text-align': 'right' } }; return CHTMLmmultiscripts; }(mmultiscripts_js_1.CommonMmultiscriptsMixin(msubsup_js_1.CHTMLmsubsup))); exports.CHTMLmmultiscripts = CHTMLmmultiscripts; //# sourceMappingURL=mmultiscripts.js.map /***/ }), /* 203 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMmultiscriptsMixin = exports.ScriptNames = exports.NextScript = void 0; var BBox_js_1 = __webpack_require__(16); exports.NextScript = { base: 'subList', subList: 'supList', supList: 'subList', psubList: 'psupList', psupList: 'psubList', }; exports.ScriptNames = ['sup', 'sup', 'psup', 'psub']; function CommonMmultiscriptsMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.scriptData = null; _this.firstPrescript = 0; return _this; } class_1.prototype.combinePrePost = function (pre, post) { var bbox = new BBox_js_1.BBox(pre); bbox.combine(post, 0, 0); return bbox; }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var scriptspace = this.font.params.scriptspace; var data = this.getScriptData(); var sub = this.combinePrePost(data.sub, data.psub); var sup = this.combinePrePost(data.sup, data.psup); var _a = __read(this.getUVQ(data.base, sub, sup), 2), u = _a[0], v = _a[1]; bbox.empty(); if (data.numPrescripts) { bbox.combine(data.psup, scriptspace, u); bbox.combine(data.psub, scriptspace, v); } bbox.append(data.base); if (data.numScripts) { var w = bbox.w; bbox.combine(data.sup, w, u); bbox.combine(data.sub, w, v); bbox.w += scriptspace; } bbox.clean(); this.setChildPWidths(recompute); }; class_1.prototype.getScriptData = function () { if (this.scriptData) { return this.scriptData; } var data = this.scriptData = { base: null, sub: BBox_js_1.BBox.empty(), sup: BBox_js_1.BBox.empty(), psub: BBox_js_1.BBox.empty(), psup: BBox_js_1.BBox.empty(), numPrescripts: 0, numScripts: 0 }; var lists = this.getScriptBBoxLists(); this.combineBBoxLists(data.sub, data.sup, lists.subList, lists.supList); this.combineBBoxLists(data.psub, data.psup, lists.psubList, lists.psupList); this.scriptData.base = lists.base[0]; this.scriptData.numPrescripts = lists.psubList.length; this.scriptData.numScripts = lists.subList.length; return this.scriptData; }; class_1.prototype.getScriptBBoxLists = function () { var e_1, _a; var lists = { base: [], subList: [], supList: [], psubList: [], psupList: [] }; var script = 'base'; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child.node.isKind('mprescripts')) { script = 'psubList'; } else { lists[script].push(child.getBBox()); script = exports.NextScript[script]; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this.firstPrescript = lists.subList.length + lists.supList.length + 2; this.padLists(lists.subList, lists.supList); this.padLists(lists.psubList, lists.psupList); return lists; }; class_1.prototype.padLists = function (list1, list2) { if (list1.length > list2.length) { list2.push(BBox_js_1.BBox.empty()); } }; class_1.prototype.combineBBoxLists = function (bbox1, bbox2, list1, list2) { for (var i = 0; i < list1.length; i++) { var _a = __read(this.getScaledWHD(list1[i]), 3), w1 = _a[0], h1 = _a[1], d1 = _a[2]; var _b = __read(this.getScaledWHD(list2[i]), 3), w2 = _b[0], h2 = _b[1], d2 = _b[2]; var w = Math.max(w1, w2); bbox1.w += w; bbox2.w += w; if (h1 > bbox1.h) bbox1.h = h1; if (d1 > bbox1.d) bbox1.d = d1; if (h2 > bbox2.h) bbox2.h = h2; if (d2 > bbox2.d) bbox2.d = d2; } }; class_1.prototype.getScaledWHD = function (bbox) { var w = bbox.w, h = bbox.h, d = bbox.d, rscale = bbox.rscale; return [w * rscale, h * rscale, d * rscale]; }; class_1.prototype.getUVQ = function (basebox, subbox, supbox) { var _a; if (!this.UVQ) { var _b = __read([0, 0, 0], 3), u = _b[0], v = _b[1], q = _b[2]; if (subbox.h === 0 && subbox.d === 0) { u = this.getU(basebox, supbox); } else if (supbox.h === 0 && supbox.d === 0) { u = -this.getV(basebox, subbox); } else { _a = __read(_super.prototype.getUVQ.call(this, basebox, subbox, supbox), 3), u = _a[0], v = _a[1], q = _a[2]; } this.UVQ = [u, v, q]; } return this.UVQ; }; return class_1; }(Base)); } exports.CommonMmultiscriptsMixin = CommonMmultiscriptsMixin; //# sourceMappingURL=mmultiscripts.js.map /***/ }), /* 204 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmtable = void 0; var Wrapper_js_1 = __webpack_require__(5); var mtable_js_1 = __webpack_require__(205); var mtable_js_2 = __webpack_require__(73); var string_js_1 = __webpack_require__(14); var CHTMLmtable = (function (_super) { __extends(CHTMLmtable, _super); function CHTMLmtable(factory, node, parent) { if (parent === void 0) { parent = null; } var _this = _super.call(this, factory, node, parent) || this; _this.itable = _this.html('mjx-itable'); _this.labels = _this.html('mjx-itable'); return _this; } CHTMLmtable.prototype.getAlignShift = function () { var data = _super.prototype.getAlignShift.call(this); if (!this.isTop) { data[1] = 0; } return data; }; CHTMLmtable.prototype.toCHTML = function (parent) { var e_1, _a; var chtml = this.standardCHTMLnode(parent); this.adaptor.append(chtml, this.html('mjx-table', {}, [this.itable])); try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; child.toCHTML(this.itable); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this.padRows(); this.handleColumnSpacing(); this.handleColumnLines(); this.handleColumnWidths(); this.handleRowSpacing(); this.handleRowLines(); this.handleEqualRows(); this.handleFrame(); this.handleWidth(); this.handleLabels(); this.handleAlign(); this.handleJustify(); this.shiftColor(); }; CHTMLmtable.prototype.shiftColor = function () { var adaptor = this.adaptor; var color = adaptor.getStyle(this.chtml, 'backgroundColor'); if (color) { adaptor.setStyle(this.chtml, 'backgroundColor', ''); adaptor.setStyle(this.itable, 'backgroundColor', color); } }; CHTMLmtable.prototype.padRows = function () { var e_2, _a; var adaptor = this.adaptor; try { for (var _b = __values(adaptor.childNodes(this.itable)), _c = _b.next(); !_c.done; _c = _b.next()) { var row = _c.value; while (adaptor.childNodes(row).length < this.numCols) { adaptor.append(row, this.html('mjx-mtd')); } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } }; CHTMLmtable.prototype.handleColumnSpacing = function () { var e_3, _a, e_4, _b; var spacing = this.getEmHalfSpacing(this.fSpace[0], this.cSpace); var frame = this.frame; try { for (var _c = __values(this.tableRows), _d = _c.next(); !_d.done; _d = _c.next()) { var row = _d.value; var i = 0; try { for (var _e = (e_4 = void 0, __values(row.tableCells)), _f = _e.next(); !_f.done; _f = _e.next()) { var cell = _f.value; var lspace = spacing[i++]; var rspace = spacing[i]; var styleNode = (cell ? cell.chtml : this.adaptor.childNodes(row.chtml)[i]); if ((i > 1 && lspace !== '0.4em') || (frame && i === 1)) { this.adaptor.setStyle(styleNode, 'paddingLeft', lspace); } if ((i < this.numCols && rspace !== '0.4em') || (frame && i === this.numCols)) { this.adaptor.setStyle(styleNode, 'paddingRight', rspace); } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_4) throw e_4.error; } } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_3) throw e_3.error; } } }; CHTMLmtable.prototype.handleColumnLines = function () { var e_5, _a, e_6, _b; if (this.node.attributes.get('columnlines') === 'none') return; var lines = this.getColumnAttributes('columnlines'); try { for (var _c = __values(this.childNodes), _d = _c.next(); !_d.done; _d = _c.next()) { var row = _d.value; var i = 0; try { for (var _e = (e_6 = void 0, __values(this.adaptor.childNodes(row.chtml).slice(1))), _f = _e.next(); !_f.done; _f = _e.next()) { var cell = _f.value; var line = lines[i++]; if (line === 'none') continue; this.adaptor.setStyle(cell, 'borderLeft', '.07em ' + line); } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_6) throw e_6.error; } } } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_5) throw e_5.error; } } }; CHTMLmtable.prototype.handleColumnWidths = function () { var e_7, _a, e_8, _b; try { for (var _c = __values(this.childNodes), _d = _c.next(); !_d.done; _d = _c.next()) { var row = _d.value; var i = 0; try { for (var _e = (e_8 = void 0, __values(this.adaptor.childNodes(row.chtml))), _f = _e.next(); !_f.done; _f = _e.next()) { var cell = _f.value; var w = this.cWidths[i++]; if (w !== null) { var width = (typeof w === 'number' ? this.em(w) : w); this.adaptor.setStyle(cell, 'width', width); this.adaptor.setStyle(cell, 'maxWidth', width); this.adaptor.setStyle(cell, 'minWidth', width); } } } catch (e_8_1) { e_8 = { error: e_8_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_8) throw e_8.error; } } } } catch (e_7_1) { e_7 = { error: e_7_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_7) throw e_7.error; } } }; CHTMLmtable.prototype.handleRowSpacing = function () { var e_9, _a, e_10, _b; var spacing = this.getEmHalfSpacing(this.fSpace[1], this.rSpace); var frame = this.frame; var i = 0; try { for (var _c = __values(this.childNodes), _d = _c.next(); !_d.done; _d = _c.next()) { var row = _d.value; var tspace = spacing[i++]; var bspace = spacing[i]; try { for (var _e = (e_10 = void 0, __values(row.childNodes)), _f = _e.next(); !_f.done; _f = _e.next()) { var cell = _f.value; if ((i > 1 && tspace !== '0.215em') || (frame && i === 1)) { this.adaptor.setStyle(cell.chtml, 'paddingTop', tspace); } if ((i < this.numRows && bspace !== '0.215em') || (frame && i === this.numRows)) { this.adaptor.setStyle(cell.chtml, 'paddingBottom', bspace); } } } catch (e_10_1) { e_10 = { error: e_10_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_10) throw e_10.error; } } } } catch (e_9_1) { e_9 = { error: e_9_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_9) throw e_9.error; } } }; CHTMLmtable.prototype.handleRowLines = function () { var e_11, _a, e_12, _b; if (this.node.attributes.get('rowlines') === 'none') return; var lines = this.getRowAttributes('rowlines'); var i = 0; try { for (var _c = __values(this.childNodes.slice(1)), _d = _c.next(); !_d.done; _d = _c.next()) { var row = _d.value; var line = lines[i++]; if (line === 'none') continue; try { for (var _e = (e_12 = void 0, __values(this.adaptor.childNodes(row.chtml))), _f = _e.next(); !_f.done; _f = _e.next()) { var cell = _f.value; this.adaptor.setStyle(cell, 'borderTop', '.07em ' + line); } } catch (e_12_1) { e_12 = { error: e_12_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_12) throw e_12.error; } } } } catch (e_11_1) { e_11 = { error: e_11_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_11) throw e_11.error; } } }; CHTMLmtable.prototype.handleEqualRows = function () { if (!this.node.attributes.get('equalrows')) return; var space = this.getRowHalfSpacing(); var _a = this.getTableData(), H = _a.H, D = _a.D, NH = _a.NH, ND = _a.ND; var HD = this.getEqualRowHeight(); for (var i = 0; i < this.numRows; i++) { var row = this.childNodes[i]; if (HD !== NH[i] + ND[i]) { this.setRowHeight(row, HD, (HD - H[i] + D[i]) / 2, space[i] + space[i + 1]); } } }; CHTMLmtable.prototype.setRowHeight = function (row, HD, D, space) { var e_13, _a; this.adaptor.setStyle(row.chtml, 'height', this.em(HD + space)); var ralign = row.node.attributes.get('rowalign'); try { for (var _b = __values(row.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var cell = _c.value; if (this.setCellBaseline(cell, ralign, HD, D)) break; } } catch (e_13_1) { e_13 = { error: e_13_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_13) throw e_13.error; } } }; CHTMLmtable.prototype.setCellBaseline = function (cell, ralign, HD, D) { var calign = cell.node.attributes.get('rowalign'); if (calign === 'baseline' || calign === 'axis') { var adaptor = this.adaptor; var child = adaptor.lastChild(cell.chtml); adaptor.setStyle(child, 'height', this.em(HD)); adaptor.setStyle(child, 'verticalAlign', this.em(-D)); var row = cell.parent; if ((!row.node.isKind('mlabeledtr') || cell !== row.childNodes[0]) && (ralign === 'baseline' || ralign === 'axis')) { return true; } } return false; }; CHTMLmtable.prototype.handleFrame = function () { if (this.frame) { this.adaptor.setStyle(this.itable, 'border', '.07em ' + this.node.attributes.get('frame')); } }; CHTMLmtable.prototype.handleWidth = function () { var adaptor = this.adaptor; var _a = this.getBBox(), w = _a.w, L = _a.L, R = _a.R; adaptor.setStyle(this.chtml, 'minWidth', this.em(L + w + R)); var W = this.node.attributes.get('width'); if (string_js_1.isPercent(W)) { adaptor.setStyle(this.chtml, 'width', ''); adaptor.setAttribute(this.chtml, 'width', 'full'); } else if (!this.hasLabels) { if (W === 'auto') return; W = this.em(this.length2em(W) + 2 * this.fLine); } var table = adaptor.firstChild(this.chtml); adaptor.setStyle(table, 'width', W); adaptor.setStyle(table, 'minWidth', this.em(w)); if (L || R) { adaptor.setStyle(this.chtml, 'margin', ''); if (L === R) { adaptor.setStyle(table, 'margin', '0 ' + this.em(R)); } else { adaptor.setStyle(table, 'margin', '0 ' + this.em(R) + ' 0 ' + this.em(L)); } } adaptor.setAttribute(this.itable, 'width', 'full'); }; CHTMLmtable.prototype.handleAlign = function () { var _a = __read(this.getAlignmentRow(), 2), align = _a[0], row = _a[1]; if (row === null) { if (align !== 'axis') { this.adaptor.setAttribute(this.chtml, 'align', align); } } else { var y = this.getVerticalPosition(row, align); this.adaptor.setAttribute(this.chtml, 'align', 'top'); this.adaptor.setStyle(this.chtml, 'verticalAlign', this.em(y)); } }; CHTMLmtable.prototype.handleJustify = function () { var align = this.getAlignShift()[0]; if (align !== 'center') { this.adaptor.setAttribute(this.chtml, 'justify', align); } }; CHTMLmtable.prototype.handleLabels = function () { if (!this.hasLabels) return; var labels = this.labels; var attributes = this.node.attributes; var adaptor = this.adaptor; var side = attributes.get('side'); adaptor.setAttribute(this.chtml, 'side', side); adaptor.setAttribute(labels, 'align', side); adaptor.setStyle(labels, side, '0'); var _a = __read(this.addLabelPadding(side), 2), align = _a[0], shift = _a[1]; if (shift) { var table = adaptor.firstChild(this.chtml); this.setIndent(table, align, shift); } this.updateRowHeights(); this.addLabelSpacing(); }; CHTMLmtable.prototype.addLabelPadding = function (side) { var _a = __read(this.getPadAlignShift(side), 3), align = _a[1], shift = _a[2]; var styles = {}; if (side === 'right') { var W = this.node.attributes.get('width'); var _b = this.getBBox(), w = _b.w, L = _b.L, R = _b.R; styles.style = { width: (string_js_1.isPercent(W) ? 'calc(' + W + ' + ' + this.em(L + R) + ')' : this.em(L + w + R)) }; } this.adaptor.append(this.chtml, this.html('mjx-labels', styles, [this.labels])); return [align, shift]; }; CHTMLmtable.prototype.updateRowHeights = function () { if (this.node.attributes.get('equalrows')) return; var _a = this.getTableData(), H = _a.H, D = _a.D, NH = _a.NH, ND = _a.ND; var space = this.getRowHalfSpacing(); for (var i = 0; i < this.numRows; i++) { var row = this.childNodes[i]; if (H[i] !== NH[i] || D[i] !== ND[i]) { this.setRowHeight(row, H[i] + D[i], D[i], space[i] + space[i + 1]); } else if (row.node.isKind('mlabeledtr')) { this.setCellBaseline(row.childNodes[0], '', H[i] + D[i], D[i]); } } }; CHTMLmtable.prototype.addLabelSpacing = function () { var adaptor = this.adaptor; var equal = this.node.attributes.get('equalrows'); var _a = this.getTableData(), H = _a.H, D = _a.D; var HD = (equal ? this.getEqualRowHeight() : 0); var space = this.getRowHalfSpacing(); var h = this.fLine; var current = adaptor.firstChild(this.labels); for (var i = 0; i < this.numRows; i++) { var row = this.childNodes[i]; if (row.node.isKind('mlabeledtr')) { h && adaptor.insert(this.html('mjx-mtr', { style: { height: this.em(h) } }), current); adaptor.setStyle(current, 'height', this.em((equal ? HD : H[i] + D[i]) + space[i] + space[i + 1])); current = adaptor.next(current); h = this.rLines[i]; } else { h += space[i] + (equal ? HD : H[i] + D[i]) + space[i + 1] + this.rLines[i]; } } }; CHTMLmtable.kind = mtable_js_2.MmlMtable.prototype.kind; CHTMLmtable.styles = { 'mjx-mtable': { 'vertical-align': '.25em', 'text-align': 'center', 'position': 'relative', 'box-sizing': 'border-box' }, 'mjx-labels': { position: 'absolute', left: 0, top: 0 }, 'mjx-table': { 'display': 'inline-block', 'vertical-align': '-.5ex' }, 'mjx-table > mjx-itable': { 'vertical-align': 'middle', 'text-align': 'left', 'box-sizing': 'border-box' }, 'mjx-labels > mjx-itable': { position: 'absolute', top: 0 }, 'mjx-mtable[justify="left"]': { 'text-align': 'left' }, 'mjx-mtable[justify="right"]': { 'text-align': 'right' }, 'mjx-mtable[justify="left"][side="left"]': { 'padding-right': '0 ! important' }, 'mjx-mtable[justify="left"][side="right"]': { 'padding-left': '0 ! important' }, 'mjx-mtable[justify="right"][side="left"]': { 'padding-right': '0 ! important' }, 'mjx-mtable[justify="right"][side="right"]': { 'padding-left': '0 ! important' }, 'mjx-mtable[align]': { 'vertical-align': 'baseline' }, 'mjx-mtable[align="top"] > mjx-table': { 'vertical-align': 'top' }, 'mjx-mtable[align="bottom"] > mjx-table': { 'vertical-align': 'bottom' }, 'mjx-mtable[side="right"] mjx-labels': { 'min-width': '100%' } }; return CHTMLmtable; }(mtable_js_1.CommonMtableMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmtable = CHTMLmtable; //# sourceMappingURL=mtable.js.map /***/ }), /* 205 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMtableMixin = void 0; var BBox_js_1 = __webpack_require__(16); var string_js_1 = __webpack_require__(14); var numeric_js_1 = __webpack_require__(128); function CommonMtableMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.numCols = 0; _this.numRows = 0; _this.data = null; _this.pwidthCells = []; _this.pWidth = 0; _this.numCols = numeric_js_1.max(_this.tableRows.map(function (row) { return row.numCells; })); _this.numRows = _this.childNodes.length; _this.hasLabels = _this.childNodes.reduce(function (value, row) { return value || row.node.isKind('mlabeledtr'); }, false); _this.findContainer(); _this.isTop = !_this.container || (_this.container.node.isKind('math') && !_this.container.parent); if (_this.isTop) { _this.jax.table = _this; } _this.getPercentageWidth(); var attributes = _this.node.attributes; _this.frame = attributes.get('frame') !== 'none'; _this.fLine = (_this.frame ? .07 : 0); _this.fSpace = (_this.frame ? _this.convertLengths(_this.getAttributeArray('framespacing')) : [0, 0]); _this.cSpace = _this.convertLengths(_this.getColumnAttributes('columnspacing')); _this.rSpace = _this.convertLengths(_this.getRowAttributes('rowspacing')); _this.cLines = _this.getColumnAttributes('columnlines').map(function (x) { return (x === 'none' ? 0 : .07); }); _this.rLines = _this.getRowAttributes('rowlines').map(function (x) { return (x === 'none' ? 0 : .07); }); _this.cWidths = _this.getColumnWidths(); _this.stretchRows(); _this.stretchColumns(); return _this; } Object.defineProperty(class_1.prototype, "tableRows", { get: function () { return this.childNodes; }, enumerable: false, configurable: true }); class_1.prototype.findContainer = function () { var node = this; var parent = node.parent; while (parent && (parent.node.notParent || parent.node.isKind('mrow'))) { node = parent; parent = parent.parent; } this.container = parent; this.containerI = node.node.childPosition(); }; class_1.prototype.getPercentageWidth = function () { if (this.hasLabels) { this.bbox.pwidth = BBox_js_1.BBox.fullWidth; } else { var width = this.node.attributes.get('width'); if (string_js_1.isPercent(width)) { this.bbox.pwidth = width; } } }; class_1.prototype.stretchRows = function () { var equal = this.node.attributes.get('equalrows'); var HD = (equal ? this.getEqualRowHeight() : 0); var _a = (equal ? this.getTableData() : { H: [0], D: [0] }), H = _a.H, D = _a.D; var rows = this.tableRows; for (var i = 0; i < this.numRows; i++) { var hd = (equal ? [(HD + H[i] - D[i]) / 2, (HD - H[i] + D[i]) / 2] : null); rows[i].stretchChildren(hd); } }; class_1.prototype.stretchColumns = function () { for (var i = 0; i < this.numCols; i++) { var width = (typeof this.cWidths[i] === 'number' ? this.cWidths[i] : null); this.stretchColumn(i, width); } }; class_1.prototype.stretchColumn = function (i, W) { var e_1, _a, e_2, _b, e_3, _c; var stretchy = []; try { for (var _d = __values(this.tableRows), _e = _d.next(); !_e.done; _e = _d.next()) { var row = _e.value; var cell = row.getChild(i); if (cell) { var child = cell.childNodes[0]; if (child.stretch.dir === 0 && child.canStretch(2)) { stretchy.push(child); } } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_1) throw e_1.error; } } var count = stretchy.length; var nodeCount = this.childNodes.length; if (count && nodeCount > 1) { if (W === null) { W = 0; var all = (count > 1 && count === nodeCount); try { for (var _f = __values(this.tableRows), _g = _f.next(); !_g.done; _g = _f.next()) { var row = _g.value; var cell = row.getChild(i); if (cell) { var child = cell.childNodes[0]; var noStretch = (child.stretch.dir === 0); if (all || noStretch) { var w = child.getBBox(noStretch).w; if (w > W) { W = w; } } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_2) throw e_2.error; } } } try { for (var stretchy_1 = __values(stretchy), stretchy_1_1 = stretchy_1.next(); !stretchy_1_1.done; stretchy_1_1 = stretchy_1.next()) { var child = stretchy_1_1.value; child.coreMO().getStretchedVariant([W]); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (stretchy_1_1 && !stretchy_1_1.done && (_c = stretchy_1.return)) _c.call(stretchy_1); } finally { if (e_3) throw e_3.error; } } } }; class_1.prototype.getTableData = function () { if (this.data) { return this.data; } var H = new Array(this.numRows).fill(0); var D = new Array(this.numRows).fill(0); var W = new Array(this.numCols).fill(0); var NH = new Array(this.numRows); var ND = new Array(this.numRows); var LW = [0]; var rows = this.tableRows; for (var j = 0; j < rows.length; j++) { var row = rows[j]; for (var i = 0; i < row.numCells; i++) { var cell = row.getChild(i); this.updateHDW(cell, i, j, H, D, W); this.recordPWidthCell(cell, i); } NH[j] = H[j]; ND[j] = D[j]; if (row.labeled) { this.updateHDW(row.childNodes[0], 0, j, H, D, LW); } } var L = LW[0]; this.data = { H: H, D: D, W: W, NH: NH, ND: ND, L: L }; return this.data; }; class_1.prototype.updateHDW = function (cell, i, j, H, D, W) { if (W === void 0) { W = null; } var _a = cell.getBBox(), h = _a.h, d = _a.d, w = _a.w; if (h < .75) h = .75; if (d < .25) d = .25; if (h > H[j]) H[j] = h; if (d > D[j]) D[j] = d; if (W && w > W[i]) W[i] = w; }; class_1.prototype.recordPWidthCell = function (cell, i) { if (cell.childNodes[0] && cell.childNodes[0].getBBox().pwidth) { this.pwidthCells.push([cell, i]); } }; class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } var _a = this.getTableData(), H = _a.H, D = _a.D; var height, width; if (this.node.attributes.get('equalrows')) { var HD = this.getEqualRowHeight(); height = numeric_js_1.sum([].concat(this.rLines, this.rSpace)) + HD * this.numRows; } else { height = numeric_js_1.sum(H.concat(D, this.rLines, this.rSpace)); } height += 2 * (this.fLine + this.fSpace[1]); var CW = this.getComputedWidths(); width = numeric_js_1.sum(CW.concat(this.cLines, this.cSpace)) + 2 * (this.fLine + this.fSpace[0]); var w = this.node.attributes.get('width'); if (w !== 'auto') { width = Math.max(this.length2em(w, 0) + 2 * this.fLine, width); } var _b = __read(this.getBBoxHD(height), 2), h = _b[0], d = _b[1]; bbox.h = h; bbox.d = d; bbox.w = width; var _c = __read(this.getBBoxLR(), 2), L = _c[0], R = _c[1]; bbox.L = L; bbox.R = R; if (!string_js_1.isPercent(w)) { this.setColumnPWidths(); } }; class_1.prototype.setChildPWidths = function (_recompute, cwidth, _clear) { var width = this.node.attributes.get('width'); if (!string_js_1.isPercent(width)) return false; if (!this.hasLabels) { this.bbox.pwidth = ''; this.container.bbox.pwidth = ''; } var _a = this.bbox, w = _a.w, L = _a.L, R = _a.R; var W = Math.max(w, this.length2em(width, Math.max(cwidth, L + w + R))); var cols = (this.node.attributes.get('equalcolumns') ? Array(this.numCols).fill(this.percent(1 / Math.max(1, this.numCols))) : this.getColumnAttributes('columnwidth', 0)); this.cWidths = this.getColumnWidthsFixed(cols, W); var CW = this.getComputedWidths(); this.pWidth = numeric_js_1.sum(CW.concat(this.cLines, this.cSpace)) + 2 * (this.fLine + this.fSpace[0]); if (this.isTop) { this.bbox.w = this.pWidth; } this.setColumnPWidths(); if (this.pWidth !== w) { this.parent.invalidateBBox(); } return this.pWidth !== w; }; class_1.prototype.setColumnPWidths = function () { var e_4, _a; var W = this.cWidths; try { for (var _b = __values(this.pwidthCells), _c = _b.next(); !_c.done; _c = _b.next()) { var _d = __read(_c.value, 2), cell = _d[0], i = _d[1]; if (cell.setChildPWidths(false, W[i])) { cell.invalidateBBox(); cell.getBBox(); } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } }; class_1.prototype.getBBoxHD = function (height) { var _a = __read(this.getAlignmentRow(), 2), align = _a[0], row = _a[1]; if (row === null) { var a = this.font.params.axis_height; var h2 = height / 2; var HD = { top: [0, height], center: [h2, h2], bottom: [height, 0], baseline: [h2, h2], axis: [h2 + a, h2 - a] }; return HD[align] || [h2, h2]; } else { var y = this.getVerticalPosition(row, align); return [y, height - y]; } }; class_1.prototype.getBBoxLR = function () { if (this.hasLabels) { var side = this.node.attributes.get('side'); var _a = __read(this.getPadAlignShift(side), 2), pad = _a[0], align = _a[1]; return (align === 'center' ? [pad, pad] : side === 'left' ? [pad, 0] : [0, pad]); } return [0, 0]; }; class_1.prototype.getPadAlignShift = function (side) { var L = this.getTableData().L; var sep = this.length2em(this.node.attributes.get('minlabelspacing')); var pad = L + sep; var _a = __read((this.styles == null ? ['', ''] : [this.styles.get('padding-left'), this.styles.get('padding-right')]), 2), lpad = _a[0], rpad = _a[1]; if (lpad || rpad) { pad = Math.max(pad, this.length2em(lpad || '0'), this.length2em(rpad || '0')); } var _b = __read(this.getAlignShift(), 2), align = _b[0], shift = _b[1]; if (align === side) { shift = (side === 'left' ? Math.max(pad, shift) - pad : Math.min(-pad, shift) + pad); } return [pad, align, shift]; }; class_1.prototype.getAlignShift = function () { return (this.isTop ? _super.prototype.getAlignShift.call(this) : [this.container.getChildAlign(this.containerI), 0]); }; class_1.prototype.getWidth = function () { return this.pWidth || this.getBBox().w; }; class_1.prototype.getEqualRowHeight = function () { var _a = this.getTableData(), H = _a.H, D = _a.D; var HD = Array.from(H.keys()).map(function (i) { return H[i] + D[i]; }); return Math.max.apply(Math, HD); }; class_1.prototype.getComputedWidths = function () { var _this = this; var W = this.getTableData().W; var CW = Array.from(W.keys()).map(function (i) { return (typeof _this.cWidths[i] === 'number' ? _this.cWidths[i] : W[i]); }); if (this.node.attributes.get('equalcolumns')) { CW = Array(CW.length).fill(numeric_js_1.max(CW)); } return CW; }; class_1.prototype.getColumnWidths = function () { var width = this.node.attributes.get('width'); if (this.node.attributes.get('equalcolumns')) { return this.getEqualColumns(width); } var swidths = this.getColumnAttributes('columnwidth', 0); if (width === 'auto') { return this.getColumnWidthsAuto(swidths); } if (string_js_1.isPercent(width)) { return this.getColumnWidthsPercent(swidths); } return this.getColumnWidthsFixed(swidths, this.length2em(width)); }; class_1.prototype.getEqualColumns = function (width) { var n = Math.max(1, this.numCols); var cwidth; if (width === 'auto') { var W = this.getTableData().W; cwidth = numeric_js_1.max(W); } else if (string_js_1.isPercent(width)) { cwidth = this.percent(1 / n); } else { var w = numeric_js_1.sum([].concat(this.cLines, this.cSpace)) + 2 * this.fSpace[0]; cwidth = Math.max(0, this.length2em(width) - w) / n; } return Array(this.numCols).fill(cwidth); }; class_1.prototype.getColumnWidthsAuto = function (swidths) { var _this = this; return swidths.map(function (x) { if (x === 'auto' || x === 'fit') return null; if (string_js_1.isPercent(x)) return x; return _this.length2em(x); }); }; class_1.prototype.getColumnWidthsPercent = function (swidths) { var _this = this; var hasFit = swidths.indexOf('fit') >= 0; var W = (hasFit ? this.getTableData() : { W: null }).W; return Array.from(swidths.keys()).map(function (i) { var x = swidths[i]; if (x === 'fit') return null; if (x === 'auto') return (hasFit ? W[i] : null); if (string_js_1.isPercent(x)) return x; return _this.length2em(x); }); }; class_1.prototype.getColumnWidthsFixed = function (swidths, width) { var _this = this; var indices = Array.from(swidths.keys()); var fit = indices.filter(function (i) { return swidths[i] === 'fit'; }); var auto = indices.filter(function (i) { return swidths[i] === 'auto'; }); var n = fit.length || auto.length; var W = (n ? this.getTableData() : { W: null }).W; var cwidth = width - numeric_js_1.sum([].concat(this.cLines, this.cSpace)) - 2 * this.fSpace[0]; var dw = cwidth; indices.forEach(function (i) { var x = swidths[i]; dw -= (x === 'fit' || x === 'auto' ? W[i] : _this.length2em(x, width)); }); var fw = (n && dw > 0 ? dw / n : 0); return indices.map(function (i) { var x = swidths[i]; if (x === 'fit') return W[i] + fw; if (x === 'auto') return W[i] + (fit.length === 0 ? fw : 0); return _this.length2em(x, cwidth); }); }; class_1.prototype.getVerticalPosition = function (i, align) { var equal = this.node.attributes.get('equalrows'); var _a = this.getTableData(), H = _a.H, D = _a.D; var HD = (equal ? this.getEqualRowHeight() : 0); var space = this.getRowHalfSpacing(); var y = this.fLine; for (var j = 0; j < i; j++) { y += space[j] + (equal ? HD : H[j] + D[j]) + space[j + 1] + this.rLines[j]; } var _b = __read((equal ? [(HD + H[i] - D[i]) / 2, (HD - H[i] + D[i]) / 2] : [H[i], D[i]]), 2), h = _b[0], d = _b[1]; var offset = { top: 0, center: space[i] + (h + d) / 2, bottom: space[i] + h + d + space[i + 1], baseline: space[i] + h, axis: space[i] + h - .25 }; y += offset[align] || 0; return y; }; class_1.prototype.getEmHalfSpacing = function (fspace, space) { var fspaceEm = this.em(fspace); var spaceEm = this.addEm(space, 2); spaceEm.unshift(fspaceEm); spaceEm.push(fspaceEm); return spaceEm; }; class_1.prototype.getRowHalfSpacing = function () { var space = this.rSpace.map(function (x) { return x / 2; }); space.unshift(this.fSpace[1]); space.push(this.fSpace[1]); return space; }; class_1.prototype.getColumnHalfSpacing = function () { var space = this.cSpace.map(function (x) { return x / 2; }); space.unshift(this.fSpace[0]); space.push(this.fSpace[0]); return space; }; class_1.prototype.getAlignmentRow = function () { var _a = __read(string_js_1.split(this.node.attributes.get('align')), 2), align = _a[0], row = _a[1]; if (row == null) return [align, null]; var i = parseInt(row); if (i < 0) i += this.numRows + 1; return [align, i < 1 || i > this.numRows ? null : i - 1]; }; class_1.prototype.getColumnAttributes = function (name, i) { if (i === void 0) { i = 1; } var n = this.numCols - i; var columns = this.getAttributeArray(name); if (columns.length === 0) return null; while (columns.length < n) { columns.push(columns[columns.length - 1]); } if (columns.length > n) { columns.splice(n); } return columns; }; class_1.prototype.getRowAttributes = function (name, i) { if (i === void 0) { i = 1; } var n = this.numRows - i; var rows = this.getAttributeArray(name); if (rows.length === 0) return null; while (rows.length < n) { rows.push(rows[rows.length - 1]); } if (rows.length > n) { rows.splice(n); } return rows; }; class_1.prototype.getAttributeArray = function (name) { var value = this.node.attributes.get(name); if (!value) return [this.node.attributes.getDefault(name)]; return string_js_1.split(value); }; class_1.prototype.addEm = function (list, n) { var _this = this; if (n === void 0) { n = 1; } if (!list) return null; return list.map(function (x) { return _this.em(x / n); }); }; class_1.prototype.convertLengths = function (list) { var _this = this; if (!list) return null; return list.map(function (x) { return _this.length2em(x); }); }; return class_1; }(Base)); } exports.CommonMtableMixin = CommonMtableMixin; //# sourceMappingURL=mtable.js.map /***/ }), /* 206 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmlabeledtr = exports.CHTMLmtr = void 0; var Wrapper_js_1 = __webpack_require__(5); var mtr_js_1 = __webpack_require__(91); var mtr_js_2 = __webpack_require__(91); var mtr_js_3 = __webpack_require__(74); var CHTMLmtr = (function (_super) { __extends(CHTMLmtr, _super); function CHTMLmtr() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmtr.prototype.toCHTML = function (parent) { _super.prototype.toCHTML.call(this, parent); var align = this.node.attributes.get('rowalign'); if (align !== 'baseline') { this.adaptor.setAttribute(this.chtml, 'rowalign', align); } }; CHTMLmtr.kind = mtr_js_3.MmlMtr.prototype.kind; CHTMLmtr.styles = { 'mjx-mtr': { display: 'table-row', }, 'mjx-mtr[rowalign="top"] > mjx-mtd': { 'vertical-align': 'top' }, 'mjx-mtr[rowalign="center"] > mjx-mtd': { 'vertical-align': 'middle' }, 'mjx-mtr[rowalign="bottom"] > mjx-mtd': { 'vertical-align': 'bottom' }, 'mjx-mtr[rowalign="baseline"] > mjx-mtd': { 'vertical-align': 'baseline' }, 'mjx-mtr[rowalign="axis"] > mjx-mtd': { 'vertical-align': '.25em' } }; return CHTMLmtr; }(mtr_js_1.CommonMtrMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmtr = CHTMLmtr; var CHTMLmlabeledtr = (function (_super) { __extends(CHTMLmlabeledtr, _super); function CHTMLmlabeledtr() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmlabeledtr.prototype.toCHTML = function (parent) { _super.prototype.toCHTML.call(this, parent); var child = this.adaptor.firstChild(this.chtml); if (child) { this.adaptor.remove(child); var align = this.node.attributes.get('rowalign'); var attr = (align !== 'baseline' && align !== 'axis' ? { rowalign: align } : {}); var row = this.html('mjx-mtr', attr, [child]); CHTMLmtr.used = true; this.adaptor.append(this.parent.labels, row); } }; CHTMLmlabeledtr.kind = mtr_js_3.MmlMlabeledtr.prototype.kind; CHTMLmlabeledtr.styles = { 'mjx-mlabeledtr': { display: 'table-row' }, 'mjx-mlabeledtr[rowalign="top"] > mjx-mtd': { 'vertical-align': 'top' }, 'mjx-mlabeledtr[rowalign="center"] > mjx-mtd': { 'vertical-align': 'middle' }, 'mjx-mlabeledtr[rowalign="bottom"] > mjx-mtd': { 'vertical-align': 'bottom' }, 'mjx-mlabeledtr[rowalign="baseline"] > mjx-mtd': { 'vertical-align': 'baseline' }, 'mjx-mlabeledtr[rowalign="axis"] > mjx-mtd': { 'vertical-align': '.25em' } }; return CHTMLmlabeledtr; }(mtr_js_2.CommonMlabeledtrMixin(CHTMLmtr))); exports.CHTMLmlabeledtr = CHTMLmlabeledtr; //# sourceMappingURL=mtr.js.map /***/ }), /* 207 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmtd = void 0; var Wrapper_js_1 = __webpack_require__(5); var mtd_js_1 = __webpack_require__(208); var mtd_js_2 = __webpack_require__(75); var CHTMLmtd = (function (_super) { __extends(CHTMLmtd, _super); function CHTMLmtd() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmtd.prototype.toCHTML = function (parent) { _super.prototype.toCHTML.call(this, parent); var ralign = this.node.attributes.get('rowalign'); var calign = this.node.attributes.get('columnalign'); var palign = this.parent.node.attributes.get('rowalign'); if (ralign !== palign) { this.adaptor.setAttribute(this.chtml, 'rowalign', ralign); } if (calign !== 'center' && (this.parent.kind !== 'mlabeledtr' || this !== this.parent.childNodes[0] || calign !== this.parent.parent.node.attributes.get('side'))) { this.adaptor.setStyle(this.chtml, 'textAlign', calign); } this.adaptor.append(this.chtml, this.html('mjx-tstrut')); }; CHTMLmtd.kind = mtd_js_2.MmlMtd.prototype.kind; CHTMLmtd.styles = { 'mjx-mtd': { display: 'table-cell', 'text-align': 'center', 'padding': '.215em .4em' }, 'mjx-mtd:first-child': { 'padding-left': 0 }, 'mjx-mtd:last-child': { 'padding-right': 0 }, 'mjx-mtable > * > mjx-itable > *:first-child > mjx-mtd': { 'padding-top': 0 }, 'mjx-mtable > * > mjx-itable > *:last-child > mjx-mtd': { 'padding-bottom': 0 }, 'mjx-tstrut': { display: 'inline-block', height: '1em', 'vertical-align': '-.25em' }, 'mjx-labels[align="left"] > mjx-mtr > mjx-mtd': { 'text-align': 'left' }, 'mjx-labels[align="right"] > mjx-mtr > mjx-mtd': { 'text-align': 'right' }, 'mjx-mtr mjx-mtd[rowalign="top"], mjx-mlabeledtr mjx-mtd[rowalign="top"]': { 'vertical-align': 'top' }, 'mjx-mtr mjx-mtd[rowalign="center"], mjx-mlabeledtr mjx-mtd[rowalign="center"]': { 'vertical-align': 'middle' }, 'mjx-mtr mjx-mtd[rowalign="bottom"], mjx-mlabeledtr mjx-mtd[rowalign="bottom"]': { 'vertical-align': 'bottom' }, 'mjx-mtr mjx-mtd[rowalign="baseline"], mjx-mlabeledtr mjx-mtd[rowalign="baseline"]': { 'vertical-align': 'baseline' }, 'mjx-mtr mjx-mtd[rowalign="axis"], mjx-mlabeledtr mjx-mtd[rowalign="axis"]': { 'vertical-align': '.25em' } }; return CHTMLmtd; }(mtd_js_1.CommonMtdMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmtd = CHTMLmtd; //# sourceMappingURL=mtd.js.map /***/ }), /* 208 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMtdMixin = void 0; function CommonMtdMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_1.prototype, "fixesPWidth", { get: function () { return false; }, enumerable: false, configurable: true }); class_1.prototype.invalidateBBox = function () { this.bboxComputed = false; }; class_1.prototype.getWrapWidth = function (_j) { var table = this.parent.parent; var row = this.parent; var i = this.node.childPosition() - (row.labeled ? 1 : 0); return (typeof (table.cWidths[i]) === 'number' ? table.cWidths[i] : table.getTableData().W[i]); }; class_1.prototype.getChildAlign = function (_i) { return this.node.attributes.get('columnalign'); }; return class_1; }(Base)); } exports.CommonMtdMixin = CommonMtdMixin; //# sourceMappingURL=mtd.js.map /***/ }), /* 209 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmaction = void 0; var Wrapper_js_1 = __webpack_require__(5); var maction_js_1 = __webpack_require__(92); var maction_js_2 = __webpack_require__(92); var maction_js_3 = __webpack_require__(70); var CHTMLmaction = (function (_super) { __extends(CHTMLmaction, _super); function CHTMLmaction() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmaction.prototype.toCHTML = function (parent) { var chtml = this.standardCHTMLnode(parent); var child = this.selected; child.toCHTML(chtml); this.action(this, this.data); }; CHTMLmaction.prototype.setEventHandler = function (type, handler) { this.chtml.addEventListener(type, handler); }; CHTMLmaction.kind = maction_js_3.MmlMaction.prototype.kind; CHTMLmaction.styles = { 'mjx-maction': { position: 'relative' }, 'mjx-maction > mjx-tool': { display: 'none', position: 'absolute', bottom: 0, right: 0, width: 0, height: 0, 'z-index': 500 }, 'mjx-tool > mjx-tip': { display: 'inline-block', padding: '.2em', border: '1px solid #888', 'font-size': '70%', 'background-color': '#F8F8F8', color: 'black', 'box-shadow': '2px 2px 5px #AAAAAA' }, 'mjx-maction[toggle]': { cursor: 'pointer' }, 'mjx-status': { display: 'block', position: 'fixed', left: '1em', bottom: '1em', 'min-width': '25%', padding: '.2em .4em', border: '1px solid #888', 'font-size': '90%', 'background-color': '#F8F8F8', color: 'black' } }; CHTMLmaction.actions = new Map([ ['toggle', [function (node, _data) { node.adaptor.setAttribute(node.chtml, 'toggle', node.node.attributes.get('selection')); var math = node.factory.jax.math; var document = node.factory.jax.document; var mml = node.node; node.setEventHandler('click', function (event) { if (!math.end.node) { math.start.node = math.end.node = math.typesetRoot; math.start.n = math.end.n = 0; } mml.nextToggleSelection(); math.rerender(document); event.stopPropagation(); }); }, {}]], ['tooltip', [function (node, data) { var tip = node.childNodes[1]; if (!tip) return; if (tip.node.isKind('mtext')) { var text = tip.node.getText(); node.adaptor.setAttribute(node.chtml, 'title', text); } else { var adaptor_1 = node.adaptor; var tool_1 = adaptor_1.append(node.chtml, node.html('mjx-tool', { style: { bottom: node.em(-node.dy), right: node.em(-node.dx) } }, [node.html('mjx-tip')])); tip.toCHTML(adaptor_1.firstChild(tool_1)); node.setEventHandler('mouseover', function (event) { data.stopTimers(node, data); var timeout = setTimeout(function () { return adaptor_1.setStyle(tool_1, 'display', 'block'); }, data.postDelay); data.hoverTimer.set(node, timeout); event.stopPropagation(); }); node.setEventHandler('mouseout', function (event) { data.stopTimers(node, data); var timeout = setTimeout(function () { return adaptor_1.setStyle(tool_1, 'display', ''); }, data.clearDelay); data.clearTimer.set(node, timeout); event.stopPropagation(); }); } }, maction_js_2.TooltipData]], ['statusline', [function (node, data) { var tip = node.childNodes[1]; if (!tip) return; if (tip.node.isKind('mtext')) { var adaptor_2 = node.adaptor; var text_1 = tip.node.getText(); adaptor_2.setAttribute(node.chtml, 'statusline', text_1); node.setEventHandler('mouseover', function (event) { if (data.status === null) { var body = adaptor_2.body(adaptor_2.document); data.status = adaptor_2.append(body, node.html('mjx-status', {}, [node.text(text_1)])); } event.stopPropagation(); }); node.setEventHandler('mouseout', function (event) { if (data.status) { adaptor_2.remove(data.status); data.status = null; } event.stopPropagation(); }); } }, { status: null }]] ]); return CHTMLmaction; }(maction_js_1.CommonMactionMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmaction = CHTMLmaction; //# sourceMappingURL=maction.js.map /***/ }), /* 210 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmglyph = void 0; var Wrapper_js_1 = __webpack_require__(5); var mglyph_js_1 = __webpack_require__(211); var mglyph_js_2 = __webpack_require__(76); var CHTMLmglyph = (function (_super) { __extends(CHTMLmglyph, _super); function CHTMLmglyph() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmglyph.prototype.toCHTML = function (parent) { var chtml = this.standardCHTMLnode(parent); var _a = this.node.attributes.getList('src', 'alt'), src = _a.src, alt = _a.alt; var styles = { width: this.em(this.width), height: this.em(this.height) }; if (this.valign) { styles.verticalAlign = this.em(this.valign); } var img = this.html('img', { src: src, style: styles, alt: alt, title: alt }); this.adaptor.append(chtml, img); }; CHTMLmglyph.kind = mglyph_js_2.MmlMglyph.prototype.kind; CHTMLmglyph.styles = { 'mjx-mglyph > img': { display: 'inline-block', border: 0, padding: 0 } }; return CHTMLmglyph; }(mglyph_js_1.CommonMglyphMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmglyph = CHTMLmglyph; //# sourceMappingURL=mglyph.js.map /***/ }), /* 211 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMglyphMixin = void 0; function CommonMglyphMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.getParameters(); return _this; } class_1.prototype.getParameters = function () { var _a = this.node.attributes.getList('width', 'height', 'valign'), width = _a.width, height = _a.height, valign = _a.valign; this.width = (width === 'auto' ? 1 : this.length2em(width)); this.height = (height === 'auto' ? 1 : this.length2em(height)); this.valign = this.length2em(valign || '0'); }; class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } bbox.w = this.width; bbox.h = this.height + this.valign; bbox.d = -this.valign; }; return class_1; }(Base)); } exports.CommonMglyphMixin = CommonMglyphMixin; //# sourceMappingURL=mglyph.js.map /***/ }), /* 212 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLxml = exports.CHTMLannotationXML = exports.CHTMLannotation = exports.CHTMLsemantics = void 0; var Wrapper_js_1 = __webpack_require__(5); var semantics_js_1 = __webpack_require__(213); var semantics_js_2 = __webpack_require__(77); var MmlNode_js_1 = __webpack_require__(0); var CHTMLsemantics = (function (_super) { __extends(CHTMLsemantics, _super); function CHTMLsemantics() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLsemantics.prototype.toCHTML = function (parent) { var chtml = this.standardCHTMLnode(parent); if (this.childNodes.length) { this.childNodes[0].toCHTML(chtml); } }; CHTMLsemantics.kind = semantics_js_2.MmlSemantics.prototype.kind; return CHTMLsemantics; }(semantics_js_1.CommonSemanticsMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLsemantics = CHTMLsemantics; var CHTMLannotation = (function (_super) { __extends(CHTMLannotation, _super); function CHTMLannotation() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLannotation.prototype.toCHTML = function (parent) { _super.prototype.toCHTML.call(this, parent); }; CHTMLannotation.prototype.computeBBox = function () { return this.bbox; }; CHTMLannotation.kind = semantics_js_2.MmlAnnotation.prototype.kind; return CHTMLannotation; }(Wrapper_js_1.CHTMLWrapper)); exports.CHTMLannotation = CHTMLannotation; var CHTMLannotationXML = (function (_super) { __extends(CHTMLannotationXML, _super); function CHTMLannotationXML() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLannotationXML.kind = semantics_js_2.MmlAnnotationXML.prototype.kind; CHTMLannotationXML.styles = { 'mjx-annotation-xml': { 'font-family': 'initial', 'line-height': 'normal' } }; return CHTMLannotationXML; }(Wrapper_js_1.CHTMLWrapper)); exports.CHTMLannotationXML = CHTMLannotationXML; var CHTMLxml = (function (_super) { __extends(CHTMLxml, _super); function CHTMLxml() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLxml.prototype.toCHTML = function (parent) { this.chtml = this.adaptor.append(parent, this.adaptor.clone(this.node.getXML())); }; CHTMLxml.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } var _a = this.jax.measureXMLnode(this.node.getXML()), w = _a.w, h = _a.h, d = _a.d; bbox.w = w; bbox.h = h; bbox.d = d; }; CHTMLxml.prototype.getStyles = function () { }; CHTMLxml.prototype.getScale = function () { }; CHTMLxml.prototype.getVariant = function () { }; CHTMLxml.kind = MmlNode_js_1.XMLNode.prototype.kind; CHTMLxml.autoStyle = false; return CHTMLxml; }(Wrapper_js_1.CHTMLWrapper)); exports.CHTMLxml = CHTMLxml; //# sourceMappingURL=semantics.js.map /***/ }), /* 213 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonSemanticsMixin = void 0; function CommonSemanticsMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } if (this.childNodes.length) { var _a = this.childNodes[0].getBBox(), w = _a.w, h = _a.h, d = _a.d; bbox.w = w; bbox.h = h; bbox.d = d; } }; return class_1; }(Base)); } exports.CommonSemanticsMixin = CommonSemanticsMixin; //# sourceMappingURL=semantics.js.map /***/ }), /* 214 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLTeXAtom = void 0; var Wrapper_js_1 = __webpack_require__(5); var TeXAtom_js_1 = __webpack_require__(215); var TeXAtom_js_2 = __webpack_require__(78); var MmlNode_js_1 = __webpack_require__(0); var CHTMLTeXAtom = (function (_super) { __extends(CHTMLTeXAtom, _super); function CHTMLTeXAtom() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLTeXAtom.prototype.toCHTML = function (parent) { _super.prototype.toCHTML.call(this, parent); this.adaptor.setAttribute(this.chtml, 'texclass', MmlNode_js_1.TEXCLASSNAMES[this.node.texClass]); if (this.node.texClass === MmlNode_js_1.TEXCLASS.VCENTER) { var bbox = this.childNodes[0].getBBox(); var h = bbox.h, d = bbox.d; var a = this.font.params.axis_height; var dh = ((h + d) / 2 + a) - h; this.adaptor.setStyle(this.chtml, 'verticalAlign', this.em(dh)); } }; CHTMLTeXAtom.kind = TeXAtom_js_2.TeXAtom.prototype.kind; return CHTMLTeXAtom; }(TeXAtom_js_1.CommonTeXAtomMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLTeXAtom = CHTMLTeXAtom; //# sourceMappingURL=TeXAtom.js.map /***/ }), /* 215 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonTeXAtomMixin = void 0; var MmlNode_js_1 = __webpack_require__(0); function CommonTeXAtomMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } _super.prototype.computeBBox.call(this, bbox, recompute); if (this.childNodes[0] && this.childNodes[0].bbox.ic) { bbox.ic = this.childNodes[0].bbox.ic; } if (this.node.texClass === MmlNode_js_1.TEXCLASS.VCENTER) { var h = bbox.h, d = bbox.d; var a = this.font.params.axis_height; var dh = ((h + d) / 2 + a) - h; bbox.h += dh; bbox.d -= dh; } }; return class_1; }(Base)); } exports.CommonTeXAtomMixin = CommonTeXAtomMixin; //# sourceMappingURL=TeXAtom.js.map /***/ }), /* 216 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLTextNode = void 0; var MmlNode_js_1 = __webpack_require__(0); var Wrapper_js_1 = __webpack_require__(5); var TextNode_js_1 = __webpack_require__(217); var CHTMLTextNode = (function (_super) { __extends(CHTMLTextNode, _super); function CHTMLTextNode() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLTextNode.prototype.toCHTML = function (parent) { var e_1, _a; this.markUsed(); var adaptor = this.adaptor; var variant = this.parent.variant; var text = this.node.getText(); if (variant === '-explicitFont') { var font = this.jax.getFontData(this.parent.styles); adaptor.append(parent, this.jax.unknownText(text, variant, font)); } else { var chars = this.remappedText(text, variant); try { for (var chars_1 = __values(chars), chars_1_1 = chars_1.next(); !chars_1_1.done; chars_1_1 = chars_1.next()) { var n = chars_1_1.value; var data = this.getVariantChar(variant, n)[3]; var font = (data.f ? ' TEX-' + data.f : ''); var node = (data.unknown ? this.jax.unknownText(String.fromCodePoint(n), variant) : this.html('mjx-c', { class: this.char(n) + font })); adaptor.append(parent, node); data.used = true; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (chars_1_1 && !chars_1_1.done && (_a = chars_1.return)) _a.call(chars_1); } finally { if (e_1) throw e_1.error; } } } }; CHTMLTextNode.kind = MmlNode_js_1.TextNode.prototype.kind; CHTMLTextNode.autoStyle = false; CHTMLTextNode.styles = { 'mjx-c': { display: 'inline-block' }, 'mjx-utext': { display: 'inline-block', padding: '.75em 0 .2em 0' } }; return CHTMLTextNode; }(TextNode_js_1.CommonTextNodeMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLTextNode = CHTMLTextNode; //# sourceMappingURL=TextNode.js.map /***/ }), /* 217 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonTextNodeMixin = void 0; function CommonTextNodeMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.computeBBox = function (bbox, _recompute) { var e_1, _a; if (_recompute === void 0) { _recompute = false; } var variant = this.parent.variant; var text = this.node.getText(); if (variant === '-explicitFont') { var font = this.jax.getFontData(this.parent.styles); var _b = this.jax.measureText(text, variant, font), w = _b.w, h = _b.h, d = _b.d; bbox.h = h; bbox.d = d; bbox.w = w; } else { var chars = this.remappedText(text, variant); bbox.empty(); try { for (var chars_1 = __values(chars), chars_1_1 = chars_1.next(); !chars_1_1.done; chars_1_1 = chars_1.next()) { var char = chars_1_1.value; var _c = __read(this.getVariantChar(variant, char), 4), h = _c[0], d = _c[1], w = _c[2], data = _c[3]; if (data.unknown) { var cbox = this.jax.measureText(String.fromCodePoint(char), variant); w = cbox.w; h = cbox.h; d = cbox.d; } bbox.w += w; if (h > bbox.h) bbox.h = h; if (d > bbox.d) bbox.d = d; bbox.ic = data.ic || 0; bbox.sk = data.sk || 0; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (chars_1_1 && !chars_1_1.done && (_a = chars_1.return)) _a.call(chars_1); } finally { if (e_1) throw e_1.error; } } if (chars.length > 1) { bbox.sk = 0; } bbox.clean(); } }; class_1.prototype.remappedText = function (text, variant) { var c = this.parent.stretch.c; return (c ? [c] : this.parent.remapChars(this.unicodeChars(text, variant))); }; class_1.prototype.getStyles = function () { }; class_1.prototype.getVariant = function () { }; class_1.prototype.getScale = function () { }; class_1.prototype.getSpace = function () { }; return class_1; }(Base)); } exports.CommonTextNodeMixin = CommonTextNodeMixin; //# sourceMappingURL=TextNode.js.map /***/ }), /* 218 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.boldItalic = void 0; var FontData_js_1 = __webpack_require__(9); var bold_italic_js_1 = __webpack_require__(219); exports.boldItalic = FontData_js_1.AddCSS(bold_italic_js_1.boldItalic, { 0x131: { f: 'B' }, 0x237: { f: 'B' }, 0x2044: { c: '/' }, 0x2206: { c: '\\394' }, 0x29F8: { c: '/' }, }); //# sourceMappingURL=bold-italic.js.map /***/ }), /* 219 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.boldItalic = void 0; exports.boldItalic = { 0x2F: [.711, .21, .894], 0x131: [.452, .008, .394, { sk: .0319 }], 0x237: [.451, .201, .439, { sk: .0958 }], 0x2044: [.711, .21, .894], 0x2206: [.711, 0, .958, { sk: .192 }], 0x29F8: [.711, .21, .894], }; //# sourceMappingURL=bold-italic.js.map /***/ }), /* 220 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.bold = void 0; var FontData_js_1 = __webpack_require__(9); var bold_js_1 = __webpack_require__(221); exports.bold = FontData_js_1.AddCSS(bold_js_1.bold, { 0xB7: { c: '\\22C5' }, 0x131: { f: '' }, 0x237: { f: '' }, 0x2B9: { c: '\\2032' }, 0x2002: { c: '' }, 0x2003: { c: '' }, 0x2004: { c: '' }, 0x2005: { c: '' }, 0x2006: { c: '' }, 0x2009: { c: '' }, 0x200A: { c: '' }, 0x2015: { c: '\\2014' }, 0x2016: { c: '\\2225' }, 0x2017: { c: '_' }, 0x2022: { c: '\\2219' }, 0x2033: { c: '\\2032\\2032' }, 0x2034: { c: '\\2032\\2032\\2032' }, 0x203E: { c: '\\2C9' }, 0x2044: { c: '/' }, 0x2057: { c: '\\2032\\2032\\2032\\2032' }, 0x20D7: { c: '\\2192', f: 'VB' }, 0x219A: { c: '\\2190\\338' }, 0x219B: { c: '\\2192\\338' }, 0x21AE: { c: '\\2194\\338' }, 0x21CD: { c: '\\21D0\\338' }, 0x21CE: { c: '\\21D4\\338' }, 0x21CF: { c: '\\21D2\\338' }, 0x2204: { c: '\\2203\\338' }, 0x2206: { c: '\\394' }, 0x220C: { c: '\\220B\\338' }, 0x2224: { c: '\\2223\\338' }, 0x2226: { c: '\\2225\\338' }, 0x2241: { c: '\\223C\\338' }, 0x2244: { c: '\\2243\\338' }, 0x2247: { c: '\\2245\\338' }, 0x2249: { c: '\\2248\\338' }, 0x2262: { c: '\\2261\\338' }, 0x226D: { c: '\\224D\\338' }, 0x226E: { c: '<\\338' }, 0x226F: { c: '>\\338' }, 0x2270: { c: '\\2264\\338' }, 0x2271: { c: '\\2265\\338' }, 0x2280: { c: '\\227A\\338' }, 0x2281: { c: '\\227B\\338' }, 0x2284: { c: '\\2282\\338' }, 0x2285: { c: '\\2283\\338' }, 0x2288: { c: '\\2286\\338' }, 0x2289: { c: '\\2287\\338' }, 0x22AC: { c: '\\22A2\\338' }, 0x22AD: { c: '\\22A8\\338' }, 0x22E2: { c: '\\2291\\338' }, 0x22E3: { c: '\\2292\\338' }, 0x2329: { c: '\\27E8' }, 0x232A: { c: '\\27E9' }, 0x25B5: { c: '\\25B3' }, 0x25BF: { c: '\\25BD' }, 0x2758: { c: '\\2223' }, 0x29F8: { c: '/', f: 'BI' }, 0x2A2F: { c: '\\D7' }, 0x3008: { c: '\\27E8' }, 0x3009: { c: '\\27E9' }, }); //# sourceMappingURL=bold.js.map /***/ }), /* 221 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.bold = void 0; exports.bold = { 0x21: [.705, 0, .35], 0x22: [.694, -0.329, .603], 0x23: [.694, .193, .958], 0x24: [.75, .056, .575], 0x25: [.75, .056, .958], 0x26: [.705, .011, .894], 0x27: [.694, -0.329, .319], 0x28: [.75, .249, .447], 0x29: [.75, .249, .447], 0x2A: [.75, -0.306, .575], 0x2B: [.633, .131, .894], 0x2C: [.171, .194, .319], 0x2D: [.278, -0.166, .383], 0x2E: [.171, 0, .319], 0x2F: [.75, .25, .575], 0x3A: [.444, 0, .319], 0x3B: [.444, .194, .319], 0x3C: [.587, .085, .894], 0x3D: [.393, -0.109, .894], 0x3E: [.587, .085, .894], 0x3F: [.7, 0, .543], 0x40: [.699, .006, .894], 0x5B: [.75, .25, .319], 0x5C: [.75, .25, .575], 0x5D: [.75, .25, .319], 0x5E: [.694, -0.52, .575], 0x5F: [-0.01, .061, .575], 0x60: [.706, -0.503, .575], 0x7B: [.75, .25, .575], 0x7C: [.75, .249, .319], 0x7D: [.75, .25, .575], 0x7E: [.344, -0.202, .575], 0xA8: [.695, -0.535, .575], 0xAC: [.371, -0.061, .767], 0xAF: [.607, -0.54, .575], 0xB0: [.702, -0.536, .575], 0xB1: [.728, .035, .894], 0xB4: [.706, -0.503, .575], 0xB7: [.336, -0.166, .319], 0xD7: [.53, .028, .894], 0xF7: [.597, .096, .894], 0x131: [.442, 0, .278, { sk: .0278 }], 0x237: [.442, .205, .306, { sk: .0833 }], 0x2B9: [.563, -0.033, .344], 0x2C6: [.694, -0.52, .575], 0x2C7: [.66, -0.515, .575], 0x2C9: [.607, -0.54, .575], 0x2CA: [.706, -0.503, .575], 0x2CB: [.706, -0.503, .575], 0x2D8: [.694, -0.5, .575], 0x2D9: [.695, -0.525, .575], 0x2DA: [.702, -0.536, .575], 0x2DC: [.694, -0.552, .575], 0x300: [.706, -0.503, 0], 0x301: [.706, -0.503, 0], 0x302: [.694, -0.52, 0], 0x303: [.694, -0.552, 0], 0x304: [.607, -0.54, 0], 0x306: [.694, -0.5, 0], 0x307: [.695, -0.525, 0], 0x308: [.695, -0.535, 0], 0x30A: [.702, -0.536, 0], 0x30B: [.714, -0.511, 0], 0x30C: [.66, -0.515, 0], 0x338: [.711, .21, 0], 0x2002: [0, 0, .5], 0x2003: [0, 0, .999], 0x2004: [0, 0, .333], 0x2005: [0, 0, .25], 0x2006: [0, 0, .167], 0x2009: [0, 0, .167], 0x200A: [0, 0, .083], 0x2013: [.3, -0.249, .575], 0x2014: [.3, -0.249, 1.15], 0x2015: [.3, -0.249, 1.15], 0x2016: [.75, .248, .575], 0x2017: [-0.01, .061, .575], 0x2018: [.694, -0.329, .319], 0x2019: [.694, -0.329, .319], 0x201C: [.694, -0.329, .603], 0x201D: [.694, -0.329, .603], 0x2020: [.702, .211, .511], 0x2021: [.702, .202, .511], 0x2022: [.474, -0.028, .575], 0x2026: [.171, 0, 1.295], 0x2032: [.563, -0.033, .344], 0x2033: [.563, 0, .688], 0x2034: [.563, 0, 1.032], 0x203E: [.607, -0.54, .575], 0x2044: [.75, .25, .575], 0x2057: [.563, 0, 1.376], 0x20D7: [.723, -0.513, .575], 0x210F: [.694, .008, .668, { sk: -0.0319 }], 0x2113: [.702, .019, .474, { sk: .128 }], 0x2118: [.461, .21, .74], 0x2135: [.694, 0, .703], 0x2190: [.518, .017, 1.15], 0x2191: [.694, .193, .575], 0x2192: [.518, .017, 1.15], 0x2193: [.694, .194, .575], 0x2194: [.518, .017, 1.15], 0x2195: [.767, .267, .575], 0x2196: [.724, .194, 1.15], 0x2197: [.724, .193, 1.15], 0x2198: [.694, .224, 1.15], 0x2199: [.694, .224, 1.15], 0x219A: [.711, .21, 1.15], 0x219B: [.711, .21, 1.15], 0x21A6: [.518, .017, 1.15], 0x21A9: [.518, .017, 1.282], 0x21AA: [.518, .017, 1.282], 0x21AE: [.711, .21, 1.15], 0x21BC: [.518, -0.22, 1.15], 0x21BD: [.281, .017, 1.15], 0x21C0: [.518, -0.22, 1.15], 0x21C1: [.281, .017, 1.15], 0x21CC: [.718, .017, 1.15], 0x21CD: [.711, .21, 1.15], 0x21CE: [.711, .21, 1.15], 0x21CF: [.711, .21, 1.15], 0x21D0: [.547, .046, 1.15], 0x21D1: [.694, .193, .703], 0x21D2: [.547, .046, 1.15], 0x21D3: [.694, .194, .703], 0x21D4: [.547, .046, 1.15], 0x21D5: [.767, .267, .703], 0x2200: [.694, .016, .639], 0x2203: [.694, 0, .639], 0x2204: [.711, .21, .639], 0x2205: [.767, .073, .575], 0x2206: [.698, 0, .958], 0x2208: [.587, .086, .767], 0x2209: [.711, .21, .767], 0x220B: [.587, .086, .767], 0x220C: [.711, .21, .767], 0x2212: [.281, -0.221, .894], 0x2213: [.537, .227, .894], 0x2215: [.75, .25, .575], 0x2216: [.75, .25, .575], 0x2217: [.472, -0.028, .575], 0x2218: [.474, -0.028, .575], 0x2219: [.474, -0.028, .575], 0x221A: [.82, .18, .958, { ic: .03 }], 0x221D: [.451, .008, .894], 0x221E: [.452, .008, 1.15], 0x2220: [.714, 0, .722], 0x2223: [.75, .249, .319], 0x2224: [.75, .249, .319], 0x2225: [.75, .248, .575], 0x2226: [.75, .248, .575], 0x2227: [.604, .017, .767], 0x2228: [.604, .016, .767], 0x2229: [.603, .016, .767], 0x222A: [.604, .016, .767], 0x222B: [.711, .211, .569, { ic: .063 }], 0x223C: [.391, -0.109, .894], 0x2240: [.583, .082, .319], 0x2241: [.711, .21, .894], 0x2243: [.502, 0, .894], 0x2244: [.711, .21, .894], 0x2245: [.638, .027, .894], 0x2247: [.711, .21, .894], 0x2248: [.524, -0.032, .894], 0x2249: [.711, .21, .894], 0x224D: [.533, .032, .894], 0x2250: [.721, -0.109, .894], 0x2260: [.711, .21, .894], 0x2261: [.505, 0, .894], 0x2262: [.711, .21, .894], 0x2264: [.697, .199, .894], 0x2265: [.697, .199, .894], 0x226A: [.617, .116, 1.15], 0x226B: [.618, .116, 1.15], 0x226D: [.711, .21, .894], 0x226E: [.711, .21, .894], 0x226F: [.711, .21, .894], 0x2270: [.711, .21, .894], 0x2271: [.711, .21, .894], 0x227A: [.585, .086, .894], 0x227B: [.586, .086, .894], 0x2280: [.711, .21, .894], 0x2281: [.711, .21, .894], 0x2282: [.587, .085, .894], 0x2283: [.587, .086, .894], 0x2284: [.711, .21, .894], 0x2285: [.711, .21, .894], 0x2286: [.697, .199, .894], 0x2287: [.697, .199, .894], 0x2288: [.711, .21, .894], 0x2289: [.711, .21, .894], 0x228E: [.604, .016, .767], 0x2291: [.697, .199, .894], 0x2292: [.697, .199, .894], 0x2293: [.604, 0, .767], 0x2294: [.604, 0, .767], 0x2295: [.632, .132, .894], 0x2296: [.632, .132, .894], 0x2297: [.632, .132, .894], 0x2298: [.632, .132, .894], 0x2299: [.632, .132, .894], 0x22A2: [.693, 0, .703], 0x22A3: [.693, 0, .703], 0x22A4: [.694, 0, .894], 0x22A5: [.693, 0, .894], 0x22A8: [.75, .249, .974], 0x22AC: [.711, .21, .703], 0x22AD: [.75, .249, .974], 0x22C4: [.523, .021, .575], 0x22C5: [.336, -0.166, .319], 0x22C6: [.502, 0, .575], 0x22C8: [.54, .039, 1], 0x22E2: [.711, .21, .894], 0x22E3: [.711, .21, .894], 0x22EE: [.951, .029, .319], 0x22EF: [.336, -0.166, 1.295], 0x22F1: [.871, -0.101, 1.323], 0x2308: [.75, .248, .511], 0x2309: [.75, .248, .511], 0x230A: [.749, .248, .511], 0x230B: [.749, .248, .511], 0x2322: [.405, -0.108, 1.15], 0x2323: [.392, -0.126, 1.15], 0x2329: [.75, .249, .447], 0x232A: [.75, .249, .447], 0x25B3: [.711, 0, 1.022], 0x25B5: [.711, 0, 1.022], 0x25B9: [.54, .039, .575], 0x25BD: [.5, .21, 1.022], 0x25BF: [.5, .21, 1.022], 0x25C3: [.539, .038, .575], 0x25EF: [.711, .211, 1.15], 0x2660: [.719, .129, .894], 0x2661: [.711, .024, .894], 0x2662: [.719, .154, .894], 0x2663: [.719, .129, .894], 0x266D: [.75, .017, .447], 0x266E: [.741, .223, .447], 0x266F: [.724, .224, .447], 0x2758: [.75, .249, .319], 0x27E8: [.75, .249, .447], 0x27E9: [.75, .249, .447], 0x27F5: [.518, .017, 1.805], 0x27F6: [.518, .017, 1.833], 0x27F7: [.518, .017, 2.126], 0x27F8: [.547, .046, 1.868], 0x27F9: [.547, .046, 1.87], 0x27FA: [.547, .046, 2.126], 0x27FC: [.518, .017, 1.833], 0x29F8: [.711, .21, .894], 0x2A2F: [.53, .028, .894], 0x2A3F: [.686, 0, .9], 0x2AAF: [.696, .199, .894], 0x2AB0: [.697, .199, .894], 0x3008: [.75, .249, .447], 0x3009: [.75, .249, .447], }; //# sourceMappingURL=bold.js.map /***/ }), /* 222 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.doubleStruck = void 0; exports.doubleStruck = {}; //# sourceMappingURL=double-struck.js.map /***/ }), /* 223 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.frakturBold = void 0; var FontData_js_1 = __webpack_require__(9); var fraktur_bold_js_1 = __webpack_require__(224); exports.frakturBold = FontData_js_1.AddCSS(fraktur_bold_js_1.frakturBold, { 0x2044: { c: '/' }, }); //# sourceMappingURL=fraktur-bold.js.map /***/ }), /* 224 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.frakturBold = void 0; exports.frakturBold = { 0x21: [.689, .012, .349], 0x22: [.695, -0.432, .254], 0x26: [.696, .016, .871], 0x27: [.695, -0.436, .25], 0x28: [.737, .186, .459], 0x29: [.735, .187, .459], 0x2A: [.692, -0.449, .328], 0x2B: [.598, .082, .893], 0x2C: [.107, .191, .328], 0x2D: [.275, -0.236, .893], 0x2E: [.102, .015, .328], 0x2F: [.721, .182, .593], 0x30: [.501, .012, .593], 0x31: [.489, 0, .593], 0x32: [.491, 0, .593], 0x33: [.487, .193, .593], 0x34: [.495, .196, .593], 0x35: [.481, .19, .593], 0x36: [.704, .012, .593], 0x37: [.479, .197, .593], 0x38: [.714, .005, .593], 0x39: [.487, .195, .593], 0x3A: [.457, .012, .255], 0x3B: [.458, .19, .255], 0x3D: [.343, -0.168, .582], 0x3F: [.697, .014, .428], 0x5B: [.74, .13, .257], 0x5D: [.738, .132, .257], 0x5E: [.734, -0.452, .59], 0x2018: [.708, -0.411, .254], 0x2019: [.692, -0.394, .254], 0x2044: [.721, .182, .593], 0xE301: [.63, .027, .587], 0xE302: [.693, .212, .394, { ic: .014 }], 0xE303: [.681, .219, .387], 0xE304: [.473, .212, .593], 0xE305: [.684, .027, .393], 0xE308: [.679, .22, .981], 0xE309: [.717, .137, .727], }; //# sourceMappingURL=fraktur-bold.js.map /***/ }), /* 225 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fraktur = void 0; var FontData_js_1 = __webpack_require__(9); var fraktur_js_1 = __webpack_require__(226); exports.fraktur = FontData_js_1.AddCSS(fraktur_js_1.fraktur, { 0x2044: { c: '/' }, }); //# sourceMappingURL=fraktur.js.map /***/ }), /* 226 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fraktur = void 0; exports.fraktur = { 0x21: [.689, .012, .296], 0x22: [.695, -0.432, .215], 0x26: [.698, .011, .738], 0x27: [.695, -0.436, .212], 0x28: [.737, .186, .389], 0x29: [.735, .187, .389], 0x2A: [.692, -0.449, .278], 0x2B: [.598, .082, .756], 0x2C: [.107, .191, .278], 0x2D: [.275, -0.236, .756], 0x2E: [.102, .015, .278], 0x2F: [.721, .182, .502], 0x30: [.492, .013, .502], 0x31: [.468, 0, .502], 0x32: [.474, 0, .502], 0x33: [.473, .182, .502], 0x34: [.476, .191, .502], 0x35: [.458, .184, .502], 0x36: [.7, .013, .502], 0x37: [.468, .181, .502], 0x38: [.705, .01, .502], 0x39: [.469, .182, .502], 0x3A: [.457, .012, .216], 0x3B: [.458, .189, .216], 0x3D: [.368, -0.132, .756], 0x3F: [.693, .011, .362], 0x5B: [.74, .13, .278], 0x5D: [.738, .131, .278], 0x5E: [.734, -0.452, .5], 0x2018: [.708, -0.41, .215], 0x2019: [.692, -0.395, .215], 0x2044: [.721, .182, .502], 0xE300: [.683, .032, .497], 0xE301: [.616, .03, .498], 0xE302: [.68, .215, .333], 0xE303: [.679, .224, .329], 0xE304: [.471, .214, .503], 0xE305: [.686, .02, .333], 0xE306: [.577, .021, .334, { ic: .013 }], 0xE307: [.475, .022, .501, { ic: .013 }], }; //# sourceMappingURL=fraktur.js.map /***/ }), /* 227 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.italic = void 0; var FontData_js_1 = __webpack_require__(9); var italic_js_1 = __webpack_require__(228); exports.italic = FontData_js_1.AddCSS(italic_js_1.italic, { 0x2F: { f: 'I' }, 0x3DD: { c: '\\E008', f: 'A' }, 0x2015: { c: '\\2014' }, 0x2017: { c: '_' }, 0x2044: { c: '/', f: 'I' }, 0x2206: { c: '\\394', f: 'I' }, 0x29F8: { c: '/', f: 'I' }, }); //# sourceMappingURL=italic.js.map /***/ }), /* 228 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.italic = void 0; exports.italic = { 0x21: [.716, 0, .307, { ic: .073 }], 0x22: [.694, -0.379, .514, { ic: .024 }], 0x23: [.694, .194, .818, { ic: .01 }], 0x25: [.75, .056, .818, { ic: .029 }], 0x26: [.716, .022, .767, { ic: .035 }], 0x27: [.694, -0.379, .307, { ic: .07 }], 0x28: [.75, .25, .409, { ic: .108 }], 0x29: [.75, .25, .409], 0x2A: [.75, -0.32, .511, { ic: .073 }], 0x2B: [.557, .057, .767], 0x2C: [.121, .194, .307], 0x2D: [.251, -0.18, .358], 0x2E: [.121, 0, .307], 0x2F: [.716, .215, .778], 0x30: [.665, .021, .511, { ic: .051 }], 0x31: [.666, 0, .511], 0x32: [.666, .022, .511, { ic: .04 }], 0x33: [.666, .022, .511, { ic: .051 }], 0x34: [.666, .194, .511], 0x35: [.666, .022, .511, { ic: .056 }], 0x36: [.665, .022, .511, { ic: .054 }], 0x37: [.666, .022, .511, { ic: .123 }], 0x38: [.666, .021, .511, { ic: .042 }], 0x39: [.666, .022, .511, { ic: .042 }], 0x3A: [.431, 0, .307], 0x3B: [.431, .194, .307], 0x3D: [.367, -0.133, .767], 0x3F: [.716, 0, .511, { ic: .04 }], 0x40: [.705, .011, .767, { ic: .022 }], 0x5B: [.75, .25, .307, { ic: .139 }], 0x5D: [.75, .25, .307, { ic: .052 }], 0x5E: [.694, -0.527, .511, { ic: .017 }], 0x5F: [-0.025, .062, .511, { ic: .043 }], 0x7E: [.318, -0.208, .511, { ic: .06 }], 0x131: [.441, .01, .307, { ic: .033 }], 0x237: [.442, .204, .332], 0x300: [.697, -0.5, 0], 0x301: [.697, -0.5, 0, { ic: .039 }], 0x302: [.694, -0.527, 0, { ic: .017 }], 0x303: [.668, -0.558, 0, { ic: .06 }], 0x304: [.589, -0.544, 0, { ic: .054 }], 0x306: [.694, -0.515, 0, { ic: .062 }], 0x307: [.669, -0.548, 0], 0x308: [.669, -0.554, 0, { ic: .045 }], 0x30A: [.716, -0.542, 0], 0x30B: [.697, -0.503, 0, { ic: .065 }], 0x30C: [.638, -0.502, 0, { ic: .029 }], 0x3DD: [.605, .085, .778], 0x2013: [.285, -0.248, .511, { ic: .043 }], 0x2014: [.285, -0.248, 1.022, { ic: .016 }], 0x2015: [.285, -0.248, 1.022, { ic: .016 }], 0x2017: [-0.025, .062, .511, { ic: .043 }], 0x2018: [.694, -0.379, .307, { ic: .055 }], 0x2019: [.694, -0.379, .307, { ic: .07 }], 0x201C: [.694, -0.379, .514, { ic: .092 }], 0x201D: [.694, -0.379, .514, { ic: .024 }], 0x2044: [.716, .215, .778], 0x210F: [.695, .013, .54, { ic: .022 }], 0x2206: [.716, 0, .833, { sk: .167 }], 0x29F8: [.716, .215, .778], }; //# sourceMappingURL=italic.js.map /***/ }), /* 229 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.largeop = void 0; var FontData_js_1 = __webpack_require__(9); var largeop_js_1 = __webpack_require__(230); exports.largeop = FontData_js_1.AddCSS(largeop_js_1.largeop, { 0x2016: { f: 'S1' }, 0x2044: { c: '/' }, 0x2191: { f: 'S1' }, 0x2193: { f: 'S1' }, 0x21D1: { f: 'S1' }, 0x21D3: { f: 'S1' }, 0x2223: { f: 'S1' }, 0x2225: { f: 'S1' }, 0x2329: { c: '\\27E8' }, 0x232A: { c: '\\27E9' }, 0x23D0: { f: 'S1' }, 0x2758: { c: '\\2223', f: 'S1' }, 0x2A0C: { c: '\\222C\\222C' }, 0x3008: { c: '\\27E8' }, 0x3009: { c: '\\27E9' }, }); //# sourceMappingURL=largeop.js.map /***/ }), /* 230 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.largeop = void 0; exports.largeop = { 0x28: [1.15, .649, .597], 0x29: [1.15, .649, .597], 0x2F: [1.15, .649, .811], 0x5B: [1.15, .649, .472], 0x5C: [1.15, .649, .811], 0x5D: [1.15, .649, .472], 0x7B: [1.15, .649, .667], 0x7D: [1.15, .649, .667], 0x2C6: [.772, -0.565, 1], 0x2DC: [.75, -0.611, 1], 0x302: [.772, -0.565, 0], 0x303: [.75, -0.611, 0], 0x2016: [.602, 0, .778], 0x2044: [1.15, .649, .811], 0x2191: [.6, 0, .667], 0x2193: [.6, 0, .667], 0x21D1: [.599, 0, .778], 0x21D3: [.6, 0, .778], 0x220F: [.95, .45, 1.278], 0x2210: [.95, .45, 1.278], 0x2211: [.95, .45, 1.444], 0x221A: [1.15, .65, 1, { ic: .02 }], 0x2223: [.627, .015, .333], 0x2225: [.627, .015, .556], 0x222B: [1.36, .862, .556, { ic: .388 }], 0x222C: [1.36, .862, 1.084, { ic: .388 }], 0x222D: [1.36, .862, 1.592, { ic: .388 }], 0x222E: [1.36, .862, .556, { ic: .388 }], 0x22C0: [.95, .45, 1.111], 0x22C1: [.95, .45, 1.111], 0x22C2: [.949, .45, 1.111], 0x22C3: [.95, .449, 1.111], 0x2308: [1.15, .649, .528], 0x2309: [1.15, .649, .528], 0x230A: [1.15, .649, .528], 0x230B: [1.15, .649, .528], 0x2329: [1.15, .649, .611], 0x232A: [1.15, .649, .611], 0x23D0: [.602, 0, .667], 0x2758: [.627, .015, .333], 0x27E8: [1.15, .649, .611], 0x27E9: [1.15, .649, .611], 0x2A00: [.949, .449, 1.511], 0x2A01: [.949, .449, 1.511], 0x2A02: [.949, .449, 1.511], 0x2A04: [.95, .449, 1.111], 0x2A06: [.95, .45, 1.111], 0x2A0C: [1.36, .862, 2.168, { ic: .388 }], 0x3008: [1.15, .649, .611], 0x3009: [1.15, .649, .611], }; //# sourceMappingURL=largeop.js.map /***/ }), /* 231 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.monospace = void 0; var FontData_js_1 = __webpack_require__(9); var monospace_js_1 = __webpack_require__(232); exports.monospace = FontData_js_1.AddCSS(monospace_js_1.monospace, { 0x2B9: { c: '\\2032' }, 0x391: { c: 'A' }, 0x392: { c: 'B' }, 0x395: { c: 'E' }, 0x396: { c: 'Z' }, 0x397: { c: 'H' }, 0x399: { c: 'I' }, 0x39A: { c: 'K' }, 0x39C: { c: 'M' }, 0x39D: { c: 'N' }, 0x39F: { c: 'O' }, 0x3A1: { c: 'P' }, 0x3A4: { c: 'T' }, 0x3A7: { c: 'X' }, 0x2017: { c: '_' }, 0x2033: { c: '\\2032\\2032' }, 0x2034: { c: '\\2032\\2032\\2032' }, 0x2044: { c: '/' }, 0x2057: { c: '\\2032\\2032\\2032\\2032' }, 0x2206: { c: '\\394' }, }); //# sourceMappingURL=monospace.js.map /***/ }), /* 232 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.monospace = void 0; exports.monospace = { 0x20: [0, 0, .525], 0x21: [.622, 0, .525], 0x22: [.623, -0.333, .525], 0x23: [.611, 0, .525], 0x24: [.694, .082, .525], 0x25: [.694, .083, .525], 0x26: [.622, .011, .525], 0x27: [.611, -0.287, .525], 0x28: [.694, .082, .525], 0x29: [.694, .082, .525], 0x2A: [.52, -0.09, .525], 0x2B: [.531, -0.081, .525], 0x2C: [.14, .139, .525], 0x2D: [.341, -0.271, .525], 0x2E: [.14, 0, .525], 0x2F: [.694, .083, .525], 0x3A: [.431, 0, .525], 0x3B: [.431, .139, .525], 0x3C: [.557, -0.055, .525], 0x3D: [.417, -0.195, .525], 0x3E: [.557, -0.055, .525], 0x3F: [.617, 0, .525], 0x40: [.617, .006, .525], 0x5B: [.694, .082, .525], 0x5C: [.694, .083, .525], 0x5D: [.694, .082, .525], 0x5E: [.611, -0.46, .525], 0x5F: [-0.025, .095, .525], 0x60: [.681, -0.357, .525], 0x7B: [.694, .083, .525], 0x7C: [.694, .082, .525], 0x7D: [.694, .083, .525], 0x7E: [.611, -0.466, .525], 0x7F: [.612, -0.519, .525], 0xA0: [0, 0, .525], 0x131: [.431, 0, .525], 0x237: [.431, .228, .525], 0x2B9: [.623, -0.334, .525], 0x300: [.611, -0.485, 0], 0x301: [.611, -0.485, 0], 0x302: [.611, -0.46, 0], 0x303: [.611, -0.466, 0], 0x304: [.577, -0.5, 0], 0x306: [.611, -0.504, 0], 0x308: [.612, -0.519, 0], 0x30A: [.619, -0.499, 0], 0x30C: [.577, -0.449, 0], 0x391: [.623, 0, .525], 0x392: [.611, 0, .525], 0x393: [.611, 0, .525], 0x394: [.623, 0, .525], 0x395: [.611, 0, .525], 0x396: [.611, 0, .525], 0x397: [.611, 0, .525], 0x398: [.621, .01, .525], 0x399: [.611, 0, .525], 0x39A: [.611, 0, .525], 0x39B: [.623, 0, .525], 0x39C: [.611, 0, .525], 0x39D: [.611, 0, .525], 0x39E: [.611, 0, .525], 0x39F: [.621, .01, .525], 0x3A0: [.611, 0, .525], 0x3A1: [.611, 0, .525], 0x3A3: [.611, 0, .525], 0x3A4: [.611, 0, .525], 0x3A5: [.622, 0, .525], 0x3A6: [.611, 0, .525], 0x3A7: [.611, 0, .525], 0x3A8: [.611, 0, .525], 0x3A9: [.622, 0, .525], 0x2017: [-0.025, .095, .525], 0x2032: [.623, -0.334, .525], 0x2033: [.623, 0, 1.05], 0x2034: [.623, 0, 1.575], 0x2044: [.694, .083, .525], 0x2057: [.623, 0, 2.1], 0x2206: [.623, 0, .525], }; //# sourceMappingURL=monospace.js.map /***/ }), /* 233 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normal = void 0; var FontData_js_1 = __webpack_require__(9); var normal_js_1 = __webpack_require__(234); exports.normal = FontData_js_1.AddCSS(normal_js_1.normal, { 0xA3: { f: 'MI' }, 0xA5: { f: 'A' }, 0xAE: { f: 'A' }, 0xB7: { c: '\\22C5' }, 0xF0: { f: 'A' }, 0x2B9: { c: '\\2032' }, 0x391: { c: 'A' }, 0x392: { c: 'B' }, 0x395: { c: 'E' }, 0x396: { c: 'Z' }, 0x397: { c: 'H' }, 0x399: { c: 'I' }, 0x39A: { c: 'K' }, 0x39C: { c: 'M' }, 0x39D: { c: 'N' }, 0x39F: { c: 'O' }, 0x3A1: { c: 'P' }, 0x3A4: { c: 'T' }, 0x3A7: { c: 'X' }, 0x2000: { c: '' }, 0x2001: { c: '' }, 0x2002: { c: '' }, 0x2003: { c: '' }, 0x2004: { c: '' }, 0x2005: { c: '' }, 0x2006: { c: '' }, 0x2009: { c: '' }, 0x200A: { c: '' }, 0x200B: { c: '' }, 0x200C: { c: '' }, 0x2015: { c: '\\2014' }, 0x2016: { c: '\\2225' }, 0x2017: { c: '_' }, 0x2022: { c: '\\2219' }, 0x2033: { c: '\\2032\\2032' }, 0x2034: { c: '\\2032\\2032\\2032' }, 0x2035: { f: 'A' }, 0x2036: { c: '\\2035\\2035', f: 'A' }, 0x2037: { c: '\\2035\\2035\\2035', f: 'A' }, 0x203E: { c: '\\2C9' }, 0x2044: { c: '/' }, 0x2057: { c: '\\2032\\2032\\2032\\2032' }, 0x2060: { c: '' }, 0x2061: { c: '' }, 0x2062: { c: '' }, 0x2063: { c: '' }, 0x2064: { c: '' }, 0x20D7: { c: '\\2192', f: 'V' }, 0x2102: { c: 'C', f: 'A' }, 0x210B: { c: 'H', f: 'SC' }, 0x210C: { c: 'H', f: 'FR' }, 0x210D: { c: 'H', f: 'A' }, 0x210E: { c: 'h', f: 'I' }, 0x210F: { f: 'A' }, 0x2110: { c: 'J', f: 'SC' }, 0x2111: { c: 'I', f: 'FR' }, 0x2112: { c: 'L', f: 'SC' }, 0x2115: { c: 'N', f: 'A' }, 0x2119: { c: 'P', f: 'A' }, 0x211A: { c: 'Q', f: 'A' }, 0x211B: { c: 'R', f: 'SC' }, 0x211C: { c: 'R', f: 'FR' }, 0x211D: { c: 'R', f: 'A' }, 0x2124: { c: 'Z', f: 'A' }, 0x2126: { c: '\\3A9' }, 0x2127: { f: 'A' }, 0x2128: { c: 'Z', f: 'FR' }, 0x212C: { c: 'B', f: 'SC' }, 0x212D: { c: 'C', f: 'FR' }, 0x2130: { c: 'E', f: 'SC' }, 0x2131: { c: 'F', f: 'SC' }, 0x2132: { f: 'A' }, 0x2133: { c: 'M', f: 'SC' }, 0x2136: { f: 'A' }, 0x2137: { f: 'A' }, 0x2138: { f: 'A' }, 0x2141: { f: 'A' }, 0x219A: { f: 'A' }, 0x219B: { f: 'A' }, 0x219E: { f: 'A' }, 0x21A0: { f: 'A' }, 0x21A2: { f: 'A' }, 0x21A3: { f: 'A' }, 0x21AB: { f: 'A' }, 0x21AC: { f: 'A' }, 0x21AD: { f: 'A' }, 0x21AE: { f: 'A' }, 0x21B0: { f: 'A' }, 0x21B1: { f: 'A' }, 0x21B6: { f: 'A' }, 0x21B7: { f: 'A' }, 0x21BA: { f: 'A' }, 0x21BB: { f: 'A' }, 0x21BE: { f: 'A' }, 0x21BF: { f: 'A' }, 0x21C2: { f: 'A' }, 0x21C3: { f: 'A' }, 0x21C4: { f: 'A' }, 0x21C6: { f: 'A' }, 0x21C7: { f: 'A' }, 0x21C8: { f: 'A' }, 0x21C9: { f: 'A' }, 0x21CA: { f: 'A' }, 0x21CB: { f: 'A' }, 0x21CD: { f: 'A' }, 0x21CE: { f: 'A' }, 0x21CF: { f: 'A' }, 0x21DA: { f: 'A' }, 0x21DB: { f: 'A' }, 0x21DD: { f: 'A' }, 0x21E0: { f: 'A' }, 0x21E2: { f: 'A' }, 0x2201: { f: 'A' }, 0x2204: { c: '\\2203\\338' }, 0x2206: { c: '\\394' }, 0x220C: { c: '\\220B\\338' }, 0x220D: { f: 'A' }, 0x220F: { f: 'S1' }, 0x2210: { f: 'S1' }, 0x2211: { f: 'S1' }, 0x2214: { f: 'A' }, 0x2221: { f: 'A' }, 0x2222: { f: 'A' }, 0x2224: { f: 'A' }, 0x2226: { f: 'A' }, 0x222C: { f: 'S1' }, 0x222D: { f: 'S1' }, 0x222E: { f: 'S1' }, 0x2234: { f: 'A' }, 0x2235: { f: 'A' }, 0x223D: { f: 'A' }, 0x2241: { f: 'A' }, 0x2242: { f: 'A' }, 0x2244: { c: '\\2243\\338' }, 0x2247: { c: '\\2246', f: 'A' }, 0x2249: { c: '\\2248\\338' }, 0x224A: { f: 'A' }, 0x224E: { f: 'A' }, 0x224F: { f: 'A' }, 0x2251: { f: 'A' }, 0x2252: { f: 'A' }, 0x2253: { f: 'A' }, 0x2256: { f: 'A' }, 0x2257: { f: 'A' }, 0x225C: { f: 'A' }, 0x2262: { c: '\\2261\\338' }, 0x2266: { f: 'A' }, 0x2267: { f: 'A' }, 0x2268: { f: 'A' }, 0x2269: { f: 'A' }, 0x226C: { f: 'A' }, 0x226D: { c: '\\224D\\338' }, 0x226E: { f: 'A' }, 0x226F: { f: 'A' }, 0x2270: { f: 'A' }, 0x2271: { f: 'A' }, 0x2272: { f: 'A' }, 0x2273: { f: 'A' }, 0x2274: { c: '\\2272\\338' }, 0x2275: { c: '\\2273\\338' }, 0x2276: { f: 'A' }, 0x2277: { f: 'A' }, 0x2278: { c: '\\2276\\338' }, 0x2279: { c: '\\2277\\338' }, 0x227C: { f: 'A' }, 0x227D: { f: 'A' }, 0x227E: { f: 'A' }, 0x227F: { f: 'A' }, 0x2280: { f: 'A' }, 0x2281: { f: 'A' }, 0x2284: { c: '\\2282\\338' }, 0x2285: { c: '\\2283\\338' }, 0x2288: { f: 'A' }, 0x2289: { f: 'A' }, 0x228A: { f: 'A' }, 0x228B: { f: 'A' }, 0x228F: { f: 'A' }, 0x2290: { f: 'A' }, 0x229A: { f: 'A' }, 0x229B: { f: 'A' }, 0x229D: { f: 'A' }, 0x229E: { f: 'A' }, 0x229F: { f: 'A' }, 0x22A0: { f: 'A' }, 0x22A1: { f: 'A' }, 0x22A9: { f: 'A' }, 0x22AA: { f: 'A' }, 0x22AC: { f: 'A' }, 0x22AD: { f: 'A' }, 0x22AE: { f: 'A' }, 0x22AF: { f: 'A' }, 0x22B2: { f: 'A' }, 0x22B3: { f: 'A' }, 0x22B4: { f: 'A' }, 0x22B5: { f: 'A' }, 0x22B8: { f: 'A' }, 0x22BA: { f: 'A' }, 0x22BB: { f: 'A' }, 0x22BC: { f: 'A' }, 0x22C0: { f: 'S1' }, 0x22C1: { f: 'S1' }, 0x22C2: { f: 'S1' }, 0x22C3: { f: 'S1' }, 0x22C7: { f: 'A' }, 0x22C9: { f: 'A' }, 0x22CA: { f: 'A' }, 0x22CB: { f: 'A' }, 0x22CC: { f: 'A' }, 0x22CD: { f: 'A' }, 0x22CE: { f: 'A' }, 0x22CF: { f: 'A' }, 0x22D0: { f: 'A' }, 0x22D1: { f: 'A' }, 0x22D2: { f: 'A' }, 0x22D3: { f: 'A' }, 0x22D4: { f: 'A' }, 0x22D6: { f: 'A' }, 0x22D7: { f: 'A' }, 0x22D8: { f: 'A' }, 0x22D9: { f: 'A' }, 0x22DA: { f: 'A' }, 0x22DB: { f: 'A' }, 0x22DE: { f: 'A' }, 0x22DF: { f: 'A' }, 0x22E0: { f: 'A' }, 0x22E1: { f: 'A' }, 0x22E2: { c: '\\2291\\338' }, 0x22E3: { c: '\\2292\\338' }, 0x22E6: { f: 'A' }, 0x22E7: { f: 'A' }, 0x22E8: { f: 'A' }, 0x22E9: { f: 'A' }, 0x22EA: { f: 'A' }, 0x22EB: { f: 'A' }, 0x22EC: { f: 'A' }, 0x22ED: { f: 'A' }, 0x2305: { c: '\\22BC', f: 'A' }, 0x2306: { c: '\\2A5E', f: 'A' }, 0x231C: { c: '\\250C', f: 'A' }, 0x231D: { c: '\\2510', f: 'A' }, 0x231E: { c: '\\2514', f: 'A' }, 0x231F: { c: '\\2518', f: 'A' }, 0x2329: { c: '\\27E8' }, 0x232A: { c: '\\27E9' }, 0x23D0: { f: 'S1' }, 0x24C8: { f: 'A' }, 0x250C: { f: 'A' }, 0x2510: { f: 'A' }, 0x2514: { f: 'A' }, 0x2518: { f: 'A' }, 0x2571: { f: 'A' }, 0x2572: { f: 'A' }, 0x25A0: { f: 'A' }, 0x25A1: { f: 'A' }, 0x25AA: { c: '\\25A0', f: 'A' }, 0x25B2: { f: 'A' }, 0x25B4: { c: '\\25B2', f: 'A' }, 0x25B5: { c: '\\25B3' }, 0x25B6: { f: 'A' }, 0x25B8: { c: '\\25B6', f: 'A' }, 0x25BC: { f: 'A' }, 0x25BE: { c: '\\25BC', f: 'A' }, 0x25BF: { c: '\\25BD' }, 0x25C0: { f: 'A' }, 0x25C2: { c: '\\25C0', f: 'A' }, 0x25CA: { f: 'A' }, 0x25FB: { c: '\\25A1', f: 'A' }, 0x25FC: { c: '\\25A0', f: 'A' }, 0x2605: { f: 'A' }, 0x2713: { f: 'A' }, 0x2720: { f: 'A' }, 0x2758: { c: '\\2223' }, 0x29EB: { f: 'A' }, 0x29F8: { c: '/', f: 'I' }, 0x2A00: { f: 'S1' }, 0x2A01: { f: 'S1' }, 0x2A02: { f: 'S1' }, 0x2A04: { f: 'S1' }, 0x2A06: { f: 'S1' }, 0x2A0C: { c: '\\222C\\222C', f: 'S1' }, 0x2A2F: { c: '\\D7' }, 0x2A5E: { f: 'A' }, 0x2A7D: { f: 'A' }, 0x2A7E: { f: 'A' }, 0x2A85: { f: 'A' }, 0x2A86: { f: 'A' }, 0x2A87: { f: 'A' }, 0x2A88: { f: 'A' }, 0x2A89: { f: 'A' }, 0x2A8A: { f: 'A' }, 0x2A8B: { f: 'A' }, 0x2A8C: { f: 'A' }, 0x2A95: { f: 'A' }, 0x2A96: { f: 'A' }, 0x2AB5: { f: 'A' }, 0x2AB6: { f: 'A' }, 0x2AB7: { f: 'A' }, 0x2AB8: { f: 'A' }, 0x2AB9: { f: 'A' }, 0x2ABA: { f: 'A' }, 0x2AC5: { f: 'A' }, 0x2AC6: { f: 'A' }, 0x2ACB: { f: 'A' }, 0x2ACC: { f: 'A' }, 0x3008: { c: '\\27E8' }, 0x3009: { c: '\\27E9' }, 0xE006: { f: 'A' }, 0xE007: { f: 'A' }, 0xE008: { f: 'A' }, 0xE009: { f: 'A' }, 0xE00C: { f: 'A' }, 0xE00D: { f: 'A' }, 0xE00E: { f: 'A' }, 0xE00F: { f: 'A' }, 0xE010: { f: 'A' }, 0xE011: { f: 'A' }, 0xE016: { f: 'A' }, 0xE017: { f: 'A' }, 0xE018: { f: 'A' }, 0xE019: { f: 'A' }, 0xE01A: { f: 'A' }, 0xE01B: { f: 'A' }, 0x1D400: { c: 'A', f: 'B' }, 0x1D401: { c: 'B', f: 'B' }, 0x1D402: { c: 'C', f: 'B' }, 0x1D403: { c: 'D', f: 'B' }, 0x1D404: { c: 'E', f: 'B' }, 0x1D405: { c: 'F', f: 'B' }, 0x1D406: { c: 'G', f: 'B' }, 0x1D407: { c: 'H', f: 'B' }, 0x1D408: { c: 'I', f: 'B' }, 0x1D409: { c: 'J', f: 'B' }, 0x1D40A: { c: 'K', f: 'B' }, 0x1D40B: { c: 'L', f: 'B' }, 0x1D40C: { c: 'M', f: 'B' }, 0x1D40D: { c: 'N', f: 'B' }, 0x1D40E: { c: 'O', f: 'B' }, 0x1D40F: { c: 'P', f: 'B' }, 0x1D410: { c: 'Q', f: 'B' }, 0x1D411: { c: 'R', f: 'B' }, 0x1D412: { c: 'S', f: 'B' }, 0x1D413: { c: 'T', f: 'B' }, 0x1D414: { c: 'U', f: 'B' }, 0x1D415: { c: 'V', f: 'B' }, 0x1D416: { c: 'W', f: 'B' }, 0x1D417: { c: 'X', f: 'B' }, 0x1D418: { c: 'Y', f: 'B' }, 0x1D419: { c: 'Z', f: 'B' }, 0x1D41A: { c: 'a', f: 'B' }, 0x1D41B: { c: 'b', f: 'B' }, 0x1D41C: { c: 'c', f: 'B' }, 0x1D41D: { c: 'd', f: 'B' }, 0x1D41E: { c: 'e', f: 'B' }, 0x1D41F: { c: 'f', f: 'B' }, 0x1D420: { c: 'g', f: 'B' }, 0x1D421: { c: 'h', f: 'B' }, 0x1D422: { c: 'i', f: 'B' }, 0x1D423: { c: 'j', f: 'B' }, 0x1D424: { c: 'k', f: 'B' }, 0x1D425: { c: 'l', f: 'B' }, 0x1D426: { c: 'm', f: 'B' }, 0x1D427: { c: 'n', f: 'B' }, 0x1D428: { c: 'o', f: 'B' }, 0x1D429: { c: 'p', f: 'B' }, 0x1D42A: { c: 'q', f: 'B' }, 0x1D42B: { c: 'r', f: 'B' }, 0x1D42C: { c: 's', f: 'B' }, 0x1D42D: { c: 't', f: 'B' }, 0x1D42E: { c: 'u', f: 'B' }, 0x1D42F: { c: 'v', f: 'B' }, 0x1D430: { c: 'w', f: 'B' }, 0x1D431: { c: 'x', f: 'B' }, 0x1D432: { c: 'y', f: 'B' }, 0x1D433: { c: 'z', f: 'B' }, 0x1D434: { c: 'A', f: 'I' }, 0x1D435: { c: 'B', f: 'I' }, 0x1D436: { c: 'C', f: 'I' }, 0x1D437: { c: 'D', f: 'I' }, 0x1D438: { c: 'E', f: 'I' }, 0x1D439: { c: 'F', f: 'I' }, 0x1D43A: { c: 'G', f: 'I' }, 0x1D43B: { c: 'H', f: 'I' }, 0x1D43C: { c: 'I', f: 'I' }, 0x1D43D: { c: 'J', f: 'I' }, 0x1D43E: { c: 'K', f: 'I' }, 0x1D43F: { c: 'L', f: 'I' }, 0x1D440: { c: 'M', f: 'I' }, 0x1D441: { c: 'N', f: 'I' }, 0x1D442: { c: 'O', f: 'I' }, 0x1D443: { c: 'P', f: 'I' }, 0x1D444: { c: 'Q', f: 'I' }, 0x1D445: { c: 'R', f: 'I' }, 0x1D446: { c: 'S', f: 'I' }, 0x1D447: { c: 'T', f: 'I' }, 0x1D448: { c: 'U', f: 'I' }, 0x1D449: { c: 'V', f: 'I' }, 0x1D44A: { c: 'W', f: 'I' }, 0x1D44B: { c: 'X', f: 'I' }, 0x1D44C: { c: 'Y', f: 'I' }, 0x1D44D: { c: 'Z', f: 'I' }, 0x1D44E: { c: 'a', f: 'I' }, 0x1D44F: { c: 'b', f: 'I' }, 0x1D450: { c: 'c', f: 'I' }, 0x1D451: { c: 'd', f: 'I' }, 0x1D452: { c: 'e', f: 'I' }, 0x1D453: { c: 'f', f: 'I' }, 0x1D454: { c: 'g', f: 'I' }, 0x1D456: { c: 'i', f: 'I' }, 0x1D457: { c: 'j', f: 'I' }, 0x1D458: { c: 'k', f: 'I' }, 0x1D459: { c: 'l', f: 'I' }, 0x1D45A: { c: 'm', f: 'I' }, 0x1D45B: { c: 'n', f: 'I' }, 0x1D45C: { c: 'o', f: 'I' }, 0x1D45D: { c: 'p', f: 'I' }, 0x1D45E: { c: 'q', f: 'I' }, 0x1D45F: { c: 'r', f: 'I' }, 0x1D460: { c: 's', f: 'I' }, 0x1D461: { c: 't', f: 'I' }, 0x1D462: { c: 'u', f: 'I' }, 0x1D463: { c: 'v', f: 'I' }, 0x1D464: { c: 'w', f: 'I' }, 0x1D465: { c: 'x', f: 'I' }, 0x1D466: { c: 'y', f: 'I' }, 0x1D467: { c: 'z', f: 'I' }, 0x1D468: { c: 'A', f: 'BI' }, 0x1D469: { c: 'B', f: 'BI' }, 0x1D46A: { c: 'C', f: 'BI' }, 0x1D46B: { c: 'D', f: 'BI' }, 0x1D46C: { c: 'E', f: 'BI' }, 0x1D46D: { c: 'F', f: 'BI' }, 0x1D46E: { c: 'G', f: 'BI' }, 0x1D46F: { c: 'H', f: 'BI' }, 0x1D470: { c: 'I', f: 'BI' }, 0x1D471: { c: 'J', f: 'BI' }, 0x1D472: { c: 'K', f: 'BI' }, 0x1D473: { c: 'L', f: 'BI' }, 0x1D474: { c: 'M', f: 'BI' }, 0x1D475: { c: 'N', f: 'BI' }, 0x1D476: { c: 'O', f: 'BI' }, 0x1D477: { c: 'P', f: 'BI' }, 0x1D478: { c: 'Q', f: 'BI' }, 0x1D479: { c: 'R', f: 'BI' }, 0x1D47A: { c: 'S', f: 'BI' }, 0x1D47B: { c: 'T', f: 'BI' }, 0x1D47C: { c: 'U', f: 'BI' }, 0x1D47D: { c: 'V', f: 'BI' }, 0x1D47E: { c: 'W', f: 'BI' }, 0x1D47F: { c: 'X', f: 'BI' }, 0x1D480: { c: 'Y', f: 'BI' }, 0x1D481: { c: 'Z', f: 'BI' }, 0x1D482: { c: 'a', f: 'BI' }, 0x1D483: { c: 'b', f: 'BI' }, 0x1D484: { c: 'c', f: 'BI' }, 0x1D485: { c: 'd', f: 'BI' }, 0x1D486: { c: 'e', f: 'BI' }, 0x1D487: { c: 'f', f: 'BI' }, 0x1D488: { c: 'g', f: 'BI' }, 0x1D489: { c: 'h', f: 'BI' }, 0x1D48A: { c: 'i', f: 'BI' }, 0x1D48B: { c: 'j', f: 'BI' }, 0x1D48C: { c: 'k', f: 'BI' }, 0x1D48D: { c: 'l', f: 'BI' }, 0x1D48E: { c: 'm', f: 'BI' }, 0x1D48F: { c: 'n', f: 'BI' }, 0x1D490: { c: 'o', f: 'BI' }, 0x1D491: { c: 'p', f: 'BI' }, 0x1D492: { c: 'q', f: 'BI' }, 0x1D493: { c: 'r', f: 'BI' }, 0x1D494: { c: 's', f: 'BI' }, 0x1D495: { c: 't', f: 'BI' }, 0x1D496: { c: 'u', f: 'BI' }, 0x1D497: { c: 'v', f: 'BI' }, 0x1D498: { c: 'w', f: 'BI' }, 0x1D499: { c: 'x', f: 'BI' }, 0x1D49A: { c: 'y', f: 'BI' }, 0x1D49B: { c: 'z', f: 'BI' }, 0x1D49C: { c: 'A', f: 'SC' }, 0x1D49E: { c: 'C', f: 'SC' }, 0x1D49F: { c: 'D', f: 'SC' }, 0x1D4A2: { c: 'G', f: 'SC' }, 0x1D4A5: { c: 'J', f: 'SC' }, 0x1D4A6: { c: 'K', f: 'SC' }, 0x1D4A9: { c: 'N', f: 'SC' }, 0x1D4AA: { c: 'O', f: 'SC' }, 0x1D4AB: { c: 'P', f: 'SC' }, 0x1D4AC: { c: 'Q', f: 'SC' }, 0x1D4AE: { c: 'S', f: 'SC' }, 0x1D4AF: { c: 'T', f: 'SC' }, 0x1D4B0: { c: 'U', f: 'SC' }, 0x1D4B1: { c: 'V', f: 'SC' }, 0x1D4B2: { c: 'W', f: 'SC' }, 0x1D4B3: { c: 'X', f: 'SC' }, 0x1D4B4: { c: 'Y', f: 'SC' }, 0x1D4B5: { c: 'Z', f: 'SC' }, 0x1D504: { c: 'A', f: 'FR' }, 0x1D505: { c: 'B', f: 'FR' }, 0x1D507: { c: 'D', f: 'FR' }, 0x1D508: { c: 'E', f: 'FR' }, 0x1D509: { c: 'F', f: 'FR' }, 0x1D50A: { c: 'G', f: 'FR' }, 0x1D50D: { c: 'J', f: 'FR' }, 0x1D50E: { c: 'K', f: 'FR' }, 0x1D50F: { c: 'L', f: 'FR' }, 0x1D510: { c: 'M', f: 'FR' }, 0x1D511: { c: 'N', f: 'FR' }, 0x1D512: { c: 'O', f: 'FR' }, 0x1D513: { c: 'P', f: 'FR' }, 0x1D514: { c: 'Q', f: 'FR' }, 0x1D516: { c: 'S', f: 'FR' }, 0x1D517: { c: 'T', f: 'FR' }, 0x1D518: { c: 'U', f: 'FR' }, 0x1D519: { c: 'V', f: 'FR' }, 0x1D51A: { c: 'W', f: 'FR' }, 0x1D51B: { c: 'X', f: 'FR' }, 0x1D51C: { c: 'Y', f: 'FR' }, 0x1D51E: { c: 'a', f: 'FR' }, 0x1D51F: { c: 'b', f: 'FR' }, 0x1D520: { c: 'c', f: 'FR' }, 0x1D521: { c: 'd', f: 'FR' }, 0x1D522: { c: 'e', f: 'FR' }, 0x1D523: { c: 'f', f: 'FR' }, 0x1D524: { c: 'g', f: 'FR' }, 0x1D525: { c: 'h', f: 'FR' }, 0x1D526: { c: 'i', f: 'FR' }, 0x1D527: { c: 'j', f: 'FR' }, 0x1D528: { c: 'k', f: 'FR' }, 0x1D529: { c: 'l', f: 'FR' }, 0x1D52A: { c: 'm', f: 'FR' }, 0x1D52B: { c: 'n', f: 'FR' }, 0x1D52C: { c: 'o', f: 'FR' }, 0x1D52D: { c: 'p', f: 'FR' }, 0x1D52E: { c: 'q', f: 'FR' }, 0x1D52F: { c: 'r', f: 'FR' }, 0x1D530: { c: 's', f: 'FR' }, 0x1D531: { c: 't', f: 'FR' }, 0x1D532: { c: 'u', f: 'FR' }, 0x1D533: { c: 'v', f: 'FR' }, 0x1D534: { c: 'w', f: 'FR' }, 0x1D535: { c: 'x', f: 'FR' }, 0x1D536: { c: 'y', f: 'FR' }, 0x1D537: { c: 'z', f: 'FR' }, 0x1D538: { c: 'A', f: 'A' }, 0x1D539: { c: 'B', f: 'A' }, 0x1D53B: { c: 'D', f: 'A' }, 0x1D53C: { c: 'E', f: 'A' }, 0x1D53D: { c: 'F', f: 'A' }, 0x1D53E: { c: 'G', f: 'A' }, 0x1D540: { c: 'I', f: 'A' }, 0x1D541: { c: 'J', f: 'A' }, 0x1D542: { c: 'K', f: 'A' }, 0x1D543: { c: 'L', f: 'A' }, 0x1D544: { c: 'M', f: 'A' }, 0x1D546: { c: 'O', f: 'A' }, 0x1D54A: { c: 'S', f: 'A' }, 0x1D54B: { c: 'T', f: 'A' }, 0x1D54C: { c: 'U', f: 'A' }, 0x1D54D: { c: 'V', f: 'A' }, 0x1D54E: { c: 'W', f: 'A' }, 0x1D54F: { c: 'X', f: 'A' }, 0x1D550: { c: 'Y', f: 'A' }, 0x1D56C: { c: 'A', f: 'FRB' }, 0x1D56D: { c: 'B', f: 'FRB' }, 0x1D56E: { c: 'C', f: 'FRB' }, 0x1D56F: { c: 'D', f: 'FRB' }, 0x1D570: { c: 'E', f: 'FRB' }, 0x1D571: { c: 'F', f: 'FRB' }, 0x1D572: { c: 'G', f: 'FRB' }, 0x1D573: { c: 'H', f: 'FRB' }, 0x1D574: { c: 'I', f: 'FRB' }, 0x1D575: { c: 'J', f: 'FRB' }, 0x1D576: { c: 'K', f: 'FRB' }, 0x1D577: { c: 'L', f: 'FRB' }, 0x1D578: { c: 'M', f: 'FRB' }, 0x1D579: { c: 'N', f: 'FRB' }, 0x1D57A: { c: 'O', f: 'FRB' }, 0x1D57B: { c: 'P', f: 'FRB' }, 0x1D57C: { c: 'Q', f: 'FRB' }, 0x1D57D: { c: 'R', f: 'FRB' }, 0x1D57E: { c: 'S', f: 'FRB' }, 0x1D57F: { c: 'T', f: 'FRB' }, 0x1D580: { c: 'U', f: 'FRB' }, 0x1D581: { c: 'V', f: 'FRB' }, 0x1D582: { c: 'W', f: 'FRB' }, 0x1D583: { c: 'X', f: 'FRB' }, 0x1D584: { c: 'Y', f: 'FRB' }, 0x1D585: { c: 'Z', f: 'FRB' }, 0x1D586: { c: 'a', f: 'FRB' }, 0x1D587: { c: 'b', f: 'FRB' }, 0x1D588: { c: 'c', f: 'FRB' }, 0x1D589: { c: 'd', f: 'FRB' }, 0x1D58A: { c: 'e', f: 'FRB' }, 0x1D58B: { c: 'f', f: 'FRB' }, 0x1D58C: { c: 'g', f: 'FRB' }, 0x1D58D: { c: 'h', f: 'FRB' }, 0x1D58E: { c: 'i', f: 'FRB' }, 0x1D58F: { c: 'j', f: 'FRB' }, 0x1D590: { c: 'k', f: 'FRB' }, 0x1D591: { c: 'l', f: 'FRB' }, 0x1D592: { c: 'm', f: 'FRB' }, 0x1D593: { c: 'n', f: 'FRB' }, 0x1D594: { c: 'o', f: 'FRB' }, 0x1D595: { c: 'p', f: 'FRB' }, 0x1D596: { c: 'q', f: 'FRB' }, 0x1D597: { c: 'r', f: 'FRB' }, 0x1D598: { c: 's', f: 'FRB' }, 0x1D599: { c: 't', f: 'FRB' }, 0x1D59A: { c: 'u', f: 'FRB' }, 0x1D59B: { c: 'v', f: 'FRB' }, 0x1D59C: { c: 'w', f: 'FRB' }, 0x1D59D: { c: 'x', f: 'FRB' }, 0x1D59E: { c: 'y', f: 'FRB' }, 0x1D59F: { c: 'z', f: 'FRB' }, 0x1D5A0: { c: 'A', f: 'SS' }, 0x1D5A1: { c: 'B', f: 'SS' }, 0x1D5A2: { c: 'C', f: 'SS' }, 0x1D5A3: { c: 'D', f: 'SS' }, 0x1D5A4: { c: 'E', f: 'SS' }, 0x1D5A5: { c: 'F', f: 'SS' }, 0x1D5A6: { c: 'G', f: 'SS' }, 0x1D5A7: { c: 'H', f: 'SS' }, 0x1D5A8: { c: 'I', f: 'SS' }, 0x1D5A9: { c: 'J', f: 'SS' }, 0x1D5AA: { c: 'K', f: 'SS' }, 0x1D5AB: { c: 'L', f: 'SS' }, 0x1D5AC: { c: 'M', f: 'SS' }, 0x1D5AD: { c: 'N', f: 'SS' }, 0x1D5AE: { c: 'O', f: 'SS' }, 0x1D5AF: { c: 'P', f: 'SS' }, 0x1D5B0: { c: 'Q', f: 'SS' }, 0x1D5B1: { c: 'R', f: 'SS' }, 0x1D5B2: { c: 'S', f: 'SS' }, 0x1D5B3: { c: 'T', f: 'SS' }, 0x1D5B4: { c: 'U', f: 'SS' }, 0x1D5B5: { c: 'V', f: 'SS' }, 0x1D5B6: { c: 'W', f: 'SS' }, 0x1D5B7: { c: 'X', f: 'SS' }, 0x1D5B8: { c: 'Y', f: 'SS' }, 0x1D5B9: { c: 'Z', f: 'SS' }, 0x1D5BA: { c: 'a', f: 'SS' }, 0x1D5BB: { c: 'b', f: 'SS' }, 0x1D5BC: { c: 'c', f: 'SS' }, 0x1D5BD: { c: 'd', f: 'SS' }, 0x1D5BE: { c: 'e', f: 'SS' }, 0x1D5BF: { c: 'f', f: 'SS' }, 0x1D5C0: { c: 'g', f: 'SS' }, 0x1D5C1: { c: 'h', f: 'SS' }, 0x1D5C2: { c: 'i', f: 'SS' }, 0x1D5C3: { c: 'j', f: 'SS' }, 0x1D5C4: { c: 'k', f: 'SS' }, 0x1D5C5: { c: 'l', f: 'SS' }, 0x1D5C6: { c: 'm', f: 'SS' }, 0x1D5C7: { c: 'n', f: 'SS' }, 0x1D5C8: { c: 'o', f: 'SS' }, 0x1D5C9: { c: 'p', f: 'SS' }, 0x1D5CA: { c: 'q', f: 'SS' }, 0x1D5CB: { c: 'r', f: 'SS' }, 0x1D5CC: { c: 's', f: 'SS' }, 0x1D5CD: { c: 't', f: 'SS' }, 0x1D5CE: { c: 'u', f: 'SS' }, 0x1D5CF: { c: 'v', f: 'SS' }, 0x1D5D0: { c: 'w', f: 'SS' }, 0x1D5D1: { c: 'x', f: 'SS' }, 0x1D5D2: { c: 'y', f: 'SS' }, 0x1D5D3: { c: 'z', f: 'SS' }, 0x1D5D4: { c: 'A', f: 'SSB' }, 0x1D5D5: { c: 'B', f: 'SSB' }, 0x1D5D6: { c: 'C', f: 'SSB' }, 0x1D5D7: { c: 'D', f: 'SSB' }, 0x1D5D8: { c: 'E', f: 'SSB' }, 0x1D5D9: { c: 'F', f: 'SSB' }, 0x1D5DA: { c: 'G', f: 'SSB' }, 0x1D5DB: { c: 'H', f: 'SSB' }, 0x1D5DC: { c: 'I', f: 'SSB' }, 0x1D5DD: { c: 'J', f: 'SSB' }, 0x1D5DE: { c: 'K', f: 'SSB' }, 0x1D5DF: { c: 'L', f: 'SSB' }, 0x1D5E0: { c: 'M', f: 'SSB' }, 0x1D5E1: { c: 'N', f: 'SSB' }, 0x1D5E2: { c: 'O', f: 'SSB' }, 0x1D5E3: { c: 'P', f: 'SSB' }, 0x1D5E4: { c: 'Q', f: 'SSB' }, 0x1D5E5: { c: 'R', f: 'SSB' }, 0x1D5E6: { c: 'S', f: 'SSB' }, 0x1D5E7: { c: 'T', f: 'SSB' }, 0x1D5E8: { c: 'U', f: 'SSB' }, 0x1D5E9: { c: 'V', f: 'SSB' }, 0x1D5EA: { c: 'W', f: 'SSB' }, 0x1D5EB: { c: 'X', f: 'SSB' }, 0x1D5EC: { c: 'Y', f: 'SSB' }, 0x1D5ED: { c: 'Z', f: 'SSB' }, 0x1D5EE: { c: 'a', f: 'SSB' }, 0x1D5EF: { c: 'b', f: 'SSB' }, 0x1D5F0: { c: 'c', f: 'SSB' }, 0x1D5F1: { c: 'd', f: 'SSB' }, 0x1D5F2: { c: 'e', f: 'SSB' }, 0x1D5F3: { c: 'f', f: 'SSB' }, 0x1D5F4: { c: 'g', f: 'SSB' }, 0x1D5F5: { c: 'h', f: 'SSB' }, 0x1D5F6: { c: 'i', f: 'SSB' }, 0x1D5F7: { c: 'j', f: 'SSB' }, 0x1D5F8: { c: 'k', f: 'SSB' }, 0x1D5F9: { c: 'l', f: 'SSB' }, 0x1D5FA: { c: 'm', f: 'SSB' }, 0x1D5FB: { c: 'n', f: 'SSB' }, 0x1D5FC: { c: 'o', f: 'SSB' }, 0x1D5FD: { c: 'p', f: 'SSB' }, 0x1D5FE: { c: 'q', f: 'SSB' }, 0x1D5FF: { c: 'r', f: 'SSB' }, 0x1D600: { c: 's', f: 'SSB' }, 0x1D601: { c: 't', f: 'SSB' }, 0x1D602: { c: 'u', f: 'SSB' }, 0x1D603: { c: 'v', f: 'SSB' }, 0x1D604: { c: 'w', f: 'SSB' }, 0x1D605: { c: 'x', f: 'SSB' }, 0x1D606: { c: 'y', f: 'SSB' }, 0x1D607: { c: 'z', f: 'SSB' }, 0x1D608: { c: 'A', f: 'SSI' }, 0x1D609: { c: 'B', f: 'SSI' }, 0x1D60A: { c: 'C', f: 'SSI' }, 0x1D60B: { c: 'D', f: 'SSI' }, 0x1D60C: { c: 'E', f: 'SSI' }, 0x1D60D: { c: 'F', f: 'SSI' }, 0x1D60E: { c: 'G', f: 'SSI' }, 0x1D60F: { c: 'H', f: 'SSI' }, 0x1D610: { c: 'I', f: 'SSI' }, 0x1D611: { c: 'J', f: 'SSI' }, 0x1D612: { c: 'K', f: 'SSI' }, 0x1D613: { c: 'L', f: 'SSI' }, 0x1D614: { c: 'M', f: 'SSI' }, 0x1D615: { c: 'N', f: 'SSI' }, 0x1D616: { c: 'O', f: 'SSI' }, 0x1D617: { c: 'P', f: 'SSI' }, 0x1D618: { c: 'Q', f: 'SSI' }, 0x1D619: { c: 'R', f: 'SSI' }, 0x1D61A: { c: 'S', f: 'SSI' }, 0x1D61B: { c: 'T', f: 'SSI' }, 0x1D61C: { c: 'U', f: 'SSI' }, 0x1D61D: { c: 'V', f: 'SSI' }, 0x1D61E: { c: 'W', f: 'SSI' }, 0x1D61F: { c: 'X', f: 'SSI' }, 0x1D620: { c: 'Y', f: 'SSI' }, 0x1D621: { c: 'Z', f: 'SSI' }, 0x1D622: { c: 'a', f: 'SSI' }, 0x1D623: { c: 'b', f: 'SSI' }, 0x1D624: { c: 'c', f: 'SSI' }, 0x1D625: { c: 'd', f: 'SSI' }, 0x1D626: { c: 'e', f: 'SSI' }, 0x1D627: { c: 'f', f: 'SSI' }, 0x1D628: { c: 'g', f: 'SSI' }, 0x1D629: { c: 'h', f: 'SSI' }, 0x1D62A: { c: 'i', f: 'SSI' }, 0x1D62B: { c: 'j', f: 'SSI' }, 0x1D62C: { c: 'k', f: 'SSI' }, 0x1D62D: { c: 'l', f: 'SSI' }, 0x1D62E: { c: 'm', f: 'SSI' }, 0x1D62F: { c: 'n', f: 'SSI' }, 0x1D630: { c: 'o', f: 'SSI' }, 0x1D631: { c: 'p', f: 'SSI' }, 0x1D632: { c: 'q', f: 'SSI' }, 0x1D633: { c: 'r', f: 'SSI' }, 0x1D634: { c: 's', f: 'SSI' }, 0x1D635: { c: 't', f: 'SSI' }, 0x1D636: { c: 'u', f: 'SSI' }, 0x1D637: { c: 'v', f: 'SSI' }, 0x1D638: { c: 'w', f: 'SSI' }, 0x1D639: { c: 'x', f: 'SSI' }, 0x1D63A: { c: 'y', f: 'SSI' }, 0x1D63B: { c: 'z', f: 'SSI' }, 0x1D670: { c: 'A', f: 'T' }, 0x1D671: { c: 'B', f: 'T' }, 0x1D672: { c: 'C', f: 'T' }, 0x1D673: { c: 'D', f: 'T' }, 0x1D674: { c: 'E', f: 'T' }, 0x1D675: { c: 'F', f: 'T' }, 0x1D676: { c: 'G', f: 'T' }, 0x1D677: { c: 'H', f: 'T' }, 0x1D678: { c: 'I', f: 'T' }, 0x1D679: { c: 'J', f: 'T' }, 0x1D67A: { c: 'K', f: 'T' }, 0x1D67B: { c: 'L', f: 'T' }, 0x1D67C: { c: 'M', f: 'T' }, 0x1D67D: { c: 'N', f: 'T' }, 0x1D67E: { c: 'O', f: 'T' }, 0x1D67F: { c: 'P', f: 'T' }, 0x1D680: { c: 'Q', f: 'T' }, 0x1D681: { c: 'R', f: 'T' }, 0x1D682: { c: 'S', f: 'T' }, 0x1D683: { c: 'T', f: 'T' }, 0x1D684: { c: 'U', f: 'T' }, 0x1D685: { c: 'V', f: 'T' }, 0x1D686: { c: 'W', f: 'T' }, 0x1D687: { c: 'X', f: 'T' }, 0x1D688: { c: 'Y', f: 'T' }, 0x1D689: { c: 'Z', f: 'T' }, 0x1D68A: { c: 'a', f: 'T' }, 0x1D68B: { c: 'b', f: 'T' }, 0x1D68C: { c: 'c', f: 'T' }, 0x1D68D: { c: 'd', f: 'T' }, 0x1D68E: { c: 'e', f: 'T' }, 0x1D68F: { c: 'f', f: 'T' }, 0x1D690: { c: 'g', f: 'T' }, 0x1D691: { c: 'h', f: 'T' }, 0x1D692: { c: 'i', f: 'T' }, 0x1D693: { c: 'j', f: 'T' }, 0x1D694: { c: 'k', f: 'T' }, 0x1D695: { c: 'l', f: 'T' }, 0x1D696: { c: 'm', f: 'T' }, 0x1D697: { c: 'n', f: 'T' }, 0x1D698: { c: 'o', f: 'T' }, 0x1D699: { c: 'p', f: 'T' }, 0x1D69A: { c: 'q', f: 'T' }, 0x1D69B: { c: 'r', f: 'T' }, 0x1D69C: { c: 's', f: 'T' }, 0x1D69D: { c: 't', f: 'T' }, 0x1D69E: { c: 'u', f: 'T' }, 0x1D69F: { c: 'v', f: 'T' }, 0x1D6A0: { c: 'w', f: 'T' }, 0x1D6A1: { c: 'x', f: 'T' }, 0x1D6A2: { c: 'y', f: 'T' }, 0x1D6A3: { c: 'z', f: 'T' }, 0x1D6A8: { c: 'A', f: 'B' }, 0x1D6A9: { c: 'B', f: 'B' }, 0x1D6AA: { c: '\\393', f: 'B' }, 0x1D6AB: { c: '\\394', f: 'B' }, 0x1D6AC: { c: 'E', f: 'B' }, 0x1D6AD: { c: 'Z', f: 'B' }, 0x1D6AE: { c: 'H', f: 'B' }, 0x1D6AF: { c: '\\398', f: 'B' }, 0x1D6B0: { c: 'I', f: 'B' }, 0x1D6B1: { c: 'K', f: 'B' }, 0x1D6B2: { c: '\\39B', f: 'B' }, 0x1D6B3: { c: 'M', f: 'B' }, 0x1D6B4: { c: 'N', f: 'B' }, 0x1D6B5: { c: '\\39E', f: 'B' }, 0x1D6B6: { c: 'O', f: 'B' }, 0x1D6B7: { c: '\\3A0', f: 'B' }, 0x1D6B8: { c: 'P', f: 'B' }, 0x1D6BA: { c: '\\3A3', f: 'B' }, 0x1D6BB: { c: 'T', f: 'B' }, 0x1D6BC: { c: '\\3A5', f: 'B' }, 0x1D6BD: { c: '\\3A6', f: 'B' }, 0x1D6BE: { c: 'X', f: 'B' }, 0x1D6BF: { c: '\\3A8', f: 'B' }, 0x1D6C0: { c: '\\3A9', f: 'B' }, 0x1D6C1: { c: '\\2207', f: 'B' }, 0x1D6E2: { c: 'A', f: 'I' }, 0x1D6E3: { c: 'B', f: 'I' }, 0x1D6E4: { c: '\\393', f: 'I' }, 0x1D6E5: { c: '\\394', f: 'I' }, 0x1D6E6: { c: 'E', f: 'I' }, 0x1D6E7: { c: 'Z', f: 'I' }, 0x1D6E8: { c: 'H', f: 'I' }, 0x1D6E9: { c: '\\398', f: 'I' }, 0x1D6EA: { c: 'I', f: 'I' }, 0x1D6EB: { c: 'K', f: 'I' }, 0x1D6EC: { c: '\\39B', f: 'I' }, 0x1D6ED: { c: 'M', f: 'I' }, 0x1D6EE: { c: 'N', f: 'I' }, 0x1D6EF: { c: '\\39E', f: 'I' }, 0x1D6F0: { c: 'O', f: 'I' }, 0x1D6F1: { c: '\\3A0', f: 'I' }, 0x1D6F2: { c: 'P', f: 'I' }, 0x1D6F4: { c: '\\3A3', f: 'I' }, 0x1D6F5: { c: 'T', f: 'I' }, 0x1D6F6: { c: '\\3A5', f: 'I' }, 0x1D6F7: { c: '\\3A6', f: 'I' }, 0x1D6F8: { c: 'X', f: 'I' }, 0x1D6F9: { c: '\\3A8', f: 'I' }, 0x1D6FA: { c: '\\3A9', f: 'I' }, 0x1D6FC: { c: '\\3B1', f: 'I' }, 0x1D6FD: { c: '\\3B2', f: 'I' }, 0x1D6FE: { c: '\\3B3', f: 'I' }, 0x1D6FF: { c: '\\3B4', f: 'I' }, 0x1D700: { c: '\\3B5', f: 'I' }, 0x1D701: { c: '\\3B6', f: 'I' }, 0x1D702: { c: '\\3B7', f: 'I' }, 0x1D703: { c: '\\3B8', f: 'I' }, 0x1D704: { c: '\\3B9', f: 'I' }, 0x1D705: { c: '\\3BA', f: 'I' }, 0x1D706: { c: '\\3BB', f: 'I' }, 0x1D707: { c: '\\3BC', f: 'I' }, 0x1D708: { c: '\\3BD', f: 'I' }, 0x1D709: { c: '\\3BE', f: 'I' }, 0x1D70A: { c: '\\3BF', f: 'I' }, 0x1D70B: { c: '\\3C0', f: 'I' }, 0x1D70C: { c: '\\3C1', f: 'I' }, 0x1D70D: { c: '\\3C2', f: 'I' }, 0x1D70E: { c: '\\3C3', f: 'I' }, 0x1D70F: { c: '\\3C4', f: 'I' }, 0x1D710: { c: '\\3C5', f: 'I' }, 0x1D711: { c: '\\3C6', f: 'I' }, 0x1D712: { c: '\\3C7', f: 'I' }, 0x1D713: { c: '\\3C8', f: 'I' }, 0x1D714: { c: '\\3C9', f: 'I' }, 0x1D715: { c: '\\2202' }, 0x1D716: { c: '\\3F5', f: 'I' }, 0x1D717: { c: '\\3D1', f: 'I' }, 0x1D718: { c: '\\E009', f: 'A' }, 0x1D719: { c: '\\3D5', f: 'I' }, 0x1D71A: { c: '\\3F1', f: 'I' }, 0x1D71B: { c: '\\3D6', f: 'I' }, 0x1D71C: { c: 'A', f: 'BI' }, 0x1D71D: { c: 'B', f: 'BI' }, 0x1D71E: { c: '\\393', f: 'BI' }, 0x1D71F: { c: '\\394', f: 'BI' }, 0x1D720: { c: 'E', f: 'BI' }, 0x1D721: { c: 'Z', f: 'BI' }, 0x1D722: { c: 'H', f: 'BI' }, 0x1D723: { c: '\\398', f: 'BI' }, 0x1D724: { c: 'I', f: 'BI' }, 0x1D725: { c: 'K', f: 'BI' }, 0x1D726: { c: '\\39B', f: 'BI' }, 0x1D727: { c: 'M', f: 'BI' }, 0x1D728: { c: 'N', f: 'BI' }, 0x1D729: { c: '\\39E', f: 'BI' }, 0x1D72A: { c: 'O', f: 'BI' }, 0x1D72B: { c: '\\3A0', f: 'BI' }, 0x1D72C: { c: 'P', f: 'BI' }, 0x1D72E: { c: '\\3A3', f: 'BI' }, 0x1D72F: { c: 'T', f: 'BI' }, 0x1D730: { c: '\\3A5', f: 'BI' }, 0x1D731: { c: '\\3A6', f: 'BI' }, 0x1D732: { c: 'X', f: 'BI' }, 0x1D733: { c: '\\3A8', f: 'BI' }, 0x1D734: { c: '\\3A9', f: 'BI' }, 0x1D736: { c: '\\3B1', f: 'BI' }, 0x1D737: { c: '\\3B2', f: 'BI' }, 0x1D738: { c: '\\3B3', f: 'BI' }, 0x1D739: { c: '\\3B4', f: 'BI' }, 0x1D73A: { c: '\\3B5', f: 'BI' }, 0x1D73B: { c: '\\3B6', f: 'BI' }, 0x1D73C: { c: '\\3B7', f: 'BI' }, 0x1D73D: { c: '\\3B8', f: 'BI' }, 0x1D73E: { c: '\\3B9', f: 'BI' }, 0x1D73F: { c: '\\3BA', f: 'BI' }, 0x1D740: { c: '\\3BB', f: 'BI' }, 0x1D741: { c: '\\3BC', f: 'BI' }, 0x1D742: { c: '\\3BD', f: 'BI' }, 0x1D743: { c: '\\3BE', f: 'BI' }, 0x1D744: { c: '\\3BF', f: 'BI' }, 0x1D745: { c: '\\3C0', f: 'BI' }, 0x1D746: { c: '\\3C1', f: 'BI' }, 0x1D747: { c: '\\3C2', f: 'BI' }, 0x1D748: { c: '\\3C3', f: 'BI' }, 0x1D749: { c: '\\3C4', f: 'BI' }, 0x1D74A: { c: '\\3C5', f: 'BI' }, 0x1D74B: { c: '\\3C6', f: 'BI' }, 0x1D74C: { c: '\\3C7', f: 'BI' }, 0x1D74D: { c: '\\3C8', f: 'BI' }, 0x1D74E: { c: '\\3C9', f: 'BI' }, 0x1D74F: { c: '\\2202', f: 'B' }, 0x1D750: { c: '\\3F5', f: 'BI' }, 0x1D751: { c: '\\3D1', f: 'BI' }, 0x1D752: { c: '\\E009', f: 'A' }, 0x1D753: { c: '\\3D5', f: 'BI' }, 0x1D754: { c: '\\3F1', f: 'BI' }, 0x1D755: { c: '\\3D6', f: 'BI' }, 0x1D756: { c: 'A', f: 'SSB' }, 0x1D757: { c: 'B', f: 'SSB' }, 0x1D758: { c: '\\393', f: 'SSB' }, 0x1D759: { c: '\\394', f: 'SSB' }, 0x1D75A: { c: 'E', f: 'SSB' }, 0x1D75B: { c: 'Z', f: 'SSB' }, 0x1D75C: { c: 'H', f: 'SSB' }, 0x1D75D: { c: '\\398', f: 'SSB' }, 0x1D75E: { c: 'I', f: 'SSB' }, 0x1D75F: { c: 'K', f: 'SSB' }, 0x1D760: { c: '\\39B', f: 'SSB' }, 0x1D761: { c: 'M', f: 'SSB' }, 0x1D762: { c: 'N', f: 'SSB' }, 0x1D763: { c: '\\39E', f: 'SSB' }, 0x1D764: { c: 'O', f: 'SSB' }, 0x1D765: { c: '\\3A0', f: 'SSB' }, 0x1D766: { c: 'P', f: 'SSB' }, 0x1D768: { c: '\\3A3', f: 'SSB' }, 0x1D769: { c: 'T', f: 'SSB' }, 0x1D76A: { c: '\\3A5', f: 'SSB' }, 0x1D76B: { c: '\\3A6', f: 'SSB' }, 0x1D76C: { c: 'X', f: 'SSB' }, 0x1D76D: { c: '\\3A8', f: 'SSB' }, 0x1D76E: { c: '\\3A9', f: 'SSB' }, 0x1D7CE: { c: '0', f: 'B' }, 0x1D7CF: { c: '1', f: 'B' }, 0x1D7D0: { c: '2', f: 'B' }, 0x1D7D1: { c: '3', f: 'B' }, 0x1D7D2: { c: '4', f: 'B' }, 0x1D7D3: { c: '5', f: 'B' }, 0x1D7D4: { c: '6', f: 'B' }, 0x1D7D5: { c: '7', f: 'B' }, 0x1D7D6: { c: '8', f: 'B' }, 0x1D7D7: { c: '9', f: 'B' }, 0x1D7E2: { c: '0', f: 'SS' }, 0x1D7E3: { c: '1', f: 'SS' }, 0x1D7E4: { c: '2', f: 'SS' }, 0x1D7E5: { c: '3', f: 'SS' }, 0x1D7E6: { c: '4', f: 'SS' }, 0x1D7E7: { c: '5', f: 'SS' }, 0x1D7E8: { c: '6', f: 'SS' }, 0x1D7E9: { c: '7', f: 'SS' }, 0x1D7EA: { c: '8', f: 'SS' }, 0x1D7EB: { c: '9', f: 'SS' }, 0x1D7EC: { c: '0', f: 'SSB' }, 0x1D7ED: { c: '1', f: 'SSB' }, 0x1D7EE: { c: '2', f: 'SSB' }, 0x1D7EF: { c: '3', f: 'SSB' }, 0x1D7F0: { c: '4', f: 'SSB' }, 0x1D7F1: { c: '5', f: 'SSB' }, 0x1D7F2: { c: '6', f: 'SSB' }, 0x1D7F3: { c: '7', f: 'SSB' }, 0x1D7F4: { c: '8', f: 'SSB' }, 0x1D7F5: { c: '9', f: 'SSB' }, 0x1D7F6: { c: '0', f: 'T' }, 0x1D7F7: { c: '1', f: 'T' }, 0x1D7F8: { c: '2', f: 'T' }, 0x1D7F9: { c: '3', f: 'T' }, 0x1D7FA: { c: '4', f: 'T' }, 0x1D7FB: { c: '5', f: 'T' }, 0x1D7FC: { c: '6', f: 'T' }, 0x1D7FD: { c: '7', f: 'T' }, 0x1D7FE: { c: '8', f: 'T' }, 0x1D7FF: { c: '9', f: 'T' }, }); //# sourceMappingURL=normal.js.map /***/ }), /* 234 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normal = void 0; exports.normal = { 0x20: [0, 0, .25], 0x21: [.716, 0, .278], 0x22: [.694, -0.379, .5], 0x23: [.694, .194, .833], 0x24: [.75, .056, .5], 0x25: [.75, .056, .833], 0x26: [.716, .022, .778], 0x27: [.694, -0.379, .278], 0x28: [.75, .25, .389], 0x29: [.75, .25, .389], 0x2A: [.75, -0.32, .5], 0x2B: [.583, .082, .778], 0x2C: [.121, .194, .278], 0x2D: [.252, -0.179, .333], 0x2E: [.12, 0, .278], 0x2F: [.75, .25, .5], 0x30: [.666, .022, .5], 0x31: [.666, 0, .5], 0x32: [.666, 0, .5], 0x33: [.665, .022, .5], 0x34: [.677, 0, .5], 0x35: [.666, .022, .5], 0x36: [.666, .022, .5], 0x37: [.676, .022, .5], 0x38: [.666, .022, .5], 0x39: [.666, .022, .5], 0x3A: [.43, 0, .278], 0x3B: [.43, .194, .278], 0x3C: [.54, .04, .778], 0x3D: [.583, .082, .778], 0x3E: [.54, .04, .778], 0x3F: [.705, 0, .472], 0x40: [.705, .011, .778], 0x41: [.716, 0, .75], 0x42: [.683, 0, .708], 0x43: [.705, .021, .722], 0x44: [.683, 0, .764], 0x45: [.68, 0, .681], 0x46: [.68, 0, .653], 0x47: [.705, .022, .785], 0x48: [.683, 0, .75], 0x49: [.683, 0, .361], 0x4A: [.683, .022, .514], 0x4B: [.683, 0, .778], 0x4C: [.683, 0, .625], 0x4D: [.683, 0, .917], 0x4E: [.683, 0, .75], 0x4F: [.705, .022, .778], 0x50: [.683, 0, .681], 0x51: [.705, .193, .778], 0x52: [.683, .022, .736], 0x53: [.705, .022, .556], 0x54: [.677, 0, .722], 0x55: [.683, .022, .75], 0x56: [.683, .022, .75], 0x57: [.683, .022, 1.028], 0x58: [.683, 0, .75], 0x59: [.683, 0, .75], 0x5A: [.683, 0, .611], 0x5B: [.75, .25, .278], 0x5C: [.75, .25, .5], 0x5D: [.75, .25, .278], 0x5E: [.694, -0.531, .5], 0x5F: [-0.025, .062, .5], 0x60: [.699, -0.505, .5], 0x61: [.448, .011, .5], 0x62: [.694, .011, .556], 0x63: [.448, .011, .444], 0x64: [.694, .011, .556], 0x65: [.448, .011, .444], 0x66: [.705, 0, .306, { ic: .066 }], 0x67: [.453, .206, .5], 0x68: [.694, 0, .556], 0x69: [.669, 0, .278], 0x6A: [.669, .205, .306], 0x6B: [.694, 0, .528], 0x6C: [.694, 0, .278], 0x6D: [.442, 0, .833], 0x6E: [.442, 0, .556], 0x6F: [.448, .01, .5], 0x70: [.442, .194, .556], 0x71: [.442, .194, .528], 0x72: [.442, 0, .392], 0x73: [.448, .011, .394], 0x74: [.615, .01, .389], 0x75: [.442, .011, .556], 0x76: [.431, .011, .528], 0x77: [.431, .011, .722], 0x78: [.431, 0, .528], 0x79: [.431, .204, .528], 0x7A: [.431, 0, .444], 0x7B: [.75, .25, .5], 0x7C: [.75, .249, .278], 0x7D: [.75, .25, .5], 0x7E: [.318, -0.215, .5], 0xA0: [0, 0, .25], 0xA3: [.714, .011, .769], 0xA5: [.683, 0, .75], 0xA8: [.669, -0.554, .5], 0xAC: [.356, -0.089, .667], 0xAE: [.709, .175, .947], 0xAF: [.59, -0.544, .5], 0xB0: [.715, -0.542, .5], 0xB1: [.666, 0, .778], 0xB4: [.699, -0.505, .5], 0xB7: [.31, -0.19, .278], 0xD7: [.491, -0.009, .778], 0xF0: [.749, .021, .556], 0xF7: [.537, .036, .778], 0x131: [.442, 0, .278, { sk: .0278 }], 0x237: [.442, .205, .306, { sk: .0833 }], 0x2B9: [.56, -0.043, .275], 0x2C6: [.694, -0.531, .5], 0x2C7: [.644, -0.513, .5], 0x2C9: [.59, -0.544, .5], 0x2CA: [.699, -0.505, .5], 0x2CB: [.699, -0.505, .5], 0x2D8: [.694, -0.515, .5], 0x2D9: [.669, -0.549, .5], 0x2DA: [.715, -0.542, .5], 0x2DC: [.668, -0.565, .5], 0x300: [.699, -0.505, 0], 0x301: [.699, -0.505, 0], 0x302: [.694, -0.531, 0], 0x303: [.668, -0.565, 0], 0x304: [.59, -0.544, 0], 0x306: [.694, -0.515, 0], 0x307: [.669, -0.549, 0], 0x308: [.669, -0.554, 0], 0x30A: [.715, -0.542, 0], 0x30B: [.701, -0.51, 0], 0x30C: [.644, -0.513, 0], 0x338: [.716, .215, 0], 0x391: [.716, 0, .75], 0x392: [.683, 0, .708], 0x393: [.68, 0, .625], 0x394: [.716, 0, .833], 0x395: [.68, 0, .681], 0x396: [.683, 0, .611], 0x397: [.683, 0, .75], 0x398: [.705, .022, .778], 0x399: [.683, 0, .361], 0x39A: [.683, 0, .778], 0x39B: [.716, 0, .694], 0x39C: [.683, 0, .917], 0x39D: [.683, 0, .75], 0x39E: [.677, 0, .667], 0x39F: [.705, .022, .778], 0x3A0: [.68, 0, .75], 0x3A1: [.683, 0, .681], 0x3A3: [.683, 0, .722], 0x3A4: [.677, 0, .722], 0x3A5: [.705, 0, .778], 0x3A6: [.683, 0, .722], 0x3A7: [.683, 0, .75], 0x3A8: [.683, 0, .778], 0x3A9: [.704, 0, .722], 0x2000: [0, 0, .5], 0x2001: [0, 0, 1], 0x2002: [0, 0, .5], 0x2003: [0, 0, 1], 0x2004: [0, 0, .333], 0x2005: [0, 0, .25], 0x2006: [0, 0, .167], 0x2009: [0, 0, .167], 0x200A: [0, 0, .1], 0x200B: [0, 0, 0], 0x200C: [0, 0, 0], 0x2013: [.285, -0.248, .5], 0x2014: [.285, -0.248, 1], 0x2015: [.285, -0.248, 1], 0x2016: [.75, .25, .5], 0x2017: [-0.025, .062, .5], 0x2018: [.694, -0.379, .278], 0x2019: [.694, -0.379, .278], 0x201C: [.694, -0.379, .5], 0x201D: [.694, -0.379, .5], 0x2020: [.705, .216, .444], 0x2021: [.705, .205, .444], 0x2022: [.444, -0.055, .5], 0x2026: [.12, 0, 1.172], 0x2032: [.56, -0.043, .275], 0x2033: [.56, 0, .55], 0x2034: [.56, 0, .825], 0x2035: [.56, -0.043, .275], 0x2036: [.56, 0, .55], 0x2037: [.56, 0, .825], 0x203E: [.59, -0.544, .5], 0x2044: [.75, .25, .5], 0x2057: [.56, 0, 1.1], 0x2060: [0, 0, 0], 0x2061: [0, 0, 0], 0x2062: [0, 0, 0], 0x2063: [0, 0, 0], 0x2064: [0, 0, 0], 0x20D7: [.714, -0.516, .5], 0x2102: [.702, .019, .722], 0x210B: [.717, .036, .969, { ic: .272, sk: .333 }], 0x210C: [.666, .133, .72], 0x210D: [.683, 0, .778], 0x210E: [.694, .011, .576, { sk: -0.0278 }], 0x210F: [.695, .013, .54, { ic: .022 }], 0x2110: [.717, .314, 1.052, { ic: .081, sk: .417 }], 0x2111: [.686, .026, .554], 0x2112: [.717, .017, .874, { ic: .161, sk: .306 }], 0x2113: [.705, .02, .417, { sk: .111 }], 0x2115: [.683, .02, .722], 0x2118: [.453, .216, .636, { sk: .111 }], 0x2119: [.683, 0, .611], 0x211A: [.701, .181, .778], 0x211B: [.717, .017, .85, { ic: .037, sk: .194 }], 0x211C: [.686, .026, .828], 0x211D: [.683, 0, .722], 0x2124: [.683, 0, .667], 0x2126: [.704, 0, .722], 0x2127: [.684, .022, .722], 0x2128: [.729, .139, .602], 0x212C: [.708, .028, .908, { ic: .02, sk: .194 }], 0x212D: [.685, .024, .613], 0x2130: [.707, .008, .562, { ic: .156, sk: .139 }], 0x2131: [.735, .036, .895, { ic: .095, sk: .222 }], 0x2132: [.695, 0, .556], 0x2133: [.721, .05, 1.08, { ic: .136, sk: .444 }], 0x2135: [.694, 0, .611], 0x2136: [.763, .021, .667, { ic: .02 }], 0x2137: [.764, .043, .444], 0x2138: [.764, .043, .667], 0x2141: [.705, .023, .639], 0x2190: [.511, .011, 1], 0x2191: [.694, .193, .5], 0x2192: [.511, .011, 1], 0x2193: [.694, .194, .5], 0x2194: [.511, .011, 1], 0x2195: [.772, .272, .5], 0x2196: [.72, .195, 1], 0x2197: [.72, .195, 1], 0x2198: [.695, .22, 1], 0x2199: [.695, .22, 1], 0x219A: [.437, -0.06, 1], 0x219B: [.437, -0.06, 1], 0x219E: [.417, -0.083, 1], 0x21A0: [.417, -0.083, 1], 0x21A2: [.417, -0.083, 1.111], 0x21A3: [.417, -0.083, 1.111], 0x21A6: [.511, .011, 1], 0x21A9: [.511, .011, 1.126], 0x21AA: [.511, .011, 1.126], 0x21AB: [.575, .041, 1], 0x21AC: [.575, .041, 1], 0x21AD: [.417, -0.083, 1.389], 0x21AE: [.437, -0.06, 1], 0x21B0: [.722, 0, .5], 0x21B1: [.722, 0, .5], 0x21B6: [.461, 0, 1], 0x21B7: [.46, 0, 1], 0x21BA: [.65, .083, .778], 0x21BB: [.65, .083, .778], 0x21BC: [.511, -0.23, 1], 0x21BD: [.27, .011, 1], 0x21BE: [.694, .194, .417], 0x21BF: [.694, .194, .417], 0x21C0: [.511, -0.23, 1], 0x21C1: [.27, .011, 1], 0x21C2: [.694, .194, .417], 0x21C3: [.694, .194, .417], 0x21C4: [.667, 0, 1], 0x21C6: [.667, 0, 1], 0x21C7: [.583, .083, 1], 0x21C8: [.694, .193, .833], 0x21C9: [.583, .083, 1], 0x21CA: [.694, .194, .833], 0x21CB: [.514, .014, 1], 0x21CC: [.671, .011, 1], 0x21CD: [.534, .035, 1], 0x21CE: [.534, .037, 1], 0x21CF: [.534, .035, 1], 0x21D0: [.525, .024, 1], 0x21D1: [.694, .194, .611], 0x21D2: [.525, .024, 1], 0x21D3: [.694, .194, .611], 0x21D4: [.526, .025, 1], 0x21D5: [.772, .272, .611], 0x21DA: [.611, .111, 1], 0x21DB: [.611, .111, 1], 0x21DD: [.417, -0.083, 1], 0x21E0: [.437, -0.064, 1.334], 0x21E2: [.437, -0.064, 1.334], 0x2200: [.694, .022, .556], 0x2201: [.846, .021, .5], 0x2202: [.715, .022, .531, { ic: .035, sk: .0833 }], 0x2203: [.694, 0, .556], 0x2204: [.716, .215, .556], 0x2205: [.772, .078, .5], 0x2206: [.716, 0, .833], 0x2207: [.683, .033, .833], 0x2208: [.54, .04, .667], 0x2209: [.716, .215, .667], 0x220B: [.54, .04, .667], 0x220C: [.716, .215, .667], 0x220D: [.44, 0, .429, { ic: .027 }], 0x220F: [.75, .25, .944], 0x2210: [.75, .25, .944], 0x2211: [.75, .25, 1.056], 0x2212: [.583, .082, .778], 0x2213: [.5, .166, .778], 0x2214: [.766, .093, .778], 0x2215: [.75, .25, .5], 0x2216: [.75, .25, .5], 0x2217: [.465, -0.035, .5], 0x2218: [.444, -0.055, .5], 0x2219: [.444, -0.055, .5], 0x221A: [.8, .2, .833, { ic: .02 }], 0x221D: [.442, .011, .778], 0x221E: [.442, .011, 1], 0x2220: [.694, 0, .722], 0x2221: [.714, .02, .722], 0x2222: [.551, .051, .722], 0x2223: [.75, .249, .278], 0x2224: [.75, .252, .278, { ic: .019 }], 0x2225: [.75, .25, .5], 0x2226: [.75, .25, .5, { ic: .018 }], 0x2227: [.598, .022, .667], 0x2228: [.598, .022, .667], 0x2229: [.598, .022, .667], 0x222A: [.598, .022, .667], 0x222B: [.716, .216, .417, { ic: .055 }], 0x222C: [.805, .306, .819, { ic: .138 }], 0x222D: [.805, .306, 1.166, { ic: .138 }], 0x222E: [.805, .306, .472, { ic: .138 }], 0x2234: [.471, .082, .667], 0x2235: [.471, .082, .667], 0x223C: [.367, -0.133, .778], 0x223D: [.367, -0.133, .778], 0x2240: [.583, .083, .278], 0x2241: [.467, -0.032, .778], 0x2242: [.463, -0.034, .778], 0x2243: [.464, -0.036, .778], 0x2244: [.716, .215, .778], 0x2245: [.589, -0.022, .778], 0x2247: [.652, .155, .778], 0x2248: [.483, -0.055, .778], 0x2249: [.716, .215, .778], 0x224A: [.579, .039, .778], 0x224D: [.484, -0.016, .778], 0x224E: [.492, -0.008, .778], 0x224F: [.492, -0.133, .778], 0x2250: [.67, -0.133, .778], 0x2251: [.609, .108, .778], 0x2252: [.601, .101, .778], 0x2253: [.601, .102, .778], 0x2256: [.367, -0.133, .778], 0x2257: [.721, -0.133, .778], 0x225C: [.859, -0.133, .778], 0x2260: [.716, .215, .778], 0x2261: [.464, -0.036, .778], 0x2262: [.716, .215, .778], 0x2264: [.636, .138, .778], 0x2265: [.636, .138, .778], 0x2266: [.753, .175, .778], 0x2267: [.753, .175, .778], 0x2268: [.752, .286, .778], 0x2269: [.752, .286, .778], 0x226A: [.568, .067, 1], 0x226B: [.567, .067, 1], 0x226C: [.75, .25, .5], 0x226D: [.716, .215, .778], 0x226E: [.708, .209, .778], 0x226F: [.708, .209, .778], 0x2270: [.801, .303, .778], 0x2271: [.801, .303, .778], 0x2272: [.732, .228, .778], 0x2273: [.732, .228, .778], 0x2274: [.732, .228, .778], 0x2275: [.732, .228, .778], 0x2276: [.681, .253, .778], 0x2277: [.681, .253, .778], 0x2278: [.716, .253, .778], 0x2279: [.716, .253, .778], 0x227A: [.539, .041, .778], 0x227B: [.539, .041, .778], 0x227C: [.58, .153, .778], 0x227D: [.58, .154, .778], 0x227E: [.732, .228, .778], 0x227F: [.732, .228, .778], 0x2280: [.705, .208, .778], 0x2281: [.705, .208, .778], 0x2282: [.54, .04, .778], 0x2283: [.54, .04, .778], 0x2284: [.716, .215, .778], 0x2285: [.716, .215, .778], 0x2286: [.636, .138, .778], 0x2287: [.636, .138, .778], 0x2288: [.801, .303, .778], 0x2289: [.801, .303, .778], 0x228A: [.635, .241, .778], 0x228B: [.635, .241, .778], 0x228E: [.598, .022, .667], 0x228F: [.539, .041, .778], 0x2290: [.539, .041, .778], 0x2291: [.636, .138, .778], 0x2292: [.636, .138, .778], 0x2293: [.598, 0, .667], 0x2294: [.598, 0, .667], 0x2295: [.583, .083, .778], 0x2296: [.583, .083, .778], 0x2297: [.583, .083, .778], 0x2298: [.583, .083, .778], 0x2299: [.583, .083, .778], 0x229A: [.582, .082, .778], 0x229B: [.582, .082, .778], 0x229D: [.582, .082, .778], 0x229E: [.689, 0, .778], 0x229F: [.689, 0, .778], 0x22A0: [.689, 0, .778], 0x22A1: [.689, 0, .778], 0x22A2: [.694, 0, .611], 0x22A3: [.694, 0, .611], 0x22A4: [.668, 0, .778], 0x22A5: [.668, 0, .778], 0x22A8: [.75, .249, .867], 0x22A9: [.694, 0, .722], 0x22AA: [.694, 0, .889], 0x22AC: [.695, 0, .611], 0x22AD: [.695, 0, .611], 0x22AE: [.695, 0, .722], 0x22AF: [.695, 0, .722], 0x22B2: [.539, .041, .778], 0x22B3: [.539, .041, .778], 0x22B4: [.636, .138, .778], 0x22B5: [.636, .138, .778], 0x22B8: [.408, -0.092, 1.111], 0x22BA: [.431, .212, .556], 0x22BB: [.716, 0, .611], 0x22BC: [.716, 0, .611], 0x22C0: [.75, .249, .833], 0x22C1: [.75, .249, .833], 0x22C2: [.75, .249, .833], 0x22C3: [.75, .249, .833], 0x22C4: [.488, -0.012, .5], 0x22C5: [.31, -0.19, .278], 0x22C6: [.486, -0.016, .5], 0x22C7: [.545, .044, .778], 0x22C8: [.505, .005, .9], 0x22C9: [.492, -0.008, .778], 0x22CA: [.492, -0.008, .778], 0x22CB: [.694, .022, .778], 0x22CC: [.694, .022, .778], 0x22CD: [.464, -0.036, .778], 0x22CE: [.578, .021, .76], 0x22CF: [.578, .022, .76], 0x22D0: [.54, .04, .778], 0x22D1: [.54, .04, .778], 0x22D2: [.598, .022, .667], 0x22D3: [.598, .022, .667], 0x22D4: [.736, .022, .667], 0x22D6: [.541, .041, .778], 0x22D7: [.541, .041, .778], 0x22D8: [.568, .067, 1.333], 0x22D9: [.568, .067, 1.333], 0x22DA: [.886, .386, .778], 0x22DB: [.886, .386, .778], 0x22DE: [.734, 0, .778], 0x22DF: [.734, 0, .778], 0x22E0: [.801, .303, .778], 0x22E1: [.801, .303, .778], 0x22E2: [.716, .215, .778], 0x22E3: [.716, .215, .778], 0x22E6: [.73, .359, .778], 0x22E7: [.73, .359, .778], 0x22E8: [.73, .359, .778], 0x22E9: [.73, .359, .778], 0x22EA: [.706, .208, .778], 0x22EB: [.706, .208, .778], 0x22EC: [.802, .303, .778], 0x22ED: [.801, .303, .778], 0x22EE: [1.3, .03, .278], 0x22EF: [.31, -0.19, 1.172], 0x22F1: [1.52, -0.1, 1.282], 0x2305: [.716, 0, .611], 0x2306: [.813, .097, .611], 0x2308: [.75, .25, .444], 0x2309: [.75, .25, .444], 0x230A: [.75, .25, .444], 0x230B: [.75, .25, .444], 0x231C: [.694, -0.306, .5], 0x231D: [.694, -0.306, .5], 0x231E: [.366, .022, .5], 0x231F: [.366, .022, .5], 0x2322: [.388, -0.122, 1], 0x2323: [.378, -0.134, 1], 0x2329: [.75, .25, .389], 0x232A: [.75, .25, .389], 0x23B0: [.744, .244, .412], 0x23B1: [.744, .244, .412], 0x23D0: [.602, 0, .667], 0x24C8: [.709, .175, .902], 0x250C: [.694, -0.306, .5], 0x2510: [.694, -0.306, .5], 0x2514: [.366, .022, .5], 0x2518: [.366, .022, .5], 0x2571: [.694, .195, .889], 0x2572: [.694, .195, .889], 0x25A0: [.689, 0, .778], 0x25A1: [.689, 0, .778], 0x25AA: [.689, 0, .778], 0x25B2: [.575, .02, .722], 0x25B3: [.716, 0, .889], 0x25B4: [.575, .02, .722], 0x25B5: [.716, 0, .889], 0x25B6: [.539, .041, .778], 0x25B8: [.539, .041, .778], 0x25B9: [.505, .005, .5], 0x25BC: [.576, .019, .722], 0x25BD: [.5, .215, .889], 0x25BE: [.576, .019, .722], 0x25BF: [.5, .215, .889], 0x25C0: [.539, .041, .778], 0x25C2: [.539, .041, .778], 0x25C3: [.505, .005, .5], 0x25CA: [.716, .132, .667], 0x25EF: [.715, .215, 1], 0x25FB: [.689, 0, .778], 0x25FC: [.689, 0, .778], 0x2605: [.694, .111, .944], 0x2660: [.727, .13, .778], 0x2661: [.716, .033, .778], 0x2662: [.727, .162, .778], 0x2663: [.726, .13, .778], 0x266D: [.75, .022, .389], 0x266E: [.734, .223, .389], 0x266F: [.723, .223, .389], 0x2713: [.706, .034, .833], 0x2720: [.716, .022, .833], 0x2758: [.75, .249, .278], 0x27E8: [.75, .25, .389], 0x27E9: [.75, .25, .389], 0x27EE: [.744, .244, .412], 0x27EF: [.744, .244, .412], 0x27F5: [.511, .011, 1.609], 0x27F6: [.511, .011, 1.638], 0x27F7: [.511, .011, 1.859], 0x27F8: [.525, .024, 1.609], 0x27F9: [.525, .024, 1.638], 0x27FA: [.525, .024, 1.858], 0x27FC: [.511, .011, 1.638], 0x29EB: [.716, .132, .667], 0x29F8: [.716, .215, .778], 0x2A00: [.75, .25, 1.111], 0x2A01: [.75, .25, 1.111], 0x2A02: [.75, .25, 1.111], 0x2A04: [.75, .249, .833], 0x2A06: [.75, .249, .833], 0x2A0C: [.805, .306, 1.638, { ic: .138 }], 0x2A2F: [.491, -0.009, .778], 0x2A3F: [.683, 0, .75], 0x2A5E: [.813, .097, .611], 0x2A7D: [.636, .138, .778], 0x2A7E: [.636, .138, .778], 0x2A85: [.762, .29, .778], 0x2A86: [.762, .29, .778], 0x2A87: [.635, .241, .778], 0x2A88: [.635, .241, .778], 0x2A89: [.761, .387, .778], 0x2A8A: [.761, .387, .778], 0x2A8B: [1.003, .463, .778], 0x2A8C: [1.003, .463, .778], 0x2A95: [.636, .138, .778], 0x2A96: [.636, .138, .778], 0x2AAF: [.636, .138, .778], 0x2AB0: [.636, .138, .778], 0x2AB5: [.752, .286, .778], 0x2AB6: [.752, .286, .778], 0x2AB7: [.761, .294, .778], 0x2AB8: [.761, .294, .778], 0x2AB9: [.761, .337, .778], 0x2ABA: [.761, .337, .778], 0x2AC5: [.753, .215, .778], 0x2AC6: [.753, .215, .778], 0x2ACB: [.783, .385, .778], 0x2ACC: [.783, .385, .778], 0x3008: [.75, .25, .389], 0x3009: [.75, .25, .389], 0xE006: [.43, .023, .222, { ic: .018 }], 0xE007: [.431, .024, .389, { ic: .018 }], 0xE008: [.605, .085, .778], 0xE009: [.434, .006, .667, { ic: .067 }], 0xE00C: [.752, .284, .778], 0xE00D: [.752, .284, .778], 0xE00E: [.919, .421, .778], 0xE00F: [.801, .303, .778], 0xE010: [.801, .303, .778], 0xE011: [.919, .421, .778], 0xE016: [.828, .33, .778], 0xE017: [.752, .332, .778], 0xE018: [.828, .33, .778], 0xE019: [.752, .333, .778], 0xE01A: [.634, .255, .778], 0xE01B: [.634, .254, .778], 0x1D400: [.698, 0, .869], 0x1D401: [.686, 0, .818], 0x1D402: [.697, .011, .831], 0x1D403: [.686, 0, .882], 0x1D404: [.68, 0, .756], 0x1D405: [.68, 0, .724], 0x1D406: [.697, .01, .904], 0x1D407: [.686, 0, .9], 0x1D408: [.686, 0, .436], 0x1D409: [.686, .011, .594], 0x1D40A: [.686, 0, .901], 0x1D40B: [.686, 0, .692], 0x1D40C: [.686, 0, 1.092], 0x1D40D: [.686, 0, .9], 0x1D40E: [.696, .01, .864], 0x1D40F: [.686, 0, .786], 0x1D410: [.696, .193, .864], 0x1D411: [.686, .011, .862], 0x1D412: [.697, .011, .639], 0x1D413: [.675, 0, .8], 0x1D414: [.686, .011, .885], 0x1D415: [.686, .007, .869], 0x1D416: [.686, .007, 1.189], 0x1D417: [.686, 0, .869], 0x1D418: [.686, 0, .869], 0x1D419: [.686, 0, .703], 0x1D41A: [.453, .006, .559], 0x1D41B: [.694, .006, .639], 0x1D41C: [.453, .006, .511], 0x1D41D: [.694, .006, .639], 0x1D41E: [.452, .006, .527], 0x1D41F: [.7, 0, .351, { ic: .101 }], 0x1D420: [.455, .201, .575], 0x1D421: [.694, 0, .639], 0x1D422: [.695, 0, .319], 0x1D423: [.695, .2, .351], 0x1D424: [.694, 0, .607], 0x1D425: [.694, 0, .319], 0x1D426: [.45, 0, .958], 0x1D427: [.45, 0, .639], 0x1D428: [.452, .005, .575], 0x1D429: [.45, .194, .639], 0x1D42A: [.45, .194, .607], 0x1D42B: [.45, 0, .474], 0x1D42C: [.453, .006, .454], 0x1D42D: [.635, .005, .447], 0x1D42E: [.45, .006, .639], 0x1D42F: [.444, 0, .607], 0x1D430: [.444, 0, .831], 0x1D431: [.444, 0, .607], 0x1D432: [.444, .2, .607], 0x1D433: [.444, 0, .511], 0x1D434: [.716, 0, .75, { sk: .139 }], 0x1D435: [.683, 0, .759, { sk: .0833 }], 0x1D436: [.705, .022, .715, { ic: .045, sk: .0833 }], 0x1D437: [.683, 0, .828, { sk: .0556 }], 0x1D438: [.68, 0, .738, { ic: .026, sk: .0833 }], 0x1D439: [.68, 0, .643, { ic: .106, sk: .0833 }], 0x1D43A: [.705, .022, .786, { sk: .0833 }], 0x1D43B: [.683, 0, .831, { ic: .057, sk: .0556 }], 0x1D43C: [.683, 0, .44, { ic: .064, sk: .111 }], 0x1D43D: [.683, .022, .555, { ic: .078, sk: .167 }], 0x1D43E: [.683, 0, .849, { ic: .04, sk: .0556 }], 0x1D43F: [.683, 0, .681, { sk: .0278 }], 0x1D440: [.683, 0, .97, { ic: .081, sk: .0833 }], 0x1D441: [.683, 0, .803, { ic: .085, sk: .0833 }], 0x1D442: [.704, .022, .763, { sk: .0833 }], 0x1D443: [.683, 0, .642, { ic: .109, sk: .0833 }], 0x1D444: [.704, .194, .791, { sk: .0833 }], 0x1D445: [.683, .021, .759, { sk: .0833 }], 0x1D446: [.705, .022, .613, { ic: .032, sk: .0833 }], 0x1D447: [.677, 0, .584, { ic: .12, sk: .0833 }], 0x1D448: [.683, .022, .683, { ic: .084, sk: .0278 }], 0x1D449: [.683, .022, .583, { ic: .186 }], 0x1D44A: [.683, .022, .944, { ic: .104 }], 0x1D44B: [.683, 0, .828, { ic: .024, sk: .0833 }], 0x1D44C: [.683, 0, .581, { ic: .182 }], 0x1D44D: [.683, 0, .683, { ic: .04, sk: .0833 }], 0x1D44E: [.441, .01, .529], 0x1D44F: [.694, .011, .429], 0x1D450: [.442, .011, .433, { sk: .0556 }], 0x1D451: [.694, .01, .52, { sk: .167 }], 0x1D452: [.442, .011, .466, { sk: .0556 }], 0x1D453: [.705, .205, .49, { ic: .06, sk: .167 }], 0x1D454: [.442, .205, .477, { sk: .0278 }], 0x1D456: [.661, .011, .345], 0x1D457: [.661, .204, .412], 0x1D458: [.694, .011, .521], 0x1D459: [.694, .011, .298, { sk: .0833 }], 0x1D45A: [.442, .011, .878], 0x1D45B: [.442, .011, .6], 0x1D45C: [.441, .011, .485, { sk: .0556 }], 0x1D45D: [.442, .194, .503, { sk: .0833 }], 0x1D45E: [.442, .194, .446, { ic: .014, sk: .0833 }], 0x1D45F: [.442, .011, .451, { sk: .0556 }], 0x1D460: [.442, .01, .469, { sk: .0556 }], 0x1D461: [.626, .011, .361, { sk: .0833 }], 0x1D462: [.442, .011, .572, { sk: .0278 }], 0x1D463: [.443, .011, .485, { sk: .0278 }], 0x1D464: [.443, .011, .716, { sk: .0833 }], 0x1D465: [.442, .011, .572, { sk: .0278 }], 0x1D466: [.442, .205, .49, { sk: .0556 }], 0x1D467: [.442, .011, .465, { sk: .0556 }], 0x1D468: [.711, 0, .869, { sk: .16 }], 0x1D469: [.686, 0, .866, { sk: .0958 }], 0x1D46A: [.703, .017, .817, { ic: .038, sk: .0958 }], 0x1D46B: [.686, 0, .938, { sk: .0639 }], 0x1D46C: [.68, 0, .81, { ic: .015, sk: .0958 }], 0x1D46D: [.68, 0, .689, { ic: .12, sk: .0958 }], 0x1D46E: [.703, .016, .887, { sk: .0958 }], 0x1D46F: [.686, 0, .982, { ic: .045, sk: .0639 }], 0x1D470: [.686, 0, .511, { ic: .062, sk: .128 }], 0x1D471: [.686, .017, .631, { ic: .063, sk: .192 }], 0x1D472: [.686, 0, .971, { ic: .032, sk: .0639 }], 0x1D473: [.686, 0, .756, { sk: .0319 }], 0x1D474: [.686, 0, 1.142, { ic: .077, sk: .0958 }], 0x1D475: [.686, 0, .95, { ic: .077, sk: .0958 }], 0x1D476: [.703, .017, .837, { sk: .0958 }], 0x1D477: [.686, 0, .723, { ic: .124, sk: .0958 }], 0x1D478: [.703, .194, .869, { sk: .0958 }], 0x1D479: [.686, .017, .872, { sk: .0958 }], 0x1D47A: [.703, .017, .693, { ic: .021, sk: .0958 }], 0x1D47B: [.675, 0, .637, { ic: .135, sk: .0958 }], 0x1D47C: [.686, .016, .8, { ic: .077, sk: .0319 }], 0x1D47D: [.686, .016, .678, { ic: .208 }], 0x1D47E: [.686, .017, 1.093, { ic: .114 }], 0x1D47F: [.686, 0, .947, { sk: .0958 }], 0x1D480: [.686, 0, .675, { ic: .201 }], 0x1D481: [.686, 0, .773, { ic: .032, sk: .0958 }], 0x1D482: [.452, .008, .633], 0x1D483: [.694, .008, .521], 0x1D484: [.451, .008, .513, { sk: .0639 }], 0x1D485: [.694, .008, .61, { sk: .192 }], 0x1D486: [.452, .008, .554, { sk: .0639 }], 0x1D487: [.701, .201, .568, { ic: .056, sk: .192 }], 0x1D488: [.452, .202, .545, { sk: .0319 }], 0x1D489: [.694, .008, .668, { sk: -0.0319 }], 0x1D48A: [.694, .008, .405], 0x1D48B: [.694, .202, .471], 0x1D48C: [.694, .008, .604], 0x1D48D: [.694, .008, .348, { sk: .0958 }], 0x1D48E: [.452, .008, 1.032], 0x1D48F: [.452, .008, .713], 0x1D490: [.452, .008, .585, { sk: .0639 }], 0x1D491: [.452, .194, .601, { sk: .0958 }], 0x1D492: [.452, .194, .542, { sk: .0958 }], 0x1D493: [.452, .008, .529, { sk: .0639 }], 0x1D494: [.451, .008, .531, { sk: .0639 }], 0x1D495: [.643, .007, .415, { sk: .0958 }], 0x1D496: [.452, .008, .681, { sk: .0319 }], 0x1D497: [.453, .008, .567, { sk: .0319 }], 0x1D498: [.453, .008, .831, { sk: .0958 }], 0x1D499: [.452, .008, .659, { sk: .0319 }], 0x1D49A: [.452, .202, .59, { sk: .0639 }], 0x1D49B: [.452, .008, .555, { sk: .0639 }], 0x1D49C: [.717, .008, .803, { ic: .213, sk: .389 }], 0x1D49E: [.728, .026, .666, { ic: .153, sk: .278 }], 0x1D49F: [.708, .031, .774, { ic: .081, sk: .111 }], 0x1D4A2: [.717, .037, .61, { ic: .128, sk: .25 }], 0x1D4A5: [.717, .314, 1.052, { ic: .081, sk: .417 }], 0x1D4A6: [.717, .037, .914, { ic: .29, sk: .361 }], 0x1D4A9: [.726, .036, .902, { ic: .306, sk: .389 }], 0x1D4AA: [.707, .008, .738, { ic: .067, sk: .167 }], 0x1D4AB: [.716, .037, 1.013, { ic: .018, sk: .222 }], 0x1D4AC: [.717, .017, .883, { sk: .278 }], 0x1D4AE: [.708, .036, .868, { ic: .148, sk: .333 }], 0x1D4AF: [.735, .037, .747, { ic: .249, sk: .222 }], 0x1D4B0: [.717, .017, .8, { ic: .16, sk: .25 }], 0x1D4B1: [.717, .017, .622, { ic: .228, sk: .222 }], 0x1D4B2: [.717, .017, .805, { ic: .221, sk: .25 }], 0x1D4B3: [.717, .017, .944, { ic: .187, sk: .278 }], 0x1D4B4: [.716, .017, .71, { ic: .249, sk: .194 }], 0x1D4B5: [.717, .016, .821, { ic: .211, sk: .306 }], 0x1D504: [.696, .026, .718], 0x1D505: [.691, .027, .884], 0x1D507: [.685, .027, .832], 0x1D508: [.685, .024, .663], 0x1D509: [.686, .153, .611], 0x1D50A: [.69, .026, .785], 0x1D50D: [.686, .139, .552], 0x1D50E: [.68, .027, .668, { ic: .014 }], 0x1D50F: [.686, .026, .666], 0x1D510: [.692, .027, 1.05], 0x1D511: [.686, .025, .832], 0x1D512: [.729, .027, .827], 0x1D513: [.692, .218, .828], 0x1D514: [.729, .069, .827], 0x1D516: [.692, .027, .829], 0x1D517: [.701, .027, .669], 0x1D518: [.697, .027, .646, { ic: .019 }], 0x1D519: [.686, .026, .831], 0x1D51A: [.686, .027, 1.046], 0x1D51B: [.688, .027, .719], 0x1D51C: [.686, .218, .833], 0x1D51E: [.47, .035, .5], 0x1D51F: [.685, .031, .513], 0x1D520: [.466, .029, .389], 0x1D521: [.609, .033, .499], 0x1D522: [.467, .03, .401], 0x1D523: [.681, .221, .326], 0x1D524: [.47, .209, .504], 0x1D525: [.688, .205, .521], 0x1D526: [.673, .02, .279], 0x1D527: [.672, .208, .281], 0x1D528: [.689, .025, .389], 0x1D529: [.685, .02, .28], 0x1D52A: [.475, .026, .767], 0x1D52B: [.475, .022, .527], 0x1D52C: [.48, .028, .489], 0x1D52D: [.541, .212, .5], 0x1D52E: [.479, .219, .489], 0x1D52F: [.474, .021, .389], 0x1D530: [.478, .029, .443], 0x1D531: [.64, .02, .333, { ic: .015 }], 0x1D532: [.474, .023, .517], 0x1D533: [.53, .028, .512], 0x1D534: [.532, .028, .774], 0x1D535: [.472, .188, .389], 0x1D536: [.528, .218, .499], 0x1D537: [.471, .214, .391], 0x1D538: [.701, 0, .722], 0x1D539: [.683, 0, .667], 0x1D53B: [.683, 0, .722], 0x1D53C: [.683, 0, .667], 0x1D53D: [.683, 0, .611], 0x1D53E: [.702, .019, .778], 0x1D540: [.683, 0, .389], 0x1D541: [.683, .077, .5], 0x1D542: [.683, 0, .778], 0x1D543: [.683, 0, .667], 0x1D544: [.683, 0, .944], 0x1D546: [.701, .019, .778], 0x1D54A: [.702, .012, .556], 0x1D54B: [.683, 0, .667], 0x1D54C: [.683, .019, .722], 0x1D54D: [.683, .02, .722], 0x1D54E: [.683, .019, 1], 0x1D54F: [.683, 0, .722], 0x1D550: [.683, 0, .722], 0x1D56C: [.686, .031, .847], 0x1D56D: [.684, .031, 1.044], 0x1D56E: [.676, .032, .723], 0x1D56F: [.683, .029, .982], 0x1D570: [.686, .029, .783], 0x1D571: [.684, .146, .722], 0x1D572: [.687, .029, .927], 0x1D573: [.683, .126, .851], 0x1D574: [.681, .025, .655], 0x1D575: [.68, .141, .652], 0x1D576: [.681, .026, .789, { ic: .017 }], 0x1D577: [.683, .028, .786], 0x1D578: [.683, .032, 1.239], 0x1D579: [.679, .03, .983], 0x1D57A: [.726, .03, .976], 0x1D57B: [.688, .223, .977], 0x1D57C: [.726, .083, .976], 0x1D57D: [.688, .028, .978], 0x1D57E: [.685, .031, .978], 0x1D57F: [.686, .03, .79, { ic: .012 }], 0x1D580: [.688, .039, .851, { ic: .02 }], 0x1D581: [.685, .029, .982], 0x1D582: [.683, .03, 1.235], 0x1D583: [.681, .035, .849], 0x1D584: [.688, .214, .984], 0x1D585: [.677, .148, .711], 0x1D586: [.472, .032, .603], 0x1D587: [.69, .032, .59], 0x1D588: [.473, .026, .464], 0x1D589: [.632, .028, .589], 0x1D58A: [.471, .027, .472], 0x1D58B: [.687, .222, .388], 0x1D58C: [.472, .208, .595], 0x1D58D: [.687, .207, .615], 0x1D58E: [.686, .025, .331], 0x1D58F: [.682, .203, .332], 0x1D590: [.682, .025, .464], 0x1D591: [.681, .024, .337], 0x1D592: [.476, .031, .921], 0x1D593: [.473, .028, .654], 0x1D594: [.482, .034, .609], 0x1D595: [.557, .207, .604], 0x1D596: [.485, .211, .596], 0x1D597: [.472, .026, .46], 0x1D598: [.479, .034, .523], 0x1D599: [.648, .027, .393, { ic: .014 }], 0x1D59A: [.472, .032, .589, { ic: .014 }], 0x1D59B: [.546, .027, .604], 0x1D59C: [.549, .032, .918], 0x1D59D: [.471, .188, .459], 0x1D59E: [.557, .221, .589], 0x1D59F: [.471, .214, .461], 0x1D5A0: [.694, 0, .667], 0x1D5A1: [.694, 0, .667], 0x1D5A2: [.705, .011, .639], 0x1D5A3: [.694, 0, .722], 0x1D5A4: [.691, 0, .597], 0x1D5A5: [.691, 0, .569], 0x1D5A6: [.704, .011, .667], 0x1D5A7: [.694, 0, .708], 0x1D5A8: [.694, 0, .278], 0x1D5A9: [.694, .022, .472], 0x1D5AA: [.694, 0, .694], 0x1D5AB: [.694, 0, .542], 0x1D5AC: [.694, 0, .875], 0x1D5AD: [.694, 0, .708], 0x1D5AE: [.715, .022, .736], 0x1D5AF: [.694, 0, .639], 0x1D5B0: [.715, .125, .736], 0x1D5B1: [.694, 0, .646], 0x1D5B2: [.716, .022, .556], 0x1D5B3: [.688, 0, .681], 0x1D5B4: [.694, .022, .688], 0x1D5B5: [.694, 0, .667], 0x1D5B6: [.694, 0, .944], 0x1D5B7: [.694, 0, .667], 0x1D5B8: [.694, 0, .667], 0x1D5B9: [.694, 0, .611], 0x1D5BA: [.46, .01, .481], 0x1D5BB: [.694, .011, .517], 0x1D5BC: [.46, .01, .444], 0x1D5BD: [.694, .01, .517], 0x1D5BE: [.461, .01, .444], 0x1D5BF: [.705, 0, .306, { ic: .041 }], 0x1D5C0: [.455, .206, .5], 0x1D5C1: [.694, 0, .517], 0x1D5C2: [.68, 0, .239], 0x1D5C3: [.68, .205, .267], 0x1D5C4: [.694, 0, .489], 0x1D5C5: [.694, 0, .239], 0x1D5C6: [.455, 0, .794], 0x1D5C7: [.455, 0, .517], 0x1D5C8: [.46, .01, .5], 0x1D5C9: [.455, .194, .517], 0x1D5CA: [.455, .194, .517], 0x1D5CB: [.455, 0, .342], 0x1D5CC: [.46, .01, .383], 0x1D5CD: [.571, .01, .361], 0x1D5CE: [.444, .01, .517], 0x1D5CF: [.444, 0, .461], 0x1D5D0: [.444, 0, .683], 0x1D5D1: [.444, 0, .461], 0x1D5D2: [.444, .204, .461], 0x1D5D3: [.444, 0, .435], 0x1D5D4: [.694, 0, .733], 0x1D5D5: [.694, 0, .733], 0x1D5D6: [.704, .011, .703], 0x1D5D7: [.694, 0, .794], 0x1D5D8: [.691, 0, .642], 0x1D5D9: [.691, 0, .611], 0x1D5DA: [.705, .011, .733], 0x1D5DB: [.694, 0, .794], 0x1D5DC: [.694, 0, .331], 0x1D5DD: [.694, .022, .519], 0x1D5DE: [.694, 0, .764], 0x1D5DF: [.694, 0, .581], 0x1D5E0: [.694, 0, .978], 0x1D5E1: [.694, 0, .794], 0x1D5E2: [.716, .022, .794], 0x1D5E3: [.694, 0, .703], 0x1D5E4: [.716, .106, .794], 0x1D5E5: [.694, 0, .703], 0x1D5E6: [.716, .022, .611], 0x1D5E7: [.688, 0, .733], 0x1D5E8: [.694, .022, .764], 0x1D5E9: [.694, 0, .733], 0x1D5EA: [.694, 0, 1.039], 0x1D5EB: [.694, 0, .733], 0x1D5EC: [.694, 0, .733], 0x1D5ED: [.694, 0, .672], 0x1D5EE: [.475, .011, .525], 0x1D5EF: [.694, .01, .561], 0x1D5F0: [.475, .011, .489], 0x1D5F1: [.694, .011, .561], 0x1D5F2: [.474, .01, .511], 0x1D5F3: [.705, 0, .336, { ic: .045 }], 0x1D5F4: [.469, .206, .55], 0x1D5F5: [.694, 0, .561], 0x1D5F6: [.695, 0, .256], 0x1D5F7: [.695, .205, .286], 0x1D5F8: [.694, 0, .531], 0x1D5F9: [.694, 0, .256], 0x1D5FA: [.469, 0, .867], 0x1D5FB: [.468, 0, .561], 0x1D5FC: [.474, .011, .55], 0x1D5FD: [.469, .194, .561], 0x1D5FE: [.469, .194, .561], 0x1D5FF: [.469, 0, .372], 0x1D600: [.474, .01, .422], 0x1D601: [.589, .01, .404], 0x1D602: [.458, .011, .561], 0x1D603: [.458, 0, .5], 0x1D604: [.458, 0, .744], 0x1D605: [.458, 0, .5], 0x1D606: [.458, .205, .5], 0x1D607: [.458, 0, .476], 0x1D608: [.694, 0, .667], 0x1D609: [.694, 0, .667, { ic: .029 }], 0x1D60A: [.705, .01, .639, { ic: .08 }], 0x1D60B: [.694, 0, .722, { ic: .025 }], 0x1D60C: [.691, 0, .597, { ic: .091 }], 0x1D60D: [.691, 0, .569, { ic: .104 }], 0x1D60E: [.705, .011, .667, { ic: .063 }], 0x1D60F: [.694, 0, .708, { ic: .06 }], 0x1D610: [.694, 0, .278, { ic: .06 }], 0x1D611: [.694, .022, .472, { ic: .063 }], 0x1D612: [.694, 0, .694, { ic: .091 }], 0x1D613: [.694, 0, .542], 0x1D614: [.694, 0, .875, { ic: .054 }], 0x1D615: [.694, 0, .708, { ic: .058 }], 0x1D616: [.716, .022, .736, { ic: .027 }], 0x1D617: [.694, 0, .639, { ic: .051 }], 0x1D618: [.716, .125, .736, { ic: .027 }], 0x1D619: [.694, 0, .646, { ic: .052 }], 0x1D61A: [.716, .022, .556, { ic: .053 }], 0x1D61B: [.688, 0, .681, { ic: .109 }], 0x1D61C: [.694, .022, .688, { ic: .059 }], 0x1D61D: [.694, 0, .667, { ic: .132 }], 0x1D61E: [.694, 0, .944, { ic: .132 }], 0x1D61F: [.694, 0, .667, { ic: .091 }], 0x1D620: [.694, 0, .667, { ic: .143 }], 0x1D621: [.694, 0, .611, { ic: .091 }], 0x1D622: [.461, .01, .481], 0x1D623: [.694, .011, .517, { ic: .022 }], 0x1D624: [.46, .011, .444, { ic: .055 }], 0x1D625: [.694, .01, .517, { ic: .071 }], 0x1D626: [.46, .011, .444, { ic: .028 }], 0x1D627: [.705, 0, .306, { ic: .188 }], 0x1D628: [.455, .206, .5, { ic: .068 }], 0x1D629: [.694, 0, .517], 0x1D62A: [.68, 0, .239, { ic: .076 }], 0x1D62B: [.68, .204, .267, { ic: .069 }], 0x1D62C: [.694, 0, .489, { ic: .054 }], 0x1D62D: [.694, 0, .239, { ic: .072 }], 0x1D62E: [.455, 0, .794], 0x1D62F: [.454, 0, .517], 0x1D630: [.461, .011, .5, { ic: .023 }], 0x1D631: [.455, .194, .517, { ic: .021 }], 0x1D632: [.455, .194, .517, { ic: .021 }], 0x1D633: [.455, 0, .342, { ic: .082 }], 0x1D634: [.461, .011, .383, { ic: .053 }], 0x1D635: [.571, .011, .361, { ic: .049 }], 0x1D636: [.444, .01, .517, { ic: .02 }], 0x1D637: [.444, 0, .461, { ic: .079 }], 0x1D638: [.444, 0, .683, { ic: .079 }], 0x1D639: [.444, 0, .461, { ic: .076 }], 0x1D63A: [.444, .205, .461, { ic: .079 }], 0x1D63B: [.444, 0, .435, { ic: .059 }], 0x1D670: [.623, 0, .525], 0x1D671: [.611, 0, .525], 0x1D672: [.622, .011, .525], 0x1D673: [.611, 0, .525], 0x1D674: [.611, 0, .525], 0x1D675: [.611, 0, .525], 0x1D676: [.622, .011, .525], 0x1D677: [.611, 0, .525], 0x1D678: [.611, 0, .525], 0x1D679: [.611, .011, .525], 0x1D67A: [.611, 0, .525], 0x1D67B: [.611, 0, .525], 0x1D67C: [.611, 0, .525], 0x1D67D: [.611, 0, .525], 0x1D67E: [.621, .01, .525], 0x1D67F: [.611, 0, .525], 0x1D680: [.621, .138, .525], 0x1D681: [.611, .011, .525], 0x1D682: [.622, .011, .525], 0x1D683: [.611, 0, .525], 0x1D684: [.611, .011, .525], 0x1D685: [.611, .007, .525], 0x1D686: [.611, .007, .525], 0x1D687: [.611, 0, .525], 0x1D688: [.611, 0, .525], 0x1D689: [.611, 0, .525], 0x1D68A: [.439, .006, .525], 0x1D68B: [.611, .006, .525], 0x1D68C: [.44, .006, .525], 0x1D68D: [.611, .006, .525], 0x1D68E: [.44, .006, .525], 0x1D68F: [.617, 0, .525], 0x1D690: [.442, .229, .525], 0x1D691: [.611, 0, .525], 0x1D692: [.612, 0, .525], 0x1D693: [.612, .228, .525], 0x1D694: [.611, 0, .525], 0x1D695: [.611, 0, .525], 0x1D696: [.436, 0, .525, { ic: .011 }], 0x1D697: [.436, 0, .525], 0x1D698: [.44, .006, .525], 0x1D699: [.437, .221, .525], 0x1D69A: [.437, .221, .525, { ic: .02 }], 0x1D69B: [.437, 0, .525], 0x1D69C: [.44, .006, .525], 0x1D69D: [.554, .006, .525], 0x1D69E: [.431, .005, .525], 0x1D69F: [.431, 0, .525], 0x1D6A0: [.431, 0, .525], 0x1D6A1: [.431, 0, .525], 0x1D6A2: [.431, .228, .525], 0x1D6A3: [.431, 0, .525], 0x1D6A8: [.698, 0, .869], 0x1D6A9: [.686, 0, .818], 0x1D6AA: [.68, 0, .692], 0x1D6AB: [.698, 0, .958], 0x1D6AC: [.68, 0, .756], 0x1D6AD: [.686, 0, .703], 0x1D6AE: [.686, 0, .9], 0x1D6AF: [.696, .01, .894], 0x1D6B0: [.686, 0, .436], 0x1D6B1: [.686, 0, .901], 0x1D6B2: [.698, 0, .806], 0x1D6B3: [.686, 0, 1.092], 0x1D6B4: [.686, 0, .9], 0x1D6B5: [.675, 0, .767], 0x1D6B6: [.696, .01, .864], 0x1D6B7: [.68, 0, .9], 0x1D6B8: [.686, 0, .786], 0x1D6BA: [.686, 0, .831], 0x1D6BB: [.675, 0, .8], 0x1D6BC: [.697, 0, .894], 0x1D6BD: [.686, 0, .831], 0x1D6BE: [.686, 0, .869], 0x1D6BF: [.686, 0, .894], 0x1D6C0: [.696, 0, .831], 0x1D6C1: [.686, .024, .958], 0x1D6E2: [.716, 0, .75, { sk: .139 }], 0x1D6E3: [.683, 0, .759, { sk: .0833 }], 0x1D6E4: [.68, 0, .615, { ic: .106, sk: .0833 }], 0x1D6E5: [.716, 0, .833, { sk: .167 }], 0x1D6E6: [.68, 0, .738, { ic: .026, sk: .0833 }], 0x1D6E7: [.683, 0, .683, { ic: .04, sk: .0833 }], 0x1D6E8: [.683, 0, .831, { ic: .057, sk: .0556 }], 0x1D6E9: [.704, .022, .763, { sk: .0833 }], 0x1D6EA: [.683, 0, .44, { ic: .064, sk: .111 }], 0x1D6EB: [.683, 0, .849, { ic: .04, sk: .0556 }], 0x1D6EC: [.716, 0, .694, { sk: .167 }], 0x1D6ED: [.683, 0, .97, { ic: .081, sk: .0833 }], 0x1D6EE: [.683, 0, .803, { ic: .085, sk: .0833 }], 0x1D6EF: [.677, 0, .742, { ic: .035, sk: .0833 }], 0x1D6F0: [.704, .022, .763, { sk: .0833 }], 0x1D6F1: [.68, 0, .831, { ic: .056, sk: .0556 }], 0x1D6F2: [.683, 0, .642, { ic: .109, sk: .0833 }], 0x1D6F4: [.683, 0, .78, { ic: .026, sk: .0833 }], 0x1D6F5: [.677, 0, .584, { ic: .12, sk: .0833 }], 0x1D6F6: [.705, 0, .583, { ic: .117, sk: .0556 }], 0x1D6F7: [.683, 0, .667, { sk: .0833 }], 0x1D6F8: [.683, 0, .828, { ic: .024, sk: .0833 }], 0x1D6F9: [.683, 0, .612, { ic: .08, sk: .0556 }], 0x1D6FA: [.704, 0, .772, { ic: .014, sk: .0833 }], 0x1D6FC: [.442, .011, .64, { sk: .0278 }], 0x1D6FD: [.705, .194, .566, { sk: .0833 }], 0x1D6FE: [.441, .216, .518, { ic: .025 }], 0x1D6FF: [.717, .01, .444, { sk: .0556 }], 0x1D700: [.452, .022, .466, { sk: .0833 }], 0x1D701: [.704, .204, .438, { ic: .033, sk: .0833 }], 0x1D702: [.442, .216, .497, { sk: .0556 }], 0x1D703: [.705, .01, .469, { sk: .0833 }], 0x1D704: [.442, .01, .354, { sk: .0556 }], 0x1D705: [.442, .011, .576], 0x1D706: [.694, .012, .583], 0x1D707: [.442, .216, .603, { sk: .0278 }], 0x1D708: [.442, 0, .494, { ic: .036, sk: .0278 }], 0x1D709: [.704, .205, .438, { sk: .111 }], 0x1D70A: [.441, .011, .485, { sk: .0556 }], 0x1D70B: [.431, .011, .57], 0x1D70C: [.442, .216, .517, { sk: .0833 }], 0x1D70D: [.442, .107, .363, { ic: .042, sk: .0833 }], 0x1D70E: [.431, .011, .571], 0x1D70F: [.431, .013, .437, { ic: .08, sk: .0278 }], 0x1D710: [.443, .01, .54, { sk: .0278 }], 0x1D711: [.442, .218, .654, { sk: .0833 }], 0x1D712: [.442, .204, .626, { sk: .0556 }], 0x1D713: [.694, .205, .651, { sk: .111 }], 0x1D714: [.443, .011, .622], 0x1D715: [.715, .022, .531, { ic: .035, sk: .0833 }], 0x1D716: [.431, .011, .406, { sk: .0556 }], 0x1D717: [.705, .011, .591, { sk: .0833 }], 0x1D718: [.434, .006, .667, { ic: .067 }], 0x1D719: [.694, .205, .596, { sk: .0833 }], 0x1D71A: [.442, .194, .517, { sk: .0833 }], 0x1D71B: [.431, .01, .828], 0x1D71C: [.711, 0, .869, { sk: .16 }], 0x1D71D: [.686, 0, .866, { sk: .0958 }], 0x1D71E: [.68, 0, .657, { ic: .12, sk: .0958 }], 0x1D71F: [.711, 0, .958, { sk: .192 }], 0x1D720: [.68, 0, .81, { ic: .015, sk: .0958 }], 0x1D721: [.686, 0, .773, { ic: .032, sk: .0958 }], 0x1D722: [.686, 0, .982, { ic: .045, sk: .0639 }], 0x1D723: [.702, .017, .867, { sk: .0958 }], 0x1D724: [.686, 0, .511, { ic: .062, sk: .128 }], 0x1D725: [.686, 0, .971, { ic: .032, sk: .0639 }], 0x1D726: [.711, 0, .806, { sk: .192 }], 0x1D727: [.686, 0, 1.142, { ic: .077, sk: .0958 }], 0x1D728: [.686, 0, .95, { ic: .077, sk: .0958 }], 0x1D729: [.675, 0, .841, { ic: .026, sk: .0958 }], 0x1D72A: [.703, .017, .837, { sk: .0958 }], 0x1D72B: [.68, 0, .982, { ic: .044, sk: .0639 }], 0x1D72C: [.686, 0, .723, { ic: .124, sk: .0958 }], 0x1D72E: [.686, 0, .885, { ic: .017, sk: .0958 }], 0x1D72F: [.675, 0, .637, { ic: .135, sk: .0958 }], 0x1D730: [.703, 0, .671, { ic: .131, sk: .0639 }], 0x1D731: [.686, 0, .767, { sk: .0958 }], 0x1D732: [.686, 0, .947, { sk: .0958 }], 0x1D733: [.686, 0, .714, { ic: .076, sk: .0639 }], 0x1D734: [.703, 0, .879, { sk: .0958 }], 0x1D736: [.452, .008, .761, { sk: .0319 }], 0x1D737: [.701, .194, .66, { sk: .0958 }], 0x1D738: [.451, .211, .59, { ic: .027 }], 0x1D739: [.725, .008, .522, { sk: .0639 }], 0x1D73A: [.461, .017, .529, { sk: .0958 }], 0x1D73B: [.711, .202, .508, { ic: .013, sk: .0958 }], 0x1D73C: [.452, .211, .6, { sk: .0639 }], 0x1D73D: [.702, .008, .562, { sk: .0958 }], 0x1D73E: [.452, .008, .412, { sk: .0639 }], 0x1D73F: [.452, .008, .668], 0x1D740: [.694, .013, .671], 0x1D741: [.452, .211, .708, { sk: .0319 }], 0x1D742: [.452, 0, .577, { ic: .031, sk: .0319 }], 0x1D743: [.711, .201, .508, { sk: .128 }], 0x1D744: [.452, .008, .585, { sk: .0639 }], 0x1D745: [.444, .008, .682], 0x1D746: [.451, .211, .612, { sk: .0958 }], 0x1D747: [.451, .105, .424, { ic: .033, sk: .0958 }], 0x1D748: [.444, .008, .686], 0x1D749: [.444, .013, .521, { ic: .089, sk: .0319 }], 0x1D74A: [.453, .008, .631, { sk: .0319 }], 0x1D74B: [.452, .216, .747, { sk: .0958 }], 0x1D74C: [.452, .201, .718, { sk: .0639 }], 0x1D74D: [.694, .202, .758, { sk: .128 }], 0x1D74E: [.453, .008, .718], 0x1D74F: [.71, .017, .628, { ic: .029, sk: .0958 }], 0x1D750: [.444, .007, .483, { sk: .0639 }], 0x1D751: [.701, .008, .692, { sk: .0958 }], 0x1D752: [.434, .006, .667, { ic: .067 }], 0x1D753: [.694, .202, .712, { sk: .0958 }], 0x1D754: [.451, .194, .612, { sk: .0958 }], 0x1D755: [.444, .008, .975], 0x1D756: [.694, 0, .733], 0x1D757: [.694, 0, .733], 0x1D758: [.691, 0, .581], 0x1D759: [.694, 0, .917], 0x1D75A: [.691, 0, .642], 0x1D75B: [.694, 0, .672], 0x1D75C: [.694, 0, .794], 0x1D75D: [.716, .022, .856], 0x1D75E: [.694, 0, .331], 0x1D75F: [.694, 0, .764], 0x1D760: [.694, 0, .672], 0x1D761: [.694, 0, .978], 0x1D762: [.694, 0, .794], 0x1D763: [.688, 0, .733], 0x1D764: [.716, .022, .794], 0x1D765: [.691, 0, .794], 0x1D766: [.694, 0, .703], 0x1D768: [.694, 0, .794], 0x1D769: [.688, 0, .733], 0x1D76A: [.715, 0, .856], 0x1D76B: [.694, 0, .794], 0x1D76C: [.694, 0, .733], 0x1D76D: [.694, 0, .856], 0x1D76E: [.716, 0, .794], 0x1D7CE: [.654, .01, .575], 0x1D7CF: [.655, 0, .575], 0x1D7D0: [.654, 0, .575], 0x1D7D1: [.655, .011, .575], 0x1D7D2: [.656, 0, .575], 0x1D7D3: [.655, .011, .575], 0x1D7D4: [.655, .011, .575], 0x1D7D5: [.676, .011, .575], 0x1D7D6: [.654, .011, .575], 0x1D7D7: [.654, .011, .575], 0x1D7E2: [.678, .022, .5], 0x1D7E3: [.678, 0, .5], 0x1D7E4: [.677, 0, .5], 0x1D7E5: [.678, .022, .5], 0x1D7E6: [.656, 0, .5], 0x1D7E7: [.656, .021, .5], 0x1D7E8: [.677, .022, .5], 0x1D7E9: [.656, .011, .5], 0x1D7EA: [.678, .022, .5], 0x1D7EB: [.677, .022, .5], 0x1D7EC: [.715, .022, .55], 0x1D7ED: [.716, 0, .55], 0x1D7EE: [.716, 0, .55], 0x1D7EF: [.716, .022, .55], 0x1D7F0: [.694, 0, .55], 0x1D7F1: [.694, .022, .55], 0x1D7F2: [.716, .022, .55], 0x1D7F3: [.695, .011, .55], 0x1D7F4: [.715, .022, .55], 0x1D7F5: [.716, .022, .55], 0x1D7F6: [.621, .01, .525], 0x1D7F7: [.622, 0, .525], 0x1D7F8: [.622, 0, .525], 0x1D7F9: [.622, .011, .525], 0x1D7FA: [.624, 0, .525], 0x1D7FB: [.611, .01, .525], 0x1D7FC: [.622, .011, .525], 0x1D7FD: [.627, .01, .525], 0x1D7FE: [.621, .01, .525], 0x1D7FF: [.622, .011, .525], }; //# sourceMappingURL=normal.js.map /***/ }), /* 235 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sansSerifBoldItalic = void 0; var FontData_js_1 = __webpack_require__(9); var sans_serif_bold_italic_js_1 = __webpack_require__(236); exports.sansSerifBoldItalic = FontData_js_1.AddCSS(sans_serif_bold_italic_js_1.sansSerifBoldItalic, { 0x131: { f: 'SSB' }, 0x237: { f: 'SSB' }, }); //# sourceMappingURL=sans-serif-bold-italic.js.map /***/ }), /* 236 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sansSerifBoldItalic = void 0; exports.sansSerifBoldItalic = { 0x131: [.458, 0, .256], 0x237: [.458, .205, .286], }; //# sourceMappingURL=sans-serif-bold-italic.js.map /***/ }), /* 237 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sansSerifBold = void 0; var FontData_js_1 = __webpack_require__(9); var sans_serif_bold_js_1 = __webpack_require__(238); exports.sansSerifBold = FontData_js_1.AddCSS(sans_serif_bold_js_1.sansSerifBold, { 0x2015: { c: '\\2014' }, 0x2017: { c: '_' }, 0x2044: { c: '/' }, 0x2206: { c: '\\394' }, }); //# sourceMappingURL=sans-serif-bold.js.map /***/ }), /* 238 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sansSerifBold = void 0; exports.sansSerifBold = { 0x21: [.694, 0, .367], 0x22: [.694, -0.442, .558], 0x23: [.694, .193, .917], 0x24: [.75, .056, .55], 0x25: [.75, .056, 1.029], 0x26: [.716, .022, .831], 0x27: [.694, -0.442, .306], 0x28: [.75, .249, .428], 0x29: [.75, .25, .428], 0x2A: [.75, -0.293, .55], 0x2B: [.617, .116, .856], 0x2C: [.146, .106, .306], 0x2D: [.273, -0.186, .367], 0x2E: [.146, 0, .306], 0x2F: [.75, .249, .55], 0x3A: [.458, 0, .306], 0x3B: [.458, .106, .306], 0x3D: [.407, -0.094, .856], 0x3F: [.705, 0, .519], 0x40: [.704, .011, .733], 0x5B: [.75, .25, .343], 0x5D: [.75, .25, .343], 0x5E: [.694, -0.537, .55], 0x5F: [-0.023, .11, .55], 0x7E: [.344, -0.198, .55], 0x131: [.458, 0, .256], 0x237: [.458, .205, .286], 0x300: [.694, -0.537, 0], 0x301: [.694, -0.537, 0], 0x302: [.694, -0.537, 0], 0x303: [.694, -0.548, 0], 0x304: [.66, -0.56, 0], 0x306: [.694, -0.552, 0], 0x307: [.695, -0.596, 0], 0x308: [.695, -0.595, 0], 0x30A: [.694, -0.538, 0], 0x30B: [.694, -0.537, 0], 0x30C: [.657, -0.5, 0], 0x2013: [.327, -0.24, .55], 0x2014: [.327, -0.24, 1.1], 0x2015: [.327, -0.24, 1.1], 0x2017: [-0.023, .11, .55], 0x2018: [.694, -0.443, .306], 0x2019: [.694, -0.442, .306], 0x201C: [.694, -0.443, .558], 0x201D: [.694, -0.442, .558], 0x2044: [.75, .249, .55], 0x2206: [.694, 0, .917], }; //# sourceMappingURL=sans-serif-bold.js.map /***/ }), /* 239 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sansSerifItalic = void 0; var FontData_js_1 = __webpack_require__(9); var sans_serif_italic_js_1 = __webpack_require__(240); exports.sansSerifItalic = FontData_js_1.AddCSS(sans_serif_italic_js_1.sansSerifItalic, { 0x391: { c: 'A' }, 0x392: { c: 'B' }, 0x395: { c: 'E' }, 0x396: { c: 'Z' }, 0x397: { c: 'H' }, 0x399: { c: 'I' }, 0x39A: { c: 'K' }, 0x39C: { c: 'M' }, 0x39D: { c: 'N' }, 0x39F: { c: 'O' }, 0x3A1: { c: 'P' }, 0x3A4: { c: 'T' }, 0x3A7: { c: 'X' }, 0x2015: { c: '\\2014' }, 0x2017: { c: '_' }, 0x2044: { c: '/' }, 0x2206: { c: '\\394' }, }); //# sourceMappingURL=sans-serif-italic.js.map /***/ }), /* 240 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sansSerifItalic = void 0; exports.sansSerifItalic = { 0x21: [.694, 0, .319, { ic: .036 }], 0x22: [.694, -0.471, .5], 0x23: [.694, .194, .833, { ic: .018 }], 0x24: [.75, .056, .5, { ic: .065 }], 0x25: [.75, .056, .833], 0x26: [.716, .022, .758], 0x27: [.694, -0.471, .278, { ic: .057 }], 0x28: [.75, .25, .389, { ic: .102 }], 0x29: [.75, .25, .389], 0x2A: [.75, -0.306, .5, { ic: .068 }], 0x2B: [.583, .083, .778], 0x2C: [.098, .125, .278], 0x2D: [.259, -0.186, .333], 0x2E: [.098, 0, .278], 0x2F: [.75, .25, .5, { ic: .1 }], 0x30: [.678, .022, .5, { ic: .049 }], 0x31: [.678, 0, .5], 0x32: [.678, 0, .5, { ic: .051 }], 0x33: [.678, .022, .5, { ic: .044 }], 0x34: [.656, 0, .5, { ic: .021 }], 0x35: [.656, .022, .5, { ic: .055 }], 0x36: [.678, .022, .5, { ic: .048 }], 0x37: [.656, .011, .5, { ic: .096 }], 0x38: [.678, .022, .5, { ic: .054 }], 0x39: [.677, .022, .5, { ic: .045 }], 0x3A: [.444, 0, .278], 0x3B: [.444, .125, .278], 0x3D: [.37, -0.13, .778, { ic: .018 }], 0x3F: [.704, 0, .472, { ic: .064 }], 0x40: [.705, .01, .667, { ic: .04 }], 0x5B: [.75, .25, .289, { ic: .136 }], 0x5D: [.75, .25, .289, { ic: .064 }], 0x5E: [.694, -0.527, .5, { ic: .033 }], 0x5F: [-0.038, .114, .5, { ic: .065 }], 0x7E: [.327, -0.193, .5, { ic: .06 }], 0x131: [.444, 0, .239, { ic: .019 }], 0x237: [.444, .204, .267, { ic: .019 }], 0x300: [.694, -0.527, 0], 0x301: [.694, -0.527, 0, { ic: .063 }], 0x302: [.694, -0.527, 0, { ic: .033 }], 0x303: [.677, -0.543, 0, { ic: .06 }], 0x304: [.631, -0.552, 0, { ic: .064 }], 0x306: [.694, -0.508, 0, { ic: .073 }], 0x307: [.68, -0.576, 0], 0x308: [.68, -0.582, 0, { ic: .04 }], 0x30A: [.693, -0.527, 0], 0x30B: [.694, -0.527, 0, { ic: .063 }], 0x30C: [.654, -0.487, 0, { ic: .06 }], 0x391: [.694, 0, .667], 0x392: [.694, 0, .667, { ic: .029 }], 0x393: [.691, 0, .542, { ic: .104 }], 0x394: [.694, 0, .833], 0x395: [.691, 0, .597, { ic: .091 }], 0x396: [.694, 0, .611, { ic: .091 }], 0x397: [.694, 0, .708, { ic: .06 }], 0x398: [.715, .022, .778, { ic: .026 }], 0x399: [.694, 0, .278, { ic: .06 }], 0x39A: [.694, 0, .694, { ic: .091 }], 0x39B: [.694, 0, .611], 0x39C: [.694, 0, .875, { ic: .054 }], 0x39D: [.694, 0, .708, { ic: .058 }], 0x39E: [.688, 0, .667, { ic: .098 }], 0x39F: [.716, .022, .736, { ic: .027 }], 0x3A0: [.691, 0, .708, { ic: .06 }], 0x3A1: [.694, 0, .639, { ic: .051 }], 0x3A3: [.694, 0, .722, { ic: .091 }], 0x3A4: [.688, 0, .681, { ic: .109 }], 0x3A5: [.716, 0, .778, { ic: .065 }], 0x3A6: [.694, 0, .722, { ic: .021 }], 0x3A7: [.694, 0, .667, { ic: .091 }], 0x3A8: [.694, 0, .778, { ic: .076 }], 0x3A9: [.716, 0, .722, { ic: .047 }], 0x2013: [.312, -0.236, .5, { ic: .065 }], 0x2014: [.312, -0.236, 1, { ic: .065 }], 0x2015: [.312, -0.236, 1, { ic: .065 }], 0x2017: [-0.038, .114, .5, { ic: .065 }], 0x2018: [.694, -0.471, .278, { ic: .058 }], 0x2019: [.694, -0.471, .278, { ic: .057 }], 0x201C: [.694, -0.471, .5, { ic: .114 }], 0x201D: [.694, -0.471, .5], 0x2044: [.75, .25, .5, { ic: .1 }], 0x2206: [.694, 0, .833], }; //# sourceMappingURL=sans-serif-italic.js.map /***/ }), /* 241 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sansSerif = void 0; var FontData_js_1 = __webpack_require__(9); var sans_serif_js_1 = __webpack_require__(242); exports.sansSerif = FontData_js_1.AddCSS(sans_serif_js_1.sansSerif, { 0x391: { c: 'A' }, 0x392: { c: 'B' }, 0x395: { c: 'E' }, 0x396: { c: 'Z' }, 0x397: { c: 'H' }, 0x399: { c: 'I' }, 0x39A: { c: 'K' }, 0x39C: { c: 'M' }, 0x39D: { c: 'N' }, 0x39F: { c: 'O' }, 0x3A1: { c: 'P' }, 0x3A4: { c: 'T' }, 0x3A7: { c: 'X' }, 0x2015: { c: '\\2014' }, 0x2017: { c: '_' }, 0x2044: { c: '/' }, 0x2206: { c: '\\394' }, }); //# sourceMappingURL=sans-serif.js.map /***/ }), /* 242 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sansSerif = void 0; exports.sansSerif = { 0x21: [.694, 0, .319], 0x22: [.694, -0.471, .5], 0x23: [.694, .194, .833], 0x24: [.75, .056, .5], 0x25: [.75, .056, .833], 0x26: [.716, .022, .758], 0x27: [.694, -0.471, .278], 0x28: [.75, .25, .389], 0x29: [.75, .25, .389], 0x2A: [.75, -0.306, .5], 0x2B: [.583, .082, .778], 0x2C: [.098, .125, .278], 0x2D: [.259, -0.186, .333], 0x2E: [.098, 0, .278], 0x2F: [.75, .25, .5], 0x3A: [.444, 0, .278], 0x3B: [.444, .125, .278], 0x3D: [.37, -0.13, .778], 0x3F: [.704, 0, .472], 0x40: [.704, .011, .667], 0x5B: [.75, .25, .289], 0x5D: [.75, .25, .289], 0x5E: [.694, -0.527, .5], 0x5F: [-0.038, .114, .5], 0x7E: [.327, -0.193, .5], 0x131: [.444, 0, .239], 0x237: [.444, .205, .267], 0x300: [.694, -0.527, 0], 0x301: [.694, -0.527, 0], 0x302: [.694, -0.527, 0], 0x303: [.677, -0.543, 0], 0x304: [.631, -0.552, 0], 0x306: [.694, -0.508, 0], 0x307: [.68, -0.576, 0], 0x308: [.68, -0.582, 0], 0x30A: [.694, -0.527, 0], 0x30B: [.694, -0.527, 0], 0x30C: [.654, -0.487, 0], 0x391: [.694, 0, .667], 0x392: [.694, 0, .667], 0x393: [.691, 0, .542], 0x394: [.694, 0, .833], 0x395: [.691, 0, .597], 0x396: [.694, 0, .611], 0x397: [.694, 0, .708], 0x398: [.716, .021, .778], 0x399: [.694, 0, .278], 0x39A: [.694, 0, .694], 0x39B: [.694, 0, .611], 0x39C: [.694, 0, .875], 0x39D: [.694, 0, .708], 0x39E: [.688, 0, .667], 0x39F: [.715, .022, .736], 0x3A0: [.691, 0, .708], 0x3A1: [.694, 0, .639], 0x3A3: [.694, 0, .722], 0x3A4: [.688, 0, .681], 0x3A5: [.716, 0, .778], 0x3A6: [.694, 0, .722], 0x3A7: [.694, 0, .667], 0x3A8: [.694, 0, .778], 0x3A9: [.716, 0, .722], 0x2013: [.312, -0.236, .5], 0x2014: [.312, -0.236, 1], 0x2015: [.312, -0.236, 1], 0x2017: [-0.038, .114, .5], 0x2018: [.694, -0.471, .278], 0x2019: [.694, -0.471, .278], 0x201C: [.694, -0.471, .5], 0x201D: [.694, -0.471, .5], 0x2044: [.75, .25, .5], 0x2206: [.694, 0, .833], }; //# sourceMappingURL=sans-serif.js.map /***/ }), /* 243 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.scriptBold = void 0; exports.scriptBold = {}; //# sourceMappingURL=script-bold.js.map /***/ }), /* 244 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.script = void 0; exports.script = {}; //# sourceMappingURL=script.js.map /***/ }), /* 245 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.smallop = void 0; var FontData_js_1 = __webpack_require__(9); var smallop_js_1 = __webpack_require__(246); exports.smallop = FontData_js_1.AddCSS(smallop_js_1.smallop, { 0x2044: { c: '/' }, 0x2329: { c: '\\27E8' }, 0x232A: { c: '\\27E9' }, 0x2758: { c: '\\2223' }, 0x2A0C: { c: '\\222C\\222C' }, 0x3008: { c: '\\27E8' }, 0x3009: { c: '\\27E9' }, }); //# sourceMappingURL=smallop.js.map /***/ }), /* 246 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.smallop = void 0; exports.smallop = { 0x28: [.85, .349, .458], 0x29: [.85, .349, .458], 0x2F: [.85, .349, .578], 0x5B: [.85, .349, .417], 0x5C: [.85, .349, .578], 0x5D: [.85, .349, .417], 0x7B: [.85, .349, .583], 0x7D: [.85, .349, .583], 0x2C6: [.744, -0.551, .556], 0x2DC: [.722, -0.597, .556], 0x302: [.744, -0.551, 0], 0x303: [.722, -0.597, 0], 0x2016: [.602, 0, .778], 0x2044: [.85, .349, .578], 0x2191: [.6, 0, .667], 0x2193: [.6, 0, .667], 0x21D1: [.599, 0, .778], 0x21D3: [.6, 0, .778], 0x220F: [.75, .25, .944], 0x2210: [.75, .25, .944], 0x2211: [.75, .25, 1.056], 0x221A: [.85, .35, 1, { ic: .02 }], 0x2223: [.627, .015, .333], 0x2225: [.627, .015, .556], 0x222B: [.805, .306, .472, { ic: .138 }], 0x222C: [.805, .306, .819, { ic: .138 }], 0x222D: [.805, .306, 1.166, { ic: .138 }], 0x222E: [.805, .306, .472, { ic: .138 }], 0x22C0: [.75, .249, .833], 0x22C1: [.75, .249, .833], 0x22C2: [.75, .249, .833], 0x22C3: [.75, .249, .833], 0x2308: [.85, .349, .472], 0x2309: [.85, .349, .472], 0x230A: [.85, .349, .472], 0x230B: [.85, .349, .472], 0x2329: [.85, .35, .472], 0x232A: [.85, .35, .472], 0x23D0: [.602, 0, .667], 0x2758: [.627, .015, .333], 0x27E8: [.85, .35, .472], 0x27E9: [.85, .35, .472], 0x2A00: [.75, .25, 1.111], 0x2A01: [.75, .25, 1.111], 0x2A02: [.75, .25, 1.111], 0x2A04: [.75, .249, .833], 0x2A06: [.75, .249, .833], 0x2A0C: [.805, .306, 1.638, { ic: .138 }], 0x3008: [.85, .35, .472], 0x3009: [.85, .35, .472], }; //# sourceMappingURL=smallop.js.map /***/ }), /* 247 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texCalligraphicBold = void 0; var FontData_js_1 = __webpack_require__(9); var tex_calligraphic_bold_js_1 = __webpack_require__(248); exports.texCalligraphicBold = FontData_js_1.AddCSS(tex_calligraphic_bold_js_1.texCalligraphicBold, { 0x131: { f: 'B' }, 0x237: { f: 'B' }, }); //# sourceMappingURL=tex-calligraphic-bold.js.map /***/ }), /* 248 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texCalligraphicBold = void 0; exports.texCalligraphicBold = { 0x41: [.751, .049, .921, { ic: .068, sk: .224 }], 0x42: [.705, .017, .748, { sk: .16 }], 0x43: [.703, .02, .613, { sk: .16 }], 0x44: [.686, 0, .892, { sk: .0958 }], 0x45: [.703, .016, .607, { ic: .02, sk: .128 }], 0x46: [.686, .03, .814, { ic: .116, sk: .128 }], 0x47: [.703, .113, .682, { sk: .128 }], 0x48: [.686, .048, .987, { sk: .128 }], 0x49: [.686, 0, .642, { ic: .104, sk: .0319 }], 0x4A: [.686, .114, .779, { ic: .158, sk: .192 }], 0x4B: [.703, .017, .871, { sk: .0639 }], 0x4C: [.703, .017, .788, { sk: .16 }], 0x4D: [.703, .049, 1.378, { sk: .16 }], 0x4E: [.84, .049, .937, { ic: .168, sk: .0958 }], 0x4F: [.703, .017, .906, { sk: .128 }], 0x50: [.686, .067, .81, { ic: .036, sk: .0958 }], 0x51: [.703, .146, .939, { sk: .128 }], 0x52: [.686, .017, .99, { sk: .0958 }], 0x53: [.703, .016, .696, { ic: .025, sk: .16 }], 0x54: [.72, .069, .644, { ic: .303, sk: .0319 }], 0x55: [.686, .024, .715, { ic: .056, sk: .0958 }], 0x56: [.686, .077, .737, { ic: .037, sk: .0319 }], 0x57: [.686, .077, 1.169, { ic: .037, sk: .0958 }], 0x58: [.686, 0, .817, { ic: .089, sk: .16 }], 0x59: [.686, .164, .759, { ic: .038, sk: .0958 }], 0x5A: [.686, 0, .818, { ic: .035, sk: .16 }], 0x131: [.452, .008, .394, { sk: .0319 }], 0x237: [.451, .201, .439, { sk: .0958 }], }; //# sourceMappingURL=tex-calligraphic-bold.js.map /***/ }), /* 249 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texCalligraphic = void 0; exports.texCalligraphic = { 0x41: [.728, .05, .798, { ic: .021, sk: .194 }], 0x42: [.705, .022, .657, { sk: .139 }], 0x43: [.705, .025, .527, { sk: .139 }], 0x44: [.683, 0, .771, { sk: .0833 }], 0x45: [.705, .022, .528, { ic: .036, sk: .111 }], 0x46: [.683, .032, .719, { ic: .11, sk: .111 }], 0x47: [.704, .119, .595, { sk: .111 }], 0x48: [.683, .048, .845, { sk: .111 }], 0x49: [.683, 0, .545, { ic: .097, sk: .0278 }], 0x4A: [.683, .119, .678, { ic: .161, sk: .167 }], 0x4B: [.705, .022, .762, { sk: .0556 }], 0x4C: [.705, .022, .69, { sk: .139 }], 0x4D: [.705, .05, 1.201, { sk: .139 }], 0x4E: [.789, .05, .82, { ic: .159, sk: .0833 }], 0x4F: [.705, .022, .796, { sk: .111 }], 0x50: [.683, .057, .696, { ic: .037, sk: .0833 }], 0x51: [.705, .131, .817, { sk: .111 }], 0x52: [.682, .022, .848, { sk: .0833 }], 0x53: [.705, .022, .606, { ic: .036, sk: .139 }], 0x54: [.717, .068, .545, { ic: .288, sk: .0278 }], 0x55: [.683, .028, .626, { ic: .061, sk: .0833 }], 0x56: [.683, .052, .613, { ic: .045, sk: .0278 }], 0x57: [.683, .053, .988, { ic: .046, sk: .0833 }], 0x58: [.683, 0, .713, { ic: .094, sk: .139 }], 0x59: [.683, .143, .668, { ic: .046, sk: .0833 }], 0x5A: [.683, 0, .725, { ic: .042, sk: .139 }], }; //# sourceMappingURL=tex-calligraphic.js.map /***/ }), /* 250 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texMathit = void 0; exports.texMathit = { 0x41: [.716, 0, .743], 0x42: [.683, 0, .704], 0x43: [.705, .021, .716], 0x44: [.683, 0, .755], 0x45: [.68, 0, .678], 0x46: [.68, 0, .653], 0x47: [.705, .022, .774], 0x48: [.683, 0, .743], 0x49: [.683, 0, .386], 0x4A: [.683, .021, .525], 0x4B: [.683, 0, .769], 0x4C: [.683, 0, .627], 0x4D: [.683, 0, .897], 0x4E: [.683, 0, .743], 0x4F: [.704, .022, .767], 0x50: [.683, 0, .678], 0x51: [.704, .194, .767], 0x52: [.683, .022, .729], 0x53: [.705, .022, .562], 0x54: [.677, 0, .716], 0x55: [.683, .022, .743], 0x56: [.683, .022, .743], 0x57: [.683, .022, .999], 0x58: [.683, 0, .743], 0x59: [.683, 0, .743], 0x5A: [.683, 0, .613], 0x61: [.442, .011, .511], 0x62: [.694, .011, .46], 0x63: [.441, .01, .46], 0x64: [.694, .011, .511], 0x65: [.442, .01, .46], 0x66: [.705, .204, .307], 0x67: [.442, .205, .46], 0x68: [.694, .011, .511], 0x69: [.656, .01, .307], 0x6A: [.656, .204, .307], 0x6B: [.694, .011, .46], 0x6C: [.694, .011, .256], 0x6D: [.442, .011, .818], 0x6E: [.442, .011, .562], 0x6F: [.442, .011, .511], 0x70: [.442, .194, .511], 0x71: [.442, .194, .46], 0x72: [.442, .011, .422], 0x73: [.442, .011, .409], 0x74: [.626, .011, .332], 0x75: [.441, .011, .537], 0x76: [.443, .01, .46], 0x77: [.443, .011, .664], 0x78: [.442, .011, .464], 0x79: [.441, .205, .486], 0x7A: [.442, .011, .409], }; //# sourceMappingURL=tex-mathit.js.map /***/ }), /* 251 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texOldstyleBold = void 0; exports.texOldstyleBold = { 0x30: [.46, .017, .575], 0x31: [.461, 0, .575], 0x32: [.46, 0, .575], 0x33: [.461, .211, .575], 0x34: [.469, .194, .575], 0x35: [.461, .211, .575], 0x36: [.66, .017, .575], 0x37: [.476, .211, .575], 0x38: [.661, .017, .575], 0x39: [.461, .21, .575], 0x41: [.751, .049, .921, { ic: .068, sk: .224 }], 0x42: [.705, .017, .748, { sk: .16 }], 0x43: [.703, .02, .613, { sk: .16 }], 0x44: [.686, 0, .892, { sk: .0958 }], 0x45: [.703, .016, .607, { ic: .02, sk: .128 }], 0x46: [.686, .03, .814, { ic: .116, sk: .128 }], 0x47: [.703, .113, .682, { sk: .128 }], 0x48: [.686, .048, .987, { sk: .128 }], 0x49: [.686, 0, .642, { ic: .104, sk: .0319 }], 0x4A: [.686, .114, .779, { ic: .158, sk: .192 }], 0x4B: [.703, .017, .871, { sk: .0639 }], 0x4C: [.703, .017, .788, { sk: .16 }], 0x4D: [.703, .049, 1.378, { sk: .16 }], 0x4E: [.84, .049, .937, { ic: .168, sk: .0958 }], 0x4F: [.703, .017, .906, { sk: .128 }], 0x50: [.686, .067, .81, { ic: .036, sk: .0958 }], 0x51: [.703, .146, .939, { sk: .128 }], 0x52: [.686, .017, .99, { sk: .0958 }], 0x53: [.703, .016, .696, { ic: .025, sk: .16 }], 0x54: [.72, .069, .644, { ic: .303, sk: .0319 }], 0x55: [.686, .024, .715, { ic: .056, sk: .0958 }], 0x56: [.686, .077, .737, { ic: .037, sk: .0319 }], 0x57: [.686, .077, 1.169, { ic: .037, sk: .0958 }], 0x58: [.686, 0, .817, { ic: .089, sk: .16 }], 0x59: [.686, .164, .759, { ic: .038, sk: .0958 }], 0x5A: [.686, 0, .818, { ic: .035, sk: .16 }], }; //# sourceMappingURL=tex-oldstyle-bold.js.map /***/ }), /* 252 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texOldstyle = void 0; exports.texOldstyle = { 0x30: [.452, .022, .5], 0x31: [.453, 0, .5], 0x32: [.453, 0, .5], 0x33: [.452, .216, .5], 0x34: [.464, .194, .5], 0x35: [.453, .216, .5], 0x36: [.665, .022, .5], 0x37: [.463, .216, .5], 0x38: [.666, .021, .5], 0x39: [.453, .216, .5], 0x41: [.728, .05, .798, { ic: .021, sk: .194 }], 0x42: [.705, .022, .657, { sk: .139 }], 0x43: [.705, .025, .527, { sk: .139 }], 0x44: [.683, 0, .771, { sk: .0833 }], 0x45: [.705, .022, .528, { ic: .036, sk: .111 }], 0x46: [.683, .032, .719, { ic: .11, sk: .111 }], 0x47: [.704, .119, .595, { sk: .111 }], 0x48: [.683, .048, .845, { sk: .111 }], 0x49: [.683, 0, .545, { ic: .097, sk: .0278 }], 0x4A: [.683, .119, .678, { ic: .161, sk: .167 }], 0x4B: [.705, .022, .762, { sk: .0556 }], 0x4C: [.705, .022, .69, { sk: .139 }], 0x4D: [.705, .05, 1.201, { sk: .139 }], 0x4E: [.789, .05, .82, { ic: .159, sk: .0833 }], 0x4F: [.705, .022, .796, { sk: .111 }], 0x50: [.683, .057, .696, { ic: .037, sk: .0833 }], 0x51: [.705, .131, .817, { sk: .111 }], 0x52: [.682, .022, .848, { sk: .0833 }], 0x53: [.705, .022, .606, { ic: .036, sk: .139 }], 0x54: [.717, .068, .545, { ic: .288, sk: .0278 }], 0x55: [.683, .028, .626, { ic: .061, sk: .0833 }], 0x56: [.683, .052, .613, { ic: .045, sk: .0278 }], 0x57: [.683, .053, .988, { ic: .046, sk: .0833 }], 0x58: [.683, 0, .713, { ic: .094, sk: .139 }], 0x59: [.683, .143, .668, { ic: .046, sk: .0833 }], 0x5A: [.683, 0, .725, { ic: .042, sk: .139 }], }; //# sourceMappingURL=tex-oldstyle.js.map /***/ }), /* 253 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texSize3 = void 0; var FontData_js_1 = __webpack_require__(9); var tex_size3_js_1 = __webpack_require__(254); exports.texSize3 = FontData_js_1.AddCSS(tex_size3_js_1.texSize3, { 0x2044: { c: '/' }, 0x2329: { c: '\\27E8' }, 0x232A: { c: '\\27E9' }, 0x3008: { c: '\\27E8' }, 0x3009: { c: '\\27E9' }, }); //# sourceMappingURL=tex-size3.js.map /***/ }), /* 254 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texSize3 = void 0; exports.texSize3 = { 0x28: [1.45, .949, .736], 0x29: [1.45, .949, .736], 0x2F: [1.45, .949, 1.044], 0x5B: [1.45, .949, .528], 0x5C: [1.45, .949, 1.044], 0x5D: [1.45, .949, .528], 0x7B: [1.45, .949, .75], 0x7D: [1.45, .949, .75], 0x2C6: [.772, -0.564, 1.444], 0x2DC: [.749, -0.61, 1.444], 0x302: [.772, -0.564, 0], 0x303: [.749, -0.61, 0], 0x2044: [1.45, .949, 1.044], 0x221A: [1.45, .95, 1, { ic: .02 }], 0x2308: [1.45, .949, .583], 0x2309: [1.45, .949, .583], 0x230A: [1.45, .949, .583], 0x230B: [1.45, .949, .583], 0x2329: [1.45, .95, .75], 0x232A: [1.45, .949, .75], 0x27E8: [1.45, .95, .75], 0x27E9: [1.45, .949, .75], 0x3008: [1.45, .95, .75], 0x3009: [1.45, .949, .75], }; //# sourceMappingURL=tex-size3.js.map /***/ }), /* 255 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texSize4 = void 0; var FontData_js_1 = __webpack_require__(9); var tex_size4_js_1 = __webpack_require__(256); exports.texSize4 = FontData_js_1.AddCSS(tex_size4_js_1.texSize4, { 0x2044: { c: '/' }, 0x2329: { c: '\\27E8' }, 0x232A: { c: '\\27E9' }, 0x3008: { c: '\\27E8' }, 0x3009: { c: '\\27E9' }, 0xE155: { c: '\\E153\\E152' }, 0xE156: { c: '\\E151\\E150' }, }); //# sourceMappingURL=tex-size4.js.map /***/ }), /* 256 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texSize4 = void 0; exports.texSize4 = { 0x28: [1.75, 1.249, .792], 0x29: [1.75, 1.249, .792], 0x2F: [1.75, 1.249, 1.278], 0x5B: [1.75, 1.249, .583], 0x5C: [1.75, 1.249, 1.278], 0x5D: [1.75, 1.249, .583], 0x7B: [1.75, 1.249, .806], 0x7D: [1.75, 1.249, .806], 0x2C6: [.845, -0.561, 1.889, { ic: .013 }], 0x2DC: [.823, -0.583, 1.889], 0x302: [.845, -0.561, 0, { ic: .013 }], 0x303: [.823, -0.583, 0], 0x2044: [1.75, 1.249, 1.278], 0x221A: [1.75, 1.25, 1, { ic: .02 }], 0x2308: [1.75, 1.249, .639], 0x2309: [1.75, 1.249, .639], 0x230A: [1.75, 1.249, .639], 0x230B: [1.75, 1.249, .639], 0x2329: [1.75, 1.248, .806], 0x232A: [1.75, 1.248, .806], 0x239B: [1.154, .655, .875], 0x239C: [.61, .01, .875], 0x239D: [1.165, .644, .875], 0x239E: [1.154, .655, .875], 0x239F: [.61, .01, .875], 0x23A0: [1.165, .644, .875], 0x23A1: [1.154, .645, .667], 0x23A2: [.602, 0, .667], 0x23A3: [1.155, .644, .667], 0x23A4: [1.154, .645, .667], 0x23A5: [.602, 0, .667], 0x23A6: [1.155, .644, .667], 0x23A7: [.899, .01, .889], 0x23A8: [1.16, .66, .889], 0x23A9: [.01, .899, .889], 0x23AA: [.29, .015, .889], 0x23AB: [.899, .01, .889], 0x23AC: [1.16, .66, .889], 0x23AD: [.01, .899, .889], 0x23B7: [.935, .885, 1.056], 0x27E8: [1.75, 1.248, .806], 0x27E9: [1.75, 1.248, .806], 0x3008: [1.75, 1.248, .806], 0x3009: [1.75, 1.248, .806], 0xE000: [.625, .014, 1.056], 0xE001: [.605, .014, 1.056, { ic: .02 }], 0xE150: [.12, .213, .45, { ic: .01 }], 0xE151: [.12, .213, .45, { ic: .024 }], 0xE152: [.333, 0, .45, { ic: .01 }], 0xE153: [.333, 0, .45, { ic: .024 }], 0xE154: [.32, .2, .4, { ic: .01 }], 0xE155: [.333, 0, .9, { ic: .01 }], 0xE156: [.12, .213, .9, { ic: .01 }], }; //# sourceMappingURL=tex-size4.js.map /***/ }), /* 257 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texVariant = void 0; var FontData_js_1 = __webpack_require__(9); var tex_variant_js_1 = __webpack_require__(258); exports.texVariant = FontData_js_1.AddCSS(tex_variant_js_1.texVariant, { 0x3F0: { c: '\\E009' }, 0x210F: { f: '' }, 0x2224: { c: '\\E006' }, 0x2226: { c: '\\E007' }, 0x2268: { c: '\\E00C' }, 0x2269: { c: '\\E00D' }, 0x2270: { c: '\\E011' }, 0x2271: { c: '\\E00E' }, 0x2288: { c: '\\E016' }, 0x2289: { c: '\\E018' }, 0x228A: { c: '\\E01A' }, 0x228B: { c: '\\E01B' }, 0x2A87: { c: '\\E010' }, 0x2A88: { c: '\\E00F' }, 0x2ACB: { c: '\\E017' }, 0x2ACC: { c: '\\E019' }, }); //# sourceMappingURL=tex-variant.js.map /***/ }), /* 258 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texVariant = void 0; exports.texVariant = { 0x2C6: [.845, -0.561, 2.333, { ic: .013 }], 0x2DC: [.899, -0.628, 2.333], 0x302: [.845, -0.561, 0, { ic: .013 }], 0x303: [.899, -0.628, 0], 0x3F0: [.434, .006, .667, { ic: .067 }], 0x210F: [.695, .013, .54, { ic: .022 }], 0x2190: [.437, -0.064, .5], 0x2192: [.437, -0.064, .5], 0x21CC: [.514, .014, 1], 0x2204: [.86, .166, .556], 0x2205: [.587, 0, .778], 0x2212: [.27, -0.23, .5], 0x2216: [.43, .023, .778], 0x221D: [.472, -0.028, .778], 0x2223: [.43, .023, .222], 0x2224: [.43, .023, .222, { ic: .018 }], 0x2225: [.431, .023, .389], 0x2226: [.431, .024, .389, { ic: .018 }], 0x223C: [.365, -0.132, .778], 0x2248: [.481, -0.05, .778], 0x2268: [.752, .284, .778], 0x2269: [.752, .284, .778], 0x2270: [.919, .421, .778], 0x2271: [.919, .421, .778], 0x2288: [.828, .33, .778], 0x2289: [.828, .33, .778], 0x228A: [.634, .255, .778], 0x228B: [.634, .254, .778], 0x22A8: [.694, 0, .611], 0x22C5: [.189, 0, .278], 0x2322: [.378, -0.122, .778], 0x2323: [.378, -0.143, .778], 0x25B3: [.575, .02, .722], 0x25BD: [.576, .019, .722], 0x2A87: [.801, .303, .778], 0x2A88: [.801, .303, .778], 0x2ACB: [.752, .332, .778], 0x2ACC: [.752, .333, .778], }; //# sourceMappingURL=tex-variant.js.map /***/ }), /* 259 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.delimiters = exports.VSIZES = exports.HDW3 = exports.HDW2 = exports.HDW1 = void 0; var FontData_js_1 = __webpack_require__(30); exports.HDW1 = [.75, .25, .875]; exports.HDW2 = [.85, .349, .667]; exports.HDW3 = [.583, .082, .5]; exports.VSIZES = [1, 1.2, 1.8, 2.4, 3]; var DELIM2F = { c: 0x2F, dir: FontData_js_1.V, sizes: exports.VSIZES }; var DELIMAF = { c: 0xAF, dir: FontData_js_1.H, sizes: [.59], stretch: [0, 0xAF], HDW: [.59, -0.544, .5] }; var DELIM2C6 = { c: 0x2C6, dir: FontData_js_1.H, sizes: [.517, .817, 1.335, 1.777, 1.909] }; var DELIM2DC = { c: 0x2DC, dir: FontData_js_1.H, sizes: [.583, .805, 1.33, 1.773, 1.887] }; var DELIM2013 = { c: 0x2013, dir: FontData_js_1.H, sizes: [.5], stretch: [0, 0x2013], HDW: [.285, -0.248, .5] }; var DELIM2190 = { c: 0x2190, dir: FontData_js_1.H, sizes: [1], stretch: [0x2190, 0x2212], HDW: exports.HDW3 }; var DELIM2192 = { c: 0x2192, dir: FontData_js_1.H, sizes: [1], stretch: [0, 0x2212, 0x2192], HDW: exports.HDW3 }; var DELIM2194 = { c: 0x2194, dir: FontData_js_1.H, sizes: [1], stretch: [0x2190, 0x2212, 0x2192], HDW: exports.HDW3 }; var DELIM21A4 = { c: 0x21A4, dir: FontData_js_1.H, stretch: [0x2190, 0x2212, 0x2223], HDW: exports.HDW3, min: 1.278 }; var DELIM21A6 = { c: 0x21A6, dir: FontData_js_1.H, sizes: [1], stretch: [0x2223, 0x2212, 0x2192], HDW: exports.HDW3 }; var DELIM21D0 = { c: 0x21D0, dir: FontData_js_1.H, sizes: [1], stretch: [0x21D0, 0x3D], HDW: exports.HDW3 }; var DELIM21D2 = { c: 0x21D2, dir: FontData_js_1.H, sizes: [1], stretch: [0, 0x3D, 0x21D2], HDW: exports.HDW3 }; var DELIM21D4 = { c: 0x21D4, dir: FontData_js_1.H, sizes: [1], stretch: [0x21D0, 0x3D, 0x21D2], HDW: exports.HDW3 }; var DELIM2212 = { c: 0x2212, dir: FontData_js_1.H, sizes: [.778], stretch: [0, 0x2212], HDW: exports.HDW3 }; var DELIM2223 = { c: 0x2223, dir: FontData_js_1.V, sizes: [1], stretch: [0, 0x2223], HDW: [.627, .015, .333] }; var DELIM23DC = { c: 0x23DC, dir: FontData_js_1.H, sizes: [.778, 1], schar: [0x2322, 0x2322], stretch: [0xE150, 0xE154, 0xE151], HDW: [.32, .2, .5] }; var DELIM23DD = { c: 0x23DD, dir: FontData_js_1.H, sizes: [.778, 1], schar: [0x2323, 0x2323], stretch: [0xE152, 0xE154, 0xE153], HDW: [.32, .2, .5] }; var DELIM23DE = { c: 0x23DE, dir: FontData_js_1.H, stretch: [0xE150, 0xE154, 0xE151, 0xE155], HDW: [.32, .2, .5], min: 1.8 }; var DELIM23DF = { c: 0x23DF, dir: FontData_js_1.H, stretch: [0xE152, 0xE154, 0xE153, 0xE156], HDW: [.32, .2, .5], min: 1.8 }; var DELIM27E8 = { c: 0x27E8, dir: FontData_js_1.V, sizes: exports.VSIZES }; var DELIM27E9 = { c: 0x27E9, dir: FontData_js_1.V, sizes: exports.VSIZES }; var DELIM2906 = { c: 0x2906, dir: FontData_js_1.H, stretch: [0x21D0, 0x3D, 0x2223], HDW: exports.HDW3, min: 1.278 }; var DELIM2907 = { c: 0x2907, dir: FontData_js_1.H, stretch: [0x22A8, 0x3D, 0x21D2], HDW: exports.HDW3, min: 1.278 }; exports.delimiters = { 0x28: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0x239B, 0x239C, 0x239D], HDW: [.85, .349, .875] }, 0x29: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0x239E, 0x239F, 0x23A0], HDW: [.85, .349, .875] }, 0x2D: DELIM2212, 0x2F: DELIM2F, 0x3D: { dir: FontData_js_1.H, sizes: [.767], stretch: [0, 0x3D], HDW: exports.HDW3 }, 0x5B: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0x23A1, 0x23A2, 0x23A3], HDW: exports.HDW2 }, 0x5C: { dir: FontData_js_1.V, sizes: exports.VSIZES }, 0x5D: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0x23A4, 0x23A5, 0x23A6], HDW: exports.HDW2 }, 0x5E: DELIM2C6, 0x5F: DELIM2013, 0x7B: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0x23A7, 0x23AA, 0x23A9, 0x23A8], HDW: [.85, .349, .889] }, 0x7C: { dir: FontData_js_1.V, sizes: [1], stretch: [0, 0x2223], HDW: [.75, .25, .333] }, 0x7D: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0x23AB, 0x23AA, 0x23AD, 0x23AC], HDW: [.85, .349, .889] }, 0x7E: DELIM2DC, 0xAF: DELIMAF, 0x2C6: DELIM2C6, 0x2C9: DELIMAF, 0x2DC: DELIM2DC, 0x302: DELIM2C6, 0x303: DELIM2DC, 0x332: DELIM2013, 0x2013: DELIM2013, 0x2014: DELIM2013, 0x2015: DELIM2013, 0x2016: { dir: FontData_js_1.V, sizes: [.602, 1], schar: [0, 0x2225], stretch: [0, 0x2225], HDW: [.602, 0, .556] }, 0x2017: DELIM2013, 0x203E: DELIMAF, 0x20D7: DELIM2192, 0x2190: DELIM2190, 0x2191: { dir: FontData_js_1.V, sizes: [.888], stretch: [0x2191, 0x23D0], HDW: [.6, 0, .667] }, 0x2192: DELIM2192, 0x2193: { dir: FontData_js_1.V, sizes: [.888], stretch: [0, 0x23D0, 0x2193], HDW: [.6, 0, .667] }, 0x2194: DELIM2194, 0x2195: { dir: FontData_js_1.V, sizes: [1.044], stretch: [0x2191, 0x23D0, 0x2193], HDW: exports.HDW1 }, 0x219E: { dir: FontData_js_1.H, sizes: [1], stretch: [0x219E, 0x2212], HDW: exports.HDW3 }, 0x21A0: { dir: FontData_js_1.H, sizes: [1], stretch: [0, 0x2212, 0x21A0], HDW: exports.HDW3 }, 0x21A4: DELIM21A4, 0x21A5: { dir: FontData_js_1.V, stretch: [0x2191, 0x23D0, 0x22A5], HDW: exports.HDW1, min: 1.555 }, 0x21A6: DELIM21A6, 0x21A7: { dir: FontData_js_1.V, stretch: [0x22A4, 0x23D0, 0x2193], HDW: exports.HDW1, min: 1.555 }, 0x21B0: { dir: FontData_js_1.V, sizes: [.722], stretch: [0x21B0, 0x23D0], HDW: exports.HDW1 }, 0x21B1: { dir: FontData_js_1.V, sizes: [.722], stretch: [0x21B1, 0x23D0], HDW: exports.HDW1 }, 0x21BC: { dir: FontData_js_1.H, sizes: [1], stretch: [0x21BC, 0x2212], HDW: exports.HDW3 }, 0x21BD: { dir: FontData_js_1.H, sizes: [1], stretch: [0x21BD, 0x2212], HDW: exports.HDW3 }, 0x21BE: { dir: FontData_js_1.V, sizes: [.888], stretch: [0x21BE, 0x23D0], HDW: exports.HDW1 }, 0x21BF: { dir: FontData_js_1.V, sizes: [.888], stretch: [0x21BF, 0x23D0], HDW: exports.HDW1 }, 0x21C0: { dir: FontData_js_1.H, sizes: [1], stretch: [0, 0x2212, 0x21C0], HDW: exports.HDW3 }, 0x21C1: { dir: FontData_js_1.H, sizes: [1], stretch: [0, 0x2212, 0x21C1], HDW: exports.HDW3 }, 0x21C2: { dir: FontData_js_1.V, sizes: [.888], stretch: [0, 0x23D0, 0x21C2], HDW: exports.HDW1 }, 0x21C3: { dir: FontData_js_1.V, sizes: [.888], stretch: [0, 0x23D0, 0x21C3], HDW: exports.HDW1 }, 0x21D0: DELIM21D0, 0x21D1: { dir: FontData_js_1.V, sizes: [.888], stretch: [0x21D1, 0x2016], HDW: [.599, 0, .778] }, 0x21D2: DELIM21D2, 0x21D3: { dir: FontData_js_1.V, sizes: [.888], stretch: [0, 0x2016, 0x21D3], HDW: [.6, 0, .778] }, 0x21D4: DELIM21D4, 0x21D5: { dir: FontData_js_1.V, sizes: [1.044], stretch: [0x21D1, 0x2016, 0x21D3], HDW: [.75, .25, .778] }, 0x21DA: { dir: FontData_js_1.H, sizes: [1], stretch: [0x21DA, 0x2261], HDW: [.464, -0.036, .5] }, 0x21DB: { dir: FontData_js_1.H, sizes: [1], stretch: [0, 0x2261, 0x21DB], HDW: [.464, -0.036, .5] }, 0x2212: DELIM2212, 0x2215: DELIM2F, 0x221A: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0xE001, 0xE000, 0x23B7], HDW: [.85, .35, 1.056] }, 0x2223: DELIM2223, 0x2225: { dir: FontData_js_1.V, sizes: [1], stretch: [0, 0x2225], HDW: [.627, .015, .556] }, 0x2308: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0x23A1, 0x23A2], HDW: exports.HDW2 }, 0x2309: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0x23A4, 0x23A5], HDW: exports.HDW2 }, 0x230A: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0, 0x23A2, 0x23A3], HDW: exports.HDW2 }, 0x230B: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0, 0x23A5, 0x23A6], HDW: exports.HDW2 }, 0x2312: DELIM23DC, 0x2322: DELIM23DC, 0x2323: DELIM23DD, 0x2329: DELIM27E8, 0x232A: DELIM27E9, 0x23AA: { dir: FontData_js_1.V, sizes: [.32], stretch: [0x23AA, 0x23AA, 0x23AA], HDW: [.29, .015, .889] }, 0x23AF: DELIM2013, 0x23B0: { dir: FontData_js_1.V, sizes: [.989], stretch: [0x23A7, 0x23AA, 0x23AD], HDW: [.75, .25, .889] }, 0x23B1: { dir: FontData_js_1.V, sizes: [.989], stretch: [0x23AB, 0x23AA, 0x23A9], HDW: [.75, .25, .889] }, 0x23B4: { dir: FontData_js_1.H, stretch: [0x250C, 0x2212, 0x2510], HDW: exports.HDW3, min: 1 }, 0x23B5: { dir: FontData_js_1.H, stretch: [0x2514, 0x2212, 0x2518], HDW: exports.HDW3, min: 1 }, 0x23D0: { dir: FontData_js_1.V, sizes: [.602, 1], schar: [0, 0x2223], stretch: [0, 0x2223], HDW: [.602, 0, .333] }, 0x23DC: DELIM23DC, 0x23DD: DELIM23DD, 0x23DE: DELIM23DE, 0x23DF: DELIM23DF, 0x23E0: { dir: FontData_js_1.H, stretch: [0x2CA, 0x2C9, 0x2CB], HDW: [.59, -0.544, .5], min: 1 }, 0x23E1: { dir: FontData_js_1.H, stretch: [0x2CB, 0x2C9, 0x2CA], HDW: [.59, -0.544, .5], min: 1 }, 0x2500: DELIM2013, 0x2758: DELIM2223, 0x27E8: DELIM27E8, 0x27E9: DELIM27E9, 0x27EE: { dir: FontData_js_1.V, sizes: [.989], stretch: [0x23A7, 0x23AA, 0x23A9], HDW: [.75, .25, .889] }, 0x27EF: { dir: FontData_js_1.V, sizes: [.989], stretch: [0x23AB, 0x23AA, 0x23AD], HDW: [.75, .25, .889] }, 0x27F5: DELIM2190, 0x27F6: DELIM2192, 0x27F7: DELIM2194, 0x27F8: DELIM21D0, 0x27F9: DELIM21D2, 0x27FA: DELIM21D4, 0x27FB: DELIM21A4, 0x27FC: DELIM21A6, 0x27FD: DELIM2906, 0x27FE: DELIM2907, 0x2906: DELIM2906, 0x2907: DELIM2907, 0x294E: { dir: FontData_js_1.H, stretch: [0x21BC, 0x2212, 0x21C0], HDW: exports.HDW3, min: 2 }, 0x294F: { dir: FontData_js_1.V, stretch: [0x21BE, 0x23D0, 0x21C2], HDW: exports.HDW1, min: 1.776 }, 0x2950: { dir: FontData_js_1.H, stretch: [0x21BD, 0x2212, 0x21C1], HDW: exports.HDW3, min: 2 }, 0x2951: { dir: FontData_js_1.V, stretch: [0x21BF, 0x23D0, 0x21C3], HDW: exports.HDW1, min: .5 }, 0x295A: { dir: FontData_js_1.H, stretch: [0x21BC, 0x2212, 0x2223], HDW: exports.HDW3, min: 1.278 }, 0x295B: { dir: FontData_js_1.H, stretch: [0x2223, 0x2212, 0x21C0], HDW: exports.HDW3, min: 1.278 }, 0x295C: { dir: FontData_js_1.V, stretch: [0x21BE, 0x23D0, 0x22A5], HDW: exports.HDW1, min: 1.556 }, 0x295D: { dir: FontData_js_1.V, stretch: [0x22A4, 0x23D0, 0x21C2], HDW: exports.HDW1, min: 1.556 }, 0x295E: { dir: FontData_js_1.H, stretch: [0x21BD, 0x2212, 0x2223], HDW: exports.HDW3, min: 1.278 }, 0x295F: { dir: FontData_js_1.H, stretch: [0x2223, 0x2212, 0x21C1], HDW: exports.HDW3, min: 1.278 }, 0x2960: { dir: FontData_js_1.V, stretch: [0x21BF, 0x23D0, 0x22A5], HDW: exports.HDW1, min: 1.776 }, 0x2961: { dir: FontData_js_1.V, stretch: [0x22A4, 0x23D0, 0x21C3], HDW: exports.HDW1, min: 1.776 }, 0x3008: DELIM27E8, 0x3009: DELIM27E9, 0xFE37: DELIM23DE, 0xFE38: DELIM23DF, }; //# sourceMappingURL=delimiters.js.map /***/ }), /* 260 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MJContextMenu = void 0; var context_menu_js_1 = __webpack_require__(266); var item_submenu_js_1 = __webpack_require__(101); var MJContextMenu = (function (_super) { __extends(MJContextMenu, _super); function MJContextMenu() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.mathItem = null; _this.annotation = ''; _this.annotationTypes = {}; return _this; } MJContextMenu.prototype.post = function (x, y) { if (this.mathItem) { if (y !== undefined) { var input = this.mathItem.inputJax.name; var original = this.findID('Show', 'Original'); original.content = (input === 'MathML' ? 'Original MathML' : input + ' Commands'); var clipboard = this.findID('Copy', 'Original'); clipboard.content = original.content; var semantics = this.findID('Settings', 'semantics'); input === 'MathML' ? semantics.disable() : semantics.enable(); this.getAnnotationMenu(); this.dynamicSubmenus(); } _super.prototype.post.call(this, x, y); } }; MJContextMenu.prototype.unpost = function () { _super.prototype.unpost.call(this); this.mathItem = null; }; MJContextMenu.prototype.findID = function () { var e_1, _a; var names = []; for (var _i = 0; _i < arguments.length; _i++) { names[_i] = arguments[_i]; } var menu = this; var item = null; try { for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) { var name_1 = names_1_1.value; if (menu) { item = menu.find(name_1); menu = (item instanceof item_submenu_js_1.Submenu ? item.submenu : null); } else { item = null; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (names_1_1 && !names_1_1.done && (_a = names_1.return)) _a.call(names_1); } finally { if (e_1) throw e_1.error; } } return item; }; MJContextMenu.prototype.getAnnotationMenu = function () { var _this = this; var annotations = this.getAnnotations(this.getSemanticNode()); this.createAnnotationMenu('Show', annotations, function () { return _this.showAnnotation.post(); }); this.createAnnotationMenu('Copy', annotations, function () { return _this.copyAnnotation(); }); }; MJContextMenu.prototype.getSemanticNode = function () { var node = this.mathItem.root; while (node && !node.isKind('semantics')) { if (node.isToken || node.childNodes.length !== 1) return null; node = node.childNodes[0]; } return node; }; MJContextMenu.prototype.getAnnotations = function (node) { var e_2, _a; var annotations = []; if (!node) return annotations; try { for (var _b = __values(node.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child.isKind('annotation')) { var match = this.annotationMatch(child); if (match) { var value = child.childNodes.reduce(function (text, chars) { return text + chars.toString(); }, ''); annotations.push([match, value]); } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } return annotations; }; MJContextMenu.prototype.annotationMatch = function (child) { var e_3, _a; var encoding = child.attributes.get('encoding'); try { for (var _b = __values(Object.keys(this.annotationTypes)), _c = _b.next(); !_c.done; _c = _b.next()) { var type = _c.value; if (this.annotationTypes[type].indexOf(encoding) >= 0) { return type; } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } return null; }; MJContextMenu.prototype.createAnnotationMenu = function (id, annotations, action) { var _this = this; var menu = this.findID(id, 'Annotation'); menu.submenu = this.factory.get('subMenu')(this.factory, { items: annotations.map(function (_a) { var _b = __read(_a, 2), type = _b[0], value = _b[1]; return { type: 'command', id: type, content: type, action: function () { _this.annotation = value; action(); } }; }), id: 'annotations' }, menu); if (annotations.length) { menu.enable(); } else { menu.disable(); } }; MJContextMenu.prototype.dynamicSubmenus = function () { var e_4, _a; try { for (var _b = __values(MJContextMenu.DynamicSubmenus), _c = _b.next(); !_c.done; _c = _b.next()) { var _d = __read(_c.value, 2), id = _d[0], method = _d[1]; var menu = this.find(id); if (!menu) continue; var sub = method(this, menu); menu.submenu = sub; if (sub.items.length) { menu.enable(); } else { menu.disable(); } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } }; MJContextMenu.DynamicSubmenus = new Map(); return MJContextMenu; }(context_menu_js_1.ContextMenu)); exports.MJContextMenu = MJContextMenu; //# sourceMappingURL=MJContextMenu.js.map /***/ }), /* 261 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Menu = void 0; var mathjax_js_1 = __webpack_require__(27); var MathItem_js_1 = __webpack_require__(15); var global_js_1 = __webpack_require__(1); var Options_js_1 = __webpack_require__(6); var MJContextMenu_js_1 = __webpack_require__(260); var MmlVisitor_js_1 = __webpack_require__(262); var SelectableInfo_js_1 = __webpack_require__(263); var info_js_1 = __webpack_require__(102); var parse_js_1 = __webpack_require__(298); var item_rule_js_1 = __webpack_require__(269); var css_util_js_1 = __webpack_require__(309); var MathJax = global_js_1.MathJax; var isMac = (typeof window !== 'undefined' && window.navigator && window.navigator.platform.substr(0, 3) === 'Mac'); var Menu = (function () { function Menu(document, options) { var _this = this; if (options === void 0) { options = {}; } this.settings = null; this.defaultSettings = null; this.menu = null; this.MmlVisitor = new MmlVisitor_js_1.MmlVisitor(); this.jax = { CHTML: null, SVG: null }; this.rerenderStart = MathItem_js_1.STATE.LAST; this.about = new info_js_1.Info('MathJax v' + mathjax_js_1.mathjax.version, function () { var lines = []; lines.push('Input Jax: ' + _this.document.inputJax.map(function (jax) { return jax.name; }).join(', ')); lines.push('Output Jax: ' + _this.document.outputJax.name); lines.push('Document Type: ' + _this.document.kind); return lines.join('
'); }, 'www.mathjax.org'); this.help = new info_js_1.Info('MathJax Help', function () { return [ '

MathJax is a JavaScript library that allows page', ' authors to include mathematics within their web pages.', ' As a reader, you don\'t need to do anything to make that happen.

', '

Browsers: MathJax works with all modern browsers including', ' Edge, Firefox, Chrome, Safari, Opera, and most mobile browsers.

', '

Math Menu: MathJax adds a contextual menu to equations.', ' Right-click or CTRL-click on any mathematics to access the menu.

', '
', '

Show Math As: These options allow you to view the formula\'s', ' source markup (as MathML or in its original format).

', '

Copy to Clipboard: These options copy the formula\'s source markup,', ' as MathML or in its original format, to the clipboard', ' (in browsers that support that).

', '

Math Settings: These give you control over features of MathJax,', ' such the size of the mathematics, and the mechanism used', ' to display equations.

', '

Accessibility: MathJax can work with screen', ' readers to make mathematics accessible to the visually impaired.', ' Turn on the explorer to enable generation of speech strings', ' and the ability to investigate expressions interactively.

', '

Language: This menu lets you select the language used by MathJax', ' for its menus and warning messages. (Not yet implemented in version 3.)

', '
', '

Math Zoom: If you are having difficulty reading an', ' equation, MathJax can enlarge it to help you see it better, or', ' you can scall all the math on the page to make it larger.', ' Turn these features on in the Math Settings menu.

', '

Preferences: MathJax uses your browser\'s localStorage database', ' to save the preferences set via this menu locally in your browser. These', ' are not used to track you, and are not transferred or used remotely by', ' MathJax in any way.

' ].join('\n'); }, 'www.mathjax.org'); this.mathmlCode = new SelectableInfo_js_1.SelectableInfo('MathJax MathML Expression', function () { if (!_this.menu.mathItem) return ''; var text = _this.toMML(_this.menu.mathItem); return '
' + _this.formatSource(text) + '
'; }, ''); this.originalText = new SelectableInfo_js_1.SelectableInfo('MathJax Original Source', function () { if (!_this.menu.mathItem) return ''; var text = _this.menu.mathItem.math; return '
' + _this.formatSource(text) + '
'; }, ''); this.annotationText = new SelectableInfo_js_1.SelectableInfo('MathJax Annotation Text', function () { if (!_this.menu.mathItem) return ''; var text = _this.menu.annotation; return '
' + _this.formatSource(text) + '
'; }, ''); this.zoomBox = new info_js_1.Info('MathJax Zoomed Expression', function () { if (!_this.menu.mathItem) return ''; var element = _this.menu.mathItem.typesetRoot.cloneNode(true); element.style.margin = '0'; var scale = 1.25 * parseFloat(_this.settings.zscale); return '
' + element.outerHTML + '
'; }, ''); this.document = document; this.options = Options_js_1.userOptions(Options_js_1.defaultOptions({}, this.constructor.OPTIONS), options); this.initSettings(); this.mergeUserSettings(); this.initMenu(); } Object.defineProperty(Menu.prototype, "isLoading", { get: function () { return Menu.loading > 0; }, enumerable: false, configurable: true }); Object.defineProperty(Menu.prototype, "loadingPromise", { get: function () { if (!this.isLoading) { return Promise.resolve(); } if (!Menu._loadingPromise) { Menu._loadingPromise = new Promise(function (ok, failed) { Menu._loadingOK = ok; Menu._loadingFailed = failed; }); } return Menu._loadingPromise; }, enumerable: false, configurable: true }); Menu.prototype.initSettings = function () { this.settings = this.options.settings; this.jax = this.options.jax; var jax = this.document.outputJax; this.jax[jax.name] = jax; this.settings.renderer = jax.name; if (MathJax._.a11y && MathJax._.a11y.explorer) { Object.assign(this.settings, this.document.options.a11y); } this.settings.scale = jax.options.scale; this.defaultSettings = Object.assign({}, this.settings); }; Menu.prototype.initMenu = function () { var _this = this; var parser = new parse_js_1.Parser([['contextMenu', MJContextMenu_js_1.MJContextMenu.fromJson.bind(MJContextMenu_js_1.MJContextMenu)]]); this.menu = parser.parse({ type: 'contextMenu', id: 'MathJax_Menu', pool: [ this.variable('texHints'), this.variable('semantics'), this.variable('zoom'), this.variable('zscale'), this.variable('renderer', function (jax) { return _this.setRenderer(jax); }), this.variable('alt'), this.variable('cmd'), this.variable('ctrl'), this.variable('shift'), this.variable('scale', function (scale) { return _this.setScale(scale); }), this.variable('explorer', function (explore) { return _this.setExplorer(explore); }), this.a11yVar('highlight'), this.a11yVar('backgroundColor'), this.a11yVar('backgroundOpacity'), this.a11yVar('foregroundColor'), this.a11yVar('foregroundOpacity'), this.a11yVar('speech'), this.a11yVar('subtitles'), this.a11yVar('braille'), this.a11yVar('viewBraille'), this.a11yVar('locale'), this.a11yVar('speechRules'), this.a11yVar('magnification'), this.a11yVar('magnify'), this.a11yVar('treeColoring'), this.a11yVar('infoType'), this.a11yVar('infoRole'), this.a11yVar('infoPrefix'), this.variable('autocollapse'), this.variable('collapsible', function (collapse) { return _this.setCollapsible(collapse); }), this.variable('inTabOrder', function (tab) { return _this.setTabOrder(tab); }), this.variable('assistiveMml', function (mml) { return _this.setAssistiveMml(mml); }) ], items: [ this.submenu('Show', 'Show Math As', [ this.command('MathMLcode', 'MathML Code', function () { return _this.mathmlCode.post(); }), this.command('Original', 'Original Form', function () { return _this.originalText.post(); }), this.submenu('Annotation', 'Annotation') ]), this.submenu('Copy', 'Copy to Clipboard', [ this.command('MathMLcode', 'MathML Code', function () { return _this.copyMathML(); }), this.command('Original', 'Original Form', function () { return _this.copyOriginal(); }), this.submenu('Annotation', 'Annotation') ]), this.rule(), this.submenu('Settings', 'Math Settings', [ this.submenu('Renderer', 'Math Renderer', this.radioGroup('renderer', [['CHTML'], ['SVG']])), this.rule(), this.submenu('ZoomTrigger', 'Zoom Trigger', [ this.command('ZoomNow', 'Zoom Once Now', function () { return _this.zoom(null, '', _this.menu.mathItem); }), this.rule(), this.radioGroup('zoom', [ ['Click'], ['DoubleClick', 'Double-Click'], ['NoZoom', 'No Zoom'] ]), this.rule(), this.label('TriggerRequires', 'Trigger Requires:'), this.checkbox((isMac ? 'Option' : 'Alt'), (isMac ? 'Option' : 'Alt'), 'alt'), this.checkbox('Command', 'Command', 'cmd', { hidden: !isMac }), this.checkbox('Control', 'Control', 'ctrl', { hiddne: isMac }), this.checkbox('Shift', 'Shift', 'shift') ]), this.submenu('ZoomFactor', 'Zoom Factor', this.radioGroup('zscale', [ ['150%'], ['175%'], ['200%'], ['250%'], ['300%'], ['400%'] ])), this.rule(), this.command('Scale', 'Scale All Math...', function () { return _this.scaleAllMath(); }), this.rule(), this.checkbox('texHints', 'Add TeX hints to MathML', 'texHints'), this.checkbox('semantics', 'Add original as annotation', 'semantics'), this.rule(), this.command('Reset', 'Reset to defaults', function () { return _this.resetDefaults(); }) ]), this.submenu('Accessibility', 'Accessibility', [ this.checkbox('Activate', 'Activate', 'explorer'), this.submenu('Speech', 'Speech', [ this.checkbox('Speech', 'Speech Output', 'speech'), this.checkbox('Subtitles', 'Speech Subtities', 'subtitles'), this.checkbox('Braille', 'Braille Output', 'braille'), this.checkbox('View Braille', 'Braille Subtitles', 'viewBraille'), this.rule(), this.submenu('A11yLanguage', 'Language'), this.rule(), this.submenu('Mathspeak', 'Mathspeak Rules', this.radioGroup('speechRules', [ ['mathspeak-default', 'Verbose'], ['mathspeak-brief', 'Brief'], ['mathspeak-sbrief', 'Superbrief'] ])), this.submenu('Clearspeak', 'Clearspeak Rules', this.radioGroup('speechRules', [ ['clearspeak-default', 'Auto'] ])), this.submenu('ChromeVox', 'ChromeVox Rules', this.radioGroup('speechRules', [ ['default-default', 'Standard'], ['default-alternative', 'Alternative'] ])) ]), this.submenu('Highlight', 'Highlight', [ this.submenu('Background', 'Background', this.radioGroup('backgroundColor', [ ['Blue'], ['Red'], ['Green'], ['Yellow'], ['Cyan'], ['Magenta'], ['White'], ['Black'] ])), { 'type': 'slider', 'variable': 'backgroundOpacity', 'content': ' ' }, this.submenu('Foreground', 'Foreground', this.radioGroup('foregroundColor', [ ['Black'], ['White'], ['Magenta'], ['Cyan'], ['Yellow'], ['Green'], ['Red'], ['Blue'] ])), { 'type': 'slider', 'variable': 'foregroundOpacity', 'content': ' ' }, this.rule(), this.radioGroup('highlight', [ ['None'], ['Hover'], ['Flame'] ]), this.rule(), this.checkbox('TreeColoring', 'Tree Coloring', 'treeColoring') ]), this.submenu('Magnification', 'Magnification', [ this.radioGroup('magnification', [ ['None'], ['Keyboard'], ['Mouse'] ]), this.rule(), this.radioGroup('magnify', [ ['200%'], ['300%'], ['400%'], ['500%'] ]) ]), this.submenu('Semantic Info', 'Semantic Info', [ this.checkbox('Type', 'Type', 'infoType'), this.checkbox('Role', 'Role', 'infoRole'), this.checkbox('Prefix', 'Prefix', 'infoPrefix') ], true), this.rule(), this.checkbox('Collapsible', 'Collapsible Math', 'collapsible'), this.checkbox('AutoCollapse', 'Auto Collapse', 'autocollapse', { disabled: true }), this.rule(), this.checkbox('InTabOrder', 'Include in Tab Order', 'inTabOrder'), this.checkbox('AssistiveMml', 'Include Hidden MathML', 'assistiveMml') ]), this.submenu('Language', 'Language'), this.rule(), this.command('About', 'About MathJax', function () { return _this.about.post(); }), this.command('Help', 'MathJax Help', function () { return _this.help.post(); }) ] }); var menu = this.menu; this.about.attachMenu(menu); this.help.attachMenu(menu); this.originalText.attachMenu(menu); this.annotationText.attachMenu(menu); this.mathmlCode.attachMenu(menu); this.zoomBox.attachMenu(menu); this.checkLoadableItems(); this.enableExplorerItems(this.settings.explorer); menu.showAnnotation = this.annotationText; menu.copyAnnotation = this.copyAnnotation.bind(this); menu.annotationTypes = this.options.annotationTypes; css_util_js_1.CssStyles.addInfoStyles(this.document.document); css_util_js_1.CssStyles.addMenuStyles(this.document.document); }; Menu.prototype.checkLoadableItems = function () { var e_1, _a; if (MathJax && MathJax._ && MathJax.loader && MathJax.startup) { if (this.settings.collapsible && (!MathJax._.a11y || !MathJax._.a11y.complexity)) { this.loadA11y('complexity'); } if (this.settings.explorer && (!MathJax._.a11y || !MathJax._.a11y.explorer)) { this.loadA11y('explorer'); } if (this.settings.assistiveMml && (!MathJax._.a11y || !MathJax._.a11y['assistive-mml'])) { this.loadA11y('assistive-mml'); } } else { var menu = this.menu; try { for (var _b = __values(Object.keys(this.jax)), _c = _b.next(); !_c.done; _c = _b.next()) { var name_1 = _c.value; if (!this.jax[name_1]) { menu.findID('Settings', 'Renderer', name_1).disable(); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } menu.findID('Accessibility', 'Activate').disable(); menu.findID('Accessibility', 'AutoCollapse').disable(); menu.findID('Accessibility', 'Collapsible').disable(); } }; Menu.prototype.enableExplorerItems = function (enable) { var e_2, _a; var menu = this.menu.findID('Accessibility', 'Activate').menu; try { for (var _b = __values(menu.items.slice(1)), _c = _b.next(); !_c.done; _c = _b.next()) { var item = _c.value; if (item instanceof item_rule_js_1.Rule) break; enable ? item.enable() : item.disable(); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } }; Menu.prototype.mergeUserSettings = function () { try { var settings = localStorage.getItem(Menu.MENU_STORAGE); if (!settings) return; Object.assign(this.settings, JSON.parse(settings)); this.setA11y(this.settings); } catch (err) { console.log('MathJax localStorage error: ' + err.message); } }; Menu.prototype.saveUserSettings = function () { var e_3, _a; var settings = {}; try { for (var _b = __values(Object.keys(this.settings)), _c = _b.next(); !_c.done; _c = _b.next()) { var name_2 = _c.value; if (this.settings[name_2] !== this.defaultSettings[name_2]) { settings[name_2] = this.settings[name_2]; } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } try { if (Object.keys(settings).length) { localStorage.setItem(Menu.MENU_STORAGE, JSON.stringify(settings)); } else { localStorage.removeItem(Menu.MENU_STORAGE); } } catch (err) { console.log('MathJax localStorage error: ' + err.message); } }; Menu.prototype.setA11y = function (options) { if (MathJax._.a11y && MathJax._.a11y.explorer) { MathJax._.a11y.explorer_ts.setA11yOptions(this.document, options); } }; Menu.prototype.getA11y = function (option) { if (MathJax._.a11y && MathJax._.a11y.explorer) { return this.document.options.a11y[option]; } }; Menu.prototype.setScale = function (scale) { this.document.outputJax.options.scale = parseFloat(scale); this.document.rerender(); }; Menu.prototype.setRenderer = function (jax) { var _this = this; if (this.jax[jax]) { this.setOutputJax(jax); } else { var name_3 = jax.toLowerCase(); this.loadComponent('output/' + name_3, function () { var startup = MathJax.startup; if (name_3 in startup.constructors) { startup.useOutput(name_3, true); startup.output = startup.getOutputJax(); _this.jax[jax] = startup.output; _this.setOutputJax(jax); } }); } }; Menu.prototype.setOutputJax = function (jax) { this.jax[jax].setAdaptor(this.document.adaptor); this.document.outputJax = this.jax[jax]; this.rerender(); }; Menu.prototype.setTabOrder = function (tab) { this.menu.store.inTaborder(tab); }; Menu.prototype.setAssistiveMml = function (mml) { this.document.options.enableAssistiveMml = mml; if (!mml || (MathJax._.a11y && MathJax._.a11y['assistive-mml'])) { this.rerender(); } else { this.loadA11y('assistive-mml'); } }; Menu.prototype.setExplorer = function (explore) { this.enableExplorerItems(explore); this.document.options.enableExplorer = explore; if (!explore || (MathJax._.a11y && MathJax._.a11y.explorer)) { this.rerender(this.settings.collapsible ? MathItem_js_1.STATE.RERENDER : MathItem_js_1.STATE.COMPILED); } else { this.loadA11y('explorer'); } }; Menu.prototype.setCollapsible = function (collapse) { this.document.options.enableComplexity = collapse; if (!collapse || (MathJax._.a11y && MathJax._.a11y.complexity)) { this.rerender(MathItem_js_1.STATE.COMPILED); } else { this.loadA11y('complexity'); } }; Menu.prototype.scaleAllMath = function () { var scale = (parseFloat(this.settings.scale) * 100).toFixed(1).replace(/.0$/, ''); var percent = prompt('Scale all mathematics (compared to surrounding text) by', scale + '%'); if (percent) { if (percent.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)) { var scale_1 = parseFloat(percent) / 100; if (scale_1) { this.setScale(String(scale_1)); } else { alert('The scale should not be zero'); } } else { alert('The scale should be a percentage (e.g., 120%)'); } } }; Menu.prototype.resetDefaults = function () { var e_4, _a; Menu.loading++; var pool = this.menu.pool; var settings = this.defaultSettings; try { for (var _b = __values(Object.keys(this.settings)), _c = _b.next(); !_c.done; _c = _b.next()) { var name_4 = _c.value; var variable = pool.lookup(name_4); if (variable) { variable.setValue(settings[name_4]); var item = variable.items[0]; if (item) { item.executeCallbacks_(); } } else { this.settings[name_4] = settings[name_4]; } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } Menu.loading--; this.rerender(MathItem_js_1.STATE.COMPILED); }; Menu.prototype.checkComponent = function (name) { var promise = Menu.loadingPromises.get(name); if (promise) { mathjax_js_1.mathjax.retryAfter(promise); } }; Menu.prototype.loadComponent = function (name, callback) { if (Menu.loadingPromises.has(name)) return; var loader = MathJax.loader; if (!loader) return; Menu.loading++; var promise = loader.load(name).then(function () { Menu.loading--; Menu.loadingPromises.delete(name); callback(); if (Menu.loading === 0 && Menu._loadingPromise) { Menu._loadingPromise = null; Menu._loadingOK(); } }).catch(function (err) { if (Menu._loadingPromise) { Menu._loadingPromise = null; Menu._loadingFailed(err); } else { console.log(err); } }); Menu.loadingPromises.set(name, promise); }; Menu.prototype.loadA11y = function (component) { var _this = this; var noEnrich = !MathItem_js_1.STATE.ENRICHED; this.loadComponent('a11y/' + component, function () { var startup = MathJax.startup; mathjax_js_1.mathjax.handlers.unregister(startup.handler); startup.handler = startup.getHandler(); mathjax_js_1.mathjax.handlers.register(startup.handler); var document = _this.document; _this.document = startup.document = startup.getDocument(); _this.document.menu = _this; _this.transferMathList(document); _this.document.processed = document.processed; if (!Menu._loadingPromise) { _this.rerender(component === 'complexity' || noEnrich ? MathItem_js_1.STATE.COMPILED : MathItem_js_1.STATE.TYPESET); } }); }; Menu.prototype.transferMathList = function (document) { var e_5, _a; var MathItem = this.document.options.MathItem; try { for (var _b = __values(document.math), _c = _b.next(); !_c.done; _c = _b.next()) { var item = _c.value; var math = new MathItem(); Object.assign(math, item); this.document.math.push(math); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_5) throw e_5.error; } } }; Menu.prototype.formatSource = function (text) { return text.trim().replace(/&/g, '&').replace(//g, '>'); }; Menu.prototype.toMML = function (math) { return this.MmlVisitor.visitTree(math.root, math, { texHints: this.settings.texHints, semantics: (this.settings.semantics && math.inputJax.name !== 'MathML') }); }; Menu.prototype.zoom = function (event, type, math) { if (!event || this.isZoomEvent(event, type)) { this.menu.mathItem = math; if (event) { this.menu.post(event); } this.zoomBox.post(); } }; Menu.prototype.isZoomEvent = function (event, zoom) { return (this.settings.zoom === zoom && (!this.settings.alt || event.altKey) && (!this.settings.ctrl || event.ctrlKey) && (!this.settings.cmd || event.metaKey) && (!this.settings.shift || event.shiftKey)); }; Menu.prototype.rerender = function (start) { if (start === void 0) { start = MathItem_js_1.STATE.TYPESET; } this.rerenderStart = Math.min(start, this.rerenderStart); if (!Menu.loading) { this.document.rerender(this.rerenderStart); this.rerenderStart = MathItem_js_1.STATE.LAST; } }; Menu.prototype.copyMathML = function () { this.copyToClipboard(this.toMML(this.menu.mathItem)); }; Menu.prototype.copyOriginal = function () { this.copyToClipboard(this.menu.mathItem.math); }; Menu.prototype.copyAnnotation = function () { this.copyToClipboard(this.menu.annotation); }; Menu.prototype.copyToClipboard = function (text) { var input = document.createElement('textarea'); input.value = text; input.setAttribute('readonly', ''); input.style.cssText = 'height: 1px; width: 1px; padding: 1px; position: absolute; left: -10px'; document.body.appendChild(input); input.select(); try { document.execCommand('copy'); } catch (error) { alert('Can\'t copy to clipboard: ' + error.message); } document.body.removeChild(input); }; Menu.prototype.addMenu = function (math) { var _this = this; var element = math.typesetRoot; element.addEventListener('contextmenu', function () { return _this.menu.mathItem = math; }, true); element.addEventListener('keydown', function () { return _this.menu.mathItem = math; }, true); element.addEventListener('click', function (event) { return _this.zoom(event, 'Click', math); }, true); element.addEventListener('dblclick', function (event) { return _this.zoom(event, 'DoubleClick', math); }, true); this.menu.store.insert(element); }; Menu.prototype.clear = function () { this.menu.store.clear(); }; Menu.prototype.variable = function (name, action) { var _this = this; return { name: name, getter: function () { return _this.settings[name]; }, setter: function (value) { _this.settings[name] = value; action && action(value); _this.saveUserSettings(); } }; }; Menu.prototype.a11yVar = function (name) { var _this = this; return { name: name, getter: function () { return _this.getA11y(name); }, setter: function (value) { _this.settings[name] = value; var options = {}; options[name] = value; _this.setA11y(options); _this.saveUserSettings(); } }; }; Menu.prototype.submenu = function (id, content, entries, disabled) { var e_6, _a; if (entries === void 0) { entries = []; } if (disabled === void 0) { disabled = false; } var items = []; try { for (var entries_1 = __values(entries), entries_1_1 = entries_1.next(); !entries_1_1.done; entries_1_1 = entries_1.next()) { var entry = entries_1_1.value; if (Array.isArray(entry)) { items = items.concat(entry); } else { items.push(entry); } } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (entries_1_1 && !entries_1_1.done && (_a = entries_1.return)) _a.call(entries_1); } finally { if (e_6) throw e_6.error; } } return { type: 'submenu', id: id, content: content, menu: { items: items }, disabled: (items.length === 0) || disabled }; }; Menu.prototype.command = function (id, content, action, other) { if (other === void 0) { other = {}; } return Object.assign({ type: 'command', id: id, content: content, action: action }, other); }; Menu.prototype.checkbox = function (id, content, variable, other) { if (other === void 0) { other = {}; } return Object.assign({ type: 'checkbox', id: id, content: content, variable: variable }, other); }; Menu.prototype.radioGroup = function (variable, radios) { var _this = this; return radios.map(function (def) { return _this.radio(def[0], def[1] || def[0], variable); }); }; Menu.prototype.radio = function (id, content, variable, other) { if (other === void 0) { other = {}; } return Object.assign({ type: 'radio', id: id, content: content, variable: variable }, other); }; Menu.prototype.label = function (id, content) { return { type: 'label', id: id, content: content }; }; Menu.prototype.rule = function () { return { type: 'rule' }; }; Menu.MENU_STORAGE = 'MathJax-Menu-Settings'; Menu.OPTIONS = { settings: { texHints: true, semantics: false, zoom: 'NoZoom', zscale: '200%', renderer: 'CHTML', alt: false, cmd: false, ctrl: false, shift: false, scale: 1, autocollapse: false, collapsible: false, inTabOrder: true, assistiveMml: true, explorer: false }, jax: { CHTML: null, SVG: null }, annotationTypes: Options_js_1.expandable({ TeX: ['TeX', 'LaTeX', 'application/x-tex'], StarMath: ['StarMath 5.0'], Maple: ['Maple'], ContentMathML: ['MathML-Content', 'application/mathml-content+xml'], OpenMath: ['OpenMath'] }) }; Menu.loading = 0; Menu.loadingPromises = new Map(); Menu._loadingPromise = null; Menu._loadingOK = null; Menu._loadingFailed = null; return Menu; }()); exports.Menu = Menu; //# sourceMappingURL=Menu.js.map /***/ }), /* 262 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.MmlVisitor = void 0; var SerializedMmlVisitor_js_1 = __webpack_require__(80); var Options_js_1 = __webpack_require__(6); var MmlVisitor = (function (_super) { __extends(MmlVisitor, _super); function MmlVisitor() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.options = { texHints: true, semantics: false, }; _this.mathItem = null; return _this; } MmlVisitor.prototype.visitTree = function (node, math, options) { if (math === void 0) { math = null; } if (options === void 0) { options = {}; } this.mathItem = math; Options_js_1.userOptions(this.options, options); return this.visitNode(node, ''); }; MmlVisitor.prototype.visitTeXAtomNode = function (node, space) { if (this.options.texHints) { return _super.prototype.visitTeXAtomNode.call(this, node, space); } if (node.childNodes[0] && node.childNodes[0].childNodes.length === 1) { return this.visitNode(node.childNodes[0], space); } return space + '\n' + this.childNodeMml(node, space + ' ', '\n') + space + ''; }; MmlVisitor.prototype.visitMathNode = function (node, space) { if (!this.options.semantics || this.mathItem.inputJax.name !== 'TeX') { return _super.prototype.visitDefault.call(this, node, space); } var addRow = node.childNodes.length && node.childNodes[0].childNodes.length > 1; return space + '\n' + space + ' \n' + (addRow ? space + ' \n' : '') + this.childNodeMml(node, space + (addRow ? ' ' : ' '), '\n') + (addRow ? space + ' \n' : '') + space + ' ' + this.mathItem.math + '\n' + space + ' \n' + space + ''; }; return MmlVisitor; }(SerializedMmlVisitor_js_1.SerializedMmlVisitor)); exports.MmlVisitor = MmlVisitor; //# sourceMappingURL=MmlVisitor.js.map /***/ }), /* 263 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SelectableInfo = void 0; var info_js_1 = __webpack_require__(102); var html_classes_js_1 = __webpack_require__(10); var SelectableInfo = (function (_super) { __extends(SelectableInfo, _super); function SelectableInfo() { return _super !== null && _super.apply(this, arguments) || this; } SelectableInfo.prototype.addEvents = function (element) { var _this = this; element.addEventListener('keypress', function (event) { if (event.key === 'a' && (event.ctrlKey || event.metaKey)) { _this.selectAll(); _this.stop(event); } }); }; SelectableInfo.prototype.selectAll = function () { var selection = document.getSelection(); selection.selectAllChildren(this.html.querySelector('pre')); }; SelectableInfo.prototype.copyToClipboard = function () { this.selectAll(); try { document.execCommand('copy'); } catch (err) { alert('Can\'t copy to clipboard: ' + err.message); } document.getSelection().removeAllRanges(); }; SelectableInfo.prototype.generateHtml = function () { var _this = this; _super.prototype.generateHtml.call(this); var footer = this.html.querySelector('span.' + html_classes_js_1.HtmlClasses['INFOSIGNATURE']); var button = footer.appendChild(document.createElement('input')); button.type = 'button'; button.value = 'Copy to Clipboard'; button.addEventListener('click', function (_event) { return _this.copyToClipboard(); }); }; return SelectableInfo; }(info_js_1.Info)); exports.SelectableInfo = SelectableInfo; //# sourceMappingURL=SelectableInfo.js.map /***/ }), /* 264 */ /***/ (function(module, exports) { var g; // This works in non-strict mode g = (function() { return this; })(); try { // This works if eval is allowed (see CSP) g = g || new Function("return this")(); } catch (e) { // This works if the window reference is available if (typeof window === "object") g = window; } // g can still be undefined, but nothing to do about it... // We return undefined, instead of nothing here, so it's // easier to handle this case. if(!global) { ...} module.exports = g; /***/ }), /* 265 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Entities = __webpack_require__(20); Entities.add({ NJcy: '\u040A', Nacute: '\u0143', Ncaron: '\u0147', Ncedil: '\u0145', Ncy: '\u041D', NegativeMediumSpace: '\u200B', NegativeThickSpace: '\u200B', NegativeThinSpace: '\u200B', NegativeVeryThinSpace: '\u200B', NewLine: '\u000A', NoBreak: '\u2060', NonBreakingSpace: '\u00A0', Not: '\u2AEC', NotCongruent: '\u2262', NotCupCap: '\u226D', NotEqualTilde: '\u2242\u0338', NotGreaterFullEqual: '\u2267\u0338', NotGreaterGreater: '\u226B\u0338', NotGreaterLess: '\u2279', NotGreaterSlantEqual: '\u2A7E\u0338', NotGreaterTilde: '\u2275', NotHumpDownHump: '\u224E\u0338', NotHumpEqual: '\u224F\u0338', NotLeftTriangleBar: '\u29CF\u0338', NotLessGreater: '\u2278', NotLessLess: '\u226A\u0338', NotLessSlantEqual: '\u2A7D\u0338', NotLessTilde: '\u2274', NotNestedGreaterGreater: '\u2AA2\u0338', NotNestedLessLess: '\u2AA1\u0338', NotPrecedesEqual: '\u2AAF\u0338', NotReverseElement: '\u220C', NotRightTriangleBar: '\u29D0\u0338', NotSquareSubset: '\u228F\u0338', NotSquareSubsetEqual: '\u22E2', NotSquareSuperset: '\u2290\u0338', NotSquareSupersetEqual: '\u22E3', NotSubset: '\u2282\u20D2', NotSucceedsEqual: '\u2AB0\u0338', NotSucceedsTilde: '\u227F\u0338', NotSuperset: '\u2283\u20D2', NotTildeEqual: '\u2244', NotTildeFullEqual: '\u2247', NotTildeTilde: '\u2249', Ntilde: '\u00D1', Nu: '\u039D', nGg: '\u22D9\u0338', nGt: '\u226B\u20D2', nGtv: '\u226B\u0338', nLl: '\u22D8\u0338', nLt: '\u226A\u20D2', nLtv: '\u226A\u0338', nabla: '\u2207', nacute: '\u0144', nang: '\u2220\u20D2', nap: '\u2249', napE: '\u2A70\u0338', napid: '\u224B\u0338', napos: '\u0149', napprox: '\u2249', natural: '\u266E', naturals: '\u2115', nbsp: '\u00A0', nbump: '\u224E\u0338', nbumpe: '\u224F\u0338', ncap: '\u2A43', ncaron: '\u0148', ncedil: '\u0146', ncong: '\u2247', ncongdot: '\u2A6D\u0338', ncup: '\u2A42', ncy: '\u043D', ndash: '\u2013', ne: '\u2260', neArr: '\u21D7', nearhk: '\u2924', nearrow: '\u2197', nedot: '\u2250\u0338', nequiv: '\u2262', nesear: '\u2928', nesim: '\u2242\u0338', nexist: '\u2204', nexists: '\u2204', ngE: '\u2267\u0338', nge: '\u2271', ngeq: '\u2271', ngeqq: '\u2267\u0338', ngeqslant: '\u2A7E\u0338', nges: '\u2A7E\u0338', ngsim: '\u2275', ngt: '\u226F', ngtr: '\u226F', nhArr: '\u21CE', nhpar: '\u2AF2', ni: '\u220B', nis: '\u22FC', nisd: '\u22FA', niv: '\u220B', njcy: '\u045A', nlArr: '\u21CD', nlE: '\u2266\u0338', nldr: '\u2025', nle: '\u2270', nleftarrow: '\u219A', nleftrightarrow: '\u21AE', nleq: '\u2270', nleqq: '\u2266\u0338', nleqslant: '\u2A7D\u0338', nles: '\u2A7D\u0338', nless: '\u226E', nlsim: '\u2274', nlt: '\u226E', nltri: '\u22EA', nltrie: '\u22EC', nmid: '\u2224', notin: '\u2209', notinE: '\u22F9\u0338', notindot: '\u22F5\u0338', notinva: '\u2209', notinvb: '\u22F7', notinvc: '\u22F6', notni: '\u220C', notniva: '\u220C', notnivb: '\u22FE', notnivc: '\u22FD', npar: '\u2226', nparallel: '\u2226', nparsl: '\u2AFD\u20E5', npart: '\u2202\u0338', npolint: '\u2A14', npr: '\u2280', nprcue: '\u22E0', npre: '\u2AAF\u0338', nprec: '\u2280', npreceq: '\u2AAF\u0338', nrArr: '\u21CF', nrarrc: '\u2933\u0338', nrarrw: '\u219D\u0338', nrightarrow: '\u219B', nrtri: '\u22EB', nrtrie: '\u22ED', nsc: '\u2281', nsccue: '\u22E1', nsce: '\u2AB0\u0338', nshortmid: '\u2224', nshortparallel: '\u2226', nsim: '\u2241', nsime: '\u2244', nsimeq: '\u2244', nsmid: '\u2224', nspar: '\u2226', nsqsube: '\u22E2', nsqsupe: '\u22E3', nsub: '\u2284', nsubE: '\u2AC5\u0338', nsube: '\u2288', nsubset: '\u2282\u20D2', nsubseteq: '\u2288', nsubseteqq: '\u2AC5\u0338', nsucc: '\u2281', nsucceq: '\u2AB0\u0338', nsup: '\u2285', nsupE: '\u2AC6\u0338', nsupe: '\u2289', nsupset: '\u2283\u20D2', nsupseteq: '\u2289', nsupseteqq: '\u2AC6\u0338', ntgl: '\u2279', ntilde: '\u00F1', ntlg: '\u2278', ntriangleleft: '\u22EA', ntrianglelefteq: '\u22EC', ntriangleright: '\u22EB', ntrianglerighteq: '\u22ED', num: '\u0023', numero: '\u2116', numsp: '\u2007', nvHarr: '\u2904', nvap: '\u224D\u20D2', nvge: '\u2265\u20D2', nvgt: '\u003E\u20D2', nvinfin: '\u29DE', nvlArr: '\u2902', nvle: '\u2264\u20D2', nvlt: '\u003C\u20D2', nvltrie: '\u22B4\u20D2', nvrArr: '\u2903', nvrtrie: '\u22B5\u20D2', nvsim: '\u223C\u20D2', nwArr: '\u21D6', nwarhk: '\u2923', nwarrow: '\u2196', nwnear: '\u2927' }, 'n'); //# sourceMappingURL=n.js.map /***/ }), /* 266 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.ContextMenu = void 0; var abstract_menu_js_1 = __webpack_require__(99); var html_classes_js_1 = __webpack_require__(10); var menu_store_js_1 = __webpack_require__(295); var variable_pool_js_1 = __webpack_require__(296); var ContextMenu = (function (_super) { __extends(ContextMenu, _super); function ContextMenu(factory) { var _this = _super.call(this) || this; _this.factory = factory; _this.id = ''; _this.moving = false; _this._store = new menu_store_js_1.MenuStore(_this); _this.widgets = []; _this.variablePool = new variable_pool_js_1.VariablePool(); return _this; } ContextMenu.fromJson = function (factory, _a) { var pool = _a.pool, items = _a.items, _b = _a.id, id = _b === void 0 ? '' : _b; var ctxtMenu = new this(factory); ctxtMenu.id = id; var varParser = factory.get('variable'); pool.forEach(function (x) { return varParser(factory, x, ctxtMenu.pool); }); var itemList = factory.get('items')(factory, items, ctxtMenu); ctxtMenu.items = itemList; return ctxtMenu; }; ContextMenu.prototype.generateHtml = function () { if (this.isPosted()) { this.unpost(); } _super.prototype.generateHtml.call(this); this._frame = document.createElement('div'); this._frame.classList.add(html_classes_js_1.HtmlClasses['MENUFRAME']); var styleString = 'left: 0px; top: 0px; z-index: 200; width: 100%; ' + 'height: 100%; border: 0px; padding: 0px; margin: 0px;'; this._frame.setAttribute('style', 'position: absolute; ' + styleString); var innerDiv = document.createElement('div'); innerDiv.setAttribute('style', 'position: fixed; ' + styleString); this._frame.appendChild(innerDiv); innerDiv.addEventListener('mousedown', function (event) { this.unpost(); this.unpostWidgets(); this.stop(event); }.bind(this)); }; ContextMenu.prototype.display = function () { document.body.appendChild(this.frame); this.frame.appendChild(this.html); this.focus(); }; ContextMenu.prototype.escape = function (_event) { this.unpost(); this.unpostWidgets(); }; ContextMenu.prototype.unpost = function () { _super.prototype.unpost.call(this); if (this.widgets.length > 0) { return; } this.frame.parentNode.removeChild(this.frame); var store = this.store; if (!this.moving) { store.insertTaborder(); } store.active.focus(); }; ContextMenu.prototype.left = function (_event) { this.move_(this.store.previous()); }; ContextMenu.prototype.right = function (_event) { this.move_(this.store.next()); }; Object.defineProperty(ContextMenu.prototype, "frame", { get: function () { return this._frame; }, enumerable: false, configurable: true }); Object.defineProperty(ContextMenu.prototype, "store", { get: function () { return this._store; }, enumerable: false, configurable: true }); ContextMenu.prototype.post = function (numberOrEvent, isY) { if (typeof (isY) !== 'undefined') { if (!this.moving) { this.store.removeTaborder(); } _super.prototype.post.call(this, numberOrEvent, isY); return; } var event = numberOrEvent; var node; if (event instanceof Event) { node = event.target; this.stop(event); } else { node = event; } var x; var y; if (event instanceof MouseEvent) { x = event.pageX, y = event.pageY; if (!x && !y && event.clientX) { x = event.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; y = event.clientY + document.body.scrollTop + document.documentElement.scrollTop; } } if (!x && !y && node) { var offsetX = window.pageXOffset || document.documentElement.scrollLeft; var offsetY = window.pageYOffset || document.documentElement.scrollTop; var rect = node.getBoundingClientRect(); x = (rect.right + rect.left) / 2 + offsetX; y = (rect.bottom + rect.top) / 2 + offsetY; } this.store.active = node; this.anchor = this.store.active; var menu = this.html; var margin = 5; if (x + menu.offsetWidth > document.body.offsetWidth - margin) { x = document.body.offsetWidth - menu.offsetWidth - margin; } this.post(x, y); }; ContextMenu.prototype.registerWidget = function (widget) { this.widgets.push(widget); }; ContextMenu.prototype.unregisterWidget = function (widget) { var index = this.widgets.indexOf(widget); if (index > -1) { this.widgets.splice(index, 1); } if (this.widgets.length === 0) { this.unpost(); } }; ContextMenu.prototype.unpostWidgets = function () { this.widgets.forEach(function (x) { return x.unpost(); }); }; ContextMenu.prototype.toJson = function () { return { type: '' }; }; ContextMenu.prototype.move_ = function (next) { if (this.anchor && next !== this.anchor) { this.moving = true; this.unpost(); this.post(next); this.moving = false; } }; return ContextMenu; }(abstract_menu_js_1.AbstractMenu)); exports.ContextMenu = ContextMenu; //# sourceMappingURL=context_menu.js.map /***/ }), /* 267 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.MenuElement = void 0; var abstract_navigatable_js_1 = __webpack_require__(293); var MenuElement = (function (_super) { __extends(MenuElement, _super); function MenuElement() { return _super !== null && _super.apply(this, arguments) || this; } MenuElement.prototype.addAttributes = function (attributes) { for (var attr in attributes) { this.html.setAttribute(attr, attributes[attr]); } }; Object.defineProperty(MenuElement.prototype, "html", { get: function () { if (!this._html) { this.generateHtml(); } return this._html; }, set: function (html) { this._html = html; this.addEvents(html); }, enumerable: false, configurable: true }); MenuElement.prototype.generateHtml = function () { var html = document.createElement('div'); html.classList.add(this.className); html.setAttribute('role', this.role); this.html = html; }; MenuElement.prototype.focus = function () { var html = this.html; html.setAttribute('tabindex', '0'); html.focus(); }; MenuElement.prototype.unfocus = function () { var html = this.html; if (html.hasAttribute('tabindex')) { html.setAttribute('tabindex', '-1'); } try { html.blur(); } catch (e) { } html.blur(); }; return MenuElement; }(abstract_navigatable_js_1.AbstractNavigatable)); exports.MenuElement = MenuElement; //# sourceMappingURL=menu_element.js.map /***/ }), /* 268 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractEntry = void 0; var menu_element_js_1 = __webpack_require__(267); var html_classes_js_1 = __webpack_require__(10); var AbstractEntry = (function (_super) { __extends(AbstractEntry, _super); function AbstractEntry(_menu, _type) { var _this = _super.call(this) || this; _this._menu = _menu; _this._type = _type; _this.className = html_classes_js_1.HtmlClasses['MENUITEM']; _this.role = 'menuitem'; _this.hidden = false; return _this; } Object.defineProperty(AbstractEntry.prototype, "menu", { get: function () { return this._menu; }, set: function (menu) { this._menu = menu; }, enumerable: false, configurable: true }); Object.defineProperty(AbstractEntry.prototype, "type", { get: function () { return this._type; }, enumerable: false, configurable: true }); AbstractEntry.prototype.hide = function () { this.hidden = true; this.menu.generateMenu(); }; AbstractEntry.prototype.show = function () { this.hidden = false; this.menu.generateMenu(); }; AbstractEntry.prototype.isHidden = function () { return this.hidden; }; return AbstractEntry; }(menu_element_js_1.MenuElement)); exports.AbstractEntry = AbstractEntry; //# sourceMappingURL=abstract_entry.js.map /***/ }), /* 269 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Rule = void 0; var abstract_entry_js_1 = __webpack_require__(268); var html_classes_js_1 = __webpack_require__(10); var Rule = (function (_super) { __extends(Rule, _super); function Rule(menu) { var _this = _super.call(this, menu, 'rule') || this; _this.className = html_classes_js_1.HtmlClasses['MENUITEM']; _this.role = 'separator'; return _this; } Rule.fromJson = function (_factory, _a, menu) { return new this(menu); }; Rule.prototype.generateHtml = function () { _super.prototype.generateHtml.call(this); var html = this.html; html.classList.add(html_classes_js_1.HtmlClasses['MENURULE']); html.setAttribute('aria-orientation', 'vertical'); }; Rule.prototype.addEvents = function (_element) { }; Rule.prototype.toJson = function () { return { type: 'rule' }; }; return Rule; }(abstract_entry_js_1.AbstractEntry)); exports.Rule = Rule; //# sourceMappingURL=item_rule.js.map /***/ }), /* 270 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global) { var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CONFIG = exports.MathJax = exports.Startup = void 0; var global_js_1 = __webpack_require__(1); var PrioritizedList_js_1 = __webpack_require__(22); var Startup; (function (Startup) { var extensions = new PrioritizedList_js_1.PrioritizedList(); var visitor; var mathjax; Startup.constructors = {}; Startup.input = []; Startup.output = null; Startup.handler = null; Startup.adaptor = null; Startup.elements = null; Startup.document = null; Startup.promise = new Promise(function (resolve, reject) { Startup.promiseResolve = resolve; Startup.promiseReject = reject; }); Startup.pagePromise = new Promise(function (resolve, _reject) { var doc = global.document; if (!doc || !doc.readyState || doc.readyState === 'complete' || doc.readyState === 'interactive') { resolve(); } else { var listener = function () { return resolve(); }; doc.defaultView.addEventListener('load', listener, true); doc.defaultView.addEventListener('DOMContentLoaded', listener, true); } }); function toMML(node) { return visitor.visitTree(node, Startup.document); } Startup.toMML = toMML; function registerConstructor(name, constructor) { Startup.constructors[name] = constructor; } Startup.registerConstructor = registerConstructor; function useHandler(name, force) { if (force === void 0) { force = false; } if (!exports.CONFIG.handler || force) { exports.CONFIG.handler = name; } } Startup.useHandler = useHandler; function useAdaptor(name, force) { if (force === void 0) { force = false; } if (!exports.CONFIG.adaptor || force) { exports.CONFIG.adaptor = name; } } Startup.useAdaptor = useAdaptor; function useInput(name, force) { if (force === void 0) { force = false; } if (!inputSpecified || force) { exports.CONFIG.input.push(name); } } Startup.useInput = useInput; function useOutput(name, force) { if (force === void 0) { force = false; } if (!exports.CONFIG.output || force) { exports.CONFIG.output = name; } } Startup.useOutput = useOutput; function extendHandler(extend, priority) { if (priority === void 0) { priority = 10; } extensions.add(extend, priority); } Startup.extendHandler = extendHandler; function defaultReady() { getComponents(); makeMethods(); Startup.pagePromise .then(function () { return exports.CONFIG.pageReady(); }) .then(function () { return Startup.promiseResolve(); }) .catch(function (err) { return Startup.promiseReject(err); }); } Startup.defaultReady = defaultReady; function defaultPageReady() { return (exports.CONFIG.typeset && exports.MathJax.typesetPromise ? exports.MathJax.typesetPromise(exports.CONFIG.elements) : Promise.resolve()); } Startup.defaultPageReady = defaultPageReady; function getComponents() { visitor = new exports.MathJax._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor(); mathjax = exports.MathJax._.mathjax.mathjax; Startup.input = getInputJax(); Startup.output = getOutputJax(); Startup.adaptor = getAdaptor(); if (Startup.handler) { mathjax.handlers.unregister(Startup.handler); } Startup.handler = getHandler(); if (Startup.handler) { mathjax.handlers.register(Startup.handler); Startup.document = getDocument(); } } Startup.getComponents = getComponents; function makeMethods() { var e_1, _a; if (Startup.input && Startup.output) { makeTypesetMethods(); } var oname = (Startup.output ? Startup.output.name.toLowerCase() : ''); try { for (var input_1 = __values(Startup.input), input_1_1 = input_1.next(); !input_1_1.done; input_1_1 = input_1.next()) { var jax = input_1_1.value; var iname = jax.name.toLowerCase(); makeMmlMethods(iname, jax); makeResetMethod(iname, jax); if (Startup.output) { makeOutputMethods(iname, oname, jax); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (input_1_1 && !input_1_1.done && (_a = input_1.return)) _a.call(input_1); } finally { if (e_1) throw e_1.error; } } } Startup.makeMethods = makeMethods; function makeTypesetMethods() { exports.MathJax.typeset = function (elements) { if (elements === void 0) { elements = null; } Startup.document.options.elements = elements; Startup.document.reset(); Startup.document.render(); }; exports.MathJax.typesetPromise = function (elements) { if (elements === void 0) { elements = null; } Startup.document.options.elements = elements; Startup.document.reset(); return mathjax.handleRetriesFor(function () { Startup.document.render(); }); }; exports.MathJax.typesetClear = function (elements) { if (elements === void 0) { elements = null; } if (elements) { Startup.document.clearMathItemsWithin(elements); } else { Startup.document.clear(); } }; } Startup.makeTypesetMethods = makeTypesetMethods; function makeOutputMethods(iname, oname, input) { var name = iname + '2' + oname; exports.MathJax[name] = function (math, options) { if (options === void 0) { options = {}; } options.format = input.name; return Startup.document.convert(math, options); }; exports.MathJax[name + 'Promise'] = function (math, options) { if (options === void 0) { options = {}; } options.format = input.name; return mathjax.handleRetriesFor(function () { return Startup.document.convert(math, options); }); }; exports.MathJax[oname + 'Stylesheet'] = function () { return Startup.output.styleSheet(Startup.document); }; if ('getMetricsFor' in Startup.output) { exports.MathJax.getMetricsFor = function (node, display) { return Startup.output.getMetricsFor(node, display); }; } } Startup.makeOutputMethods = makeOutputMethods; function makeMmlMethods(name, input) { var STATE = exports.MathJax._.core.MathItem.STATE; exports.MathJax[name + '2mml'] = function (math, options) { if (options === void 0) { options = {}; } options.end = STATE.CONVERT; options.format = input.name; return toMML(Startup.document.convert(math, options)); }; exports.MathJax[name + '2mmlPromise'] = function (math, options) { if (options === void 0) { options = {}; } options.end = STATE.CONVERT; options.format = input.name; return mathjax.handleRetriesFor(function () { return toMML(Startup.document.convert(math, options)); }); }; } Startup.makeMmlMethods = makeMmlMethods; function makeResetMethod(name, input) { if (name === 'tex') { exports.MathJax.texReset = function (start) { if (start === void 0) { start = 0; } return input.parseOptions.tags.reset(start); }; } } Startup.makeResetMethod = makeResetMethod; function getInputJax() { var e_2, _a; var jax = []; try { for (var _b = __values(exports.CONFIG.input), _c = _b.next(); !_c.done; _c = _b.next()) { var name_1 = _c.value; var inputClass = Startup.constructors[name_1]; if (inputClass) { jax.push(new inputClass(exports.MathJax.config[name_1])); } else { throw Error('Input Jax "' + name_1 + '" is not defined (has it been loaded?)'); } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } return jax; } Startup.getInputJax = getInputJax; function getOutputJax() { var name = exports.CONFIG.output; if (!name) return null; var outputClass = Startup.constructors[name]; if (!outputClass) { throw Error('Output Jax "' + name + '" is not defined (has it been loaded?)'); } return new outputClass(exports.MathJax.config[name]); } Startup.getOutputJax = getOutputJax; function getAdaptor() { var name = exports.CONFIG.adaptor; if (!name || name === 'none') return null; var adaptor = Startup.constructors[name]; if (!adaptor) { throw Error('DOMAdaptor "' + name + '" is not defined (has it been loaded?)'); } return adaptor(exports.MathJax.config[name]); } Startup.getAdaptor = getAdaptor; function getHandler() { var e_3, _a; var name = exports.CONFIG.handler; if (!name || name === 'none' || !Startup.adaptor) return null; var handlerClass = Startup.constructors[name]; if (!handlerClass) { throw Error('Handler "' + name + '" is not defined (has it been loaded?)'); } var handler = new handlerClass(Startup.adaptor, 5); try { for (var extensions_1 = __values(extensions), extensions_1_1 = extensions_1.next(); !extensions_1_1.done; extensions_1_1 = extensions_1.next()) { var extend = extensions_1_1.value; handler = extend.item(handler); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (extensions_1_1 && !extensions_1_1.done && (_a = extensions_1.return)) _a.call(extensions_1); } finally { if (e_3) throw e_3.error; } } return handler; } Startup.getHandler = getHandler; function getDocument(root) { if (root === void 0) { root = null; } return mathjax.document(root || exports.CONFIG.document, __assign(__assign({}, exports.MathJax.config.options), { InputJax: Startup.input, OutputJax: Startup.output })); } Startup.getDocument = getDocument; })(Startup = exports.Startup || (exports.Startup = {})); exports.MathJax = global_js_1.MathJax; if (typeof exports.MathJax._.startup === 'undefined') { global_js_1.combineDefaults(exports.MathJax.config, 'startup', { input: [], output: '', handler: null, adaptor: null, document: (typeof document === 'undefined' ? '' : document), elements: null, typeset: true, ready: Startup.defaultReady.bind(Startup), pageReady: Startup.defaultPageReady.bind(Startup) }); global_js_1.combineWithMathJax({ startup: Startup, options: {} }); } exports.CONFIG = exports.MathJax.config.startup; var inputSpecified = exports.CONFIG.input.length !== 0; //# sourceMappingURL=startup.js.map /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(264))) /***/ }), /* 271 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MathMLVisitor = void 0; var MmlVisitor_js_1 = __webpack_require__(79); var MathMLVisitor = (function (_super) { __extends(MathMLVisitor, _super); function MathMLVisitor() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.document = null; return _this; } MathMLVisitor.prototype.visitTree = function (node, document) { this.document = document; var root = document.createElement('top'); this.visitNode(node, root); this.document = null; return root.firstChild; }; MathMLVisitor.prototype.visitTextNode = function (node, parent) { parent.appendChild(this.document.createTextNode(node.getText())); }; MathMLVisitor.prototype.visitXMLNode = function (node, parent) { parent.appendChild(node.getXML().cloneNode(true)); }; MathMLVisitor.prototype.visitInferredMrowNode = function (node, parent) { var e_1, _a; try { for (var _b = __values(node.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; this.visitNode(child, parent); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; MathMLVisitor.prototype.visitDefault = function (node, parent) { var e_2, _a; var mml = this.document.createElement(node.kind); this.addAttributes(node, mml); try { for (var _b = __values(node.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; this.visitNode(child, mml); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } parent.appendChild(mml); }; MathMLVisitor.prototype.addAttributes = function (node, mml) { var e_3, _a; var attributes = node.attributes; var names = attributes.getExplicitNames(); try { for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) { var name_1 = names_1_1.value; mml.setAttribute(name_1, attributes.getExplicit(name_1).toString()); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (names_1_1 && !names_1_1.done && (_a = names_1.return)) _a.call(names_1); } finally { if (e_3) throw e_3.error; } } }; return MathMLVisitor; }(MmlVisitor_js_1.MmlVisitor)); exports.MathMLVisitor = MathMLVisitor; //# sourceMappingURL=MathMLVisitor.js.map /***/ }), /* 272 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RegisterHTMLHandler = void 0; var mathjax_js_1 = __webpack_require__(27); var HTMLHandler_js_1 = __webpack_require__(49); function RegisterHTMLHandler(adaptor) { var handler = new HTMLHandler_js_1.HTMLHandler(adaptor); mathjax_js_1.mathjax.handlers.register(handler); return handler; } exports.RegisterHTMLHandler = RegisterHTMLHandler; //# sourceMappingURL=html.js.map /***/ }), /* 273 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AutoloadConfiguration = void 0; var Configuration_js_1 = __webpack_require__(2); var SymbolMap_js_1 = __webpack_require__(3); var Symbol_js_1 = __webpack_require__(28); var RequireConfiguration_js_1 = __webpack_require__(88); var package_js_1 = __webpack_require__(25); var Options_js_1 = __webpack_require__(6); function Autoload(parser, name, extension, isMacro) { var e_1, _a, e_2, _b; if (package_js_1.Package.packages.has(parser.options.require.prefix + extension)) { var def = parser.options.autoload[extension]; var _c = __read((def.length === 2 && Array.isArray(def[0]) ? def : [def, []]), 2), macros = _c[0], envs = _c[1]; try { for (var macros_1 = __values(macros), macros_1_1 = macros_1.next(); !macros_1_1.done; macros_1_1 = macros_1.next()) { var macro = macros_1_1.value; AutoloadMacros.remove(macro); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (macros_1_1 && !macros_1_1.done && (_a = macros_1.return)) _a.call(macros_1); } finally { if (e_1) throw e_1.error; } } try { for (var envs_1 = __values(envs), envs_1_1 = envs_1.next(); !envs_1_1.done; envs_1_1 = envs_1.next()) { var env = envs_1_1.value; AutoloadEnvironments.remove(env); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (envs_1_1 && !envs_1_1.done && (_b = envs_1.return)) _b.call(envs_1); } finally { if (e_2) throw e_2.error; } } parser.string = (isMacro ? name : '\\begin{' + name.slice(1) + '}') + parser.string.slice(parser.i); parser.i = 0; } RequireConfiguration_js_1.RequireLoad(parser, extension); } function initAutoload(config) { if (!config.options.require) { Options_js_1.defaultOptions(config.options, RequireConfiguration_js_1.RequireConfiguration.options); } } function configAutoload(config, jax) { var e_3, _a, e_4, _b, e_5, _c; var parser = jax.parseOptions; var macros = parser.handlers.get('macro'); var environments = parser.handlers.get('environment'); var autoload = parser.options.autoload; parser.packageData.set('autoload', { Autoload: Autoload }); try { for (var _d = __values(Object.keys(autoload)), _e = _d.next(); !_e.done; _e = _d.next()) { var extension = _e.value; var def = autoload[extension]; var _f = __read((def.length === 2 && Array.isArray(def[0]) ? def : [def, []]), 2), macs = _f[0], envs = _f[1]; try { for (var macs_1 = (e_4 = void 0, __values(macs)), macs_1_1 = macs_1.next(); !macs_1_1.done; macs_1_1 = macs_1.next()) { var name_1 = macs_1_1.value; if (!macros.lookup(name_1) || name_1 === 'color') { AutoloadMacros.add(name_1, new Symbol_js_1.Macro(name_1, Autoload, [extension, true])); } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (macs_1_1 && !macs_1_1.done && (_b = macs_1.return)) _b.call(macs_1); } finally { if (e_4) throw e_4.error; } } try { for (var envs_2 = (e_5 = void 0, __values(envs)), envs_2_1 = envs_2.next(); !envs_2_1.done; envs_2_1 = envs_2.next()) { var name_2 = envs_2_1.value; if (!environments.lookup(name_2)) { AutoloadEnvironments.add(name_2, new Symbol_js_1.Macro(name_2, Autoload, [extension, false])); } } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (envs_2_1 && !envs_2_1.done && (_c = envs_2.return)) _c.call(envs_2); } finally { if (e_5) throw e_5.error; } } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_3) throw e_3.error; } } if (!parser.packageData.get('require')) { RequireConfiguration_js_1.RequireConfiguration.config(config, jax); } } var AutoloadMacros = new SymbolMap_js_1.CommandMap('autoload-macros', {}, {}); var AutoloadEnvironments = new SymbolMap_js_1.CommandMap('autoload-environments', {}, {}); exports.AutoloadConfiguration = Configuration_js_1.Configuration.create('autoload', { handler: { macro: ['autoload-macros'], environment: ['autoload-environments'] }, options: { autoload: Options_js_1.expandable({ action: ['toggle', 'mathtip', 'texttip'], amscd: [[], ['CD']], bbox: ['bbox'], boldsymbol: ['boldsymbol'], braket: ['bra', 'ket', 'braket', 'set', 'Bra', 'Ket', 'Braket', 'Set', 'ketbra', 'Ketbra'], bussproofs: [[], ['prooftree']], cancel: ['cancel', 'bcancel', 'xcancel', 'cancelto'], color: ['color', 'definecolor', 'textcolor', 'colorbox', 'fcolorbox'], enclose: ['enclose'], extpfeil: ['xtwoheadrightarrow', 'xtwoheadleftarrow', 'xmapsto', 'xlongequal', 'xtofrom', 'Newextarrow'], html: ['href', 'class', 'style', 'cssId'], mhchem: ['ce', 'pu'], newcommand: ['newcommand', 'renewcommand', 'newenvironment', 'renewenvironment', 'def', 'let'], unicode: ['unicode'], verb: ['verb'] }) }, config: configAutoload, init: initAutoload, priority: 10 }); //# sourceMappingURL=AutoloadConfiguration.js.map /***/ }), /* 274 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var sm = __webpack_require__(3); var TexConstants_js_1 = __webpack_require__(13); var BaseMethods_js_1 = __webpack_require__(17); var ParseMethods_js_1 = __webpack_require__(24); var MmlNode_js_1 = __webpack_require__(0); new sm.RegExpMap('letter', ParseMethods_js_1.default.variable, /[a-z]/i); new sm.RegExpMap('digit', ParseMethods_js_1.default.digit, /[0-9.,]/); new sm.RegExpMap('command', ParseMethods_js_1.default.controlSequence, /^\\/); new sm.MacroMap('special', { '{': 'Open', '}': 'Close', '~': 'Tilde', '^': 'Superscript', '_': 'Subscript', ' ': 'Space', '\t': 'Space', '\r': 'Space', '\n': 'Space', '\'': 'Prime', '%': 'Comment', '&': 'Entry', '#': 'Hash', '\u00A0': 'Space', '\u2019': 'Prime' }, BaseMethods_js_1.default); new sm.CharacterMap('mathchar0mi', ParseMethods_js_1.default.mathchar0mi, { alpha: '\u03B1', beta: '\u03B2', gamma: '\u03B3', delta: '\u03B4', epsilon: '\u03F5', zeta: '\u03B6', eta: '\u03B7', theta: '\u03B8', iota: '\u03B9', kappa: '\u03BA', lambda: '\u03BB', mu: '\u03BC', nu: '\u03BD', xi: '\u03BE', omicron: '\u03BF', pi: '\u03C0', rho: '\u03C1', sigma: '\u03C3', tau: '\u03C4', upsilon: '\u03C5', phi: '\u03D5', chi: '\u03C7', psi: '\u03C8', omega: '\u03C9', varepsilon: '\u03B5', vartheta: '\u03D1', varpi: '\u03D6', varrho: '\u03F1', varsigma: '\u03C2', varphi: '\u03C6', S: ['\u00A7', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], aleph: ['\u2135', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], hbar: ['\u210F', { variantForm: true }], imath: '\u0131', jmath: '\u0237', ell: '\u2113', wp: ['\u2118', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], Re: ['\u211C', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], Im: ['\u2111', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], partial: ['\u2202', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], infty: ['\u221E', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], prime: ['\u2032', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL, variantForm: true }], emptyset: ['\u2205', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], nabla: ['\u2207', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], top: ['\u22A4', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], bot: ['\u22A5', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], angle: ['\u2220', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], triangle: ['\u25B3', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], backslash: ['\u2216', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL, variantForm: true }], forall: ['\u2200', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], exists: ['\u2203', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], neg: ['\u00AC', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], lnot: ['\u00AC', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], flat: ['\u266D', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], natural: ['\u266E', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], sharp: ['\u266F', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], clubsuit: ['\u2663', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], diamondsuit: ['\u2662', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], heartsuit: ['\u2661', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], spadesuit: ['\u2660', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }] }); new sm.CharacterMap('mathchar0mo', ParseMethods_js_1.default.mathchar0mo, { surd: '\u221A', coprod: ['\u2210', { texClass: MmlNode_js_1.TEXCLASS.OP, movesupsub: true }], bigvee: ['\u22C1', { texClass: MmlNode_js_1.TEXCLASS.OP, movesupsub: true }], bigwedge: ['\u22C0', { texClass: MmlNode_js_1.TEXCLASS.OP, movesupsub: true }], biguplus: ['\u2A04', { texClass: MmlNode_js_1.TEXCLASS.OP, movesupsub: true }], bigcap: ['\u22C2', { texClass: MmlNode_js_1.TEXCLASS.OP, movesupsub: true }], bigcup: ['\u22C3', { texClass: MmlNode_js_1.TEXCLASS.OP, movesupsub: true }], 'int': ['\u222B', { texClass: MmlNode_js_1.TEXCLASS.OP }], intop: ['\u222B', { texClass: MmlNode_js_1.TEXCLASS.OP, movesupsub: true, movablelimits: true }], iint: ['\u222C', { texClass: MmlNode_js_1.TEXCLASS.OP }], iiint: ['\u222D', { texClass: MmlNode_js_1.TEXCLASS.OP }], prod: ['\u220F', { texClass: MmlNode_js_1.TEXCLASS.OP, movesupsub: true }], sum: ['\u2211', { texClass: MmlNode_js_1.TEXCLASS.OP, movesupsub: true }], bigotimes: ['\u2A02', { texClass: MmlNode_js_1.TEXCLASS.OP, movesupsub: true }], bigoplus: ['\u2A01', { texClass: MmlNode_js_1.TEXCLASS.OP, movesupsub: true }], bigodot: ['\u2A00', { texClass: MmlNode_js_1.TEXCLASS.OP, movesupsub: true }], oint: ['\u222E', { texClass: MmlNode_js_1.TEXCLASS.OP }], bigsqcup: ['\u2A06', { texClass: MmlNode_js_1.TEXCLASS.OP, movesupsub: true }], smallint: ['\u222B', { largeop: false }], triangleleft: '\u25C3', triangleright: '\u25B9', bigtriangleup: '\u25B3', bigtriangledown: '\u25BD', wedge: '\u2227', land: '\u2227', vee: '\u2228', lor: '\u2228', cap: '\u2229', cup: '\u222A', ddagger: '\u2021', dagger: '\u2020', sqcap: '\u2293', sqcup: '\u2294', uplus: '\u228E', amalg: '\u2A3F', diamond: '\u22C4', bullet: '\u2219', wr: '\u2240', div: '\u00F7', odot: ['\u2299', { largeop: false }], oslash: ['\u2298', { largeop: false }], otimes: ['\u2297', { largeop: false }], ominus: ['\u2296', { largeop: false }], oplus: ['\u2295', { largeop: false }], mp: '\u2213', pm: '\u00B1', circ: '\u2218', bigcirc: '\u25EF', setminus: '\u2216', cdot: '\u22C5', ast: '\u2217', times: '\u00D7', star: '\u22C6', propto: '\u221D', sqsubseteq: '\u2291', sqsupseteq: '\u2292', parallel: '\u2225', mid: '\u2223', dashv: '\u22A3', vdash: '\u22A2', leq: '\u2264', le: '\u2264', geq: '\u2265', ge: '\u2265', lt: '\u003C', gt: '\u003E', succ: '\u227B', prec: '\u227A', approx: '\u2248', succeq: '\u2AB0', preceq: '\u2AAF', supset: '\u2283', subset: '\u2282', supseteq: '\u2287', subseteq: '\u2286', 'in': '\u2208', ni: '\u220B', notin: '\u2209', owns: '\u220B', gg: '\u226B', ll: '\u226A', sim: '\u223C', simeq: '\u2243', perp: '\u22A5', equiv: '\u2261', asymp: '\u224D', smile: '\u2323', frown: '\u2322', ne: '\u2260', neq: '\u2260', cong: '\u2245', doteq: '\u2250', bowtie: '\u22C8', models: '\u22A8', notChar: '\u29F8', Leftrightarrow: '\u21D4', Leftarrow: '\u21D0', Rightarrow: '\u21D2', leftrightarrow: '\u2194', leftarrow: '\u2190', gets: '\u2190', rightarrow: '\u2192', to: ['\u2192', { accent: false }], mapsto: '\u21A6', leftharpoonup: '\u21BC', leftharpoondown: '\u21BD', rightharpoonup: '\u21C0', rightharpoondown: '\u21C1', nearrow: '\u2197', searrow: '\u2198', nwarrow: '\u2196', swarrow: '\u2199', rightleftharpoons: '\u21CC', hookrightarrow: '\u21AA', hookleftarrow: '\u21A9', longleftarrow: '\u27F5', Longleftarrow: '\u27F8', longrightarrow: '\u27F6', Longrightarrow: '\u27F9', Longleftrightarrow: '\u27FA', longleftrightarrow: '\u27F7', longmapsto: '\u27FC', ldots: '\u2026', cdots: '\u22EF', vdots: '\u22EE', ddots: '\u22F1', dotsc: '\u2026', dotsb: '\u22EF', dotsm: '\u22EF', dotsi: '\u22EF', dotso: '\u2026', ldotp: ['\u002E', { texClass: MmlNode_js_1.TEXCLASS.PUNCT }], cdotp: ['\u22C5', { texClass: MmlNode_js_1.TEXCLASS.PUNCT }], colon: ['\u003A', { texClass: MmlNode_js_1.TEXCLASS.PUNCT }] }); new sm.CharacterMap('mathchar7', ParseMethods_js_1.default.mathchar7, { Gamma: '\u0393', Delta: '\u0394', Theta: '\u0398', Lambda: '\u039B', Xi: '\u039E', Pi: '\u03A0', Sigma: '\u03A3', Upsilon: '\u03A5', Phi: '\u03A6', Psi: '\u03A8', Omega: '\u03A9', '_': '\u005F', '#': '\u0023', '$': '\u0024', '%': '\u0025', '&': '\u0026', And: '\u0026' }); new sm.DelimiterMap('delimiter', ParseMethods_js_1.default.delimiter, { '(': '(', ')': ')', '[': '[', ']': ']', '<': '\u27E8', '>': '\u27E9', '\\lt': '\u27E8', '\\gt': '\u27E9', '/': '/', '|': ['|', { texClass: MmlNode_js_1.TEXCLASS.ORD }], '.': '', '\\\\': '\\', '\\lmoustache': '\u23B0', '\\rmoustache': '\u23B1', '\\lgroup': '\u27EE', '\\rgroup': '\u27EF', '\\arrowvert': '\u23D0', '\\Arrowvert': '\u2016', '\\bracevert': '\u23AA', '\\Vert': ['\u2225', { texClass: MmlNode_js_1.TEXCLASS.ORD }], '\\|': ['\u2225', { texClass: MmlNode_js_1.TEXCLASS.ORD }], '\\vert': ['|', { texClass: MmlNode_js_1.TEXCLASS.ORD }], '\\uparrow': '\u2191', '\\downarrow': '\u2193', '\\updownarrow': '\u2195', '\\Uparrow': '\u21D1', '\\Downarrow': '\u21D3', '\\Updownarrow': '\u21D5', '\\backslash': '\\', '\\rangle': '\u27E9', '\\langle': '\u27E8', '\\rbrace': '}', '\\lbrace': '{', '\\}': '}', '\\{': '{', '\\rceil': '\u2309', '\\lceil': '\u2308', '\\rfloor': '\u230B', '\\lfloor': '\u230A', '\\lbrack': '[', '\\rbrack': ']' }); new sm.CommandMap('macros', { displaystyle: ['SetStyle', 'D', true, 0], textstyle: ['SetStyle', 'T', false, 0], scriptstyle: ['SetStyle', 'S', false, 1], scriptscriptstyle: ['SetStyle', 'SS', false, 2], rm: ['SetFont', TexConstants_js_1.TexConstant.Variant.NORMAL], mit: ['SetFont', TexConstants_js_1.TexConstant.Variant.ITALIC], oldstyle: ['SetFont', TexConstants_js_1.TexConstant.Variant.OLDSTYLE], cal: ['SetFont', TexConstants_js_1.TexConstant.Variant.CALLIGRAPHIC], it: ['SetFont', '-tex-mathit'], bf: ['SetFont', TexConstants_js_1.TexConstant.Variant.BOLD], bbFont: ['SetFont', TexConstants_js_1.TexConstant.Variant.DOUBLESTRUCK], scr: ['SetFont', TexConstants_js_1.TexConstant.Variant.SCRIPT], frak: ['SetFont', TexConstants_js_1.TexConstant.Variant.FRAKTUR], sf: ['SetFont', TexConstants_js_1.TexConstant.Variant.SANSSERIF], tt: ['SetFont', TexConstants_js_1.TexConstant.Variant.MONOSPACE], tiny: ['SetSize', 0.5], Tiny: ['SetSize', 0.6], scriptsize: ['SetSize', 0.7], small: ['SetSize', 0.85], normalsize: ['SetSize', 1.0], large: ['SetSize', 1.2], Large: ['SetSize', 1.44], LARGE: ['SetSize', 1.73], huge: ['SetSize', 2.07], Huge: ['SetSize', 2.49], arcsin: ['NamedFn'], arccos: ['NamedFn'], arctan: ['NamedFn'], arg: ['NamedFn'], cos: ['NamedFn'], cosh: ['NamedFn'], cot: ['NamedFn'], coth: ['NamedFn'], csc: ['NamedFn'], deg: ['NamedFn'], det: 'NamedOp', dim: ['NamedFn'], exp: ['NamedFn'], gcd: 'NamedOp', hom: ['NamedFn'], inf: 'NamedOp', ker: ['NamedFn'], lg: ['NamedFn'], lim: 'NamedOp', liminf: ['NamedOp', 'lim inf'], limsup: ['NamedOp', 'lim sup'], ln: ['NamedFn'], log: ['NamedFn'], max: 'NamedOp', min: 'NamedOp', Pr: 'NamedOp', sec: ['NamedFn'], sin: ['NamedFn'], sinh: ['NamedFn'], sup: 'NamedOp', tan: ['NamedFn'], tanh: ['NamedFn'], limits: ['Limits', 1], nolimits: ['Limits', 0], overline: ['UnderOver', '00AF', null, 1], underline: ['UnderOver', '005F'], overbrace: ['UnderOver', '23DE', 1], underbrace: ['UnderOver', '23DF', 1], overparen: ['UnderOver', '23DC'], underparen: ['UnderOver', '23DD'], overrightarrow: ['UnderOver', '2192'], underrightarrow: ['UnderOver', '2192'], overleftarrow: ['UnderOver', '2190'], underleftarrow: ['UnderOver', '2190'], overleftrightarrow: ['UnderOver', '2194'], underleftrightarrow: ['UnderOver', '2194'], overset: 'Overset', underset: 'Underset', stackrel: ['Macro', '\\mathrel{\\mathop{#2}\\limits^{#1}}', 2], over: 'Over', overwithdelims: 'Over', atop: 'Over', atopwithdelims: 'Over', above: 'Over', abovewithdelims: 'Over', brace: ['Over', '{', '}'], brack: ['Over', '[', ']'], choose: ['Over', '(', ')'], frac: 'Frac', sqrt: 'Sqrt', root: 'Root', uproot: ['MoveRoot', 'upRoot'], leftroot: ['MoveRoot', 'leftRoot'], left: 'LeftRight', right: 'LeftRight', middle: 'Middle', llap: 'Lap', rlap: 'Lap', raise: 'RaiseLower', lower: 'RaiseLower', moveleft: 'MoveLeftRight', moveright: 'MoveLeftRight', ',': ['Spacer', TexConstants_js_1.TexConstant.Length.THINMATHSPACE], ':': ['Spacer', TexConstants_js_1.TexConstant.Length.MEDIUMMATHSPACE], '>': ['Spacer', TexConstants_js_1.TexConstant.Length.MEDIUMMATHSPACE], ';': ['Spacer', TexConstants_js_1.TexConstant.Length.THICKMATHSPACE], '!': ['Spacer', TexConstants_js_1.TexConstant.Length.NEGATIVETHINMATHSPACE], enspace: ['Spacer', '.5em'], quad: ['Spacer', '1em'], qquad: ['Spacer', '2em'], thinspace: ['Spacer', TexConstants_js_1.TexConstant.Length.THINMATHSPACE], negthinspace: ['Spacer', TexConstants_js_1.TexConstant.Length.NEGATIVETHINMATHSPACE], hskip: 'Hskip', hspace: 'Hskip', kern: 'Hskip', mskip: 'Hskip', mspace: 'Hskip', mkern: 'Hskip', rule: 'rule', Rule: ['Rule'], Space: ['Rule', 'blank'], big: ['MakeBig', MmlNode_js_1.TEXCLASS.ORD, 0.85], Big: ['MakeBig', MmlNode_js_1.TEXCLASS.ORD, 1.15], bigg: ['MakeBig', MmlNode_js_1.TEXCLASS.ORD, 1.45], Bigg: ['MakeBig', MmlNode_js_1.TEXCLASS.ORD, 1.75], bigl: ['MakeBig', MmlNode_js_1.TEXCLASS.OPEN, 0.85], Bigl: ['MakeBig', MmlNode_js_1.TEXCLASS.OPEN, 1.15], biggl: ['MakeBig', MmlNode_js_1.TEXCLASS.OPEN, 1.45], Biggl: ['MakeBig', MmlNode_js_1.TEXCLASS.OPEN, 1.75], bigr: ['MakeBig', MmlNode_js_1.TEXCLASS.CLOSE, 0.85], Bigr: ['MakeBig', MmlNode_js_1.TEXCLASS.CLOSE, 1.15], biggr: ['MakeBig', MmlNode_js_1.TEXCLASS.CLOSE, 1.45], Biggr: ['MakeBig', MmlNode_js_1.TEXCLASS.CLOSE, 1.75], bigm: ['MakeBig', MmlNode_js_1.TEXCLASS.REL, 0.85], Bigm: ['MakeBig', MmlNode_js_1.TEXCLASS.REL, 1.15], biggm: ['MakeBig', MmlNode_js_1.TEXCLASS.REL, 1.45], Biggm: ['MakeBig', MmlNode_js_1.TEXCLASS.REL, 1.75], mathord: ['TeXAtom', MmlNode_js_1.TEXCLASS.ORD], mathop: ['TeXAtom', MmlNode_js_1.TEXCLASS.OP], mathopen: ['TeXAtom', MmlNode_js_1.TEXCLASS.OPEN], mathclose: ['TeXAtom', MmlNode_js_1.TEXCLASS.CLOSE], mathbin: ['TeXAtom', MmlNode_js_1.TEXCLASS.BIN], mathrel: ['TeXAtom', MmlNode_js_1.TEXCLASS.REL], mathpunct: ['TeXAtom', MmlNode_js_1.TEXCLASS.PUNCT], mathinner: ['TeXAtom', MmlNode_js_1.TEXCLASS.INNER], vcenter: ['TeXAtom', MmlNode_js_1.TEXCLASS.VCENTER], buildrel: 'BuildRel', hbox: ['HBox', 0], text: 'HBox', mbox: ['HBox', 0], fbox: 'FBox', strut: 'Strut', mathstrut: ['Macro', '\\vphantom{(}'], phantom: 'Phantom', vphantom: ['Phantom', 1, 0], hphantom: ['Phantom', 0, 1], smash: 'Smash', acute: ['Accent', '00B4'], grave: ['Accent', '0060'], ddot: ['Accent', '00A8'], tilde: ['Accent', '007E'], bar: ['Accent', '00AF'], breve: ['Accent', '02D8'], check: ['Accent', '02C7'], hat: ['Accent', '005E'], vec: ['Accent', '2192'], dot: ['Accent', '02D9'], widetilde: ['Accent', '007E', 1], widehat: ['Accent', '005E', 1], matrix: 'Matrix', array: 'Matrix', pmatrix: ['Matrix', '(', ')'], cases: ['Matrix', '{', '', 'left left', null, '.1em', null, true], eqalign: ['Matrix', null, null, 'right left', TexConstants_js_1.TexConstant.Length.THICKMATHSPACE, '.5em', 'D'], displaylines: ['Matrix', null, null, 'center', null, '.5em', 'D'], cr: 'Cr', '\\': 'CrLaTeX', newline: ['CrLaTeX', true], hline: ['HLine', 'solid'], hdashline: ['HLine', 'dashed'], eqalignno: ['Matrix', null, null, 'right left', TexConstants_js_1.TexConstant.Length.THICKMATHSPACE, '.5em', 'D', null, 'right'], leqalignno: ['Matrix', null, null, 'right left', TexConstants_js_1.TexConstant.Length.THICKMATHSPACE, '.5em', 'D', null, 'left'], hfill: 'HFill', hfil: 'HFill', hfilll: 'HFill', bmod: ['Macro', '\\mmlToken{mo}[lspace="thickmathspace"' + ' rspace="thickmathspace"]{mod}'], pmod: ['Macro', '\\pod{\\mmlToken{mi}{mod}\\kern 6mu #1}', 1], mod: ['Macro', '\\mathchoice{\\kern18mu}{\\kern12mu}' + '{\\kern12mu}{\\kern12mu}\\mmlToken{mi}{mod}\\,\\,#1', 1], pod: ['Macro', '\\mathchoice{\\kern18mu}{\\kern8mu}' + '{\\kern8mu}{\\kern8mu}(#1)', 1], iff: ['Macro', '\\;\\Longleftrightarrow\\;'], skew: ['Macro', '{{#2{#3\\mkern#1mu}\\mkern-#1mu}{}}', 3], mathcal: ['Macro', '{\\cal #1}', 1], mathscr: ['Macro', '{\\scr #1}', 1], mathrm: ['Macro', '{\\rm #1}', 1], mathbf: ['Macro', '{\\bf #1}', 1], mathbb: ['Macro', '{\\bbFont #1}', 1], Bbb: ['Macro', '{\\bbFont #1}', 1], mathit: ['Macro', '{\\it #1}', 1], mathfrak: ['Macro', '{\\frak #1}', 1], mathsf: ['Macro', '{\\sf #1}', 1], mathtt: ['Macro', '{\\tt #1}', 1], textrm: ['HBox', null, TexConstants_js_1.TexConstant.Variant.NORMAL], textit: ['HBox', null, TexConstants_js_1.TexConstant.Variant.ITALIC], textbf: ['HBox', null, TexConstants_js_1.TexConstant.Variant.BOLD], textsf: ['HBox', null, TexConstants_js_1.TexConstant.Variant.SANSSERIF], texttt: ['HBox', null, TexConstants_js_1.TexConstant.Variant.MONOSPACE], pmb: ['Macro', '\\rlap{#1}\\kern1px{#1}', 1], TeX: ['Macro', 'T\\kern-.14em\\lower.5ex{E}\\kern-.115em X'], LaTeX: ['Macro', 'L\\kern-.325em\\raise.21em' + '{\\scriptstyle{A}}\\kern-.17em\\TeX'], ' ': ['Macro', '\\text{ }'], not: 'Not', dots: 'Dots', space: 'Tilde', '\u00A0': 'Tilde', begin: 'BeginEnd', end: 'BeginEnd', label: 'HandleLabel', ref: 'HandleRef', nonumber: 'HandleNoTag', mathchoice: 'MathChoice', mmlToken: 'MmlToken' }, BaseMethods_js_1.default); new sm.EnvironmentMap('environment', ParseMethods_js_1.default.environment, { array: ['AlignedArray'], equation: ['Equation', null, true], 'equation*': ['Equation', null, false], eqnarray: ['EqnArray', null, true, true, 'rcl', '0 ' + TexConstants_js_1.TexConstant.Length.THICKMATHSPACE, '.5em'] }, BaseMethods_js_1.default); new sm.CharacterMap('not_remap', null, { '\u2190': '\u219A', '\u2192': '\u219B', '\u2194': '\u21AE', '\u21D0': '\u21CD', '\u21D2': '\u21CF', '\u21D4': '\u21CE', '\u2208': '\u2209', '\u220B': '\u220C', '\u2223': '\u2224', '\u2225': '\u2226', '\u223C': '\u2241', '\u007E': '\u2241', '\u2243': '\u2244', '\u2245': '\u2247', '\u2248': '\u2249', '\u224D': '\u226D', '\u003D': '\u2260', '\u2261': '\u2262', '\u003C': '\u226E', '\u003E': '\u226F', '\u2264': '\u2270', '\u2265': '\u2271', '\u2272': '\u2274', '\u2273': '\u2275', '\u2276': '\u2278', '\u2277': '\u2279', '\u227A': '\u2280', '\u227B': '\u2281', '\u2282': '\u2284', '\u2283': '\u2285', '\u2286': '\u2288', '\u2287': '\u2289', '\u22A2': '\u22AC', '\u22A8': '\u22AD', '\u22A9': '\u22AE', '\u22AB': '\u22AF', '\u227C': '\u22E0', '\u227D': '\u22E1', '\u2291': '\u22E2', '\u2292': '\u22E3', '\u22B2': '\u22EA', '\u22B3': '\u22EB', '\u22B4': '\u22EC', '\u22B5': '\u22ED', '\u2203': '\u2204' }); //# sourceMappingURL=BaseMappings.js.map /***/ }), /* 275 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Entities = __webpack_require__(20); Entities.add({ Pcy: '\u041F', Poincareplane: '\u210C', Pr: '\u2ABB', Prime: '\u2033', Proportion: '\u2237', par: '\u2225', para: '\u00B6', parallel: '\u2225', parsim: '\u2AF3', parsl: '\u2AFD', part: '\u2202', pcy: '\u043F', percnt: '\u0025', permil: '\u2030', perp: '\u22A5', pertenk: '\u2031', phmmat: '\u2133', phone: '\u260E', pitchfork: '\u22D4', planck: '\u210F', planckh: '\u210E', plankv: '\u210F', plus: '\u002B', plusacir: '\u2A23', plusb: '\u229E', pluscir: '\u2A22', plusdo: '\u2214', plusdu: '\u2A25', pluse: '\u2A72', plusmn: '\u00B1', plussim: '\u2A26', plustwo: '\u2A27', pm: '\u00B1', pointint: '\u2A15', pound: '\u00A3', pr: '\u227A', prE: '\u2AB3', prcue: '\u227C', pre: '\u2AAF', prec: '\u227A', precapprox: '\u2AB7', preccurlyeq: '\u227C', preceq: '\u2AAF', precsim: '\u227E', primes: '\u2119', prnE: '\u2AB5', prnap: '\u2AB9', prnsim: '\u22E8', prod: '\u220F', profalar: '\u232E', profline: '\u2312', profsurf: '\u2313', prop: '\u221D', propto: '\u221D', prsim: '\u227E', prurel: '\u22B0', puncsp: '\u2008' }, 'p'); //# sourceMappingURL=p.js.map /***/ }), /* 276 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Entities = __webpack_require__(20); Entities.add({ RBarr: '\u2910', REG: '\u00AE', Racute: '\u0154', Rang: '\u27EB', Rarrtl: '\u2916', Rcaron: '\u0158', Rcedil: '\u0156', Rcy: '\u0420', ReverseElement: '\u220B', ReverseUpEquilibrium: '\u296F', Rho: '\u03A1', RightArrowBar: '\u21E5', RightDoubleBracket: '\u27E7', RightDownTeeVector: '\u295D', RightDownVectorBar: '\u2955', RightTeeVector: '\u295B', RightTriangleBar: '\u29D0', RightUpDownVector: '\u294F', RightUpTeeVector: '\u295C', RightUpVectorBar: '\u2954', RightVectorBar: '\u2953', RoundImplies: '\u2970', RuleDelayed: '\u29F4', rAarr: '\u21DB', rArr: '\u21D2', rAtail: '\u291C', rBarr: '\u290F', rHar: '\u2964', race: '\u223D\u0331', racute: '\u0155', radic: '\u221A', raemptyv: '\u29B3', rang: '\u27E9', rangd: '\u2992', range: '\u29A5', rangle: '\u27E9', raquo: '\u00BB', rarr: '\u2192', rarrap: '\u2975', rarrb: '\u21E5', rarrbfs: '\u2920', rarrc: '\u2933', rarrfs: '\u291E', rarrhk: '\u21AA', rarrlp: '\u21AC', rarrpl: '\u2945', rarrsim: '\u2974', rarrw: '\u219D', ratail: '\u291A', ratio: '\u2236', rationals: '\u211A', rbarr: '\u290D', rbbrk: '\u2773', rbrke: '\u298C', rbrksld: '\u298E', rbrkslu: '\u2990', rcaron: '\u0159', rcedil: '\u0157', rceil: '\u2309', rcub: '\u007D', rcy: '\u0440', rdca: '\u2937', rdldhar: '\u2969', rdquo: '\u201D', rdquor: '\u201D', rdsh: '\u21B3', real: '\u211C', realine: '\u211B', realpart: '\u211C', reals: '\u211D', rect: '\u25AD', reg: '\u00AE', rfisht: '\u297D', rfloor: '\u230B', rhard: '\u21C1', rharu: '\u21C0', rharul: '\u296C', rightarrow: '\u2192', rightarrowtail: '\u21A3', rightharpoondown: '\u21C1', rightharpoonup: '\u21C0', rightleftarrows: '\u21C4', rightleftharpoons: '\u21CC', rightsquigarrow: '\u219D', risingdotseq: '\u2253', rlarr: '\u21C4', rlhar: '\u21CC', rlm: '\u200F', rmoustache: '\u23B1', rnmid: '\u2AEE', roang: '\u27ED', roarr: '\u21FE', robrk: '\u27E7', ropar: '\u2986', roplus: '\u2A2E', rotimes: '\u2A35', rpar: '\u0029', rpargt: '\u2994', rppolint: '\u2A12', rrarr: '\u21C9', rsaquo: '\u203A', rsh: '\u21B1', rsqb: '\u005D', rsquo: '\u2019', rsquor: '\u2019', rthree: '\u22CC', rtrie: '\u22B5', rtrif: '\u25B8', rtriltri: '\u29CE', ruluhar: '\u2968', rx: '\u211E' }, 'r'); //# sourceMappingURL=r.js.map /***/ }), /* 277 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var AmsMethods_js_1 = __webpack_require__(34); var sm = __webpack_require__(3); var TexConstants_js_1 = __webpack_require__(13); var ParseMethods_js_1 = __webpack_require__(24); var ParseUtil_js_1 = __webpack_require__(8); var MmlNode_js_1 = __webpack_require__(0); var COLS = function (W) { var WW = []; for (var i = 0, m = W.length; i < m; i++) { WW[i] = ParseUtil_js_1.default.Em(W[i]); } return WW.join(' '); }; new sm.CharacterMap('AMSmath-mathchar0mo', ParseMethods_js_1.default.mathchar0mo, { iiiint: ['\u2A0C', { texClass: MmlNode_js_1.TEXCLASS.OP }] }); new sm.CommandMap('AMSmath-macros', { mathring: ['Accent', '02DA'], nobreakspace: 'Tilde', negmedspace: ['Spacer', TexConstants_js_1.TexConstant.Length.NEGATIVEMEDIUMMATHSPACE], negthickspace: ['Spacer', TexConstants_js_1.TexConstant.Length.NEGATIVETHICKMATHSPACE], idotsint: ['MultiIntegral', '\\int\\cdots\\int'], dddot: ['Accent', '20DB'], ddddot: ['Accent', '20DC'], sideset: ['Macro', '\\mathop{\\mathop{\\rlap{\\phantom{#3}}}\\nolimits#1' + '\\!\\mathop{#3}\\nolimits#2}', 3], boxed: ['Macro', '\\fbox{$\\displaystyle{#1}$}', 1], tag: 'HandleTag', notag: 'HandleNoTag', eqref: ['HandleRef', true], substack: ['Macro', '\\begin{subarray}{c}#1\\end{subarray}', 1], injlim: ['NamedOp', 'inj lim'], projlim: ['NamedOp', 'proj lim'], varliminf: ['Macro', '\\mathop{\\underline{\\mmlToken{mi}{lim}}}'], varlimsup: ['Macro', '\\mathop{\\overline{\\mmlToken{mi}{lim}}}'], varinjlim: ['Macro', '\\mathop{\\underrightarrow{\\mmlToken{mi}{lim}}}'], varprojlim: ['Macro', '\\mathop{\\underleftarrow{\\mmlToken{mi}{lim}}}'], DeclareMathOperator: 'HandleDeclareOp', operatorname: 'HandleOperatorName', SkipLimits: 'SkipLimits', genfrac: 'Genfrac', frac: ['Genfrac', '', '', '', ''], tfrac: ['Genfrac', '', '', '', '1'], dfrac: ['Genfrac', '', '', '', '0'], binom: ['Genfrac', '(', ')', '0', ''], tbinom: ['Genfrac', '(', ')', '0', '1'], dbinom: ['Genfrac', '(', ')', '0', '0'], cfrac: 'CFrac', shoveleft: ['HandleShove', TexConstants_js_1.TexConstant.Align.LEFT], shoveright: ['HandleShove', TexConstants_js_1.TexConstant.Align.RIGHT], xrightarrow: ['xArrow', 0x2192, 5, 6], xleftarrow: ['xArrow', 0x2190, 7, 3] }, AmsMethods_js_1.AmsMethods); new sm.EnvironmentMap('AMSmath-environment', ParseMethods_js_1.default.environment, { 'eqnarray*': ['EqnArray', null, false, true, 'rcl', '0 ' + TexConstants_js_1.TexConstant.Length.THICKMATHSPACE, '.5em'], align: ['EqnArray', null, true, true, 'rlrlrlrlrlrl', COLS([0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0])], 'align*': ['EqnArray', null, false, true, 'rlrlrlrlrlrl', COLS([0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0])], multline: ['Multline', null, true], 'multline*': ['Multline', null, false], split: ['EqnArray', null, false, false, 'rl', COLS([0])], gather: ['EqnArray', null, true, true, 'c'], 'gather*': ['EqnArray', null, false, true, 'c'], alignat: ['AlignAt', null, true, true], 'alignat*': ['AlignAt', null, false, true], alignedat: ['AlignAt', null, false, false], aligned: ['AmsEqnArray', null, null, null, 'rlrlrlrlrlrl', COLS([0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0]), '.5em', 'D'], gathered: ['AmsEqnArray', null, null, null, 'c', null, '.5em', 'D'], subarray: ['Array', null, null, null, null, COLS([0]), '0.1em', 'S', 1], smallmatrix: ['Array', null, null, null, 'c', COLS([1 / 3]), '.2em', 'S', 1], matrix: ['Array', null, null, null, 'c'], pmatrix: ['Array', null, '(', ')', 'c'], bmatrix: ['Array', null, '[', ']', 'c'], Bmatrix: ['Array', null, '\\{', '\\}', 'c'], vmatrix: ['Array', null, '\\vert', '\\vert', 'c'], Vmatrix: ['Array', null, '\\Vert', '\\Vert', 'c'], cases: ['Array', null, '\\{', '.', 'll', null, '.2em', 'T'] }, AmsMethods_js_1.AmsMethods); new sm.DelimiterMap('AMSmath-delimiter', ParseMethods_js_1.default.delimiter, { '\\lvert': ['\u007C', { texClass: MmlNode_js_1.TEXCLASS.OPEN }], '\\rvert': ['\u007C', { texClass: MmlNode_js_1.TEXCLASS.CLOSE }], '\\lVert': ['\u2016', { texClass: MmlNode_js_1.TEXCLASS.OPEN }], '\\rVert': ['\u2016', { texClass: MmlNode_js_1.TEXCLASS.CLOSE }] }); new sm.CharacterMap('AMSsymbols-mathchar0mi', ParseMethods_js_1.default.mathchar0mi, { digamma: '\u03DD', varkappa: '\u03F0', varGamma: ['\u0393', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varDelta: ['\u0394', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varTheta: ['\u0398', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varLambda: ['\u039B', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varXi: ['\u039E', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varPi: ['\u03A0', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varSigma: ['\u03A3', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varUpsilon: ['\u03A5', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varPhi: ['\u03A6', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varPsi: ['\u03A8', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], varOmega: ['\u03A9', { mathvariant: TexConstants_js_1.TexConstant.Variant.ITALIC }], beth: '\u2136', gimel: '\u2137', daleth: '\u2138', backprime: ['\u2035', { variantForm: true }], hslash: '\u210F', varnothing: ['\u2205', { variantForm: true }], blacktriangle: '\u25B4', triangledown: ['\u25BD', { variantForm: true }], blacktriangledown: '\u25BE', square: '\u25FB', Box: '\u25FB', blacksquare: '\u25FC', lozenge: '\u25CA', Diamond: '\u25CA', blacklozenge: '\u29EB', circledS: ['\u24C8', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], bigstar: '\u2605', sphericalangle: '\u2222', measuredangle: '\u2221', nexists: '\u2204', complement: '\u2201', mho: '\u2127', eth: ['\u00F0', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], Finv: '\u2132', diagup: '\u2571', Game: '\u2141', diagdown: '\u2572', Bbbk: ['\u006B', { mathvariant: TexConstants_js_1.TexConstant.Variant.DOUBLESTRUCK }], yen: '\u00A5', circledR: '\u00AE', checkmark: '\u2713', maltese: '\u2720' }); new sm.CharacterMap('AMSsymbols-mathchar0m0', ParseMethods_js_1.default.mathchar0mo, { dotplus: '\u2214', ltimes: '\u22C9', smallsetminus: ['\u2216', { variantForm: true }], rtimes: '\u22CA', Cap: '\u22D2', doublecap: '\u22D2', leftthreetimes: '\u22CB', Cup: '\u22D3', doublecup: '\u22D3', rightthreetimes: '\u22CC', barwedge: '\u22BC', curlywedge: '\u22CF', veebar: '\u22BB', curlyvee: '\u22CE', doublebarwedge: '\u2A5E', boxminus: '\u229F', circleddash: '\u229D', boxtimes: '\u22A0', circledast: '\u229B', boxdot: '\u22A1', circledcirc: '\u229A', boxplus: '\u229E', centerdot: ['\u22C5', { variantForm: true }], divideontimes: '\u22C7', intercal: '\u22BA', leqq: '\u2266', geqq: '\u2267', leqslant: '\u2A7D', geqslant: '\u2A7E', eqslantless: '\u2A95', eqslantgtr: '\u2A96', lesssim: '\u2272', gtrsim: '\u2273', lessapprox: '\u2A85', gtrapprox: '\u2A86', approxeq: '\u224A', lessdot: '\u22D6', gtrdot: '\u22D7', lll: '\u22D8', llless: '\u22D8', ggg: '\u22D9', gggtr: '\u22D9', lessgtr: '\u2276', gtrless: '\u2277', lesseqgtr: '\u22DA', gtreqless: '\u22DB', lesseqqgtr: '\u2A8B', gtreqqless: '\u2A8C', doteqdot: '\u2251', Doteq: '\u2251', eqcirc: '\u2256', risingdotseq: '\u2253', circeq: '\u2257', fallingdotseq: '\u2252', triangleq: '\u225C', backsim: '\u223D', thicksim: ['\u223C', { variantForm: true }], backsimeq: '\u22CD', thickapprox: ['\u2248', { variantForm: true }], subseteqq: '\u2AC5', supseteqq: '\u2AC6', Subset: '\u22D0', Supset: '\u22D1', sqsubset: '\u228F', sqsupset: '\u2290', preccurlyeq: '\u227C', succcurlyeq: '\u227D', curlyeqprec: '\u22DE', curlyeqsucc: '\u22DF', precsim: '\u227E', succsim: '\u227F', precapprox: '\u2AB7', succapprox: '\u2AB8', vartriangleleft: '\u22B2', lhd: '\u22B2', vartriangleright: '\u22B3', rhd: '\u22B3', trianglelefteq: '\u22B4', unlhd: '\u22B4', trianglerighteq: '\u22B5', unrhd: '\u22B5', vDash: ['\u22A8', { variantForm: true }], Vdash: '\u22A9', Vvdash: '\u22AA', smallsmile: ['\u2323', { variantForm: true }], shortmid: ['\u2223', { variantForm: true }], smallfrown: ['\u2322', { variantForm: true }], shortparallel: ['\u2225', { variantForm: true }], bumpeq: '\u224F', between: '\u226C', Bumpeq: '\u224E', pitchfork: '\u22D4', varpropto: ['\u221D', { variantForm: true }], backepsilon: '\u220D', blacktriangleleft: '\u25C2', blacktriangleright: '\u25B8', therefore: '\u2234', because: '\u2235', eqsim: '\u2242', vartriangle: ['\u25B3', { variantForm: true }], Join: '\u22C8', nless: '\u226E', ngtr: '\u226F', nleq: '\u2270', ngeq: '\u2271', nleqslant: ['\u2A87', { variantForm: true }], ngeqslant: ['\u2A88', { variantForm: true }], nleqq: ['\u2270', { variantForm: true }], ngeqq: ['\u2271', { variantForm: true }], lneq: '\u2A87', gneq: '\u2A88', lneqq: '\u2268', gneqq: '\u2269', lvertneqq: ['\u2268', { variantForm: true }], gvertneqq: ['\u2269', { variantForm: true }], lnsim: '\u22E6', gnsim: '\u22E7', lnapprox: '\u2A89', gnapprox: '\u2A8A', nprec: '\u2280', nsucc: '\u2281', npreceq: ['\u22E0', { variantForm: true }], nsucceq: ['\u22E1', { variantForm: true }], precneqq: '\u2AB5', succneqq: '\u2AB6', precnsim: '\u22E8', succnsim: '\u22E9', precnapprox: '\u2AB9', succnapprox: '\u2ABA', nsim: '\u2241', ncong: '\u2247', nshortmid: ['\u2224', { variantForm: true }], nshortparallel: ['\u2226', { variantForm: true }], nmid: '\u2224', nparallel: '\u2226', nvdash: '\u22AC', nvDash: '\u22AD', nVdash: '\u22AE', nVDash: '\u22AF', ntriangleleft: '\u22EA', ntriangleright: '\u22EB', ntrianglelefteq: '\u22EC', ntrianglerighteq: '\u22ED', nsubseteq: '\u2288', nsupseteq: '\u2289', nsubseteqq: ['\u2288', { variantForm: true }], nsupseteqq: ['\u2289', { variantForm: true }], subsetneq: '\u228A', supsetneq: '\u228B', varsubsetneq: ['\u228A', { variantForm: true }], varsupsetneq: ['\u228B', { variantForm: true }], subsetneqq: '\u2ACB', supsetneqq: '\u2ACC', varsubsetneqq: ['\u2ACB', { variantForm: true }], varsupsetneqq: ['\u2ACC', { variantForm: true }], leftleftarrows: '\u21C7', rightrightarrows: '\u21C9', leftrightarrows: '\u21C6', rightleftarrows: '\u21C4', Lleftarrow: '\u21DA', Rrightarrow: '\u21DB', twoheadleftarrow: '\u219E', twoheadrightarrow: '\u21A0', leftarrowtail: '\u21A2', rightarrowtail: '\u21A3', looparrowleft: '\u21AB', looparrowright: '\u21AC', leftrightharpoons: '\u21CB', rightleftharpoons: ['\u21CC', { variantForm: true }], curvearrowleft: '\u21B6', curvearrowright: '\u21B7', circlearrowleft: '\u21BA', circlearrowright: '\u21BB', Lsh: '\u21B0', Rsh: '\u21B1', upuparrows: '\u21C8', downdownarrows: '\u21CA', upharpoonleft: '\u21BF', upharpoonright: '\u21BE', downharpoonleft: '\u21C3', restriction: '\u21BE', multimap: '\u22B8', downharpoonright: '\u21C2', leftrightsquigarrow: '\u21AD', rightsquigarrow: '\u21DD', leadsto: '\u21DD', dashrightarrow: '\u21E2', dashleftarrow: '\u21E0', nleftarrow: '\u219A', nrightarrow: '\u219B', nLeftarrow: '\u21CD', nRightarrow: '\u21CF', nleftrightarrow: '\u21AE', nLeftrightarrow: '\u21CE' }); new sm.DelimiterMap('AMSsymbols-delimiter', ParseMethods_js_1.default.delimiter, { '\\ulcorner': '\u231C', '\\urcorner': '\u231D', '\\llcorner': '\u231E', '\\lrcorner': '\u231F' }); new sm.CommandMap('AMSsymbols-macros', { implies: ['Macro', '\\;\\Longrightarrow\\;'], impliedby: ['Macro', '\\;\\Longleftarrow\\;'] }, AmsMethods_js_1.AmsMethods); //# sourceMappingURL=AmsMappings.js.map /***/ }), /* 278 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var sm = __webpack_require__(3); var ParseMethods_js_1 = __webpack_require__(24); var AmsCdMethods_js_1 = __webpack_require__(136); new sm.EnvironmentMap('amscd_environment', ParseMethods_js_1.default.environment, { CD: 'CD' }, AmsCdMethods_js_1.default); new sm.CommandMap('amscd_macros', { minCDarrowwidth: 'minCDarrowwidth', minCDarrowheight: 'minCDarrowheight', }, AmsCdMethods_js_1.default); new sm.MacroMap('amscd_special', { '@': 'arrow' }, AmsCdMethods_js_1.default); //# sourceMappingURL=AmsCdMappings.js.map /***/ }), /* 279 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var SymbolMap_js_1 = __webpack_require__(3); var BraketMethods_js_1 = __webpack_require__(141); new SymbolMap_js_1.CommandMap('Braket-macros', { bra: ['Macro', '{\\langle {#1} \\vert}', 1], ket: ['Macro', '{\\vert {#1} \\rangle}', 1], braket: ['Braket', '\u27E8', '\u27E9', false, Infinity], 'set': ['Braket', '{', '}', false, 1], Bra: ['Macro', '{\\left\\langle {#1} \\right\\vert}', 1], Ket: ['Macro', '{\\left\\vert {#1} \\right\\rangle}', 1], Braket: ['Braket', '\u27E8', '\u27E9', true, Infinity], Set: ['Braket', '{', '}', true, 1], ketbra: ['Macro', '{\\vert {#1} \\rangle\\langle {#2} \\vert}', 2], Ketbra: ['Macro', '{\\left\\vert {#1} \\right\\rangle\\left\\langle {#2} \\right\\vert}', 2], '|': 'Bar' }, BraketMethods_js_1.default); new SymbolMap_js_1.MacroMap('Braket-characters', { '|': 'Bar' }, BraketMethods_js_1.default); //# sourceMappingURL=BraketMappings.js.map /***/ }), /* 280 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var BussproofsMethods_js_1 = __webpack_require__(144); var ParseMethods_js_1 = __webpack_require__(24); var SymbolMap_js_1 = __webpack_require__(3); new SymbolMap_js_1.CommandMap('Bussproofs-macros', { AxiomC: 'Axiom', UnaryInfC: ['Inference', 1], BinaryInfC: ['Inference', 2], TrinaryInfC: ['Inference', 3], QuaternaryInfC: ['Inference', 4], QuinaryInfC: ['Inference', 5], RightLabel: ['Label', 'right'], LeftLabel: ['Label', 'left'], AXC: 'Axiom', UIC: ['Inference', 1], BIC: ['Inference', 2], TIC: ['Inference', 3], RL: ['Label', 'right'], LL: ['Label', 'left'], noLine: ['SetLine', 'none', false], singleLine: ['SetLine', 'solid', false], solidLine: ['SetLine', 'solid', false], dashedLine: ['SetLine', 'dashed', false], alwaysNoLine: ['SetLine', 'none', true], alwaysSingleLine: ['SetLine', 'solid', true], alwaysSolidLine: ['SetLine', 'solid', true], alwaysDashedLine: ['SetLine', 'dashed', true], rootAtTop: ['RootAtTop', true], alwaysRootAtTop: ['RootAtTop', true], rootAtBottom: ['RootAtTop', false], alwaysRootAtBottom: ['RootAtTop', false], fCenter: 'FCenter', Axiom: 'AxiomF', UnaryInf: ['InferenceF', 1], BinaryInf: ['InferenceF', 2], TrinaryInf: ['InferenceF', 3], QuaternaryInf: ['InferenceF', 4], QuinaryInf: ['InferenceF', 5] }, BussproofsMethods_js_1.default); new SymbolMap_js_1.EnvironmentMap('Bussproofs-environments', ParseMethods_js_1.default.environment, { prooftree: ['Prooftree', null, false] }, BussproofsMethods_js_1.default); //# sourceMappingURL=BussproofsMappings.js.map /***/ }), /* 281 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var NewcommandMethods_js_1 = __webpack_require__(85); var SymbolMap_js_1 = __webpack_require__(3); new SymbolMap_js_1.CommandMap('Newcommand-macros', { newcommand: 'NewCommand', renewcommand: 'NewCommand', newenvironment: 'NewEnvironment', renewenvironment: 'NewEnvironment', def: 'MacroDef', 'let': 'Let' }, NewcommandMethods_js_1.default); //# sourceMappingURL=NewcommandMappings.js.map /***/ }), /* 282 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', {value: true}); // // Core parser for mhchem syntax (recursive) // /** @type {MhchemParser} */ var mhchemParser = { // // Parses mchem \ce syntax // // Call like // go("H2O"); // go: function (input, stateMachine) { if (!input) { return []; } if (stateMachine === undefined) { stateMachine = 'ce'; } var state = '0'; // // String buffers for parsing: // // buffer.a == amount // buffer.o == element // buffer.b == left-side superscript // buffer.p == left-side subscript // buffer.q == right-side subscript // buffer.d == right-side superscript // // buffer.r == arrow // buffer.rdt == arrow, script above, type // buffer.rd == arrow, script above, content // buffer.rqt == arrow, script below, type // buffer.rq == arrow, script below, content // // buffer.text_ // buffer.rm // etc. // // buffer.parenthesisLevel == int, starting at 0 // buffer.sb == bool, space before // buffer.beginsWithBond == bool // // These letters are also used as state names. // // Other states: // 0 == begin of main part (arrow/operator unlikely) // 1 == next entity // 2 == next entity (arrow/operator unlikely) // 3 == next atom // c == macro // /** @type {Buffer} */ var buffer = {}; buffer['parenthesisLevel'] = 0; input = input.replace(/\n/g, " "); input = input.replace(/[\u2212\u2013\u2014\u2010]/g, "-"); input = input.replace(/[\u2026]/g, "..."); // // Looks through mhchemParser.transitions, to execute a matching action // (recursive) // var lastInput; var watchdog = 10; /** @type {ParserOutput[]} */ var output = []; while (true) { if (lastInput !== input) { watchdog = 10; lastInput = input; } else { watchdog--; } // // Find actions in transition table // var machine = mhchemParser.stateMachines[stateMachine]; var t = machine.transitions[state] || machine.transitions['*']; iterateTransitions: for (var i=0; i 0) { if (!task.revisit) { input = matches.remainder; } if (!task.toContinue) { break iterateTransitions; } } else { return output; } } } // // Prevent infinite loop // if (watchdog <= 0) { throw ["MhchemBugU", "mhchem bug U. Please report."]; // Unexpected character } } }, concatArray: function (a, b) { if (b) { if (Array.isArray(b)) { for (var iB=0; iB': /^[=<>]/, '#': /^[#\u2261]/, '+': /^\+/, '-$': /^-(?=[\s_},;\]/]|$|\([a-z]+\))/, // -space -, -; -] -/ -$ -state-of-aggregation '-9': /^-(?=[0-9])/, '- orbital overlap': /^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/, '-': /^-/, 'pm-operator': /^(?:\\pm|\$\\pm\$|\+-|\+\/-)/, 'operator': /^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/, 'arrowUpDown': /^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/, '\\bond{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\bond{", "", "", "}"); }, '->': /^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/, 'CMT': /^[CMT](?=\[)/, '[(...)]': function (input) { return mhchemParser.patterns.findObserveGroups(input, "[", "", "", "]"); }, '1st-level escape': /^(&|\\\\|\\hline)\s*/, '\\,': /^(?:\\[,\ ;:])/, // \\x - but output no space before '\\x{}{}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "", /^\\[a-zA-Z]+\{/, "}", "", "", "{", "}", "", true); }, '\\x{}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "", /^\\[a-zA-Z]+\{/, "}", ""); }, '\\ca': /^\\ca(?:\s+|(?![a-zA-Z]))/, '\\x': /^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/, 'orbital': /^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/, // only those with numbers in front, because the others will be formatted correctly anyway 'others': /^[\/~|]/, '\\frac{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\frac{", "", "", "}", "{", "", "", "}"); }, '\\overset{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\overset{", "", "", "}", "{", "", "", "}"); }, '\\underset{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\underset{", "", "", "}", "{", "", "", "}"); }, '\\underbrace{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\underbrace{", "", "", "}_", "{", "", "", "}"); }, '\\color{(...)}0': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\color{", "", "", "}"); }, '\\color{(...)}{(...)}1': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\color{", "", "", "}", "{", "", "", "}"); }, '\\color(...){(...)}2': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\color", "\\", "", /^(?=\{)/, "{", "", "", "}"); }, '\\ce{(...)}': function (input) { return mhchemParser.patterns.findObserveGroups(input, "\\ce{", "", "", "}"); }, 'oxidation$': /^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/, 'd-oxidation$': /^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/, // 0 could be oxidation or charge 'roman numeral': /^[IVX]+/, '1/2$': /^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/, 'amount': function (input) { var match; // e.g. 2, 0.5, 1/2, -2, n/2, +; $a$ could be added later in parsing match = input.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/); if (match) { return { match_: match[0], remainder: input.substr(match[0].length) }; } var a = mhchemParser.patterns.findObserveGroups(input, "", "$", "$", ""); if (a) { // e.g. $2n-1$, $-$ match = a.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/); if (match) { return { match_: match[0], remainder: input.substr(match[0].length) }; } } return null; }, 'amount2': function (input) { return this['amount'](input); }, '(KV letters),': /^(?:[A-Z][a-z]{0,2}|i)(?=,)/, 'formula$': function (input) { if (input.match(/^\([a-z]+\)$/)) { return null; } // state of aggregation = no formula var match = input.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/); if (match) { return { match_: match[0], remainder: input.substr(match[0].length) }; } return null; }, 'uprightEntities': /^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/, '/': /^\s*(\/)\s*/, '//': /^\s*(\/\/)\s*/, '*': /^\s*[*.]\s*/ }, findObserveGroups: function (input, begExcl, begIncl, endIncl, endExcl, beg2Excl, beg2Incl, end2Incl, end2Excl, combine) { /** @type {{(input: string, pattern: string | RegExp): string | string[] | null;}} */ var _match = function (input, pattern) { if (typeof pattern === "string") { if (input.indexOf(pattern) !== 0) { return null; } return pattern; } else { var match = input.match(pattern); if (!match) { return null; } return match[0]; } }; /** @type {{(input: string, i: number, endChars: string | RegExp): {endMatchBegin: number, endMatchEnd: number} | null;}} */ var _findObserveGroups = function (input, i, endChars) { var braces = 0; while (i < input.length) { var a = input.charAt(i); var match = _match(input.substr(i), endChars); if (match !== null && braces === 0) { return { endMatchBegin: i, endMatchEnd: i + match.length }; } else if (a === "{") { braces++; } else if (a === "}") { if (braces === 0) { throw ["ExtraCloseMissingOpen", "Extra close brace or missing open brace"]; } else { braces--; } } i++; } if (braces > 0) { return null; } return null; }; var match = _match(input, begExcl); if (match === null) { return null; } input = input.substr(match.length); match = _match(input, begIncl); if (match === null) { return null; } var e = _findObserveGroups(input, match.length, endIncl || endExcl); if (e === null) { return null; } var match1 = input.substring(0, (endIncl ? e.endMatchEnd : e.endMatchBegin)); if (!(beg2Excl || beg2Incl)) { return { match_: match1, remainder: input.substr(e.endMatchEnd) }; } else { var group2 = this.findObserveGroups(input.substr(e.endMatchEnd), beg2Excl, beg2Incl, end2Incl, end2Excl); if (group2 === null) { return null; } /** @type {string[]} */ var matchRet = [match1, group2.match_]; return { match_: (combine ? matchRet.join("") : matchRet), remainder: group2.remainder }; } }, // // Matching function // e.g. match("a", input) will look for the regexp called "a" and see if it matches // returns null or {match_:"a", remainder:"bc"} // match_: function (m, input) { var pattern = mhchemParser.patterns.patterns[m]; if (pattern === undefined) { throw ["MhchemBugP", "mhchem bug P. Please report. (" + m + ")"]; // Trying to use non-existing pattern } else if (typeof pattern === "function") { return mhchemParser.patterns.patterns[m](input); // cannot use cached var pattern here, because some pattern functions need this===mhchemParser } else { // RegExp var match = input.match(pattern); if (match) { var mm; if (match[2]) { mm = [ match[1], match[2] ]; } else if (match[1]) { mm = match[1]; } else { mm = match[0]; } return { match_: mm, remainder: input.substr(match[0].length) }; } return null; } } }, // // Generic state machine actions // actions: { 'a=': function (buffer, m) { buffer.a = (buffer.a || "") + m; }, 'b=': function (buffer, m) { buffer.b = (buffer.b || "") + m; }, 'p=': function (buffer, m) { buffer.p = (buffer.p || "") + m; }, 'o=': function (buffer, m) { buffer.o = (buffer.o || "") + m; }, 'q=': function (buffer, m) { buffer.q = (buffer.q || "") + m; }, 'd=': function (buffer, m) { buffer.d = (buffer.d || "") + m; }, 'rm=': function (buffer, m) { buffer.rm = (buffer.rm || "") + m; }, 'text=': function (buffer, m) { buffer.text_ = (buffer.text_ || "") + m; }, 'insert': function (buffer, m, a) { return { type_: a }; }, 'insert+p1': function (buffer, m, a) { return { type_: a, p1: m }; }, 'insert+p1+p2': function (buffer, m, a) { return { type_: a, p1: m[0], p2: m[1] }; }, 'copy': function (buffer, m) { return m; }, 'rm': function (buffer, m) { return { type_: 'rm', p1: m || ""}; }, 'text': function (buffer, m) { return mhchemParser.go(m, 'text'); }, '{text}': function (buffer, m) { var ret = [ "{" ]; mhchemParser.concatArray(ret, mhchemParser.go(m, 'text')); ret.push("}"); return ret; }, 'tex-math': function (buffer, m) { return mhchemParser.go(m, 'tex-math'); }, 'tex-math tight': function (buffer, m) { return mhchemParser.go(m, 'tex-math tight'); }, 'bond': function (buffer, m, k) { return { type_: 'bond', kind_: k || m }; }, 'color0-output': function (buffer, m) { return { type_: 'color0', color: m[0] }; }, 'ce': function (buffer, m) { return mhchemParser.go(m); }, '1/2': function (buffer, m) { /** @type {ParserOutput[]} */ var ret = []; if (m.match(/^[+\-]/)) { ret.push(m.substr(0, 1)); m = m.substr(1); } var n = m.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/); n[1] = n[1].replace(/\$/g, ""); ret.push({ type_: 'frac', p1: n[1], p2: n[2] }); if (n[3]) { n[3] = n[3].replace(/\$/g, ""); ret.push({ type_: 'tex-math', p1: n[3] }); } return ret; }, '9,9': function (buffer, m) { return mhchemParser.go(m, '9,9'); } }, // // createTransitions // convert { 'letter': { 'state': { action_: 'output' } } } to { 'state' => [ { pattern: 'letter', task: { action_: [{type_: 'output'}] } } ] } // with expansion of 'a|b' to 'a' and 'b' (at 2 places) // createTransitions: function (o) { var pattern, state; /** @type {string[]} */ var stateArray; var i; // // 1. Collect all states // /** @type {Transitions} */ var transitions = {}; for (pattern in o) { for (state in o[pattern]) { stateArray = state.split("|"); o[pattern][state].stateArray = stateArray; for (i=0; i': { '0|1|2|3': { action_: 'r=', nextState: 'r' }, 'a|as': { action_: [ 'output', 'r=' ], nextState: 'r' }, '*': { action_: [ 'output', 'r=' ], nextState: 'r' } }, '+': { 'o': { action_: 'd= kv', nextState: 'd' }, 'd|D': { action_: 'd=', nextState: 'd' }, 'q': { action_: 'd=', nextState: 'qd' }, 'qd|qD': { action_: 'd=', nextState: 'qd' }, 'dq': { action_: [ 'output', 'd=' ], nextState: 'd' }, '3': { action_: [ 'sb=false', 'output', 'operator' ], nextState: '0' } }, 'amount': { '0|2': { action_: 'a=', nextState: 'a' } }, 'pm-operator': { '0|1|2|a|as': { action_: [ 'sb=false', 'output', { type_: 'operator', option: '\\pm' } ], nextState: '0' } }, 'operator': { '0|1|2|a|as': { action_: [ 'sb=false', 'output', 'operator' ], nextState: '0' } }, '-$': { 'o|q': { action_: [ 'charge or bond', 'output' ], nextState: 'qd' }, 'd': { action_: 'd=', nextState: 'd' }, 'D': { action_: [ 'output', { type_: 'bond', option: "-" } ], nextState: '3' }, 'q': { action_: 'd=', nextState: 'qd' }, 'qd': { action_: 'd=', nextState: 'qd' }, 'qD|dq': { action_: [ 'output', { type_: 'bond', option: "-" } ], nextState: '3' } }, '-9': { '3|o': { action_: [ 'output', { type_: 'insert', option: 'hyphen' } ], nextState: '3' } }, '- orbital overlap': { 'o': { action_: [ 'output', { type_: 'insert', option: 'hyphen' } ], nextState: '2' }, 'd': { action_: [ 'output', { type_: 'insert', option: 'hyphen' } ], nextState: '2' } }, '-': { '0|1|2': { action_: [ { type_: 'output', option: 1 }, 'beginsWithBond=true', { type_: 'bond', option: "-" } ], nextState: '3' }, '3': { action_: { type_: 'bond', option: "-" } }, 'a': { action_: [ 'output', { type_: 'insert', option: 'hyphen' } ], nextState: '2' }, 'as': { action_: [ { type_: 'output', option: 2 }, { type_: 'bond', option: "-" } ], nextState: '3' }, 'b': { action_: 'b=' }, 'o': { action_: { type_: '- after o/d', option: false }, nextState: '2' }, 'q': { action_: { type_: '- after o/d', option: false }, nextState: '2' }, 'd|qd|dq': { action_: { type_: '- after o/d', option: true }, nextState: '2' }, 'D|qD|p': { action_: [ 'output', { type_: 'bond', option: "-" } ], nextState: '3' } }, 'amount2': { '1|3': { action_: 'a=', nextState: 'a' } }, 'letters': { '0|1|2|3|a|as|b|p|bp|o': { action_: 'o=', nextState: 'o' }, 'q|dq': { action_: ['output', 'o='], nextState: 'o' }, 'd|D|qd|qD': { action_: 'o after d', nextState: 'o' } }, 'digits': { 'o': { action_: 'q=', nextState: 'q' }, 'd|D': { action_: 'q=', nextState: 'dq' }, 'q': { action_: [ 'output', 'o=' ], nextState: 'o' }, 'a': { action_: 'o=', nextState: 'o' } }, 'space A': { 'b|p|bp': {} }, 'space': { 'a': { nextState: 'as' }, '0': { action_: 'sb=false' }, '1|2': { action_: 'sb=true' }, 'r|rt|rd|rdt|rdq': { action_: 'output', nextState: '0' }, '*': { action_: [ 'output', 'sb=true' ], nextState: '1'} }, '1st-level escape': { '1|2': { action_: [ 'output', { type_: 'insert+p1', option: '1st-level escape' } ] }, '*': { action_: [ 'output', { type_: 'insert+p1', option: '1st-level escape' } ], nextState: '0' } }, '[(...)]': { 'r|rt': { action_: 'rd=', nextState: 'rd' }, 'rd|rdt': { action_: 'rq=', nextState: 'rdq' } }, '...': { 'o|d|D|dq|qd|qD': { action_: [ 'output', { type_: 'bond', option: "..." } ], nextState: '3' }, '*': { action_: [ { type_: 'output', option: 1 }, { type_: 'insert', option: 'ellipsis' } ], nextState: '1' } }, '. |* ': { '*': { action_: [ 'output', { type_: 'insert', option: 'addition compound' } ], nextState: '1' } }, 'state of aggregation $': { '*': { action_: [ 'output', 'state of aggregation' ], nextState: '1' } }, '{[(': { 'a|as|o': { action_: [ 'o=', 'output', 'parenthesisLevel++' ], nextState: '2' }, '0|1|2|3': { action_: [ 'o=', 'output', 'parenthesisLevel++' ], nextState: '2' }, '*': { action_: [ 'output', 'o=', 'output', 'parenthesisLevel++' ], nextState: '2' } }, ')]}': { '0|1|2|3|b|p|bp|o': { action_: [ 'o=', 'parenthesisLevel--' ], nextState: 'o' }, 'a|as|d|D|q|qd|qD|dq': { action_: [ 'output', 'o=', 'parenthesisLevel--' ], nextState: 'o' } }, ', ': { '*': { action_: [ 'output', 'comma' ], nextState: '0' } }, '^_': { // ^ and _ without a sensible argument '*': { } }, '^{(...)}|^($...$)': { '0|1|2|as': { action_: 'b=', nextState: 'b' }, 'p': { action_: 'b=', nextState: 'bp' }, '3|o': { action_: 'd= kv', nextState: 'D' }, 'q': { action_: 'd=', nextState: 'qD' }, 'd|D|qd|qD|dq': { action_: [ 'output', 'd=' ], nextState: 'D' } }, '^a|^\\x{}{}|^\\x{}|^\\x|\'': { '0|1|2|as': { action_: 'b=', nextState: 'b' }, 'p': { action_: 'b=', nextState: 'bp' }, '3|o': { action_: 'd= kv', nextState: 'd' }, 'q': { action_: 'd=', nextState: 'qd' }, 'd|qd|D|qD': { action_: 'd=' }, 'dq': { action_: [ 'output', 'd=' ], nextState: 'd' } }, '_{(state of aggregation)}$': { 'd|D|q|qd|qD|dq': { action_: [ 'output', 'q=' ], nextState: 'q' } }, '_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x': { '0|1|2|as': { action_: 'p=', nextState: 'p' }, 'b': { action_: 'p=', nextState: 'bp' }, '3|o': { action_: 'q=', nextState: 'q' }, 'd|D': { action_: 'q=', nextState: 'dq' }, 'q|qd|qD|dq': { action_: [ 'output', 'q=' ], nextState: 'q' } }, '=<>': { '0|1|2|3|a|as|o|q|d|D|qd|qD|dq': { action_: [ { type_: 'output', option: 2 }, 'bond' ], nextState: '3' } }, '#': { '0|1|2|3|a|as|o': { action_: [ { type_: 'output', option: 2 }, { type_: 'bond', option: "#" } ], nextState: '3' } }, '{}': { '*': { action_: { type_: 'output', option: 1 }, nextState: '1' } }, '{...}': { '0|1|2|3|a|as|b|p|bp': { action_: 'o=', nextState: 'o' }, 'o|d|D|q|qd|qD|dq': { action_: [ 'output', 'o=' ], nextState: 'o' } }, '$...$': { 'a': { action_: 'a=' }, // 2$n$ '0|1|2|3|as|b|p|bp|o': { action_: 'o=', nextState: 'o' }, // not 'amount' 'as|o': { action_: 'o=' }, 'q|d|D|qd|qD|dq': { action_: [ 'output', 'o=' ], nextState: 'o' } }, '\\bond{(...)}': { '*': { action_: [ { type_: 'output', option: 2 }, 'bond' ], nextState: "3" } }, '\\frac{(...)}': { '*': { action_: [ { type_: 'output', option: 1 }, 'frac-output' ], nextState: '3' } }, '\\overset{(...)}': { '*': { action_: [ { type_: 'output', option: 2 }, 'overset-output' ], nextState: '3' } }, '\\underset{(...)}': { '*': { action_: [ { type_: 'output', option: 2 }, 'underset-output' ], nextState: '3' } }, '\\underbrace{(...)}': { '*': { action_: [ { type_: 'output', option: 2 }, 'underbrace-output' ], nextState: '3' } }, '\\color{(...)}{(...)}1|\\color(...){(...)}2': { '*': { action_: [ { type_: 'output', option: 2 }, 'color-output' ], nextState: '3' } }, '\\color{(...)}0': { '*': { action_: [ { type_: 'output', option: 2 }, 'color0-output' ] } }, '\\ce{(...)}': { '*': { action_: [ { type_: 'output', option: 2 }, 'ce' ], nextState: '3' } }, '\\,': { '*': { action_: [ { type_: 'output', option: 1 }, 'copy' ], nextState: '1' } }, '\\x{}{}|\\x{}|\\x': { '0|1|2|3|a|as|b|p|bp|o|c0': { action_: [ 'o=', 'output' ], nextState: '3' }, '*': { action_: ['output', 'o=', 'output' ], nextState: '3' } }, 'others': { '*': { action_: [ { type_: 'output', option: 1 }, 'copy' ], nextState: '3' } }, 'else2': { 'a': { action_: 'a to o', nextState: 'o', revisit: true }, 'as': { action_: [ 'output', 'sb=true' ], nextState: '1', revisit: true }, 'r|rt|rd|rdt|rdq': { action_: [ 'output' ], nextState: '0', revisit: true }, '*': { action_: [ 'output', 'copy' ], nextState: '3' } } }), actions: { 'o after d': function (buffer, m) { var ret; if ((buffer.d || "").match(/^[0-9]+$/)) { var tmp = buffer.d; buffer.d = undefined; ret = this['output'](buffer); buffer.b = tmp; } else { ret = this['output'](buffer); } mhchemParser.actions['o='](buffer, m); return ret; }, 'd= kv': function (buffer, m) { buffer.d = m; buffer.dType = 'kv'; }, 'charge or bond': function (buffer, m) { if (buffer['beginsWithBond']) { /** @type {ParserOutput[]} */ var ret = []; mhchemParser.concatArray(ret, this['output'](buffer)); mhchemParser.concatArray(ret, mhchemParser.actions['bond'](buffer, m, "-")); return ret; } else { buffer.d = m; } }, '- after o/d': function (buffer, m, isAfterD) { var c1 = mhchemParser.patterns.match_('orbital', buffer.o || ""); var c2 = mhchemParser.patterns.match_('one lowercase greek letter $', buffer.o || ""); var c3 = mhchemParser.patterns.match_('one lowercase latin letter $', buffer.o || ""); var c4 = mhchemParser.patterns.match_('$one lowercase latin letter$ $', buffer.o || ""); var hyphenFollows = m==="-" && ( c1 && c1.remainder==="" || c2 || c3 || c4 ); if (hyphenFollows && !buffer.a && !buffer.b && !buffer.p && !buffer.d && !buffer.q && !c1 && c3) { buffer.o = '$' + buffer.o + '$'; } /** @type {ParserOutput[]} */ var ret = []; if (hyphenFollows) { mhchemParser.concatArray(ret, this['output'](buffer)); ret.push({ type_: 'hyphen' }); } else { c1 = mhchemParser.patterns.match_('digits', buffer.d || ""); if (isAfterD && c1 && c1.remainder==='') { mhchemParser.concatArray(ret, mhchemParser.actions['d='](buffer, m)); mhchemParser.concatArray(ret, this['output'](buffer)); } else { mhchemParser.concatArray(ret, this['output'](buffer)); mhchemParser.concatArray(ret, mhchemParser.actions['bond'](buffer, m, "-")); } } return ret; }, 'a to o': function (buffer) { buffer.o = buffer.a; buffer.a = undefined; }, 'sb=true': function (buffer) { buffer.sb = true; }, 'sb=false': function (buffer) { buffer.sb = false; }, 'beginsWithBond=true': function (buffer) { buffer['beginsWithBond'] = true; }, 'beginsWithBond=false': function (buffer) { buffer['beginsWithBond'] = false; }, 'parenthesisLevel++': function (buffer) { buffer['parenthesisLevel']++; }, 'parenthesisLevel--': function (buffer) { buffer['parenthesisLevel']--; }, 'state of aggregation': function (buffer, m) { return { type_: 'state of aggregation', p1: mhchemParser.go(m, 'o') }; }, 'comma': function (buffer, m) { var a = m.replace(/\s*$/, ''); var withSpace = (a !== m); if (withSpace && buffer['parenthesisLevel'] === 0) { return { type_: 'comma enumeration L', p1: a }; } else { return { type_: 'comma enumeration M', p1: a }; } }, 'output': function (buffer, m, entityFollows) { // entityFollows: // undefined = if we have nothing else to output, also ignore the just read space (buffer.sb) // 1 = an entity follows, never omit the space if there was one just read before (can only apply to state 1) // 2 = 1 + the entity can have an amount, so output a\, instead of converting it to o (can only apply to states a|as) /** @type {ParserOutput | ParserOutput[]} */ var ret; if (!buffer.r) { ret = []; if (!buffer.a && !buffer.b && !buffer.p && !buffer.o && !buffer.q && !buffer.d && !entityFollows) { //ret = []; } else { if (buffer.sb) { ret.push({ type_: 'entitySkip' }); } if (!buffer.o && !buffer.q && !buffer.d && !buffer.b && !buffer.p && entityFollows!==2) { buffer.o = buffer.a; buffer.a = undefined; } else if (!buffer.o && !buffer.q && !buffer.d && (buffer.b || buffer.p)) { buffer.o = buffer.a; buffer.d = buffer.b; buffer.q = buffer.p; buffer.a = buffer.b = buffer.p = undefined; } else { if (buffer.o && buffer.dType==='kv' && mhchemParser.patterns.match_('d-oxidation$', buffer.d || "")) { buffer.dType = 'oxidation'; } else if (buffer.o && buffer.dType==='kv' && !buffer.q) { buffer.dType = undefined; } } ret.push({ type_: 'chemfive', a: mhchemParser.go(buffer.a, 'a'), b: mhchemParser.go(buffer.b, 'bd'), p: mhchemParser.go(buffer.p, 'pq'), o: mhchemParser.go(buffer.o, 'o'), q: mhchemParser.go(buffer.q, 'pq'), d: mhchemParser.go(buffer.d, (buffer.dType === 'oxidation' ? 'oxidation' : 'bd')), dType: buffer.dType }); } } else { // r /** @type {ParserOutput[]} */ var rd; if (buffer.rdt === 'M') { rd = mhchemParser.go(buffer.rd, 'tex-math'); } else if (buffer.rdt === 'T') { rd = [ { type_: 'text', p1: buffer.rd || "" } ]; } else { rd = mhchemParser.go(buffer.rd); } /** @type {ParserOutput[]} */ var rq; if (buffer.rqt === 'M') { rq = mhchemParser.go(buffer.rq, 'tex-math'); } else if (buffer.rqt === 'T') { rq = [ { type_: 'text', p1: buffer.rq || ""} ]; } else { rq = mhchemParser.go(buffer.rq); } ret = { type_: 'arrow', r: buffer.r, rd: rd, rq: rq }; } for (var p in buffer) { if (p !== 'parenthesisLevel' && p !== 'beginsWithBond') { delete buffer[p]; } } return ret; }, 'oxidation-output': function (buffer, m) { var ret = [ "{" ]; mhchemParser.concatArray(ret, mhchemParser.go(m, 'oxidation')); ret.push("}"); return ret; }, 'frac-output': function (buffer, m) { return { type_: 'frac-ce', p1: mhchemParser.go(m[0]), p2: mhchemParser.go(m[1]) }; }, 'overset-output': function (buffer, m) { return { type_: 'overset', p1: mhchemParser.go(m[0]), p2: mhchemParser.go(m[1]) }; }, 'underset-output': function (buffer, m) { return { type_: 'underset', p1: mhchemParser.go(m[0]), p2: mhchemParser.go(m[1]) }; }, 'underbrace-output': function (buffer, m) { return { type_: 'underbrace', p1: mhchemParser.go(m[0]), p2: mhchemParser.go(m[1]) }; }, 'color-output': function (buffer, m) { return { type_: 'color', color1: m[0], color2: mhchemParser.go(m[1]) }; }, 'r=': function (buffer, m) { buffer.r = m; }, 'rdt=': function (buffer, m) { buffer.rdt = m; }, 'rd=': function (buffer, m) { buffer.rd = m; }, 'rqt=': function (buffer, m) { buffer.rqt = m; }, 'rq=': function (buffer, m) { buffer.rq = m; }, 'operator': function (buffer, m, p1) { return { type_: 'operator', kind_: (p1 || m) }; } } }, 'a': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, '1/2$': { '0': { action_: '1/2' } }, 'else': { '0': { nextState: '1', revisit: true } }, '$(...)$': { '*': { action_: 'tex-math tight', nextState: '1' } }, ',': { '*': { action_: { type_: 'insert', option: 'commaDecimal' } } }, 'else2': { '*': { action_: 'copy' } } }), actions: {} }, 'o': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, '1/2$': { '0': { action_: '1/2' } }, 'else': { '0': { nextState: '1', revisit: true } }, 'letters': { '*': { action_: 'rm' } }, '\\ca': { '*': { action_: { type_: 'insert', option: 'circa' } } }, '\\x{}{}|\\x{}|\\x': { '*': { action_: 'copy' } }, '${(...)}$|$(...)$': { '*': { action_: 'tex-math' } }, '{(...)}': { '*': { action_: '{text}' } }, 'else2': { '*': { action_: 'copy' } } }), actions: {} }, 'text': { transitions: mhchemParser.createTransitions({ 'empty': { '*': { action_: 'output' } }, '{...}': { '*': { action_: 'text=' } }, '${(...)}$|$(...)$': { '*': { action_: 'tex-math' } }, '\\greek': { '*': { action_: [ 'output', 'rm' ] } }, '\\,|\\x{}{}|\\x{}|\\x': { '*': { action_: [ 'output', 'copy' ] } }, 'else': { '*': { action_: 'text=' } } }), actions: { 'output': function (buffer) { if (buffer.text_) { /** @type {ParserOutput} */ var ret = { type_: 'text', p1: buffer.text_ }; for (var p in buffer) { delete buffer[p]; } return ret; } } } }, 'pq': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, 'state of aggregation $': { '*': { action_: 'state of aggregation' } }, 'i$': { '0': { nextState: '!f', revisit: true } }, '(KV letters),': { '0': { action_: 'rm', nextState: '0' } }, 'formula$': { '0': { nextState: 'f', revisit: true } }, '1/2$': { '0': { action_: '1/2' } }, 'else': { '0': { nextState: '!f', revisit: true } }, '${(...)}$|$(...)$': { '*': { action_: 'tex-math' } }, '{(...)}': { '*': { action_: 'text' } }, 'a-z': { 'f': { action_: 'tex-math' } }, 'letters': { '*': { action_: 'rm' } }, '-9.,9': { '*': { action_: '9,9' } }, ',': { '*': { action_: { type_: 'insert+p1', option: 'comma enumeration S' } } }, '\\color{(...)}{(...)}1|\\color(...){(...)}2': { '*': { action_: 'color-output' } }, '\\color{(...)}0': { '*': { action_: 'color0-output' } }, '\\ce{(...)}': { '*': { action_: 'ce' } }, '\\,|\\x{}{}|\\x{}|\\x': { '*': { action_: 'copy' } }, 'else2': { '*': { action_: 'copy' } } }), actions: { 'state of aggregation': function (buffer, m) { return { type_: 'state of aggregation subscript', p1: mhchemParser.go(m, 'o') }; }, 'color-output': function (buffer, m) { return { type_: 'color', color1: m[0], color2: mhchemParser.go(m[1], 'pq') }; } } }, 'bd': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, 'x$': { '0': { nextState: '!f', revisit: true } }, 'formula$': { '0': { nextState: 'f', revisit: true } }, 'else': { '0': { nextState: '!f', revisit: true } }, '-9.,9 no missing 0': { '*': { action_: '9,9' } }, '.': { '*': { action_: { type_: 'insert', option: 'electron dot' } } }, 'a-z': { 'f': { action_: 'tex-math' } }, 'x': { '*': { action_: { type_: 'insert', option: 'KV x' } } }, 'letters': { '*': { action_: 'rm' } }, '\'': { '*': { action_: { type_: 'insert', option: 'prime' } } }, '${(...)}$|$(...)$': { '*': { action_: 'tex-math' } }, '{(...)}': { '*': { action_: 'text' } }, '\\color{(...)}{(...)}1|\\color(...){(...)}2': { '*': { action_: 'color-output' } }, '\\color{(...)}0': { '*': { action_: 'color0-output' } }, '\\ce{(...)}': { '*': { action_: 'ce' } }, '\\,|\\x{}{}|\\x{}|\\x': { '*': { action_: 'copy' } }, 'else2': { '*': { action_: 'copy' } } }), actions: { 'color-output': function (buffer, m) { return { type_: 'color', color1: m[0], color2: mhchemParser.go(m[1], 'bd') }; } } }, 'oxidation': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, 'roman numeral': { '*': { action_: 'roman-numeral' } }, '${(...)}$|$(...)$': { '*': { action_: 'tex-math' } }, 'else': { '*': { action_: 'copy' } } }), actions: { 'roman-numeral': function (buffer, m) { return { type_: 'roman numeral', p1: m || "" }; } } }, 'tex-math': { transitions: mhchemParser.createTransitions({ 'empty': { '*': { action_: 'output' } }, '\\ce{(...)}': { '*': { action_: [ 'output', 'ce' ] } }, '{...}|\\,|\\x{}{}|\\x{}|\\x': { '*': { action_: 'o=' } }, 'else': { '*': { action_: 'o=' } } }), actions: { 'output': function (buffer) { if (buffer.o) { /** @type {ParserOutput} */ var ret = { type_: 'tex-math', p1: buffer.o }; for (var p in buffer) { delete buffer[p]; } return ret; } } } }, 'tex-math tight': { transitions: mhchemParser.createTransitions({ 'empty': { '*': { action_: 'output' } }, '\\ce{(...)}': { '*': { action_: [ 'output', 'ce' ] } }, '{...}|\\,|\\x{}{}|\\x{}|\\x': { '*': { action_: 'o=' } }, '-|+': { '*': { action_: 'tight operator' } }, 'else': { '*': { action_: 'o=' } } }), actions: { 'tight operator': function (buffer, m) { buffer.o = (buffer.o || "") + "{"+m+"}"; }, 'output': function (buffer) { if (buffer.o) { /** @type {ParserOutput} */ var ret = { type_: 'tex-math', p1: buffer.o }; for (var p in buffer) { delete buffer[p]; } return ret; } } } }, '9,9': { transitions: mhchemParser.createTransitions({ 'empty': { '*': {} }, ',': { '*': { action_: 'comma' } }, 'else': { '*': { action_: 'copy' } } }), actions: { 'comma': function () { return { type_: 'commaDecimal' }; } } }, //#endregion // // \pu state machines // //#region pu 'pu': { transitions: mhchemParser.createTransitions({ 'empty': { '*': { action_: 'output' } }, 'space$': { '*': { action_: [ 'output', 'space' ] } }, '{[(|)]}': { '0|a': { action_: 'copy' } }, '(-)(9)^(-9)': { '0': { action_: 'number^', nextState: 'a' } }, '(-)(9.,9)(e)(99)': { '0': { action_: 'enumber', nextState: 'a' } }, 'space': { '0|a': {} }, 'pm-operator': { '0|a': { action_: { type_: 'operator', option: '\\pm' }, nextState: '0' } }, 'operator': { '0|a': { action_: 'copy', nextState: '0' } }, '//': { 'd': { action_: 'o=', nextState: '/' } }, '/': { 'd': { action_: 'o=', nextState: '/' } }, '{...}|else': { '0|d': { action_: 'd=', nextState: 'd' }, 'a': { action_: [ 'space', 'd=' ], nextState: 'd' }, '/|q': { action_: 'q=', nextState: 'q' } } }), actions: { 'enumber': function (buffer, m) { /** @type {ParserOutput[]} */ var ret = []; if (m[0] === "+-" || m[0] === "+/-") { ret.push("\\pm "); } else if (m[0]) { ret.push(m[0]); } if (m[1]) { mhchemParser.concatArray(ret, mhchemParser.go(m[1], 'pu-9,9')); if (m[2]) { if (m[2].match(/[,.]/)) { mhchemParser.concatArray(ret, mhchemParser.go(m[2], 'pu-9,9')); } else { ret.push(m[2]); } } m[3] = m[4] || m[3]; if (m[3]) { m[3] = m[3].trim(); if (m[3] === "e" || m[3].substr(0, 1) === "*") { ret.push({ type_: 'cdot' }); } else { ret.push({ type_: 'times' }); } } } if (m[3]) { ret.push("10^{"+m[5]+"}"); } return ret; }, 'number^': function (buffer, m) { /** @type {ParserOutput[]} */ var ret = []; if (m[0] === "+-" || m[0] === "+/-") { ret.push("\\pm "); } else if (m[0]) { ret.push(m[0]); } mhchemParser.concatArray(ret, mhchemParser.go(m[1], 'pu-9,9')); ret.push("^{"+m[2]+"}"); return ret; }, 'operator': function (buffer, m, p1) { return { type_: 'operator', kind_: (p1 || m) }; }, 'space': function () { return { type_: 'pu-space-1' }; }, 'output': function (buffer) { /** @type {ParserOutput | ParserOutput[]} */ var ret; var md = mhchemParser.patterns.match_('{(...)}', buffer.d || ""); if (md && md.remainder === '') { buffer.d = md.match_; } var mq = mhchemParser.patterns.match_('{(...)}', buffer.q || ""); if (mq && mq.remainder === '') { buffer.q = mq.match_; } if (buffer.d) { buffer.d = buffer.d.replace(/\u00B0C|\^oC|\^{o}C/g, "{}^{\\circ}C"); buffer.d = buffer.d.replace(/\u00B0F|\^oF|\^{o}F/g, "{}^{\\circ}F"); } if (buffer.q) { // fraction buffer.q = buffer.q.replace(/\u00B0C|\^oC|\^{o}C/g, "{}^{\\circ}C"); buffer.q = buffer.q.replace(/\u00B0F|\^oF|\^{o}F/g, "{}^{\\circ}F"); var b5 = { d: mhchemParser.go(buffer.d, 'pu'), q: mhchemParser.go(buffer.q, 'pu') }; if (buffer.o === '//') { ret = { type_: 'pu-frac', p1: b5.d, p2: b5.q }; } else { ret = b5.d; if (b5.d.length > 1 || b5.q.length > 1) { ret.push({ type_: ' / ' }); } else { ret.push({ type_: '/' }); } mhchemParser.concatArray(ret, b5.q); } } else { // no fraction ret = mhchemParser.go(buffer.d, 'pu-2'); } for (var p in buffer) { delete buffer[p]; } return ret; } } }, 'pu-2': { transitions: mhchemParser.createTransitions({ 'empty': { '*': { action_: 'output' } }, '*': { '*': { action_: [ 'output', 'cdot' ], nextState: '0' } }, '\\x': { '*': { action_: 'rm=' } }, 'space': { '*': { action_: [ 'output', 'space' ], nextState: '0' } }, '^{(...)}|^(-1)': { '1': { action_: '^(-1)' } }, '-9.,9': { '0': { action_: 'rm=', nextState: '0' }, '1': { action_: '^(-1)', nextState: '0' } }, '{...}|else': { '*': { action_: 'rm=', nextState: '1' } } }), actions: { 'cdot': function () { return { type_: 'tight cdot' }; }, '^(-1)': function (buffer, m) { buffer.rm += "^{"+m+"}"; }, 'space': function () { return { type_: 'pu-space-2' }; }, 'output': function (buffer) { /** @type {ParserOutput | ParserOutput[]} */ var ret = []; if (buffer.rm) { var mrm = mhchemParser.patterns.match_('{(...)}', buffer.rm || ""); if (mrm && mrm.remainder === '') { ret = mhchemParser.go(mrm.match_, 'pu'); } else { ret = { type_: 'rm', p1: buffer.rm }; } } for (var p in buffer) { delete buffer[p]; } return ret; } } }, 'pu-9,9': { transitions: mhchemParser.createTransitions({ 'empty': { '0': { action_: 'output-0' }, 'o': { action_: 'output-o' } }, ',': { '0': { action_: [ 'output-0', 'comma' ], nextState: 'o' } }, '.': { '0': { action_: [ 'output-0', 'copy' ], nextState: 'o' } }, 'else': { '*': { action_: 'text=' } } }), actions: { 'comma': function () { return { type_: 'commaDecimal' }; }, 'output-0': function (buffer) { /** @type {ParserOutput[]} */ var ret = []; buffer.text_ = buffer.text_ || ""; if (buffer.text_.length > 4) { var a = buffer.text_.length % 3; if (a === 0) { a = 3; } for (var i=buffer.text_.length-3; i>0; i-=3) { ret.push(buffer.text_.substr(i, 3)); ret.push({ type_: '1000 separator' }); } ret.push(buffer.text_.substr(0, a)); ret.reverse(); } else { ret.push(buffer.text_); } for (var p in buffer) { delete buffer[p]; } return ret; }, 'output-o': function (buffer) { /** @type {ParserOutput[]} */ var ret = []; buffer.text_ = buffer.text_ || ""; if (buffer.text_.length > 4) { var a = buffer.text_.length - 3; for (var i=0; i" || buf.r === "<=>>" || buf.r === "<<=>" || buf.r === "<-->") { // arrows that cannot stretch correctly yet, https://github.com/mathjax/MathJax/issues/1491 arrow = "\\long"+arrow; if (b6.rd) { arrow = "\\overset{"+b6.rd+"}{"+arrow+"}"; } if (b6.rq) { arrow = "\\underset{\\lower7mu{"+b6.rq+"}}{"+arrow+"}"; } arrow = " {}\\mathrel{"+arrow+"}{} "; } else { if (b6.rq) { arrow += "[{"+b6.rq+"}]"; } arrow += "{"+b6.rd+"}"; arrow = " {}\\mathrel{\\x"+arrow+"}{} "; } } else { arrow = " {}\\mathrel{\\long"+arrow+"}{} "; } res = arrow; break; case 'operator': res = texify._getOperator(buf.kind_); break; case '1st-level escape': res = buf.p1+" "; // &, \\\\, \\hlin break; case 'space': res = " "; break; case 'entitySkip': res = "~"; break; case 'pu-space-1': res = "~"; break; case 'pu-space-2': res = "\\mkern3mu "; break; case '1000 separator': res = "\\mkern2mu "; break; case 'commaDecimal': res = "{,}"; break; case 'comma enumeration L': res = "{"+buf.p1+"}\\mkern6mu "; break; case 'comma enumeration M': res = "{"+buf.p1+"}\\mkern3mu "; break; case 'comma enumeration S': res = "{"+buf.p1+"}\\mkern1mu "; break; case 'hyphen': res = "\\text{-}"; break; case 'addition compound': res = "\\,{\\cdot}\\,"; break; case 'electron dot': res = "\\mkern1mu \\bullet\\mkern1mu "; break; case 'KV x': res = "{\\times}"; break; case 'prime': res = "\\prime "; break; case 'cdot': res = "\\cdot "; break; case 'tight cdot': res = "\\mkern1mu{\\cdot}\\mkern1mu "; break; case 'times': res = "\\times "; break; case 'circa': res = "{\\sim}"; break; case '^': res = "uparrow"; break; case 'v': res = "downarrow"; break; case 'ellipsis': res = "\\ldots "; break; case '/': res = "/"; break; case ' / ': res = "\\,/\\,"; break; default: assertNever(buf); throw ["MhchemBugT", "mhchem bug T. Please report."]; // Missing texify rule or unknown MhchemParser output } assertString(res); return res; }, _getArrow: function (a) { switch (a) { case "->": return "rightarrow"; case "\u2192": return "rightarrow"; case "\u27F6": return "rightarrow"; case "<-": return "leftarrow"; case "<->": return "leftrightarrow"; case "<-->": return "leftrightarrows"; case "<=>": return "rightleftharpoons"; case "\u21CC": return "rightleftharpoons"; case "<=>>": return "Rightleftharpoons"; case "<<=>": return "Leftrightharpoons"; default: assertNever(a); throw ["MhchemBugT", "mhchem bug T. Please report."]; } }, _getBond: function (a) { switch (a) { case "-": return "{-}"; case "1": return "{-}"; case "=": return "{=}"; case "2": return "{=}"; case "#": return "{\\equiv}"; case "3": return "{\\equiv}"; case "~": return "{\\tripledash}"; case "~-": return "{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}"; case "~=": return "{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}"; case "~--": return "{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}"; case "-~-": return "{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}"; case "...": return "{{\\cdot}{\\cdot}{\\cdot}}"; case "....": return "{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}"; case "->": return "{\\rightarrow}"; case "<-": return "{\\leftarrow}"; case "<": return "{<}"; case ">": return "{>}"; default: assertNever(a); throw ["MhchemBugT", "mhchem bug T. Please report."]; } }, _getOperator: function (a) { switch (a) { case "+": return " {}+{} "; case "-": return " {}-{} "; case "=": return " {}={} "; case "<": return " {}<{} "; case ">": return " {}>{} "; case "<<": return " {}\\ll{} "; case ">>": return " {}\\gg{} "; case "\\pm": return " {}\\pm{} "; case "\\approx": return " {}\\approx{} "; case "$\\approx$": return " {}\\approx{} "; case "v": return " \\downarrow{} "; case "(v)": return " \\downarrow{} "; case "^": return " \\uparrow{} "; case "(^)": return " \\uparrow{} "; default: assertNever(a); throw ["MhchemBugT", "mhchem bug T. Please report."]; } } }; // // Helpers for code anaylsis // Will show type error at calling position // /** @param {number} a */ function assertNever(a) {} /** @param {string} a */ function assertString(a) {} exports.mhchemParser = mhchemParser; exports.texify = texify; exports.assertNever = assertNever; exports.assertString = assertString; /***/ }), /* 283 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var SymbolMap_js_1 = __webpack_require__(3); var PhysicsMethods_js_1 = __webpack_require__(161); var TexConstants_js_1 = __webpack_require__(13); var ParseMethods_js_1 = __webpack_require__(24); var MmlNode_js_1 = __webpack_require__(0); new SymbolMap_js_1.CommandMap('Physics-automatic-bracing-macros', { 'quantity': 'Quantity', 'qty': 'Quantity', 'pqty': ['Quantity', '(', ')', true], 'bqty': ['Quantity', '[', ']', true], 'vqty': ['Quantity', '|', '|', true], 'Bqty': ['Quantity', '{', '}', true], 'absolutevalue': ['Quantity', '|', '|', true], 'abs': ['Quantity', '|', '|', true], 'norm': ['Quantity', '\\|', '\\|', true], 'evaluated': 'Eval', 'eval': 'Eval', 'order': ['Quantity', '(', ')', true, 'O', TexConstants_js_1.TexConstant.Variant.CALLIGRAPHIC], 'commutator': 'Commutator', 'comm': 'Commutator', 'anticommutator': ['Commutator', '\\{', '\\}'], 'acomm': ['Commutator', '\\{', '\\}'], 'poissonbracket': ['Commutator', '\\{', '\\}'], 'pb': ['Commutator', '\\{', '\\}'] }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CharacterMap('Physics-vector-chars', ParseMethods_js_1.default.mathchar0mi, { dotproduct: ['\u22C5', { mathvariant: TexConstants_js_1.TexConstant.Variant.BOLD }], vdot: ['\u22C5', { mathvariant: TexConstants_js_1.TexConstant.Variant.BOLD }], crossproduct: '\u00D7', cross: '\u00D7', cp: '\u00D7', gradientnabla: ['\u2207', { mathvariant: TexConstants_js_1.TexConstant.Variant.BOLD }], real: ['\u211C', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }], imaginary: ['\u2111', { mathvariant: TexConstants_js_1.TexConstant.Variant.NORMAL }] }); new SymbolMap_js_1.CommandMap('Physics-vector-macros', { 'vectorbold': 'VectorBold', 'vb': 'VectorBold', 'vectorarrow': ['StarMacro', 1, '\\vec{\\vb', '{#1}}'], 'va': ['StarMacro', 1, '\\vec{\\vb', '{#1}}'], 'vectorunit': ['StarMacro', 1, '\\hat{\\vb', '{#1}}'], 'vu': ['StarMacro', 1, '\\hat{\\vb', '{#1}}'], 'gradient': ['OperatorApplication', '\\gradientnabla', '(', '['], 'grad': ['OperatorApplication', '\\gradientnabla', '(', '['], 'divergence': ['VectorOperator', '\\gradientnabla\\vdot', '(', '['], 'div': ['VectorOperator', '\\gradientnabla\\vdot', '(', '['], 'curl': ['VectorOperator', '\\gradientnabla\\crossproduct', '(', '['], 'laplacian': ['OperatorApplication', '\\nabla^2', '(', '['], }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CommandMap('Physics-expressions-macros', { 'sin': 'Expression', 'sinh': 'Expression', 'arcsin': 'Expression', 'asin': 'Expression', 'cos': 'Expression', 'cosh': 'Expression', 'arccos': 'Expression', 'acos': 'Expression', 'tan': 'Expression', 'tanh': 'Expression', 'arctan': 'Expression', 'atan': 'Expression', 'csc': 'Expression', 'csch': 'Expression', 'arccsc': 'Expression', 'acsc': 'Expression', 'sec': 'Expression', 'sech': 'Expression', 'arcsec': 'Expression', 'asec': 'Expression', 'cot': 'Expression', 'coth': 'Expression', 'arccot': 'Expression', 'acot': 'Expression', 'exp': ['Expression', false], 'log': 'Expression', 'ln': 'Expression', 'det': ['Expression', false], 'Pr': ['Expression', false], 'tr': ['Expression', false], 'trace': ['Expression', false, 'tr'], 'Tr': ['Expression', false], 'Trace': ['Expression', false, 'Tr'], 'rank': 'NamedFn', 'erf': ['Expression', false], 'Res': ['OperatorApplication', '{\\rm Res}', '(', '[', '{'], 'principalvalue': ['OperatorApplication', '{\\cal P}'], 'pv': ['OperatorApplication', '{\\cal P}'], 'PV': ['OperatorApplication', '{\\rm P.V.}'], 'Re': ['OperatorApplication', '{\\rm Re}', '{'], 'Im': ['OperatorApplication', '{\\rm Im}', '{'], 'sine': ['NamedFn', 'sin'], 'hypsine': ['NamedFn', 'sinh'], 'arcsine': ['NamedFn', 'arcsin'], 'asine': ['NamedFn', 'asin'], 'cosine': ['NamedFn', 'cos'], 'hypcosine': ['NamedFn', 'cosh'], 'arccosine': ['NamedFn', 'arccos'], 'acosine': ['NamedFn', 'acos'], 'tangent': ['NamedFn', 'tan'], 'hyptangent': ['NamedFn', 'tanh'], 'arctangent': ['NamedFn', 'arctan'], 'atangent': ['NamedFn', 'atan'], 'cosecant': ['NamedFn', 'csc'], 'hypcosecant': ['NamedFn', 'csch'], 'arccosecant': ['NamedFn', 'arccsc'], 'acosecant': ['NamedFn', 'acsc'], 'secant': ['NamedFn', 'sec'], 'hypsecant': ['NamedFn', 'sech'], 'arcsecant': ['NamedFn', 'arcsec'], 'asecant': ['NamedFn', 'asec'], 'cotangent': ['NamedFn', 'cot'], 'hypcotangent': ['NamedFn', 'coth'], 'arccotangent': ['NamedFn', 'arccot'], 'acotangent': ['NamedFn', 'acot'], 'exponential': ['NamedFn', 'exp'], 'logarithm': ['NamedFn', 'log'], 'naturallogarithm': ['NamedFn', 'ln'], 'determinant': ['NamedFn', 'det'], 'Probability': ['NamedFn', 'Pr'], }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CommandMap('Physics-quick-quad-macros', { 'qqtext': 'Qqtext', 'qq': 'Qqtext', 'qcomma': ['Macro', '\\qqtext*{,}'], 'qc': ['Macro', '\\qqtext*{,}'], 'qcc': ['Qqtext', 'c.c.'], 'qif': ['Qqtext', 'if'], 'qthen': ['Qqtext', 'then'], 'qelse': ['Qqtext', 'else'], 'qotherwise': ['Qqtext', 'otherwise'], 'qunless': ['Qqtext', 'unless'], 'qgiven': ['Qqtext', 'given'], 'qusing': ['Qqtext', 'using'], 'qassume': ['Qqtext', 'assume'], 'qsince,': ['Qqtext', 'since,'], 'qlet': ['Qqtext', 'let'], 'qfor': ['Qqtext', 'for'], 'qall': ['Qqtext', 'all'], 'qeven': ['Qqtext', 'even'], 'qodd': ['Qqtext', 'odd'], 'qinteger': ['Qqtext', 'integer'], 'qand': ['Qqtext', 'and'], 'qor': ['Qqtext', 'or'], 'qas': ['Qqtext', 'as'], 'qin': ['Qqtext', 'in'], }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CommandMap('Physics-derivative-macros', { 'flatfrac': ['Macro', '\\left.#1\\middle/#2\\right.', 2], 'differential': ['Differential', '{\\rm d}'], 'dd': ['Differential', '{\\rm d}'], 'variation': ['Differential', '\\delta'], 'var': ['Differential', '\\delta'], 'derivative': ['Derivative', 2, '{\\rm d}'], 'dv': ['Derivative', 2, '{\\rm d}'], 'partialderivative': ['Derivative', 3, '\\partial'], 'pderivative': ['Derivative', 3, '\\partial'], 'pdv': ['Derivative', 3, '\\partial'], 'functionalderivative': ['Derivative', 2, '\\delta'], 'fderivative': ['Derivative', 2, '\\delta'], 'fdv': ['Derivative', 2, '\\delta'], }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CommandMap('Physics-bra-ket-macros', { 'bra': 'Bra', 'ket': 'Ket', 'innerproduct': 'BraKet', 'braket': 'BraKet', 'outerproduct': 'KetBra', 'dyad': 'KetBra', 'ketbra': 'KetBra', 'op': 'KetBra', 'expectationvalue': 'Expectation', 'expval': 'Expectation', 'ev': 'Expectation', 'matrixelement': 'MatrixElement', 'matrixel': 'MatrixElement', 'mel': 'MatrixElement', }, PhysicsMethods_js_1.default); new SymbolMap_js_1.CommandMap('Physics-matrix-macros', { 'matrixquantity': 'MatrixQuantity', 'mqty': 'MatrixQuantity', 'pmqty': ['Macro', '\\mqty(#1)', 1], 'Pmqty': ['Macro', '\\mqty*(#1)', 1], 'bmqty': ['Macro', '\\mqty[#1]', 1], 'vmqty': ['Macro', '\\mqty|#1|', 1], 'smallmatrixquantity': ['MatrixQuantity', true], 'smqty': ['MatrixQuantity', true], 'spmqty': ['Macro', '\\smqty(#1)', 1], 'sPmqty': ['Macro', '\\smqty*(#1)', 1], 'sbmqty': ['Macro', '\\smqty[#1]', 1], 'svmqty': ['Macro', '\\smqty|#1|', 1], 'matrixdeterminant': ['Macro', '\\vmqty{#1}', 1], 'mdet': ['Macro', '\\vmqty{#1}', 1], 'smdet': ['Macro', '\\svmqty{#1}', 1], 'identitymatrix': 'IdentityMatrix', 'imat': 'IdentityMatrix', 'xmatrix': 'XMatrix', 'xmat': 'XMatrix', 'zeromatrix': ['Macro', '\\xmat{0}{#1}{#2}', 2], 'zmat': ['Macro', '\\xmat{0}{#1}{#2}', 2], 'paulimatrix': 'PauliMatrix', 'pmat': 'PauliMatrix', 'diagonalmatrix': 'DiagonalMatrix', 'dmat': 'DiagonalMatrix', 'antidiagonalmatrix': ['DiagonalMatrix', true], 'admat': ['DiagonalMatrix', true] }, PhysicsMethods_js_1.default); new SymbolMap_js_1.EnvironmentMap('Physics-aux-envs', ParseMethods_js_1.default.environment, { smallmatrix: ['Array', null, null, null, 'c', '0.333em', '.2em', 'S', 1] }, PhysicsMethods_js_1.default); new SymbolMap_js_1.MacroMap('Physics-characters', { '|': ['AutoClose', MmlNode_js_1.TEXCLASS.ORD], ')': 'AutoClose', ']': 'AutoClose' }, PhysicsMethods_js_1.default); //# sourceMappingURL=PhysicsMappings.js.map /***/ }), /* 284 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var SymbolMap_js_1 = __webpack_require__(3); var TexConstants_js_1 = __webpack_require__(13); var TextMacrosMethods_js_1 = __webpack_require__(87); new SymbolMap_js_1.MacroMap('text-special', { '$': 'Math', '%': 'Comment', '^': 'MathModeOnly', '_': 'MathModeOnly', '&': 'Misplaced', '#': 'Misplaced', '~': 'Tilde', ' ': 'Space', '\t': 'Space', '\r': 'Space', '\n': 'Space', '\u00A0': 'Tilde', '{': 'OpenBrace', '}': 'CloseBrace', '`': 'OpenQuote', '\'': 'CloseQuote' }, TextMacrosMethods_js_1.TextMacrosMethods); new SymbolMap_js_1.CommandMap('text-macros', { '(': 'Math', '$': 'SelfQuote', '_': 'SelfQuote', '%': 'SelfQuote', '{': 'SelfQuote', '}': 'SelfQuote', ' ': 'SelfQuote', '&': 'SelfQuote', '#': 'SelfQuote', '\\': 'SelfQuote', '\'': ['Accent', '\u00B4'], '\u2019': ['Accent', '\u00B4'], '`': ['Accent', '\u0060'], '\u2018': ['Accent', '\u0060'], '^': ['Accent', '^'], '\"': ['Accent', '\u00A8'], '~': ['Accent', '~'], '=': ['Accent', '\u00AF'], '.': ['Accent', '\u02D9'], 'u': ['Accent', '\u02D8'], 'v': ['Accent', '\u02C7'], emph: 'Emph', rm: ['SetFont', TexConstants_js_1.TexConstant.Variant.NORMAL], mit: ['SetFont', TexConstants_js_1.TexConstant.Variant.ITALIC], oldstyle: ['SetFont', TexConstants_js_1.TexConstant.Variant.OLDSTYLE], cal: ['SetFont', TexConstants_js_1.TexConstant.Variant.CALLIGRAPHIC], it: ['SetFont', '-tex-mathit'], bf: ['SetFont', TexConstants_js_1.TexConstant.Variant.BOLD], bbFont: ['SetFont', TexConstants_js_1.TexConstant.Variant.DOUBLESTRUCK], scr: ['SetFont', TexConstants_js_1.TexConstant.Variant.SCRIPT], frak: ['SetFont', TexConstants_js_1.TexConstant.Variant.FRAKTUR], sf: ['SetFont', TexConstants_js_1.TexConstant.Variant.SANSSERIF], tt: ['SetFont', TexConstants_js_1.TexConstant.Variant.MONOSPACE], tiny: ['SetSize', 0.5], Tiny: ['SetSize', 0.6], scriptsize: ['SetSize', 0.7], small: ['SetSize', 0.85], normalsize: ['SetSize', 1.0], large: ['SetSize', 1.2], Large: ['SetSize', 1.44], LARGE: ['SetSize', 1.73], huge: ['SetSize', 2.07], Huge: ['SetSize', 2.49], mathcal: 'MathModeOnly', mathscr: 'MathModeOnly', mathrm: 'MathModeOnly', mathbf: 'MathModeOnly', mathbb: 'MathModeOnly', mathit: 'MathModeOnly', mathfrak: 'MathModeOnly', mathsf: 'MathModeOnly', mathtt: 'MathModeOnly', Bbb: ['Macro', '{\\bbFont #1}', 1], textrm: ['Macro', '{\\rm #1}', 1], textit: ['Macro', '{\\it #1}', 1], textbf: ['Macro', '{\\bf #1}', 1], textsf: ['Macro', '{\\sf #1}', 1], texttt: ['Macro', '{\\tt #1}', 1], dagger: ['Insert', '\u2020'], ddagger: ['Insert', '\u2021'], S: ['Insert', '\u00A7'], ',': ['Spacer', TexConstants_js_1.TexConstant.Length.THINMATHSPACE], ':': ['Spacer', TexConstants_js_1.TexConstant.Length.MEDIUMMATHSPACE], '>': ['Spacer', TexConstants_js_1.TexConstant.Length.MEDIUMMATHSPACE], ';': ['Spacer', TexConstants_js_1.TexConstant.Length.THICKMATHSPACE], '!': ['Spacer', TexConstants_js_1.TexConstant.Length.NEGATIVETHINMATHSPACE], enspace: ['Spacer', '.5em'], quad: ['Spacer', '1em'], qquad: ['Spacer', '2em'], thinspace: ['Spacer', TexConstants_js_1.TexConstant.Length.THINMATHSPACE], negthinspace: ['Spacer', TexConstants_js_1.TexConstant.Length.NEGATIVETHINMATHSPACE], hskip: 'Hskip', hspace: 'Hskip', kern: 'Hskip', mskip: 'Hskip', mspace: 'Hskip', mkern: 'Hskip', rule: 'rule', Rule: ['Rule'], Space: ['Rule', 'blank'], color: 'CheckAutoload', textcolor: 'CheckAutoload', colorbox: 'CheckAutoload', fcolorbox: 'CheckAutoload', href: 'CheckAutoload', style: 'CheckAutoload', class: 'CheckAutoload', cssId: 'CheckAutoload', unicode: 'CheckAutoload', ref: ['HandleRef', false], eqref: ['HandleRef', true], }, TextMacrosMethods_js_1.TextMacrosMethods); //# sourceMappingURL=TextMacrosMappings.js.map /***/ }), /* 285 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonTeXFontMixin = void 0; function CommonTeXFontMixin(Base) { var _a; return _a = (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.getDelimiterData = function (n) { return this.getChar('-smallop', n) || this.getChar('-size4', n); }; return class_1; }(Base)), _a.defaultVariants = __spread(Base.defaultVariants, [ ['-smallop', 'normal'], ['-largeop', 'normal'], ['-size3', 'normal'], ['-size4', 'normal'], ['-tex-calligraphic', 'italic'], ['-tex-bold-calligraphic', 'bold-italic'], ['-tex-oldstyle', 'normal'], ['-tex-bold-oldstyle', 'bold'], ['-tex-mathit', 'italic'], ['-tex-variant', 'normal'] ]), _a.defaultCssFonts = __assign(__assign({}, Base.defaultCssFonts), { '-smallop': ['serif', false, false], '-largeop': ['serif', false, false], '-size3': ['serif', false, false], '-size4': ['serif', false, false], '-tex-calligraphic': ['cursive', true, false], '-tex-bold-calligraphic': ['cursive', true, true], '-tex-oldstyle': ['serif', false, false], '-tex-bold-oldstyle': ['serif', false, true], '-tex-mathit': ['serif', true, false] }), _a.defaultSizeVariants = ['normal', '-smallop', '-largeop', '-size3', '-size4'], _a; } exports.CommonTeXFontMixin = CommonTeXFontMixin; //# sourceMappingURL=tex.js.map /***/ }), /* 286 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var double_struck_js_1 = __webpack_require__(222); Object.defineProperty(exports, "doubleStruck", { enumerable: true, get: function () { return double_struck_js_1.doubleStruck; } }); //# sourceMappingURL=double-struck.js.map /***/ }), /* 287 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var script_bold_js_1 = __webpack_require__(243); Object.defineProperty(exports, "scriptBold", { enumerable: true, get: function () { return script_bold_js_1.scriptBold; } }); //# sourceMappingURL=script-bold.js.map /***/ }), /* 288 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var script_js_1 = __webpack_require__(244); Object.defineProperty(exports, "script", { enumerable: true, get: function () { return script_js_1.script; } }); //# sourceMappingURL=script.js.map /***/ }), /* 289 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tex_calligraphic_js_1 = __webpack_require__(249); Object.defineProperty(exports, "texCalligraphic", { enumerable: true, get: function () { return tex_calligraphic_js_1.texCalligraphic; } }); //# sourceMappingURL=tex-calligraphic.js.map /***/ }), /* 290 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tex_mathit_js_1 = __webpack_require__(250); Object.defineProperty(exports, "texMathit", { enumerable: true, get: function () { return tex_mathit_js_1.texMathit; } }); //# sourceMappingURL=tex-mathit.js.map /***/ }), /* 291 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tex_oldstyle_bold_js_1 = __webpack_require__(251); Object.defineProperty(exports, "texOldstyleBold", { enumerable: true, get: function () { return tex_oldstyle_bold_js_1.texOldstyleBold; } }); //# sourceMappingURL=tex-oldstyle-bold.js.map /***/ }), /* 292 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tex_oldstyle_js_1 = __webpack_require__(252); Object.defineProperty(exports, "texOldstyle", { enumerable: true, get: function () { return tex_oldstyle_js_1.texOldstyle; } }); //# sourceMappingURL=tex-oldstyle.js.map /***/ }), /* 293 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractNavigatable = void 0; var key_navigatable_js_1 = __webpack_require__(50); var mouse_navigatable_js_1 = __webpack_require__(294); var AbstractNavigatable = (function () { function AbstractNavigatable() { this.bubble = false; } AbstractNavigatable.prototype.bubbleKey = function () { this.bubble = true; }; AbstractNavigatable.prototype.keydown = function (event) { switch (event.keyCode) { case key_navigatable_js_1.KEY.ESCAPE: this.escape(event); break; case key_navigatable_js_1.KEY.RIGHT: this.right(event); break; case key_navigatable_js_1.KEY.LEFT: this.left(event); break; case key_navigatable_js_1.KEY.UP: this.up(event); break; case key_navigatable_js_1.KEY.DOWN: this.down(event); break; case key_navigatable_js_1.KEY.RETURN: case key_navigatable_js_1.KEY.SPACE: this.space(event); break; default: return; } this.bubble ? this.bubble = false : this.stop(event); }; AbstractNavigatable.prototype.escape = function (_event) { }; AbstractNavigatable.prototype.space = function (_event) { }; AbstractNavigatable.prototype.left = function (_event) { }; AbstractNavigatable.prototype.right = function (_event) { }; AbstractNavigatable.prototype.up = function (_event) { }; AbstractNavigatable.prototype.down = function (_event) { }; AbstractNavigatable.prototype.stop = function (event) { if (event) { event.stopPropagation(); event.preventDefault(); event.cancelBubble = true; } }; AbstractNavigatable.prototype.mousedown = function (event) { return this.stop(event); }; AbstractNavigatable.prototype.mouseup = function (event) { return this.stop(event); }; AbstractNavigatable.prototype.mouseover = function (event) { return this.stop(event); }; AbstractNavigatable.prototype.mouseout = function (event) { return this.stop(event); }; AbstractNavigatable.prototype.click = function (event) { return this.stop(event); }; AbstractNavigatable.prototype.addEvents = function (element) { element.addEventListener(mouse_navigatable_js_1.MOUSE.DOWN, this.mousedown.bind(this)); element.addEventListener(mouse_navigatable_js_1.MOUSE.UP, this.mouseup.bind(this)); element.addEventListener(mouse_navigatable_js_1.MOUSE.OVER, this.mouseover.bind(this)); element.addEventListener(mouse_navigatable_js_1.MOUSE.OUT, this.mouseout.bind(this)); element.addEventListener(mouse_navigatable_js_1.MOUSE.CLICK, this.click.bind(this)); element.addEventListener('keydown', this.keydown.bind(this)); element.addEventListener('dragstart', this.stop.bind(this)); element.addEventListener(mouse_navigatable_js_1.MOUSE.SELECTSTART, this.stop.bind(this)); element.addEventListener('contextmenu', this.stop.bind(this)); element.addEventListener(mouse_navigatable_js_1.MOUSE.DBLCLICK, this.stop.bind(this)); }; return AbstractNavigatable; }()); exports.AbstractNavigatable = AbstractNavigatable; //# sourceMappingURL=abstract_navigatable.js.map /***/ }), /* 294 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MOUSE = void 0; exports.MOUSE = { CLICK: 'click', DBLCLICK: 'dblclick', DOWN: 'mousedown', UP: 'mouseup', OVER: 'mouseover', OUT: 'mouseout', MOVE: 'mousemove', SELECTEND: 'selectend', SELECTSTART: 'selectstart' }; //# sourceMappingURL=mouse_navigatable.js.map /***/ }), /* 295 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MenuStore = void 0; var menu_util_js_1 = __webpack_require__(18); var html_classes_js_1 = __webpack_require__(10); var key_navigatable_js_1 = __webpack_require__(50); var MenuStore = (function () { function MenuStore(menu) { this.menu = menu; this.store = []; this._active = null; this.counter = 0; this.attachedClass = html_classes_js_1.HtmlClasses['ATTACHED'] + '_' + menu_util_js_1.MenuUtil.counter(); this.taborder = true; this.attrMap = {}; } Object.defineProperty(MenuStore.prototype, "active", { get: function () { return this._active; }, set: function (element) { do { if (this.store.indexOf(element) !== -1) { this._active = element; break; } element = element.parentNode; } while (element); }, enumerable: false, configurable: true }); MenuStore.prototype.next = function () { var length = this.store.length; if (length === 0) { this.active = null; return null; } var index = this.store.indexOf(this.active); index = index === -1 ? 0 : (index < length - 1 ? index + 1 : 0); this.active = this.store[index]; return this.active; }; MenuStore.prototype.previous = function () { var length = this.store.length; if (length === 0) { this.active = null; return null; } var last = length - 1; var index = this.store.indexOf(this.active); index = index === -1 ? last : (index === 0 ? last : index - 1); this.active = this.store[index]; return this.active; }; MenuStore.prototype.clear = function () { this.remove(this.store); }; MenuStore.prototype.insert = function (elementOrList) { var e_1, _a; var elements = elementOrList instanceof HTMLElement ? [elementOrList] : elementOrList; try { for (var elements_1 = __values(elements), elements_1_1 = elements_1.next(); !elements_1_1.done; elements_1_1 = elements_1.next()) { var element = elements_1_1.value; this.insertElement(element); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (elements_1_1 && !elements_1_1.done && (_a = elements_1.return)) _a.call(elements_1); } finally { if (e_1) throw e_1.error; } } this.sort(); }; MenuStore.prototype.remove = function (elementOrList) { var e_2, _a; var elements = elementOrList instanceof HTMLElement ? [elementOrList] : elementOrList; try { for (var elements_2 = __values(elements), elements_2_1 = elements_2.next(); !elements_2_1.done; elements_2_1 = elements_2.next()) { var element = elements_2_1.value; this.removeElement(element); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (elements_2_1 && !elements_2_1.done && (_a = elements_2.return)) _a.call(elements_2); } finally { if (e_2) throw e_2.error; } } this.sort(); }; MenuStore.prototype.inTaborder = function (flag) { if (this.taborder && !flag) { this.removeTaborder(); } if (!this.taborder && flag) { this.insertTaborder(); } this.taborder = flag; }; MenuStore.prototype.insertTaborder = function () { if (this.taborder) { this.insertTaborder_(); } }; MenuStore.prototype.removeTaborder = function () { if (this.taborder) { this.removeTaborder_(); } }; MenuStore.prototype.insertElement = function (element) { if (element.classList.contains(this.attachedClass)) { return; } element.classList.add(this.attachedClass); if (this.taborder) { this.addTabindex(element); } this.addEvents(element); }; MenuStore.prototype.removeElement = function (element) { if (!element.classList.contains(this.attachedClass)) { return; } element.classList.remove(this.attachedClass); if (this.taborder) { this.removeTabindex(element); } this.removeEvents(element); }; MenuStore.prototype.sort = function () { var nodes = document.getElementsByClassName(this.attachedClass); this.store = [].slice.call(nodes); }; MenuStore.prototype.insertTaborder_ = function () { this.store.forEach(function (x) { return x.setAttribute('tabindex', '0'); }); }; MenuStore.prototype.removeTaborder_ = function () { this.store.forEach(function (x) { return x.setAttribute('tabindex', '-1'); }); }; MenuStore.prototype.addTabindex = function (element) { if (element.hasAttribute('tabindex')) { element.setAttribute(html_classes_js_1.HtmlAttrs['OLDTAB'], element.getAttribute('tabindex')); } element.setAttribute('tabindex', '0'); }; MenuStore.prototype.removeTabindex = function (element) { if (element.hasAttribute(html_classes_js_1.HtmlAttrs['OLDTAB'])) { element.setAttribute('tabindex', element.getAttribute(html_classes_js_1.HtmlAttrs['OLDTAB'])); element.removeAttribute(html_classes_js_1.HtmlAttrs['OLDTAB']); } else { element.removeAttribute('tabindex'); } }; MenuStore.prototype.addEvents = function (element) { if (element.hasAttribute(html_classes_js_1.HtmlAttrs['COUNTER'])) { return; } this.addEvent(element, 'contextmenu', this.menu.post.bind(this.menu)); this.addEvent(element, 'keydown', this.keydown.bind(this)); element.setAttribute(html_classes_js_1.HtmlAttrs['COUNTER'], this.counter.toString()); this.counter++; }; MenuStore.prototype.addEvent = function (element, name, func) { var attrName = html_classes_js_1.HtmlAttrs[name.toUpperCase() + 'FUNC']; this.attrMap[attrName + this.counter] = func; element.addEventListener(name, func); }; MenuStore.prototype.removeEvents = function (element) { if (!element.hasAttribute(html_classes_js_1.HtmlAttrs['COUNTER'])) { return; } var counter = element.getAttribute(html_classes_js_1.HtmlAttrs['COUNTER']); this.removeEvent(element, 'contextmenu', counter); this.removeEvent(element, 'keydown', counter); element.removeAttribute(html_classes_js_1.HtmlAttrs['COUNTER']); }; MenuStore.prototype.removeEvent = function (element, name, counter) { var attrName = html_classes_js_1.HtmlAttrs[name.toUpperCase() + 'FUNC']; var menuFunc = this.attrMap[attrName + counter]; element.removeEventListener(name, menuFunc); }; MenuStore.prototype.keydown = function (event) { if (event.keyCode === key_navigatable_js_1.KEY.SPACE) { this.menu.post(event); event.preventDefault(); event.stopImmediatePropagation(); } }; return MenuStore; }()); exports.MenuStore = MenuStore; //# sourceMappingURL=menu_store.js.map /***/ }), /* 296 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VariablePool = void 0; var VariablePool = (function () { function VariablePool() { this.pool = {}; } VariablePool.prototype.insert = function (variable) { this.pool[variable.name] = variable; }; VariablePool.prototype.lookup = function (name) { return this.pool[name]; }; VariablePool.prototype.remove = function (name) { delete this.pool[name]; }; VariablePool.prototype.update = function () { for (var variable in this.pool) { this.pool[variable].update(); } }; return VariablePool; }()); exports.VariablePool = VariablePool; //# sourceMappingURL=variable_pool.js.map /***/ }), /* 297 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CloseButton = void 0; var abstract_postable_js_1 = __webpack_require__(100); var html_classes_js_1 = __webpack_require__(10); var CloseButton = (function (_super) { __extends(CloseButton, _super); function CloseButton(element) { var _this = _super.call(this) || this; _this.element = element; _this.className = html_classes_js_1.HtmlClasses['MENUCLOSE']; _this.role = 'button'; return _this; } CloseButton.prototype.generateHtml = function () { var html = document.createElement('span'); html.classList.add(this.className); html.setAttribute('role', this.role); html.setAttribute('tabindex', '0'); var content = document.createElement('span'); content.textContent = '\u00D7'; html.appendChild(content); this.html = html; }; CloseButton.prototype.display = function () { }; CloseButton.prototype.unpost = function () { _super.prototype.unpost.call(this); this.element.unpost(); }; CloseButton.prototype.keydown = function (event) { this.bubbleKey(); _super.prototype.keydown.call(this, event); }; CloseButton.prototype.space = function (event) { this.unpost(); this.stop(event); }; CloseButton.prototype.mousedown = function (event) { this.unpost(); this.stop(event); }; return CloseButton; }(abstract_postable_js_1.AbstractPostable)); exports.CloseButton = CloseButton; //# sourceMappingURL=close_button.js.map /***/ }), /* 298 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Parser = void 0; var item_command_js_1 = __webpack_require__(299); var context_menu_js_1 = __webpack_require__(266); var variable_js_1 = __webpack_require__(300); var item_checkbox_js_1 = __webpack_require__(301); var item_combo_js_1 = __webpack_require__(302); var item_label_js_1 = __webpack_require__(303); var item_radio_js_1 = __webpack_require__(304); var item_submenu_js_1 = __webpack_require__(101); var item_rule_js_1 = __webpack_require__(269); var item_slider_js_1 = __webpack_require__(305); var sub_menu_js_1 = __webpack_require__(306); var selection_box_js_1 = __webpack_require__(307); var parser_factory_js_1 = __webpack_require__(308); var Parser = (function () { function Parser(init) { var _this = this; if (init === void 0) { init = []; } this._initList = [ ['command', item_command_js_1.Command.fromJson.bind(item_command_js_1.Command)], ['checkbox', item_checkbox_js_1.Checkbox.fromJson.bind(item_checkbox_js_1.Checkbox)], ['combo', item_combo_js_1.Combo.fromJson.bind(item_combo_js_1.Combo)], ['slider', item_slider_js_1.Slider.fromJson.bind(item_slider_js_1.Slider)], ['label', item_label_js_1.Label.fromJson.bind(item_label_js_1.Label)], ['radio', item_radio_js_1.Radio.fromJson.bind(item_radio_js_1.Radio)], ['rule', item_rule_js_1.Rule.fromJson.bind(item_rule_js_1.Rule)], ['submenu', item_submenu_js_1.Submenu.fromJson.bind(item_submenu_js_1.Submenu)], ['contextMenu', context_menu_js_1.ContextMenu.fromJson.bind(context_menu_js_1.ContextMenu)], ['subMenu', sub_menu_js_1.SubMenu.fromJson.bind(sub_menu_js_1.SubMenu)], ['variable', variable_js_1.Variable.fromJson.bind(variable_js_1.Variable)], ['items', this.items.bind(this)], ['selectionMenu', selection_box_js_1.SelectionMenu.fromJson.bind(selection_box_js_1.SelectionMenu)], ['selectionBox', selection_box_js_1.SelectionBox.fromJson.bind(selection_box_js_1.SelectionBox)] ]; this._factory = new parser_factory_js_1.ParserFactory(this._initList); init.forEach(function (_a) { var _b = __read(_a, 2), x = _b[0], y = _b[1]; return _this.factory.add(x, y); }); } Object.defineProperty(Parser.prototype, "factory", { get: function () { return this._factory; }, enumerable: false, configurable: true }); Parser.prototype.items = function (_factory, its, ctxt) { var e_1, _a; var hidden = []; try { for (var its_1 = __values(its), its_1_1 = its_1.next(); !its_1_1.done; its_1_1 = its_1.next()) { var item = its_1_1.value; var entry = this.parse(item, ctxt); if (!entry) { continue; } ctxt.items.push(entry); if (item.disabled) { entry.disable(); } if (item.hidden) { hidden.push(entry); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (its_1_1 && !its_1_1.done && (_a = its_1.return)) _a.call(its_1); } finally { if (e_1) throw e_1.error; } } hidden.forEach(function (x) { return x.hide(); }); return ctxt.items; }; Parser.prototype.parse = function (_a) { var rest = []; for (var _i = 1; _i < arguments.length; _i++) { rest[_i - 1] = arguments[_i]; } var kind = _a.type, json = __rest(_a, ["type"]); var func = this.factory.get(kind); return func ? func.apply(void 0, __spread([this.factory, json], rest)) : null; }; return Parser; }()); exports.Parser = Parser; //# sourceMappingURL=parse.js.map /***/ }), /* 299 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Command = void 0; var abstract_item_js_1 = __webpack_require__(36); var menu_util_js_1 = __webpack_require__(18); var Command = (function (_super) { __extends(Command, _super); function Command(menu, content, command, id) { var _this = _super.call(this, menu, 'command', content, id) || this; _this.command = command; return _this; } Command.fromJson = function (_factory, _a, menu) { var content = _a.content, action = _a.action, id = _a.id; return new this(menu, content, action, id); }; Command.prototype.executeAction = function () { try { this.command(menu_util_js_1.MenuUtil.getActiveElement(this)); } catch (e) { menu_util_js_1.MenuUtil.error(e, 'Illegal command callback.'); } menu_util_js_1.MenuUtil.close(this); }; Command.prototype.toJson = function () { return { type: '' }; }; return Command; }(abstract_item_js_1.AbstractItem)); exports.Command = Command; //# sourceMappingURL=item_command.js.map /***/ }), /* 300 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Variable = void 0; var menu_util_js_1 = __webpack_require__(18); var Variable = (function () { function Variable(_name, getter, setter) { this._name = _name; this.getter = getter; this.setter = setter; this.items = []; } Variable.fromJson = function (_factory, _a, pool) { var name = _a.name, getter = _a.getter, setter = _a.setter; var variable = new this(name, getter, setter); pool.insert(variable); }; Object.defineProperty(Variable.prototype, "name", { get: function () { return this._name; }, enumerable: false, configurable: true }); Variable.prototype.getValue = function (node) { try { return this.getter(node); } catch (e) { menu_util_js_1.MenuUtil.error(e, 'Command of variable ' + this.name + ' failed.'); return null; } }; Variable.prototype.setValue = function (value, node) { try { this.setter(value, node); } catch (e) { menu_util_js_1.MenuUtil.error(e, 'Command of variable ' + this.name + ' failed.'); } this.update(); }; Variable.prototype.register = function (item) { if (this.items.indexOf(item) === -1) { this.items.push(item); } }; Variable.prototype.unregister = function (item) { var index = this.items.indexOf(item); if (index !== -1) { this.items.splice(index, 1); } }; Variable.prototype.update = function () { this.items.forEach(function (x) { return x.update(); }); }; Variable.prototype.registerCallback = function (func) { this.items.forEach(function (x) { return x.registerCallback(func); }); }; Variable.prototype.unregisterCallback = function (func) { this.items.forEach(function (x) { return x.unregisterCallback(func); }); }; Variable.prototype.toJson = function () { return { type: 'variable', name: this.name, getter: this.getter.toString(), setter: this.setter.toString() }; }; return Variable; }()); exports.Variable = Variable; //# sourceMappingURL=variable.js.map /***/ }), /* 301 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Checkbox = void 0; var abstract_variable_item_js_1 = __webpack_require__(51); var menu_util_js_1 = __webpack_require__(18); var html_classes_js_1 = __webpack_require__(10); var Checkbox = (function (_super) { __extends(Checkbox, _super); function Checkbox(menu, content, variable, id) { var _this = _super.call(this, menu, 'checkbox', content, id) || this; _this.role = 'menuitemcheckbox'; _this.variable = menu.pool.lookup(variable); _this.register(); return _this; } Checkbox.fromJson = function (_factory, _a, menu) { var content = _a.content, variable = _a.variable, id = _a.id; return new this(menu, content, variable, id); }; Checkbox.prototype.executeAction = function () { this.variable.setValue(!this.variable.getValue()); menu_util_js_1.MenuUtil.close(this); }; Checkbox.prototype.generateSpan = function () { this.span = document.createElement('span'); this.span.textContent = '\u2713'; this.span.classList.add(html_classes_js_1.HtmlClasses['MENUCHECK']); }; Checkbox.prototype.updateAria = function () { this.html.setAttribute('aria-checked', this.variable.getValue() ? 'true' : 'false'); }; Checkbox.prototype.updateSpan = function () { this.span.style.display = this.variable.getValue() ? '' : 'none'; }; Checkbox.prototype.toJson = function () { return { type: '' }; }; return Checkbox; }(abstract_variable_item_js_1.AbstractVariableItem)); exports.Checkbox = Checkbox; //# sourceMappingURL=item_checkbox.js.map /***/ }), /* 302 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Combo = void 0; var abstract_variable_item_js_1 = __webpack_require__(51); var menu_util_js_1 = __webpack_require__(18); var html_classes_js_1 = __webpack_require__(10); var key_navigatable_js_1 = __webpack_require__(50); var Combo = (function (_super) { __extends(Combo, _super); function Combo(menu, content, variable, id) { var _this = _super.call(this, menu, 'combobox', content, id) || this; _this.role = 'combobox'; _this.inputEvent = false; _this.variable = menu.pool.lookup(variable); _this.register(); return _this; } Combo.fromJson = function (_factory, _a, menu) { var content = _a.content, variable = _a.variable, id = _a.id; return new this(menu, content, variable, id); }; Combo.prototype.executeAction = function () { this.variable.setValue(this.input.value, menu_util_js_1.MenuUtil.getActiveElement(this)); }; Combo.prototype.space = function (event) { _super.prototype.space.call(this, event); menu_util_js_1.MenuUtil.close(this); }; Combo.prototype.focus = function () { _super.prototype.focus.call(this); this.input.focus(); }; Combo.prototype.unfocus = function () { _super.prototype.unfocus.call(this); this.updateSpan(); }; Combo.prototype.generateHtml = function () { _super.prototype.generateHtml.call(this); var html = this.html; html.classList.add(html_classes_js_1.HtmlClasses['MENUCOMBOBOX']); }; Combo.prototype.generateSpan = function () { this.span = document.createElement('span'); this.span.classList.add(html_classes_js_1.HtmlClasses['MENUINPUTBOX']); this.input = document.createElement('input'); this.input.addEventListener('keydown', this.inputKey.bind(this)); this.input.setAttribute('size', '10em'); this.input.setAttribute('type', 'text'); this.input.setAttribute('tabindex', '-1'); this.span.appendChild(this.input); }; Combo.prototype.inputKey = function (_event) { this.bubbleKey(); this.inputEvent = true; }; Combo.prototype.keydown = function (event) { if (this.inputEvent && event.keyCode !== key_navigatable_js_1.KEY.ESCAPE && event.keyCode !== key_navigatable_js_1.KEY.RETURN) { this.inputEvent = false; event.stopPropagation(); return; } _super.prototype.keydown.call(this, event); event.stopPropagation(); }; Combo.prototype.updateAria = function () { }; Combo.prototype.updateSpan = function () { var initValue; try { initValue = this.variable.getValue(menu_util_js_1.MenuUtil.getActiveElement(this)); } catch (e) { initValue = ''; } this.input.value = initValue; }; Combo.prototype.toJson = function () { return { type: '' }; }; return Combo; }(abstract_variable_item_js_1.AbstractVariableItem)); exports.Combo = Combo; //# sourceMappingURL=item_combo.js.map /***/ }), /* 303 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Label = void 0; var abstract_item_js_1 = __webpack_require__(36); var html_classes_js_1 = __webpack_require__(10); var Label = (function (_super) { __extends(Label, _super); function Label(menu, content, id) { return _super.call(this, menu, 'label', content, id) || this; } Label.fromJson = function (_factory, _a, menu) { var content = _a.content, id = _a.id; return new this(menu, content, id); }; Label.prototype.generateHtml = function () { _super.prototype.generateHtml.call(this); var html = this.html; html.classList.add(html_classes_js_1.HtmlClasses['MENULABEL']); }; Label.prototype.toJson = function () { return { type: '' }; }; return Label; }(abstract_item_js_1.AbstractItem)); exports.Label = Label; //# sourceMappingURL=item_label.js.map /***/ }), /* 304 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Radio = void 0; var abstract_variable_item_js_1 = __webpack_require__(51); var menu_util_js_1 = __webpack_require__(18); var html_classes_js_1 = __webpack_require__(10); var Radio = (function (_super) { __extends(Radio, _super); function Radio(menu, content, variable, id) { var _this = _super.call(this, menu, 'radio', content, id) || this; _this.role = 'menuitemradio'; _this.variable = menu.pool.lookup(variable); _this.register(); return _this; } Radio.fromJson = function (_factory, _a, menu) { var content = _a.content, variable = _a.variable, id = _a.id; return new this(menu, content, variable, id); }; Radio.prototype.executeAction = function () { this.variable.setValue(this.id); menu_util_js_1.MenuUtil.close(this); }; Radio.prototype.generateSpan = function () { this.span = document.createElement('span'); this.span.textContent = '\u2713'; this.span.classList.add(html_classes_js_1.HtmlClasses['MENURADIOCHECK']); }; Radio.prototype.updateAria = function () { this.html.setAttribute('aria-checked', this.variable.getValue() === this.id ? 'true' : 'false'); }; Radio.prototype.updateSpan = function () { this.span.style.display = this.variable.getValue() === this.id ? '' : 'none'; }; Radio.prototype.toJson = function () { return { type: '' }; }; return Radio; }(abstract_variable_item_js_1.AbstractVariableItem)); exports.Radio = Radio; //# sourceMappingURL=item_radio.js.map /***/ }), /* 305 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Slider = void 0; var abstract_variable_item_js_1 = __webpack_require__(51); var menu_util_js_1 = __webpack_require__(18); var html_classes_js_1 = __webpack_require__(10); var key_navigatable_js_1 = __webpack_require__(50); var Slider = (function (_super) { __extends(Slider, _super); function Slider(menu, content, variable, id) { var _this = _super.call(this, menu, 'slider', content, id) || this; _this.role = 'slider'; _this.labelId = 'ctx_slideLabel' + menu_util_js_1.MenuUtil.counter(); _this.valueId = 'ctx_slideValue' + menu_util_js_1.MenuUtil.counter(); _this.inputEvent = false; _this.variable = menu.pool.lookup(variable); _this.register(); return _this; } Slider.fromJson = function (_factory, _a, menu) { var content = _a.content, variable = _a.variable, id = _a.id; return new this(menu, content, variable, id); }; Slider.prototype.executeAction = function () { this.variable.setValue(this.input.value, menu_util_js_1.MenuUtil.getActiveElement(this)); this.update(); }; Slider.prototype.space = function (event) { _super.prototype.space.call(this, event); menu_util_js_1.MenuUtil.close(this); }; Slider.prototype.focus = function () { _super.prototype.focus.call(this); this.input.focus(); }; Slider.prototype.unfocus = function () { _super.prototype.unfocus.call(this); this.updateSpan(); }; Slider.prototype.generateHtml = function () { _super.prototype.generateHtml.call(this); var html = this.html; html.classList.add(html_classes_js_1.HtmlClasses['MENUSLIDER']); this.valueSpan = document.createElement('span'); this.valueSpan.setAttribute('id', this.valueId); this.valueSpan.classList.add(html_classes_js_1.HtmlClasses['SLIDERVALUE']); this.html.appendChild(this.valueSpan); }; Slider.prototype.generateSpan = function () { this.span = document.createElement('span'); this.labelSpan = document.createElement('span'); this.labelSpan.setAttribute('id', this.labelId); this.labelSpan.appendChild(this.html.childNodes[0]); this.html.appendChild(this.labelSpan); this.input = document.createElement('input'); this.input.setAttribute('type', 'range'); this.input.setAttribute('min', '0'); this.input.setAttribute('max', '100'); this.input.setAttribute('aria-valuemin', '0'); this.input.setAttribute('aria-valuemax', '100'); this.input.setAttribute('aria-labelledby', this.labelId); this.input.addEventListener('keydown', this.inputKey.bind(this)); this.input.addEventListener('input', this.executeAction.bind(this)); this.input.classList.add(html_classes_js_1.HtmlClasses['SLIDERBAR']); this.span.appendChild(this.input); }; Slider.prototype.inputKey = function (_event) { this.inputEvent = true; }; Slider.prototype.mousedown = function (event) { event.stopPropagation(); }; Slider.prototype.mouseup = function (_event) { event.stopPropagation(); }; Slider.prototype.keydown = function (event) { var code = event.keyCode; if (code === key_navigatable_js_1.KEY.UP || code === key_navigatable_js_1.KEY.DOWN) { event.preventDefault(); _super.prototype.keydown.call(this, event); return; } if (this.inputEvent && code !== key_navigatable_js_1.KEY.ESCAPE && code !== key_navigatable_js_1.KEY.RETURN) { this.inputEvent = false; event.stopPropagation(); return; } _super.prototype.keydown.call(this, event); event.stopPropagation(); }; Slider.prototype.updateAria = function () { var value = this.variable.getValue(); if (value && this.input) { this.input.setAttribute('aria-valuenow', value); this.input.setAttribute('aria-valuetext', value + '%'); } }; Slider.prototype.updateSpan = function () { var initValue; try { initValue = this.variable.getValue(menu_util_js_1.MenuUtil.getActiveElement(this)); this.valueSpan.innerHTML = initValue + '%'; } catch (e) { initValue = ''; } this.input.value = initValue; }; Slider.prototype.toJson = function () { return { type: '' }; }; return Slider; }(abstract_variable_item_js_1.AbstractVariableItem)); exports.Slider = Slider; //# sourceMappingURL=item_slider.js.map /***/ }), /* 306 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SubMenu = void 0; var abstract_menu_js_1 = __webpack_require__(99); var SubMenu = (function (_super) { __extends(SubMenu, _super); function SubMenu(_anchor) { var _this = _super.call(this) || this; _this._anchor = _anchor; _this.variablePool = _this.anchor.menu.pool; _this.setBaseMenu(); return _this; } SubMenu.fromJson = function (factory, _a, anchor) { var its = _a.items; var submenu = new this(anchor); var itemList = factory.get('items')(factory, its, submenu); submenu.items = itemList; return submenu; }; Object.defineProperty(SubMenu.prototype, "anchor", { get: function () { return this._anchor; }, enumerable: false, configurable: true }); SubMenu.prototype.post = function () { if (!this.anchor.menu.isPosted()) { return; } var mobileFlag = false; var rtlFlag = false; var margin = 5; var parent = this.anchor.html; var menu = this.html; var base = this.baseMenu.frame; var mw = parent.offsetWidth; var x = (mobileFlag ? 30 : mw - 2); var y = 0; while (parent && parent !== base) { x += parent.offsetLeft; y += parent.offsetTop; parent = parent.parentNode; } if (!mobileFlag) { if ((rtlFlag && x - mw - menu.offsetWidth > margin) || (!rtlFlag && x + menu.offsetWidth > document.body.offsetWidth - margin)) { x = Math.max(margin, x - mw - menu.offsetWidth + 6); } } _super.prototype.post.call(this, x, y); }; SubMenu.prototype.display = function () { this.baseMenu.frame.appendChild(this.html); }; SubMenu.prototype.setBaseMenu = function () { var menu = this; do { menu = menu.anchor.menu; } while (menu instanceof SubMenu); this.baseMenu = menu; }; SubMenu.prototype.left = function (_event) { this.focused = null; this.anchor.focus(); }; SubMenu.prototype.toJson = function () { return { type: '' }; }; return SubMenu; }(abstract_menu_js_1.AbstractMenu)); exports.SubMenu = SubMenu; //# sourceMappingURL=sub_menu.js.map /***/ }), /* 307 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SelectionBox = exports.SelectionMenu = void 0; var menu_util_js_1 = __webpack_require__(18); var html_classes_js_1 = __webpack_require__(10); var abstract_menu_js_1 = __webpack_require__(99); var info_js_1 = __webpack_require__(102); var SelectionMenu = (function (_super) { __extends(SelectionMenu, _super); function SelectionMenu(anchor) { var _this = _super.call(this) || this; _this.anchor = anchor; _this.className = html_classes_js_1.HtmlClasses['SELECTIONMENU']; _this.variablePool = _this.anchor.menu.pool; _this.baseMenu = _this.anchor.menu; return _this; } SelectionMenu.fromJson = function (factory, _a, sb) { var title = _a.title, values = _a.values, variable = _a.variable; var selection = new this(sb); var tit = factory.get('label')(factory, { content: title || '', id: title || 'id' }, selection); var rul = factory.get('rule')(factory, {}, selection); var radios = values.map(function (x) { return factory.get('radio')(factory, { content: x, variable: variable, id: x }, selection); }); var items = [tit, rul].concat(radios); selection.items = items; return selection; }; SelectionMenu.prototype.generateHtml = function () { _super.prototype.generateHtml.call(this); this.items.forEach(function (item) { return item.html.classList.add(html_classes_js_1.HtmlClasses['SELECTIONITEM']); }); }; SelectionMenu.prototype.display = function () { }; SelectionMenu.prototype.right = function (event) { this.anchor.right(event); }; SelectionMenu.prototype.left = function (event) { this.anchor.left(event); }; return SelectionMenu; }(abstract_menu_js_1.AbstractMenu)); exports.SelectionMenu = SelectionMenu; var SelectionBox = (function (_super) { __extends(SelectionBox, _super); function SelectionBox(title, signature, style, grid) { if (style === void 0) { style = "none"; } if (grid === void 0) { grid = "vertical"; } var _this = _super.call(this, title, null, signature) || this; _this.style = style; _this.grid = grid; _this._selections = []; _this.prefix = 'ctxt-selection'; _this._balanced = true; return _this; } SelectionBox.fromJson = function (factory, _a, ctxt) { var title = _a.title, signature = _a.signature, selections = _a.selections, order = _a.order, grid = _a.grid; var sb = new this(title, signature, order, grid); sb.attachMenu(ctxt); var sels = selections.map(function (x) { return factory.get('selectionMenu')(factory, x, sb); }); sb.selections = sels; return sb; }; SelectionBox.prototype.attachMenu = function (menu) { this.menu = menu; }; Object.defineProperty(SelectionBox.prototype, "selections", { get: function () { return this._selections; }, set: function (selections) { var _this = this; this._selections = []; selections.forEach(function (x) { return _this.addSelection(x); }); }, enumerable: false, configurable: true }); SelectionBox.prototype.addSelection = function (selection) { selection.anchor = this; this._selections.push(selection); }; SelectionBox.prototype.rowDiv = function (sels) { var _this = this; var div = document.createElement('div'); this.contentDiv.appendChild(div); var rects = sels.map(function (sel) { div.appendChild(sel.html); if (!sel.html.id) { sel.html.id = _this.prefix + menu_util_js_1.MenuUtil.counter(); } return sel.html.getBoundingClientRect(); }); var column = rects.map(function (x) { return x.width; }); var width = column.reduce(function (x, y) { return x + y; }, 0); var height = rects.reduce(function (x, y) { return Math.max(x, y.height); }, 0); div.classList.add(html_classes_js_1.HtmlClasses['SELECTIONDIVIDER']); div.setAttribute('style', 'height: ' + height + 'px;'); return [div, width, height, column]; }; SelectionBox.prototype.display = function () { _super.prototype.display.call(this); this.order(); if (!this.selections.length) { return; } var outerDivs = []; var maxWidth = 0; var balancedColumn = []; var chunks = this.getChunkSize(this.selections.length); var _loop_1 = function (i) { var sels = this_1.selections.slice(i, i + chunks); var _a = __read(this_1.rowDiv(sels), 4), div = _a[0], width = _a[1], height = _a[2], column = _a[3]; outerDivs.push(div); maxWidth = Math.max(maxWidth, width); sels.forEach(function (sel) { return sel.html.style.height = height + 'px'; }); balancedColumn = this_1.combineColumn(balancedColumn, column); }; var this_1 = this; for (var i = 0; i < this.selections.length; i += chunks) { _loop_1(i); } if (this._balanced) { this.balanceColumn(outerDivs, balancedColumn); maxWidth = balancedColumn.reduce(function (x, y) { return x + y; }, 20); } outerDivs.forEach(function (div) { return div.style.width = maxWidth + 'px'; }); }; SelectionBox.prototype.getChunkSize = function (size) { switch (this.grid) { case "square": return Math.floor(Math.sqrt(size)); case "horizontal": return Math.floor(size / SelectionBox.chunkSize); case "vertical": default: return SelectionBox.chunkSize; } }; SelectionBox.prototype.balanceColumn = function (divs, column) { divs.forEach(function (div) { var children = Array.from(div.children); for (var i = 0, child = void 0; child = children[i]; i++) { child.style.width = column[i] + 'px'; } }); }; SelectionBox.prototype.combineColumn = function (col1, col2) { var result = []; var i = 0; while (col1[i] || col2[i]) { if (!col1[i]) { result = result.concat(col2.slice(i)); break; } if (!col2[i]) { result = result.concat(col1.slice(i)); break; } result.push(Math.max(col1[i], col2[i])); i++; } ; return result; }; SelectionBox.prototype.left = function (event) { var _this = this; this.move(event, function (index) { return (index === 0 ? _this.selections.length : index) - 1; }); }; SelectionBox.prototype.right = function (event) { var _this = this; this.move(event, function (index) { return index === _this.selections.length - 1 ? 0 : index + 1; }); }; SelectionBox.prototype.generateHtml = function () { _super.prototype.generateHtml.call(this); this.html.classList.add(html_classes_js_1.HtmlClasses['SELECTION']); }; SelectionBox.prototype.generateContent = function () { var div = _super.prototype.generateContent.call(this); div.classList.add(html_classes_js_1.HtmlClasses['SELECTIONBOX']); div.removeAttribute('tabindex'); return div; }; SelectionBox.prototype.findSelection = function (event) { var target = event.target; var selection = null; if (target.id) { selection = this.selections.find(function (x) { return x.html.id === target.id; }); } if (!selection) { var id_1 = target.parentElement.id; selection = this.selections.find(function (x) { return x.html.id === id_1; }); } return selection; }; SelectionBox.prototype.move = function (event, isNext) { var selection = this.findSelection(event); if (selection.focused) { selection.focused.unfocus(); } var index = this.selections.indexOf(selection); var next = isNext(index); this.selections[next].focus(); }; SelectionBox.prototype.order = function () { this.selections.sort(SelectionBox.orderMethod.get(this.style)); }; SelectionBox.prototype.toJson = function () { return { type: '' }; }; SelectionBox.chunkSize = 4; SelectionBox.orderMethod = new Map([ ["alphabetical", function (x, y) { return x.items[0].content.localeCompare(y.items[0].content); }], ["none", function (_x, _y) { return 1; }], ["decreasing", function (x, y) { var xl = x.items.length; var yl = y.items.length; return (xl < yl) ? 1 : ((yl < xl) ? -1 : 0); }], ["increasing", function (x, y) { var xl = x.items.length; var yl = y.items.length; return (xl < yl) ? -1 : ((yl < xl) ? 1 : 0); }], ]); return SelectionBox; }(info_js_1.Info)); exports.SelectionBox = SelectionBox; //# sourceMappingURL=selection_box.js.map /***/ }), /* 308 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ParserFactory = void 0; var ParserFactory = (function () { function ParserFactory(init) { this._parser = new Map(init); } ParserFactory.prototype.get = function (name) { return this._parser.get(name); }; ParserFactory.prototype.add = function (name, method) { this._parser.set(name, method); }; return ParserFactory; }()); exports.ParserFactory = ParserFactory; //# sourceMappingURL=parser_factory.js.map /***/ }), /* 309 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CssStyles = void 0; var html_classes_js_1 = __webpack_require__(10); var CssStyles; (function (CssStyles) { function makeClass_(name) { return '.' + (html_classes_js_1.HtmlClasses[name] || name); } var INFO_STYLES = {}; INFO_STYLES[makeClass_('INFOCLOSE')] = '{' + ' top:.2em; right:.2em;' + '}', INFO_STYLES[makeClass_('INFOCONTENT')] = '{' + ' overflow:auto; text-align:left; font-size:80%;' + ' padding:.4em .6em; border:1px inset; margin:1em 0px;' + ' max-height:20em; max-width:30em; background-color:#EEEEEE;' + ' white-space:normal;' + '}', INFO_STYLES[makeClass_('INFO') + makeClass_('MOUSEPOST')] = '{' + 'outline:none;' + '}', INFO_STYLES[makeClass_('INFO')] = '{' + ' position:fixed; left:50%; width:auto; text-align:center;' + ' border:3px outset; padding:1em 2em; background-color:#DDDDDD;' + ' color:black;' + ' cursor:default; font-family:message-box; font-size:120%;' + ' font-style:normal; text-indent:0; text-transform:none;' + ' line-height:normal; letter-spacing:normal; word-spacing:normal;' + ' word-wrap:normal; white-space:nowrap; float:none; z-index:201;' + ' border-radius: 15px; /* Opera 10.5 and IE9 */' + ' -webkit-border-radius:15px; /* Safari and Chrome */' + ' -moz-border-radius:15px; /* Firefox */' + ' -khtml-border-radius:15px; /* Konqueror */' + ' box-shadow:0px 10px 20px #808080; /* Opera 10.5 and IE9 */' + ' -webkit-box-shadow:0px 10px 20px #808080; /* Safari 3 & Chrome */' + ' -moz-box-shadow:0px 10px 20px #808080; /* Forefox 3.5 */' + ' -khtml-box-shadow:0px 10px 20px #808080; /* Konqueror */' + ' filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=2,' + ' OffY=2, Color="gray", Positive="true"); /* IE */' + '}'; var MENU_STYLES = {}; MENU_STYLES[makeClass_('MENU')] = '{' + ' position:absolute;' + ' background-color:white;' + ' color:black;' + ' width:auto; padding:5px 0px;' + ' border:1px solid #CCCCCC; margin:0; cursor:default;' + ' font: menu; text-align:left; text-indent:0; text-transform:none;' + ' line-height:normal; letter-spacing:normal; word-spacing:normal;' + ' word-wrap:normal; white-space:nowrap; float:none; z-index:201;' + ' border-radius: 5px; /* Opera 10.5 and IE9 */' + ' -webkit-border-radius: 5px; /* Safari and Chrome */' + ' -moz-border-radius: 5px; /* Firefox */' + ' -khtml-border-radius: 5px; /* Konqueror */' + ' box-shadow:0px 10px 20px #808080; /* Opera 10.5 and IE9 */' + ' -webkit-box-shadow:0px 10px 20px #808080; /* Safari 3 & Chrome */' + ' -moz-box-shadow:0px 10px 20px #808080; /* Forefox 3.5 */' + ' -khtml-box-shadow:0px 10px 20px #808080; /* Konqueror */' + '}', MENU_STYLES[makeClass_('MENUITEM')] = '{' + ' padding: 1px 2em;' + ' background:transparent;' + '}', MENU_STYLES[makeClass_('MENUARROW')] = '{' + ' position:absolute; right:.5em; padding-top:.25em; color:#666666;' + ' font-family: null; font-size: .75em' + '}', MENU_STYLES[makeClass_('MENUACTIVE') + ' ' + makeClass_('MENUARROW')] = '{color:white}', MENU_STYLES[makeClass_('MENUARROW') + makeClass_('RTL')] = '{left:.5em; right:auto}', MENU_STYLES[makeClass_('MENUCHECK')] = '{' + ' position:absolute; left:.7em;' + ' font-family: null' + '}', MENU_STYLES[makeClass_('MENUCHECK') + makeClass_('RTL')] = '{ right:.7em; left:auto }', MENU_STYLES[makeClass_('MENURADIOCHECK')] = '{' + ' position:absolute; left: .7em;' + '}', MENU_STYLES[makeClass_('MENURADIOCHECK') + makeClass_('RTL')] = '{' + ' right: .7em; left:auto' + '}', MENU_STYLES[makeClass_('MENUINPUTBOX')] = '{' + ' padding-left: 1em; right:.5em; color:#666666;' + ' font-family: null;' + '}', MENU_STYLES[makeClass_('MENUINPUTBOX') + makeClass_('RTL')] = '{' + ' left: .1em;' + '}', MENU_STYLES[makeClass_('MENUCOMBOBOX')] = '{' + ' left:.1em; padding-bottom:.5em;' + '}', MENU_STYLES[makeClass_('MENUSLIDER')] = '{' + ' left: .1em;' + '}', MENU_STYLES[makeClass_('SLIDERVALUE')] = '{' + ' position:absolute; right:.1em; padding-top:.25em; color:#333333;' + ' font-size: .75em' + '}', MENU_STYLES[makeClass_('SLIDERBAR')] = '{' + ' outline: none; background: #d3d3d3' + '}', MENU_STYLES[makeClass_('MENULABEL')] = '{' + ' padding: 1px 2em 3px 1.33em;' + ' font-style:italic' + '}', MENU_STYLES[makeClass_('MENURULE')] = '{' + ' border-top: 1px solid #DDDDDD;' + ' margin: 4px 3px;' + '}', MENU_STYLES[makeClass_('MENUDISABLED')] = '{' + ' color:GrayText' + '}', MENU_STYLES[makeClass_('MENUACTIVE')] = '{' + ' background-color: #606872;' + ' color: white;' + '}', MENU_STYLES[makeClass_('MENUDISABLED') + ':focus'] = '{' + ' background-color: #E8E8E8' + '}', MENU_STYLES[makeClass_('MENULABEL') + ':focus'] = '{' + ' background-color: #E8E8E8' + '}', MENU_STYLES[makeClass_('CONTEXTMENU') + ':focus'] = '{' + ' outline:none' + '}', MENU_STYLES[makeClass_('CONTEXTMENU') + ' ' + makeClass_('MENUITEM') + ':focus'] = '{' + ' outline:none' + '}', MENU_STYLES[makeClass_('SELECTIONMENU')] = '{' + ' position:relative; float:left;' + ' border-bottom: none;' + ' -webkit-box-shadow:none;' + ' -webkit-border-radius:0px; ' + '}', MENU_STYLES[makeClass_('SELECTIONITEM')] = '{' + ' padding-right: 1em;' + '}', MENU_STYLES[makeClass_('SELECTION')] = '{' + ' right: 40%; width:50%; ' + '}', MENU_STYLES[makeClass_('SELECTIONBOX')] = '{' + ' padding: 0em; max-height:20em; max-width: none;' + ' background-color:#FFFFFF;' + '}', MENU_STYLES[makeClass_('SELECTIONDIVIDER')] = '{' + ' clear: both; border-top: 2px solid #000000;' + '}', MENU_STYLES[makeClass_('MENU') + ' ' + makeClass_('MENUCLOSE')] = '{' + ' top:-10px; left:-10px' + '}'; var CLOSE_ICON_STYLES = {}; CLOSE_ICON_STYLES[makeClass_('MENUCLOSE')] = '{' + ' position:absolute;' + ' cursor:pointer;' + ' display:inline-block;' + ' border:2px solid #AAA;' + ' border-radius:18px;' + ' -webkit-border-radius: 18px; /* Safari and Chrome */' + ' -moz-border-radius: 18px; /* Firefox */' + ' -khtml-border-radius: 18px; /* Konqueror */' + ' font-family: "Courier New", Courier;' + ' font-size:24px;' + ' color:#F0F0F0' + '}', CLOSE_ICON_STYLES[makeClass_('MENUCLOSE') + ' span'] = '{' + ' display:block; background-color:#AAA; border:1.5px solid;' + ' border-radius:18px;' + ' -webkit-border-radius: 18px; /* Safari and Chrome */' + ' -moz-border-radius: 18px; /* Firefox */' + ' -khtml-border-radius: 18px; /* Konqueror */' + ' line-height:0;' + ' padding:8px 0 6px /* may need to be browser-specific */' + '}', CLOSE_ICON_STYLES[makeClass_('MENUCLOSE') + ':hover'] = '{' + ' color:white!important;' + ' border:2px solid #CCC!important' + '}', CLOSE_ICON_STYLES[makeClass_('MENUCLOSE') + ':hover span'] = '{' + ' background-color:#CCC!important' + '}', CLOSE_ICON_STYLES[makeClass_('MENUCLOSE') + ':hover:focus'] = '{' + ' outline:none' + '}'; var INFO_ADDED = false; var MENU_ADDED = false; var CLOSE_ICON_ADDED = false; function addMenuStyles(opt_document) { if (MENU_ADDED) { return; } addStyles_(MENU_STYLES, opt_document); MENU_ADDED = true; addCloseIconStyles_(opt_document); } CssStyles.addMenuStyles = addMenuStyles; function addInfoStyles(opt_document) { if (INFO_ADDED) { return; } addStyles_(INFO_STYLES, opt_document); INFO_ADDED = true; addCloseIconStyles_(opt_document); } CssStyles.addInfoStyles = addInfoStyles; function addCloseIconStyles_(opt_document) { if (CLOSE_ICON_ADDED) { return; } addStyles_(CLOSE_ICON_STYLES, opt_document); CLOSE_ICON_ADDED = true; } function addStyles_(styles, opt_document) { var doc = opt_document || document; var element = doc.createElement('style'); element.type = 'text/css'; var inner = ''; for (var style in styles) { inner += style; inner += ' '; inner += styles[style]; inner += '\n'; } element.innerHTML = inner; doc.head.appendChild(element); } })(CssStyles = exports.CssStyles || (exports.CssStyles = {})); //# sourceMappingURL=css_util.js.map /***/ }), /* 310 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/components/global.js var global = __webpack_require__(1); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/components/loader.js var loader = __webpack_require__(11); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/components/package.js var components_package = __webpack_require__(25); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/components/startup.js var startup = __webpack_require__(270); // CONCATENATED MODULE: ../startup/lib/startup.js Object(global["combineWithMathJax"])({ _: { components: { loader: loader, "package": components_package, startup: startup } } }); // CONCATENATED MODULE: ./preload.js loader["Loader"].preLoad('loader', 'startup', 'core', 'input/tex-full', 'output/chtml', 'output/chtml/fonts/tex.js', 'ui/menu', 'a11y/assistive-mml'); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/adaptors/HTMLAdaptor.js var HTMLAdaptor = __webpack_require__(103); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/adaptors/browserAdaptor.js var browserAdaptor = __webpack_require__(93); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/DOMAdaptor.js var DOMAdaptor = __webpack_require__(104); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/FindMath.js var FindMath = __webpack_require__(105); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/Handler.js var Handler = __webpack_require__(106); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/HandlerList.js var HandlerList = __webpack_require__(118); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/InputJax.js var InputJax = __webpack_require__(53); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MathDocument.js var MathDocument = __webpack_require__(52); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MathItem.js var MathItem = __webpack_require__(15); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MathList.js var MathList = __webpack_require__(55); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/Attributes.js var Attributes = __webpack_require__(26); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MML.js var MML = __webpack_require__(109); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MathMLVisitor.js var MathMLVisitor = __webpack_require__(271); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlFactory.js var MmlFactory = __webpack_require__(56); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNode.js var MmlNode = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/TeXAtom.js var TeXAtom = __webpack_require__(78); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/maction.js var maction = __webpack_require__(70); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/maligngroup.js var maligngroup = __webpack_require__(114); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/malignmark.js var malignmark = __webpack_require__(115); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/math.js var math = __webpack_require__(58); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mathchoice.js var mathchoice = __webpack_require__(116); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/menclose.js var menclose = __webpack_require__(69); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/merror.js var merror = __webpack_require__(112); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mfenced.js var mfenced = __webpack_require__(68); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mfrac.js var mfrac = __webpack_require__(64); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mglyph.js var mglyph = __webpack_require__(76); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mi.js var mi = __webpack_require__(38); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mmultiscripts.js var mmultiscripts = __webpack_require__(72); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mn.js var mn = __webpack_require__(59); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mo.js var mo = __webpack_require__(32); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mpadded.js var mpadded = __webpack_require__(67); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mphantom.js var mphantom = __webpack_require__(113); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mroot.js var mroot = __webpack_require__(66); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mrow.js var mrow = __webpack_require__(63); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/ms.js var ms = __webpack_require__(62); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mspace.js var mspace = __webpack_require__(61); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/msqrt.js var msqrt = __webpack_require__(65); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mstyle.js var mstyle = __webpack_require__(111); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/msubsup.js var msubsup = __webpack_require__(39); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mtable.js var mtable = __webpack_require__(73); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mtd.js var mtd = __webpack_require__(75); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mtext.js var mtext = __webpack_require__(60); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/mtr.js var mtr = __webpack_require__(74); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/munderover.js var munderover = __webpack_require__(71); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlNodes/semantics.js var semantics = __webpack_require__(77); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/MmlVisitor.js var MmlVisitor = __webpack_require__(79); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/OperatorDictionary.js var OperatorDictionary = __webpack_require__(110); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/MmlTree/SerializedMmlVisitor.js var SerializedMmlVisitor = __webpack_require__(80); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/OutputJax.js var OutputJax = __webpack_require__(54); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/Tree/Factory.js var Factory = __webpack_require__(37); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/Tree/Node.js var Node = __webpack_require__(57); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/Tree/NodeFactory.js var NodeFactory = __webpack_require__(108); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/Tree/Visitor.js var Visitor = __webpack_require__(119); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/Tree/Wrapper.js var Wrapper = __webpack_require__(120); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/core/Tree/WrapperFactory.js var WrapperFactory = __webpack_require__(121); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/handlers/html.js var html = __webpack_require__(272); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/handlers/html/HTMLDocument.js var HTMLDocument = __webpack_require__(122); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/handlers/html/HTMLDomStrings.js var HTMLDomStrings = __webpack_require__(125); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/handlers/html/HTMLHandler.js var HTMLHandler = __webpack_require__(49); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/handlers/html/HTMLMathItem.js var HTMLMathItem = __webpack_require__(123); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/handlers/html/HTMLMathList.js var HTMLMathList = __webpack_require__(124); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/mathjax.js var mathjax = __webpack_require__(27); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/util/AsyncLoad.js var AsyncLoad = __webpack_require__(126); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/util/BBox.js var BBox = __webpack_require__(16); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/util/BitField.js var BitField = __webpack_require__(117); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/util/Entities.js var Entities = __webpack_require__(20); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/util/FunctionList.js var FunctionList = __webpack_require__(31); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/util/LinkedList.js var LinkedList = __webpack_require__(107); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/util/Options.js var Options = __webpack_require__(6); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/util/PrioritizedList.js var PrioritizedList = __webpack_require__(22); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/util/Retries.js var Retries = __webpack_require__(40); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/util/StyleList.js var StyleList = __webpack_require__(127); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/util/Styles.js var Styles = __webpack_require__(81); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/util/lengths.js var lengths = __webpack_require__(19); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/util/numeric.js var numeric = __webpack_require__(128); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/util/string.js var string = __webpack_require__(14); // CONCATENATED MODULE: ../core/lib/core.js Object(global["combineWithMathJax"])({ _: { adaptors: { HTMLAdaptor: HTMLAdaptor, browserAdaptor: browserAdaptor }, components: { global: global }, core: { DOMAdaptor: DOMAdaptor, FindMath: FindMath, Handler: Handler, HandlerList: HandlerList, InputJax: InputJax, MathDocument: MathDocument, MathItem: MathItem, MathList: MathList, MmlTree: { Attributes: Attributes, MML: MML, MathMLVisitor: MathMLVisitor, MmlFactory: MmlFactory, MmlNode: MmlNode, MmlNodes: { TeXAtom: TeXAtom, maction: maction, maligngroup: maligngroup, malignmark: malignmark, math: math, mathchoice: mathchoice, menclose: menclose, merror: merror, mfenced: mfenced, mfrac: mfrac, mglyph: mglyph, mi: mi, mmultiscripts: mmultiscripts, mn: mn, mo: mo, mpadded: mpadded, mphantom: mphantom, mroot: mroot, mrow: mrow, ms: ms, mspace: mspace, msqrt: msqrt, mstyle: mstyle, msubsup: msubsup, mtable: mtable, mtd: mtd, mtext: mtext, mtr: mtr, munderover: munderover, semantics: semantics }, MmlVisitor: MmlVisitor, OperatorDictionary: OperatorDictionary, SerializedMmlVisitor: SerializedMmlVisitor }, OutputJax: OutputJax, Tree: { Factory: Factory, Node: Node, NodeFactory: NodeFactory, Visitor: Visitor, Wrapper: Wrapper, WrapperFactory: WrapperFactory } }, handlers: { html_ts: html, html: { HTMLDocument: HTMLDocument, HTMLDomStrings: HTMLDomStrings, HTMLHandler: HTMLHandler, HTMLMathItem: HTMLMathItem, HTMLMathList: HTMLMathList } }, mathjax: mathjax, util: { AsyncLoad: AsyncLoad, BBox: BBox, BitField: BitField, Entities: Entities, FunctionList: FunctionList, LinkedList: LinkedList, Options: Options, PrioritizedList: PrioritizedList, Retries: Retries, StyleList: StyleList, Styles: Styles, lengths: lengths, numeric: numeric, string: string } } }); // CONCATENATED MODULE: ../core/core.js if (MathJax.startup) { MathJax.startup.registerConstructor('HTMLHandler', HTMLHandler["HTMLHandler"]); MathJax.startup.registerConstructor('browserAdaptor', browserAdaptor["browserAdaptor"]); MathJax.startup.useHandler('HTMLHandler'); MathJax.startup.useAdaptor('browserAdaptor'); } if (MathJax.loader) { MathJax._.mathjax.mathjax.asyncLoad = function (name) { return MathJax.loader.load(name); }; } // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex.js var input_tex = __webpack_require__(94); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/AllPackages.js var AllPackages = __webpack_require__(95); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/Configuration.js var Configuration = __webpack_require__(2); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/FilterUtil.js var FilterUtil = __webpack_require__(130); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/FindTeX.js var FindTeX = __webpack_require__(129); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/MapHandler.js var MapHandler = __webpack_require__(33); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/NodeFactory.js var tex_NodeFactory = __webpack_require__(41); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/NodeUtil.js var NodeUtil = __webpack_require__(7); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/ParseMethods.js var ParseMethods = __webpack_require__(24); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/ParseOptions.js var ParseOptions = __webpack_require__(83); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/ParseUtil.js var ParseUtil = __webpack_require__(8); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/Stack.js var Stack = __webpack_require__(82); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/StackItem.js var StackItem = __webpack_require__(23); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/StackItemFactory.js var StackItemFactory = __webpack_require__(131); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/Symbol.js var tex_Symbol = __webpack_require__(28); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/SymbolMap.js var SymbolMap = __webpack_require__(3); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/Tags.js var Tags = __webpack_require__(21); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/TexConstants.js var TexConstants = __webpack_require__(13); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/TexError.js var TexError = __webpack_require__(4); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/TexParser.js var TexParser = __webpack_require__(12); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/action/ActionConfiguration.js var ActionConfiguration = __webpack_require__(132); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/amscd/AmsCdConfiguration.js var AmsCdConfiguration = __webpack_require__(135); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/amscd/AmsCdMethods.js var AmsCdMethods = __webpack_require__(136); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/ams/AmsConfiguration.js var AmsConfiguration = __webpack_require__(133); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/ams/AmsItems.js var AmsItems = __webpack_require__(134); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/ams/AmsMethods.js var AmsMethods = __webpack_require__(34); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/autoload/AutoloadConfiguration.js var AutoloadConfiguration = __webpack_require__(273); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/base/BaseConfiguration.js var BaseConfiguration = __webpack_require__(42); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/base/BaseItems.js var BaseItems = __webpack_require__(29); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/base/BaseMethods.js var BaseMethods = __webpack_require__(17); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/bbox/BboxConfiguration.js var BboxConfiguration = __webpack_require__(137); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/boldsymbol/BoldsymbolConfiguration.js var BoldsymbolConfiguration = __webpack_require__(138); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/braket/BraketConfiguration.js var BraketConfiguration = __webpack_require__(139); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/braket/BraketItems.js var BraketItems = __webpack_require__(140); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/braket/BraketMethods.js var BraketMethods = __webpack_require__(141); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/bussproofs/BussproofsConfiguration.js var BussproofsConfiguration = __webpack_require__(142); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/bussproofs/BussproofsItems.js var BussproofsItems = __webpack_require__(143); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/bussproofs/BussproofsMethods.js var BussproofsMethods = __webpack_require__(144); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/bussproofs/BussproofsUtil.js var BussproofsUtil = __webpack_require__(43); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/cancel/CancelConfiguration.js var CancelConfiguration = __webpack_require__(145); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/colorv2/ColorV2Configuration.js var ColorV2Configuration = __webpack_require__(150); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/color/ColorConfiguration.js var ColorConfiguration = __webpack_require__(146); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/color/ColorConstants.js var ColorConstants = __webpack_require__(149); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/color/ColorMethods.js var ColorMethods = __webpack_require__(147); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/color/ColorUtil.js var ColorUtil = __webpack_require__(148); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/configmacros/ConfigMacrosConfiguration.js var ConfigMacrosConfiguration = __webpack_require__(151); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/enclose/EncloseConfiguration.js var EncloseConfiguration = __webpack_require__(84); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/extpfeil/ExtpfeilConfiguration.js var ExtpfeilConfiguration = __webpack_require__(152); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/html/HtmlConfiguration.js var HtmlConfiguration = __webpack_require__(154); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/html/HtmlMethods.js var HtmlMethods = __webpack_require__(155); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/mhchem/MhchemConfiguration.js var MhchemConfiguration = __webpack_require__(156); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/newcommand/NewcommandConfiguration.js var NewcommandConfiguration = __webpack_require__(86); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/newcommand/NewcommandItems.js var NewcommandItems = __webpack_require__(153); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/newcommand/NewcommandMethods.js var NewcommandMethods = __webpack_require__(85); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/newcommand/NewcommandUtil.js var NewcommandUtil = __webpack_require__(44); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/noerrors/NoErrorsConfiguration.js var NoErrorsConfiguration = __webpack_require__(157); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/noundefined/NoUndefinedConfiguration.js var NoUndefinedConfiguration = __webpack_require__(158); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/physics/PhysicsConfiguration.js var PhysicsConfiguration = __webpack_require__(159); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/physics/PhysicsItems.js var PhysicsItems = __webpack_require__(160); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/physics/PhysicsMethods.js var PhysicsMethods = __webpack_require__(161); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/require/RequireConfiguration.js var RequireConfiguration = __webpack_require__(88); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/tagformat/TagFormatConfiguration.js var TagFormatConfiguration = __webpack_require__(162); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/textmacros/TextMacrosConfiguration.js var TextMacrosConfiguration = __webpack_require__(163); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/textmacros/TextMacrosMethods.js var TextMacrosMethods = __webpack_require__(87); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/textmacros/TextParser.js var TextParser = __webpack_require__(164); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/unicode/UnicodeConfiguration.js var UnicodeConfiguration = __webpack_require__(165); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/input/tex/verb/VerbConfiguration.js var VerbConfiguration = __webpack_require__(166); // CONCATENATED MODULE: ../input/tex-full/lib/tex-full.js Object(global["combineWithMathJax"])({ _: { input: { tex_ts: input_tex, tex: { AllPackages: AllPackages, Configuration: Configuration, FilterUtil: FilterUtil, FindTeX: FindTeX, MapHandler: MapHandler, NodeFactory: tex_NodeFactory, NodeUtil: NodeUtil, ParseMethods: ParseMethods, ParseOptions: ParseOptions, ParseUtil: ParseUtil, Stack: Stack, StackItem: StackItem, StackItemFactory: StackItemFactory, Symbol: tex_Symbol, SymbolMap: SymbolMap, Tags: Tags, TexConstants: TexConstants, TexError: TexError, TexParser: TexParser, action: { ActionConfiguration: ActionConfiguration }, amscd: { AmsCdConfiguration: AmsCdConfiguration, AmsCdMethods: AmsCdMethods }, ams: { AmsConfiguration: AmsConfiguration, AmsItems: AmsItems, AmsMethods: AmsMethods }, autoload: { AutoloadConfiguration: AutoloadConfiguration }, base: { BaseConfiguration: BaseConfiguration, BaseItems: BaseItems, BaseMethods: BaseMethods }, bbox: { BboxConfiguration: BboxConfiguration }, boldsymbol: { BoldsymbolConfiguration: BoldsymbolConfiguration }, braket: { BraketConfiguration: BraketConfiguration, BraketItems: BraketItems, BraketMethods: BraketMethods }, bussproofs: { BussproofsConfiguration: BussproofsConfiguration, BussproofsItems: BussproofsItems, BussproofsMethods: BussproofsMethods, BussproofsUtil: BussproofsUtil }, cancel: { CancelConfiguration: CancelConfiguration }, colorv2: { ColorV2Configuration: ColorV2Configuration }, color: { ColorConfiguration: ColorConfiguration, ColorConstants: ColorConstants, ColorMethods: ColorMethods, ColorUtil: ColorUtil }, configmacros: { ConfigMacrosConfiguration: ConfigMacrosConfiguration }, enclose: { EncloseConfiguration: EncloseConfiguration }, extpfeil: { ExtpfeilConfiguration: ExtpfeilConfiguration }, html: { HtmlConfiguration: HtmlConfiguration, HtmlMethods: HtmlMethods }, mhchem: { MhchemConfiguration: MhchemConfiguration }, newcommand: { NewcommandConfiguration: NewcommandConfiguration, NewcommandItems: NewcommandItems, NewcommandMethods: NewcommandMethods, NewcommandUtil: NewcommandUtil }, noerrors: { NoErrorsConfiguration: NoErrorsConfiguration }, noundefined: { NoUndefinedConfiguration: NoUndefinedConfiguration }, physics: { PhysicsConfiguration: PhysicsConfiguration, PhysicsItems: PhysicsItems, PhysicsMethods: PhysicsMethods }, require: { RequireConfiguration: RequireConfiguration }, tagformat: { TagFormatConfiguration: TagFormatConfiguration }, textmacros: { TextMacrosConfiguration: TextMacrosConfiguration, TextMacrosMethods: TextMacrosMethods, TextParser: TextParser }, unicode: { UnicodeConfiguration: UnicodeConfiguration }, verb: { VerbConfiguration: VerbConfiguration } } } } }); // CONCATENATED MODULE: ../input/tex/register.js function registerTeX(packageList) { if (MathJax.startup) { MathJax.startup.registerConstructor('tex', input_tex["TeX"]); MathJax.startup.useInput('tex'); if (!MathJax.config.tex) { MathJax.config.tex = {}; } var packages = MathJax.config.tex.packages; MathJax.config.tex.packages = packageList; if (packages) { Object(Options["insert"])(MathJax.config.tex, { packages: packages }); } } } // CONCATENATED MODULE: ../input/tex/extensions/rename.js function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } // // Look for a package name in the package list and change it to a new name // and rename tex options for it, if there are any. // function rename(oname, nname, options) { var tex = MathJax.config.tex; if (tex && tex.packages) { var packages = tex.packages; var n = packages.indexOf(oname); if (n >= 0) packages[n] = nname; if (options && tex[oname]) { Object(global["combineConfig"])(tex, _defineProperty({}, nname, tex[oname])); delete tex[oname]; } } } // CONCATENATED MODULE: ../input/tex-full/tex-full.js function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } loader["Loader"].preLoad('input/tex-base', '[tex]/all-packages', '[tex]/require'); registerTeX(['require'].concat(_toConsumableArray(AllPackages["AllPackages"]))); rename('amsCd', 'amscd', true); rename('colorV2', 'colorv2', false); rename('configMacros', 'configmacros', false); rename('tagFormat', 'tagformat', true); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml.js var chtml = __webpack_require__(96); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/FontData.js var FontData = __webpack_require__(9); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Notation.js var Notation = __webpack_require__(190); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrapper.js var chtml_Wrapper = __webpack_require__(5); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/WrapperFactory.js var chtml_WrapperFactory = __webpack_require__(168); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers.js var Wrappers = __webpack_require__(170); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/TeXAtom.js var Wrappers_TeXAtom = __webpack_require__(214); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/TextNode.js var TextNode = __webpack_require__(216); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/maction.js var Wrappers_maction = __webpack_require__(209); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/math.js var Wrappers_math = __webpack_require__(172); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/menclose.js var Wrappers_menclose = __webpack_require__(188); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mfenced.js var Wrappers_mfenced = __webpack_require__(192); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mfrac.js var Wrappers_mfrac = __webpack_require__(194); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mglyph.js var Wrappers_mglyph = __webpack_require__(210); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mi.js var Wrappers_mi = __webpack_require__(174); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mmultiscripts.js var Wrappers_mmultiscripts = __webpack_require__(202); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mn.js var Wrappers_mn = __webpack_require__(178); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mo.js var Wrappers_mo = __webpack_require__(176); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mpadded.js var Wrappers_mpadded = __webpack_require__(186); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mroot.js var Wrappers_mroot = __webpack_require__(197); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mrow.js var Wrappers_mrow = __webpack_require__(191); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/ms.js var Wrappers_ms = __webpack_require__(180); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mspace.js var Wrappers_mspace = __webpack_require__(184); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/msqrt.js var Wrappers_msqrt = __webpack_require__(90); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/msubsup.js var Wrappers_msubsup = __webpack_require__(46); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mtable.js var Wrappers_mtable = __webpack_require__(204); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mtd.js var Wrappers_mtd = __webpack_require__(207); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mtext.js var Wrappers_mtext = __webpack_require__(182); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mtr.js var Wrappers_mtr = __webpack_require__(206); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/munderover.js var Wrappers_munderover = __webpack_require__(201); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/scriptbase.js var scriptbase = __webpack_require__(199); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/semantics.js var Wrappers_semantics = __webpack_require__(212); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/FontData.js var common_FontData = __webpack_require__(30); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Notation.js var common_Notation = __webpack_require__(45); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/OutputJax.js var common_OutputJax = __webpack_require__(167); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrapper.js var common_Wrapper = __webpack_require__(171); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/WrapperFactory.js var common_WrapperFactory = __webpack_require__(169); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/TeXAtom.js var common_Wrappers_TeXAtom = __webpack_require__(215); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/TextNode.js var Wrappers_TextNode = __webpack_require__(217); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/maction.js var common_Wrappers_maction = __webpack_require__(92); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/math.js var common_Wrappers_math = __webpack_require__(173); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/menclose.js var common_Wrappers_menclose = __webpack_require__(189); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mfenced.js var common_Wrappers_mfenced = __webpack_require__(193); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mfrac.js var common_Wrappers_mfrac = __webpack_require__(195); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mglyph.js var common_Wrappers_mglyph = __webpack_require__(211); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mi.js var common_Wrappers_mi = __webpack_require__(175); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mmultiscripts.js var common_Wrappers_mmultiscripts = __webpack_require__(203); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mn.js var common_Wrappers_mn = __webpack_require__(179); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mo.js var common_Wrappers_mo = __webpack_require__(177); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mpadded.js var common_Wrappers_mpadded = __webpack_require__(187); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mroot.js var common_Wrappers_mroot = __webpack_require__(198); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mrow.js var common_Wrappers_mrow = __webpack_require__(89); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/ms.js var common_Wrappers_ms = __webpack_require__(181); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mspace.js var common_Wrappers_mspace = __webpack_require__(185); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/msqrt.js var common_Wrappers_msqrt = __webpack_require__(196); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/msubsup.js var common_Wrappers_msubsup = __webpack_require__(47); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mtable.js var common_Wrappers_mtable = __webpack_require__(205); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mtd.js var common_Wrappers_mtd = __webpack_require__(208); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mtext.js var common_Wrappers_mtext = __webpack_require__(183); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mtr.js var common_Wrappers_mtr = __webpack_require__(91); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/munderover.js var common_Wrappers_munderover = __webpack_require__(48); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/scriptbase.js var Wrappers_scriptbase = __webpack_require__(200); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/semantics.js var common_Wrappers_semantics = __webpack_require__(213); // CONCATENATED MODULE: ../output/chtml/lib/chtml.js Object(global["combineWithMathJax"])({ _: { output: { chtml_ts: chtml, chtml: { FontData: FontData, Notation: Notation, Wrapper: chtml_Wrapper, WrapperFactory: chtml_WrapperFactory, Wrappers_ts: Wrappers, Wrappers: { TeXAtom: Wrappers_TeXAtom, TextNode: TextNode, maction: Wrappers_maction, math: Wrappers_math, menclose: Wrappers_menclose, mfenced: Wrappers_mfenced, mfrac: Wrappers_mfrac, mglyph: Wrappers_mglyph, mi: Wrappers_mi, mmultiscripts: Wrappers_mmultiscripts, mn: Wrappers_mn, mo: Wrappers_mo, mpadded: Wrappers_mpadded, mroot: Wrappers_mroot, mrow: Wrappers_mrow, ms: Wrappers_ms, mspace: Wrappers_mspace, msqrt: Wrappers_msqrt, msubsup: Wrappers_msubsup, mtable: Wrappers_mtable, mtd: Wrappers_mtd, mtext: Wrappers_mtext, mtr: Wrappers_mtr, munderover: Wrappers_munderover, scriptbase: scriptbase, semantics: Wrappers_semantics } }, common: { FontData: common_FontData, Notation: common_Notation, OutputJax: common_OutputJax, Wrapper: common_Wrapper, WrapperFactory: common_WrapperFactory, Wrappers: { TeXAtom: common_Wrappers_TeXAtom, TextNode: Wrappers_TextNode, maction: common_Wrappers_maction, math: common_Wrappers_math, menclose: common_Wrappers_menclose, mfenced: common_Wrappers_mfenced, mfrac: common_Wrappers_mfrac, mglyph: common_Wrappers_mglyph, mi: common_Wrappers_mi, mmultiscripts: common_Wrappers_mmultiscripts, mn: common_Wrappers_mn, mo: common_Wrappers_mo, mpadded: common_Wrappers_mpadded, mroot: common_Wrappers_mroot, mrow: common_Wrappers_mrow, ms: common_Wrappers_ms, mspace: common_Wrappers_mspace, msqrt: common_Wrappers_msqrt, msubsup: common_Wrappers_msubsup, mtable: common_Wrappers_mtable, mtd: common_Wrappers_mtd, mtext: common_Wrappers_mtext, mtr: common_Wrappers_mtr, munderover: common_Wrappers_munderover, scriptbase: Wrappers_scriptbase, semantics: common_Wrappers_semantics } } } } }); // CONCATENATED MODULE: ../output/chtml/chtml.js if (MathJax.loader) { Object(global["combineDefaults"])(MathJax.config.loader, 'output/chtml', { checkReady: function checkReady() { return MathJax.loader.load("output/chtml/fonts/tex"); } }); } if (MathJax.startup) { MathJax.startup.registerConstructor('chtml', chtml["CHTML"]); MathJax.startup.useOutput('chtml'); } // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex.js var fonts_tex = __webpack_require__(35); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/bold-italic.js var bold_italic = __webpack_require__(218); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/bold.js var bold = __webpack_require__(220); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/fraktur-bold.js var fraktur_bold = __webpack_require__(223); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/fraktur.js var fraktur = __webpack_require__(225); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/italic.js var italic = __webpack_require__(227); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/largeop.js var largeop = __webpack_require__(229); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/monospace.js var monospace = __webpack_require__(231); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/normal.js var normal = __webpack_require__(233); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/sans-serif-bold-italic.js var sans_serif_bold_italic = __webpack_require__(235); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/sans-serif-bold.js var sans_serif_bold = __webpack_require__(237); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/sans-serif-italic.js var sans_serif_italic = __webpack_require__(239); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/sans-serif.js var sans_serif = __webpack_require__(241); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/smallop.js var smallop = __webpack_require__(245); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/tex-calligraphic-bold.js var tex_calligraphic_bold = __webpack_require__(247); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/tex-size3.js var tex_size3 = __webpack_require__(253); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/tex-size4.js var tex_size4 = __webpack_require__(255); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/tex-variant.js var tex_variant = __webpack_require__(257); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/bold-italic.js var tex_bold_italic = __webpack_require__(219); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/bold.js var tex_bold = __webpack_require__(221); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/delimiters.js var delimiters = __webpack_require__(259); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/double-struck.js var double_struck = __webpack_require__(222); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/fraktur-bold.js var tex_fraktur_bold = __webpack_require__(224); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/fraktur.js var tex_fraktur = __webpack_require__(226); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/italic.js var tex_italic = __webpack_require__(228); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/largeop.js var tex_largeop = __webpack_require__(230); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/monospace.js var tex_monospace = __webpack_require__(232); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/normal.js var tex_normal = __webpack_require__(234); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/sans-serif-bold-italic.js var tex_sans_serif_bold_italic = __webpack_require__(236); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/sans-serif-bold.js var tex_sans_serif_bold = __webpack_require__(238); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/sans-serif-italic.js var tex_sans_serif_italic = __webpack_require__(240); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/sans-serif.js var tex_sans_serif = __webpack_require__(242); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/script-bold.js var script_bold = __webpack_require__(243); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/script.js var script = __webpack_require__(244); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/smallop.js var tex_smallop = __webpack_require__(246); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/tex-calligraphic-bold.js var tex_tex_calligraphic_bold = __webpack_require__(248); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/tex-calligraphic.js var tex_calligraphic = __webpack_require__(249); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/tex-mathit.js var tex_mathit = __webpack_require__(250); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/tex-oldstyle-bold.js var tex_oldstyle_bold = __webpack_require__(251); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/tex-oldstyle.js var tex_oldstyle = __webpack_require__(252); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/tex-size3.js var tex_tex_size3 = __webpack_require__(254); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/tex-size4.js var tex_tex_size4 = __webpack_require__(256); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/tex-variant.js var tex_tex_variant = __webpack_require__(258); // CONCATENATED MODULE: ../output/chtml/fonts/tex/lib/tex.js Object(global["combineWithMathJax"])({ _: { output: { chtml: { fonts: { tex_ts: fonts_tex, tex: { "bold-italic": bold_italic, bold: bold, "fraktur-bold": fraktur_bold, fraktur: fraktur, italic: italic, largeop: largeop, monospace: monospace, normal: normal, "sans-serif-bold-italic": sans_serif_bold_italic, "sans-serif-bold": sans_serif_bold, "sans-serif-italic": sans_serif_italic, "sans-serif": sans_serif, smallop: smallop, "tex-calligraphic-bold": tex_calligraphic_bold, "tex-size3": tex_size3, "tex-size4": tex_size4, "tex-variant": tex_variant } } }, common: { fonts: { tex: { "bold-italic": tex_bold_italic, bold: tex_bold, delimiters: delimiters, "double-struck": double_struck, "fraktur-bold": tex_fraktur_bold, fraktur: tex_fraktur, italic: tex_italic, largeop: tex_largeop, monospace: tex_monospace, normal: tex_normal, "sans-serif-bold-italic": tex_sans_serif_bold_italic, "sans-serif-bold": tex_sans_serif_bold, "sans-serif-italic": tex_sans_serif_italic, "sans-serif": tex_sans_serif, "script-bold": script_bold, script: script, smallop: tex_smallop, "tex-calligraphic-bold": tex_tex_calligraphic_bold, "tex-calligraphic": tex_calligraphic, "tex-mathit": tex_mathit, "tex-oldstyle-bold": tex_oldstyle_bold, "tex-oldstyle": tex_oldstyle, "tex-size3": tex_tex_size3, "tex-size4": tex_tex_size4, "tex-variant": tex_tex_variant } } } } } }); // CONCATENATED MODULE: ../output/chtml/fonts/tex/tex.js if (MathJax.startup) { Object(global["combineDefaults"])(MathJax.config, 'chtml', { fontURL: components_package["Package"].resolvePath('output/chtml/fonts/woff-v2', false) }); var tex_options = Object(Options["selectOptionsFromKeys"])(MathJax.config.chtml || {}, fonts_tex["TeXFont"].OPTIONS); Object(global["combineDefaults"])(MathJax.config, 'chtml', { font: new fonts_tex["TeXFont"](tex_options) }); } // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/ui/menu/MJContextMenu.js var MJContextMenu = __webpack_require__(260); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/ui/menu/Menu.js var Menu = __webpack_require__(261); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/ui/menu/MenuHandler.js var MenuHandler = __webpack_require__(97); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/ui/menu/MmlVisitor.js var menu_MmlVisitor = __webpack_require__(262); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/ui/menu/SelectableInfo.js var SelectableInfo = __webpack_require__(263); // CONCATENATED MODULE: ../ui/menu/lib/menu.js Object(global["combineWithMathJax"])({ _: { ui: { menu: { MJContextMenu: MJContextMenu, Menu: Menu, MenuHandler: MenuHandler, MmlVisitor: menu_MmlVisitor, SelectableInfo: SelectableInfo } } } }); // CONCATENATED MODULE: ../ui/menu/menu.js if (MathJax.startup && typeof window !== 'undefined') { MathJax.startup.extendHandler(function (handler) { return Object(MenuHandler["MenuHandler"])(handler); }, 20); } // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/a11y/assistive-mml.js var assistive_mml = __webpack_require__(98); // CONCATENATED MODULE: ../a11y/assistive-mml/lib/assistive-mml.js Object(global["combineWithMathJax"])({ _: { a11y: { "assistive-mml": assistive_mml } } }); // CONCATENATED MODULE: ../a11y/assistive-mml/assistive-mml.js if (MathJax.startup) { MathJax.startup.extendHandler(function (handler) { return Object(assistive_mml["AssistiveMmlHandler"])(handler); }); } // CONCATENATED MODULE: ../dependencies.js var dependencies = { 'a11y/semantic-enrich': ['input/mml', '[sre]'], 'a11y/complexity': ['a11y/semantic-enrich'], 'a11y/explorer': ['a11y/semantic-enrich', 'ui/menu'], '[tex]/all-packages': ['input/tex-base'], '[tex]/action': ['input/tex-base', '[tex]/newcommand'], '[tex]/autoload': ['input/tex-base', '[tex]/require'], '[tex]/ams': ['input/tex-base'], '[tex]/amscd': ['input/tex-base'], '[tex]/bbox': ['input/tex-base', '[tex]/ams', '[tex]/newcommand'], '[tex]/boldsymbol': ['input/tex-base'], '[tex]/braket': ['input/tex-base'], '[tex]/bussproofs': ['input/tex-base'], '[tex]/cancel': ['input/tex-base', '[tex]/enclose'], '[tex]/color': ['input/tex-base'], '[tex]/colorv2': ['input/tex-base'], '[tex]/configmacros': ['input/tex-base', '[tex]/newcommand'], '[tex]/enclose': ['input/tex-base'], '[tex]/extpfeil': ['input/tex-base', '[tex]/newcommand', '[tex]/ams'], '[tex]/html': ['input/tex-base'], '[tex]/mhchem': ['input/tex-base', '[tex]/ams'], '[tex]/newcommand': ['input/tex-base'], '[tex]/noerrors': ['input/tex-base'], '[tex]/noundefined': ['input/tex-base'], '[tex]/physics': ['input/tex-base'], '[tex]/require': ['input/tex-base'], '[tex]/tagformat': ['input/tex-base'], '[tex]/textmacros': ['input/tex-base'], '[tex]/unicode': ['input/tex-base'], '[tex]/verb': ['input/tex-base'] }; var paths = { tex: '[mathjax]/input/tex/extensions', sre: '[mathjax]/sre/' + (typeof window === 'undefined' ? 'sre-node' : 'sre_browser') }; var allPackages = ['[tex]/action', '[tex]/ams', '[tex]/amscd', '[tex]/bbox', '[tex]/boldsymbol', '[tex]/braket', '[tex]/bussproofs', '[tex]/cancel', '[tex]/color', '[tex]/configmacros', '[tex]/enclose', '[tex]/extpfeil', '[tex]/html', '[tex]/mhchem', '[tex]/newcommand', '[tex]/noerrors', '[tex]/noundefined', '[tex]/physics', '[tex]/require', '[tex]/tagformat', '[tex]/textmacros', '[tex]/unicode', '[tex]/verb']; var provides = { 'startup': ['loader'], 'input/tex': ['input/tex-base', '[tex]/ams', '[tex]/newcommand', '[tex]/noundefined', '[tex]/require', '[tex]/autoload', '[tex]/configmacros'], 'input/tex-full': ['input/tex-base', '[tex]/all-packages'].concat(allPackages), '[tex]/all-packages': allPackages }; // // Compatibility with v3.0 names for TeX extensions // var compatibility = { '[tex]/amsCd': '[tex]/amscd', '[tex]/colorV2': '[tex]/colorv2', '[tex]/configMacros': '[tex]/configmacros', '[tex]/tagFormat': '[tex]/tagformat' }; // CONCATENATED MODULE: ../startup/startup.js function startup_toConsumableArray(arr) { return startup_arrayWithoutHoles(arr) || startup_iterableToArray(arr) || startup_unsupportedIterableToArray(arr) || startup_nonIterableSpread(); } function startup_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function startup_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return startup_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return startup_arrayLikeToArray(o, minLen); } function startup_iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } function startup_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return startup_arrayLikeToArray(arr); } function startup_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } Object(global["combineDefaults"])(MathJax.config.loader, 'dependencies', dependencies); Object(global["combineDefaults"])(MathJax.config.loader, 'paths', paths); Object(global["combineDefaults"])(MathJax.config.loader, 'provides', provides); Object(global["combineDefaults"])(MathJax.config.loader, 'source', compatibility); loader["Loader"].preLoad('loader'); loader["Loader"].load.apply(loader["Loader"], startup_toConsumableArray(loader["CONFIG"].load)).then(function () { return loader["CONFIG"].ready(); })["catch"](function (error) { return loader["CONFIG"].failed(error); }); // CONCATENATED MODULE: ./tex-chtml-full.js /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/output/0000755000176200001440000000000014005301544016343 5ustar liggesusersmathjaxr/src/mathjax/es5/output/svg.js0000644000176200001440000131656414005301544017520 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 106); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGWrapper = void 0; var Wrapper_js_1 = __webpack_require__(18); var svg_js_1 = __webpack_require__(9); var SVGWrapper = (function (_super) { __extends(SVGWrapper, _super); function SVGWrapper() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.element = null; return _this; } SVGWrapper.prototype.toSVG = function (parent) { this.addChildren(this.standardSVGnode(parent)); }; SVGWrapper.prototype.addChildren = function (parent) { var e_1, _a; var x = 0; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; child.toSVG(parent); if (child.element) { child.place(x + child.bbox.L * child.bbox.rscale, 0); } x += (child.bbox.L + child.bbox.w + child.bbox.R) * child.bbox.rscale; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; SVGWrapper.prototype.standardSVGnode = function (parent) { var svg = this.createSVGnode(parent); this.handleStyles(); this.handleScale(); this.handleColor(); this.handleAttributes(); return svg; }; SVGWrapper.prototype.createSVGnode = function (parent) { var href = this.node.attributes.get('href'); if (href) { parent = this.adaptor.append(parent, this.svg('a', { href: href })); var _a = this.getBBox(), h = _a.h, d = _a.d, w = _a.w; this.adaptor.append(parent, this.svg('rect', { 'data-hitbox': true, fill: 'none', stroke: 'none', 'pointer-events': 'all', width: this.fixed(w), height: this.fixed(h + d), y: this.fixed(-d) })); } this.element = this.adaptor.append(parent, this.svg('g', { 'data-mml-node': this.node.kind })); return this.element; }; SVGWrapper.prototype.handleStyles = function () { if (!this.styles) return; var styles = this.styles.cssText; if (styles) { this.adaptor.setAttribute(this.element, 'style', styles); } }; SVGWrapper.prototype.handleScale = function () { if (this.bbox.rscale !== 1) { var scale = 'scale(' + this.fixed(this.bbox.rscale / 1000, 3) + ')'; this.adaptor.setAttribute(this.element, 'transform', scale); } }; SVGWrapper.prototype.handleColor = function () { var adaptor = this.adaptor; var attributes = this.node.attributes; var mathcolor = attributes.getExplicit('mathcolor'); var color = attributes.getExplicit('color'); var mathbackground = attributes.getExplicit('mathbackground'); var background = attributes.getExplicit('background'); if (mathcolor || color) { adaptor.setAttribute(this.element, 'fill', mathcolor || color); adaptor.setAttribute(this.element, 'stroke', mathcolor || color); } if (mathbackground || background) { var _a = this.getBBox(), h = _a.h, d = _a.d, w = _a.w; var rect = this.svg('rect', { fill: mathbackground || background, x: 0, y: this.fixed(-d), width: this.fixed(w), height: this.fixed(h + d), 'data-bgcolor': true }); var child = adaptor.firstChild(this.element); if (child) { adaptor.insert(rect, child); } else { adaptor.append(this.element, rect); } } }; SVGWrapper.prototype.handleAttributes = function () { var e_2, _a, e_3, _b; var attributes = this.node.attributes; var defaults = attributes.getAllDefaults(); var skip = SVGWrapper.skipAttributes; try { for (var _c = __values(attributes.getExplicitNames()), _d = _c.next(); !_d.done; _d = _c.next()) { var name_1 = _d.value; if (skip[name_1] === false || (!(name_1 in defaults) && !skip[name_1] && !this.adaptor.hasAttribute(this.element, name_1))) { this.adaptor.setAttribute(this.element, name_1, attributes.getExplicit(name_1)); } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_2) throw e_2.error; } } if (attributes.get('class')) { var names = attributes.get('class').trim().split(/ +/); try { for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) { var name_2 = names_1_1.value; this.adaptor.addClass(this.element, name_2); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (names_1_1 && !names_1_1.done && (_b = names_1.return)) _b.call(names_1); } finally { if (e_3) throw e_3.error; } } } }; SVGWrapper.prototype.place = function (x, y, element) { if (element === void 0) { element = null; } if (!(x || y)) return; if (!element) { element = this.element; } var transform = this.adaptor.getAttribute(element, 'transform') || ''; transform = 'translate(' + this.fixed(x) + ', ' + this.fixed(y) + ')' + (transform ? ' ' + transform : ''); this.adaptor.setAttribute(element, 'transform', transform); }; SVGWrapper.prototype.placeChar = function (n, x, y, parent, variant) { var e_4, _a; if (variant === void 0) { variant = null; } if (variant === null) { variant = this.variant; } var C = n.toString(16).toUpperCase(); var _b = __read(this.getVariantChar(variant, n), 4), w = _b[2], data = _b[3]; if ('p' in data) { var path = (data.p ? 'M' + data.p + 'Z' : ''); this.place(x, y, this.adaptor.append(parent, this.charNode(variant, C, path))); } else if ('c' in data) { var g = this.adaptor.append(parent, this.svg('g', { 'data-c': C })); this.place(x, y, g); x = 0; try { for (var _c = __values(this.unicodeChars(data.c, variant)), _d = _c.next(); !_d.done; _d = _c.next()) { var n_1 = _d.value; x += this.placeChar(n_1, x, y, g, variant); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_4) throw e_4.error; } } } else if (data.unknown) { var char = String.fromCodePoint(n); var text = this.adaptor.append(parent, this.jax.unknownText(char, variant)); this.place(x, y, text); return this.jax.measureTextNodeWithCache(text, char, variant).w; } return w; }; SVGWrapper.prototype.charNode = function (variant, C, path) { var cache = this.jax.options.fontCache; return (cache !== 'none' ? this.useNode(variant, C, path) : this.pathNode(C, path)); }; SVGWrapper.prototype.pathNode = function (C, path) { return this.svg('path', { 'data-c': C, d: path }); }; SVGWrapper.prototype.useNode = function (variant, C, path) { var use = this.svg('use'); var id = '#' + this.jax.fontCache.cachePath(variant, C, path); this.adaptor.setAttribute(use, 'href', id, svg_js_1.XLINKNS); return use; }; SVGWrapper.prototype.drawBBox = function () { var _a = this.getBBox(), w = _a.w, h = _a.h, d = _a.d; var box = this.svg('g', { style: { opacity: .25 } }, [ this.svg('rect', { fill: 'red', height: this.fixed(h), width: this.fixed(w) }), this.svg('rect', { fill: 'green', height: this.fixed(d), width: this.fixed(w), y: this.fixed(-d) }) ]); var node = this.element || this.parent.element; this.adaptor.append(node, box); }; SVGWrapper.prototype.html = function (type, def, content) { if (def === void 0) { def = {}; } if (content === void 0) { content = []; } return this.jax.html(type, def, content); }; SVGWrapper.prototype.svg = function (type, def, content) { if (def === void 0) { def = {}; } if (content === void 0) { content = []; } return this.jax.svg(type, def, content); }; SVGWrapper.prototype.text = function (text) { return this.jax.text(text); }; SVGWrapper.prototype.fixed = function (x, n) { if (n === void 0) { n = 1; } return this.jax.fixed(x * 1000, n); }; SVGWrapper.kind = 'unknown'; return SVGWrapper; }(Wrapper_js_1.CommonWrapper)); exports.SVGWrapper = SVGWrapper; //# sourceMappingURL=Wrapper.js.map /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.BBoxStyleAdjust = MathJax._.util.BBox.BBoxStyleAdjust; exports.BBox = MathJax._.util.BBox.BBox; /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.FontData = exports.NOSTRETCH = exports.H = exports.V = void 0; exports.V = 1; exports.H = 2; exports.NOSTRETCH = { dir: 0 }; var FontData = (function () { function FontData() { var e_1, _a; this.variant = {}; this.delimiters = {}; this.cssFontMap = {}; this.remapChars = {}; var CLASS = this.constructor; this.params = __assign({}, CLASS.defaultParams); this.sizeVariants = __spread(CLASS.defaultSizeVariants); this.cssFontMap = __assign({}, CLASS.defaultCssFonts); this.cssFamilyPrefix = CLASS.defaultCssFamilyPrefix; this.createVariants(CLASS.defaultVariants); this.defineDelimiters(CLASS.defaultDelimiters); try { for (var _b = __values(Object.keys(CLASS.defaultChars)), _c = _b.next(); !_c.done; _c = _b.next()) { var name_1 = _c.value; this.defineChars(name_1, CLASS.defaultChars[name_1]); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this.defineRemap('accent', CLASS.defaultAccentMap); this.defineRemap('mo', CLASS.defaultMoMap); this.defineRemap('mn', CLASS.defaultMnMap); } FontData.charOptions = function (font, n) { var char = font[n]; if (char.length === 3) { char[3] = {}; } return char[3]; }; FontData.prototype.createVariant = function (name, inherit, link) { if (inherit === void 0) { inherit = null; } if (link === void 0) { link = null; } var variant = { linked: [], chars: (inherit ? Object.create(this.variant[inherit].chars) : {}) }; if (link && this.variant[link]) { Object.assign(variant.chars, this.variant[link].chars); this.variant[link].linked.push(variant.chars); variant.chars = Object.create(variant.chars); } this.remapSmpChars(variant.chars, name); this.variant[name] = variant; }; FontData.prototype.remapSmpChars = function (chars, name) { var e_2, _a, e_3, _b; var CLASS = this.constructor; if (CLASS.VariantSmp[name]) { var SmpRemap = CLASS.SmpRemap; var SmpGreek = [null, null, CLASS.SmpRemapGreekU, CLASS.SmpRemapGreekL]; try { for (var _c = __values(CLASS.SmpRanges), _d = _c.next(); !_d.done; _d = _c.next()) { var _e = __read(_d.value, 3), i = _e[0], lo = _e[1], hi = _e[2]; var base = CLASS.VariantSmp[name][i]; if (!base) continue; for (var n = lo; n <= hi; n++) { if (n === 0x3A2) continue; var smp = base + n - lo; chars[n] = this.smpChar(SmpRemap[smp] || smp); } if (SmpGreek[i]) { try { for (var _f = (e_3 = void 0, __values(Object.keys(SmpGreek[i]).map(function (x) { return parseInt(x); }))), _g = _f.next(); !_g.done; _g = _f.next()) { var n = _g.value; chars[n] = this.smpChar(base + SmpGreek[i][n]); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_3) throw e_3.error; } } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_2) throw e_2.error; } } } if (name === 'bold') { chars[0x3DC] = this.smpChar(0x1D7CA); chars[0x3DD] = this.smpChar(0x1D7CB); } }; FontData.prototype.smpChar = function (n) { return [, , , { smp: n }]; }; FontData.prototype.createVariants = function (variants) { var e_4, _a; try { for (var variants_1 = __values(variants), variants_1_1 = variants_1.next(); !variants_1_1.done; variants_1_1 = variants_1.next()) { var variant = variants_1_1.value; this.createVariant(variant[0], variant[1], variant[2]); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (variants_1_1 && !variants_1_1.done && (_a = variants_1.return)) _a.call(variants_1); } finally { if (e_4) throw e_4.error; } } }; FontData.prototype.defineChars = function (name, chars) { var e_5, _a; var variant = this.variant[name]; Object.assign(variant.chars, chars); try { for (var _b = __values(variant.linked), _c = _b.next(); !_c.done; _c = _b.next()) { var link = _c.value; Object.assign(link, chars); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_5) throw e_5.error; } } }; FontData.prototype.defineDelimiters = function (delims) { Object.assign(this.delimiters, delims); }; FontData.prototype.defineRemap = function (name, remap) { if (!this.remapChars.hasOwnProperty(name)) { this.remapChars[name] = {}; } Object.assign(this.remapChars[name], remap); }; FontData.prototype.getDelimiter = function (n) { return this.delimiters[n]; }; FontData.prototype.getSizeVariant = function (n, i) { if (this.delimiters[n].variants) { i = this.delimiters[n].variants[i]; } return this.sizeVariants[i]; }; FontData.prototype.getChar = function (name, n) { return this.variant[name].chars[n]; }; FontData.prototype.getVariant = function (name) { return this.variant[name]; }; FontData.prototype.getCssFont = function (variant) { return this.cssFontMap[variant] || ['serif', false, false]; }; FontData.prototype.getFamily = function (family) { return (this.cssFamilyPrefix ? this.cssFamilyPrefix + ', ' + family : family); }; FontData.prototype.getRemappedChar = function (name, c) { var map = this.remapChars[name] || {}; return map[c]; }; FontData.OPTIONS = {}; FontData.defaultVariants = [ ['normal'], ['bold', 'normal'], ['italic', 'normal'], ['bold-italic', 'italic', 'bold'], ['double-struck', 'bold'], ['fraktur', 'normal'], ['bold-fraktur', 'bold', 'fraktur'], ['script', 'italic'], ['bold-script', 'bold-italic', 'script'], ['sans-serif', 'normal'], ['bold-sans-serif', 'bold', 'sans-serif'], ['sans-serif-italic', 'italic', 'sans-serif'], ['sans-serif-bold-italic', 'bold-italic', 'bold-sans-serif'], ['monospace', 'normal'] ]; FontData.defaultCssFonts = { normal: ['serif', false, false], bold: ['serif', false, true], italic: ['serif', true, false], 'bold-italic': ['serif', true, true], 'double-struck': ['serif', false, true], fraktur: ['serif', false, false], 'bold-fraktur': ['serif', false, true], script: ['cursive', false, false], 'bold-script': ['cursive', false, true], 'sans-serif': ['sans-serif', false, false], 'bold-sans-serif': ['sans-serif', false, true], 'sans-serif-italic': ['sans-serif', true, false], 'sans-serif-bold-italic': ['sans-serif', true, true], monospace: ['monospace', false, false] }; FontData.defaultCssFamilyPrefix = ''; FontData.VariantSmp = { bold: [0x1D400, 0x1D41A, 0x1D6A8, 0x1D6C2, 0x1D7CE], italic: [0x1D434, 0x1D44E, 0x1D6E2, 0x1D6FC], 'bold-italic': [0x1D468, 0x1D482, 0x1D71C, 0x1D736], script: [0x1D49C, 0x1D4B6], 'bold-script': [0x1D4D0, 0x1D4EA], fraktur: [0x1D504, 0x1D51E], 'double-struck': [0x1D538, 0x1D552, , , 0x1D7D8], 'bold-fraktur': [0x1D56C, 0x1D586], 'sans-serif': [0x1D5A0, 0x1D5BA, , , 0x1D7E2], 'bold-sans-serif': [0x1D5D4, 0x1D5EE, 0x1D756, 0x1D770, 0x1D7EC], 'sans-serif-italic': [0x1D608, 0x1D622], 'sans-serif-bold-italic': [0x1D63C, 0x1D656, 0x1D790, 0x1D7AA], 'monospace': [0x1D670, 0x1D68A, , , 0x1D7F6] }; FontData.SmpRanges = [ [0, 0x41, 0x5A], [1, 0x61, 0x7A], [2, 0x391, 0x3A9], [3, 0x3B1, 0x3C9], [4, 0x30, 0x39] ]; FontData.SmpRemap = { 0x1D455: 0x210E, 0x1D49D: 0x212C, 0x1D4A0: 0x2130, 0x1D4A1: 0x2131, 0x1D4A3: 0x210B, 0x1D4A4: 0x2110, 0x1D4A7: 0x2112, 0x1D4A8: 0x2133, 0x1D4AD: 0x211B, 0x1D4BA: 0x212F, 0x1D4BC: 0x210A, 0x1D4C4: 0x2134, 0x1D506: 0x212D, 0x1D50B: 0x210C, 0x1D50C: 0x2111, 0x1D515: 0x211C, 0x1D51D: 0x2128, 0x1D53A: 0x2102, 0x1D53F: 0x210D, 0x1D545: 0x2115, 0x1D547: 0x2119, 0x1D548: 0x211A, 0x1D549: 0x211D, 0x1D551: 0x2124, }; FontData.SmpRemapGreekU = { 0x2207: 0x19, 0x03F4: 0x11 }; FontData.SmpRemapGreekL = { 0x3D1: 0x1B, 0x3D5: 0x1D, 0x3D6: 0x1F, 0x3F0: 0x1C, 0x3F1: 0x1E, 0x3F5: 0x1A, 0x2202: 0x19 }; FontData.defaultAccentMap = { 0x0300: '\u02CB', 0x0301: '\u02CA', 0x0302: '\u02C6', 0x0303: '\u02DC', 0x0304: '\u02C9', 0x0306: '\u02D8', 0x0307: '\u02D9', 0x0308: '\u00A8', 0x030A: '\u02DA', 0x030C: '\u02C7', 0x2192: '\u20D7', 0x2032: '\'', 0x2033: '\'\'', 0x2034: '\'\'\'', 0x2035: '`', 0x2036: '``', 0x2037: '```', 0x2057: '\'\'\'\'', 0x20D0: '\u21BC', 0x20D1: '\u21C0', 0x20D6: '\u2190', 0x20E1: '\u2194', 0x20F0: '*', 0x20DB: '...', 0x20DC: '....', 0x20EC: '\u21C1', 0x20ED: '\u21BD', 0x20EE: '\u2190', 0x20EF: '\u2192' }; FontData.defaultMoMap = { 0x002D: '\u2212' }; FontData.defaultMnMap = { 0x002D: '\u2212' }; FontData.defaultParams = { x_height: .442, quad: 1, num1: .676, num2: .394, num3: .444, denom1: .686, denom2: .345, sup1: .413, sup2: .363, sup3: .289, sub1: .15, sub2: .247, sup_drop: .386, sub_drop: .05, delim1: 2.39, delim2: 1.0, axis_height: .25, rule_thickness: .06, big_op_spacing1: .111, big_op_spacing2: .167, big_op_spacing3: .2, big_op_spacing4: .6, big_op_spacing5: .1, surd_height: .075, scriptspace: .05, nulldelimiterspace: .12, delimiterfactor: 901, delimitershortfall: .3, min_rule_thickness: 1.25 }; FontData.defaultDelimiters = {}; FontData.defaultChars = {}; FontData.defaultSizeVariants = []; return FontData; }()); exports.FontData = FontData; //# sourceMappingURL=FontData.js.map /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.TEXCLASS = MathJax._.core.MmlTree.MmlNode.TEXCLASS; exports.TEXCLASSNAMES = MathJax._.core.MmlTree.MmlNode.TEXCLASSNAMES; exports.indentAttributes = MathJax._.core.MmlTree.MmlNode.indentAttributes; exports.AbstractMmlNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlNode; exports.AbstractMmlTokenNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlTokenNode; exports.AbstractMmlLayoutNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlLayoutNode; exports.AbstractMmlBaseNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlBaseNode; exports.AbstractMmlEmptyNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlEmptyNode; exports.TextNode = MathJax._.core.MmlTree.MmlNode.TextNode; exports.XMLNode = MathJax._.core.MmlTree.MmlNode.XMLNode; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.sortLength = MathJax._.util.string.sortLength; exports.quotePattern = MathJax._.util.string.quotePattern; exports.unicodeChars = MathJax._.util.string.unicodeChars; exports.isPercent = MathJax._.util.string.isPercent; exports.split = MathJax._.util.string.split; /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonArrow = exports.CommonDiagonalArrow = exports.CommonDiagonalStrike = exports.CommonBorder2 = exports.CommonBorder = exports.arrowBBox = exports.diagonalArrowDef = exports.arrowDef = exports.arrowBBoxW = exports.arrowBBoxHD = exports.arrowHead = exports.fullBorder = exports.fullPadding = exports.fullBBox = exports.sideNames = exports.sideIndex = exports.SOLID = exports.PADDING = exports.THICKNESS = exports.ARROWY = exports.ARROWDX = exports.ARROWX = void 0; exports.ARROWX = 4, exports.ARROWDX = 1, exports.ARROWY = 2; exports.THICKNESS = .067; exports.PADDING = .2; exports.SOLID = exports.THICKNESS + 'em solid'; exports.sideIndex = { top: 0, right: 1, bottom: 2, left: 3 }; exports.sideNames = Object.keys(exports.sideIndex); exports.fullBBox = (function (node) { return new Array(4).fill(node.thickness + node.padding); }); exports.fullPadding = (function (node) { return new Array(4).fill(node.padding); }); exports.fullBorder = (function (node) { return new Array(4).fill(node.thickness); }); exports.arrowHead = function (node) { return Math.max(node.padding, node.thickness * (node.arrowhead.x + node.arrowhead.dx + 1)); }; exports.arrowBBoxHD = function (node, TRBL) { if (node.childNodes[0]) { var _a = node.childNodes[0].getBBox(), h = _a.h, d = _a.d; TRBL[0] = TRBL[2] = Math.max(0, node.thickness * node.arrowhead.y - (h + d) / 2); } return TRBL; }; exports.arrowBBoxW = function (node, TRBL) { if (node.childNodes[0]) { var w = node.childNodes[0].getBBox().w; TRBL[1] = TRBL[3] = Math.max(0, node.thickness * node.arrowhead.y - w / 2); } return TRBL; }; exports.arrowDef = { up: [-Math.PI / 2, false, true, 'verticalstrike'], down: [Math.PI / 2, false, true, 'verticakstrike'], right: [0, false, false, 'horizontalstrike'], left: [Math.PI, false, false, 'horizontalstrike'], updown: [Math.PI / 2, true, true, 'verticalstrike uparrow downarrow'], leftright: [0, true, false, 'horizontalstrike leftarrow rightarrow'] }; exports.diagonalArrowDef = { updiagonal: [-1, 0, false, 'updiagonalstrike northeastarrow'], northeast: [-1, 0, false, 'updiagonalstrike updiagonalarrow'], southeast: [1, 0, false, 'downdiagonalstrike'], northwest: [1, Math.PI, false, 'downdiagonalstrike'], southwest: [-1, Math.PI, false, 'updiagonalstrike'], northeastsouthwest: [-1, 0, true, 'updiagonalstrike northeastarrow updiagonalarrow southwestarrow'], northwestsoutheast: [1, 0, true, 'downdiagonalstrike northwestarrow southeastarrow'] }; exports.arrowBBox = { up: function (node) { return exports.arrowBBoxW(node, [exports.arrowHead(node), 0, node.padding, 0]); }, down: function (node) { return exports.arrowBBoxW(node, [node.padding, 0, exports.arrowHead(node), 0]); }, right: function (node) { return exports.arrowBBoxHD(node, [0, exports.arrowHead(node), 0, node.padding]); }, left: function (node) { return exports.arrowBBoxHD(node, [0, node.padding, 0, exports.arrowHead(node)]); }, updown: function (node) { return exports.arrowBBoxW(node, [exports.arrowHead(node), 0, exports.arrowHead(node), 0]); }, leftright: function (node) { return exports.arrowBBoxHD(node, [0, exports.arrowHead(node), 0, exports.arrowHead(node)]); } }; exports.CommonBorder = function (render) { return function (side) { var i = exports.sideIndex[side]; return [side, { renderer: render, bbox: function (node) { var bbox = [0, 0, 0, 0]; bbox[i] = node.thickness + node.padding; return bbox; }, border: function (node) { var bbox = [0, 0, 0, 0]; bbox[i] = node.thickness; return bbox; } }]; }; }; exports.CommonBorder2 = function (render) { return function (name, side1, side2) { var i1 = exports.sideIndex[side1]; var i2 = exports.sideIndex[side2]; return [name, { renderer: render, bbox: function (node) { var t = node.thickness + node.padding; var bbox = [0, 0, 0, 0]; bbox[i1] = bbox[i2] = t; return bbox; }, border: function (node) { var bbox = [0, 0, 0, 0]; bbox[i1] = bbox[i2] = node.thickness; return bbox; }, remove: side1 + ' ' + side2 }]; }; }; exports.CommonDiagonalStrike = function (render) { return function (name) { var cname = 'mjx-' + name.charAt(0) + 'strike'; return [name + 'diagonalstrike', { renderer: render(cname), bbox: exports.fullBBox }]; }; }; exports.CommonDiagonalArrow = function (render) { return function (name) { var _a = __read(exports.diagonalArrowDef[name], 4), c = _a[0], pi = _a[1], double = _a[2], remove = _a[3]; return [name + 'arrow', { renderer: function (node, _child) { var _a = node.arrowData(), a = _a.a, W = _a.W; var arrow = node.arrow(W, c * (a - pi), double); render(node, arrow); }, bbox: function (node) { var _a = node.arrowData(), a = _a.a, x = _a.x, y = _a.y; var _b = __read([node.arrowhead.x, node.arrowhead.y, node.arrowhead.dx], 3), ax = _b[0], ay = _b[1], adx = _b[2]; var _c = __read(node.getArgMod(ax + adx, ay), 2), b = _c[0], ar = _c[1]; var dy = y + (b > a ? node.thickness * ar * Math.sin(b - a) : 0); var dx = x + (b > Math.PI / 2 - a ? node.thickness * ar * Math.sin(b + a - Math.PI / 2) : 0); return [dy, dx, dy, dx]; }, remove: remove }]; }; }; exports.CommonArrow = function (render) { return function (name) { var _a = __read(exports.arrowDef[name], 4), angle = _a[0], double = _a[1], isVertical = _a[2], remove = _a[3]; return [name + 'arrow', { renderer: function (node, _child) { var _a = node.getBBox(), w = _a.w, h = _a.h, d = _a.d; var W = (isVertical ? h + d : w); var arrow = node.arrow(W, angle, double); render(node, arrow); }, bbox: exports.arrowBBox[name], remove: remove }]; }; }; //# sourceMappingURL=Notation.js.map /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMsubsupMixin = exports.CommonMsupMixin = exports.CommonMsubMixin = void 0; function CommonMsubMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_1.prototype, "script", { get: function () { return this.childNodes[this.node.sub]; }, enumerable: false, configurable: true }); class_1.prototype.getOffset = function (bbox, sbox) { return [0, -this.getV(bbox, sbox)]; }; return class_1; }(Base)); } exports.CommonMsubMixin = CommonMsubMixin; function CommonMsupMixin(Base) { return (function (_super) { __extends(class_2, _super); function class_2() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_2.prototype, "script", { get: function () { return this.childNodes[this.node.sup]; }, enumerable: false, configurable: true }); class_2.prototype.getOffset = function (bbox, sbox) { var x = (this.baseCore.bbox.ic ? .05 * this.baseCore.bbox.ic + .05 : 0); return [x * this.coreScale(), this.getU(bbox, sbox)]; }; return class_2; }(Base)); } exports.CommonMsupMixin = CommonMsupMixin; function CommonMsubsupMixin(Base) { return (function (_super) { __extends(class_3, _super); function class_3() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.UVQ = null; return _this; } Object.defineProperty(class_3.prototype, "subChild", { get: function () { return this.childNodes[this.node.sub]; }, enumerable: false, configurable: true }); Object.defineProperty(class_3.prototype, "supChild", { get: function () { return this.childNodes[this.node.sup]; }, enumerable: false, configurable: true }); class_3.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var basebox = this.baseChild.getBBox(); var subbox = this.subChild.getBBox(); var supbox = this.supChild.getBBox(); bbox.empty(); bbox.append(basebox); var w = bbox.w; var _a = __read(this.getUVQ(basebox, subbox, supbox), 2), u = _a[0], v = _a[1]; var x = (this.baseCore.bbox.ic ? this.coreIC() * this.coreScale() : 0); bbox.combine(subbox, w, v); bbox.combine(supbox, w + x, u); bbox.w += this.font.params.scriptspace; bbox.clean(); this.setChildPWidths(recompute); }; class_3.prototype.getUVQ = function (basebox, subbox, supbox) { if (this.UVQ) return this.UVQ; var tex = this.font.params; var t = 3 * tex.rule_thickness; var subscriptshift = this.length2em(this.node.attributes.get('subscriptshift'), tex.sub2); var drop = (this.isCharBase() ? 0 : basebox.d * basebox.rscale + tex.sub_drop * subbox.rscale); var _a = __read([this.getU(basebox, supbox), Math.max(drop, subscriptshift)], 2), u = _a[0], v = _a[1]; var q = (u - supbox.d * supbox.rscale) - (subbox.h * subbox.rscale - v); if (q < t) { v += t - q; var p = (4 / 5) * tex.x_height - (u - supbox.d * supbox.rscale); if (p > 0) { u += p; v -= p; } } u = Math.max(this.length2em(this.node.attributes.get('superscriptshift'), u), u); v = Math.max(this.length2em(this.node.attributes.get('subscriptshift'), v), v); q = (u - supbox.d * supbox.rscale) - (subbox.h * subbox.rscale - v); this.UVQ = [u, -v, q]; return this.UVQ; }; return class_3; }(Base)); } exports.CommonMsubsupMixin = CommonMsubsupMixin; //# sourceMappingURL=msubsup.js.map /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMunderoverMixin = exports.CommonMoverMixin = exports.CommonMunderMixin = void 0; function CommonMunderMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.stretchChildren(); return _this; } Object.defineProperty(class_1.prototype, "script", { get: function () { return this.childNodes[this.node.under]; }, enumerable: false, configurable: true }); class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } if (this.hasMovableLimits()) { _super.prototype.computeBBox.call(this, bbox, recompute); return; } bbox.empty(); var basebox = this.baseChild.getBBox(); var underbox = this.script.getBBox(); var v = this.getUnderKV(basebox, underbox)[1]; var delta = this.getDelta(true); var _a = __read(this.getDeltaW([basebox, underbox], [0, -delta]), 2), bw = _a[0], uw = _a[1]; bbox.combine(basebox, bw, 0); bbox.combine(underbox, uw, v); bbox.d += this.font.params.big_op_spacing5; bbox.ic = -this.baseCore.bbox.ic; bbox.clean(); this.setChildPWidths(recompute); }; return class_1; }(Base)); } exports.CommonMunderMixin = CommonMunderMixin; function CommonMoverMixin(Base) { return (function (_super) { __extends(class_2, _super); function class_2() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.stretchChildren(); return _this; } Object.defineProperty(class_2.prototype, "script", { get: function () { return this.childNodes[this.node.over]; }, enumerable: false, configurable: true }); class_2.prototype.computeBBox = function (bbox) { if (this.hasMovableLimits()) { _super.prototype.computeBBox.call(this, bbox); return; } bbox.empty(); var basebox = this.baseChild.getBBox(); var overbox = this.script.getBBox(); var u = this.getOverKU(basebox, overbox)[1]; var delta = this.getDelta(); var _a = __read(this.getDeltaW([basebox, overbox], [0, delta]), 2), bw = _a[0], ow = _a[1]; bbox.combine(basebox, bw, 0); bbox.combine(overbox, ow, u); bbox.h += this.font.params.big_op_spacing5; bbox.ic = -this.baseCore.bbox.ic; bbox.clean(); }; return class_2; }(Base)); } exports.CommonMoverMixin = CommonMoverMixin; function CommonMunderoverMixin(Base) { return (function (_super) { __extends(class_3, _super); function class_3() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.stretchChildren(); return _this; } Object.defineProperty(class_3.prototype, "underChild", { get: function () { return this.childNodes[this.node.under]; }, enumerable: false, configurable: true }); Object.defineProperty(class_3.prototype, "overChild", { get: function () { return this.childNodes[this.node.over]; }, enumerable: false, configurable: true }); Object.defineProperty(class_3.prototype, "subChild", { get: function () { return this.underChild; }, enumerable: false, configurable: true }); Object.defineProperty(class_3.prototype, "supChild", { get: function () { return this.overChild; }, enumerable: false, configurable: true }); class_3.prototype.computeBBox = function (bbox) { if (this.hasMovableLimits()) { _super.prototype.computeBBox.call(this, bbox); return; } bbox.empty(); var overbox = this.overChild.getBBox(); var basebox = this.baseChild.getBBox(); var underbox = this.underChild.getBBox(); var u = this.getOverKU(basebox, overbox)[1]; var v = this.getUnderKV(basebox, underbox)[1]; var delta = this.getDelta(); var _a = __read(this.getDeltaW([basebox, underbox, overbox], [0, -delta, delta]), 3), bw = _a[0], uw = _a[1], ow = _a[2]; bbox.combine(basebox, bw, 0); bbox.combine(overbox, ow, u); bbox.combine(underbox, uw, v); var z = this.font.params.big_op_spacing5; bbox.h += z; bbox.d += z; bbox.ic = -this.baseCore.bbox.ic; bbox.clean(); }; return class_3; }(Base)); } exports.CommonMunderoverMixin = CommonMunderoverMixin; //# sourceMappingURL=munderover.js.map /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmsubsup = exports.SVGmsup = exports.SVGmsub = void 0; var scriptbase_js_1 = __webpack_require__(57); var msubsup_js_1 = __webpack_require__(6); var msubsup_js_2 = __webpack_require__(6); var msubsup_js_3 = __webpack_require__(6); var msubsup_js_4 = __webpack_require__(94); var SVGmsub = (function (_super) { __extends(SVGmsub, _super); function SVGmsub() { return _super !== null && _super.apply(this, arguments) || this; } SVGmsub.kind = msubsup_js_4.MmlMsub.prototype.kind; SVGmsub.useIC = false; return SVGmsub; }(msubsup_js_1.CommonMsubMixin(scriptbase_js_1.SVGscriptbase))); exports.SVGmsub = SVGmsub; var SVGmsup = (function (_super) { __extends(SVGmsup, _super); function SVGmsup() { return _super !== null && _super.apply(this, arguments) || this; } SVGmsup.kind = msubsup_js_4.MmlMsup.prototype.kind; SVGmsup.useIC = true; return SVGmsup; }(msubsup_js_2.CommonMsupMixin(scriptbase_js_1.SVGscriptbase))); exports.SVGmsup = SVGmsup; var SVGmsubsup = (function (_super) { __extends(SVGmsubsup, _super); function SVGmsubsup() { return _super !== null && _super.apply(this, arguments) || this; } SVGmsubsup.prototype.toSVG = function (parent) { var svg = this.standardSVGnode(parent); var _a = __read([this.baseChild, this.supChild, this.subChild], 3), base = _a[0], sup = _a[1], sub = _a[2]; var bbox = base.getBBox(); var _b = __read(this.getUVQ(bbox, sub.getBBox(), sup.getBBox()), 2), u = _b[0], v = _b[1]; var x = this.baseCore.bbox.ic ? this.coreIC() * this.coreScale() : 0; base.toSVG(svg); sup.toSVG(svg); sub.toSVG(svg); sub.place(bbox.w * bbox.rscale, v); sup.place(bbox.w * bbox.rscale + x, u); }; SVGmsubsup.kind = msubsup_js_4.MmlMsubsup.prototype.kind; SVGmsubsup.useIC = false; return SVGmsubsup; }(msubsup_js_3.CommonMsubsupMixin(scriptbase_js_1.SVGscriptbase))); exports.SVGmsubsup = SVGmsubsup; //# sourceMappingURL=msubsup.js.map /***/ }), /* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SVG = exports.XLINKNS = exports.SVGNS = void 0; var OutputJax_js_1 = __webpack_require__(17); var WrapperFactory_js_1 = __webpack_require__(41); var tex_js_1 = __webpack_require__(105); var FontCache_js_1 = __webpack_require__(70); var string_js_1 = __webpack_require__(4); var lengths_js_1 = __webpack_require__(16); exports.SVGNS = 'http://www.w3.org/2000/svg'; exports.XLINKNS = 'http://www.w3.org/1999/xlink'; var SVG = (function (_super) { __extends(SVG, _super); function SVG(options) { if (options === void 0) { options = null; } var _this = _super.call(this, options, WrapperFactory_js_1.SVGWrapperFactory, tex_js_1.TeXFont) || this; _this.minwidth = 0; _this.shift = 0; _this.container = null; _this.svgStyles = null; _this.fontCache = new FontCache_js_1.FontCache(_this); return _this; } SVG.prototype.initialize = function () { if (this.options.fontCache === 'global') { this.fontCache.clearCache(); } }; SVG.prototype.clearFontCache = function () { this.fontCache.clearCache(); }; SVG.prototype.setScale = function (node) { if (this.options.scale !== 1) { this.adaptor.setStyle(node, 'fontSize', lengths_js_1.percent(this.options.scale)); } }; SVG.prototype.escaped = function (math, html) { this.setDocument(html); return this.html('span', {}, [this.text(math.math)]); }; SVG.prototype.styleSheet = function (html) { if (this.svgStyles) { return null; } var sheet = this.svgStyles = _super.prototype.styleSheet.call(this, html); this.adaptor.setAttribute(sheet, 'id', SVG.STYLESHEETID); return sheet; }; SVG.prototype.pageElements = function (html) { if (this.options.fontCache === 'global' && !this.findCache(html)) { return this.svg('svg', { id: SVG.FONTCACHEID, style: { display: 'none' } }, [this.fontCache.getCache()]); } return null; }; SVG.prototype.findCache = function (html) { var adaptor = this.adaptor; var svgs = adaptor.tags(adaptor.body(html.document), 'svg'); for (var i = svgs.length - 1; i >= 0; i--) { if (this.adaptor.getAttribute(svgs[i], 'id') === SVG.FONTCACHEID) { return true; } } return false; }; SVG.prototype.processMath = function (math, parent) { var container = this.container; this.container = parent; var wrapper = this.factory.wrap(math); var _a = __read(this.createRoot(wrapper), 2), svg = _a[0], g = _a[1]; this.typesetSVG(wrapper, svg, g); this.container = container; }; SVG.prototype.createRoot = function (wrapper) { var _a = wrapper.getBBox(), w = _a.w, h = _a.h, d = _a.d, pwidth = _a.pwidth; var W = Math.max(w, .001); var g = this.svg('g', { stroke: 'currentColor', fill: 'currentColor', 'stroke-width': 0, transform: 'matrix(1 0 0 -1 0 0)' }); var adaptor = this.adaptor; var svg = adaptor.append(this.container, this.svg('svg', { xmlns: exports.SVGNS, width: this.ex(W), height: this.ex(h + d), role: 'img', focusable: false, style: { 'vertical-align': this.ex(-d) }, viewBox: [0, this.fixed(-h * 1000, 1), this.fixed(W * 1000, 1), this.fixed((h + d) * 1000, 1)].join(' ') }, [g])); if (W === .001) { adaptor.setAttribute(svg, 'preserveAspectRatio', 'xMidYMid slice'); if (w < 0) { adaptor.setStyle(this.container, 'margin-right', this.ex(w)); } } if (pwidth) { adaptor.setStyle(svg, 'min-width', this.ex(W)); adaptor.setAttribute(svg, 'width', pwidth); adaptor.removeAttribute(svg, 'viewBox'); var scale = wrapper.metrics.ex / (this.font.params.x_height * 1000); adaptor.setAttribute(g, 'transform', 'matrix(1 0 0 -1 0 0) scale(' + this.fixed(scale, 6) + ') translate(0, ' + this.fixed(-h * 1000, 1) + ')'); } if (this.options.fontCache !== 'none') { adaptor.setAttribute(svg, 'xmlns:xlink', exports.XLINKNS); } return [svg, g]; }; SVG.prototype.typesetSVG = function (wrapper, svg, g) { var adaptor = this.adaptor; this.minwidth = this.shift = 0; if (this.options.fontCache === 'local') { this.fontCache.clearCache(); this.fontCache.useLocalID(this.options.localID); adaptor.insert(this.fontCache.getCache(), g); } wrapper.toSVG(g); this.fontCache.clearLocalID(); if (this.minwidth) { adaptor.setStyle(svg, 'minWidth', this.ex(this.minwidth)); adaptor.setStyle(this.container, 'minWidth', this.ex(this.minwidth)); } else if (this.shift) { var align = adaptor.getAttribute(this.container, 'justify') || 'center'; this.setIndent(svg, align, this.shift); } }; SVG.prototype.setIndent = function (svg, align, shift) { if (align === 'center' || align === 'left') { this.adaptor.setStyle(svg, 'margin-left', this.ex(shift)); } if (align === 'center' || align === 'right') { this.adaptor.setStyle(svg, 'margin-right', this.ex(-shift)); } }; SVG.prototype.ex = function (m) { m /= this.font.params.x_height; return (Math.abs(m) < .001 ? '0' : m.toFixed(3).replace(/\.?0+$/, '') + 'ex'); }; SVG.prototype.svg = function (kind, properties, children) { if (properties === void 0) { properties = {}; } if (children === void 0) { children = []; } return this.html(kind, properties, children, exports.SVGNS); }; SVG.prototype.unknownText = function (text, variant) { var metrics = this.math.metrics; var scale = this.font.params.x_height / metrics.ex * metrics.em * 1000; var svg = this.svg('text', { 'data-variant': variant, transform: 'matrix(1 0 0 -1 0 0)', 'font-size': this.fixed(scale, 1) + 'px' }, [this.text(text)]); var adaptor = this.adaptor; if (variant !== '-explicitFont') { var c = string_js_1.unicodeChars(text); if (c.length !== 1 || c[0] < 0x1D400 || c[0] > 0x1D7FF) { var _a = __read(this.font.getCssFont(variant), 3), family = _a[0], italic = _a[1], bold = _a[2]; adaptor.setAttribute(svg, 'font-family', family); if (italic) { adaptor.setAttribute(svg, 'font-style', 'italic'); } if (bold) { adaptor.setAttribute(svg, 'font-weight', 'bold'); } } } return svg; }; SVG.prototype.measureTextNode = function (text) { var adaptor = this.adaptor; text = adaptor.clone(text); adaptor.removeAttribute(text, 'transform'); var ex = this.fixed(this.font.params.x_height * 1000, 1); var svg = this.svg('svg', { position: 'absolute', visibility: 'hidden', width: '1ex', height: '1ex', viewBox: [0, 0, ex, ex].join(' ') }, [text]); adaptor.append(adaptor.body(adaptor.document), svg); var w = adaptor.nodeSize(text, 1000, true)[0]; adaptor.remove(svg); return { w: w, h: .75, d: .2 }; }; SVG.NAME = 'SVG'; SVG.OPTIONS = __assign(__assign({}, OutputJax_js_1.CommonOutputJax.OPTIONS), { internalSpeechTitles: true, titleID: 0, fontCache: 'local', localID: null }); SVG.commonStyles = { 'mjx-container[jax="SVG"]': { direction: 'ltr' }, 'mjx-container[jax="SVG"] > svg': { overflow: 'visible' }, 'mjx-container[jax="SVG"] > svg a': { fill: 'blue', stroke: 'blue' } }; SVG.FONTCACHEID = 'MJX-SVG-global-cache'; SVG.STYLESHEETID = 'MJX-SVG-styles'; return SVG; }(OutputJax_js_1.CommonOutputJax)); exports.SVG = SVG; //# sourceMappingURL=svg.js.map /***/ }), /* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMactionMixin = exports.TooltipData = void 0; var string_js_1 = __webpack_require__(4); exports.TooltipData = { dx: '.2em', dy: '.1em', postDelay: 600, clearDelay: 100, hoverTimer: new Map(), clearTimer: new Map(), stopTimers: function (node, data) { if (data.clearTimer.has(node)) { clearTimeout(data.clearTimer.get(node)); data.clearTimer.delete(node); } if (data.hoverTimer.has(node)) { clearTimeout(data.hoverTimer.get(node)); data.hoverTimer.delete(node); } } }; function CommonMactionMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; var actions = _this.constructor.actions; var action = _this.node.attributes.get('actiontype'); var _a = __read(actions.get(action) || [(function (_node, _data) { }), {}], 2), handler = _a[0], data = _a[1]; _this.action = handler; _this.data = data; _this.getParameters(); return _this; } Object.defineProperty(class_1.prototype, "selected", { get: function () { var selection = this.node.attributes.get('selection'); var i = Math.max(1, Math.min(this.childNodes.length, selection)) - 1; return this.childNodes[i] || this.wrap(this.node.selected); }, enumerable: false, configurable: true }); class_1.prototype.getParameters = function () { var offsets = this.node.attributes.get('data-offsets'); var _a = __read(string_js_1.split(offsets || ''), 2), dx = _a[0], dy = _a[1]; this.dx = this.length2em(dx || exports.TooltipData.dx); this.dy = this.length2em(dy || exports.TooltipData.dy); }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } bbox.updateFrom(this.selected.getBBox()); this.selected.setChildPWidths(recompute); }; return class_1; }(Base)); } exports.CommonMactionMixin = CommonMactionMixin; //# sourceMappingURL=maction.js.map /***/ }), /* 11 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonInferredMrowMixin = exports.CommonMrowMixin = void 0; var BBox_js_1 = __webpack_require__(1); function CommonMrowMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var e_1, _a; var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.stretchChildren(); try { for (var _b = __values(_this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child.bbox.pwidth) { _this.bbox.pwidth = BBox_js_1.BBox.fullWidth; break; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return _this; } Object.defineProperty(class_1.prototype, "fixesPWidth", { get: function () { return false; }, enumerable: false, configurable: true }); class_1.prototype.stretchChildren = function () { var e_2, _a, e_3, _b, e_4, _c; var stretchy = []; try { for (var _d = __values(this.childNodes), _e = _d.next(); !_e.done; _e = _d.next()) { var child = _e.value; if (child.canStretch(1)) { stretchy.push(child); } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_2) throw e_2.error; } } var count = stretchy.length; var nodeCount = this.childNodes.length; if (count && nodeCount > 1) { var H = 0, D = 0; var all = (count > 1 && count === nodeCount); try { for (var _f = __values(this.childNodes), _g = _f.next(); !_g.done; _g = _f.next()) { var child = _g.value; var noStretch = (child.stretch.dir === 0); if (all || noStretch) { var _h = child.getBBox(noStretch), h = _h.h, d = _h.d; if (h > H) H = h; if (d > D) D = d; } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_3) throw e_3.error; } } try { for (var stretchy_1 = __values(stretchy), stretchy_1_1 = stretchy_1.next(); !stretchy_1_1.done; stretchy_1_1 = stretchy_1.next()) { var child = stretchy_1_1.value; child.coreMO().getStretchedVariant([H, D]); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (stretchy_1_1 && !stretchy_1_1.done && (_c = stretchy_1.return)) _c.call(stretchy_1); } finally { if (e_4) throw e_4.error; } } } }; return class_1; }(Base)); } exports.CommonMrowMixin = CommonMrowMixin; function CommonInferredMrowMixin(Base) { return (function (_super) { __extends(class_2, _super); function class_2() { return _super !== null && _super.apply(this, arguments) || this; } class_2.prototype.getScale = function () { this.bbox.scale = this.parent.bbox.scale; this.bbox.rscale = 1; }; return class_2; }(Base)); } exports.CommonInferredMrowMixin = CommonInferredMrowMixin; //# sourceMappingURL=mrow.js.map /***/ }), /* 12 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMlabeledtrMixin = exports.CommonMtrMixin = void 0; function CommonMtrMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_1.prototype, "fixesPWidth", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "numCells", { get: function () { return this.childNodes.length; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "labeled", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "tableCells", { get: function () { return this.childNodes; }, enumerable: false, configurable: true }); class_1.prototype.getChild = function (i) { return this.childNodes[i]; }; class_1.prototype.getChildBBoxes = function () { return this.childNodes.map(function (cell) { return cell.getBBox(); }); }; class_1.prototype.stretchChildren = function (HD) { var e_1, _a, e_2, _b, e_3, _c; if (HD === void 0) { HD = null; } var stretchy = []; var children = (this.labeled ? this.childNodes.slice(1) : this.childNodes); try { for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) { var mtd = children_1_1.value; var child = mtd.childNodes[0]; if (child.canStretch(1)) { stretchy.push(child); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1); } finally { if (e_1) throw e_1.error; } } var count = stretchy.length; var nodeCount = this.childNodes.length; if (count && nodeCount > 1) { if (HD === null) { var H = 0, D = 0; var all = (count > 1 && count === nodeCount); try { for (var children_2 = __values(children), children_2_1 = children_2.next(); !children_2_1.done; children_2_1 = children_2.next()) { var mtd = children_2_1.value; var child = mtd.childNodes[0]; var noStretch = (child.stretch.dir === 0); if (all || noStretch) { var _d = child.getBBox(noStretch), h = _d.h, d = _d.d; if (h > H) { H = h; } if (d > D) { D = d; } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (children_2_1 && !children_2_1.done && (_b = children_2.return)) _b.call(children_2); } finally { if (e_2) throw e_2.error; } } HD = [H, D]; } try { for (var stretchy_1 = __values(stretchy), stretchy_1_1 = stretchy_1.next(); !stretchy_1_1.done; stretchy_1_1 = stretchy_1.next()) { var child = stretchy_1_1.value; child.coreMO().getStretchedVariant(HD); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (stretchy_1_1 && !stretchy_1_1.done && (_c = stretchy_1.return)) _c.call(stretchy_1); } finally { if (e_3) throw e_3.error; } } } }; return class_1; }(Base)); } exports.CommonMtrMixin = CommonMtrMixin; function CommonMlabeledtrMixin(Base) { return (function (_super) { __extends(class_2, _super); function class_2() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_2.prototype, "numCells", { get: function () { return Math.max(0, this.childNodes.length - 1); }, enumerable: false, configurable: true }); Object.defineProperty(class_2.prototype, "labeled", { get: function () { return true; }, enumerable: false, configurable: true }); Object.defineProperty(class_2.prototype, "tableCells", { get: function () { return this.childNodes.slice(1); }, enumerable: false, configurable: true }); class_2.prototype.getChild = function (i) { return this.childNodes[i + 1]; }; class_2.prototype.getChildBBoxes = function () { return this.childNodes.slice(1).map(function (cell) { return cell.getBBox(); }); }; return class_2; }(Base)); } exports.CommonMlabeledtrMixin = CommonMlabeledtrMixin; //# sourceMappingURL=mtr.js.map /***/ }), /* 13 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmsqrt = void 0; var Wrapper_js_1 = __webpack_require__(0); var msqrt_js_1 = __webpack_require__(35); var msqrt_js_2 = __webpack_require__(91); var SVGmsqrt = (function (_super) { __extends(SVGmsqrt, _super); function SVGmsqrt() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.dx = 0; return _this; } SVGmsqrt.prototype.toSVG = function (parent) { var surd = this.childNodes[this.surd]; var base = this.childNodes[this.base]; var root = (this.root ? this.childNodes[this.root] : null); var rbox = this.getBBox(); var sbox = surd.getBBox(); var bbox = base.getBBox(); var q = this.getPQ(sbox)[1]; var t = this.font.params.rule_thickness * this.bbox.scale; var H = bbox.h + q + t; var SVG = this.standardSVGnode(parent); var BASE = this.adaptor.append(SVG, this.svg('g')); this.addRoot(SVG, root, sbox, H); surd.toSVG(SVG); surd.place(this.dx, rbox.h - sbox.h - t); base.toSVG(BASE); base.place(this.dx + sbox.w, 0); this.adaptor.append(SVG, this.svg('rect', { width: this.fixed(bbox.w), height: this.fixed(t), x: this.fixed(this.dx + sbox.w), y: this.fixed(rbox.h - 2 * t) })); }; SVGmsqrt.prototype.addRoot = function (_ROOT, _root, _sbox, _H) { }; SVGmsqrt.kind = msqrt_js_2.MmlMsqrt.prototype.kind; return SVGmsqrt; }(msqrt_js_1.CommonMsqrtMixin(Wrapper_js_1.SVGWrapper))); exports.SVGmsqrt = SVGmsqrt; //# sourceMappingURL=msqrt.js.map /***/ }), /* 14 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 15 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AddPaths = exports.SVGFontData = void 0; var FontData_js_1 = __webpack_require__(2); __exportStar(__webpack_require__(2), exports); var SVGFontData = (function (_super) { __extends(SVGFontData, _super); function SVGFontData() { return _super !== null && _super.apply(this, arguments) || this; } SVGFontData.charOptions = function (font, n) { return _super.charOptions.call(this, font, n); }; return SVGFontData; }(FontData_js_1.FontData)); exports.SVGFontData = SVGFontData; function AddPaths(font, paths, content) { var e_1, _a, e_2, _b; try { for (var _c = __values(Object.keys(paths)), _d = _c.next(); !_d.done; _d = _c.next()) { var c = _d.value; var n = parseInt(c); SVGFontData.charOptions(font, n).p = paths[n]; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_1) throw e_1.error; } } try { for (var _e = __values(Object.keys(content)), _f = _e.next(); !_f.done; _f = _e.next()) { var c = _f.value; var n = parseInt(c); SVGFontData.charOptions(font, n).c = content[n]; } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_2) throw e_2.error; } } return font; } exports.AddPaths = AddPaths; //# sourceMappingURL=FontData.js.map /***/ }), /* 16 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.BIGDIMEN = MathJax._.util.lengths.BIGDIMEN; exports.UNITS = MathJax._.util.lengths.UNITS; exports.RELUNITS = MathJax._.util.lengths.RELUNITS; exports.MATHSPACE = MathJax._.util.lengths.MATHSPACE; exports.length2em = MathJax._.util.lengths.length2em; exports.percent = MathJax._.util.lengths.percent; exports.em = MathJax._.util.lengths.em; exports.emRounded = MathJax._.util.lengths.emRounded; exports.px = MathJax._.util.lengths.px; /***/ }), /* 17 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonOutputJax = void 0; var OutputJax_js_1 = __webpack_require__(72); var MathItem_js_1 = __webpack_require__(73); var Options_js_1 = __webpack_require__(74); var lengths_js_1 = __webpack_require__(16); var Styles_js_1 = __webpack_require__(71); var StyleList_js_1 = __webpack_require__(75); var CommonOutputJax = (function (_super) { __extends(CommonOutputJax, _super); function CommonOutputJax(options, defaultFactory, defaultFont) { if (options === void 0) { options = null; } if (defaultFactory === void 0) { defaultFactory = null; } if (defaultFont === void 0) { defaultFont = null; } var _this = this; var _a = __read(Options_js_1.separateOptions(options, defaultFont.OPTIONS), 2), jaxOptions = _a[0], fontOptions = _a[1]; _this = _super.call(this, jaxOptions) || this; _this.factory = _this.options.wrapperFactory || new defaultFactory(); _this.factory.jax = _this; _this.cssStyles = _this.options.cssStyles || new StyleList_js_1.CssStyles(); _this.font = _this.options.font || new defaultFont(fontOptions); _this.unknownCache = new Map(); return _this; } CommonOutputJax.prototype.typeset = function (math, html) { this.setDocument(html); var node = this.createNode(); this.toDOM(math, node, html); return node; }; CommonOutputJax.prototype.createNode = function () { var jax = this.constructor.NAME; return this.html('mjx-container', { 'class': 'MathJax', jax: jax }); }; CommonOutputJax.prototype.setScale = function (node) { var scale = this.math.metrics.scale * this.options.scale; if (scale !== 1) { this.adaptor.setStyle(node, 'fontSize', lengths_js_1.percent(scale)); } }; CommonOutputJax.prototype.toDOM = function (math, node, html) { if (html === void 0) { html = null; } this.setDocument(html); this.math = math; this.pxPerEm = math.metrics.ex / this.font.params.x_height; math.root.setTeXclass(null); this.setScale(node); this.nodeMap = new Map(); this.container = node; this.processMath(math.root, node); this.nodeMap = null; this.executeFilters(this.postFilters, math, html, node); }; CommonOutputJax.prototype.getBBox = function (math, html) { this.setDocument(html); this.math = math; math.root.setTeXclass(null); this.nodeMap = new Map(); var bbox = this.factory.wrap(math.root).getBBox(); this.nodeMap = null; return bbox; }; CommonOutputJax.prototype.getMetrics = function (html) { var e_1, _a; this.setDocument(html); var adaptor = this.adaptor; var maps = this.getMetricMaps(html); try { for (var _b = __values(html.math), _c = _b.next(); !_c.done; _c = _b.next()) { var math = _c.value; var parent_1 = adaptor.parent(math.start.node); if (math.state() < MathItem_js_1.STATE.METRICS && parent_1) { var map = maps[math.display ? 1 : 0]; var _d = map.get(parent_1), em = _d.em, ex = _d.ex, containerWidth = _d.containerWidth, lineWidth = _d.lineWidth, scale = _d.scale, family = _d.family; math.setMetrics(em, ex, containerWidth, lineWidth, scale); if (this.options.mtextInheritFont) { math.outputData.mtextFamily = family; } if (this.options.merrorInheritFont) { math.outputData.merrorFamily = family; } math.state(MathItem_js_1.STATE.METRICS); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; CommonOutputJax.prototype.getMetricsFor = function (node, display) { var getFamily = (this.options.mtextInheritFont || this.options.merrorInheritFont); var test = this.getTestElement(node, display); var metrics = this.measureMetrics(test, getFamily); this.adaptor.remove(test); return metrics; }; CommonOutputJax.prototype.getMetricMaps = function (html) { var e_2, _a, e_3, _b, e_4, _c, e_5, _d, e_6, _e; var adaptor = this.adaptor; var domMaps = [new Map(), new Map()]; try { for (var _f = __values(html.math), _g = _f.next(); !_g.done; _g = _f.next()) { var math = _g.value; var node = adaptor.parent(math.start.node); if (node && math.state() < MathItem_js_1.STATE.METRICS) { var map = domMaps[math.display ? 1 : 0]; if (!map.has(node)) { map.set(node, this.getTestElement(node, math.display)); } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_g && !_g.done && (_a = _f.return)) _a.call(_f); } finally { if (e_2) throw e_2.error; } } var getFamily = this.options.mtextInheritFont || this.options.merrorInheritFont; var maps = [new Map(), new Map()]; try { for (var _h = __values(maps.keys()), _j = _h.next(); !_j.done; _j = _h.next()) { var i = _j.value; try { for (var _k = (e_4 = void 0, __values(domMaps[i].keys())), _l = _k.next(); !_l.done; _l = _k.next()) { var node = _l.value; maps[i].set(node, this.measureMetrics(domMaps[i].get(node), getFamily)); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_l && !_l.done && (_c = _k.return)) _c.call(_k); } finally { if (e_4) throw e_4.error; } } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_j && !_j.done && (_b = _h.return)) _b.call(_h); } finally { if (e_3) throw e_3.error; } } try { for (var _m = __values(maps.keys()), _o = _m.next(); !_o.done; _o = _m.next()) { var i = _o.value; try { for (var _p = (e_6 = void 0, __values(domMaps[i].values())), _q = _p.next(); !_q.done; _q = _p.next()) { var node = _q.value; adaptor.remove(node); } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_q && !_q.done && (_e = _p.return)) _e.call(_p); } finally { if (e_6) throw e_6.error; } } } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_o && !_o.done && (_d = _m.return)) _d.call(_m); } finally { if (e_5) throw e_5.error; } } return maps; }; CommonOutputJax.prototype.getTestElement = function (node, display) { var adaptor = this.adaptor; if (!this.testInline) { this.testInline = this.html('mjx-test', { style: { display: 'inline-block', width: '100%', 'font-style': 'normal', 'font-weight': 'normal', 'font-size': '100%', 'font-size-adjust': 'none', 'text-indent': 0, 'text-transform': 'none', 'letter-spacing': 'normal', 'word-spacing': 'normal', overflow: 'hidden', height: '1px', 'margin-right': '-1px' } }, [ this.html('mjx-left-box', { style: { display: 'inline-block', width: 0, 'float': 'left' } }), this.html('mjx-ex-box', { style: { position: 'absolute', overflow: 'hidden', width: '1px', height: '60ex' } }), this.html('mjx-right-box', { style: { display: 'inline-block', width: 0, 'float': 'right' } }) ]); this.testDisplay = adaptor.clone(this.testInline); adaptor.setStyle(this.testDisplay, 'display', 'table'); adaptor.setStyle(this.testDisplay, 'margin-right', ''); adaptor.setStyle(adaptor.firstChild(this.testDisplay), 'display', 'none'); var right = adaptor.lastChild(this.testDisplay); adaptor.setStyle(right, 'display', 'table-cell'); adaptor.setStyle(right, 'width', '10000em'); adaptor.setStyle(right, 'float', ''); } return adaptor.append(node, adaptor.clone(display ? this.testDisplay : this.testInline)); }; CommonOutputJax.prototype.measureMetrics = function (node, getFamily) { var adaptor = this.adaptor; var family = (getFamily ? adaptor.fontFamily(node) : ''); var em = adaptor.fontSize(node); var ex = (adaptor.nodeSize(adaptor.childNode(node, 1))[1] / 60) || (em * this.options.exFactor); var containerWidth = (adaptor.getStyle(node, 'display') === 'table' ? adaptor.nodeSize(adaptor.lastChild(node))[0] - 1 : adaptor.nodeBBox(adaptor.lastChild(node)).left - adaptor.nodeBBox(adaptor.firstChild(node)).left - 2); var scale = Math.max(this.options.minScale, this.options.matchFontHeight ? ex / this.font.params.x_height / em : 1); var lineWidth = 1000000; return { em: em, ex: ex, containerWidth: containerWidth, lineWidth: lineWidth, scale: scale, family: family }; }; CommonOutputJax.prototype.styleSheet = function (html) { var e_7, _a, e_8, _b; this.setDocument(html); this.cssStyles.clear(); this.cssStyles.addStyles(this.constructor.commonStyles); if ('getStyles' in html) { try { for (var _c = __values(html.getStyles()), _d = _c.next(); !_d.done; _d = _c.next()) { var styles = _d.value; this.cssStyles.addStyles(styles); } } catch (e_7_1) { e_7 = { error: e_7_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_7) throw e_7.error; } } } try { for (var _e = __values(this.factory.getKinds()), _f = _e.next(); !_f.done; _f = _e.next()) { var kind = _f.value; this.addClassStyles(this.factory.getNodeClass(kind)); } } catch (e_8_1) { e_8 = { error: e_8_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_8) throw e_8.error; } } this.cssStyles.addStyles(this.font.styles); var sheet = this.html('style', { id: 'MJX-styles' }, [this.text('\n' + this.cssStyles.cssText + '\n')]); return sheet; }; CommonOutputJax.prototype.addClassStyles = function (CLASS) { this.cssStyles.addStyles(CLASS.styles); }; CommonOutputJax.prototype.setDocument = function (html) { if (html) { this.document = html; this.adaptor.document = html.document; } }; CommonOutputJax.prototype.html = function (type, def, content, ns) { if (def === void 0) { def = {}; } if (content === void 0) { content = []; } return this.adaptor.node(type, def, content, ns); }; CommonOutputJax.prototype.text = function (text) { return this.adaptor.text(text); }; CommonOutputJax.prototype.fixed = function (m, n) { if (n === void 0) { n = 3; } if (Math.abs(m) < .0006) { return '0'; } return m.toFixed(n).replace(/\.?0+$/, ''); }; CommonOutputJax.prototype.measureText = function (text, variant, font) { if (font === void 0) { font = ['', false, false]; } var node = this.unknownText(text, variant); if (variant === '-explicitFont') { var styles = this.cssFontStyles(font); this.adaptor.setAttributes(node, { style: styles }); } return this.measureTextNodeWithCache(node, text, variant, font); }; CommonOutputJax.prototype.measureTextNodeWithCache = function (text, chars, variant, font) { if (font === void 0) { font = ['', false, false]; } if (variant === '-explicitFont') { variant = [font[0], font[1] ? 'T' : 'F', font[2] ? 'T' : 'F', ''].join('-'); } if (!this.unknownCache.has(variant)) { this.unknownCache.set(variant, new Map()); } var map = this.unknownCache.get(variant); var cached = map.get(chars); if (cached) return cached; var bbox = this.measureTextNode(text); map.set(chars, bbox); return bbox; }; CommonOutputJax.prototype.measureXMLnode = function (xml) { var adaptor = this.adaptor; var content = this.html('mjx-xml-block', { style: { display: 'inline-block' } }, [adaptor.clone(xml)]); var base = this.html('mjx-baseline', { style: { display: 'inline-block', width: 0, height: 0 } }); var style = { position: 'absolute', display: 'inline-block', 'font-family': 'initial', 'line-height': 'normal' }; var node = this.html('mjx-measure-xml', { style: style }, [base, content]); adaptor.append(adaptor.parent(this.math.start.node), this.container); adaptor.append(this.container, node); var em = this.math.metrics.em * this.math.metrics.scale; var _a = adaptor.nodeBBox(content), left = _a.left, right = _a.right, bottom = _a.bottom, top = _a.top; var w = (right - left) / em; var h = (adaptor.nodeBBox(base).top - top) / em; var d = (bottom - top) / em - h; adaptor.remove(this.container); adaptor.remove(node); return { w: w, h: h, d: d }; }; CommonOutputJax.prototype.cssFontStyles = function (font, styles) { if (styles === void 0) { styles = {}; } var _a = __read(font, 3), family = _a[0], italic = _a[1], bold = _a[2]; styles['font-family'] = this.font.getFamily(family); if (italic) styles['font-style'] = 'italic'; if (bold) styles['font-weight'] = 'bold'; return styles; }; CommonOutputJax.prototype.getFontData = function (styles) { if (!styles) { styles = new Styles_js_1.Styles(); } return [this.font.getFamily(styles.get('font-family')), styles.get('font-style') === 'italic', styles.get('font-weight') === 'bold']; }; CommonOutputJax.NAME = 'Common'; CommonOutputJax.OPTIONS = __assign(__assign({}, OutputJax_js_1.AbstractOutputJax.OPTIONS), { scale: 1, minScale: .5, matchFontHeight: true, mtextInheritFont: false, merrorInheritFont: false, mtextFont: '', merrorFont: 'serif', mathmlSpacing: false, skipAttributes: {}, exFactor: .5, displayAlign: 'center', displayIndent: '0', wrapperFactory: null, font: null, cssStyles: null }); CommonOutputJax.commonStyles = {}; return CommonOutputJax; }(OutputJax_js_1.AbstractOutputJax)); exports.CommonOutputJax = CommonOutputJax; //# sourceMappingURL=OutputJax.js.map /***/ }), /* 18 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonWrapper = void 0; var Wrapper_js_1 = __webpack_require__(76); var MmlNode_js_1 = __webpack_require__(3); var string_js_1 = __webpack_require__(4); var LENGTHS = __webpack_require__(16); var Styles_js_1 = __webpack_require__(71); var BBox_js_1 = __webpack_require__(1); var FontData_js_1 = __webpack_require__(2); var SMALLSIZE = 2 / 18; function MathMLSpace(script, size) { return (script ? size < SMALLSIZE ? 0 : SMALLSIZE : size); } var CommonWrapper = (function (_super) { __extends(CommonWrapper, _super); function CommonWrapper(factory, node, parent) { if (parent === void 0) { parent = null; } var _this = _super.call(this, factory, node) || this; _this.parent = null; _this.removedStyles = null; _this.styles = null; _this.variant = ''; _this.bboxComputed = false; _this.stretch = FontData_js_1.NOSTRETCH; _this.font = null; _this.parent = parent; _this.font = factory.jax.font; _this.bbox = BBox_js_1.BBox.zero(); _this.getStyles(); _this.getVariant(); _this.getScale(); _this.getSpace(); _this.childNodes = node.childNodes.map(function (child) { var wrapped = _this.wrap(child); if (wrapped.bbox.pwidth && (node.notParent || node.isKind('math'))) { _this.bbox.pwidth = BBox_js_1.BBox.fullWidth; } return wrapped; }); return _this; } Object.defineProperty(CommonWrapper.prototype, "jax", { get: function () { return this.factory.jax; }, enumerable: false, configurable: true }); Object.defineProperty(CommonWrapper.prototype, "adaptor", { get: function () { return this.factory.jax.adaptor; }, enumerable: false, configurable: true }); Object.defineProperty(CommonWrapper.prototype, "metrics", { get: function () { return this.factory.jax.math.metrics; }, enumerable: false, configurable: true }); Object.defineProperty(CommonWrapper.prototype, "fixesPWidth", { get: function () { return !this.node.notParent && !this.node.isToken; }, enumerable: false, configurable: true }); CommonWrapper.prototype.wrap = function (node, parent) { if (parent === void 0) { parent = null; } var wrapped = this.factory.wrap(node, parent || this); if (parent) { parent.childNodes.push(wrapped); } this.jax.nodeMap.set(node, wrapped); return wrapped; }; CommonWrapper.prototype.getBBox = function (save) { if (save === void 0) { save = true; } if (this.bboxComputed) { return this.bbox; } var bbox = (save ? this.bbox : BBox_js_1.BBox.zero()); this.computeBBox(bbox); this.bboxComputed = save; return bbox; }; CommonWrapper.prototype.computeBBox = function (bbox, recompute) { var e_1, _a; if (recompute === void 0) { recompute = false; } bbox.empty(); try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; bbox.append(child.getBBox()); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } bbox.clean(); if (this.fixesPWidth && this.setChildPWidths(recompute)) { this.computeBBox(bbox, true); } }; CommonWrapper.prototype.setChildPWidths = function (recompute, w, clear) { var e_2, _a; if (w === void 0) { w = null; } if (clear === void 0) { clear = true; } if (recompute) { return false; } if (clear) { this.bbox.pwidth = ''; } var changed = false; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; var cbox = child.getBBox(); if (cbox.pwidth && child.setChildPWidths(recompute, w === null ? cbox.w : w, clear)) { changed = true; } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } return changed; }; CommonWrapper.prototype.invalidateBBox = function () { if (this.bboxComputed) { this.bboxComputed = false; if (this.parent) { this.parent.invalidateBBox(); } } }; CommonWrapper.prototype.copySkewIC = function (bbox) { var first = this.childNodes[0]; if (first && first.bbox.sk) { bbox.sk = first.bbox.sk; } var last = this.childNodes[this.childNodes.length - 1]; if (last && last.bbox.ic) { bbox.ic = last.bbox.ic; bbox.w += bbox.ic; } }; CommonWrapper.prototype.getStyles = function () { var styleString = this.node.attributes.getExplicit('style'); if (!styleString) return; var style = this.styles = new Styles_js_1.Styles(styleString); for (var i = 0, m = CommonWrapper.removeStyles.length; i < m; i++) { var id = CommonWrapper.removeStyles[i]; if (style.get(id)) { if (!this.removedStyles) this.removedStyles = {}; this.removedStyles[id] = style.get(id); style.set(id, ''); } } }; CommonWrapper.prototype.getVariant = function () { if (!this.node.isToken) return; var attributes = this.node.attributes; var variant = attributes.get('mathvariant'); if (!attributes.getExplicit('mathvariant')) { var values = attributes.getList('fontfamily', 'fontweight', 'fontstyle'); if (this.removedStyles) { var style = this.removedStyles; if (style.fontFamily) values.family = style.fontFamily; if (style.fontWeight) values.weight = style.fontWeight; if (style.fontStyle) values.style = style.fontStyle; } if (values.fontfamily) values.family = values.fontfamily; if (values.fontweight) values.weight = values.fontweight; if (values.fontstyle) values.style = values.fontstyle; if (values.weight && values.weight.match(/^\d+$/)) { values.weight = (parseInt(values.weight) > 600 ? 'bold' : 'normal'); } if (values.family) { variant = this.explicitVariant(values.family, values.weight, values.style); } else { if (this.node.getProperty('variantForm')) variant = '-tex-variant'; variant = (CommonWrapper.BOLDVARIANTS[values.weight] || {})[variant] || variant; variant = (CommonWrapper.ITALICVARIANTS[values.style] || {})[variant] || variant; } } this.variant = variant; }; CommonWrapper.prototype.explicitVariant = function (fontFamily, fontWeight, fontStyle) { var style = this.styles; if (!style) style = this.styles = new Styles_js_1.Styles(); style.set('fontFamily', fontFamily); if (fontWeight) style.set('fontWeight', fontWeight); if (fontStyle) style.set('fontStyle', fontStyle); return '-explicitFont'; }; CommonWrapper.prototype.getScale = function () { var scale = 1, parent = this.parent; var pscale = (parent ? parent.bbox.scale : 1); var attributes = this.node.attributes; var scriptlevel = Math.min(attributes.get('scriptlevel'), 2); var fontsize = attributes.get('fontsize'); var mathsize = (this.node.isToken || this.node.isKind('mstyle') ? attributes.get('mathsize') : attributes.getInherited('mathsize')); if (scriptlevel !== 0) { scale = Math.pow(attributes.get('scriptsizemultiplier'), scriptlevel); var scriptminsize = this.length2em(attributes.get('scriptminsize'), .8, 1); if (scale < scriptminsize) scale = scriptminsize; } if (this.removedStyles && this.removedStyles.fontSize && !fontsize) { fontsize = this.removedStyles.fontSize; } if (fontsize && !attributes.getExplicit('mathsize')) { mathsize = fontsize; } if (mathsize !== '1') { scale *= this.length2em(mathsize, 1, 1); } this.bbox.scale = scale; this.bbox.rscale = scale / pscale; }; CommonWrapper.prototype.getSpace = function () { var isTop = this.isTopEmbellished(); var hasSpacing = this.node.hasSpacingAttributes(); if (this.jax.options.mathmlSpacing || hasSpacing) { isTop && this.getMathMLSpacing(); } else { this.getTeXSpacing(isTop, hasSpacing); } }; CommonWrapper.prototype.getMathMLSpacing = function () { var node = this.node.coreMO(); var attributes = node.attributes; var isScript = (attributes.get('scriptlevel') > 0); this.bbox.L = (attributes.isSet('lspace') ? Math.max(0, this.length2em(attributes.get('lspace'))) : MathMLSpace(isScript, node.lspace)); this.bbox.R = (attributes.isSet('rspace') ? Math.max(0, this.length2em(attributes.get('rspace'))) : MathMLSpace(isScript, node.rspace)); }; CommonWrapper.prototype.getTeXSpacing = function (isTop, hasSpacing) { if (!hasSpacing) { var space = this.node.texSpacing(); if (space) { this.bbox.L = this.length2em(space); } } if (isTop || hasSpacing) { var attributes = this.node.coreMO().attributes; if (attributes.isSet('lspace')) { this.bbox.L = Math.max(0, this.length2em(attributes.get('lspace'))); } if (attributes.isSet('rspace')) { this.bbox.R = Math.max(0, this.length2em(attributes.get('rspace'))); } } }; CommonWrapper.prototype.isTopEmbellished = function () { return (this.node.isEmbellished && !(this.node.Parent && this.node.Parent.isEmbellished)); }; CommonWrapper.prototype.core = function () { return this.jax.nodeMap.get(this.node.core()); }; CommonWrapper.prototype.coreMO = function () { return this.jax.nodeMap.get(this.node.coreMO()); }; CommonWrapper.prototype.getText = function () { var e_3, _a; var text = ''; if (this.node.isToken) { try { for (var _b = __values(this.node.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child instanceof MmlNode_js_1.TextNode) { text += child.getText(); } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } } return text; }; CommonWrapper.prototype.canStretch = function (direction) { this.stretch = FontData_js_1.NOSTRETCH; if (this.node.isEmbellished) { var core = this.core(); if (core && core.node !== this.node) { if (core.canStretch(direction)) { this.stretch = core.stretch; } } } return this.stretch.dir !== 0; }; CommonWrapper.prototype.getAlignShift = function () { var _a; var _b = (_a = this.node.attributes).getList.apply(_a, __spread(MmlNode_js_1.indentAttributes)), indentalign = _b.indentalign, indentshift = _b.indentshift, indentalignfirst = _b.indentalignfirst, indentshiftfirst = _b.indentshiftfirst; if (indentalignfirst !== 'indentalign') { indentalign = indentalignfirst; } if (indentalign === 'auto') { indentalign = this.jax.options.displayAlign; } if (indentshiftfirst !== 'indentshift') { indentshift = indentshiftfirst; } if (indentshift === 'auto') { indentshift = this.jax.options.displayIndent; if (indentalign === 'right' && !indentshift.match(/^\s*0[a-z]*\s*$/)) { indentshift = ('-' + indentshift.trim()).replace(/^--/, ''); } } var shift = this.length2em(indentshift, this.metrics.containerWidth); return [indentalign, shift]; }; CommonWrapper.prototype.getAlignX = function (W, bbox, align) { return (align === 'right' ? W - (bbox.w + bbox.R) * bbox.rscale : align === 'left' ? bbox.L * bbox.rscale : (W - bbox.w * bbox.rscale) / 2); }; CommonWrapper.prototype.getAlignY = function (H, D, h, d, align) { return (align === 'top' ? H - h : align === 'bottom' ? d - D : align === 'middle' ? ((H - h) - (D - d)) / 2 : 0); }; CommonWrapper.prototype.getWrapWidth = function (i) { return this.childNodes[i].getBBox().w; }; CommonWrapper.prototype.getChildAlign = function (_i) { return 'left'; }; CommonWrapper.prototype.percent = function (m) { return LENGTHS.percent(m); }; CommonWrapper.prototype.em = function (m) { return LENGTHS.em(m); }; CommonWrapper.prototype.px = function (m, M) { if (M === void 0) { M = -LENGTHS.BIGDIMEN; } return LENGTHS.px(m, M, this.metrics.em); }; CommonWrapper.prototype.length2em = function (length, size, scale) { if (size === void 0) { size = 1; } if (scale === void 0) { scale = null; } if (scale === null) { scale = this.bbox.scale; } return LENGTHS.length2em(length, size, scale, this.jax.pxPerEm); }; CommonWrapper.prototype.unicodeChars = function (text, name) { if (name === void 0) { name = this.variant; } var chars = string_js_1.unicodeChars(text); var variant = this.font.getVariant(name); if (variant && variant.chars) { var map_1 = variant.chars; chars = chars.map(function (n) { return ((map_1[n] || [])[3] || {}).smp || n; }); } return chars; }; CommonWrapper.prototype.remapChars = function (chars) { return chars; }; CommonWrapper.prototype.mmlText = function (text) { return this.node.factory.create('text').setText(text); }; CommonWrapper.prototype.mmlNode = function (kind, properties, children) { if (properties === void 0) { properties = {}; } if (children === void 0) { children = []; } return this.node.factory.create(kind, properties, children); }; CommonWrapper.prototype.createMo = function (text) { var mmlFactory = this.node.factory; var textNode = mmlFactory.create('text').setText(text); var mml = mmlFactory.create('mo', { stretchy: true }, [textNode]); mml.inheritAttributesFrom(this.node); var node = this.wrap(mml); node.parent = this; return node; }; CommonWrapper.prototype.getVariantChar = function (variant, n) { var char = this.font.getChar(variant, n) || [0, 0, 0, { unknown: true }]; if (char.length === 3) { char[3] = {}; } return char; }; CommonWrapper.kind = 'unknown'; CommonWrapper.styles = {}; CommonWrapper.removeStyles = [ 'fontSize', 'fontFamily', 'fontWeight', 'fontStyle', 'fontVariant', 'font' ]; CommonWrapper.skipAttributes = { fontfamily: true, fontsize: true, fontweight: true, fontstyle: true, color: true, background: true, 'class': true, href: true, style: true, xmlns: true }; CommonWrapper.BOLDVARIANTS = { bold: { normal: 'bold', italic: 'bold-italic', fraktur: 'bold-fraktur', script: 'bold-script', 'sans-serif': 'bold-sans-serif', 'sans-serif-italic': 'sans-serif-bold-italic' }, normal: { bold: 'normal', 'bold-italic': 'italic', 'bold-fraktur': 'fraktur', 'bold-script': 'script', 'bold-sans-serif': 'sans-serif', 'sans-serif-bold-italic': 'sans-serif-italic' } }; CommonWrapper.ITALICVARIANTS = { italic: { normal: 'italic', bold: 'bold-italic', 'sans-serif': 'sans-serif-italic', 'bold-sans-serif': 'sans-serif-bold-italic' }, normal: { italic: 'normal', 'bold-italic': 'bold', 'sans-serif-italic': 'sans-serif', 'sans-serif-bold-italic': 'bold-sans-serif' } }; return CommonWrapper; }(Wrapper_js_1.AbstractWrapper)); exports.CommonWrapper = CommonWrapper; //# sourceMappingURL=Wrapper.js.map /***/ }), /* 19 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonWrapperFactory = void 0; var WrapperFactory_js_1 = __webpack_require__(77); var CommonWrapperFactory = (function (_super) { __extends(CommonWrapperFactory, _super); function CommonWrapperFactory() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.jax = null; return _this; } Object.defineProperty(CommonWrapperFactory.prototype, "Wrappers", { get: function () { return this.node; }, enumerable: false, configurable: true }); CommonWrapperFactory.defaultNodes = {}; return CommonWrapperFactory; }(WrapperFactory_js_1.AbstractWrapperFactory)); exports.CommonWrapperFactory = CommonWrapperFactory; //# sourceMappingURL=WrapperFactory.js.map /***/ }), /* 20 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonTeXAtomMixin = void 0; var MmlNode_js_1 = __webpack_require__(3); function CommonTeXAtomMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } _super.prototype.computeBBox.call(this, bbox, recompute); if (this.childNodes[0] && this.childNodes[0].bbox.ic) { bbox.ic = this.childNodes[0].bbox.ic; } if (this.node.texClass === MmlNode_js_1.TEXCLASS.VCENTER) { var h = bbox.h, d = bbox.d; var a = this.font.params.axis_height; var dh = ((h + d) / 2 + a) - h; bbox.h += dh; bbox.d -= dh; } }; return class_1; }(Base)); } exports.CommonTeXAtomMixin = CommonTeXAtomMixin; //# sourceMappingURL=TeXAtom.js.map /***/ }), /* 21 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonTextNodeMixin = void 0; function CommonTextNodeMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.computeBBox = function (bbox, _recompute) { var e_1, _a; if (_recompute === void 0) { _recompute = false; } var variant = this.parent.variant; var text = this.node.getText(); if (variant === '-explicitFont') { var font = this.jax.getFontData(this.parent.styles); var _b = this.jax.measureText(text, variant, font), w = _b.w, h = _b.h, d = _b.d; bbox.h = h; bbox.d = d; bbox.w = w; } else { var chars = this.remappedText(text, variant); bbox.empty(); try { for (var chars_1 = __values(chars), chars_1_1 = chars_1.next(); !chars_1_1.done; chars_1_1 = chars_1.next()) { var char = chars_1_1.value; var _c = __read(this.getVariantChar(variant, char), 4), h = _c[0], d = _c[1], w = _c[2], data = _c[3]; if (data.unknown) { var cbox = this.jax.measureText(String.fromCodePoint(char), variant); w = cbox.w; h = cbox.h; d = cbox.d; } bbox.w += w; if (h > bbox.h) bbox.h = h; if (d > bbox.d) bbox.d = d; bbox.ic = data.ic || 0; bbox.sk = data.sk || 0; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (chars_1_1 && !chars_1_1.done && (_a = chars_1.return)) _a.call(chars_1); } finally { if (e_1) throw e_1.error; } } if (chars.length > 1) { bbox.sk = 0; } bbox.clean(); } }; class_1.prototype.remappedText = function (text, variant) { var c = this.parent.stretch.c; return (c ? [c] : this.parent.remapChars(this.unicodeChars(text, variant))); }; class_1.prototype.getStyles = function () { }; class_1.prototype.getVariant = function () { }; class_1.prototype.getScale = function () { }; class_1.prototype.getSpace = function () { }; return class_1; }(Base)); } exports.CommonTextNodeMixin = CommonTextNodeMixin; //# sourceMappingURL=TextNode.js.map /***/ }), /* 22 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMathMixin = void 0; function CommonMathMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.getWrapWidth = function (_i) { return (this.parent ? this.getBBox().w : this.metrics.containerWidth / this.jax.pxPerEm); }; return class_1; }(Base)); } exports.CommonMathMixin = CommonMathMixin; //# sourceMappingURL=math.js.map /***/ }), /* 23 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMencloseMixin = void 0; var Notation = __webpack_require__(5); var string_js_1 = __webpack_require__(4); function CommonMencloseMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.notations = {}; _this.renderChild = null; _this.msqrt = null; _this.padding = Notation.PADDING; _this.thickness = Notation.THICKNESS; _this.arrowhead = { x: Notation.ARROWX, y: Notation.ARROWY, dx: Notation.ARROWDX }; _this.getParameters(); _this.getNotations(); _this.removeRedundantNotations(); _this.initializeNotations(); return _this; } class_1.prototype.getParameters = function () { var attributes = this.node.attributes; var padding = attributes.get('data-padding'); if (padding !== undefined) { this.padding = this.length2em(padding, Notation.PADDING); } var thickness = attributes.get('data-thickness'); if (thickness !== undefined) { this.thickness = this.length2em(thickness, Notation.THICKNESS); } var arrowhead = attributes.get('data-arrowhead'); if (arrowhead !== undefined) { var _b = __read(string_js_1.split(arrowhead), 3), x = _b[0], y = _b[1], dx = _b[2]; this.arrowhead = { x: (x ? parseFloat(x) : Notation.ARROWX), y: (y ? parseFloat(y) : Notation.ARROWY), dx: (dx ? parseFloat(dx) : Notation.ARROWDX) }; } }; class_1.prototype.getNotations = function () { var e_1, _b; var Notations = this.constructor.notations; try { for (var _c = __values(string_js_1.split(this.node.attributes.get('notation'))), _d = _c.next(); !_d.done; _d = _c.next()) { var name_1 = _d.value; var notation = Notations.get(name_1); if (notation) { this.notations[name_1] = notation; if (notation.renderChild) { this.renderChild = notation.renderer; } } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_b = _c.return)) _b.call(_c); } finally { if (e_1) throw e_1.error; } } }; class_1.prototype.removeRedundantNotations = function () { var e_2, _b, e_3, _c; try { for (var _d = __values(Object.keys(this.notations)), _e = _d.next(); !_e.done; _e = _d.next()) { var name_2 = _e.value; if (this.notations[name_2]) { var remove = this.notations[name_2].remove || ''; try { for (var _f = (e_3 = void 0, __values(remove.split(/ /))), _g = _f.next(); !_g.done; _g = _f.next()) { var notation = _g.value; delete this.notations[notation]; } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_g && !_g.done && (_c = _f.return)) _c.call(_f); } finally { if (e_3) throw e_3.error; } } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_e && !_e.done && (_b = _d.return)) _b.call(_d); } finally { if (e_2) throw e_2.error; } } }; class_1.prototype.initializeNotations = function () { var e_4, _b; try { for (var _c = __values(Object.keys(this.notations)), _d = _c.next(); !_d.done; _d = _c.next()) { var name_3 = _d.value; var init = this.notations[name_3].init; init && init(this); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_d && !_d.done && (_b = _c.return)) _b.call(_c); } finally { if (e_4) throw e_4.error; } } }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var _b = __read(this.getBBoxExtenders(), 4), T = _b[0], R = _b[1], B = _b[2], L = _b[3]; var child = this.childNodes[0].getBBox(); bbox.combine(child, L, 0); bbox.h += T; bbox.d += B; bbox.w += R; this.setChildPWidths(recompute); }; class_1.prototype.getBBoxExtenders = function () { var e_5, _b; var TRBL = [0, 0, 0, 0]; try { for (var _c = __values(Object.keys(this.notations)), _d = _c.next(); !_d.done; _d = _c.next()) { var name_4 = _d.value; this.maximizeEntries(TRBL, this.notations[name_4].bbox(this)); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_d && !_d.done && (_b = _c.return)) _b.call(_c); } finally { if (e_5) throw e_5.error; } } return TRBL; }; class_1.prototype.getPadding = function () { var e_6, _b; var TRBL = [0, 0, 0, 0]; var BTRBL = [0, 0, 0, 0]; try { for (var _c = __values(Object.keys(this.notations)), _d = _c.next(); !_d.done; _d = _c.next()) { var name_5 = _d.value; this.maximizeEntries(TRBL, this.notations[name_5].bbox(this)); var border = this.notations[name_5].border; if (border) { this.maximizeEntries(BTRBL, border(this)); } } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_d && !_d.done && (_b = _c.return)) _b.call(_c); } finally { if (e_6) throw e_6.error; } } return [0, 1, 2, 3].map(function (i) { return TRBL[i] - BTRBL[i]; }); }; class_1.prototype.maximizeEntries = function (X, Y) { for (var i = 0; i < X.length; i++) { if (X[i] < Y[i]) { X[i] = Y[i]; } } }; class_1.prototype.getArgMod = function (w, h) { return [Math.atan2(h, w), Math.sqrt(w * w + h * h)]; }; class_1.prototype.arrow = function (_w, _a, _double) { if (_double === void 0) { _double = false; } return null; }; class_1.prototype.arrowData = function () { var _b = __read([this.padding, this.thickness], 2), p = _b[0], t = _b[1]; var r = t * (this.arrowhead.x + Math.max(1, this.arrowhead.dx)); var _c = this.childNodes[0].getBBox(), h = _c.h, d = _c.d, w = _c.w; var H = h + d; var R = Math.sqrt(H * H + w * w); var x = Math.max(p, r * w / R); var y = Math.max(p, r * H / R); var _d = __read(this.getArgMod(w + 2 * x, H + 2 * y), 2), a = _d[0], W = _d[1]; return { a: a, W: W, x: x, y: y }; }; class_1.prototype.createMsqrt = function (child) { var mmlFactory = this.node.factory; var mml = mmlFactory.create('msqrt'); mml.inheritAttributesFrom(this.node); mml.childNodes[0] = child.node; var node = this.wrap(mml); node.parent = this; return node; }; class_1.prototype.sqrtTRBL = function () { var bbox = this.msqrt.getBBox(); var cbox = this.msqrt.childNodes[0].getBBox(); return [bbox.h - cbox.h, 0, bbox.d - cbox.d, bbox.w - cbox.w]; }; return class_1; }(Base)); } exports.CommonMencloseMixin = CommonMencloseMixin; //# sourceMappingURL=menclose.js.map /***/ }), /* 24 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMfencedMixin = void 0; function CommonMfencedMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.mrow = null; _this.createMrow(); _this.addMrowChildren(); return _this; } class_1.prototype.createMrow = function () { var mmlFactory = this.node.factory; var mrow = mmlFactory.create('inferredMrow'); mrow.inheritAttributesFrom(this.node); this.mrow = this.wrap(mrow); this.mrow.parent = this; }; class_1.prototype.addMrowChildren = function () { var e_1, _a; var mfenced = this.node; var mrow = this.mrow; this.addMo(mfenced.open); if (this.childNodes.length) { mrow.childNodes.push(this.childNodes[0]); } var i = 0; try { for (var _b = __values(this.childNodes.slice(1)), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; this.addMo(mfenced.separators[i++]); mrow.childNodes.push(child); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this.addMo(mfenced.close); mrow.stretchChildren(); }; class_1.prototype.addMo = function (node) { if (!node) return; var mo = this.wrap(node); this.mrow.childNodes.push(mo); mo.parent = this.mrow; }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } bbox.updateFrom(this.mrow.getBBox()); this.setChildPWidths(recompute); }; return class_1; }(Base)); } exports.CommonMfencedMixin = CommonMfencedMixin; //# sourceMappingURL=mfenced.js.map /***/ }), /* 25 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMfracMixin = void 0; function CommonMfracMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.bevel = null; _this.pad = (_this.node.getProperty('withDelims') ? 0 : _this.font.params.nulldelimiterspace); if (_this.node.attributes.get('bevelled')) { var H = _this.getBevelData(_this.isDisplay()).H; var bevel = _this.bevel = _this.createMo('/'); bevel.canStretch(1); bevel.getStretchedVariant([H], true); } return _this; } class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } bbox.empty(); var _a = this.node.attributes.getList('linethickness', 'bevelled'), linethickness = _a.linethickness, bevelled = _a.bevelled; var display = this.isDisplay(); var w = null; if (bevelled) { this.getBevelledBBox(bbox, display); } else { var thickness = this.length2em(String(linethickness), .06); w = -2 * this.pad; if (thickness === 0) { this.getAtopBBox(bbox, display); } else { this.getFractionBBox(bbox, display, thickness); w -= .2; } w += bbox.w; } bbox.clean(); this.setChildPWidths(recompute, w); }; class_1.prototype.getFractionBBox = function (bbox, display, t) { var nbox = this.childNodes[0].getBBox(); var dbox = this.childNodes[1].getBBox(); var tex = this.font.params; var a = tex.axis_height; var _a = this.getTUV(display, t), T = _a.T, u = _a.u, v = _a.v; bbox.combine(nbox, 0, a + T + Math.max(nbox.d * nbox.rscale, u)); bbox.combine(dbox, 0, a - T - Math.max(dbox.h * dbox.rscale, v)); bbox.w += 2 * this.pad + .2; }; class_1.prototype.getTUV = function (display, t) { var tex = this.font.params; var a = tex.axis_height; var T = (display ? 3.5 : 1.5) * t; return { T: (display ? 3.5 : 1.5) * t, u: (display ? tex.num1 : tex.num2) - a - T, v: (display ? tex.denom1 : tex.denom2) + a - T }; }; class_1.prototype.getAtopBBox = function (bbox, display) { var _a = this.getUVQ(display), u = _a.u, v = _a.v, nbox = _a.nbox, dbox = _a.dbox; bbox.combine(nbox, 0, u); bbox.combine(dbox, 0, -v); bbox.w += 2 * this.pad; }; class_1.prototype.getUVQ = function (display) { var nbox = this.childNodes[0].getBBox(); var dbox = this.childNodes[1].getBBox(); var tex = this.font.params; var _a = __read((display ? [tex.num1, tex.denom1] : [tex.num3, tex.denom2]), 2), u = _a[0], v = _a[1]; var p = (display ? 7 : 3) * tex.rule_thickness; var q = (u - nbox.d * nbox.scale) - (dbox.h * dbox.scale - v); if (q < p) { u += (p - q) / 2; v += (p - q) / 2; q = p; } return { u: u, v: v, q: q, nbox: nbox, dbox: dbox }; }; class_1.prototype.getBevelledBBox = function (bbox, display) { var _a = this.getBevelData(display), u = _a.u, v = _a.v, delta = _a.delta, nbox = _a.nbox, dbox = _a.dbox; var lbox = this.bevel.getBBox(); bbox.combine(nbox, 0, u); bbox.combine(lbox, bbox.w - delta / 2, 0); bbox.combine(dbox, bbox.w - delta / 2, v); }; class_1.prototype.getBevelData = function (display) { var nbox = this.childNodes[0].getBBox(); var dbox = this.childNodes[1].getBBox(); var delta = (display ? .4 : .15); var H = Math.max(nbox.scale * (nbox.h + nbox.d), dbox.scale * (dbox.h + dbox.d)) + 2 * delta; var a = this.font.params.axis_height; var u = nbox.scale * (nbox.d - nbox.h) / 2 + a + delta; var v = dbox.scale * (dbox.d - dbox.h) / 2 + a - delta; return { H: H, delta: delta, u: u, v: v, nbox: nbox, dbox: dbox }; }; class_1.prototype.canStretch = function (_direction) { return false; }; class_1.prototype.isDisplay = function () { var _a = this.node.attributes.getList('displaystyle', 'scriptlevel'), displaystyle = _a.displaystyle, scriptlevel = _a.scriptlevel; return displaystyle && scriptlevel === 0; }; class_1.prototype.getWrapWidth = function (i) { var attributes = this.node.attributes; if (attributes.get('bevelled')) { return this.childNodes[i].getBBox().w; } var w = this.getBBox().w; var thickness = this.length2em(attributes.get('linethickness')); return w - (thickness ? .2 : 0) - 2 * this.pad; }; class_1.prototype.getChildAlign = function (i) { var attributes = this.node.attributes; return (attributes.get('bevelled') ? 'left' : attributes.get(['numalign', 'denomalign'][i])); }; return class_1; }(Base)); } exports.CommonMfracMixin = CommonMfracMixin; //# sourceMappingURL=mfrac.js.map /***/ }), /* 26 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMglyphMixin = void 0; function CommonMglyphMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.getParameters(); return _this; } class_1.prototype.getParameters = function () { var _a = this.node.attributes.getList('width', 'height', 'valign'), width = _a.width, height = _a.height, valign = _a.valign; this.width = (width === 'auto' ? 1 : this.length2em(width)); this.height = (height === 'auto' ? 1 : this.length2em(height)); this.valign = this.length2em(valign || '0'); }; class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } bbox.w = this.width; bbox.h = this.height + this.valign; bbox.d = -this.valign; }; return class_1; }(Base)); } exports.CommonMglyphMixin = CommonMglyphMixin; //# sourceMappingURL=mglyph.js.map /***/ }), /* 27 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMiMixin = void 0; function CommonMiMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.noIC = false; return _this; } class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } _super.prototype.computeBBox.call(this, bbox); this.copySkewIC(bbox); if (this.noIC) { bbox.w -= bbox.ic; } }; return class_1; }(Base)); } exports.CommonMiMixin = CommonMiMixin; //# sourceMappingURL=mi.js.map /***/ }), /* 28 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMmultiscriptsMixin = exports.ScriptNames = exports.NextScript = void 0; var BBox_js_1 = __webpack_require__(1); exports.NextScript = { base: 'subList', subList: 'supList', supList: 'subList', psubList: 'psupList', psupList: 'psubList', }; exports.ScriptNames = ['sup', 'sup', 'psup', 'psub']; function CommonMmultiscriptsMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.scriptData = null; _this.firstPrescript = 0; return _this; } class_1.prototype.combinePrePost = function (pre, post) { var bbox = new BBox_js_1.BBox(pre); bbox.combine(post, 0, 0); return bbox; }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var scriptspace = this.font.params.scriptspace; var data = this.getScriptData(); var sub = this.combinePrePost(data.sub, data.psub); var sup = this.combinePrePost(data.sup, data.psup); var _a = __read(this.getUVQ(data.base, sub, sup), 2), u = _a[0], v = _a[1]; bbox.empty(); if (data.numPrescripts) { bbox.combine(data.psup, scriptspace, u); bbox.combine(data.psub, scriptspace, v); } bbox.append(data.base); if (data.numScripts) { var w = bbox.w; bbox.combine(data.sup, w, u); bbox.combine(data.sub, w, v); bbox.w += scriptspace; } bbox.clean(); this.setChildPWidths(recompute); }; class_1.prototype.getScriptData = function () { if (this.scriptData) { return this.scriptData; } var data = this.scriptData = { base: null, sub: BBox_js_1.BBox.empty(), sup: BBox_js_1.BBox.empty(), psub: BBox_js_1.BBox.empty(), psup: BBox_js_1.BBox.empty(), numPrescripts: 0, numScripts: 0 }; var lists = this.getScriptBBoxLists(); this.combineBBoxLists(data.sub, data.sup, lists.subList, lists.supList); this.combineBBoxLists(data.psub, data.psup, lists.psubList, lists.psupList); this.scriptData.base = lists.base[0]; this.scriptData.numPrescripts = lists.psubList.length; this.scriptData.numScripts = lists.subList.length; return this.scriptData; }; class_1.prototype.getScriptBBoxLists = function () { var e_1, _a; var lists = { base: [], subList: [], supList: [], psubList: [], psupList: [] }; var script = 'base'; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child.node.isKind('mprescripts')) { script = 'psubList'; } else { lists[script].push(child.getBBox()); script = exports.NextScript[script]; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this.firstPrescript = lists.subList.length + lists.supList.length + 2; this.padLists(lists.subList, lists.supList); this.padLists(lists.psubList, lists.psupList); return lists; }; class_1.prototype.padLists = function (list1, list2) { if (list1.length > list2.length) { list2.push(BBox_js_1.BBox.empty()); } }; class_1.prototype.combineBBoxLists = function (bbox1, bbox2, list1, list2) { for (var i = 0; i < list1.length; i++) { var _a = __read(this.getScaledWHD(list1[i]), 3), w1 = _a[0], h1 = _a[1], d1 = _a[2]; var _b = __read(this.getScaledWHD(list2[i]), 3), w2 = _b[0], h2 = _b[1], d2 = _b[2]; var w = Math.max(w1, w2); bbox1.w += w; bbox2.w += w; if (h1 > bbox1.h) bbox1.h = h1; if (d1 > bbox1.d) bbox1.d = d1; if (h2 > bbox2.h) bbox2.h = h2; if (d2 > bbox2.d) bbox2.d = d2; } }; class_1.prototype.getScaledWHD = function (bbox) { var w = bbox.w, h = bbox.h, d = bbox.d, rscale = bbox.rscale; return [w * rscale, h * rscale, d * rscale]; }; class_1.prototype.getUVQ = function (basebox, subbox, supbox) { var _a; if (!this.UVQ) { var _b = __read([0, 0, 0], 3), u = _b[0], v = _b[1], q = _b[2]; if (subbox.h === 0 && subbox.d === 0) { u = this.getU(basebox, supbox); } else if (supbox.h === 0 && supbox.d === 0) { u = -this.getV(basebox, subbox); } else { _a = __read(_super.prototype.getUVQ.call(this, basebox, subbox, supbox), 3), u = _a[0], v = _a[1], q = _a[2]; } this.UVQ = [u, v, q]; } return this.UVQ; }; return class_1; }(Base)); } exports.CommonMmultiscriptsMixin = CommonMmultiscriptsMixin; //# sourceMappingURL=mmultiscripts.js.map /***/ }), /* 29 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMnMixin = void 0; function CommonMnMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.remapChars = function (chars) { if (chars.length) { var text = this.font.getRemappedChar('mn', chars[0]); if (text) { var c = this.unicodeChars(text, this.variant); if (c.length === 1) { chars[0] = c[0]; } else { chars = c.concat(chars.slice(1)); } } } return chars; }; return class_1; }(Base)); } exports.CommonMnMixin = CommonMnMixin; //# sourceMappingURL=mn.js.map /***/ }), /* 30 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMoMixin = exports.DirectionVH = void 0; var FontData_js_1 = __webpack_require__(2); exports.DirectionVH = (_a = {}, _a[1] = 'v', _a[2] = 'h', _a); function CommonMoMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.noIC = false; _this.size = null; _this.isAccent = _this.node.isAccent; return _this; } class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } var stretchy = (this.stretch.dir !== 0); if (stretchy && this.size === null) { this.getStretchedVariant([0]); } if (stretchy && this.size < 0) return; _super.prototype.computeBBox.call(this, bbox); this.copySkewIC(bbox); if (this.noIC) { bbox.w -= bbox.ic; } if (this.node.attributes.get('symmetric') && this.stretch.dir !== 2) { var d = ((bbox.h + bbox.d) / 2 + this.font.params.axis_height) - bbox.h; bbox.h += d; bbox.d -= d; } }; class_1.prototype.getVariant = function () { if (this.node.attributes.get('largeop')) { this.variant = (this.node.attributes.get('displaystyle') ? '-largeop' : '-smallop'); } else { _super.prototype.getVariant.call(this); } }; class_1.prototype.canStretch = function (direction) { if (this.stretch.dir !== 0) { return this.stretch.dir === direction; } var attributes = this.node.attributes; if (!attributes.get('stretchy')) return false; var c = this.getText(); if (Array.from(c).length !== 1) return false; var delim = this.font.getDelimiter(c.codePointAt(0)); this.stretch = (delim && delim.dir === direction ? delim : FontData_js_1.NOSTRETCH); return this.stretch.dir !== 0; }; class_1.prototype.getStretchedVariant = function (WH, exact) { var e_1, _a; if (exact === void 0) { exact = false; } if (this.stretch.dir !== 0) { var D = this.getWH(WH); var min = this.getSize('minsize', 0); var max = this.getSize('maxsize', Infinity); D = Math.max(min, Math.min(max, D)); var m = (min || exact ? D : Math.max(D * this.font.params.delimiterfactor / 1000, D - this.font.params.delimitershortfall)); var delim = this.stretch; var c = delim.c || this.getText().codePointAt(0); var i = 0; if (delim.sizes) { try { for (var _b = __values(delim.sizes), _c = _b.next(); !_c.done; _c = _b.next()) { var d = _c.value; if (d >= m) { this.variant = this.font.getSizeVariant(c, i); this.size = i; return; } i++; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } if (delim.stretch) { this.size = -1; this.invalidateBBox(); this.getStretchBBox(WH, D, delim); } else { this.variant = this.font.getSizeVariant(c, i - 1); this.size = i - 1; } } }; class_1.prototype.getSize = function (name, value) { var attributes = this.node.attributes; if (attributes.isSet(name)) { value = this.length2em(attributes.get(name), 1, 1); } return value; }; class_1.prototype.getWH = function (WH) { if (WH.length === 0) return 0; if (WH.length === 1) return WH[0]; var _a = __read(WH, 2), H = _a[0], D = _a[1]; var a = this.font.params.axis_height; return (this.node.attributes.get('symmetric') ? 2 * Math.max(H - a, D + a) : H + D); }; class_1.prototype.getStretchBBox = function (WHD, D, C) { var _a; if (C.hasOwnProperty('min') && C.min > D) { D = C.min; } var _b = __read(C.HDW, 3), h = _b[0], d = _b[1], w = _b[2]; if (this.stretch.dir === 1) { _a = __read(this.getBaseline(WHD, D, C), 2), h = _a[0], d = _a[1]; } else { w = D; } this.bbox.h = h; this.bbox.d = d; this.bbox.w = w; }; class_1.prototype.getBaseline = function (WHD, HD, C) { var hasWHD = (WHD.length === 2 && WHD[0] + WHD[1] === HD); var symmetric = this.node.attributes.get('symmetric'); var _a = __read((hasWHD ? WHD : [HD, 0]), 2), H = _a[0], D = _a[1]; var _b = __read([H + D, 0], 2), h = _b[0], d = _b[1]; if (symmetric) { var a = this.font.params.axis_height; if (hasWHD) { h = 2 * Math.max(H - a, D + a); } d = h / 2 - a; } else if (hasWHD) { d = D; } else { var _c = __read((C.HDW || [.75, .25]), 2), ch = _c[0], cd = _c[1]; d = cd * (h / (ch + cd)); } return [h - d, d]; }; class_1.prototype.remapChars = function (chars) { if (chars.length === 1) { var parent_1 = this.node.coreParent().parent; var isAccent = this.isAccent && !parent_1.isKind('mrow'); var map = (isAccent ? 'accent' : 'mo'); var text = this.font.getRemappedChar(map, chars[0]); if (text) { chars = this.unicodeChars(text, this.variant); } } return chars; }; return class_1; }(Base)); } exports.CommonMoMixin = CommonMoMixin; //# sourceMappingURL=mo.js.map /***/ }), /* 31 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMpaddedMixin = void 0; function CommonMpaddedMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.getDimens = function () { var values = this.node.attributes.getList('width', 'height', 'depth', 'lspace', 'voffset'); var bbox = this.childNodes[0].getBBox(); var w = bbox.w, h = bbox.h, d = bbox.d; var W = w, H = h, D = d, x = 0, y = 0, dx = 0; if (values.width !== '') w = this.dimen(values.width, bbox, 'w', 0); if (values.height !== '') h = this.dimen(values.height, bbox, 'h', 0); if (values.depth !== '') d = this.dimen(values.depth, bbox, 'd', 0); if (values.voffset !== '') y = this.dimen(values.voffset, bbox); if (values.lspace !== '') x = this.dimen(values.lspace, bbox); var align = this.node.attributes.get('data-align'); if (align) { dx = this.getAlignX(w, bbox, align); } return [H, D, W, h - H, d - D, w - W, x, y, dx]; }; class_1.prototype.dimen = function (length, bbox, d, m) { if (d === void 0) { d = ''; } if (m === void 0) { m = null; } length = String(length); var match = length.match(/width|height|depth/); var size = (match ? bbox[match[0].charAt(0)] : (d ? bbox[d] : 0)); var dimen = (this.length2em(length, size) || 0); if (length.match(/^[-+]/) && d) { dimen += size; } if (m != null) { dimen = Math.max(m, dimen); } return dimen; }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var _a = __read(this.getDimens(), 6), H = _a[0], D = _a[1], W = _a[2], dh = _a[3], dd = _a[4], dw = _a[5]; bbox.w = W + dw; bbox.h = H + dh; bbox.d = D + dd; this.setChildPWidths(recompute, bbox.w); }; class_1.prototype.getWrapWidth = function (_i) { return this.getBBox().w; }; class_1.prototype.getChildAlign = function (_i) { return this.node.attributes.get('data-align') || 'left'; }; return class_1; }(Base)); } exports.CommonMpaddedMixin = CommonMpaddedMixin; //# sourceMappingURL=mpadded.js.map /***/ }), /* 32 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMrootMixin = void 0; function CommonMrootMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_1.prototype, "surd", { get: function () { return 2; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "root", { get: function () { return 1; }, enumerable: false, configurable: true }); class_1.prototype.combineRootBBox = function (BBOX, sbox, H) { var bbox = this.childNodes[this.root].getBBox(); var h = this.getRootDimens(sbox, H)[1]; BBOX.combine(bbox, 0, h); }; class_1.prototype.getRootDimens = function (sbox, H) { var surd = this.childNodes[this.surd]; var bbox = this.childNodes[this.root].getBBox(); var offset = (surd.size < 0 ? .5 : .6) * sbox.w; var w = bbox.w, rscale = bbox.rscale; var W = Math.max(w, offset / rscale); var dx = Math.max(0, W - w); var h = this.rootHeight(bbox, sbox, surd.size, H); var x = W * rscale - offset; return [x, h, dx]; }; class_1.prototype.rootHeight = function (rbox, sbox, size, H) { var h = sbox.h + sbox.d; var b = (size < 0 ? 1.9 : .55 * h) - (h - H); return b + Math.max(0, rbox.d * rbox.rscale); }; return class_1; }(Base)); } exports.CommonMrootMixin = CommonMrootMixin; //# sourceMappingURL=mroot.js.map /***/ }), /* 33 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMsMixin = void 0; function CommonMsMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; var attributes = _this.node.attributes; var quotes = attributes.getList('lquote', 'rquote'); if (_this.variant !== 'monospace') { if (!attributes.isSet('lquote') && quotes.lquote === '"') quotes.lquote = '\u201C'; if (!attributes.isSet('rquote') && quotes.rquote === '"') quotes.rquote = '\u201D'; } _this.childNodes.unshift(_this.createText(quotes.lquote)); _this.childNodes.push(_this.createText(quotes.rquote)); return _this; } class_1.prototype.createText = function (text) { var node = this.wrap(this.mmlText(text)); node.parent = this; return node; }; return class_1; }(Base)); } exports.CommonMsMixin = CommonMsMixin; //# sourceMappingURL=ms.js.map /***/ }), /* 34 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMspaceMixin = void 0; function CommonMspaceMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } var attributes = this.node.attributes; bbox.w = this.length2em(attributes.get('width'), 0); bbox.h = this.length2em(attributes.get('height'), 0); bbox.d = this.length2em(attributes.get('depth'), 0); }; class_1.prototype.handleVariant = function () { }; return class_1; }(Base)); } exports.CommonMspaceMixin = CommonMspaceMixin; //# sourceMappingURL=mspace.js.map /***/ }), /* 35 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMsqrtMixin = void 0; var BBox_js_1 = __webpack_require__(1); function CommonMsqrtMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; var surd = _this.createMo('\u221A'); surd.canStretch(1); var _a = _this.childNodes[_this.base].getBBox(), h = _a.h, d = _a.d; var t = _this.font.params.rule_thickness; var p = (_this.node.attributes.get('displaystyle') ? _this.font.params.x_height : t); _this.surdH = h + d + 2 * t + p / 4; surd.getStretchedVariant([_this.surdH - d, d], true); return _this; } Object.defineProperty(class_1.prototype, "base", { get: function () { return 0; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "surd", { get: function () { return 1; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "root", { get: function () { return null; }, enumerable: false, configurable: true }); class_1.prototype.createMo = function (text) { var node = _super.prototype.createMo.call(this, text); this.childNodes.push(node); return node; }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var surdbox = this.childNodes[this.surd].getBBox(); var basebox = new BBox_js_1.BBox(this.childNodes[this.base].getBBox()); var q = this.getPQ(surdbox)[1]; var t = this.font.params.rule_thickness; var H = basebox.h + q + t; var _a = __read(this.getRootDimens(surdbox, H), 1), x = _a[0]; bbox.h = H + t; this.combineRootBBox(bbox, surdbox, H); bbox.combine(surdbox, x, H - surdbox.h); bbox.combine(basebox, x + surdbox.w, 0); bbox.clean(); this.setChildPWidths(recompute); }; class_1.prototype.combineRootBBox = function (_bbox, _sbox, _H) { }; class_1.prototype.getPQ = function (sbox) { var t = this.font.params.rule_thickness; var p = (this.node.attributes.get('displaystyle') ? this.font.params.x_height : t); var q = (sbox.h + sbox.d > this.surdH ? ((sbox.h + sbox.d) - (this.surdH - 2 * t - p / 2)) / 2 : t + p / 4); return [p, q]; }; class_1.prototype.getRootDimens = function (_sbox, _H) { return [0, 0, 0, 0]; }; return class_1; }(Base)); } exports.CommonMsqrtMixin = CommonMsqrtMixin; //# sourceMappingURL=msqrt.js.map /***/ }), /* 36 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMtableMixin = void 0; var BBox_js_1 = __webpack_require__(1); var string_js_1 = __webpack_require__(4); var numeric_js_1 = __webpack_require__(78); function CommonMtableMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.numCols = 0; _this.numRows = 0; _this.data = null; _this.pwidthCells = []; _this.pWidth = 0; _this.numCols = numeric_js_1.max(_this.tableRows.map(function (row) { return row.numCells; })); _this.numRows = _this.childNodes.length; _this.hasLabels = _this.childNodes.reduce(function (value, row) { return value || row.node.isKind('mlabeledtr'); }, false); _this.findContainer(); _this.isTop = !_this.container || (_this.container.node.isKind('math') && !_this.container.parent); if (_this.isTop) { _this.jax.table = _this; } _this.getPercentageWidth(); var attributes = _this.node.attributes; _this.frame = attributes.get('frame') !== 'none'; _this.fLine = (_this.frame ? .07 : 0); _this.fSpace = (_this.frame ? _this.convertLengths(_this.getAttributeArray('framespacing')) : [0, 0]); _this.cSpace = _this.convertLengths(_this.getColumnAttributes('columnspacing')); _this.rSpace = _this.convertLengths(_this.getRowAttributes('rowspacing')); _this.cLines = _this.getColumnAttributes('columnlines').map(function (x) { return (x === 'none' ? 0 : .07); }); _this.rLines = _this.getRowAttributes('rowlines').map(function (x) { return (x === 'none' ? 0 : .07); }); _this.cWidths = _this.getColumnWidths(); _this.stretchRows(); _this.stretchColumns(); return _this; } Object.defineProperty(class_1.prototype, "tableRows", { get: function () { return this.childNodes; }, enumerable: false, configurable: true }); class_1.prototype.findContainer = function () { var node = this; var parent = node.parent; while (parent && (parent.node.notParent || parent.node.isKind('mrow'))) { node = parent; parent = parent.parent; } this.container = parent; this.containerI = node.node.childPosition(); }; class_1.prototype.getPercentageWidth = function () { if (this.hasLabels) { this.bbox.pwidth = BBox_js_1.BBox.fullWidth; } else { var width = this.node.attributes.get('width'); if (string_js_1.isPercent(width)) { this.bbox.pwidth = width; } } }; class_1.prototype.stretchRows = function () { var equal = this.node.attributes.get('equalrows'); var HD = (equal ? this.getEqualRowHeight() : 0); var _a = (equal ? this.getTableData() : { H: [0], D: [0] }), H = _a.H, D = _a.D; var rows = this.tableRows; for (var i = 0; i < this.numRows; i++) { var hd = (equal ? [(HD + H[i] - D[i]) / 2, (HD - H[i] + D[i]) / 2] : null); rows[i].stretchChildren(hd); } }; class_1.prototype.stretchColumns = function () { for (var i = 0; i < this.numCols; i++) { var width = (typeof this.cWidths[i] === 'number' ? this.cWidths[i] : null); this.stretchColumn(i, width); } }; class_1.prototype.stretchColumn = function (i, W) { var e_1, _a, e_2, _b, e_3, _c; var stretchy = []; try { for (var _d = __values(this.tableRows), _e = _d.next(); !_e.done; _e = _d.next()) { var row = _e.value; var cell = row.getChild(i); if (cell) { var child = cell.childNodes[0]; if (child.stretch.dir === 0 && child.canStretch(2)) { stretchy.push(child); } } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_1) throw e_1.error; } } var count = stretchy.length; var nodeCount = this.childNodes.length; if (count && nodeCount > 1) { if (W === null) { W = 0; var all = (count > 1 && count === nodeCount); try { for (var _f = __values(this.tableRows), _g = _f.next(); !_g.done; _g = _f.next()) { var row = _g.value; var cell = row.getChild(i); if (cell) { var child = cell.childNodes[0]; var noStretch = (child.stretch.dir === 0); if (all || noStretch) { var w = child.getBBox(noStretch).w; if (w > W) { W = w; } } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_2) throw e_2.error; } } } try { for (var stretchy_1 = __values(stretchy), stretchy_1_1 = stretchy_1.next(); !stretchy_1_1.done; stretchy_1_1 = stretchy_1.next()) { var child = stretchy_1_1.value; child.coreMO().getStretchedVariant([W]); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (stretchy_1_1 && !stretchy_1_1.done && (_c = stretchy_1.return)) _c.call(stretchy_1); } finally { if (e_3) throw e_3.error; } } } }; class_1.prototype.getTableData = function () { if (this.data) { return this.data; } var H = new Array(this.numRows).fill(0); var D = new Array(this.numRows).fill(0); var W = new Array(this.numCols).fill(0); var NH = new Array(this.numRows); var ND = new Array(this.numRows); var LW = [0]; var rows = this.tableRows; for (var j = 0; j < rows.length; j++) { var row = rows[j]; for (var i = 0; i < row.numCells; i++) { var cell = row.getChild(i); this.updateHDW(cell, i, j, H, D, W); this.recordPWidthCell(cell, i); } NH[j] = H[j]; ND[j] = D[j]; if (row.labeled) { this.updateHDW(row.childNodes[0], 0, j, H, D, LW); } } var L = LW[0]; this.data = { H: H, D: D, W: W, NH: NH, ND: ND, L: L }; return this.data; }; class_1.prototype.updateHDW = function (cell, i, j, H, D, W) { if (W === void 0) { W = null; } var _a = cell.getBBox(), h = _a.h, d = _a.d, w = _a.w; if (h < .75) h = .75; if (d < .25) d = .25; if (h > H[j]) H[j] = h; if (d > D[j]) D[j] = d; if (W && w > W[i]) W[i] = w; }; class_1.prototype.recordPWidthCell = function (cell, i) { if (cell.childNodes[0] && cell.childNodes[0].getBBox().pwidth) { this.pwidthCells.push([cell, i]); } }; class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } var _a = this.getTableData(), H = _a.H, D = _a.D; var height, width; if (this.node.attributes.get('equalrows')) { var HD = this.getEqualRowHeight(); height = numeric_js_1.sum([].concat(this.rLines, this.rSpace)) + HD * this.numRows; } else { height = numeric_js_1.sum(H.concat(D, this.rLines, this.rSpace)); } height += 2 * (this.fLine + this.fSpace[1]); var CW = this.getComputedWidths(); width = numeric_js_1.sum(CW.concat(this.cLines, this.cSpace)) + 2 * (this.fLine + this.fSpace[0]); var w = this.node.attributes.get('width'); if (w !== 'auto') { width = Math.max(this.length2em(w, 0) + 2 * this.fLine, width); } var _b = __read(this.getBBoxHD(height), 2), h = _b[0], d = _b[1]; bbox.h = h; bbox.d = d; bbox.w = width; var _c = __read(this.getBBoxLR(), 2), L = _c[0], R = _c[1]; bbox.L = L; bbox.R = R; if (!string_js_1.isPercent(w)) { this.setColumnPWidths(); } }; class_1.prototype.setChildPWidths = function (_recompute, cwidth, _clear) { var width = this.node.attributes.get('width'); if (!string_js_1.isPercent(width)) return false; if (!this.hasLabels) { this.bbox.pwidth = ''; this.container.bbox.pwidth = ''; } var _a = this.bbox, w = _a.w, L = _a.L, R = _a.R; var W = Math.max(w, this.length2em(width, Math.max(cwidth, L + w + R))); var cols = (this.node.attributes.get('equalcolumns') ? Array(this.numCols).fill(this.percent(1 / Math.max(1, this.numCols))) : this.getColumnAttributes('columnwidth', 0)); this.cWidths = this.getColumnWidthsFixed(cols, W); var CW = this.getComputedWidths(); this.pWidth = numeric_js_1.sum(CW.concat(this.cLines, this.cSpace)) + 2 * (this.fLine + this.fSpace[0]); if (this.isTop) { this.bbox.w = this.pWidth; } this.setColumnPWidths(); if (this.pWidth !== w) { this.parent.invalidateBBox(); } return this.pWidth !== w; }; class_1.prototype.setColumnPWidths = function () { var e_4, _a; var W = this.cWidths; try { for (var _b = __values(this.pwidthCells), _c = _b.next(); !_c.done; _c = _b.next()) { var _d = __read(_c.value, 2), cell = _d[0], i = _d[1]; if (cell.setChildPWidths(false, W[i])) { cell.invalidateBBox(); cell.getBBox(); } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } }; class_1.prototype.getBBoxHD = function (height) { var _a = __read(this.getAlignmentRow(), 2), align = _a[0], row = _a[1]; if (row === null) { var a = this.font.params.axis_height; var h2 = height / 2; var HD = { top: [0, height], center: [h2, h2], bottom: [height, 0], baseline: [h2, h2], axis: [h2 + a, h2 - a] }; return HD[align] || [h2, h2]; } else { var y = this.getVerticalPosition(row, align); return [y, height - y]; } }; class_1.prototype.getBBoxLR = function () { if (this.hasLabels) { var side = this.node.attributes.get('side'); var _a = __read(this.getPadAlignShift(side), 2), pad = _a[0], align = _a[1]; return (align === 'center' ? [pad, pad] : side === 'left' ? [pad, 0] : [0, pad]); } return [0, 0]; }; class_1.prototype.getPadAlignShift = function (side) { var L = this.getTableData().L; var sep = this.length2em(this.node.attributes.get('minlabelspacing')); var pad = L + sep; var _a = __read((this.styles == null ? ['', ''] : [this.styles.get('padding-left'), this.styles.get('padding-right')]), 2), lpad = _a[0], rpad = _a[1]; if (lpad || rpad) { pad = Math.max(pad, this.length2em(lpad || '0'), this.length2em(rpad || '0')); } var _b = __read(this.getAlignShift(), 2), align = _b[0], shift = _b[1]; if (align === side) { shift = (side === 'left' ? Math.max(pad, shift) - pad : Math.min(-pad, shift) + pad); } return [pad, align, shift]; }; class_1.prototype.getAlignShift = function () { return (this.isTop ? _super.prototype.getAlignShift.call(this) : [this.container.getChildAlign(this.containerI), 0]); }; class_1.prototype.getWidth = function () { return this.pWidth || this.getBBox().w; }; class_1.prototype.getEqualRowHeight = function () { var _a = this.getTableData(), H = _a.H, D = _a.D; var HD = Array.from(H.keys()).map(function (i) { return H[i] + D[i]; }); return Math.max.apply(Math, HD); }; class_1.prototype.getComputedWidths = function () { var _this = this; var W = this.getTableData().W; var CW = Array.from(W.keys()).map(function (i) { return (typeof _this.cWidths[i] === 'number' ? _this.cWidths[i] : W[i]); }); if (this.node.attributes.get('equalcolumns')) { CW = Array(CW.length).fill(numeric_js_1.max(CW)); } return CW; }; class_1.prototype.getColumnWidths = function () { var width = this.node.attributes.get('width'); if (this.node.attributes.get('equalcolumns')) { return this.getEqualColumns(width); } var swidths = this.getColumnAttributes('columnwidth', 0); if (width === 'auto') { return this.getColumnWidthsAuto(swidths); } if (string_js_1.isPercent(width)) { return this.getColumnWidthsPercent(swidths); } return this.getColumnWidthsFixed(swidths, this.length2em(width)); }; class_1.prototype.getEqualColumns = function (width) { var n = Math.max(1, this.numCols); var cwidth; if (width === 'auto') { var W = this.getTableData().W; cwidth = numeric_js_1.max(W); } else if (string_js_1.isPercent(width)) { cwidth = this.percent(1 / n); } else { var w = numeric_js_1.sum([].concat(this.cLines, this.cSpace)) + 2 * this.fSpace[0]; cwidth = Math.max(0, this.length2em(width) - w) / n; } return Array(this.numCols).fill(cwidth); }; class_1.prototype.getColumnWidthsAuto = function (swidths) { var _this = this; return swidths.map(function (x) { if (x === 'auto' || x === 'fit') return null; if (string_js_1.isPercent(x)) return x; return _this.length2em(x); }); }; class_1.prototype.getColumnWidthsPercent = function (swidths) { var _this = this; var hasFit = swidths.indexOf('fit') >= 0; var W = (hasFit ? this.getTableData() : { W: null }).W; return Array.from(swidths.keys()).map(function (i) { var x = swidths[i]; if (x === 'fit') return null; if (x === 'auto') return (hasFit ? W[i] : null); if (string_js_1.isPercent(x)) return x; return _this.length2em(x); }); }; class_1.prototype.getColumnWidthsFixed = function (swidths, width) { var _this = this; var indices = Array.from(swidths.keys()); var fit = indices.filter(function (i) { return swidths[i] === 'fit'; }); var auto = indices.filter(function (i) { return swidths[i] === 'auto'; }); var n = fit.length || auto.length; var W = (n ? this.getTableData() : { W: null }).W; var cwidth = width - numeric_js_1.sum([].concat(this.cLines, this.cSpace)) - 2 * this.fSpace[0]; var dw = cwidth; indices.forEach(function (i) { var x = swidths[i]; dw -= (x === 'fit' || x === 'auto' ? W[i] : _this.length2em(x, width)); }); var fw = (n && dw > 0 ? dw / n : 0); return indices.map(function (i) { var x = swidths[i]; if (x === 'fit') return W[i] + fw; if (x === 'auto') return W[i] + (fit.length === 0 ? fw : 0); return _this.length2em(x, cwidth); }); }; class_1.prototype.getVerticalPosition = function (i, align) { var equal = this.node.attributes.get('equalrows'); var _a = this.getTableData(), H = _a.H, D = _a.D; var HD = (equal ? this.getEqualRowHeight() : 0); var space = this.getRowHalfSpacing(); var y = this.fLine; for (var j = 0; j < i; j++) { y += space[j] + (equal ? HD : H[j] + D[j]) + space[j + 1] + this.rLines[j]; } var _b = __read((equal ? [(HD + H[i] - D[i]) / 2, (HD - H[i] + D[i]) / 2] : [H[i], D[i]]), 2), h = _b[0], d = _b[1]; var offset = { top: 0, center: space[i] + (h + d) / 2, bottom: space[i] + h + d + space[i + 1], baseline: space[i] + h, axis: space[i] + h - .25 }; y += offset[align] || 0; return y; }; class_1.prototype.getEmHalfSpacing = function (fspace, space) { var fspaceEm = this.em(fspace); var spaceEm = this.addEm(space, 2); spaceEm.unshift(fspaceEm); spaceEm.push(fspaceEm); return spaceEm; }; class_1.prototype.getRowHalfSpacing = function () { var space = this.rSpace.map(function (x) { return x / 2; }); space.unshift(this.fSpace[1]); space.push(this.fSpace[1]); return space; }; class_1.prototype.getColumnHalfSpacing = function () { var space = this.cSpace.map(function (x) { return x / 2; }); space.unshift(this.fSpace[0]); space.push(this.fSpace[0]); return space; }; class_1.prototype.getAlignmentRow = function () { var _a = __read(string_js_1.split(this.node.attributes.get('align')), 2), align = _a[0], row = _a[1]; if (row == null) return [align, null]; var i = parseInt(row); if (i < 0) i += this.numRows + 1; return [align, i < 1 || i > this.numRows ? null : i - 1]; }; class_1.prototype.getColumnAttributes = function (name, i) { if (i === void 0) { i = 1; } var n = this.numCols - i; var columns = this.getAttributeArray(name); if (columns.length === 0) return null; while (columns.length < n) { columns.push(columns[columns.length - 1]); } if (columns.length > n) { columns.splice(n); } return columns; }; class_1.prototype.getRowAttributes = function (name, i) { if (i === void 0) { i = 1; } var n = this.numRows - i; var rows = this.getAttributeArray(name); if (rows.length === 0) return null; while (rows.length < n) { rows.push(rows[rows.length - 1]); } if (rows.length > n) { rows.splice(n); } return rows; }; class_1.prototype.getAttributeArray = function (name) { var value = this.node.attributes.get(name); if (!value) return [this.node.attributes.getDefault(name)]; return string_js_1.split(value); }; class_1.prototype.addEm = function (list, n) { var _this = this; if (n === void 0) { n = 1; } if (!list) return null; return list.map(function (x) { return _this.em(x / n); }); }; class_1.prototype.convertLengths = function (list) { var _this = this; if (!list) return null; return list.map(function (x) { return _this.length2em(x); }); }; return class_1; }(Base)); } exports.CommonMtableMixin = CommonMtableMixin; //# sourceMappingURL=mtable.js.map /***/ }), /* 37 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMtdMixin = void 0; function CommonMtdMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_1.prototype, "fixesPWidth", { get: function () { return false; }, enumerable: false, configurable: true }); class_1.prototype.invalidateBBox = function () { this.bboxComputed = false; }; class_1.prototype.getWrapWidth = function (_j) { var table = this.parent.parent; var row = this.parent; var i = this.node.childPosition() - (row.labeled ? 1 : 0); return (typeof (table.cWidths[i]) === 'number' ? table.cWidths[i] : table.getTableData().W[i]); }; class_1.prototype.getChildAlign = function (_i) { return this.node.attributes.get('columnalign'); }; return class_1; }(Base)); } exports.CommonMtdMixin = CommonMtdMixin; //# sourceMappingURL=mtd.js.map /***/ }), /* 38 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMtextMixin = void 0; function CommonMtextMixin(Base) { var _a; return _a = (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.getVariant = function () { var options = this.jax.options; var data = this.jax.math.outputData; var merror = ((!!data.merrorFamily || !!options.merrorFont) && this.node.Parent.isKind('merror')); if (!!data.mtextFamily || !!options.mtextFont || merror) { var variant = this.node.attributes.get('mathvariant'); var font = this.constructor.INHERITFONTS[variant] || this.jax.font.getCssFont(variant); var family = font[0] || (merror ? data.merrorFamily || options.merrorFont : data.mtextFamily || options.mtextFont); this.variant = this.explicitVariant(family, font[2] ? 'bold' : '', font[1] ? 'italic' : ''); return; } _super.prototype.getVariant.call(this); }; return class_1; }(Base)), _a.INHERITFONTS = { normal: ['', false, false], bold: ['', false, true], italic: ['', true, false], 'bold-italic': ['', true, true] }, _a; } exports.CommonMtextMixin = CommonMtextMixin; //# sourceMappingURL=mtext.js.map /***/ }), /* 39 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonScriptbaseMixin = void 0; var DELTA = 1.5; function CommonScriptbaseMixin(Base) { var _a; return _a = (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; var core = _this.baseCore = _this.childNodes[0]; if (!core) return _this; while (core.childNodes.length === 1 && (core.node.isKind('mrow') || core.node.isKind('TeXAtom') || core.node.isKind('mstyle') || core.node.isKind('mpadded') || core.node.isKind('mphantom') || core.node.isKind('semantics'))) { core = core.childNodes[0]; if (!core) return _this; } if (!('noIC' in core)) return _this; _this.baseCore = core; if (!_this.constructor.useIC) { core.noIC = true; } return _this; } Object.defineProperty(class_1.prototype, "baseChild", { get: function () { return this.childNodes[this.node.base]; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "script", { get: function () { return this.childNodes[1]; }, enumerable: false, configurable: true }); class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var basebox = this.baseChild.getBBox(); var scriptbox = this.script.getBBox(); var _a = __read(this.getOffset(basebox, scriptbox), 2), x = _a[0], y = _a[1]; bbox.append(basebox); bbox.combine(scriptbox, bbox.w + x, y); bbox.w += this.font.params.scriptspace; bbox.clean(); this.setChildPWidths(recompute); }; class_1.prototype.coreIC = function () { var corebox = this.baseCore.getBBox(); return (corebox.ic ? 1.05 * corebox.ic + .05 : 0); }; class_1.prototype.coreScale = function () { var scale = this.baseChild.getBBox().rscale; var base = this.baseChild; while ((base.node.isKind('mstyle') || base.node.isKind('mrow') || base.node.isKind('TeXAtom')) && base.childNodes.length === 1) { base = base.childNodes[0]; scale *= base.getBBox().rscale; } return scale; }; class_1.prototype.isCharBase = function () { var base = this.baseChild; while ((base.node.isKind('mstyle') || base.node.isKind('mrow')) && base.childNodes.length === 1) { base = base.childNodes[0]; } return ((base.node.isKind('mo') || base.node.isKind('mi') || base.node.isKind('mn')) && base.bbox.rscale === 1 && Array.from(base.getText()).length === 1 && !base.node.attributes.get('largeop')); }; class_1.prototype.getOffset = function (_bbox, _sbox) { return [0, 0]; }; class_1.prototype.getV = function (bbox, sbox) { var tex = this.font.params; var subscriptshift = this.length2em(this.node.attributes.get('subscriptshift'), tex.sub1); return Math.max(this.isCharBase() ? 0 : bbox.d * bbox.rscale + tex.sub_drop * sbox.rscale, subscriptshift, sbox.h * sbox.rscale - (4 / 5) * tex.x_height); }; class_1.prototype.getU = function (bbox, sbox) { var tex = this.font.params; var attr = this.node.attributes.getList('displaystyle', 'superscriptshift'); var prime = this.node.getProperty('texprimestyle'); var p = prime ? tex.sup3 : (attr.displaystyle ? tex.sup1 : tex.sup2); var superscriptshift = this.length2em(attr.superscriptshift, p); return Math.max(this.isCharBase() ? 0 : bbox.h * bbox.rscale - tex.sup_drop * sbox.rscale, superscriptshift, sbox.d * sbox.rscale + (1 / 4) * tex.x_height); }; class_1.prototype.hasMovableLimits = function () { var display = this.node.attributes.get('displaystyle'); var mo = this.baseChild.coreMO().node; return (!display && !!mo.attributes.get('movablelimits')); }; class_1.prototype.getOverKU = function (basebox, overbox) { var accent = this.node.attributes.get('accent'); var tex = this.font.params; var d = overbox.d * overbox.rscale; var k = (accent ? tex.rule_thickness : Math.max(tex.big_op_spacing1, tex.big_op_spacing3 - Math.max(0, d))) - (this.baseChild.node.isKind('munderover') ? .1 : 0); return [k, basebox.h * basebox.rscale + k + d]; }; class_1.prototype.getUnderKV = function (basebox, underbox) { var accent = this.node.attributes.get('accentunder'); var tex = this.font.params; var h = underbox.h * underbox.rscale; var k = (accent ? tex.rule_thickness : Math.max(tex.big_op_spacing2, tex.big_op_spacing4 - h)) - (this.baseChild.node.isKind('munderover') ? .1 : 0); return [k, -(basebox.d * basebox.rscale + k + h)]; }; class_1.prototype.getDeltaW = function (boxes, delta) { var e_1, _a, e_2, _b; if (delta === void 0) { delta = [0, 0, 0]; } var align = this.node.attributes.get('align'); var widths = boxes.map(function (box) { return box.w * box.rscale; }); var w = Math.max.apply(Math, __spread(widths)); var dw = []; var m = 0; try { for (var _c = __values(widths.keys()), _d = _c.next(); !_d.done; _d = _c.next()) { var i = _d.value; dw[i] = (align === 'center' ? (w - widths[i]) / 2 : align === 'right' ? w - widths[i] : 0) + delta[i]; if (dw[i] < m) { m = -dw[i]; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_1) throw e_1.error; } } if (m) { try { for (var _e = __values(dw.keys()), _f = _e.next(); !_f.done; _f = _e.next()) { var i = _f.value; dw[i] += m; } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_2) throw e_2.error; } } } return dw; }; class_1.prototype.getDelta = function (noskew) { if (noskew === void 0) { noskew = false; } var accent = this.node.attributes.get('accent'); var ddelta = (accent && !noskew ? this.baseChild.coreMO().bbox.sk : 0); return (DELTA * this.baseCore.bbox.ic / 2 + ddelta) * this.coreScale(); }; class_1.prototype.stretchChildren = function () { var e_3, _a, e_4, _b, e_5, _c; var stretchy = []; try { for (var _d = __values(this.childNodes), _e = _d.next(); !_e.done; _e = _d.next()) { var child = _e.value; if (child.canStretch(2)) { stretchy.push(child); } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_3) throw e_3.error; } } var count = stretchy.length; var nodeCount = this.childNodes.length; if (count && nodeCount > 1) { var W = 0; var all = (count > 1 && count === nodeCount); try { for (var _f = __values(this.childNodes), _g = _f.next(); !_g.done; _g = _f.next()) { var child = _g.value; var noStretch = (child.stretch.dir === 0); if (all || noStretch) { var _h = child.getBBox(noStretch), w = _h.w, rscale = _h.rscale; if (w * rscale > W) W = w * rscale; } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_4) throw e_4.error; } } try { for (var stretchy_1 = __values(stretchy), stretchy_1_1 = stretchy_1.next(); !stretchy_1_1.done; stretchy_1_1 = stretchy_1.next()) { var child = stretchy_1_1.value; child.coreMO().getStretchedVariant([W / child.bbox.rscale]); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (stretchy_1_1 && !stretchy_1_1.done && (_c = stretchy_1.return)) _c.call(stretchy_1); } finally { if (e_5) throw e_5.error; } } } }; return class_1; }(Base)), _a.useIC = false, _a; } exports.CommonScriptbaseMixin = CommonScriptbaseMixin; //# sourceMappingURL=scriptbase.js.map /***/ }), /* 40 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonSemanticsMixin = void 0; function CommonSemanticsMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } if (this.childNodes.length) { var _a = this.childNodes[0].getBBox(), w = _a.w, h = _a.h, d = _a.d; bbox.w = w; bbox.h = h; bbox.d = d; } }; return class_1; }(Base)); } exports.CommonSemanticsMixin = CommonSemanticsMixin; //# sourceMappingURL=semantics.js.map /***/ }), /* 41 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGWrapperFactory = void 0; var WrapperFactory_js_1 = __webpack_require__(19); var Wrappers_js_1 = __webpack_require__(42); var SVGWrapperFactory = (function (_super) { __extends(SVGWrapperFactory, _super); function SVGWrapperFactory() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.jax = null; return _this; } SVGWrapperFactory.defaultNodes = Wrappers_js_1.SVGWrappers; return SVGWrapperFactory; }(WrapperFactory_js_1.CommonWrapperFactory)); exports.SVGWrapperFactory = SVGWrapperFactory; //# sourceMappingURL=WrapperFactory.js.map /***/ }), /* 42 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGWrappers = void 0; var Wrapper_js_1 = __webpack_require__(0); var math_js_1 = __webpack_require__(43); var mrow_js_1 = __webpack_require__(44); var mi_js_1 = __webpack_require__(45); var mo_js_1 = __webpack_require__(46); var mn_js_1 = __webpack_require__(47); var ms_js_1 = __webpack_require__(48); var mtext_js_1 = __webpack_require__(49); var merror_js_1 = __webpack_require__(50); var mspace_js_1 = __webpack_require__(51); var mpadded_js_1 = __webpack_require__(52); var mphantom_js_1 = __webpack_require__(53); var mfrac_js_1 = __webpack_require__(54); var msqrt_js_1 = __webpack_require__(13); var mroot_js_1 = __webpack_require__(55); var mfenced_js_1 = __webpack_require__(56); var msubsup_js_1 = __webpack_require__(8); var munderover_js_1 = __webpack_require__(58); var mmultiscripts_js_1 = __webpack_require__(59); var mtable_js_1 = __webpack_require__(60); var mtr_js_1 = __webpack_require__(61); var mtd_js_1 = __webpack_require__(62); var maction_js_1 = __webpack_require__(63); var menclose_js_1 = __webpack_require__(64); var semantics_js_1 = __webpack_require__(66); var mglyph_js_1 = __webpack_require__(67); var TeXAtom_js_1 = __webpack_require__(68); var TextNode_js_1 = __webpack_require__(69); exports.SVGWrappers = (_a = {}, _a[math_js_1.SVGmath.kind] = math_js_1.SVGmath, _a[mrow_js_1.SVGmrow.kind] = mrow_js_1.SVGmrow, _a[mrow_js_1.SVGinferredMrow.kind] = mrow_js_1.SVGinferredMrow, _a[mi_js_1.SVGmi.kind] = mi_js_1.SVGmi, _a[mo_js_1.SVGmo.kind] = mo_js_1.SVGmo, _a[mn_js_1.SVGmn.kind] = mn_js_1.SVGmn, _a[ms_js_1.SVGms.kind] = ms_js_1.SVGms, _a[mtext_js_1.SVGmtext.kind] = mtext_js_1.SVGmtext, _a[merror_js_1.SVGmerror.kind] = merror_js_1.SVGmerror, _a[mspace_js_1.SVGmspace.kind] = mspace_js_1.SVGmspace, _a[mpadded_js_1.SVGmpadded.kind] = mpadded_js_1.SVGmpadded, _a[mphantom_js_1.SVGmphantom.kind] = mphantom_js_1.SVGmphantom, _a[mfrac_js_1.SVGmfrac.kind] = mfrac_js_1.SVGmfrac, _a[msqrt_js_1.SVGmsqrt.kind] = msqrt_js_1.SVGmsqrt, _a[mroot_js_1.SVGmroot.kind] = mroot_js_1.SVGmroot, _a[mfenced_js_1.SVGmfenced.kind] = mfenced_js_1.SVGmfenced, _a[msubsup_js_1.SVGmsub.kind] = msubsup_js_1.SVGmsub, _a[msubsup_js_1.SVGmsup.kind] = msubsup_js_1.SVGmsup, _a[msubsup_js_1.SVGmsubsup.kind] = msubsup_js_1.SVGmsubsup, _a[munderover_js_1.SVGmunder.kind] = munderover_js_1.SVGmunder, _a[munderover_js_1.SVGmover.kind] = munderover_js_1.SVGmover, _a[munderover_js_1.SVGmunderover.kind] = munderover_js_1.SVGmunderover, _a[mmultiscripts_js_1.SVGmmultiscripts.kind] = mmultiscripts_js_1.SVGmmultiscripts, _a[mtable_js_1.SVGmtable.kind] = mtable_js_1.SVGmtable, _a[mtr_js_1.SVGmtr.kind] = mtr_js_1.SVGmtr, _a[mtr_js_1.SVGmlabeledtr.kind] = mtr_js_1.SVGmlabeledtr, _a[mtd_js_1.SVGmtd.kind] = mtd_js_1.SVGmtd, _a[maction_js_1.SVGmaction.kind] = maction_js_1.SVGmaction, _a[menclose_js_1.SVGmenclose.kind] = menclose_js_1.SVGmenclose, _a[semantics_js_1.SVGsemantics.kind] = semantics_js_1.SVGsemantics, _a[semantics_js_1.SVGannotation.kind] = semantics_js_1.SVGannotation, _a[semantics_js_1.SVGannotationXML.kind] = semantics_js_1.SVGannotationXML, _a[semantics_js_1.SVGxml.kind] = semantics_js_1.SVGxml, _a[mglyph_js_1.SVGmglyph.kind] = mglyph_js_1.SVGmglyph, _a[TeXAtom_js_1.SVGTeXAtom.kind] = TeXAtom_js_1.SVGTeXAtom, _a[TextNode_js_1.SVGTextNode.kind] = TextNode_js_1.SVGTextNode, _a[Wrapper_js_1.SVGWrapper.kind] = Wrapper_js_1.SVGWrapper, _a); //# sourceMappingURL=Wrappers.js.map /***/ }), /* 43 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmath = void 0; var Wrapper_js_1 = __webpack_require__(0); var math_js_1 = __webpack_require__(22); var math_js_2 = __webpack_require__(79); var BBox_js_1 = __webpack_require__(1); var SVGmath = (function (_super) { __extends(SVGmath, _super); function SVGmath() { return _super !== null && _super.apply(this, arguments) || this; } SVGmath.prototype.toSVG = function (parent) { _super.prototype.toSVG.call(this, parent); var adaptor = this.adaptor; var display = (this.node.attributes.get('display') === 'block'); if (display) { adaptor.setAttribute(this.jax.container, 'display', 'true'); this.handleDisplay(); } if (this.jax.document.options.internalSpeechTitles) { this.handleSpeech(); } }; SVGmath.prototype.handleDisplay = function () { var _a = __read(this.getAlignShift(), 2), align = _a[0], shift = _a[1]; if (align !== 'center') { this.adaptor.setAttribute(this.jax.container, 'justify', align); } if (this.bbox.pwidth === BBox_js_1.BBox.fullWidth) { this.adaptor.setAttribute(this.jax.container, 'width', 'full'); if (this.jax.table) { var _b = this.jax.table.getBBox(), L = _b.L, w = _b.w, R = _b.R; if (align === 'right') { R = Math.max(R || -shift, -shift); } else if (align === 'left') { L = Math.max(L || shift, shift); } else if (align === 'center') { w += 2 * Math.abs(shift); } this.jax.minwidth = Math.max(0, L + w + R); } } else { this.jax.shift = shift; } }; SVGmath.prototype.handleSpeech = function () { var e_1, _a; var adaptor = this.adaptor; var attributes = this.node.attributes; var speech = (attributes.get('aria-label') || attributes.get('data-semantic-speech')); if (speech) { var id = this.getTitleID(); var label = this.svg('title', { id: id }, [this.text(speech)]); adaptor.insert(label, adaptor.firstChild(this.element)); adaptor.setAttribute(this.element, 'aria-labeledby', id); adaptor.removeAttribute(this.element, 'aria-label'); try { for (var _b = __values(this.childNodes[0].childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; adaptor.setAttribute(child.element, 'aria-hidden', 'true'); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } }; SVGmath.prototype.getTitleID = function () { return 'mjx-svg-title-' + String(this.jax.options.titleID++); }; SVGmath.prototype.setChildPWidths = function (recompute, w, _clear) { if (w === void 0) { w = null; } if (_clear === void 0) { _clear = true; } return _super.prototype.setChildPWidths.call(this, recompute, this.parent ? w : this.metrics.containerWidth / this.jax.pxPerEm, false); }; SVGmath.kind = math_js_2.MmlMath.prototype.kind; SVGmath.styles = { 'mjx-container[jax="SVG"][display="true"]': { display: 'block', 'text-align': 'center', margin: '1em 0' }, 'mjx-container[jax="SVG"][display="true"][width="full"]': { display: 'flex' }, 'mjx-container[jax="SVG"][justify="left"]': { 'text-align': 'left' }, 'mjx-container[jax="SVG"][justify="right"]': { 'text-align': 'right' } }; return SVGmath; }(math_js_1.CommonMathMixin(Wrapper_js_1.SVGWrapper))); exports.SVGmath = SVGmath; //# sourceMappingURL=math.js.map /***/ }), /* 44 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGinferredMrow = exports.SVGmrow = void 0; var Wrapper_js_1 = __webpack_require__(0); var mrow_js_1 = __webpack_require__(11); var mrow_js_2 = __webpack_require__(11); var mrow_js_3 = __webpack_require__(80); var SVGmrow = (function (_super) { __extends(SVGmrow, _super); function SVGmrow() { return _super !== null && _super.apply(this, arguments) || this; } SVGmrow.prototype.toSVG = function (parent) { var svg = (this.node.isInferred ? (this.element = parent) : this.standardSVGnode(parent)); this.addChildren(svg); }; SVGmrow.kind = mrow_js_3.MmlMrow.prototype.kind; return SVGmrow; }(mrow_js_1.CommonMrowMixin(Wrapper_js_1.SVGWrapper))); exports.SVGmrow = SVGmrow; var SVGinferredMrow = (function (_super) { __extends(SVGinferredMrow, _super); function SVGinferredMrow() { return _super !== null && _super.apply(this, arguments) || this; } SVGinferredMrow.kind = mrow_js_3.MmlInferredMrow.prototype.kind; return SVGinferredMrow; }(mrow_js_2.CommonInferredMrowMixin(SVGmrow))); exports.SVGinferredMrow = SVGinferredMrow; //# sourceMappingURL=mrow.js.map /***/ }), /* 45 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmi = void 0; var Wrapper_js_1 = __webpack_require__(0); var mi_js_1 = __webpack_require__(27); var mi_js_2 = __webpack_require__(81); var SVGmi = (function (_super) { __extends(SVGmi, _super); function SVGmi() { return _super !== null && _super.apply(this, arguments) || this; } SVGmi.kind = mi_js_2.MmlMi.prototype.kind; return SVGmi; }(mi_js_1.CommonMiMixin(Wrapper_js_1.SVGWrapper))); exports.SVGmi = SVGmi; //# sourceMappingURL=mi.js.map /***/ }), /* 46 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmo = void 0; var Wrapper_js_1 = __webpack_require__(0); var mo_js_1 = __webpack_require__(30); var mo_js_2 = __webpack_require__(82); var BBox_js_1 = __webpack_require__(1); var VFUZZ = 0.1; var HFUZZ = 0.1; var SVGmo = (function (_super) { __extends(SVGmo, _super); function SVGmo() { return _super !== null && _super.apply(this, arguments) || this; } SVGmo.prototype.toSVG = function (parent) { var attributes = this.node.attributes; var symmetric = attributes.get('symmetric') && this.stretch.dir !== 2; var stretchy = this.stretch.dir !== 0; if (stretchy && this.size === null) { this.getStretchedVariant([]); } var svg = this.standardSVGnode(parent); if (stretchy && this.size < 0) { this.stretchSVG(); } else { if (symmetric || attributes.get('largeop')) { var bbox = BBox_js_1.BBox.empty(); _super.prototype.computeBBox.call(this, bbox); var u = this.fixed((bbox.d - bbox.h) / 2 + this.font.params.axis_height); if (u !== '0') { this.adaptor.setAttribute(svg, 'transform', 'translate(0 ' + u + ')'); } } this.addChildren(svg); } }; SVGmo.prototype.stretchSVG = function () { var stretch = this.stretch.stretch; var bbox = this.getBBox(); if (this.stretch.dir === 1) { this.stretchVertical(stretch, bbox); } else { this.stretchHorizontal(stretch, bbox); } }; SVGmo.prototype.stretchVertical = function (stretch, bbox) { var h = bbox.h, d = bbox.d, w = bbox.w; var T = this.addTop(stretch[0], h, w); var B = this.addBot(stretch[2], d, w); if (stretch.length === 4) { var _a = __read(this.addMidV(stretch[3], w), 2), H = _a[0], D = _a[1]; this.addExtV(stretch[1], h, 0, T, H, w); this.addExtV(stretch[1], 0, d, D, B, w); } else { this.addExtV(stretch[1], h, d, T, B, w); } }; SVGmo.prototype.stretchHorizontal = function (stretch, bbox) { var w = bbox.w; var L = this.addLeft(stretch[0]); var R = this.addRight(stretch[2], w); if (stretch.length === 4) { var _a = __read(this.addMidH(stretch[3], w), 2), x1 = _a[0], x2 = _a[1]; var w2 = w / 2; this.addExtH(stretch[1], w2, L, w2 - x1); this.addExtH(stretch[1], w2, x2 - w2, R, w2); } else { this.addExtH(stretch[1], w, L, R); } }; SVGmo.prototype.getChar = function (n) { var char = this.font.getChar('-size4', n) || [0, 0, 0, null]; return [char[0], char[1], char[2], char[3] || {}]; }; SVGmo.prototype.addGlyph = function (n, x, y, parent) { if (parent === void 0) { parent = null; } return this.placeChar(n, x, y, parent || this.element, '-size4'); }; SVGmo.prototype.addTop = function (n, H, W) { if (!n) return 0; var _a = __read(this.getChar(n), 3), h = _a[0], d = _a[1], w = _a[2]; this.addGlyph(n, (W - w) / 2, H - h); return h + d; }; SVGmo.prototype.addExtV = function (n, H, D, T, B, W) { var _this = this; if (!n) return; T = Math.max(0, T - VFUZZ); B = Math.max(0, B - VFUZZ); var adaptor = this.adaptor; var _a = __read(this.getChar(n), 3), h = _a[0], d = _a[1], w = _a[2]; var Y = H + D - T - B; var s = 1.5 * Y / (h + d); var y = (s * (h - d) - Y) / 2; if (Y <= 0) return; var svg = this.svg('svg', { width: this.fixed(w), height: this.fixed(Y), y: this.fixed(B - D), x: this.fixed((W - w) / 2), viewBox: [0, y, w, Y].map(function (x) { return _this.fixed(x); }).join(' ') }); this.addGlyph(n, 0, 0, svg); var glyph = adaptor.lastChild(svg); adaptor.setAttribute(glyph, 'transform', 'scale(1, ' + this.jax.fixed(s) + ')'); adaptor.append(this.element, svg); }; SVGmo.prototype.addBot = function (n, D, W) { if (!n) return 0; var _a = __read(this.getChar(n), 3), h = _a[0], d = _a[1], w = _a[2]; this.addGlyph(n, (W - w) / 2, d - D); return h + d; }; SVGmo.prototype.addMidV = function (n, W) { if (!n) return [0, 0]; var _a = __read(this.getChar(n), 3), h = _a[0], d = _a[1], w = _a[2]; var y = (d - h) / 2 + this.font.params.axis_height; this.addGlyph(n, (W - w) / 2, y); return [h + y, d - y]; }; SVGmo.prototype.addLeft = function (n) { return (n ? this.addGlyph(n, 0, 0) : 0); }; SVGmo.prototype.addExtH = function (n, W, L, R, x) { var _this = this; if (x === void 0) { x = 0; } if (!n) return; R = Math.max(0, R - HFUZZ); L = Math.max(0, L - HFUZZ); var _a = __read(this.getChar(n), 3), h = _a[0], d = _a[1], w = _a[2]; var X = W - L - R; var Y = h + d + 2 * VFUZZ; var s = 1.5 * (X / w); var D = -(d + VFUZZ); if (X <= 0) return; var svg = this.svg('svg', { width: this.fixed(X), height: this.fixed(Y), x: this.fixed(x + L), y: this.fixed(D), viewBox: [(s * w - X) / 2, D, X, Y].map(function (x) { return _this.fixed(x); }).join(' ') }); this.addGlyph(n, 0, 0, svg); var glyph = this.adaptor.lastChild(svg); this.adaptor.setAttribute(glyph, 'transform', 'scale(' + this.jax.fixed(s) + ', 1)'); this.adaptor.append(this.element, svg); }; SVGmo.prototype.addRight = function (n, W) { if (!n) return 0; var w = this.getChar(n)[2]; return this.addGlyph(n, W - w, 0); }; SVGmo.prototype.addMidH = function (n, W) { if (!n) return [0, 0]; var w = this.getChar(n)[2]; this.addGlyph(n, (W - w) / 2, 0); return [(W - w) / 2, (W + w) / 2]; }; SVGmo.kind = mo_js_2.MmlMo.prototype.kind; return SVGmo; }(mo_js_1.CommonMoMixin(Wrapper_js_1.SVGWrapper))); exports.SVGmo = SVGmo; //# sourceMappingURL=mo.js.map /***/ }), /* 47 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmn = void 0; var Wrapper_js_1 = __webpack_require__(0); var mn_js_1 = __webpack_require__(29); var mn_js_2 = __webpack_require__(83); var SVGmn = (function (_super) { __extends(SVGmn, _super); function SVGmn() { return _super !== null && _super.apply(this, arguments) || this; } SVGmn.kind = mn_js_2.MmlMn.prototype.kind; return SVGmn; }(mn_js_1.CommonMnMixin(Wrapper_js_1.SVGWrapper))); exports.SVGmn = SVGmn; //# sourceMappingURL=mn.js.map /***/ }), /* 48 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGms = void 0; var Wrapper_js_1 = __webpack_require__(0); var ms_js_1 = __webpack_require__(33); var ms_js_2 = __webpack_require__(84); var SVGms = (function (_super) { __extends(SVGms, _super); function SVGms() { return _super !== null && _super.apply(this, arguments) || this; } SVGms.kind = ms_js_2.MmlMs.prototype.kind; return SVGms; }(ms_js_1.CommonMsMixin(Wrapper_js_1.SVGWrapper))); exports.SVGms = SVGms; //# sourceMappingURL=ms.js.map /***/ }), /* 49 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmtext = void 0; var Wrapper_js_1 = __webpack_require__(0); var mtext_js_1 = __webpack_require__(38); var mtext_js_2 = __webpack_require__(85); var SVGmtext = (function (_super) { __extends(SVGmtext, _super); function SVGmtext() { return _super !== null && _super.apply(this, arguments) || this; } SVGmtext.kind = mtext_js_2.MmlMtext.prototype.kind; return SVGmtext; }(mtext_js_1.CommonMtextMixin(Wrapper_js_1.SVGWrapper))); exports.SVGmtext = SVGmtext; //# sourceMappingURL=mtext.js.map /***/ }), /* 50 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmerror = void 0; var Wrapper_js_1 = __webpack_require__(0); var merror_js_1 = __webpack_require__(86); var SVGmerror = (function (_super) { __extends(SVGmerror, _super); function SVGmerror() { return _super !== null && _super.apply(this, arguments) || this; } SVGmerror.prototype.toSVG = function (parent) { var svg = this.standardSVGnode(parent); var _a = this.getBBox(), h = _a.h, d = _a.d, w = _a.w; this.adaptor.append(this.element, this.svg('rect', { 'data-background': true, width: this.fixed(w), height: this.fixed(h + d), y: this.fixed(-d) })); var title = this.node.attributes.get('title'); if (title) { this.adaptor.append(this.element, this.svg('title', {}, [this.adaptor.text(title)])); } this.addChildren(svg); }; SVGmerror.kind = merror_js_1.MmlMerror.prototype.kind; SVGmerror.styles = { 'g[data-mml-node="merror"] > g': { fill: 'red', stroke: 'red' }, 'g[data-mml-node="merror"] > rect[data-background]': { fill: 'yellow', stroke: 'none' } }; return SVGmerror; }(Wrapper_js_1.SVGWrapper)); exports.SVGmerror = SVGmerror; //# sourceMappingURL=merror.js.map /***/ }), /* 51 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmspace = void 0; var Wrapper_js_1 = __webpack_require__(0); var mspace_js_1 = __webpack_require__(34); var mspace_js_2 = __webpack_require__(87); var SVGmspace = (function (_super) { __extends(SVGmspace, _super); function SVGmspace() { return _super !== null && _super.apply(this, arguments) || this; } SVGmspace.kind = mspace_js_2.MmlMspace.prototype.kind; return SVGmspace; }(mspace_js_1.CommonMspaceMixin(Wrapper_js_1.SVGWrapper))); exports.SVGmspace = SVGmspace; //# sourceMappingURL=mspace.js.map /***/ }), /* 52 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmpadded = void 0; var Wrapper_js_1 = __webpack_require__(0); var mpadded_js_1 = __webpack_require__(31); var mpadded_js_2 = __webpack_require__(88); var SVGmpadded = (function (_super) { __extends(SVGmpadded, _super); function SVGmpadded() { return _super !== null && _super.apply(this, arguments) || this; } SVGmpadded.prototype.toSVG = function (parent) { var svg = this.standardSVGnode(parent); var _a = __read(this.getDimens(), 9), dw = _a[5], x = _a[6], y = _a[7], dx = _a[8]; var align = this.node.attributes.get('data-align') || 'left'; var X = x + dx - (dw < 0 && align !== 'left' ? align === 'center' ? dw / 2 : dw : 0); if (X || y) { svg = this.adaptor.append(svg, this.svg('g')); this.place(X, y, svg); } this.addChildren(svg); }; SVGmpadded.kind = mpadded_js_2.MmlMpadded.prototype.kind; return SVGmpadded; }(mpadded_js_1.CommonMpaddedMixin(Wrapper_js_1.SVGWrapper))); exports.SVGmpadded = SVGmpadded; //# sourceMappingURL=mpadded.js.map /***/ }), /* 53 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmphantom = void 0; var Wrapper_js_1 = __webpack_require__(0); var mphantom_js_1 = __webpack_require__(89); var SVGmphantom = (function (_super) { __extends(SVGmphantom, _super); function SVGmphantom() { return _super !== null && _super.apply(this, arguments) || this; } SVGmphantom.prototype.toSVG = function (parent) { this.standardSVGnode(parent); }; SVGmphantom.kind = mphantom_js_1.MmlMphantom.prototype.kind; return SVGmphantom; }(Wrapper_js_1.SVGWrapper)); exports.SVGmphantom = SVGmphantom; //# sourceMappingURL=mphantom.js.map /***/ }), /* 54 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmfrac = void 0; var Wrapper_js_1 = __webpack_require__(0); var mfrac_js_1 = __webpack_require__(25); var mfrac_js_2 = __webpack_require__(90); var SVGmfrac = (function (_super) { __extends(SVGmfrac, _super); function SVGmfrac() { return _super !== null && _super.apply(this, arguments) || this; } SVGmfrac.prototype.toSVG = function (parent) { this.standardSVGnode(parent); var _a = this.node.attributes.getList('linethickness', 'bevelled'), linethickness = _a.linethickness, bevelled = _a.bevelled; var display = this.isDisplay(); if (bevelled) { this.makeBevelled(display); } else { var thickness = this.length2em(String(linethickness), .06); if (thickness === 0) { this.makeAtop(display); } else { this.makeFraction(display, thickness); } } }; SVGmfrac.prototype.makeFraction = function (display, t) { var svg = this.element; var _a = this.node.attributes.getList('numalign', 'denomalign'), numalign = _a.numalign, denomalign = _a.denomalign; var _b = __read(this.childNodes, 2), num = _b[0], den = _b[1]; var nbox = num.getBBox(); var dbox = den.getBBox(); var tex = this.font.params; var a = tex.axis_height; var d = .1; var pad = (this.node.getProperty('withDelims') ? 0 : tex.nulldelimiterspace); var W = Math.max((nbox.L + nbox.w + nbox.R) * nbox.rscale, (dbox.L + dbox.w + dbox.R) * dbox.rscale); var nx = this.getAlignX(W, nbox, numalign) + d + pad; var dx = this.getAlignX(W, dbox, denomalign) + d + pad; var _c = this.getTUV(display, t), T = _c.T, u = _c.u, v = _c.v; num.toSVG(svg); num.place(nx, a + T + Math.max(nbox.d * nbox.rscale, u)); den.toSVG(svg); den.place(dx, a - T - Math.max(dbox.h * dbox.rscale, v)); this.adaptor.append(svg, this.svg('rect', { width: this.fixed(W + 2 * d), height: this.fixed(t), x: this.fixed(pad), y: this.fixed(a - t / 2) })); }; SVGmfrac.prototype.makeAtop = function (display) { var svg = this.element; var _a = this.node.attributes.getList('numalign', 'denomalign'), numalign = _a.numalign, denomalign = _a.denomalign; var _b = __read(this.childNodes, 2), num = _b[0], den = _b[1]; var nbox = num.getBBox(); var dbox = den.getBBox(); var tex = this.font.params; var pad = (this.node.getProperty('withDelims') ? 0 : tex.nulldelimiterspace); var W = Math.max((nbox.L + nbox.w + nbox.R) * nbox.rscale, (dbox.L + dbox.w + dbox.R) * dbox.rscale); var nx = this.getAlignX(W, nbox, numalign) + pad; var dx = this.getAlignX(W, dbox, denomalign) + pad; var _c = this.getUVQ(display), u = _c.u, v = _c.v; num.toSVG(svg); num.place(nx, u); den.toSVG(svg); den.place(dx, -v); }; SVGmfrac.prototype.makeBevelled = function (display) { var svg = this.element; var _a = __read(this.childNodes, 2), num = _a[0], den = _a[1]; var _b = this.getBevelData(display), u = _b.u, v = _b.v, delta = _b.delta, nbox = _b.nbox, dbox = _b.dbox; var w = (nbox.L + nbox.w + nbox.R) * nbox.rscale; num.toSVG(svg); this.bevel.toSVG(svg); den.toSVG(svg); num.place(nbox.L * nbox.rscale, u); this.bevel.place(w - delta / 2, 0); den.place(w + this.bevel.getBBox().w + dbox.L * dbox.rscale - delta, v); }; SVGmfrac.kind = mfrac_js_2.MmlMfrac.prototype.kind; return SVGmfrac; }(mfrac_js_1.CommonMfracMixin(Wrapper_js_1.SVGWrapper))); exports.SVGmfrac = SVGmfrac; //# sourceMappingURL=mfrac.js.map /***/ }), /* 55 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmroot = void 0; var msqrt_js_1 = __webpack_require__(13); var mroot_js_1 = __webpack_require__(32); var mroot_js_2 = __webpack_require__(92); var SVGmroot = (function (_super) { __extends(SVGmroot, _super); function SVGmroot() { return _super !== null && _super.apply(this, arguments) || this; } SVGmroot.prototype.addRoot = function (ROOT, root, sbox, H) { root.toSVG(ROOT); var _a = __read(this.getRootDimens(sbox, H), 3), x = _a[0], h = _a[1], dx = _a[2]; var bbox = root.getBBox(); root.place(dx * bbox.rscale, h); this.dx = x; }; SVGmroot.kind = mroot_js_2.MmlMroot.prototype.kind; return SVGmroot; }(mroot_js_1.CommonMrootMixin(msqrt_js_1.SVGmsqrt))); exports.SVGmroot = SVGmroot; //# sourceMappingURL=mroot.js.map /***/ }), /* 56 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmfenced = void 0; var Wrapper_js_1 = __webpack_require__(0); var mfenced_js_1 = __webpack_require__(24); var mfenced_js_2 = __webpack_require__(93); var SVGmfenced = (function (_super) { __extends(SVGmfenced, _super); function SVGmfenced() { return _super !== null && _super.apply(this, arguments) || this; } SVGmfenced.prototype.toSVG = function (parent) { var svg = this.standardSVGnode(parent); this.setChildrenParent(this.mrow); this.mrow.toSVG(svg); this.setChildrenParent(this); }; SVGmfenced.prototype.setChildrenParent = function (parent) { var e_1, _a; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; child.parent = parent; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; SVGmfenced.kind = mfenced_js_2.MmlMfenced.prototype.kind; return SVGmfenced; }(mfenced_js_1.CommonMfencedMixin(Wrapper_js_1.SVGWrapper))); exports.SVGmfenced = SVGmfenced; //# sourceMappingURL=mfenced.js.map /***/ }), /* 57 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGscriptbase = void 0; var Wrapper_js_1 = __webpack_require__(0); var scriptbase_js_1 = __webpack_require__(39); var SVGscriptbase = (function (_super) { __extends(SVGscriptbase, _super); function SVGscriptbase() { return _super !== null && _super.apply(this, arguments) || this; } SVGscriptbase.prototype.toSVG = function (parent) { var svg = this.standardSVGnode(parent); var bbox = this.baseChild.getBBox(); var sbox = this.script.getBBox(); var _a = __read(this.getOffset(bbox, sbox), 2), x = _a[0], v = _a[1]; this.baseChild.toSVG(svg); this.script.toSVG(svg); this.script.place(bbox.w * bbox.rscale + x, v); }; SVGscriptbase.kind = 'scriptbase'; SVGscriptbase.useIC = false; return SVGscriptbase; }(scriptbase_js_1.CommonScriptbaseMixin(Wrapper_js_1.SVGWrapper))); exports.SVGscriptbase = SVGscriptbase; //# sourceMappingURL=scriptbase.js.map /***/ }), /* 58 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmunderover = exports.SVGmover = exports.SVGmunder = void 0; var msubsup_js_1 = __webpack_require__(8); var munderover_js_1 = __webpack_require__(7); var munderover_js_2 = __webpack_require__(7); var munderover_js_3 = __webpack_require__(7); var munderover_js_4 = __webpack_require__(95); var SVGmunder = (function (_super) { __extends(SVGmunder, _super); function SVGmunder() { return _super !== null && _super.apply(this, arguments) || this; } SVGmunder.prototype.toSVG = function (parent) { if (this.hasMovableLimits()) { _super.prototype.toSVG.call(this, parent); return; } var svg = this.standardSVGnode(parent); var _a = __read([this.baseChild, this.script], 2), base = _a[0], script = _a[1]; var _b = __read([base.getBBox(), script.getBBox()], 2), bbox = _b[0], sbox = _b[1]; base.toSVG(svg); script.toSVG(svg); var delta = this.getDelta(true); var v = this.getUnderKV(bbox, sbox)[1]; var _c = __read(this.getDeltaW([bbox, sbox], [0, -delta]), 2), bx = _c[0], sx = _c[1]; base.place(bx, 0); script.place(sx, v); }; SVGmunder.kind = munderover_js_4.MmlMunder.prototype.kind; SVGmunder.useIC = true; return SVGmunder; }(munderover_js_1.CommonMunderMixin(msubsup_js_1.SVGmsub))); exports.SVGmunder = SVGmunder; var SVGmover = (function (_super) { __extends(SVGmover, _super); function SVGmover() { return _super !== null && _super.apply(this, arguments) || this; } SVGmover.prototype.toSVG = function (parent) { if (this.hasMovableLimits()) { _super.prototype.toSVG.call(this, parent); return; } var svg = this.standardSVGnode(parent); var _a = __read([this.baseChild, this.script], 2), base = _a[0], script = _a[1]; var _b = __read([base.getBBox(), script.getBBox()], 2), bbox = _b[0], sbox = _b[1]; base.toSVG(svg); script.toSVG(svg); var delta = this.getDelta(); var u = this.getOverKU(bbox, sbox)[1]; var _c = __read(this.getDeltaW([bbox, sbox], [0, delta]), 2), bx = _c[0], sx = _c[1]; base.place(bx, 0); script.place(sx, u); }; SVGmover.kind = munderover_js_4.MmlMover.prototype.kind; SVGmover.useIC = true; return SVGmover; }(munderover_js_2.CommonMoverMixin(msubsup_js_1.SVGmsup))); exports.SVGmover = SVGmover; var SVGmunderover = (function (_super) { __extends(SVGmunderover, _super); function SVGmunderover() { return _super !== null && _super.apply(this, arguments) || this; } SVGmunderover.prototype.toSVG = function (parent) { if (this.hasMovableLimits()) { _super.prototype.toSVG.call(this, parent); return; } var svg = this.standardSVGnode(parent); var _a = __read([this.baseChild, this.overChild, this.underChild], 3), base = _a[0], over = _a[1], under = _a[2]; var _b = __read([base.getBBox(), over.getBBox(), under.getBBox()], 3), bbox = _b[0], obox = _b[1], ubox = _b[2]; base.toSVG(svg); under.toSVG(svg); over.toSVG(svg); var delta = this.getDelta(); var u = this.getOverKU(bbox, obox)[1]; var v = this.getUnderKV(bbox, ubox)[1]; var _c = __read(this.getDeltaW([bbox, ubox, obox], [0, -delta, delta]), 3), bx = _c[0], ux = _c[1], ox = _c[2]; base.place(bx, 0); under.place(ux, v); over.place(ox, u); }; SVGmunderover.kind = munderover_js_4.MmlMunderover.prototype.kind; SVGmunderover.useIC = true; return SVGmunderover; }(munderover_js_3.CommonMunderoverMixin(msubsup_js_1.SVGmsubsup))); exports.SVGmunderover = SVGmunderover; //# sourceMappingURL=munderover.js.map /***/ }), /* 59 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmmultiscripts = void 0; var msubsup_js_1 = __webpack_require__(8); var mmultiscripts_js_1 = __webpack_require__(28); var mmultiscripts_js_2 = __webpack_require__(96); var SVGmmultiscripts = (function (_super) { __extends(SVGmmultiscripts, _super); function SVGmmultiscripts() { return _super !== null && _super.apply(this, arguments) || this; } SVGmmultiscripts.prototype.toSVG = function (parent) { var svg = this.standardSVGnode(parent); var data = this.getScriptData(); var sub = this.combinePrePost(data.sub, data.psub); var sup = this.combinePrePost(data.sup, data.psup); var _a = __read(this.getUVQ(data.base, sub, sup), 2), u = _a[0], v = _a[1]; var x = 0; if (data.numPrescripts) { x = this.addScripts(.05, u, v, true, this.firstPrescript, data.numPrescripts); } var base = this.baseChild; base.toSVG(svg); base.place(x, 0); x += base.getBBox().w; if (data.numScripts) { this.addScripts(x, u, v, false, 1, data.numScripts); } }; SVGmmultiscripts.prototype.addScripts = function (x, u, v, isPre, i, n) { var adaptor = this.adaptor; var supRow = adaptor.append(this.element, this.svg('g')); var subRow = adaptor.append(this.element, this.svg('g')); this.place(x, u, supRow); this.place(x, v, subRow); var m = i + 2 * n; var dx = 0; while (i < m) { var _a = __read([this.childNodes[i++], this.childNodes[i++]], 2), sub = _a[0], sup = _a[1]; var _b = __read([sub.getBBox(), sup.getBBox()], 2), subbox = _b[0], supbox = _b[1]; var _c = __read([subbox.rscale, supbox.rscale], 2), subr = _c[0], supr = _c[1]; var w = Math.max(subbox.w * subr, supbox.w * supr); sub.toSVG(subRow); sup.toSVG(supRow); sub.place(dx + (isPre ? w - subbox.w * subr : 0), 0); sup.place(dx + (isPre ? w - supbox.w * supr : 0), 0); dx += w; } return x + dx; }; SVGmmultiscripts.kind = mmultiscripts_js_2.MmlMmultiscripts.prototype.kind; return SVGmmultiscripts; }(mmultiscripts_js_1.CommonMmultiscriptsMixin(msubsup_js_1.SVGmsubsup))); exports.SVGmmultiscripts = SVGmmultiscripts; //# sourceMappingURL=mmultiscripts.js.map /***/ }), /* 60 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmtable = void 0; var Wrapper_js_1 = __webpack_require__(0); var mtable_js_1 = __webpack_require__(36); var mtable_js_2 = __webpack_require__(97); var CLASSPREFIX = 'mjx-'; var SVGmtable = (function (_super) { __extends(SVGmtable, _super); function SVGmtable(factory, node, parent) { if (parent === void 0) { parent = null; } var _this = _super.call(this, factory, node, parent) || this; var def = { 'data-labels': true }; if (_this.isTop) { def.transform = 'matrix(1 0 0 -1 0 0)'; } _this.labels = _this.svg('g', def); return _this; } SVGmtable.prototype.toSVG = function (parent) { var svg = this.standardSVGnode(parent); this.placeRows(svg); this.handleColumnLines(svg); this.handleRowLines(svg); this.handleFrame(svg); var dx = this.handlePWidth(svg); this.handleLabels(svg, parent, dx); }; SVGmtable.prototype.placeRows = function (svg) { var _a, _b, _c; var equal = this.node.attributes.get('equalrows'); var _d = this.getTableData(), H = _d.H, D = _d.D; var HD = this.getEqualRowHeight(); var rSpace = this.getRowHalfSpacing(); var rLines = __spread([this.fLine], this.rLines, [this.fLine]); var y = this.getBBox().h - rLines[0]; for (var i = 0; i < this.numRows; i++) { var row = this.childNodes[i]; _a = __read(this.getRowHD(equal, HD, H[i], D[i]), 2), row.H = _a[0], row.D = _a[1]; _b = __read([rSpace[i], rSpace[i + 1]], 2), row.tSpace = _b[0], row.bSpace = _b[1]; _c = __read([rLines[i], rLines[i + 1]], 2), row.tLine = _c[0], row.bLine = _c[1]; row.toSVG(svg); row.place(0, y - rSpace[i] - row.H); y -= rSpace[i] + row.H + row.D + rSpace[i + 1] + rLines[i + 1]; } }; SVGmtable.prototype.getRowHD = function (equal, HD, H, D) { return (equal ? [(HD + H - D) / 2, (HD - H + D) / 2] : [H, D]); }; SVGmtable.prototype.handleColor = function () { _super.prototype.handleColor.call(this); var rect = this.adaptor.firstChild(this.element); if (rect) { this.adaptor.setAttribute(rect, 'width', this.fixed(this.getWidth())); } }; SVGmtable.prototype.handleColumnLines = function (svg) { if (this.node.attributes.get('columnlines') === 'none') return; var lines = this.getColumnAttributes('columnlines'); if (!lines) return; var cSpace = this.getColumnHalfSpacing(); var cLines = this.cLines; var cWidth = this.getComputedWidths(); var x = this.fLine; for (var i = 0; i < lines.length; i++) { x += cSpace[i] + cWidth[i] + cSpace[i + 1]; if (lines[i] !== 'none') { this.adaptor.append(svg, this.makeVLine(x, lines[i], cLines[i])); } x += cLines[i]; } }; SVGmtable.prototype.handleRowLines = function (svg) { if (this.node.attributes.get('rowlines') === 'none') return; var lines = this.getRowAttributes('rowlines'); if (!lines) return; var equal = this.node.attributes.get('equalrows'); var _a = this.getTableData(), H = _a.H, D = _a.D; var HD = this.getEqualRowHeight(); var rSpace = this.getRowHalfSpacing(); var rLines = this.rLines; var y = this.getBBox().h - this.fLine; for (var i = 0; i < lines.length; i++) { var _b = __read(this.getRowHD(equal, HD, H[i], D[i]), 2), rH = _b[0], rD = _b[1]; y -= rSpace[i] + rH + rD + rSpace[i + 1]; if (lines[i] !== 'none') { this.adaptor.append(svg, this.makeHLine(y, lines[i], rLines[i])); } y -= rLines[i]; } }; SVGmtable.prototype.handleFrame = function (svg) { if (this.frame) { var _a = this.getBBox(), h = _a.h, d = _a.d, w = _a.w; var style = this.node.attributes.get('frame'); this.adaptor.append(svg, this.makeFrame(w, h, d, style)); } }; SVGmtable.prototype.handlePWidth = function (svg) { if (!this.pWidth) { return 0; } var _a = this.getBBox(), w = _a.w, L = _a.L, R = _a.R; var W = L + this.pWidth + R; var align = this.getAlignShift()[0]; var CW = Math.max(this.isTop ? W : 0, this.container.getWrapWidth(this.containerI)) - L - R; var dw = w - (this.pWidth > CW ? CW : this.pWidth); var dx = (align === 'left' ? 0 : align === 'right' ? dw : dw / 2); if (dx) { var table = this.svg('g', {}, this.adaptor.childNodes(svg)); this.place(dx, 0, table); this.adaptor.append(svg, table); } return dx; }; SVGmtable.prototype.lineClass = function (style) { return CLASSPREFIX + style; }; SVGmtable.prototype.makeFrame = function (w, h, d, style) { var t = this.fLine; return this.svg('rect', this.setLineThickness(t, style, { 'data-frame': true, 'class': this.lineClass(style), width: this.fixed(w - t), height: this.fixed(h + d - t), x: this.fixed(t / 2), y: this.fixed(t / 2 - d) })); }; SVGmtable.prototype.makeVLine = function (x, style, t) { var _a = this.getBBox(), h = _a.h, d = _a.d; var dt = (style === 'dotted' ? t / 2 : 0); var X = this.fixed(x + t / 2); return this.svg('line', this.setLineThickness(t, style, { 'data-line': 'v', 'class': this.lineClass(style), x1: X, y1: this.fixed(dt - d), x2: X, y2: this.fixed(h - dt) })); }; SVGmtable.prototype.makeHLine = function (y, style, t) { var w = this.getBBox().w; var dt = (style === 'dotted' ? t / 2 : 0); var Y = this.fixed(y - t / 2); return this.svg('line', this.setLineThickness(t, style, { 'data-line': 'h', 'class': this.lineClass(style), x1: this.fixed(dt), y1: Y, x2: this.fixed(w - dt), y2: Y })); }; SVGmtable.prototype.setLineThickness = function (t, style, properties) { if (t !== .07) { properties['stroke-thickness'] = this.fixed(t); if (style !== 'solid') { properties['stroke-dasharray'] = (style === 'dotted' ? '0,' : '') + this.fixed(2 * t); } } return properties; }; SVGmtable.prototype.handleLabels = function (svg, _parent, dx) { if (!this.hasLabels) return; var labels = this.labels; var attributes = this.node.attributes; var side = attributes.get('side'); this.spaceLabels(); this.isTop ? this.topTable(svg, labels, side) : this.subTable(svg, labels, side, dx); }; SVGmtable.prototype.spaceLabels = function () { var adaptor = this.adaptor; var h = this.getBBox().h; var L = this.getTableData().L; var space = this.getRowHalfSpacing(); var y = h - this.fLine; var current = adaptor.firstChild(this.labels); for (var i = 0; i < this.numRows; i++) { var row = this.childNodes[i]; if (row.node.isKind('mlabeledtr')) { var cell = row.childNodes[0]; y -= space[i] + row.H; row.placeCell(cell, { x: 0, y: y, w: L, lSpace: 0, rSpace: 0, lLine: 0, rLine: 0 }); y -= row.D + space[i + 1] + this.rLines[i]; current = adaptor.next(current); } else { y -= space[i] + row.H + row.D + space[i + 1] + this.rLines[i]; } } }; SVGmtable.prototype.topTable = function (svg, labels, side) { var adaptor = this.adaptor; var _a = this.getBBox(), h = _a.h, d = _a.d, w = _a.w, L = _a.L, R = _a.R; var W = L + (this.pWidth || w) + R; var LW = this.getTableData().L; var _b = __read(this.getPadAlignShift(side), 3), align = _b[1], shift = _b[2]; var dx = shift + (align === 'right' ? -W : align === 'center' ? -W / 2 : 0) + L; var matrix = 'matrix(1 0 0 -1 0 0)'; var scale = "scale(" + this.jax.fixed((this.font.params.x_height * 1000) / this.metrics.ex, 2) + ")"; var transform = "translate(0 " + this.fixed(h) + ") " + matrix + " " + scale; var table = this.svg('svg', { 'data-table': true, preserveAspectRatio: (align === 'left' ? 'xMinYMid' : align === 'right' ? 'xMaxYMid' : 'xMidYMid'), viewBox: [this.fixed(-dx), this.fixed(-h), 1, this.fixed(h + d)].join(' ') }, [ this.svg('g', { transform: matrix }, adaptor.childNodes(svg)) ]); labels = this.svg('svg', { 'data-labels': true, preserveAspectRatio: (side === 'left' ? 'xMinYMid' : 'xMaxYMid'), viewBox: [side === 'left' ? 0 : this.fixed(LW), this.fixed(-h), 1, this.fixed(h + d)].join(' ') }, [labels]); adaptor.append(svg, this.svg('g', { transform: transform }, [table, labels])); this.place(-L, 0, svg); }; SVGmtable.prototype.subTable = function (svg, labels, side, dx) { var adaptor = this.adaptor; var _a = this.getBBox(), w = _a.w, L = _a.L, R = _a.R; var W = L + (this.pWidth || w) + R; var labelW = this.getTableData().L; var align = this.getAlignShift()[0]; var CW = Math.max(W, this.container.getWrapWidth(this.containerI)); this.place(side === 'left' ? (align === 'left' ? 0 : align === 'right' ? W - CW + dx : (W - CW) / 2 + dx) - L : (align === 'left' ? CW : align === 'right' ? W + dx : (CW + W) / 2 + dx) - L - labelW, 0, labels); adaptor.append(svg, labels); }; SVGmtable.kind = mtable_js_2.MmlMtable.prototype.kind; SVGmtable.styles = { 'g[data-mml-node="mtable"] > line[data-line]': { 'stroke-width': '70px', fill: 'none' }, 'g[data-mml-node="mtable"] > rect[data-frame]': { 'stroke-width': '70px', fill: 'none' }, 'g[data-mml-node="mtable"] > .mjx-dashed': { 'stroke-dasharray': '140' }, 'g[data-mml-node="mtable"] > .mjx-dotted': { 'stroke-linecap': 'round', 'stroke-dasharray': '0,140' }, 'g[data-mml-node="mtable"] > g > svg': { overflow: 'visible' } }; return SVGmtable; }(mtable_js_1.CommonMtableMixin(Wrapper_js_1.SVGWrapper))); exports.SVGmtable = SVGmtable; //# sourceMappingURL=mtable.js.map /***/ }), /* 61 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmlabeledtr = exports.SVGmtr = void 0; var Wrapper_js_1 = __webpack_require__(0); var mtr_js_1 = __webpack_require__(12); var mtr_js_2 = __webpack_require__(12); var mtr_js_3 = __webpack_require__(98); var SVGmtr = (function (_super) { __extends(SVGmtr, _super); function SVGmtr() { return _super !== null && _super.apply(this, arguments) || this; } SVGmtr.prototype.toSVG = function (parent) { var svg = this.standardSVGnode(parent); this.placeCells(svg); this.placeColor(); }; SVGmtr.prototype.placeCells = function (svg) { var cSpace = this.parent.getColumnHalfSpacing(); var cLines = __spread([this.parent.fLine], this.parent.cLines, [this.parent.fLine]); var cWidth = this.parent.getComputedWidths(); var x = cLines[0]; for (var i = 0; i < this.numCells; i++) { var child = this.getChild(i); child.toSVG(svg); x += this.placeCell(child, { x: x, y: 0, lSpace: cSpace[i], rSpace: cSpace[i + 1], w: cWidth[i], lLine: cLines[i], rLine: cLines[i + 1] }); } }; SVGmtr.prototype.placeCell = function (cell, sizes) { var x = sizes.x, y = sizes.y, lSpace = sizes.lSpace, w = sizes.w, rSpace = sizes.rSpace, lLine = sizes.lLine, rLine = sizes.rLine; var _a = __read(cell.placeCell(x + lSpace, y, w, this.H, this.D), 2), dx = _a[0], dy = _a[1]; var W = lSpace + w + rSpace; var _b = __read([this.H + this.tSpace, this.D + this.bSpace], 2), H = _b[0], D = _b[1]; cell.placeColor(-(dx + lSpace + lLine / 2), -(D + this.bLine / 2 + dy), W + (lLine + rLine) / 2, H + D + (this.tLine + this.bLine) / 2); return W + rLine; }; SVGmtr.prototype.placeColor = function () { var adaptor = this.adaptor; var child = adaptor.firstChild(this.element); if (child && adaptor.kind(child) === 'rect' && adaptor.getAttribute(child, 'data-bgcolor')) { var _a = __read([this.tLine / 2, this.bLine / 2], 2), TL = _a[0], BL = _a[1]; var _b = __read([this.tSpace, this.bSpace], 2), TS = _b[0], BS = _b[1]; var _c = __read([this.H, this.D], 2), H = _c[0], D = _c[1]; adaptor.setAttribute(child, 'y', this.fixed(-(D + BS + BL))); adaptor.setAttribute(child, 'width', this.fixed(this.parent.getWidth())); adaptor.setAttribute(child, 'height', this.fixed(TL + TS + H + D + BS + BL)); } }; SVGmtr.kind = mtr_js_3.MmlMtr.prototype.kind; return SVGmtr; }(mtr_js_1.CommonMtrMixin(Wrapper_js_1.SVGWrapper))); exports.SVGmtr = SVGmtr; var SVGmlabeledtr = (function (_super) { __extends(SVGmlabeledtr, _super); function SVGmlabeledtr() { return _super !== null && _super.apply(this, arguments) || this; } SVGmlabeledtr.prototype.toSVG = function (parent) { _super.prototype.toSVG.call(this, parent); var child = this.childNodes[0]; if (child) { child.toSVG(this.parent.labels); } }; SVGmlabeledtr.kind = mtr_js_3.MmlMlabeledtr.prototype.kind; return SVGmlabeledtr; }(mtr_js_2.CommonMlabeledtrMixin(SVGmtr))); exports.SVGmlabeledtr = SVGmlabeledtr; //# sourceMappingURL=mtr.js.map /***/ }), /* 62 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmtd = void 0; var Wrapper_js_1 = __webpack_require__(0); var mtd_js_1 = __webpack_require__(37); var mtd_js_2 = __webpack_require__(99); var SVGmtd = (function (_super) { __extends(SVGmtd, _super); function SVGmtd() { return _super !== null && _super.apply(this, arguments) || this; } SVGmtd.prototype.placeCell = function (x, y, W, H, D) { var bbox = this.getBBox(); var h = Math.max(bbox.h, .75); var d = Math.max(bbox.d, .25); var calign = this.node.attributes.get('columnalign'); var ralign = this.node.attributes.get('rowalign'); var alignX = this.getAlignX(W, bbox, calign); var alignY = this.getAlignY(H, D, h, d, ralign); this.place(x + alignX, y + alignY); return [alignX, alignY]; }; SVGmtd.prototype.placeColor = function (x, y, W, H) { var adaptor = this.adaptor; var child = adaptor.firstChild(this.element); if (child && adaptor.kind(child) === 'rect' && adaptor.getAttribute(child, 'data-bgcolor')) { adaptor.setAttribute(child, 'x', this.fixed(x)); adaptor.setAttribute(child, 'y', this.fixed(y)); adaptor.setAttribute(child, 'width', this.fixed(W)); adaptor.setAttribute(child, 'height', this.fixed(H)); } }; SVGmtd.kind = mtd_js_2.MmlMtd.prototype.kind; return SVGmtd; }(mtd_js_1.CommonMtdMixin(Wrapper_js_1.SVGWrapper))); exports.SVGmtd = SVGmtd; //# sourceMappingURL=mtd.js.map /***/ }), /* 63 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmaction = void 0; var Wrapper_js_1 = __webpack_require__(0); var maction_js_1 = __webpack_require__(10); var maction_js_2 = __webpack_require__(10); var maction_js_3 = __webpack_require__(100); var SVGmaction = (function (_super) { __extends(SVGmaction, _super); function SVGmaction() { return _super !== null && _super.apply(this, arguments) || this; } SVGmaction.prototype.toSVG = function (parent) { var svg = this.standardSVGnode(parent); var child = this.selected; var _a = child.getBBox(), h = _a.h, d = _a.d, w = _a.w; this.adaptor.append(this.element, this.svg('rect', { width: this.fixed(w), height: this.fixed(h + d), y: this.fixed(-d), fill: 'none', 'pointer-events': 'all' })); child.toSVG(svg); this.action(this, this.data); }; SVGmaction.prototype.setEventHandler = function (type, handler) { this.element.addEventListener(type, handler); }; SVGmaction.kind = maction_js_3.MmlMaction.prototype.kind; SVGmaction.styles = { '[jax="SVG"] mjx-tool': { display: 'inline-block', position: 'relative', width: 0, height: 0 }, '[jax="SVG"] mjx-tool > mjx-tip': { position: 'absolute', top: 0, left: 0 }, 'mjx-tool > mjx-tip': { display: 'inline-block', padding: '.2em', border: '1px solid #888', 'font-size': '70%', 'background-color': '#F8F8F8', color: 'black', 'box-shadow': '2px 2px 5px #AAAAAA' }, 'g[data-mml-node="maction"][data-toggle]': { cursor: 'pointer' }, 'mjx-status': { display: 'block', position: 'fixed', left: '1em', bottom: '1em', 'min-width': '25%', padding: '.2em .4em', border: '1px solid #888', 'font-size': '90%', 'background-color': '#F8F8F8', color: 'black' } }; SVGmaction.actions = new Map([ ['toggle', [function (node, _data) { node.adaptor.setAttribute(node.element, 'data-toggle', node.node.attributes.get('selection')); var math = node.factory.jax.math; var document = node.factory.jax.document; var mml = node.node; node.setEventHandler('click', function (event) { if (!math.end.node) { math.start.node = math.end.node = math.typesetRoot; math.start.n = math.end.n = 0; } mml.nextToggleSelection(); math.rerender(document); event.stopPropagation(); }); }, {}]], ['tooltip', [function (node, data) { var tip = node.childNodes[1]; if (!tip) return; var rect = node.adaptor.firstChild(node.element); if (tip.node.isKind('mtext')) { var text = tip.node.getText(); node.adaptor.insert(node.svg('title', {}, [node.text(text)]), rect); } else { var adaptor_1 = node.adaptor; var container_1 = node.jax.container; var math = node.node.factory.create('math', {}, [node.childNodes[1].node]); var tool_1 = node.html('mjx-tool', {}, [node.html('mjx-tip')]); var hidden_1 = adaptor_1.append(rect, node.svg('foreignObject', { style: { display: 'none' } }, [tool_1])); node.jax.processMath(math, adaptor_1.firstChild(tool_1)); node.childNodes[1].node.parent = node.node; node.setEventHandler('mouseover', function (event) { data.stopTimers(node, data); data.hoverTimer.set(node, setTimeout(function () { adaptor_1.setStyle(tool_1, 'left', '0'); adaptor_1.setStyle(tool_1, 'top', '0'); adaptor_1.append(container_1, tool_1); var tbox = adaptor_1.nodeBBox(tool_1); var nbox = adaptor_1.nodeBBox(node.element); var dx = (nbox.right - tbox.left) / node.metrics.em + node.dx; var dy = (nbox.bottom - tbox.bottom) / node.metrics.em + node.dy; adaptor_1.setStyle(tool_1, 'left', node.px(dx)); adaptor_1.setStyle(tool_1, 'top', node.px(dy)); }, data.postDelay)); event.stopPropagation(); }); node.setEventHandler('mouseout', function (event) { data.stopTimers(node, data); var timer = setTimeout(function () { return adaptor_1.append(hidden_1, tool_1); }, data.clearDelay); data.clearTimer.set(node, timer); event.stopPropagation(); }); } }, maction_js_2.TooltipData]], ['statusline', [function (node, data) { var tip = node.childNodes[1]; if (!tip) return; if (tip.node.isKind('mtext')) { var adaptor_2 = node.adaptor; var text_1 = tip.node.getText(); adaptor_2.setAttribute(node.element, 'data-statusline', text_1); node.setEventHandler('mouseover', function (event) { if (data.status === null) { var body = adaptor_2.body(adaptor_2.document); data.status = adaptor_2.append(body, node.html('mjx-status', {}, [node.text(text_1)])); } event.stopPropagation(); }); node.setEventHandler('mouseout', function (event) { if (data.status) { adaptor_2.remove(data.status); data.status = null; } event.stopPropagation(); }); } }, { status: null }]] ]); return SVGmaction; }(maction_js_1.CommonMactionMixin(Wrapper_js_1.SVGWrapper))); exports.SVGmaction = SVGmaction; //# sourceMappingURL=maction.js.map /***/ }), /* 64 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmenclose = void 0; var Wrapper_js_1 = __webpack_require__(0); var menclose_js_1 = __webpack_require__(23); var Notation = __webpack_require__(65); var menclose_js_2 = __webpack_require__(101); var SVGmenclose = (function (_super) { __extends(SVGmenclose, _super); function SVGmenclose() { return _super !== null && _super.apply(this, arguments) || this; } SVGmenclose.prototype.toSVG = function (parent) { var e_1, _a; var svg = this.standardSVGnode(parent); var left = this.getBBoxExtenders()[3]; var def = {}; if (left > 0) { def.transform = 'translate(' + this.fixed(left) + ', 0)'; } var block = this.adaptor.append(svg, this.svg('g', def)); if (this.renderChild) { this.renderChild(this, block); } else { this.childNodes[0].toSVG(block); } try { for (var _b = __values(Object.keys(this.notations)), _c = _b.next(); !_c.done; _c = _b.next()) { var name_1 = _c.value; var notation = this.notations[name_1]; !notation.renderChild && notation.renderer(this, svg); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; SVGmenclose.prototype.arrow = function (W, a, double) { if (double === void 0) { double = false; } var _a = this.getBBox(), w = _a.w, h = _a.h, d = _a.d; var dw = (W - w) / 2; var m = (h - d) / 2; var t = this.thickness; var t2 = t / 2; var _b = __read([t * this.arrowhead.x, t * this.arrowhead.y, t * this.arrowhead.dx], 3), x = _b[0], y = _b[1], dx = _b[2]; var arrow = (double ? this.fill('M', w + dw, m, 'l', -(x + dx), y, 'l', dx, t2 - y, 'L', x - dw, m + t2, 'l', dx, y - t2, 'l', -(x + dx), -y, 'l', x + dx, -y, 'l', -dx, y - t2, 'L', w + dw - x, m - t2, 'l', -dx, t2 - y, 'Z') : this.fill('M', w + dw, m, 'l', -(x + dx), y, 'l', dx, t2 - y, 'L', -dw, m + t2, 'l', 0, -t, 'L', w + dw - x, m - t2, 'l', -dx, t2 - y, 'Z')); if (a) { var A = this.jax.fixed(-a * 180 / Math.PI); this.adaptor.setAttribute(arrow, 'transform', 'rotate(' + [A, this.fixed(w / 2), this.fixed(m)].join(' ') + ')'); } return arrow; }; SVGmenclose.prototype.line = function (pq) { var _a = __read(pq, 4), x1 = _a[0], y1 = _a[1], x2 = _a[2], y2 = _a[3]; return this.svg('line', { x1: this.fixed(x1), y1: this.fixed(y1), x2: this.fixed(x2), y2: this.fixed(y2), 'stroke-width': this.fixed(this.thickness) }); }; SVGmenclose.prototype.box = function (w, h, d, r) { if (r === void 0) { r = 0; } var t = this.thickness; var def = { x: this.fixed(t / 2), y: this.fixed(t / 2 - d), width: this.fixed(w - t), height: this.fixed(h + d - t), fill: 'none', 'stroke-width': this.fixed(t) }; if (r) { def.rx = this.fixed(r); } return this.svg('rect', def); }; SVGmenclose.prototype.ellipse = function (w, h, d) { var t = this.thickness; return this.svg('ellipse', { rx: this.fixed((w - t) / 2), ry: this.fixed((h + d - t) / 2), cx: this.fixed(w / 2), cy: this.fixed((h - d) / 2), 'fill': 'none', 'stroke-width': this.fixed(t) }); }; SVGmenclose.prototype.path = function (join) { var _this = this; var P = []; for (var _i = 1; _i < arguments.length; _i++) { P[_i - 1] = arguments[_i]; } return this.svg('path', { d: P.map(function (x) { return (typeof x === 'string' ? x : _this.fixed(x)); }).join(' '), style: { 'stroke-width': this.fixed(this.thickness) }, 'stroke-linecap': 'round', 'stroke-linejoin': join, fill: 'none' }); }; SVGmenclose.prototype.fill = function () { var _this = this; var P = []; for (var _i = 0; _i < arguments.length; _i++) { P[_i] = arguments[_i]; } return this.svg('path', { d: P.map(function (x) { return (typeof x === 'string' ? x : _this.fixed(x)); }).join(' ') }); }; SVGmenclose.kind = menclose_js_2.MmlMenclose.prototype.kind; SVGmenclose.notations = new Map([ Notation.Border('top'), Notation.Border('right'), Notation.Border('bottom'), Notation.Border('left'), Notation.Border2('actuarial', 'top', 'right'), Notation.Border2('madruwb', 'bottom', 'right'), Notation.DiagonalStrike('up'), Notation.DiagonalStrike('down'), ['horizontalstrike', { renderer: Notation.RenderLine('horizontal'), bbox: function (node) { return [0, node.padding, 0, node.padding]; } }], ['verticalstrike', { renderer: Notation.RenderLine('vertical'), bbox: function (node) { return [node.padding, 0, node.padding, 0]; } }], ['box', { renderer: function (node, _child) { var _a = node.getBBox(), w = _a.w, h = _a.h, d = _a.d; node.adaptor.append(node.element, node.box(w, h, d)); }, bbox: Notation.fullBBox, border: Notation.fullBorder, remove: 'left right top bottom' }], ['roundedbox', { renderer: function (node, _child) { var _a = node.getBBox(), w = _a.w, h = _a.h, d = _a.d; var r = node.thickness + node.padding; node.adaptor.append(node.element, node.box(w, h, d, r)); }, bbox: Notation.fullBBox }], ['circle', { renderer: function (node, _child) { var _a = node.getBBox(), w = _a.w, h = _a.h, d = _a.d; node.adaptor.append(node.element, node.ellipse(w, h, d)); }, bbox: Notation.fullBBox }], ['phasorangle', { renderer: function (node, _child) { var _a = node.getBBox(), w = _a.w, h = _a.h, d = _a.d; var a = node.getArgMod(1.75 * node.padding, h + d)[0]; var t = node.thickness / 2; var HD = h + d; var cos = Math.cos(a); node.adaptor.append(node.element, node.path('mitre', 'M', w, t - d, 'L', t + cos * t, t - d, 'L', cos * HD + t, HD - d - t)); }, bbox: function (node) { var p = node.padding / 2; var t = node.thickness; return [2 * p, p, p + t, 3 * p + t]; }, border: function (node) { return [0, 0, node.thickness, 0]; }, remove: 'bottom' }], Notation.Arrow('up'), Notation.Arrow('down'), Notation.Arrow('left'), Notation.Arrow('right'), Notation.Arrow('updown'), Notation.Arrow('leftright'), Notation.DiagonalArrow('updiagonal'), Notation.DiagonalArrow('northeast'), Notation.DiagonalArrow('southeast'), Notation.DiagonalArrow('northwest'), Notation.DiagonalArrow('southwest'), Notation.DiagonalArrow('northeastsouthwest'), Notation.DiagonalArrow('northwestsoutheast'), ['longdiv', { renderer: function (node, _child) { var _a = node.getBBox(), w = _a.w, h = _a.h, d = _a.d; var t = node.thickness / 2; var p = node.padding; node.adaptor.append(node.element, node.path('round', 'M', t, t - d, 'a', p - t / 2, (h + d) / 2 - 4 * t, 0, '0,1', 0, h + d - 2 * t, 'L', w - t, h - t)); }, bbox: function (node) { var p = node.padding; var t = node.thickness; return [p + t, p, p, 2 * p + t / 2]; } }], ['radical', { renderer: function (node, child) { node.msqrt.toSVG(child); var left = node.sqrtTRBL()[3]; node.place(-left, 0, child); }, init: function (node) { node.msqrt = node.createMsqrt(node.childNodes[0]); }, bbox: function (node) { return node.sqrtTRBL(); }, renderChild: true }] ]); return SVGmenclose; }(menclose_js_1.CommonMencloseMixin(Wrapper_js_1.SVGWrapper))); exports.SVGmenclose = SVGmenclose; //# sourceMappingURL=menclose.js.map /***/ }), /* 65 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Arrow = exports.DiagonalArrow = exports.DiagonalStrike = exports.Border2 = exports.Border = exports.RenderLine = exports.lineData = exports.computeLineData = void 0; var Notation = __webpack_require__(5); __exportStar(__webpack_require__(5), exports); exports.computeLineData = { top: function (h, _d, w, t) { return [0, h - t, w, h - t]; }, right: function (h, d, w, t) { return [w - t, -d, w - t, h]; }, bottom: function (_h, d, w, t) { return [0, t - d, w, t - d]; }, left: function (h, d, _w, t) { return [t, -d, t, h]; }, vertical: function (h, d, w, t) { return [w / 2 - t, h, w / 2 - t, -d]; }, horizontal: function (h, d, w, t) { return [0, (h - d) / 2 - t, w, (h - d) / 2 - t]; }, up: function (h, d, w, t) { return [t, t - d, w - t, h - t]; }, down: function (h, d, w, t) { return [t, h - t, w - t, t - d]; } }; exports.lineData = function (node, kind) { var _a = node.getBBox(), h = _a.h, d = _a.d, w = _a.w; var t = node.thickness / 2; return exports.computeLineData[kind](h, d, w, t); }; exports.RenderLine = function (line) { return (function (node, _child) { node.adaptor.append(node.element, node.line(exports.lineData(node, line))); }); }; exports.Border = function (side) { return Notation.CommonBorder(function (node, _child) { node.adaptor.append(node.element, node.line(exports.lineData(node, side))); })(side); }; exports.Border2 = function (name, side1, side2) { return Notation.CommonBorder2(function (node, _child) { node.adaptor.append(node.element, node.line(exports.lineData(node, side1))); node.adaptor.append(node.element, node.line(exports.lineData(node, side2))); })(name, side1, side2); }; exports.DiagonalStrike = function (name) { return Notation.CommonDiagonalStrike(function (_cname) { return function (node, _child) { node.adaptor.append(node.element, node.line(exports.lineData(node, name))); }; })(name); }; exports.DiagonalArrow = function (name) { return Notation.CommonDiagonalArrow(function (node, arrow) { node.adaptor.append(node.element, arrow); })(name); }; exports.Arrow = function (name) { return Notation.CommonArrow(function (node, arrow) { node.adaptor.append(node.element, arrow); })(name); }; //# sourceMappingURL=Notation.js.map /***/ }), /* 66 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGxml = exports.SVGannotationXML = exports.SVGannotation = exports.SVGsemantics = void 0; var Wrapper_js_1 = __webpack_require__(0); var semantics_js_1 = __webpack_require__(40); var semantics_js_2 = __webpack_require__(102); var MmlNode_js_1 = __webpack_require__(3); var SVGsemantics = (function (_super) { __extends(SVGsemantics, _super); function SVGsemantics() { return _super !== null && _super.apply(this, arguments) || this; } SVGsemantics.prototype.toSVG = function (parent) { var svg = this.standardSVGnode(parent); if (this.childNodes.length) { this.childNodes[0].toSVG(svg); } }; SVGsemantics.kind = semantics_js_2.MmlSemantics.prototype.kind; return SVGsemantics; }(semantics_js_1.CommonSemanticsMixin(Wrapper_js_1.SVGWrapper))); exports.SVGsemantics = SVGsemantics; var SVGannotation = (function (_super) { __extends(SVGannotation, _super); function SVGannotation() { return _super !== null && _super.apply(this, arguments) || this; } SVGannotation.prototype.toSVG = function (parent) { _super.prototype.toSVG.call(this, parent); }; SVGannotation.prototype.computeBBox = function () { return this.bbox; }; SVGannotation.kind = semantics_js_2.MmlAnnotation.prototype.kind; return SVGannotation; }(Wrapper_js_1.SVGWrapper)); exports.SVGannotation = SVGannotation; var SVGannotationXML = (function (_super) { __extends(SVGannotationXML, _super); function SVGannotationXML() { return _super !== null && _super.apply(this, arguments) || this; } SVGannotationXML.kind = semantics_js_2.MmlAnnotationXML.prototype.kind; SVGannotationXML.styles = { 'foreignObject[data-mjx-xml]': { 'font-family': 'initial', 'line-height': 'normal', overflow: 'visible' } }; return SVGannotationXML; }(Wrapper_js_1.SVGWrapper)); exports.SVGannotationXML = SVGannotationXML; var SVGxml = (function (_super) { __extends(SVGxml, _super); function SVGxml() { return _super !== null && _super.apply(this, arguments) || this; } SVGxml.prototype.toSVG = function (parent) { var xml = this.adaptor.clone(this.node.getXML()); var em = this.jax.math.metrics.em * this.jax.math.metrics.scale; var scale = this.fixed(1 / em); var _a = this.getBBox(), w = _a.w, h = _a.h, d = _a.d; this.element = this.adaptor.append(parent, this.svg('foreignObject', { 'data-mjx-xml': true, y: this.jax.fixed(-h * em) + 'px', width: this.jax.fixed(w * em) + 'px', height: this.jax.fixed((h + d) * em) + 'px', transform: "scale(" + scale + ") matrix(1 0 0 -1 0 0)" }, [xml])); }; SVGxml.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } var _a = this.jax.measureXMLnode(this.node.getXML()), w = _a.w, h = _a.h, d = _a.d; bbox.w = w; bbox.h = h; bbox.d = d; }; SVGxml.prototype.getStyles = function () { }; SVGxml.prototype.getScale = function () { }; SVGxml.prototype.getVariant = function () { }; SVGxml.kind = MmlNode_js_1.XMLNode.prototype.kind; SVGxml.autoStyle = false; return SVGxml; }(Wrapper_js_1.SVGWrapper)); exports.SVGxml = SVGxml; //# sourceMappingURL=semantics.js.map /***/ }), /* 67 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGmglyph = void 0; var Wrapper_js_1 = __webpack_require__(0); var mglyph_js_1 = __webpack_require__(26); var mglyph_js_2 = __webpack_require__(103); var SVGmglyph = (function (_super) { __extends(SVGmglyph, _super); function SVGmglyph() { return _super !== null && _super.apply(this, arguments) || this; } SVGmglyph.prototype.toSVG = function (parent) { var svg = this.standardSVGnode(parent); var _a = this.node.attributes.getList('src', 'alt'), src = _a.src, alt = _a.alt; var h = this.fixed(this.height); var w = this.fixed(this.width); var y = this.fixed(this.height + (this.valign || 0)); var properties = { width: w, height: h, transform: 'translate(0 ' + y + ') matrix(1 0 0 -1 0 0)', preserveAspectRatio: 'none', alt: alt, title: alt, href: src }; var img = this.svg('image', properties); this.adaptor.append(svg, img); }; SVGmglyph.kind = mglyph_js_2.MmlMglyph.prototype.kind; return SVGmglyph; }(mglyph_js_1.CommonMglyphMixin(Wrapper_js_1.SVGWrapper))); exports.SVGmglyph = SVGmglyph; //# sourceMappingURL=mglyph.js.map /***/ }), /* 68 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGTeXAtom = void 0; var Wrapper_js_1 = __webpack_require__(0); var TeXAtom_js_1 = __webpack_require__(20); var TeXAtom_js_2 = __webpack_require__(104); var MmlNode_js_1 = __webpack_require__(3); var SVGTeXAtom = (function (_super) { __extends(SVGTeXAtom, _super); function SVGTeXAtom() { return _super !== null && _super.apply(this, arguments) || this; } SVGTeXAtom.prototype.toSVG = function (parent) { _super.prototype.toSVG.call(this, parent); this.adaptor.setAttribute(this.element, 'data-mjx-texclass', MmlNode_js_1.TEXCLASSNAMES[this.node.texClass]); if (this.node.texClass === MmlNode_js_1.TEXCLASS.VCENTER) { var bbox = this.childNodes[0].getBBox(); var h = bbox.h, d = bbox.d; var a = this.font.params.axis_height; var dh = ((h + d) / 2 + a) - h; var translate = 'translate(0 ' + this.fixed(dh) + ')'; this.adaptor.setAttribute(this.element, 'transform', translate); } }; SVGTeXAtom.kind = TeXAtom_js_2.TeXAtom.prototype.kind; return SVGTeXAtom; }(TeXAtom_js_1.CommonTeXAtomMixin(Wrapper_js_1.SVGWrapper))); exports.SVGTeXAtom = SVGTeXAtom; //# sourceMappingURL=TeXAtom.js.map /***/ }), /* 69 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SVGTextNode = void 0; var MmlNode_js_1 = __webpack_require__(3); var Wrapper_js_1 = __webpack_require__(0); var TextNode_js_1 = __webpack_require__(21); var SVGTextNode = (function (_super) { __extends(SVGTextNode, _super); function SVGTextNode() { return _super !== null && _super.apply(this, arguments) || this; } SVGTextNode.prototype.toSVG = function (parent) { var e_1, _a; var text = this.node.getText(); var variant = this.parent.variant; if (variant === '-explicitFont') { this.adaptor.append(parent, this.jax.unknownText(text, variant)); } else { var chars = this.remappedText(text, variant); var x = 0; try { for (var chars_1 = __values(chars), chars_1_1 = chars_1.next(); !chars_1_1.done; chars_1_1 = chars_1.next()) { var n = chars_1_1.value; x += this.placeChar(n, x, 0, parent, variant); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (chars_1_1 && !chars_1_1.done && (_a = chars_1.return)) _a.call(chars_1); } finally { if (e_1) throw e_1.error; } } } this.element = this.adaptor.lastChild(parent); }; SVGTextNode.kind = MmlNode_js_1.TextNode.prototype.kind; SVGTextNode.styles = { '.MathJax path': { 'stroke-width': 3 } }; return SVGTextNode; }(TextNode_js_1.CommonTextNodeMixin(Wrapper_js_1.SVGWrapper))); exports.SVGTextNode = SVGTextNode; //# sourceMappingURL=TextNode.js.map /***/ }), /* 70 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FontCache = void 0; var FontCache = (function () { function FontCache(jax) { this.cache = new Map(); this.defs = null; this.localID = ''; this.nextID = 0; this.jax = jax; } FontCache.prototype.cachePath = function (variant, C, path) { var id = 'MJX-' + this.localID + (this.jax.font.getVariant(variant).cacheID || '') + '-' + C; if (!this.cache.has(id)) { this.cache.set(id, path); this.jax.adaptor.append(this.defs, this.jax.svg('path', { id: id, d: path })); } return id; }; FontCache.prototype.clearLocalID = function () { this.localID = ''; }; FontCache.prototype.useLocalID = function (id) { if (id === void 0) { id = null; } this.localID = (id == null ? ++this.nextID : id) + (id === '' ? '' : '-'); }; FontCache.prototype.clearCache = function () { this.cache = new Map(); this.defs = this.jax.svg('defs'); }; FontCache.prototype.getCache = function () { return this.defs; }; return FontCache; }()); exports.FontCache = FontCache; //# sourceMappingURL=FontCache.js.map /***/ }), /* 71 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Styles = MathJax._.util.Styles.Styles; /***/ }), /* 72 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractOutputJax = MathJax._.core.OutputJax.AbstractOutputJax; /***/ }), /* 73 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.protoItem = MathJax._.core.MathItem.protoItem; exports.AbstractMathItem = MathJax._.core.MathItem.AbstractMathItem; exports.STATE = MathJax._.core.MathItem.STATE; exports.newState = MathJax._.core.MathItem.newState; /***/ }), /* 74 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.APPEND = MathJax._.util.Options.APPEND; exports.REMOVE = MathJax._.util.Options.REMOVE; exports.Expandable = MathJax._.util.Options.Expandable; exports.expandable = MathJax._.util.Options.expandable; exports.makeArray = MathJax._.util.Options.makeArray; exports.keys = MathJax._.util.Options.keys; exports.copy = MathJax._.util.Options.copy; exports.insert = MathJax._.util.Options.insert; exports.defaultOptions = MathJax._.util.Options.defaultOptions; exports.userOptions = MathJax._.util.Options.userOptions; exports.selectOptions = MathJax._.util.Options.selectOptions; exports.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys; exports.separateOptions = MathJax._.util.Options.separateOptions; /***/ }), /* 75 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.CssStyles = MathJax._.util.StyleList.CssStyles; /***/ }), /* 76 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractWrapper = MathJax._.core.Tree.Wrapper.AbstractWrapper; /***/ }), /* 77 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractWrapperFactory = MathJax._.core.Tree.WrapperFactory.AbstractWrapperFactory; /***/ }), /* 78 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.sum = MathJax._.util.numeric.sum; exports.max = MathJax._.util.numeric.max; /***/ }), /* 79 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMath = MathJax._.core.MmlTree.MmlNodes.math.MmlMath; /***/ }), /* 80 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMrow = MathJax._.core.MmlTree.MmlNodes.mrow.MmlMrow; exports.MmlInferredMrow = MathJax._.core.MmlTree.MmlNodes.mrow.MmlInferredMrow; /***/ }), /* 81 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMi = MathJax._.core.MmlTree.MmlNodes.mi.MmlMi; /***/ }), /* 82 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMo = MathJax._.core.MmlTree.MmlNodes.mo.MmlMo; /***/ }), /* 83 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMn = MathJax._.core.MmlTree.MmlNodes.mn.MmlMn; /***/ }), /* 84 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMs = MathJax._.core.MmlTree.MmlNodes.ms.MmlMs; /***/ }), /* 85 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMtext = MathJax._.core.MmlTree.MmlNodes.mtext.MmlMtext; /***/ }), /* 86 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMerror = MathJax._.core.MmlTree.MmlNodes.merror.MmlMerror; /***/ }), /* 87 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMspace = MathJax._.core.MmlTree.MmlNodes.mspace.MmlMspace; /***/ }), /* 88 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMpadded = MathJax._.core.MmlTree.MmlNodes.mpadded.MmlMpadded; /***/ }), /* 89 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMphantom = MathJax._.core.MmlTree.MmlNodes.mphantom.MmlMphantom; /***/ }), /* 90 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMfrac = MathJax._.core.MmlTree.MmlNodes.mfrac.MmlMfrac; /***/ }), /* 91 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMsqrt = MathJax._.core.MmlTree.MmlNodes.msqrt.MmlMsqrt; /***/ }), /* 92 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMroot = MathJax._.core.MmlTree.MmlNodes.mroot.MmlMroot; /***/ }), /* 93 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMfenced = MathJax._.core.MmlTree.MmlNodes.mfenced.MmlMfenced; /***/ }), /* 94 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMsubsup = MathJax._.core.MmlTree.MmlNodes.msubsup.MmlMsubsup; exports.MmlMsub = MathJax._.core.MmlTree.MmlNodes.msubsup.MmlMsub; exports.MmlMsup = MathJax._.core.MmlTree.MmlNodes.msubsup.MmlMsup; /***/ }), /* 95 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMunderover = MathJax._.core.MmlTree.MmlNodes.munderover.MmlMunderover; exports.MmlMunder = MathJax._.core.MmlTree.MmlNodes.munderover.MmlMunder; exports.MmlMover = MathJax._.core.MmlTree.MmlNodes.munderover.MmlMover; /***/ }), /* 96 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMmultiscripts = MathJax._.core.MmlTree.MmlNodes.mmultiscripts.MmlMmultiscripts; exports.MmlMprescripts = MathJax._.core.MmlTree.MmlNodes.mmultiscripts.MmlMprescripts; exports.MmlNone = MathJax._.core.MmlTree.MmlNodes.mmultiscripts.MmlNone; /***/ }), /* 97 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMtable = MathJax._.core.MmlTree.MmlNodes.mtable.MmlMtable; /***/ }), /* 98 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMtr = MathJax._.core.MmlTree.MmlNodes.mtr.MmlMtr; exports.MmlMlabeledtr = MathJax._.core.MmlTree.MmlNodes.mtr.MmlMlabeledtr; /***/ }), /* 99 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMtd = MathJax._.core.MmlTree.MmlNodes.mtd.MmlMtd; /***/ }), /* 100 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMaction = MathJax._.core.MmlTree.MmlNodes.maction.MmlMaction; /***/ }), /* 101 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMenclose = MathJax._.core.MmlTree.MmlNodes.menclose.MmlMenclose; /***/ }), /* 102 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlSemantics = MathJax._.core.MmlTree.MmlNodes.semantics.MmlSemantics; exports.MmlAnnotationXML = MathJax._.core.MmlTree.MmlNodes.semantics.MmlAnnotationXML; exports.MmlAnnotation = MathJax._.core.MmlTree.MmlNodes.semantics.MmlAnnotation; /***/ }), /* 103 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMglyph = MathJax._.core.MmlTree.MmlNodes.mglyph.MmlMglyph; /***/ }), /* 104 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.TeXAtom = MathJax._.core.MmlTree.MmlNodes.TeXAtom.TeXAtom; /***/ }), /* 105 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TeXFont", function() { return TeXFont; }); /* harmony import */ var _js_output_svg_FontData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15); /* harmony import */ var _js_output_svg_FontData_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_js_output_svg_FontData_js__WEBPACK_IMPORTED_MODULE_0__); function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } 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); }; } function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } var TeXFont = /*#__PURE__*/function (_FontData) { _inherits(TeXFont, _FontData); var _super = _createSuper(TeXFont); function TeXFont() { _classCallCheck(this, TeXFont); return _super.apply(this, arguments); } return TeXFont; }(_js_output_svg_FontData_js__WEBPACK_IMPORTED_MODULE_0__["FontData"]); ; TeXFont.OPTIONS = { fontURL: '.' }; /***/ }), /* 106 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(14); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/FontData.js var FontData = __webpack_require__(2); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Notation.js var Notation = __webpack_require__(5); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/OutputJax.js var OutputJax = __webpack_require__(17); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrapper.js var Wrapper = __webpack_require__(18); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/WrapperFactory.js var WrapperFactory = __webpack_require__(19); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/TeXAtom.js var TeXAtom = __webpack_require__(20); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/TextNode.js var TextNode = __webpack_require__(21); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/maction.js var maction = __webpack_require__(10); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/math.js var math = __webpack_require__(22); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/menclose.js var menclose = __webpack_require__(23); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mfenced.js var mfenced = __webpack_require__(24); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mfrac.js var mfrac = __webpack_require__(25); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mglyph.js var mglyph = __webpack_require__(26); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mi.js var mi = __webpack_require__(27); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mmultiscripts.js var mmultiscripts = __webpack_require__(28); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mn.js var mn = __webpack_require__(29); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mo.js var mo = __webpack_require__(30); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mpadded.js var mpadded = __webpack_require__(31); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mroot.js var mroot = __webpack_require__(32); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mrow.js var mrow = __webpack_require__(11); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/ms.js var ms = __webpack_require__(33); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mspace.js var mspace = __webpack_require__(34); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/msqrt.js var msqrt = __webpack_require__(35); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/msubsup.js var msubsup = __webpack_require__(6); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mtable.js var mtable = __webpack_require__(36); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mtd.js var mtd = __webpack_require__(37); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mtext.js var mtext = __webpack_require__(38); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mtr.js var mtr = __webpack_require__(12); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/munderover.js var munderover = __webpack_require__(7); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/scriptbase.js var scriptbase = __webpack_require__(39); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/semantics.js var semantics = __webpack_require__(40); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg.js var svg = __webpack_require__(9); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/FontCache.js var FontCache = __webpack_require__(70); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/FontData.js var svg_FontData = __webpack_require__(15); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Notation.js var svg_Notation = __webpack_require__(65); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrapper.js var svg_Wrapper = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/WrapperFactory.js var svg_WrapperFactory = __webpack_require__(41); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers.js var Wrappers = __webpack_require__(42); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/TeXAtom.js var Wrappers_TeXAtom = __webpack_require__(68); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/TextNode.js var Wrappers_TextNode = __webpack_require__(69); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/maction.js var Wrappers_maction = __webpack_require__(63); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/math.js var Wrappers_math = __webpack_require__(43); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/menclose.js var Wrappers_menclose = __webpack_require__(64); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/merror.js var merror = __webpack_require__(50); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/mfenced.js var Wrappers_mfenced = __webpack_require__(56); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/mfrac.js var Wrappers_mfrac = __webpack_require__(54); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/mglyph.js var Wrappers_mglyph = __webpack_require__(67); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/mi.js var Wrappers_mi = __webpack_require__(45); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/mmultiscripts.js var Wrappers_mmultiscripts = __webpack_require__(59); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/mn.js var Wrappers_mn = __webpack_require__(47); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/mo.js var Wrappers_mo = __webpack_require__(46); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/mpadded.js var Wrappers_mpadded = __webpack_require__(52); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/mphantom.js var mphantom = __webpack_require__(53); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/mroot.js var Wrappers_mroot = __webpack_require__(55); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/mrow.js var Wrappers_mrow = __webpack_require__(44); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/ms.js var Wrappers_ms = __webpack_require__(48); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/mspace.js var Wrappers_mspace = __webpack_require__(51); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/msqrt.js var Wrappers_msqrt = __webpack_require__(13); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/msubsup.js var Wrappers_msubsup = __webpack_require__(8); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/mtable.js var Wrappers_mtable = __webpack_require__(60); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/mtd.js var Wrappers_mtd = __webpack_require__(62); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/mtext.js var Wrappers_mtext = __webpack_require__(49); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/mtr.js var Wrappers_mtr = __webpack_require__(61); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/munderover.js var Wrappers_munderover = __webpack_require__(58); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/scriptbase.js var Wrappers_scriptbase = __webpack_require__(57); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/svg/Wrappers/semantics.js var Wrappers_semantics = __webpack_require__(66); // CONCATENATED MODULE: ./lib/svg.js Object(global["combineWithMathJax"])({ _: { output: { common: { FontData: FontData, Notation: Notation, OutputJax: OutputJax, Wrapper: Wrapper, WrapperFactory: WrapperFactory, Wrappers: { TeXAtom: TeXAtom, TextNode: TextNode, maction: maction, math: math, menclose: menclose, mfenced: mfenced, mfrac: mfrac, mglyph: mglyph, mi: mi, mmultiscripts: mmultiscripts, mn: mn, mo: mo, mpadded: mpadded, mroot: mroot, mrow: mrow, ms: ms, mspace: mspace, msqrt: msqrt, msubsup: msubsup, mtable: mtable, mtd: mtd, mtext: mtext, mtr: mtr, munderover: munderover, scriptbase: scriptbase, semantics: semantics } }, svg_ts: svg, svg: { FontCache: FontCache, FontData: svg_FontData, Notation: svg_Notation, Wrapper: svg_Wrapper, WrapperFactory: svg_WrapperFactory, Wrappers_ts: Wrappers, Wrappers: { TeXAtom: Wrappers_TeXAtom, TextNode: Wrappers_TextNode, maction: Wrappers_maction, math: Wrappers_math, menclose: Wrappers_menclose, merror: merror, mfenced: Wrappers_mfenced, mfrac: Wrappers_mfrac, mglyph: Wrappers_mglyph, mi: Wrappers_mi, mmultiscripts: Wrappers_mmultiscripts, mn: Wrappers_mn, mo: Wrappers_mo, mpadded: Wrappers_mpadded, mphantom: mphantom, mroot: Wrappers_mroot, mrow: Wrappers_mrow, ms: Wrappers_ms, mspace: Wrappers_mspace, msqrt: Wrappers_msqrt, msubsup: Wrappers_msubsup, mtable: Wrappers_mtable, mtd: Wrappers_mtd, mtext: Wrappers_mtext, mtr: Wrappers_mtr, munderover: Wrappers_munderover, scriptbase: Wrappers_scriptbase, semantics: Wrappers_semantics } } } } }); // CONCATENATED MODULE: ./svg.js if (MathJax.loader) { Object(global["combineDefaults"])(MathJax.config.loader, 'output/svg', { checkReady: function checkReady() { return MathJax.loader.load("output/svg/fonts/tex"); } }); } if (MathJax.startup) { MathJax.startup.registerConstructor('svg', svg["SVG"]); MathJax.startup.useOutput('svg'); } /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/output/chtml.js0000644000176200001440000140712514005301544020022 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 101); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLWrapper = exports.SPACE = exports.FONTSIZE = void 0; var LENGTHS = __webpack_require__(2); var Wrapper_js_1 = __webpack_require__(21); var BBox_js_1 = __webpack_require__(1); exports.FONTSIZE = { '70.7%': 's', '70%': 's', '50%': 'ss', '60%': 'Tn', '85%': 'sm', '120%': 'lg', '144%': 'Lg', '173%': 'LG', '207%': 'hg', '249%': 'HG' }; exports.SPACE = (_a = {}, _a[LENGTHS.em(2 / 18)] = '1', _a[LENGTHS.em(3 / 18)] = '2', _a[LENGTHS.em(4 / 18)] = '3', _a[LENGTHS.em(5 / 18)] = '4', _a[LENGTHS.em(6 / 18)] = '5', _a); var CHTMLWrapper = (function (_super) { __extends(CHTMLWrapper, _super); function CHTMLWrapper() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.chtml = null; return _this; } CHTMLWrapper.prototype.toCHTML = function (parent) { var e_1, _a; var chtml = this.standardCHTMLnode(parent); try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; child.toCHTML(chtml); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; CHTMLWrapper.prototype.standardCHTMLnode = function (parent) { this.markUsed(); var chtml = this.createCHTMLnode(parent); this.handleStyles(); this.handleVariant(); this.handleScale(); this.handleColor(); this.handleSpace(); this.handleAttributes(); this.handlePWidth(); return chtml; }; CHTMLWrapper.prototype.markUsed = function () { this.constructor.used = true; }; CHTMLWrapper.prototype.createCHTMLnode = function (parent) { var href = this.node.attributes.get('href'); if (href) { parent = this.adaptor.append(parent, this.html('a', { href: href })); } this.chtml = this.adaptor.append(parent, this.html('mjx-' + this.node.kind)); return this.chtml; }; CHTMLWrapper.prototype.handleStyles = function () { if (!this.styles) return; var styles = this.styles.cssText; if (styles) { this.adaptor.setAttribute(this.chtml, 'style', styles); var family = this.styles.get('font-family'); if (family) { this.adaptor.setStyle(this.chtml, 'font-family', 'MJXZERO, ' + family); } } }; CHTMLWrapper.prototype.handleVariant = function () { if (this.node.isToken && this.variant !== '-explicitFont') { this.adaptor.setAttribute(this.chtml, 'class', (this.font.getVariant(this.variant) || this.font.getVariant('normal')).classes); } }; CHTMLWrapper.prototype.handleScale = function () { this.setScale(this.chtml, this.bbox.rscale); }; CHTMLWrapper.prototype.setScale = function (chtml, rscale) { var scale = (Math.abs(rscale - 1) < .001 ? 1 : rscale); if (chtml && scale !== 1) { var size = this.percent(scale); if (exports.FONTSIZE[size]) { this.adaptor.setAttribute(chtml, 'size', exports.FONTSIZE[size]); } else { this.adaptor.setStyle(chtml, 'fontSize', size); } } return chtml; }; CHTMLWrapper.prototype.handleSpace = function () { var e_2, _a; try { for (var _b = __values([[this.bbox.L, 'space', 'marginLeft'], [this.bbox.R, 'rspace', 'marginRight']]), _c = _b.next(); !_c.done; _c = _b.next()) { var data = _c.value; var _d = __read(data, 3), dimen = _d[0], name_1 = _d[1], margin = _d[2]; if (dimen) { var space = this.em(dimen); if (exports.SPACE[space]) { this.adaptor.setAttribute(this.chtml, name_1, exports.SPACE[space]); } else { this.adaptor.setStyle(this.chtml, margin, space); } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } }; CHTMLWrapper.prototype.handleColor = function () { var attributes = this.node.attributes; var mathcolor = attributes.getExplicit('mathcolor'); var color = attributes.getExplicit('color'); var mathbackground = attributes.getExplicit('mathbackground'); var background = attributes.getExplicit('background'); if (mathcolor || color) { this.adaptor.setStyle(this.chtml, 'color', mathcolor || color); } if (mathbackground || background) { this.adaptor.setStyle(this.chtml, 'backgroundColor', mathbackground || background); } }; CHTMLWrapper.prototype.handleAttributes = function () { var e_3, _a, e_4, _b; var attributes = this.node.attributes; var defaults = attributes.getAllDefaults(); var skip = CHTMLWrapper.skipAttributes; try { for (var _c = __values(attributes.getExplicitNames()), _d = _c.next(); !_d.done; _d = _c.next()) { var name_2 = _d.value; if (skip[name_2] === false || (!(name_2 in defaults) && !skip[name_2] && !this.adaptor.hasAttribute(this.chtml, name_2))) { this.adaptor.setAttribute(this.chtml, name_2, attributes.getExplicit(name_2)); } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_3) throw e_3.error; } } if (attributes.get('class')) { var names = attributes.get('class').trim().split(/ +/); try { for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) { var name_3 = names_1_1.value; this.adaptor.addClass(this.chtml, name_3); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (names_1_1 && !names_1_1.done && (_b = names_1.return)) _b.call(names_1); } finally { if (e_4) throw e_4.error; } } } }; CHTMLWrapper.prototype.handlePWidth = function () { if (this.bbox.pwidth) { if (this.bbox.pwidth === BBox_js_1.BBox.fullWidth) { this.adaptor.setAttribute(this.chtml, 'width', 'full'); } else { this.adaptor.setStyle(this.chtml, 'width', this.bbox.pwidth); } } }; CHTMLWrapper.prototype.setIndent = function (chtml, align, shift) { var adaptor = this.adaptor; if (align === 'center' || align === 'left') { var L = this.getBBox().L; adaptor.setStyle(chtml, 'margin-left', this.em(shift + L)); } if (align === 'center' || align === 'right') { var R = this.getBBox().R; adaptor.setStyle(chtml, 'margin-right', this.em(-shift + R)); } }; CHTMLWrapper.prototype.drawBBox = function () { var _a = this.getBBox(), w = _a.w, h = _a.h, d = _a.d, R = _a.R; var box = this.html('mjx-box', { style: { opacity: .25, 'margin-left': this.em(-w - R) } }, [ this.html('mjx-box', { style: { height: this.em(h), width: this.em(w), 'background-color': 'red' } }), this.html('mjx-box', { style: { height: this.em(d), width: this.em(w), 'margin-left': this.em(-w), 'vertical-align': this.em(-d), 'background-color': 'green' } }) ]); var node = this.chtml || this.parent.chtml; var size = this.adaptor.getAttribute(node, 'size'); if (size) { this.adaptor.setAttribute(box, 'size', size); } var fontsize = this.adaptor.getStyle(node, 'fontSize'); if (fontsize) { this.adaptor.setStyle(box, 'fontSize', fontsize); } this.adaptor.append(this.adaptor.parent(node), box); this.adaptor.setStyle(node, 'backgroundColor', '#FFEE00'); }; CHTMLWrapper.prototype.html = function (type, def, content) { if (def === void 0) { def = {}; } if (content === void 0) { content = []; } return this.jax.html(type, def, content); }; CHTMLWrapper.prototype.text = function (text) { return this.jax.text(text); }; CHTMLWrapper.prototype.char = function (n) { return this.font.charSelector(n).substr(1); }; CHTMLWrapper.kind = 'unknown'; CHTMLWrapper.autoStyle = true; CHTMLWrapper.used = false; return CHTMLWrapper; }(Wrapper_js_1.CommonWrapper)); exports.CHTMLWrapper = CHTMLWrapper; //# sourceMappingURL=Wrapper.js.map /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.BBoxStyleAdjust = MathJax._.util.BBox.BBoxStyleAdjust; exports.BBox = MathJax._.util.BBox.BBox; /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.BIGDIMEN = MathJax._.util.lengths.BIGDIMEN; exports.UNITS = MathJax._.util.lengths.UNITS; exports.RELUNITS = MathJax._.util.lengths.RELUNITS; exports.MATHSPACE = MathJax._.util.lengths.MATHSPACE; exports.length2em = MathJax._.util.lengths.length2em; exports.percent = MathJax._.util.lengths.percent; exports.em = MathJax._.util.lengths.em; exports.emRounded = MathJax._.util.lengths.emRounded; exports.px = MathJax._.util.lengths.px; /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.sortLength = MathJax._.util.string.sortLength; exports.quotePattern = MathJax._.util.string.quotePattern; exports.unicodeChars = MathJax._.util.string.unicodeChars; exports.isPercent = MathJax._.util.string.isPercent; exports.split = MathJax._.util.string.split; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.FontData = exports.NOSTRETCH = exports.H = exports.V = void 0; exports.V = 1; exports.H = 2; exports.NOSTRETCH = { dir: 0 }; var FontData = (function () { function FontData() { var e_1, _a; this.variant = {}; this.delimiters = {}; this.cssFontMap = {}; this.remapChars = {}; var CLASS = this.constructor; this.params = __assign({}, CLASS.defaultParams); this.sizeVariants = __spread(CLASS.defaultSizeVariants); this.cssFontMap = __assign({}, CLASS.defaultCssFonts); this.cssFamilyPrefix = CLASS.defaultCssFamilyPrefix; this.createVariants(CLASS.defaultVariants); this.defineDelimiters(CLASS.defaultDelimiters); try { for (var _b = __values(Object.keys(CLASS.defaultChars)), _c = _b.next(); !_c.done; _c = _b.next()) { var name_1 = _c.value; this.defineChars(name_1, CLASS.defaultChars[name_1]); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this.defineRemap('accent', CLASS.defaultAccentMap); this.defineRemap('mo', CLASS.defaultMoMap); this.defineRemap('mn', CLASS.defaultMnMap); } FontData.charOptions = function (font, n) { var char = font[n]; if (char.length === 3) { char[3] = {}; } return char[3]; }; FontData.prototype.createVariant = function (name, inherit, link) { if (inherit === void 0) { inherit = null; } if (link === void 0) { link = null; } var variant = { linked: [], chars: (inherit ? Object.create(this.variant[inherit].chars) : {}) }; if (link && this.variant[link]) { Object.assign(variant.chars, this.variant[link].chars); this.variant[link].linked.push(variant.chars); variant.chars = Object.create(variant.chars); } this.remapSmpChars(variant.chars, name); this.variant[name] = variant; }; FontData.prototype.remapSmpChars = function (chars, name) { var e_2, _a, e_3, _b; var CLASS = this.constructor; if (CLASS.VariantSmp[name]) { var SmpRemap = CLASS.SmpRemap; var SmpGreek = [null, null, CLASS.SmpRemapGreekU, CLASS.SmpRemapGreekL]; try { for (var _c = __values(CLASS.SmpRanges), _d = _c.next(); !_d.done; _d = _c.next()) { var _e = __read(_d.value, 3), i = _e[0], lo = _e[1], hi = _e[2]; var base = CLASS.VariantSmp[name][i]; if (!base) continue; for (var n = lo; n <= hi; n++) { if (n === 0x3A2) continue; var smp = base + n - lo; chars[n] = this.smpChar(SmpRemap[smp] || smp); } if (SmpGreek[i]) { try { for (var _f = (e_3 = void 0, __values(Object.keys(SmpGreek[i]).map(function (x) { return parseInt(x); }))), _g = _f.next(); !_g.done; _g = _f.next()) { var n = _g.value; chars[n] = this.smpChar(base + SmpGreek[i][n]); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_3) throw e_3.error; } } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_2) throw e_2.error; } } } if (name === 'bold') { chars[0x3DC] = this.smpChar(0x1D7CA); chars[0x3DD] = this.smpChar(0x1D7CB); } }; FontData.prototype.smpChar = function (n) { return [, , , { smp: n }]; }; FontData.prototype.createVariants = function (variants) { var e_4, _a; try { for (var variants_1 = __values(variants), variants_1_1 = variants_1.next(); !variants_1_1.done; variants_1_1 = variants_1.next()) { var variant = variants_1_1.value; this.createVariant(variant[0], variant[1], variant[2]); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (variants_1_1 && !variants_1_1.done && (_a = variants_1.return)) _a.call(variants_1); } finally { if (e_4) throw e_4.error; } } }; FontData.prototype.defineChars = function (name, chars) { var e_5, _a; var variant = this.variant[name]; Object.assign(variant.chars, chars); try { for (var _b = __values(variant.linked), _c = _b.next(); !_c.done; _c = _b.next()) { var link = _c.value; Object.assign(link, chars); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_5) throw e_5.error; } } }; FontData.prototype.defineDelimiters = function (delims) { Object.assign(this.delimiters, delims); }; FontData.prototype.defineRemap = function (name, remap) { if (!this.remapChars.hasOwnProperty(name)) { this.remapChars[name] = {}; } Object.assign(this.remapChars[name], remap); }; FontData.prototype.getDelimiter = function (n) { return this.delimiters[n]; }; FontData.prototype.getSizeVariant = function (n, i) { if (this.delimiters[n].variants) { i = this.delimiters[n].variants[i]; } return this.sizeVariants[i]; }; FontData.prototype.getChar = function (name, n) { return this.variant[name].chars[n]; }; FontData.prototype.getVariant = function (name) { return this.variant[name]; }; FontData.prototype.getCssFont = function (variant) { return this.cssFontMap[variant] || ['serif', false, false]; }; FontData.prototype.getFamily = function (family) { return (this.cssFamilyPrefix ? this.cssFamilyPrefix + ', ' + family : family); }; FontData.prototype.getRemappedChar = function (name, c) { var map = this.remapChars[name] || {}; return map[c]; }; FontData.OPTIONS = {}; FontData.defaultVariants = [ ['normal'], ['bold', 'normal'], ['italic', 'normal'], ['bold-italic', 'italic', 'bold'], ['double-struck', 'bold'], ['fraktur', 'normal'], ['bold-fraktur', 'bold', 'fraktur'], ['script', 'italic'], ['bold-script', 'bold-italic', 'script'], ['sans-serif', 'normal'], ['bold-sans-serif', 'bold', 'sans-serif'], ['sans-serif-italic', 'italic', 'sans-serif'], ['sans-serif-bold-italic', 'bold-italic', 'bold-sans-serif'], ['monospace', 'normal'] ]; FontData.defaultCssFonts = { normal: ['serif', false, false], bold: ['serif', false, true], italic: ['serif', true, false], 'bold-italic': ['serif', true, true], 'double-struck': ['serif', false, true], fraktur: ['serif', false, false], 'bold-fraktur': ['serif', false, true], script: ['cursive', false, false], 'bold-script': ['cursive', false, true], 'sans-serif': ['sans-serif', false, false], 'bold-sans-serif': ['sans-serif', false, true], 'sans-serif-italic': ['sans-serif', true, false], 'sans-serif-bold-italic': ['sans-serif', true, true], monospace: ['monospace', false, false] }; FontData.defaultCssFamilyPrefix = ''; FontData.VariantSmp = { bold: [0x1D400, 0x1D41A, 0x1D6A8, 0x1D6C2, 0x1D7CE], italic: [0x1D434, 0x1D44E, 0x1D6E2, 0x1D6FC], 'bold-italic': [0x1D468, 0x1D482, 0x1D71C, 0x1D736], script: [0x1D49C, 0x1D4B6], 'bold-script': [0x1D4D0, 0x1D4EA], fraktur: [0x1D504, 0x1D51E], 'double-struck': [0x1D538, 0x1D552, , , 0x1D7D8], 'bold-fraktur': [0x1D56C, 0x1D586], 'sans-serif': [0x1D5A0, 0x1D5BA, , , 0x1D7E2], 'bold-sans-serif': [0x1D5D4, 0x1D5EE, 0x1D756, 0x1D770, 0x1D7EC], 'sans-serif-italic': [0x1D608, 0x1D622], 'sans-serif-bold-italic': [0x1D63C, 0x1D656, 0x1D790, 0x1D7AA], 'monospace': [0x1D670, 0x1D68A, , , 0x1D7F6] }; FontData.SmpRanges = [ [0, 0x41, 0x5A], [1, 0x61, 0x7A], [2, 0x391, 0x3A9], [3, 0x3B1, 0x3C9], [4, 0x30, 0x39] ]; FontData.SmpRemap = { 0x1D455: 0x210E, 0x1D49D: 0x212C, 0x1D4A0: 0x2130, 0x1D4A1: 0x2131, 0x1D4A3: 0x210B, 0x1D4A4: 0x2110, 0x1D4A7: 0x2112, 0x1D4A8: 0x2133, 0x1D4AD: 0x211B, 0x1D4BA: 0x212F, 0x1D4BC: 0x210A, 0x1D4C4: 0x2134, 0x1D506: 0x212D, 0x1D50B: 0x210C, 0x1D50C: 0x2111, 0x1D515: 0x211C, 0x1D51D: 0x2128, 0x1D53A: 0x2102, 0x1D53F: 0x210D, 0x1D545: 0x2115, 0x1D547: 0x2119, 0x1D548: 0x211A, 0x1D549: 0x211D, 0x1D551: 0x2124, }; FontData.SmpRemapGreekU = { 0x2207: 0x19, 0x03F4: 0x11 }; FontData.SmpRemapGreekL = { 0x3D1: 0x1B, 0x3D5: 0x1D, 0x3D6: 0x1F, 0x3F0: 0x1C, 0x3F1: 0x1E, 0x3F5: 0x1A, 0x2202: 0x19 }; FontData.defaultAccentMap = { 0x0300: '\u02CB', 0x0301: '\u02CA', 0x0302: '\u02C6', 0x0303: '\u02DC', 0x0304: '\u02C9', 0x0306: '\u02D8', 0x0307: '\u02D9', 0x0308: '\u00A8', 0x030A: '\u02DA', 0x030C: '\u02C7', 0x2192: '\u20D7', 0x2032: '\'', 0x2033: '\'\'', 0x2034: '\'\'\'', 0x2035: '`', 0x2036: '``', 0x2037: '```', 0x2057: '\'\'\'\'', 0x20D0: '\u21BC', 0x20D1: '\u21C0', 0x20D6: '\u2190', 0x20E1: '\u2194', 0x20F0: '*', 0x20DB: '...', 0x20DC: '....', 0x20EC: '\u21C1', 0x20ED: '\u21BD', 0x20EE: '\u2190', 0x20EF: '\u2192' }; FontData.defaultMoMap = { 0x002D: '\u2212' }; FontData.defaultMnMap = { 0x002D: '\u2212' }; FontData.defaultParams = { x_height: .442, quad: 1, num1: .676, num2: .394, num3: .444, denom1: .686, denom2: .345, sup1: .413, sup2: .363, sup3: .289, sub1: .15, sub2: .247, sup_drop: .386, sub_drop: .05, delim1: 2.39, delim2: 1.0, axis_height: .25, rule_thickness: .06, big_op_spacing1: .111, big_op_spacing2: .167, big_op_spacing3: .2, big_op_spacing4: .6, big_op_spacing5: .1, surd_height: .075, scriptspace: .05, nulldelimiterspace: .12, delimiterfactor: 901, delimitershortfall: .3, min_rule_thickness: 1.25 }; FontData.defaultDelimiters = {}; FontData.defaultChars = {}; FontData.defaultSizeVariants = []; return FontData; }()); exports.FontData = FontData; //# sourceMappingURL=FontData.js.map /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.TEXCLASS = MathJax._.core.MmlTree.MmlNode.TEXCLASS; exports.TEXCLASSNAMES = MathJax._.core.MmlTree.MmlNode.TEXCLASSNAMES; exports.indentAttributes = MathJax._.core.MmlTree.MmlNode.indentAttributes; exports.AbstractMmlNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlNode; exports.AbstractMmlTokenNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlTokenNode; exports.AbstractMmlLayoutNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlLayoutNode; exports.AbstractMmlBaseNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlBaseNode; exports.AbstractMmlEmptyNode = MathJax._.core.MmlTree.MmlNode.AbstractMmlEmptyNode; exports.TextNode = MathJax._.core.MmlTree.MmlNode.TextNode; exports.XMLNode = MathJax._.core.MmlTree.MmlNode.XMLNode; /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonArrow = exports.CommonDiagonalArrow = exports.CommonDiagonalStrike = exports.CommonBorder2 = exports.CommonBorder = exports.arrowBBox = exports.diagonalArrowDef = exports.arrowDef = exports.arrowBBoxW = exports.arrowBBoxHD = exports.arrowHead = exports.fullBorder = exports.fullPadding = exports.fullBBox = exports.sideNames = exports.sideIndex = exports.SOLID = exports.PADDING = exports.THICKNESS = exports.ARROWY = exports.ARROWDX = exports.ARROWX = void 0; exports.ARROWX = 4, exports.ARROWDX = 1, exports.ARROWY = 2; exports.THICKNESS = .067; exports.PADDING = .2; exports.SOLID = exports.THICKNESS + 'em solid'; exports.sideIndex = { top: 0, right: 1, bottom: 2, left: 3 }; exports.sideNames = Object.keys(exports.sideIndex); exports.fullBBox = (function (node) { return new Array(4).fill(node.thickness + node.padding); }); exports.fullPadding = (function (node) { return new Array(4).fill(node.padding); }); exports.fullBorder = (function (node) { return new Array(4).fill(node.thickness); }); exports.arrowHead = function (node) { return Math.max(node.padding, node.thickness * (node.arrowhead.x + node.arrowhead.dx + 1)); }; exports.arrowBBoxHD = function (node, TRBL) { if (node.childNodes[0]) { var _a = node.childNodes[0].getBBox(), h = _a.h, d = _a.d; TRBL[0] = TRBL[2] = Math.max(0, node.thickness * node.arrowhead.y - (h + d) / 2); } return TRBL; }; exports.arrowBBoxW = function (node, TRBL) { if (node.childNodes[0]) { var w = node.childNodes[0].getBBox().w; TRBL[1] = TRBL[3] = Math.max(0, node.thickness * node.arrowhead.y - w / 2); } return TRBL; }; exports.arrowDef = { up: [-Math.PI / 2, false, true, 'verticalstrike'], down: [Math.PI / 2, false, true, 'verticakstrike'], right: [0, false, false, 'horizontalstrike'], left: [Math.PI, false, false, 'horizontalstrike'], updown: [Math.PI / 2, true, true, 'verticalstrike uparrow downarrow'], leftright: [0, true, false, 'horizontalstrike leftarrow rightarrow'] }; exports.diagonalArrowDef = { updiagonal: [-1, 0, false, 'updiagonalstrike northeastarrow'], northeast: [-1, 0, false, 'updiagonalstrike updiagonalarrow'], southeast: [1, 0, false, 'downdiagonalstrike'], northwest: [1, Math.PI, false, 'downdiagonalstrike'], southwest: [-1, Math.PI, false, 'updiagonalstrike'], northeastsouthwest: [-1, 0, true, 'updiagonalstrike northeastarrow updiagonalarrow southwestarrow'], northwestsoutheast: [1, 0, true, 'downdiagonalstrike northwestarrow southeastarrow'] }; exports.arrowBBox = { up: function (node) { return exports.arrowBBoxW(node, [exports.arrowHead(node), 0, node.padding, 0]); }, down: function (node) { return exports.arrowBBoxW(node, [node.padding, 0, exports.arrowHead(node), 0]); }, right: function (node) { return exports.arrowBBoxHD(node, [0, exports.arrowHead(node), 0, node.padding]); }, left: function (node) { return exports.arrowBBoxHD(node, [0, node.padding, 0, exports.arrowHead(node)]); }, updown: function (node) { return exports.arrowBBoxW(node, [exports.arrowHead(node), 0, exports.arrowHead(node), 0]); }, leftright: function (node) { return exports.arrowBBoxHD(node, [0, exports.arrowHead(node), 0, exports.arrowHead(node)]); } }; exports.CommonBorder = function (render) { return function (side) { var i = exports.sideIndex[side]; return [side, { renderer: render, bbox: function (node) { var bbox = [0, 0, 0, 0]; bbox[i] = node.thickness + node.padding; return bbox; }, border: function (node) { var bbox = [0, 0, 0, 0]; bbox[i] = node.thickness; return bbox; } }]; }; }; exports.CommonBorder2 = function (render) { return function (name, side1, side2) { var i1 = exports.sideIndex[side1]; var i2 = exports.sideIndex[side2]; return [name, { renderer: render, bbox: function (node) { var t = node.thickness + node.padding; var bbox = [0, 0, 0, 0]; bbox[i1] = bbox[i2] = t; return bbox; }, border: function (node) { var bbox = [0, 0, 0, 0]; bbox[i1] = bbox[i2] = node.thickness; return bbox; }, remove: side1 + ' ' + side2 }]; }; }; exports.CommonDiagonalStrike = function (render) { return function (name) { var cname = 'mjx-' + name.charAt(0) + 'strike'; return [name + 'diagonalstrike', { renderer: render(cname), bbox: exports.fullBBox }]; }; }; exports.CommonDiagonalArrow = function (render) { return function (name) { var _a = __read(exports.diagonalArrowDef[name], 4), c = _a[0], pi = _a[1], double = _a[2], remove = _a[3]; return [name + 'arrow', { renderer: function (node, _child) { var _a = node.arrowData(), a = _a.a, W = _a.W; var arrow = node.arrow(W, c * (a - pi), double); render(node, arrow); }, bbox: function (node) { var _a = node.arrowData(), a = _a.a, x = _a.x, y = _a.y; var _b = __read([node.arrowhead.x, node.arrowhead.y, node.arrowhead.dx], 3), ax = _b[0], ay = _b[1], adx = _b[2]; var _c = __read(node.getArgMod(ax + adx, ay), 2), b = _c[0], ar = _c[1]; var dy = y + (b > a ? node.thickness * ar * Math.sin(b - a) : 0); var dx = x + (b > Math.PI / 2 - a ? node.thickness * ar * Math.sin(b + a - Math.PI / 2) : 0); return [dy, dx, dy, dx]; }, remove: remove }]; }; }; exports.CommonArrow = function (render) { return function (name) { var _a = __read(exports.arrowDef[name], 4), angle = _a[0], double = _a[1], isVertical = _a[2], remove = _a[3]; return [name + 'arrow', { renderer: function (node, _child) { var _a = node.getBBox(), w = _a.w, h = _a.h, d = _a.d; var W = (isVertical ? h + d : w); var arrow = node.arrow(W, angle, double); render(node, arrow); }, bbox: exports.arrowBBox[name], remove: remove }]; }; }; //# sourceMappingURL=Notation.js.map /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmsubsup = exports.CHTMLmsup = exports.CHTMLmsub = void 0; var scriptbase_js_1 = __webpack_require__(49); var msubsup_js_1 = __webpack_require__(8); var msubsup_js_2 = __webpack_require__(8); var msubsup_js_3 = __webpack_require__(8); var msubsup_js_4 = __webpack_require__(89); var CHTMLmsub = (function (_super) { __extends(CHTMLmsub, _super); function CHTMLmsub() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmsub.kind = msubsup_js_4.MmlMsub.prototype.kind; CHTMLmsub.useIC = false; return CHTMLmsub; }(msubsup_js_1.CommonMsubMixin(scriptbase_js_1.CHTMLscriptbase))); exports.CHTMLmsub = CHTMLmsub; var CHTMLmsup = (function (_super) { __extends(CHTMLmsup, _super); function CHTMLmsup() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmsup.kind = msubsup_js_4.MmlMsup.prototype.kind; CHTMLmsup.useIC = true; return CHTMLmsup; }(msubsup_js_2.CommonMsupMixin(scriptbase_js_1.CHTMLscriptbase))); exports.CHTMLmsup = CHTMLmsup; var CHTMLmsubsup = (function (_super) { __extends(CHTMLmsubsup, _super); function CHTMLmsubsup() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmsubsup.prototype.markUsed = function () { _super.prototype.markUsed.call(this); CHTMLmsubsup.used = true; }; CHTMLmsubsup.prototype.toCHTML = function (parent) { var chtml = this.standardCHTMLnode(parent); var _a = __read([this.baseChild, this.supChild, this.subChild], 3), base = _a[0], sup = _a[1], sub = _a[2]; var _b = __read(this.getUVQ(base.getBBox(), sub.getBBox(), sup.getBBox()), 3), v = _b[1], q = _b[2]; var x = this.baseCore.bbox.ic ? this.coreIC() * this.coreScale() : 0; var style = { 'vertical-align': this.em(v) }; base.toCHTML(chtml); var stack = this.adaptor.append(chtml, this.html('mjx-script', { style: style })); sup.toCHTML(stack); this.adaptor.append(stack, this.html('mjx-spacer', { style: { 'margin-top': this.em(q) } })); sub.toCHTML(stack); var corebox = this.baseCore.bbox; if (corebox.ic) { this.adaptor.setStyle(sup.chtml, 'marginLeft', this.em(x / sup.bbox.rscale)); } }; CHTMLmsubsup.kind = msubsup_js_4.MmlMsubsup.prototype.kind; CHTMLmsubsup.styles = { 'mjx-script': { display: 'inline-block', 'padding-right': '.05em' }, 'mjx-script > *': { display: 'block' } }; CHTMLmsubsup.useIC = false; return CHTMLmsubsup; }(msubsup_js_3.CommonMsubsupMixin(scriptbase_js_1.CHTMLscriptbase))); exports.CHTMLmsubsup = CHTMLmsubsup; //# sourceMappingURL=msubsup.js.map /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMsubsupMixin = exports.CommonMsupMixin = exports.CommonMsubMixin = void 0; function CommonMsubMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_1.prototype, "script", { get: function () { return this.childNodes[this.node.sub]; }, enumerable: false, configurable: true }); class_1.prototype.getOffset = function (bbox, sbox) { return [0, -this.getV(bbox, sbox)]; }; return class_1; }(Base)); } exports.CommonMsubMixin = CommonMsubMixin; function CommonMsupMixin(Base) { return (function (_super) { __extends(class_2, _super); function class_2() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_2.prototype, "script", { get: function () { return this.childNodes[this.node.sup]; }, enumerable: false, configurable: true }); class_2.prototype.getOffset = function (bbox, sbox) { var x = (this.baseCore.bbox.ic ? .05 * this.baseCore.bbox.ic + .05 : 0); return [x * this.coreScale(), this.getU(bbox, sbox)]; }; return class_2; }(Base)); } exports.CommonMsupMixin = CommonMsupMixin; function CommonMsubsupMixin(Base) { return (function (_super) { __extends(class_3, _super); function class_3() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.UVQ = null; return _this; } Object.defineProperty(class_3.prototype, "subChild", { get: function () { return this.childNodes[this.node.sub]; }, enumerable: false, configurable: true }); Object.defineProperty(class_3.prototype, "supChild", { get: function () { return this.childNodes[this.node.sup]; }, enumerable: false, configurable: true }); class_3.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var basebox = this.baseChild.getBBox(); var subbox = this.subChild.getBBox(); var supbox = this.supChild.getBBox(); bbox.empty(); bbox.append(basebox); var w = bbox.w; var _a = __read(this.getUVQ(basebox, subbox, supbox), 2), u = _a[0], v = _a[1]; var x = (this.baseCore.bbox.ic ? this.coreIC() * this.coreScale() : 0); bbox.combine(subbox, w, v); bbox.combine(supbox, w + x, u); bbox.w += this.font.params.scriptspace; bbox.clean(); this.setChildPWidths(recompute); }; class_3.prototype.getUVQ = function (basebox, subbox, supbox) { if (this.UVQ) return this.UVQ; var tex = this.font.params; var t = 3 * tex.rule_thickness; var subscriptshift = this.length2em(this.node.attributes.get('subscriptshift'), tex.sub2); var drop = (this.isCharBase() ? 0 : basebox.d * basebox.rscale + tex.sub_drop * subbox.rscale); var _a = __read([this.getU(basebox, supbox), Math.max(drop, subscriptshift)], 2), u = _a[0], v = _a[1]; var q = (u - supbox.d * supbox.rscale) - (subbox.h * subbox.rscale - v); if (q < t) { v += t - q; var p = (4 / 5) * tex.x_height - (u - supbox.d * supbox.rscale); if (p > 0) { u += p; v -= p; } } u = Math.max(this.length2em(this.node.attributes.get('superscriptshift'), u), u); v = Math.max(this.length2em(this.node.attributes.get('subscriptshift'), v), v); q = (u - supbox.d * supbox.rscale) - (subbox.h * subbox.rscale - v); this.UVQ = [u, -v, q]; return this.UVQ; }; return class_3; }(Base)); } exports.CommonMsubsupMixin = CommonMsubsupMixin; //# sourceMappingURL=msubsup.js.map /***/ }), /* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMunderoverMixin = exports.CommonMoverMixin = exports.CommonMunderMixin = void 0; function CommonMunderMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.stretchChildren(); return _this; } Object.defineProperty(class_1.prototype, "script", { get: function () { return this.childNodes[this.node.under]; }, enumerable: false, configurable: true }); class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } if (this.hasMovableLimits()) { _super.prototype.computeBBox.call(this, bbox, recompute); return; } bbox.empty(); var basebox = this.baseChild.getBBox(); var underbox = this.script.getBBox(); var v = this.getUnderKV(basebox, underbox)[1]; var delta = this.getDelta(true); var _a = __read(this.getDeltaW([basebox, underbox], [0, -delta]), 2), bw = _a[0], uw = _a[1]; bbox.combine(basebox, bw, 0); bbox.combine(underbox, uw, v); bbox.d += this.font.params.big_op_spacing5; bbox.ic = -this.baseCore.bbox.ic; bbox.clean(); this.setChildPWidths(recompute); }; return class_1; }(Base)); } exports.CommonMunderMixin = CommonMunderMixin; function CommonMoverMixin(Base) { return (function (_super) { __extends(class_2, _super); function class_2() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.stretchChildren(); return _this; } Object.defineProperty(class_2.prototype, "script", { get: function () { return this.childNodes[this.node.over]; }, enumerable: false, configurable: true }); class_2.prototype.computeBBox = function (bbox) { if (this.hasMovableLimits()) { _super.prototype.computeBBox.call(this, bbox); return; } bbox.empty(); var basebox = this.baseChild.getBBox(); var overbox = this.script.getBBox(); var u = this.getOverKU(basebox, overbox)[1]; var delta = this.getDelta(); var _a = __read(this.getDeltaW([basebox, overbox], [0, delta]), 2), bw = _a[0], ow = _a[1]; bbox.combine(basebox, bw, 0); bbox.combine(overbox, ow, u); bbox.h += this.font.params.big_op_spacing5; bbox.ic = -this.baseCore.bbox.ic; bbox.clean(); }; return class_2; }(Base)); } exports.CommonMoverMixin = CommonMoverMixin; function CommonMunderoverMixin(Base) { return (function (_super) { __extends(class_3, _super); function class_3() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.stretchChildren(); return _this; } Object.defineProperty(class_3.prototype, "underChild", { get: function () { return this.childNodes[this.node.under]; }, enumerable: false, configurable: true }); Object.defineProperty(class_3.prototype, "overChild", { get: function () { return this.childNodes[this.node.over]; }, enumerable: false, configurable: true }); Object.defineProperty(class_3.prototype, "subChild", { get: function () { return this.underChild; }, enumerable: false, configurable: true }); Object.defineProperty(class_3.prototype, "supChild", { get: function () { return this.overChild; }, enumerable: false, configurable: true }); class_3.prototype.computeBBox = function (bbox) { if (this.hasMovableLimits()) { _super.prototype.computeBBox.call(this, bbox); return; } bbox.empty(); var overbox = this.overChild.getBBox(); var basebox = this.baseChild.getBBox(); var underbox = this.underChild.getBBox(); var u = this.getOverKU(basebox, overbox)[1]; var v = this.getUnderKV(basebox, underbox)[1]; var delta = this.getDelta(); var _a = __read(this.getDeltaW([basebox, underbox, overbox], [0, -delta, delta]), 3), bw = _a[0], uw = _a[1], ow = _a[2]; bbox.combine(basebox, bw, 0); bbox.combine(overbox, ow, u); bbox.combine(underbox, uw, v); var z = this.font.params.big_op_spacing5; bbox.h += z; bbox.d += z; bbox.ic = -this.baseCore.bbox.ic; bbox.clean(); }; return class_3; }(Base)); } exports.CommonMunderoverMixin = CommonMunderoverMixin; //# sourceMappingURL=munderover.js.map /***/ }), /* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonInferredMrowMixin = exports.CommonMrowMixin = void 0; var BBox_js_1 = __webpack_require__(1); function CommonMrowMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var e_1, _a; var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.stretchChildren(); try { for (var _b = __values(_this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child.bbox.pwidth) { _this.bbox.pwidth = BBox_js_1.BBox.fullWidth; break; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return _this; } Object.defineProperty(class_1.prototype, "fixesPWidth", { get: function () { return false; }, enumerable: false, configurable: true }); class_1.prototype.stretchChildren = function () { var e_2, _a, e_3, _b, e_4, _c; var stretchy = []; try { for (var _d = __values(this.childNodes), _e = _d.next(); !_e.done; _e = _d.next()) { var child = _e.value; if (child.canStretch(1)) { stretchy.push(child); } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_2) throw e_2.error; } } var count = stretchy.length; var nodeCount = this.childNodes.length; if (count && nodeCount > 1) { var H = 0, D = 0; var all = (count > 1 && count === nodeCount); try { for (var _f = __values(this.childNodes), _g = _f.next(); !_g.done; _g = _f.next()) { var child = _g.value; var noStretch = (child.stretch.dir === 0); if (all || noStretch) { var _h = child.getBBox(noStretch), h = _h.h, d = _h.d; if (h > H) H = h; if (d > D) D = d; } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_3) throw e_3.error; } } try { for (var stretchy_1 = __values(stretchy), stretchy_1_1 = stretchy_1.next(); !stretchy_1_1.done; stretchy_1_1 = stretchy_1.next()) { var child = stretchy_1_1.value; child.coreMO().getStretchedVariant([H, D]); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (stretchy_1_1 && !stretchy_1_1.done && (_c = stretchy_1.return)) _c.call(stretchy_1); } finally { if (e_4) throw e_4.error; } } } }; return class_1; }(Base)); } exports.CommonMrowMixin = CommonMrowMixin; function CommonInferredMrowMixin(Base) { return (function (_super) { __extends(class_2, _super); function class_2() { return _super !== null && _super.apply(this, arguments) || this; } class_2.prototype.getScale = function () { this.bbox.scale = this.parent.bbox.scale; this.bbox.rscale = 1; }; return class_2; }(Base)); } exports.CommonInferredMrowMixin = CommonInferredMrowMixin; //# sourceMappingURL=mrow.js.map /***/ }), /* 11 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmsqrt = void 0; var Wrapper_js_1 = __webpack_require__(0); var msqrt_js_1 = __webpack_require__(46); var msqrt_js_2 = __webpack_require__(87); var CHTMLmsqrt = (function (_super) { __extends(CHTMLmsqrt, _super); function CHTMLmsqrt() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmsqrt.prototype.toCHTML = function (parent) { var surd = this.childNodes[this.surd]; var base = this.childNodes[this.base]; var sbox = surd.getBBox(); var bbox = base.getBBox(); var _a = __read(this.getPQ(sbox), 2), q = _a[1]; var t = this.font.params.rule_thickness; var H = bbox.h + q + t; var CHTML = this.standardCHTMLnode(parent); var SURD, BASE, ROOT, root; if (this.root != null) { ROOT = this.adaptor.append(CHTML, this.html('mjx-root')); root = this.childNodes[this.root]; } var SQRT = this.adaptor.append(CHTML, this.html('mjx-sqrt', {}, [ SURD = this.html('mjx-surd'), BASE = this.html('mjx-box', { style: { paddingTop: this.em(q) } }) ])); this.addRoot(ROOT, root, sbox, H); surd.toCHTML(SURD); base.toCHTML(BASE); if (surd.size < 0) { this.adaptor.addClass(SQRT, 'mjx-tall'); } }; CHTMLmsqrt.prototype.addRoot = function (_ROOT, _root, _sbox, _H) { }; CHTMLmsqrt.kind = msqrt_js_2.MmlMsqrt.prototype.kind; CHTMLmsqrt.styles = { 'mjx-root': { display: 'inline-block', 'white-space': 'nowrap' }, 'mjx-surd': { display: 'inline-block', 'vertical-align': 'top' }, 'mjx-sqrt': { display: 'inline-block', 'padding-top': '.07em' }, 'mjx-sqrt > mjx-box': { 'border-top': '.07em solid' }, 'mjx-sqrt.mjx-tall > mjx-box': { 'padding-left': '.3em', 'margin-left': '-.3em' } }; return CHTMLmsqrt; }(msqrt_js_1.CommonMsqrtMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmsqrt = CHTMLmsqrt; //# sourceMappingURL=msqrt.js.map /***/ }), /* 12 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMlabeledtrMixin = exports.CommonMtrMixin = void 0; function CommonMtrMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_1.prototype, "fixesPWidth", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "numCells", { get: function () { return this.childNodes.length; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "labeled", { get: function () { return false; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "tableCells", { get: function () { return this.childNodes; }, enumerable: false, configurable: true }); class_1.prototype.getChild = function (i) { return this.childNodes[i]; }; class_1.prototype.getChildBBoxes = function () { return this.childNodes.map(function (cell) { return cell.getBBox(); }); }; class_1.prototype.stretchChildren = function (HD) { var e_1, _a, e_2, _b, e_3, _c; if (HD === void 0) { HD = null; } var stretchy = []; var children = (this.labeled ? this.childNodes.slice(1) : this.childNodes); try { for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) { var mtd = children_1_1.value; var child = mtd.childNodes[0]; if (child.canStretch(1)) { stretchy.push(child); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1); } finally { if (e_1) throw e_1.error; } } var count = stretchy.length; var nodeCount = this.childNodes.length; if (count && nodeCount > 1) { if (HD === null) { var H = 0, D = 0; var all = (count > 1 && count === nodeCount); try { for (var children_2 = __values(children), children_2_1 = children_2.next(); !children_2_1.done; children_2_1 = children_2.next()) { var mtd = children_2_1.value; var child = mtd.childNodes[0]; var noStretch = (child.stretch.dir === 0); if (all || noStretch) { var _d = child.getBBox(noStretch), h = _d.h, d = _d.d; if (h > H) { H = h; } if (d > D) { D = d; } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (children_2_1 && !children_2_1.done && (_b = children_2.return)) _b.call(children_2); } finally { if (e_2) throw e_2.error; } } HD = [H, D]; } try { for (var stretchy_1 = __values(stretchy), stretchy_1_1 = stretchy_1.next(); !stretchy_1_1.done; stretchy_1_1 = stretchy_1.next()) { var child = stretchy_1_1.value; child.coreMO().getStretchedVariant(HD); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (stretchy_1_1 && !stretchy_1_1.done && (_c = stretchy_1.return)) _c.call(stretchy_1); } finally { if (e_3) throw e_3.error; } } } }; return class_1; }(Base)); } exports.CommonMtrMixin = CommonMtrMixin; function CommonMlabeledtrMixin(Base) { return (function (_super) { __extends(class_2, _super); function class_2() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_2.prototype, "numCells", { get: function () { return Math.max(0, this.childNodes.length - 1); }, enumerable: false, configurable: true }); Object.defineProperty(class_2.prototype, "labeled", { get: function () { return true; }, enumerable: false, configurable: true }); Object.defineProperty(class_2.prototype, "tableCells", { get: function () { return this.childNodes.slice(1); }, enumerable: false, configurable: true }); class_2.prototype.getChild = function (i) { return this.childNodes[i + 1]; }; class_2.prototype.getChildBBoxes = function () { return this.childNodes.slice(1).map(function (cell) { return cell.getBBox(); }); }; return class_2; }(Base)); } exports.CommonMlabeledtrMixin = CommonMlabeledtrMixin; //# sourceMappingURL=mtr.js.map /***/ }), /* 13 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMactionMixin = exports.TooltipData = void 0; var string_js_1 = __webpack_require__(3); exports.TooltipData = { dx: '.2em', dy: '.1em', postDelay: 600, clearDelay: 100, hoverTimer: new Map(), clearTimer: new Map(), stopTimers: function (node, data) { if (data.clearTimer.has(node)) { clearTimeout(data.clearTimer.get(node)); data.clearTimer.delete(node); } if (data.hoverTimer.has(node)) { clearTimeout(data.hoverTimer.get(node)); data.hoverTimer.delete(node); } } }; function CommonMactionMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; var actions = _this.constructor.actions; var action = _this.node.attributes.get('actiontype'); var _a = __read(actions.get(action) || [(function (_node, _data) { }), {}], 2), handler = _a[0], data = _a[1]; _this.action = handler; _this.data = data; _this.getParameters(); return _this; } Object.defineProperty(class_1.prototype, "selected", { get: function () { var selection = this.node.attributes.get('selection'); var i = Math.max(1, Math.min(this.childNodes.length, selection)) - 1; return this.childNodes[i] || this.wrap(this.node.selected); }, enumerable: false, configurable: true }); class_1.prototype.getParameters = function () { var offsets = this.node.attributes.get('data-offsets'); var _a = __read(string_js_1.split(offsets || ''), 2), dx = _a[0], dy = _a[1]; this.dx = this.length2em(dx || exports.TooltipData.dx); this.dy = this.length2em(dy || exports.TooltipData.dy); }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } bbox.updateFrom(this.selected.getBBox()); this.selected.setChildPWidths(recompute); }; return class_1; }(Base)); } exports.CommonMactionMixin = CommonMactionMixin; //# sourceMappingURL=maction.js.map /***/ }), /* 14 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 15 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTML = void 0; var OutputJax_js_1 = __webpack_require__(17); var WrapperFactory_js_1 = __webpack_require__(18); var tex_js_1 = __webpack_require__(100); var LENGTHS = __webpack_require__(2); var string_js_1 = __webpack_require__(3); var CHTML = (function (_super) { __extends(CHTML, _super); function CHTML(options) { if (options === void 0) { options = null; } var _this = _super.call(this, options, WrapperFactory_js_1.CHTMLWrapperFactory, tex_js_1.TeXFont) || this; _this.chtmlStyles = null; _this.font.adaptiveCSS(_this.options.adaptiveCSS); return _this; } CHTML.prototype.escaped = function (math, html) { this.setDocument(html); return this.html('span', {}, [this.text(math.math)]); }; CHTML.prototype.styleSheet = function (html) { if (this.chtmlStyles && !this.options.adaptiveCSS) { return null; } var sheet = this.chtmlStyles = _super.prototype.styleSheet.call(this, html); this.adaptor.setAttribute(sheet, 'id', CHTML.STYLESHEETID); return sheet; }; CHTML.prototype.addClassStyles = function (CLASS) { var _a; if (!this.options.adaptiveCSS || CLASS.used) { if (CLASS.autoStyle && CLASS.kind !== 'unknown') { this.cssStyles.addStyles((_a = {}, _a['mjx-' + CLASS.kind] = { display: 'inline-block', 'text-align': 'left' }, _a)); } _super.prototype.addClassStyles.call(this, CLASS); } }; CHTML.prototype.processMath = function (math, parent) { this.factory.wrap(math).toCHTML(parent); }; CHTML.prototype.clearCache = function () { var e_1, _a; this.cssStyles.clear(); this.font.clearCache(); try { for (var _b = __values(this.factory.getKinds()), _c = _b.next(); !_c.done; _c = _b.next()) { var kind = _c.value; this.factory.getNodeClass(kind).used = false; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; CHTML.prototype.unknownText = function (text, variant) { var styles = {}; var scale = 100 / this.math.metrics.scale; if (scale !== 100) { styles['font-size'] = this.fixed(scale, 1) + '%'; styles.padding = LENGTHS.em(75 / scale) + ' 0 ' + LENGTHS.em(20 / scale) + ' 0'; } if (variant !== '-explicitFont') { var c = string_js_1.unicodeChars(text); if (c.length !== 1 || c[0] < 0x1D400 || c[0] > 0x1D7FF) { this.cssFontStyles(this.font.getCssFont(variant), styles); } } return this.html('mjx-utext', { variant: variant, style: styles }, [this.text(text)]); }; CHTML.prototype.measureTextNode = function (text) { var adaptor = this.adaptor; text = adaptor.clone(text); var style = { position: 'absolute', 'white-space': 'nowrap' }; var node = this.html('mjx-measure-text', { style: style }, [text]); adaptor.append(adaptor.parent(this.math.start.node), this.container); adaptor.append(this.container, node); var w = adaptor.nodeSize(text, this.math.metrics.em)[0] / this.math.metrics.scale; adaptor.remove(this.container); adaptor.remove(node); return { w: w, h: .75, d: .2 }; }; CHTML.NAME = 'CHTML'; CHTML.OPTIONS = __assign(__assign({}, OutputJax_js_1.CommonOutputJax.OPTIONS), { adaptiveCSS: true }); CHTML.commonStyles = { 'mjx-container[jax="CHTML"]': { 'line-height': 0 }, 'mjx-container [space="1"]': { 'margin-left': '.111em' }, 'mjx-container [space="2"]': { 'margin-left': '.167em' }, 'mjx-container [space="3"]': { 'margin-left': '.222em' }, 'mjx-container [space="4"]': { 'margin-left': '.278em' }, 'mjx-container [space="5"]': { 'margin-left': '.333em' }, 'mjx-container [rspace="1"]': { 'margin-right': '.111em' }, 'mjx-container [rspace="2"]': { 'margin-right': '.167em' }, 'mjx-container [rspace="3"]': { 'margin-right': '.222em' }, 'mjx-container [rspace="4"]': { 'margin-right': '.278em' }, 'mjx-container [rspace="5"]': { 'margin-right': '.333em' }, 'mjx-container [size="s"]': { 'font-size': '70.7%' }, 'mjx-container [size="ss"]': { 'font-size': '50%' }, 'mjx-container [size="Tn"]': { 'font-size': '60%' }, 'mjx-container [size="sm"]': { 'font-size': '85%' }, 'mjx-container [size="lg"]': { 'font-size': '120%' }, 'mjx-container [size="Lg"]': { 'font-size': '144%' }, 'mjx-container [size="LG"]': { 'font-size': '173%' }, 'mjx-container [size="hg"]': { 'font-size': '207%' }, 'mjx-container [size="HG"]': { 'font-size': '249%' }, 'mjx-container [width="full"]': { width: '100%' }, 'mjx-box': { display: 'inline-block' }, 'mjx-block': { display: 'block' }, 'mjx-itable': { display: 'inline-table' }, 'mjx-row': { display: 'table-row' }, 'mjx-row > *': { display: 'table-cell' }, 'mjx-mtext': { display: 'inline-block' }, 'mjx-mstyle': { display: 'inline-block' }, 'mjx-merror': { display: 'inline-block', color: 'red', 'background-color': 'yellow' }, 'mjx-mphantom': { visibility: 'hidden' } }; CHTML.STYLESHEETID = 'MJX-CHTML-styles'; return CHTML; }(OutputJax_js_1.CommonOutputJax)); exports.CHTML = CHTML; //# sourceMappingURL=chtml.js.map /***/ }), /* 16 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AddCSS = exports.CHTMLFontData = void 0; var FontData_js_1 = __webpack_require__(4); var lengths_js_1 = __webpack_require__(2); var Options_js_1 = __webpack_require__(68); __exportStar(__webpack_require__(4), exports); var CHTMLFontData = (function (_super) { __extends(CHTMLFontData, _super); function CHTMLFontData(options) { if (options === void 0) { options = null; } var _this = _super.call(this) || this; var CLASS = _this.constructor; _this.options = Options_js_1.userOptions(Options_js_1.defaultOptions({}, CLASS.OPTIONS), options); return _this; } CHTMLFontData.charOptions = function (font, n) { return _super.charOptions.call(this, font, n); }; CHTMLFontData.prototype.adaptiveCSS = function (adapt) { this.options.adaptiveCSS = adapt; }; CHTMLFontData.prototype.clearCache = function () { var e_1, _a, e_2, _b, e_3, _c; if (!this.options.adaptiveCSS) return; try { for (var _d = __values(Object.keys(this.delimiters)), _e = _d.next(); !_e.done; _e = _d.next()) { var n = _e.value; this.delimiters[parseInt(n)].used = false; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_1) throw e_1.error; } } try { for (var _f = __values(Object.keys(this.variant)), _g = _f.next(); !_g.done; _g = _f.next()) { var name_1 = _g.value; var chars = this.variant[name_1].chars; try { for (var _h = (e_3 = void 0, __values(Object.keys(chars))), _j = _h.next(); !_j.done; _j = _h.next()) { var n = _j.value; var options = chars[parseInt(n)][3]; if (options) { options.used = false; } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_j && !_j.done && (_c = _h.return)) _c.call(_h); } finally { if (e_3) throw e_3.error; } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_2) throw e_2.error; } } }; CHTMLFontData.prototype.createVariant = function (name, inherit, link) { if (inherit === void 0) { inherit = null; } if (link === void 0) { link = null; } _super.prototype.createVariant.call(this, name, inherit, link); var CLASS = this.constructor; this.variant[name].classes = CLASS.defaultVariantClasses[name]; this.variant[name].letter = CLASS.defaultVariantLetters[name]; }; CHTMLFontData.prototype.defineChars = function (name, chars) { var e_4, _a; _super.prototype.defineChars.call(this, name, chars); var letter = this.variant[name].letter; try { for (var _b = __values(Object.keys(chars)), _c = _b.next(); !_c.done; _c = _b.next()) { var n = _c.value; var options = CHTMLFontData.charOptions(chars, parseInt(n)); if (options.f === undefined) { options.f = letter; } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } }; Object.defineProperty(CHTMLFontData.prototype, "styles", { get: function () { var e_5, _a; var CLASS = this.constructor; var styles = __assign({}, CLASS.defaultStyles); this.addFontURLs(styles, CLASS.defaultFonts, this.options.fontURL); try { for (var _b = __values(Object.keys(this.delimiters)), _c = _b.next(); !_c.done; _c = _b.next()) { var n = _c.value; var N = parseInt(n); this.addDelimiterStyles(styles, N, this.delimiters[N]); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_5) throw e_5.error; } } this.addVariantChars(styles); return styles; }, enumerable: false, configurable: true }); CHTMLFontData.prototype.addVariantChars = function (styles) { var e_6, _a, e_7, _b; var allCSS = !this.options.adaptiveCSS; try { for (var _c = __values(Object.keys(this.variant)), _d = _c.next(); !_d.done; _d = _c.next()) { var name_2 = _d.value; var variant = this.variant[name_2]; var vletter = variant.letter; try { for (var _e = (e_7 = void 0, __values(Object.keys(variant.chars))), _f = _e.next(); !_f.done; _f = _e.next()) { var n = _f.value; var N = parseInt(n); var char = variant.chars[N]; if ((char[3] || {}).smp) continue; if (allCSS && char.length < 4) { char[3] = {}; } if (char.length === 4 || allCSS) { this.addCharStyles(styles, vletter, N, char); } } } catch (e_7_1) { e_7 = { error: e_7_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_7) throw e_7.error; } } } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_6) throw e_6.error; } } }; CHTMLFontData.prototype.addFontURLs = function (styles, fonts, url) { var e_8, _a; try { for (var _b = __values(Object.keys(fonts)), _c = _b.next(); !_c.done; _c = _b.next()) { var name_3 = _c.value; var font = __assign({}, fonts[name_3]); font.src = font.src.replace(/%%URL%%/, url); styles[name_3] = font; } } catch (e_8_1) { e_8 = { error: e_8_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_8) throw e_8.error; } } }; CHTMLFontData.prototype.addDelimiterStyles = function (styles, n, data) { if (this.options.adaptiveCSS && !data.used) return; var c = this.charSelector(n); if (data.c && data.c !== n) { styles['.mjx-stretched mjx-c' + c + '::before'] = { content: this.charContent(data.c) }; } if (!data.stretch) return; if (data.dir === 1) { this.addDelimiterVStyles(styles, c, data); } else { this.addDelimiterHStyles(styles, c, data); } }; CHTMLFontData.prototype.addDelimiterVStyles = function (styles, c, data) { var W = data.HDW[2]; var _a = __read(data.stretch, 4), beg = _a[0], ext = _a[1], end = _a[2], mid = _a[3]; var Hb = this.addDelimiterVPart(styles, c, W, 'beg', beg); this.addDelimiterVPart(styles, c, W, 'ext', ext); var He = this.addDelimiterVPart(styles, c, W, 'end', end); var css = {}; if (mid) { var Hm = this.addDelimiterVPart(styles, c, W, 'mid', mid); css.height = '50%'; styles['mjx-stretchy-v' + c + ' > mjx-mid'] = { 'margin-top': this.em(-Hm / 2), 'margin-bottom': this.em(-Hm / 2) }; } if (Hb) { css['border-top-width'] = this.em0(Hb - .03); } if (He) { css['border-bottom-width'] = this.em0(He - .03); styles['mjx-stretchy-v' + c + ' > mjx-end'] = { 'margin-top': this.em(-He) }; } if (Object.keys(css).length) { styles['mjx-stretchy-v' + c + ' > mjx-ext'] = css; } }; CHTMLFontData.prototype.addDelimiterVPart = function (styles, c, W, part, n) { if (!n) return 0; var data = this.getDelimiterData(n); var dw = (W - data[2]) / 2; var css = { content: this.charContent(n) }; if (part !== 'ext') { css.padding = this.padding(data, dw); } else if (dw) { css['padding-left'] = this.em0(dw); } styles['mjx-stretchy-v' + c + ' mjx-' + part + ' mjx-c::before'] = css; return data[0] + data[1]; }; CHTMLFontData.prototype.addDelimiterHStyles = function (styles, c, data) { var _a = __read(data.stretch, 4), beg = _a[0], ext = _a[1], end = _a[2], mid = _a[3]; this.addDelimiterHPart(styles, c, 'beg', beg); this.addDelimiterHPart(styles, c, 'ext', ext, !(beg || end)); this.addDelimiterHPart(styles, c, 'end', end); if (mid) { this.addDelimiterHPart(styles, c, 'mid', mid); styles['mjx-stretchy-h' + c + ' > mjx-ext'] = { width: '50%' }; } }; CHTMLFontData.prototype.addDelimiterHPart = function (styles, c, part, n, force) { if (force === void 0) { force = false; } if (!n) return; var data = this.getDelimiterData(n); var options = data[3]; var css = { content: (options && options.c ? '"' + options.c + '"' : this.charContent(n)) }; if (part !== 'ext' || force) { css.padding = this.padding(data, 0, -data[2]); } styles['mjx-stretchy-h' + c + ' mjx-' + part + ' mjx-c::before'] = css; }; CHTMLFontData.prototype.addCharStyles = function (styles, vletter, n, data) { var _a = __read(data, 4), w = _a[2], options = _a[3]; if (this.options.adaptiveCSS && !options.used) return; var letter = (options.f !== undefined ? options.f : vletter); var selector = 'mjx-c' + this.charSelector(n) + (letter ? '.TEX-' + letter : ''); styles[selector + '::before'] = { padding: this.padding(data, 0, options.ic || 0), content: (options.c != null ? '"' + options.c + '"' : this.charContent(n)) }; if (options.ic) { styles['[noIC] ' + selector + ':last-child::before'] = { 'padding-right': this.em(w) }; } }; CHTMLFontData.prototype.getDelimiterData = function (n) { return this.getChar('-smallop', n); }; CHTMLFontData.prototype.em = function (n) { return lengths_js_1.em(n); }; CHTMLFontData.prototype.em0 = function (n) { return lengths_js_1.em(Math.max(0, n)); }; CHTMLFontData.prototype.padding = function (_a, dw, ic) { var _b = __read(_a, 3), h = _b[0], d = _b[1], w = _b[2]; if (dw === void 0) { dw = 0; } if (ic === void 0) { ic = 0; } return [h, w + ic, d, dw].map(this.em0).join(' '); }; CHTMLFontData.prototype.charContent = function (n) { return '"' + (n >= 0x20 && n <= 0x7E && n !== 0x22 && n !== 0x27 && n !== 0x5C ? String.fromCharCode(n) : '\\' + n.toString(16).toUpperCase()) + '"'; }; CHTMLFontData.prototype.charSelector = function (n) { return '.mjx-c' + n.toString(16).toUpperCase(); }; CHTMLFontData.OPTIONS = { fontURL: 'js/output/chtml/fonts/tex-woff-v2' }; CHTMLFontData.defaultVariantClasses = {}; CHTMLFontData.defaultVariantLetters = {}; CHTMLFontData.defaultStyles = { 'mjx-c::before': { display: 'block', width: 0 } }; CHTMLFontData.defaultFonts = { '@font-face /* 0 */': { 'font-family': 'MJXZERO', src: 'url("%%URL%%/MathJax_Zero.woff") format("woff")' } }; return CHTMLFontData; }(FontData_js_1.FontData)); exports.CHTMLFontData = CHTMLFontData; function AddCSS(font, options) { var e_9, _a; try { for (var _b = __values(Object.keys(options)), _c = _b.next(); !_c.done; _c = _b.next()) { var c = _c.value; var n = parseInt(c); Object.assign(FontData_js_1.FontData.charOptions(font, n), options[n]); } } catch (e_9_1) { e_9 = { error: e_9_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_9) throw e_9.error; } } return font; } exports.AddCSS = AddCSS; //# sourceMappingURL=FontData.js.map /***/ }), /* 17 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonOutputJax = void 0; var OutputJax_js_1 = __webpack_require__(70); var MathItem_js_1 = __webpack_require__(71); var Options_js_1 = __webpack_require__(68); var lengths_js_1 = __webpack_require__(2); var Styles_js_1 = __webpack_require__(69); var StyleList_js_1 = __webpack_require__(72); var CommonOutputJax = (function (_super) { __extends(CommonOutputJax, _super); function CommonOutputJax(options, defaultFactory, defaultFont) { if (options === void 0) { options = null; } if (defaultFactory === void 0) { defaultFactory = null; } if (defaultFont === void 0) { defaultFont = null; } var _this = this; var _a = __read(Options_js_1.separateOptions(options, defaultFont.OPTIONS), 2), jaxOptions = _a[0], fontOptions = _a[1]; _this = _super.call(this, jaxOptions) || this; _this.factory = _this.options.wrapperFactory || new defaultFactory(); _this.factory.jax = _this; _this.cssStyles = _this.options.cssStyles || new StyleList_js_1.CssStyles(); _this.font = _this.options.font || new defaultFont(fontOptions); _this.unknownCache = new Map(); return _this; } CommonOutputJax.prototype.typeset = function (math, html) { this.setDocument(html); var node = this.createNode(); this.toDOM(math, node, html); return node; }; CommonOutputJax.prototype.createNode = function () { var jax = this.constructor.NAME; return this.html('mjx-container', { 'class': 'MathJax', jax: jax }); }; CommonOutputJax.prototype.setScale = function (node) { var scale = this.math.metrics.scale * this.options.scale; if (scale !== 1) { this.adaptor.setStyle(node, 'fontSize', lengths_js_1.percent(scale)); } }; CommonOutputJax.prototype.toDOM = function (math, node, html) { if (html === void 0) { html = null; } this.setDocument(html); this.math = math; this.pxPerEm = math.metrics.ex / this.font.params.x_height; math.root.setTeXclass(null); this.setScale(node); this.nodeMap = new Map(); this.container = node; this.processMath(math.root, node); this.nodeMap = null; this.executeFilters(this.postFilters, math, html, node); }; CommonOutputJax.prototype.getBBox = function (math, html) { this.setDocument(html); this.math = math; math.root.setTeXclass(null); this.nodeMap = new Map(); var bbox = this.factory.wrap(math.root).getBBox(); this.nodeMap = null; return bbox; }; CommonOutputJax.prototype.getMetrics = function (html) { var e_1, _a; this.setDocument(html); var adaptor = this.adaptor; var maps = this.getMetricMaps(html); try { for (var _b = __values(html.math), _c = _b.next(); !_c.done; _c = _b.next()) { var math = _c.value; var parent_1 = adaptor.parent(math.start.node); if (math.state() < MathItem_js_1.STATE.METRICS && parent_1) { var map = maps[math.display ? 1 : 0]; var _d = map.get(parent_1), em = _d.em, ex = _d.ex, containerWidth = _d.containerWidth, lineWidth = _d.lineWidth, scale = _d.scale, family = _d.family; math.setMetrics(em, ex, containerWidth, lineWidth, scale); if (this.options.mtextInheritFont) { math.outputData.mtextFamily = family; } if (this.options.merrorInheritFont) { math.outputData.merrorFamily = family; } math.state(MathItem_js_1.STATE.METRICS); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } }; CommonOutputJax.prototype.getMetricsFor = function (node, display) { var getFamily = (this.options.mtextInheritFont || this.options.merrorInheritFont); var test = this.getTestElement(node, display); var metrics = this.measureMetrics(test, getFamily); this.adaptor.remove(test); return metrics; }; CommonOutputJax.prototype.getMetricMaps = function (html) { var e_2, _a, e_3, _b, e_4, _c, e_5, _d, e_6, _e; var adaptor = this.adaptor; var domMaps = [new Map(), new Map()]; try { for (var _f = __values(html.math), _g = _f.next(); !_g.done; _g = _f.next()) { var math = _g.value; var node = adaptor.parent(math.start.node); if (node && math.state() < MathItem_js_1.STATE.METRICS) { var map = domMaps[math.display ? 1 : 0]; if (!map.has(node)) { map.set(node, this.getTestElement(node, math.display)); } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_g && !_g.done && (_a = _f.return)) _a.call(_f); } finally { if (e_2) throw e_2.error; } } var getFamily = this.options.mtextInheritFont || this.options.merrorInheritFont; var maps = [new Map(), new Map()]; try { for (var _h = __values(maps.keys()), _j = _h.next(); !_j.done; _j = _h.next()) { var i = _j.value; try { for (var _k = (e_4 = void 0, __values(domMaps[i].keys())), _l = _k.next(); !_l.done; _l = _k.next()) { var node = _l.value; maps[i].set(node, this.measureMetrics(domMaps[i].get(node), getFamily)); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_l && !_l.done && (_c = _k.return)) _c.call(_k); } finally { if (e_4) throw e_4.error; } } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_j && !_j.done && (_b = _h.return)) _b.call(_h); } finally { if (e_3) throw e_3.error; } } try { for (var _m = __values(maps.keys()), _o = _m.next(); !_o.done; _o = _m.next()) { var i = _o.value; try { for (var _p = (e_6 = void 0, __values(domMaps[i].values())), _q = _p.next(); !_q.done; _q = _p.next()) { var node = _q.value; adaptor.remove(node); } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_q && !_q.done && (_e = _p.return)) _e.call(_p); } finally { if (e_6) throw e_6.error; } } } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_o && !_o.done && (_d = _m.return)) _d.call(_m); } finally { if (e_5) throw e_5.error; } } return maps; }; CommonOutputJax.prototype.getTestElement = function (node, display) { var adaptor = this.adaptor; if (!this.testInline) { this.testInline = this.html('mjx-test', { style: { display: 'inline-block', width: '100%', 'font-style': 'normal', 'font-weight': 'normal', 'font-size': '100%', 'font-size-adjust': 'none', 'text-indent': 0, 'text-transform': 'none', 'letter-spacing': 'normal', 'word-spacing': 'normal', overflow: 'hidden', height: '1px', 'margin-right': '-1px' } }, [ this.html('mjx-left-box', { style: { display: 'inline-block', width: 0, 'float': 'left' } }), this.html('mjx-ex-box', { style: { position: 'absolute', overflow: 'hidden', width: '1px', height: '60ex' } }), this.html('mjx-right-box', { style: { display: 'inline-block', width: 0, 'float': 'right' } }) ]); this.testDisplay = adaptor.clone(this.testInline); adaptor.setStyle(this.testDisplay, 'display', 'table'); adaptor.setStyle(this.testDisplay, 'margin-right', ''); adaptor.setStyle(adaptor.firstChild(this.testDisplay), 'display', 'none'); var right = adaptor.lastChild(this.testDisplay); adaptor.setStyle(right, 'display', 'table-cell'); adaptor.setStyle(right, 'width', '10000em'); adaptor.setStyle(right, 'float', ''); } return adaptor.append(node, adaptor.clone(display ? this.testDisplay : this.testInline)); }; CommonOutputJax.prototype.measureMetrics = function (node, getFamily) { var adaptor = this.adaptor; var family = (getFamily ? adaptor.fontFamily(node) : ''); var em = adaptor.fontSize(node); var ex = (adaptor.nodeSize(adaptor.childNode(node, 1))[1] / 60) || (em * this.options.exFactor); var containerWidth = (adaptor.getStyle(node, 'display') === 'table' ? adaptor.nodeSize(adaptor.lastChild(node))[0] - 1 : adaptor.nodeBBox(adaptor.lastChild(node)).left - adaptor.nodeBBox(adaptor.firstChild(node)).left - 2); var scale = Math.max(this.options.minScale, this.options.matchFontHeight ? ex / this.font.params.x_height / em : 1); var lineWidth = 1000000; return { em: em, ex: ex, containerWidth: containerWidth, lineWidth: lineWidth, scale: scale, family: family }; }; CommonOutputJax.prototype.styleSheet = function (html) { var e_7, _a, e_8, _b; this.setDocument(html); this.cssStyles.clear(); this.cssStyles.addStyles(this.constructor.commonStyles); if ('getStyles' in html) { try { for (var _c = __values(html.getStyles()), _d = _c.next(); !_d.done; _d = _c.next()) { var styles = _d.value; this.cssStyles.addStyles(styles); } } catch (e_7_1) { e_7 = { error: e_7_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_7) throw e_7.error; } } } try { for (var _e = __values(this.factory.getKinds()), _f = _e.next(); !_f.done; _f = _e.next()) { var kind = _f.value; this.addClassStyles(this.factory.getNodeClass(kind)); } } catch (e_8_1) { e_8 = { error: e_8_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_8) throw e_8.error; } } this.cssStyles.addStyles(this.font.styles); var sheet = this.html('style', { id: 'MJX-styles' }, [this.text('\n' + this.cssStyles.cssText + '\n')]); return sheet; }; CommonOutputJax.prototype.addClassStyles = function (CLASS) { this.cssStyles.addStyles(CLASS.styles); }; CommonOutputJax.prototype.setDocument = function (html) { if (html) { this.document = html; this.adaptor.document = html.document; } }; CommonOutputJax.prototype.html = function (type, def, content, ns) { if (def === void 0) { def = {}; } if (content === void 0) { content = []; } return this.adaptor.node(type, def, content, ns); }; CommonOutputJax.prototype.text = function (text) { return this.adaptor.text(text); }; CommonOutputJax.prototype.fixed = function (m, n) { if (n === void 0) { n = 3; } if (Math.abs(m) < .0006) { return '0'; } return m.toFixed(n).replace(/\.?0+$/, ''); }; CommonOutputJax.prototype.measureText = function (text, variant, font) { if (font === void 0) { font = ['', false, false]; } var node = this.unknownText(text, variant); if (variant === '-explicitFont') { var styles = this.cssFontStyles(font); this.adaptor.setAttributes(node, { style: styles }); } return this.measureTextNodeWithCache(node, text, variant, font); }; CommonOutputJax.prototype.measureTextNodeWithCache = function (text, chars, variant, font) { if (font === void 0) { font = ['', false, false]; } if (variant === '-explicitFont') { variant = [font[0], font[1] ? 'T' : 'F', font[2] ? 'T' : 'F', ''].join('-'); } if (!this.unknownCache.has(variant)) { this.unknownCache.set(variant, new Map()); } var map = this.unknownCache.get(variant); var cached = map.get(chars); if (cached) return cached; var bbox = this.measureTextNode(text); map.set(chars, bbox); return bbox; }; CommonOutputJax.prototype.measureXMLnode = function (xml) { var adaptor = this.adaptor; var content = this.html('mjx-xml-block', { style: { display: 'inline-block' } }, [adaptor.clone(xml)]); var base = this.html('mjx-baseline', { style: { display: 'inline-block', width: 0, height: 0 } }); var style = { position: 'absolute', display: 'inline-block', 'font-family': 'initial', 'line-height': 'normal' }; var node = this.html('mjx-measure-xml', { style: style }, [base, content]); adaptor.append(adaptor.parent(this.math.start.node), this.container); adaptor.append(this.container, node); var em = this.math.metrics.em * this.math.metrics.scale; var _a = adaptor.nodeBBox(content), left = _a.left, right = _a.right, bottom = _a.bottom, top = _a.top; var w = (right - left) / em; var h = (adaptor.nodeBBox(base).top - top) / em; var d = (bottom - top) / em - h; adaptor.remove(this.container); adaptor.remove(node); return { w: w, h: h, d: d }; }; CommonOutputJax.prototype.cssFontStyles = function (font, styles) { if (styles === void 0) { styles = {}; } var _a = __read(font, 3), family = _a[0], italic = _a[1], bold = _a[2]; styles['font-family'] = this.font.getFamily(family); if (italic) styles['font-style'] = 'italic'; if (bold) styles['font-weight'] = 'bold'; return styles; }; CommonOutputJax.prototype.getFontData = function (styles) { if (!styles) { styles = new Styles_js_1.Styles(); } return [this.font.getFamily(styles.get('font-family')), styles.get('font-style') === 'italic', styles.get('font-weight') === 'bold']; }; CommonOutputJax.NAME = 'Common'; CommonOutputJax.OPTIONS = __assign(__assign({}, OutputJax_js_1.AbstractOutputJax.OPTIONS), { scale: 1, minScale: .5, matchFontHeight: true, mtextInheritFont: false, merrorInheritFont: false, mtextFont: '', merrorFont: 'serif', mathmlSpacing: false, skipAttributes: {}, exFactor: .5, displayAlign: 'center', displayIndent: '0', wrapperFactory: null, font: null, cssStyles: null }); CommonOutputJax.commonStyles = {}; return CommonOutputJax; }(OutputJax_js_1.AbstractOutputJax)); exports.CommonOutputJax = CommonOutputJax; //# sourceMappingURL=OutputJax.js.map /***/ }), /* 18 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLWrapperFactory = void 0; var WrapperFactory_js_1 = __webpack_require__(19); var Wrappers_js_1 = __webpack_require__(20); var CHTMLWrapperFactory = (function (_super) { __extends(CHTMLWrapperFactory, _super); function CHTMLWrapperFactory() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLWrapperFactory.defaultNodes = Wrappers_js_1.CHTMLWrappers; return CHTMLWrapperFactory; }(WrapperFactory_js_1.CommonWrapperFactory)); exports.CHTMLWrapperFactory = CHTMLWrapperFactory; //# sourceMappingURL=WrapperFactory.js.map /***/ }), /* 19 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonWrapperFactory = void 0; var WrapperFactory_js_1 = __webpack_require__(73); var CommonWrapperFactory = (function (_super) { __extends(CommonWrapperFactory, _super); function CommonWrapperFactory() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.jax = null; return _this; } Object.defineProperty(CommonWrapperFactory.prototype, "Wrappers", { get: function () { return this.node; }, enumerable: false, configurable: true }); CommonWrapperFactory.defaultNodes = {}; return CommonWrapperFactory; }(WrapperFactory_js_1.AbstractWrapperFactory)); exports.CommonWrapperFactory = CommonWrapperFactory; //# sourceMappingURL=WrapperFactory.js.map /***/ }), /* 20 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLWrappers = void 0; var Wrapper_js_1 = __webpack_require__(0); var math_js_1 = __webpack_require__(22); var mi_js_1 = __webpack_require__(24); var mo_js_1 = __webpack_require__(26); var mn_js_1 = __webpack_require__(28); var ms_js_1 = __webpack_require__(30); var mtext_js_1 = __webpack_require__(32); var mspace_js_1 = __webpack_require__(34); var mpadded_js_1 = __webpack_require__(36); var menclose_js_1 = __webpack_require__(38); var mrow_js_1 = __webpack_require__(41); var mfenced_js_1 = __webpack_require__(42); var mfrac_js_1 = __webpack_require__(44); var msqrt_js_1 = __webpack_require__(11); var mroot_js_1 = __webpack_require__(47); var msubsup_js_1 = __webpack_require__(7); var munderover_js_1 = __webpack_require__(51); var mmultiscripts_js_1 = __webpack_require__(52); var mtable_js_1 = __webpack_require__(54); var mtr_js_1 = __webpack_require__(56); var mtd_js_1 = __webpack_require__(57); var maction_js_1 = __webpack_require__(59); var mglyph_js_1 = __webpack_require__(60); var semantics_js_1 = __webpack_require__(62); var TeXAtom_js_1 = __webpack_require__(64); var TextNode_js_1 = __webpack_require__(66); exports.CHTMLWrappers = (_a = {}, _a[math_js_1.CHTMLmath.kind] = math_js_1.CHTMLmath, _a[mrow_js_1.CHTMLmrow.kind] = mrow_js_1.CHTMLmrow, _a[mrow_js_1.CHTMLinferredMrow.kind] = mrow_js_1.CHTMLinferredMrow, _a[mi_js_1.CHTMLmi.kind] = mi_js_1.CHTMLmi, _a[mo_js_1.CHTMLmo.kind] = mo_js_1.CHTMLmo, _a[mn_js_1.CHTMLmn.kind] = mn_js_1.CHTMLmn, _a[ms_js_1.CHTMLms.kind] = ms_js_1.CHTMLms, _a[mtext_js_1.CHTMLmtext.kind] = mtext_js_1.CHTMLmtext, _a[mspace_js_1.CHTMLmspace.kind] = mspace_js_1.CHTMLmspace, _a[mpadded_js_1.CHTMLmpadded.kind] = mpadded_js_1.CHTMLmpadded, _a[menclose_js_1.CHTMLmenclose.kind] = menclose_js_1.CHTMLmenclose, _a[mfrac_js_1.CHTMLmfrac.kind] = mfrac_js_1.CHTMLmfrac, _a[msqrt_js_1.CHTMLmsqrt.kind] = msqrt_js_1.CHTMLmsqrt, _a[mroot_js_1.CHTMLmroot.kind] = mroot_js_1.CHTMLmroot, _a[msubsup_js_1.CHTMLmsub.kind] = msubsup_js_1.CHTMLmsub, _a[msubsup_js_1.CHTMLmsup.kind] = msubsup_js_1.CHTMLmsup, _a[msubsup_js_1.CHTMLmsubsup.kind] = msubsup_js_1.CHTMLmsubsup, _a[munderover_js_1.CHTMLmunder.kind] = munderover_js_1.CHTMLmunder, _a[munderover_js_1.CHTMLmover.kind] = munderover_js_1.CHTMLmover, _a[munderover_js_1.CHTMLmunderover.kind] = munderover_js_1.CHTMLmunderover, _a[mmultiscripts_js_1.CHTMLmmultiscripts.kind] = mmultiscripts_js_1.CHTMLmmultiscripts, _a[mfenced_js_1.CHTMLmfenced.kind] = mfenced_js_1.CHTMLmfenced, _a[mtable_js_1.CHTMLmtable.kind] = mtable_js_1.CHTMLmtable, _a[mtr_js_1.CHTMLmtr.kind] = mtr_js_1.CHTMLmtr, _a[mtr_js_1.CHTMLmlabeledtr.kind] = mtr_js_1.CHTMLmlabeledtr, _a[mtd_js_1.CHTMLmtd.kind] = mtd_js_1.CHTMLmtd, _a[maction_js_1.CHTMLmaction.kind] = maction_js_1.CHTMLmaction, _a[mglyph_js_1.CHTMLmglyph.kind] = mglyph_js_1.CHTMLmglyph, _a[semantics_js_1.CHTMLsemantics.kind] = semantics_js_1.CHTMLsemantics, _a[semantics_js_1.CHTMLannotation.kind] = semantics_js_1.CHTMLannotation, _a[semantics_js_1.CHTMLannotationXML.kind] = semantics_js_1.CHTMLannotationXML, _a[semantics_js_1.CHTMLxml.kind] = semantics_js_1.CHTMLxml, _a[TeXAtom_js_1.CHTMLTeXAtom.kind] = TeXAtom_js_1.CHTMLTeXAtom, _a[TextNode_js_1.CHTMLTextNode.kind] = TextNode_js_1.CHTMLTextNode, _a[Wrapper_js_1.CHTMLWrapper.kind] = Wrapper_js_1.CHTMLWrapper, _a); //# sourceMappingURL=Wrappers.js.map /***/ }), /* 21 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonWrapper = void 0; var Wrapper_js_1 = __webpack_require__(74); var MmlNode_js_1 = __webpack_require__(5); var string_js_1 = __webpack_require__(3); var LENGTHS = __webpack_require__(2); var Styles_js_1 = __webpack_require__(69); var BBox_js_1 = __webpack_require__(1); var FontData_js_1 = __webpack_require__(4); var SMALLSIZE = 2 / 18; function MathMLSpace(script, size) { return (script ? size < SMALLSIZE ? 0 : SMALLSIZE : size); } var CommonWrapper = (function (_super) { __extends(CommonWrapper, _super); function CommonWrapper(factory, node, parent) { if (parent === void 0) { parent = null; } var _this = _super.call(this, factory, node) || this; _this.parent = null; _this.removedStyles = null; _this.styles = null; _this.variant = ''; _this.bboxComputed = false; _this.stretch = FontData_js_1.NOSTRETCH; _this.font = null; _this.parent = parent; _this.font = factory.jax.font; _this.bbox = BBox_js_1.BBox.zero(); _this.getStyles(); _this.getVariant(); _this.getScale(); _this.getSpace(); _this.childNodes = node.childNodes.map(function (child) { var wrapped = _this.wrap(child); if (wrapped.bbox.pwidth && (node.notParent || node.isKind('math'))) { _this.bbox.pwidth = BBox_js_1.BBox.fullWidth; } return wrapped; }); return _this; } Object.defineProperty(CommonWrapper.prototype, "jax", { get: function () { return this.factory.jax; }, enumerable: false, configurable: true }); Object.defineProperty(CommonWrapper.prototype, "adaptor", { get: function () { return this.factory.jax.adaptor; }, enumerable: false, configurable: true }); Object.defineProperty(CommonWrapper.prototype, "metrics", { get: function () { return this.factory.jax.math.metrics; }, enumerable: false, configurable: true }); Object.defineProperty(CommonWrapper.prototype, "fixesPWidth", { get: function () { return !this.node.notParent && !this.node.isToken; }, enumerable: false, configurable: true }); CommonWrapper.prototype.wrap = function (node, parent) { if (parent === void 0) { parent = null; } var wrapped = this.factory.wrap(node, parent || this); if (parent) { parent.childNodes.push(wrapped); } this.jax.nodeMap.set(node, wrapped); return wrapped; }; CommonWrapper.prototype.getBBox = function (save) { if (save === void 0) { save = true; } if (this.bboxComputed) { return this.bbox; } var bbox = (save ? this.bbox : BBox_js_1.BBox.zero()); this.computeBBox(bbox); this.bboxComputed = save; return bbox; }; CommonWrapper.prototype.computeBBox = function (bbox, recompute) { var e_1, _a; if (recompute === void 0) { recompute = false; } bbox.empty(); try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; bbox.append(child.getBBox()); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } bbox.clean(); if (this.fixesPWidth && this.setChildPWidths(recompute)) { this.computeBBox(bbox, true); } }; CommonWrapper.prototype.setChildPWidths = function (recompute, w, clear) { var e_2, _a; if (w === void 0) { w = null; } if (clear === void 0) { clear = true; } if (recompute) { return false; } if (clear) { this.bbox.pwidth = ''; } var changed = false; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; var cbox = child.getBBox(); if (cbox.pwidth && child.setChildPWidths(recompute, w === null ? cbox.w : w, clear)) { changed = true; } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } return changed; }; CommonWrapper.prototype.invalidateBBox = function () { if (this.bboxComputed) { this.bboxComputed = false; if (this.parent) { this.parent.invalidateBBox(); } } }; CommonWrapper.prototype.copySkewIC = function (bbox) { var first = this.childNodes[0]; if (first && first.bbox.sk) { bbox.sk = first.bbox.sk; } var last = this.childNodes[this.childNodes.length - 1]; if (last && last.bbox.ic) { bbox.ic = last.bbox.ic; bbox.w += bbox.ic; } }; CommonWrapper.prototype.getStyles = function () { var styleString = this.node.attributes.getExplicit('style'); if (!styleString) return; var style = this.styles = new Styles_js_1.Styles(styleString); for (var i = 0, m = CommonWrapper.removeStyles.length; i < m; i++) { var id = CommonWrapper.removeStyles[i]; if (style.get(id)) { if (!this.removedStyles) this.removedStyles = {}; this.removedStyles[id] = style.get(id); style.set(id, ''); } } }; CommonWrapper.prototype.getVariant = function () { if (!this.node.isToken) return; var attributes = this.node.attributes; var variant = attributes.get('mathvariant'); if (!attributes.getExplicit('mathvariant')) { var values = attributes.getList('fontfamily', 'fontweight', 'fontstyle'); if (this.removedStyles) { var style = this.removedStyles; if (style.fontFamily) values.family = style.fontFamily; if (style.fontWeight) values.weight = style.fontWeight; if (style.fontStyle) values.style = style.fontStyle; } if (values.fontfamily) values.family = values.fontfamily; if (values.fontweight) values.weight = values.fontweight; if (values.fontstyle) values.style = values.fontstyle; if (values.weight && values.weight.match(/^\d+$/)) { values.weight = (parseInt(values.weight) > 600 ? 'bold' : 'normal'); } if (values.family) { variant = this.explicitVariant(values.family, values.weight, values.style); } else { if (this.node.getProperty('variantForm')) variant = '-tex-variant'; variant = (CommonWrapper.BOLDVARIANTS[values.weight] || {})[variant] || variant; variant = (CommonWrapper.ITALICVARIANTS[values.style] || {})[variant] || variant; } } this.variant = variant; }; CommonWrapper.prototype.explicitVariant = function (fontFamily, fontWeight, fontStyle) { var style = this.styles; if (!style) style = this.styles = new Styles_js_1.Styles(); style.set('fontFamily', fontFamily); if (fontWeight) style.set('fontWeight', fontWeight); if (fontStyle) style.set('fontStyle', fontStyle); return '-explicitFont'; }; CommonWrapper.prototype.getScale = function () { var scale = 1, parent = this.parent; var pscale = (parent ? parent.bbox.scale : 1); var attributes = this.node.attributes; var scriptlevel = Math.min(attributes.get('scriptlevel'), 2); var fontsize = attributes.get('fontsize'); var mathsize = (this.node.isToken || this.node.isKind('mstyle') ? attributes.get('mathsize') : attributes.getInherited('mathsize')); if (scriptlevel !== 0) { scale = Math.pow(attributes.get('scriptsizemultiplier'), scriptlevel); var scriptminsize = this.length2em(attributes.get('scriptminsize'), .8, 1); if (scale < scriptminsize) scale = scriptminsize; } if (this.removedStyles && this.removedStyles.fontSize && !fontsize) { fontsize = this.removedStyles.fontSize; } if (fontsize && !attributes.getExplicit('mathsize')) { mathsize = fontsize; } if (mathsize !== '1') { scale *= this.length2em(mathsize, 1, 1); } this.bbox.scale = scale; this.bbox.rscale = scale / pscale; }; CommonWrapper.prototype.getSpace = function () { var isTop = this.isTopEmbellished(); var hasSpacing = this.node.hasSpacingAttributes(); if (this.jax.options.mathmlSpacing || hasSpacing) { isTop && this.getMathMLSpacing(); } else { this.getTeXSpacing(isTop, hasSpacing); } }; CommonWrapper.prototype.getMathMLSpacing = function () { var node = this.node.coreMO(); var attributes = node.attributes; var isScript = (attributes.get('scriptlevel') > 0); this.bbox.L = (attributes.isSet('lspace') ? Math.max(0, this.length2em(attributes.get('lspace'))) : MathMLSpace(isScript, node.lspace)); this.bbox.R = (attributes.isSet('rspace') ? Math.max(0, this.length2em(attributes.get('rspace'))) : MathMLSpace(isScript, node.rspace)); }; CommonWrapper.prototype.getTeXSpacing = function (isTop, hasSpacing) { if (!hasSpacing) { var space = this.node.texSpacing(); if (space) { this.bbox.L = this.length2em(space); } } if (isTop || hasSpacing) { var attributes = this.node.coreMO().attributes; if (attributes.isSet('lspace')) { this.bbox.L = Math.max(0, this.length2em(attributes.get('lspace'))); } if (attributes.isSet('rspace')) { this.bbox.R = Math.max(0, this.length2em(attributes.get('rspace'))); } } }; CommonWrapper.prototype.isTopEmbellished = function () { return (this.node.isEmbellished && !(this.node.Parent && this.node.Parent.isEmbellished)); }; CommonWrapper.prototype.core = function () { return this.jax.nodeMap.get(this.node.core()); }; CommonWrapper.prototype.coreMO = function () { return this.jax.nodeMap.get(this.node.coreMO()); }; CommonWrapper.prototype.getText = function () { var e_3, _a; var text = ''; if (this.node.isToken) { try { for (var _b = __values(this.node.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child instanceof MmlNode_js_1.TextNode) { text += child.getText(); } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } } return text; }; CommonWrapper.prototype.canStretch = function (direction) { this.stretch = FontData_js_1.NOSTRETCH; if (this.node.isEmbellished) { var core = this.core(); if (core && core.node !== this.node) { if (core.canStretch(direction)) { this.stretch = core.stretch; } } } return this.stretch.dir !== 0; }; CommonWrapper.prototype.getAlignShift = function () { var _a; var _b = (_a = this.node.attributes).getList.apply(_a, __spread(MmlNode_js_1.indentAttributes)), indentalign = _b.indentalign, indentshift = _b.indentshift, indentalignfirst = _b.indentalignfirst, indentshiftfirst = _b.indentshiftfirst; if (indentalignfirst !== 'indentalign') { indentalign = indentalignfirst; } if (indentalign === 'auto') { indentalign = this.jax.options.displayAlign; } if (indentshiftfirst !== 'indentshift') { indentshift = indentshiftfirst; } if (indentshift === 'auto') { indentshift = this.jax.options.displayIndent; if (indentalign === 'right' && !indentshift.match(/^\s*0[a-z]*\s*$/)) { indentshift = ('-' + indentshift.trim()).replace(/^--/, ''); } } var shift = this.length2em(indentshift, this.metrics.containerWidth); return [indentalign, shift]; }; CommonWrapper.prototype.getAlignX = function (W, bbox, align) { return (align === 'right' ? W - (bbox.w + bbox.R) * bbox.rscale : align === 'left' ? bbox.L * bbox.rscale : (W - bbox.w * bbox.rscale) / 2); }; CommonWrapper.prototype.getAlignY = function (H, D, h, d, align) { return (align === 'top' ? H - h : align === 'bottom' ? d - D : align === 'middle' ? ((H - h) - (D - d)) / 2 : 0); }; CommonWrapper.prototype.getWrapWidth = function (i) { return this.childNodes[i].getBBox().w; }; CommonWrapper.prototype.getChildAlign = function (_i) { return 'left'; }; CommonWrapper.prototype.percent = function (m) { return LENGTHS.percent(m); }; CommonWrapper.prototype.em = function (m) { return LENGTHS.em(m); }; CommonWrapper.prototype.px = function (m, M) { if (M === void 0) { M = -LENGTHS.BIGDIMEN; } return LENGTHS.px(m, M, this.metrics.em); }; CommonWrapper.prototype.length2em = function (length, size, scale) { if (size === void 0) { size = 1; } if (scale === void 0) { scale = null; } if (scale === null) { scale = this.bbox.scale; } return LENGTHS.length2em(length, size, scale, this.jax.pxPerEm); }; CommonWrapper.prototype.unicodeChars = function (text, name) { if (name === void 0) { name = this.variant; } var chars = string_js_1.unicodeChars(text); var variant = this.font.getVariant(name); if (variant && variant.chars) { var map_1 = variant.chars; chars = chars.map(function (n) { return ((map_1[n] || [])[3] || {}).smp || n; }); } return chars; }; CommonWrapper.prototype.remapChars = function (chars) { return chars; }; CommonWrapper.prototype.mmlText = function (text) { return this.node.factory.create('text').setText(text); }; CommonWrapper.prototype.mmlNode = function (kind, properties, children) { if (properties === void 0) { properties = {}; } if (children === void 0) { children = []; } return this.node.factory.create(kind, properties, children); }; CommonWrapper.prototype.createMo = function (text) { var mmlFactory = this.node.factory; var textNode = mmlFactory.create('text').setText(text); var mml = mmlFactory.create('mo', { stretchy: true }, [textNode]); mml.inheritAttributesFrom(this.node); var node = this.wrap(mml); node.parent = this; return node; }; CommonWrapper.prototype.getVariantChar = function (variant, n) { var char = this.font.getChar(variant, n) || [0, 0, 0, { unknown: true }]; if (char.length === 3) { char[3] = {}; } return char; }; CommonWrapper.kind = 'unknown'; CommonWrapper.styles = {}; CommonWrapper.removeStyles = [ 'fontSize', 'fontFamily', 'fontWeight', 'fontStyle', 'fontVariant', 'font' ]; CommonWrapper.skipAttributes = { fontfamily: true, fontsize: true, fontweight: true, fontstyle: true, color: true, background: true, 'class': true, href: true, style: true, xmlns: true }; CommonWrapper.BOLDVARIANTS = { bold: { normal: 'bold', italic: 'bold-italic', fraktur: 'bold-fraktur', script: 'bold-script', 'sans-serif': 'bold-sans-serif', 'sans-serif-italic': 'sans-serif-bold-italic' }, normal: { bold: 'normal', 'bold-italic': 'italic', 'bold-fraktur': 'fraktur', 'bold-script': 'script', 'bold-sans-serif': 'sans-serif', 'sans-serif-bold-italic': 'sans-serif-italic' } }; CommonWrapper.ITALICVARIANTS = { italic: { normal: 'italic', bold: 'bold-italic', 'sans-serif': 'sans-serif-italic', 'bold-sans-serif': 'sans-serif-bold-italic' }, normal: { italic: 'normal', 'bold-italic': 'bold', 'sans-serif-italic': 'sans-serif', 'sans-serif-bold-italic': 'bold-sans-serif' } }; return CommonWrapper; }(Wrapper_js_1.AbstractWrapper)); exports.CommonWrapper = CommonWrapper; //# sourceMappingURL=Wrapper.js.map /***/ }), /* 22 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmath = void 0; var Wrapper_js_1 = __webpack_require__(0); var math_js_1 = __webpack_require__(23); var math_js_2 = __webpack_require__(75); var BBox_js_1 = __webpack_require__(1); var CHTMLmath = (function (_super) { __extends(CHTMLmath, _super); function CHTMLmath() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmath.prototype.toCHTML = function (parent) { _super.prototype.toCHTML.call(this, parent); var chtml = this.chtml; var adaptor = this.adaptor; var display = (this.node.attributes.get('display') === 'block'); if (display) { adaptor.setAttribute(chtml, 'display', 'true'); adaptor.setAttribute(parent, 'display', 'true'); this.handleDisplay(parent); } else { this.handleInline(parent); } adaptor.addClass(chtml, 'MJX-TEX'); }; CHTMLmath.prototype.handleDisplay = function (parent) { var adaptor = this.adaptor; var _a = __read(this.getAlignShift(), 2), align = _a[0], shift = _a[1]; if (align !== 'center') { adaptor.setAttribute(parent, 'justify', align); } if (this.bbox.pwidth === BBox_js_1.BBox.fullWidth) { adaptor.setAttribute(parent, 'width', 'full'); if (this.jax.table) { var _b = this.jax.table.getBBox(), L = _b.L, w = _b.w, R = _b.R; if (align === 'right') { R = Math.max(R || -shift, -shift); } else if (align === 'left') { L = Math.max(L || shift, shift); } else if (align === 'center') { w += 2 * Math.abs(shift); } var W = this.em(Math.max(0, L + w + R)); adaptor.setStyle(parent, 'min-width', W); adaptor.setStyle(this.jax.table.chtml, 'min-width', W); } } else { this.setIndent(this.chtml, align, shift); } }; CHTMLmath.prototype.handleInline = function (parent) { var adaptor = this.adaptor; var margin = adaptor.getStyle(this.chtml, 'margin-right'); if (margin) { adaptor.setStyle(this.chtml, 'margin-right', ''); adaptor.setStyle(parent, 'margin-right', margin); adaptor.setStyle(parent, 'width', '0'); } }; CHTMLmath.prototype.setChildPWidths = function (recompute, w, clear) { if (w === void 0) { w = null; } if (clear === void 0) { clear = true; } return (this.parent ? _super.prototype.setChildPWidths.call(this, recompute, w, clear) : false); }; CHTMLmath.kind = math_js_2.MmlMath.prototype.kind; CHTMLmath.styles = { 'mjx-math': { 'line-height': 0, 'text-align': 'left', 'text-indent': 0, 'font-style': 'normal', 'font-weight': 'normal', 'font-size': '100%', 'font-size-adjust': 'none', 'letter-spacing': 'normal', 'word-wrap': 'normal', 'word-spacing': 'normal', 'white-space': 'nowrap', 'direction': 'ltr', 'padding': '1px 0' }, 'mjx-container[jax="CHTML"][display="true"]': { display: 'block', 'text-align': 'center', margin: '1em 0' }, 'mjx-container[jax="CHTML"][display="true"][width="full"]': { display: 'flex' }, 'mjx-container[jax="CHTML"][display="true"] mjx-math': { padding: 0 }, 'mjx-container[jax="CHTML"][justify="left"]': { 'text-align': 'left' }, 'mjx-container[jax="CHTML"][justify="right"]': { 'text-align': 'right' } }; return CHTMLmath; }(math_js_1.CommonMathMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmath = CHTMLmath; //# sourceMappingURL=math.js.map /***/ }), /* 23 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMathMixin = void 0; function CommonMathMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.getWrapWidth = function (_i) { return (this.parent ? this.getBBox().w : this.metrics.containerWidth / this.jax.pxPerEm); }; return class_1; }(Base)); } exports.CommonMathMixin = CommonMathMixin; //# sourceMappingURL=math.js.map /***/ }), /* 24 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmi = void 0; var Wrapper_js_1 = __webpack_require__(0); var mi_js_1 = __webpack_require__(25); var mi_js_2 = __webpack_require__(76); var CHTMLmi = (function (_super) { __extends(CHTMLmi, _super); function CHTMLmi() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmi.prototype.toCHTML = function (parent) { _super.prototype.toCHTML.call(this, parent); if (this.noIC) { this.adaptor.setAttribute(this.chtml, 'noIC', 'true'); } }; CHTMLmi.kind = mi_js_2.MmlMi.prototype.kind; return CHTMLmi; }(mi_js_1.CommonMiMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmi = CHTMLmi; //# sourceMappingURL=mi.js.map /***/ }), /* 25 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMiMixin = void 0; function CommonMiMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.noIC = false; return _this; } class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } _super.prototype.computeBBox.call(this, bbox); this.copySkewIC(bbox); if (this.noIC) { bbox.w -= bbox.ic; } }; return class_1; }(Base)); } exports.CommonMiMixin = CommonMiMixin; //# sourceMappingURL=mi.js.map /***/ }), /* 26 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmo = void 0; var Wrapper_js_1 = __webpack_require__(0); var mo_js_1 = __webpack_require__(27); var mo_js_2 = __webpack_require__(77); var BBox_js_1 = __webpack_require__(1); var CHTMLmo = (function (_super) { __extends(CHTMLmo, _super); function CHTMLmo() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmo.prototype.toCHTML = function (parent) { var e_1, _a; var attributes = this.node.attributes; var symmetric = attributes.get('symmetric') && this.stretch.dir !== 2; var stretchy = this.stretch.dir !== 0; if (stretchy && this.size === null) { this.getStretchedVariant([]); } var chtml = this.standardCHTMLnode(parent); if (this.noIC) { this.adaptor.setAttribute(chtml, 'noIC', 'true'); } if (stretchy && this.size < 0) { this.stretchHTML(chtml); } else { if (symmetric || attributes.get('largeop')) { var bbox = BBox_js_1.BBox.empty(); _super.prototype.computeBBox.call(this, bbox); var u = this.em((bbox.d - bbox.h) / 2 + this.font.params.axis_height); if (u !== '0') { this.adaptor.setStyle(chtml, 'verticalAlign', u); } } try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; child.toCHTML(chtml); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } }; CHTMLmo.prototype.stretchHTML = function (chtml) { var c = this.getText().codePointAt(0); var delim = this.stretch; delim.used = true; var stretch = delim.stretch; var content = []; if (stretch[0]) { content.push(this.html('mjx-beg', {}, [this.html('mjx-c')])); } content.push(this.html('mjx-ext', {}, [this.html('mjx-c')])); if (stretch.length === 4) { content.push(this.html('mjx-mid', {}, [this.html('mjx-c')]), this.html('mjx-ext', {}, [this.html('mjx-c')])); } if (stretch[2]) { content.push(this.html('mjx-end', {}, [this.html('mjx-c')])); } var styles = {}; var _a = this.bbox, h = _a.h, d = _a.d, w = _a.w; if (delim.dir === 1) { content.push(this.html('mjx-mark')); styles.height = this.em(h + d); styles.verticalAlign = this.em(-d); } else { styles.width = this.em(w); } var dir = mo_js_1.DirectionVH[delim.dir]; var properties = { class: this.char(delim.c || c), style: styles }; var html = this.html('mjx-stretchy-' + dir, properties, content); this.adaptor.append(chtml, html); }; CHTMLmo.kind = mo_js_2.MmlMo.prototype.kind; CHTMLmo.styles = { 'mjx-stretchy-h': { display: 'inline-table', width: '100%' }, 'mjx-stretchy-h > *': { display: 'table-cell', width: 0 }, 'mjx-stretchy-h > * > mjx-c': { display: 'inline-block', transform: 'scalex(1.0000001)' }, 'mjx-stretchy-h > * > mjx-c::before': { display: 'inline-block', padding: '.001em 0', width: 'initial' }, 'mjx-stretchy-h > mjx-ext': { overflow: 'hidden', width: '100%' }, 'mjx-stretchy-h > mjx-ext > mjx-c::before': { transform: 'scalex(500)' }, 'mjx-stretchy-h > mjx-ext > mjx-c': { width: 0 }, 'mjx-stretchy-h > mjx-beg > mjx-c': { 'margin-right': '-.1em' }, 'mjx-stretchy-h > mjx-end > mjx-c': { 'margin-left': '-.1em' }, 'mjx-stretchy-v': { display: 'inline-block' }, 'mjx-stretchy-v > *': { display: 'block' }, 'mjx-stretchy-v > mjx-beg': { height: 0 }, 'mjx-stretchy-v > mjx-end > mjx-c': { display: 'block' }, 'mjx-stretchy-v > * > mjx-c': { transform: 'scaley(1.0000001)', 'transform-origin': 'left center', overflow: 'hidden' }, 'mjx-stretchy-v > mjx-ext': { display: 'block', height: '100%', 'box-sizing': 'border-box', border: '0px solid transparent', overflow: 'hidden' }, 'mjx-stretchy-v > mjx-ext > mjx-c::before': { width: 'initial' }, 'mjx-stretchy-v > mjx-ext > mjx-c': { transform: 'scaleY(500) translateY(.1em)', overflow: 'visible' }, 'mjx-mark': { display: 'inline-block', height: '0px' } }; return CHTMLmo; }(mo_js_1.CommonMoMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmo = CHTMLmo; //# sourceMappingURL=mo.js.map /***/ }), /* 27 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMoMixin = exports.DirectionVH = void 0; var FontData_js_1 = __webpack_require__(4); exports.DirectionVH = (_a = {}, _a[1] = 'v', _a[2] = 'h', _a); function CommonMoMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.noIC = false; _this.size = null; _this.isAccent = _this.node.isAccent; return _this; } class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } var stretchy = (this.stretch.dir !== 0); if (stretchy && this.size === null) { this.getStretchedVariant([0]); } if (stretchy && this.size < 0) return; _super.prototype.computeBBox.call(this, bbox); this.copySkewIC(bbox); if (this.noIC) { bbox.w -= bbox.ic; } if (this.node.attributes.get('symmetric') && this.stretch.dir !== 2) { var d = ((bbox.h + bbox.d) / 2 + this.font.params.axis_height) - bbox.h; bbox.h += d; bbox.d -= d; } }; class_1.prototype.getVariant = function () { if (this.node.attributes.get('largeop')) { this.variant = (this.node.attributes.get('displaystyle') ? '-largeop' : '-smallop'); } else { _super.prototype.getVariant.call(this); } }; class_1.prototype.canStretch = function (direction) { if (this.stretch.dir !== 0) { return this.stretch.dir === direction; } var attributes = this.node.attributes; if (!attributes.get('stretchy')) return false; var c = this.getText(); if (Array.from(c).length !== 1) return false; var delim = this.font.getDelimiter(c.codePointAt(0)); this.stretch = (delim && delim.dir === direction ? delim : FontData_js_1.NOSTRETCH); return this.stretch.dir !== 0; }; class_1.prototype.getStretchedVariant = function (WH, exact) { var e_1, _a; if (exact === void 0) { exact = false; } if (this.stretch.dir !== 0) { var D = this.getWH(WH); var min = this.getSize('minsize', 0); var max = this.getSize('maxsize', Infinity); D = Math.max(min, Math.min(max, D)); var m = (min || exact ? D : Math.max(D * this.font.params.delimiterfactor / 1000, D - this.font.params.delimitershortfall)); var delim = this.stretch; var c = delim.c || this.getText().codePointAt(0); var i = 0; if (delim.sizes) { try { for (var _b = __values(delim.sizes), _c = _b.next(); !_c.done; _c = _b.next()) { var d = _c.value; if (d >= m) { this.variant = this.font.getSizeVariant(c, i); this.size = i; return; } i++; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } } if (delim.stretch) { this.size = -1; this.invalidateBBox(); this.getStretchBBox(WH, D, delim); } else { this.variant = this.font.getSizeVariant(c, i - 1); this.size = i - 1; } } }; class_1.prototype.getSize = function (name, value) { var attributes = this.node.attributes; if (attributes.isSet(name)) { value = this.length2em(attributes.get(name), 1, 1); } return value; }; class_1.prototype.getWH = function (WH) { if (WH.length === 0) return 0; if (WH.length === 1) return WH[0]; var _a = __read(WH, 2), H = _a[0], D = _a[1]; var a = this.font.params.axis_height; return (this.node.attributes.get('symmetric') ? 2 * Math.max(H - a, D + a) : H + D); }; class_1.prototype.getStretchBBox = function (WHD, D, C) { var _a; if (C.hasOwnProperty('min') && C.min > D) { D = C.min; } var _b = __read(C.HDW, 3), h = _b[0], d = _b[1], w = _b[2]; if (this.stretch.dir === 1) { _a = __read(this.getBaseline(WHD, D, C), 2), h = _a[0], d = _a[1]; } else { w = D; } this.bbox.h = h; this.bbox.d = d; this.bbox.w = w; }; class_1.prototype.getBaseline = function (WHD, HD, C) { var hasWHD = (WHD.length === 2 && WHD[0] + WHD[1] === HD); var symmetric = this.node.attributes.get('symmetric'); var _a = __read((hasWHD ? WHD : [HD, 0]), 2), H = _a[0], D = _a[1]; var _b = __read([H + D, 0], 2), h = _b[0], d = _b[1]; if (symmetric) { var a = this.font.params.axis_height; if (hasWHD) { h = 2 * Math.max(H - a, D + a); } d = h / 2 - a; } else if (hasWHD) { d = D; } else { var _c = __read((C.HDW || [.75, .25]), 2), ch = _c[0], cd = _c[1]; d = cd * (h / (ch + cd)); } return [h - d, d]; }; class_1.prototype.remapChars = function (chars) { if (chars.length === 1) { var parent_1 = this.node.coreParent().parent; var isAccent = this.isAccent && !parent_1.isKind('mrow'); var map = (isAccent ? 'accent' : 'mo'); var text = this.font.getRemappedChar(map, chars[0]); if (text) { chars = this.unicodeChars(text, this.variant); } } return chars; }; return class_1; }(Base)); } exports.CommonMoMixin = CommonMoMixin; //# sourceMappingURL=mo.js.map /***/ }), /* 28 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmn = void 0; var Wrapper_js_1 = __webpack_require__(0); var mn_js_1 = __webpack_require__(29); var mn_js_2 = __webpack_require__(78); var CHTMLmn = (function (_super) { __extends(CHTMLmn, _super); function CHTMLmn() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmn.kind = mn_js_2.MmlMn.prototype.kind; return CHTMLmn; }(mn_js_1.CommonMnMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmn = CHTMLmn; //# sourceMappingURL=mn.js.map /***/ }), /* 29 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMnMixin = void 0; function CommonMnMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.remapChars = function (chars) { if (chars.length) { var text = this.font.getRemappedChar('mn', chars[0]); if (text) { var c = this.unicodeChars(text, this.variant); if (c.length === 1) { chars[0] = c[0]; } else { chars = c.concat(chars.slice(1)); } } } return chars; }; return class_1; }(Base)); } exports.CommonMnMixin = CommonMnMixin; //# sourceMappingURL=mn.js.map /***/ }), /* 30 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLms = void 0; var Wrapper_js_1 = __webpack_require__(0); var ms_js_1 = __webpack_require__(31); var ms_js_2 = __webpack_require__(79); var CHTMLms = (function (_super) { __extends(CHTMLms, _super); function CHTMLms() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLms.kind = ms_js_2.MmlMs.prototype.kind; return CHTMLms; }(ms_js_1.CommonMsMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLms = CHTMLms; //# sourceMappingURL=ms.js.map /***/ }), /* 31 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMsMixin = void 0; function CommonMsMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; var attributes = _this.node.attributes; var quotes = attributes.getList('lquote', 'rquote'); if (_this.variant !== 'monospace') { if (!attributes.isSet('lquote') && quotes.lquote === '"') quotes.lquote = '\u201C'; if (!attributes.isSet('rquote') && quotes.rquote === '"') quotes.rquote = '\u201D'; } _this.childNodes.unshift(_this.createText(quotes.lquote)); _this.childNodes.push(_this.createText(quotes.rquote)); return _this; } class_1.prototype.createText = function (text) { var node = this.wrap(this.mmlText(text)); node.parent = this; return node; }; return class_1; }(Base)); } exports.CommonMsMixin = CommonMsMixin; //# sourceMappingURL=ms.js.map /***/ }), /* 32 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmtext = void 0; var Wrapper_js_1 = __webpack_require__(0); var mtext_js_1 = __webpack_require__(33); var mtext_js_2 = __webpack_require__(80); var CHTMLmtext = (function (_super) { __extends(CHTMLmtext, _super); function CHTMLmtext() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmtext.kind = mtext_js_2.MmlMtext.prototype.kind; return CHTMLmtext; }(mtext_js_1.CommonMtextMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmtext = CHTMLmtext; //# sourceMappingURL=mtext.js.map /***/ }), /* 33 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMtextMixin = void 0; function CommonMtextMixin(Base) { var _a; return _a = (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.getVariant = function () { var options = this.jax.options; var data = this.jax.math.outputData; var merror = ((!!data.merrorFamily || !!options.merrorFont) && this.node.Parent.isKind('merror')); if (!!data.mtextFamily || !!options.mtextFont || merror) { var variant = this.node.attributes.get('mathvariant'); var font = this.constructor.INHERITFONTS[variant] || this.jax.font.getCssFont(variant); var family = font[0] || (merror ? data.merrorFamily || options.merrorFont : data.mtextFamily || options.mtextFont); this.variant = this.explicitVariant(family, font[2] ? 'bold' : '', font[1] ? 'italic' : ''); return; } _super.prototype.getVariant.call(this); }; return class_1; }(Base)), _a.INHERITFONTS = { normal: ['', false, false], bold: ['', false, true], italic: ['', true, false], 'bold-italic': ['', true, true] }, _a; } exports.CommonMtextMixin = CommonMtextMixin; //# sourceMappingURL=mtext.js.map /***/ }), /* 34 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmspace = void 0; var Wrapper_js_1 = __webpack_require__(0); var mspace_js_1 = __webpack_require__(35); var mspace_js_2 = __webpack_require__(81); var CHTMLmspace = (function (_super) { __extends(CHTMLmspace, _super); function CHTMLmspace() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmspace.prototype.toCHTML = function (parent) { var chtml = this.standardCHTMLnode(parent); var _a = this.getBBox(), w = _a.w, h = _a.h, d = _a.d; if (w < 0) { this.adaptor.setStyle(chtml, 'marginRight', this.em(w)); w = 0; } if (w) { this.adaptor.setStyle(chtml, 'width', this.em(w)); } h = Math.max(0, h + d); if (h) { this.adaptor.setStyle(chtml, 'height', this.em(Math.max(0, h))); } if (d) { this.adaptor.setStyle(chtml, 'verticalAlign', this.em(-d)); } }; CHTMLmspace.kind = mspace_js_2.MmlMspace.prototype.kind; return CHTMLmspace; }(mspace_js_1.CommonMspaceMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmspace = CHTMLmspace; //# sourceMappingURL=mspace.js.map /***/ }), /* 35 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMspaceMixin = void 0; function CommonMspaceMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } var attributes = this.node.attributes; bbox.w = this.length2em(attributes.get('width'), 0); bbox.h = this.length2em(attributes.get('height'), 0); bbox.d = this.length2em(attributes.get('depth'), 0); }; class_1.prototype.handleVariant = function () { }; return class_1; }(Base)); } exports.CommonMspaceMixin = CommonMspaceMixin; //# sourceMappingURL=mspace.js.map /***/ }), /* 36 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmpadded = void 0; var Wrapper_js_1 = __webpack_require__(0); var mpadded_js_1 = __webpack_require__(37); var mpadded_js_2 = __webpack_require__(82); var CHTMLmpadded = (function (_super) { __extends(CHTMLmpadded, _super); function CHTMLmpadded() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmpadded.prototype.toCHTML = function (parent) { var e_1, _a; var chtml = this.standardCHTMLnode(parent); var content = []; var style = {}; var _b = __read(this.getDimens(), 9), W = _b[2], dh = _b[3], dd = _b[4], dw = _b[5], x = _b[6], y = _b[7], dx = _b[8]; if (dw) { style.width = this.em(W + dw); } if (dh || dd) { style.margin = this.em(dh) + ' 0 ' + this.em(dd); } if (x + dx || y) { style.position = 'relative'; var rbox = this.html('mjx-rbox', { style: { left: this.em(x + dx), top: this.em(-y) } }); if (x + dx && this.childNodes[0].getBBox().pwidth) { this.adaptor.setAttribute(rbox, 'width', 'full'); this.adaptor.setStyle(rbox, 'left', this.em(x)); } content.push(rbox); } chtml = this.adaptor.append(chtml, this.html('mjx-block', { style: style }, content)); try { for (var _c = __values(this.childNodes), _d = _c.next(); !_d.done; _d = _c.next()) { var child = _d.value; child.toCHTML(content[0] || chtml); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_1) throw e_1.error; } } }; CHTMLmpadded.kind = mpadded_js_2.MmlMpadded.prototype.kind; CHTMLmpadded.styles = { 'mjx-mpadded': { display: 'inline-block' }, 'mjx-rbox': { display: 'inline-block', position: 'relative' } }; return CHTMLmpadded; }(mpadded_js_1.CommonMpaddedMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmpadded = CHTMLmpadded; //# sourceMappingURL=mpadded.js.map /***/ }), /* 37 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMpaddedMixin = void 0; function CommonMpaddedMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.getDimens = function () { var values = this.node.attributes.getList('width', 'height', 'depth', 'lspace', 'voffset'); var bbox = this.childNodes[0].getBBox(); var w = bbox.w, h = bbox.h, d = bbox.d; var W = w, H = h, D = d, x = 0, y = 0, dx = 0; if (values.width !== '') w = this.dimen(values.width, bbox, 'w', 0); if (values.height !== '') h = this.dimen(values.height, bbox, 'h', 0); if (values.depth !== '') d = this.dimen(values.depth, bbox, 'd', 0); if (values.voffset !== '') y = this.dimen(values.voffset, bbox); if (values.lspace !== '') x = this.dimen(values.lspace, bbox); var align = this.node.attributes.get('data-align'); if (align) { dx = this.getAlignX(w, bbox, align); } return [H, D, W, h - H, d - D, w - W, x, y, dx]; }; class_1.prototype.dimen = function (length, bbox, d, m) { if (d === void 0) { d = ''; } if (m === void 0) { m = null; } length = String(length); var match = length.match(/width|height|depth/); var size = (match ? bbox[match[0].charAt(0)] : (d ? bbox[d] : 0)); var dimen = (this.length2em(length, size) || 0); if (length.match(/^[-+]/) && d) { dimen += size; } if (m != null) { dimen = Math.max(m, dimen); } return dimen; }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var _a = __read(this.getDimens(), 6), H = _a[0], D = _a[1], W = _a[2], dh = _a[3], dd = _a[4], dw = _a[5]; bbox.w = W + dw; bbox.h = H + dh; bbox.d = D + dd; this.setChildPWidths(recompute, bbox.w); }; class_1.prototype.getWrapWidth = function (_i) { return this.getBBox().w; }; class_1.prototype.getChildAlign = function (_i) { return this.node.attributes.get('data-align') || 'left'; }; return class_1; }(Base)); } exports.CommonMpaddedMixin = CommonMpaddedMixin; //# sourceMappingURL=mpadded.js.map /***/ }), /* 38 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmenclose = void 0; var Wrapper_js_1 = __webpack_require__(0); var menclose_js_1 = __webpack_require__(39); var Notation = __webpack_require__(40); var menclose_js_2 = __webpack_require__(83); var lengths_js_1 = __webpack_require__(2); function Angle(x, y) { return Math.atan2(x, y).toFixed(3).replace(/\.?0+$/, ''); } var ANGLE = Angle(Notation.ARROWDX, Notation.ARROWY); var CHTMLmenclose = (function (_super) { __extends(CHTMLmenclose, _super); function CHTMLmenclose() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmenclose.prototype.toCHTML = function (parent) { var e_1, _a, e_2, _b; var adaptor = this.adaptor; var chtml = this.standardCHTMLnode(parent); var block = adaptor.append(chtml, this.html('mjx-box')); if (this.renderChild) { this.renderChild(this, block); } else { this.childNodes[0].toCHTML(block); } try { for (var _c = __values(Object.keys(this.notations)), _d = _c.next(); !_d.done; _d = _c.next()) { var name_1 = _d.value; var notation = this.notations[name_1]; !notation.renderChild && notation.renderer(this, block); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_1) throw e_1.error; } } var pbox = this.getPadding(); try { for (var _e = __values(Notation.sideNames), _f = _e.next(); !_f.done; _f = _e.next()) { var name_2 = _f.value; var i = Notation.sideIndex[name_2]; pbox[i] > 0 && adaptor.setStyle(block, 'padding-' + name_2, this.em(pbox[i])); } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_2) throw e_2.error; } } }; CHTMLmenclose.prototype.arrow = function (w, a, double) { if (double === void 0) { double = false; } var W = this.getBBox().w; var style = { width: this.em(w) }; if (W !== w) { style.left = this.em((W - w) / 2); } if (a) { style.transform = 'rotate(' + this.fixed(a) + 'rad)'; } var arrow = this.html('mjx-arrow', { style: style }, [ this.html('mjx-aline'), this.html('mjx-rthead'), this.html('mjx-rbhead') ]); if (double) { this.adaptor.append(arrow, this.html('mjx-lthead')); this.adaptor.append(arrow, this.html('mjx-lbhead')); this.adaptor.setAttribute(arrow, 'double', 'true'); } this.adjustArrow(arrow, double); return arrow; }; CHTMLmenclose.prototype.adjustArrow = function (arrow, double) { var _this = this; var t = this.thickness; var head = this.arrowhead; if (head.x === Notation.ARROWX && head.y === Notation.ARROWY && head.dx === Notation.ARROWDX && t === Notation.THICKNESS) return; var _a = __read([t * head.x, t * head.y].map(function (x) { return _this.em(x); }), 2), x = _a[0], y = _a[1]; var a = Angle(head.dx, head.y); var _b = __read(this.adaptor.childNodes(arrow), 5), line = _b[0], rthead = _b[1], rbhead = _b[2], lthead = _b[3], lbhead = _b[4]; this.adjustHead(rthead, [y, '0', '1px', x], a); this.adjustHead(rbhead, ['1px', '0', y, x], '-' + a); this.adjustHead(lthead, [y, x, '1px', '0'], '-' + a); this.adjustHead(lbhead, ['1px', x, y, '0'], a); this.adjustLine(line, t, head.x, double); }; CHTMLmenclose.prototype.adjustHead = function (head, border, a) { if (head) { this.adaptor.setStyle(head, 'border-width', border.join(' ')); this.adaptor.setStyle(head, 'transform', 'skewX(' + a + 'rad)'); } }; CHTMLmenclose.prototype.adjustLine = function (line, t, x, double) { this.adaptor.setStyle(line, 'borderTop', this.em(t) + ' solid'); this.adaptor.setStyle(line, 'top', this.em(-t / 2)); this.adaptor.setStyle(line, 'right', this.em(t * (x - 1))); if (double) { this.adaptor.setStyle(line, 'left', this.em(t * (x - 1))); } }; CHTMLmenclose.prototype.adjustBorder = function (node) { if (this.thickness !== Notation.THICKNESS) { this.adaptor.setStyle(node, 'borderWidth', this.em(this.thickness)); } return node; }; CHTMLmenclose.prototype.adjustThickness = function (shape) { if (this.thickness !== Notation.THICKNESS) { this.adaptor.setStyle(shape, 'strokeWidth', this.fixed(this.thickness)); } return shape; }; CHTMLmenclose.prototype.fixed = function (m, n) { if (n === void 0) { n = 3; } if (Math.abs(m) < .0006) { return '0'; } return m.toFixed(n).replace(/\.?0+$/, ''); }; CHTMLmenclose.prototype.em = function (m) { return _super.prototype.em.call(this, m); }; CHTMLmenclose.kind = menclose_js_2.MmlMenclose.prototype.kind; CHTMLmenclose.styles = { 'mjx-menclose': { position: 'relative' }, 'mjx-menclose > mjx-dstrike': { display: 'inline-block', left: 0, top: 0, position: 'absolute', 'border-top': Notation.SOLID, 'transform-origin': 'top left' }, 'mjx-menclose > mjx-ustrike': { display: 'inline-block', left: 0, bottom: 0, position: 'absolute', 'border-top': Notation.SOLID, 'transform-origin': 'bottom left' }, 'mjx-menclose > mjx-hstrike': { 'border-top': Notation.SOLID, position: 'absolute', left: 0, right: 0, bottom: '50%', transform: 'translateY(' + lengths_js_1.em(Notation.THICKNESS / 2) + ')' }, 'mjx-menclose > mjx-vstrike': { 'border-left': Notation.SOLID, position: 'absolute', top: 0, bottom: 0, right: '50%', transform: 'translateX(' + lengths_js_1.em(Notation.THICKNESS / 2) + ')' }, 'mjx-menclose > mjx-rbox': { position: 'absolute', top: 0, bottom: 0, right: 0, left: 0, 'border': Notation.SOLID, 'border-radius': lengths_js_1.em(Notation.THICKNESS + Notation.PADDING) }, 'mjx-menclose > mjx-cbox': { position: 'absolute', top: 0, bottom: 0, right: 0, left: 0, 'border': Notation.SOLID, 'border-radius': '50%' }, 'mjx-menclose > mjx-arrow': { position: 'absolute', left: 0, bottom: '50%', height: 0, width: 0 }, 'mjx-menclose > mjx-arrow > *': { display: 'block', position: 'absolute', 'transform-origin': 'bottom', 'border-left': lengths_js_1.em(Notation.THICKNESS * Notation.ARROWX) + ' solid', 'border-right': 0, 'box-sizing': 'border-box' }, 'mjx-menclose > mjx-arrow > mjx-aline': { left: 0, top: lengths_js_1.em(-Notation.THICKNESS / 2), right: lengths_js_1.em(Notation.THICKNESS * (Notation.ARROWX - 1)), height: 0, 'border-top': lengths_js_1.em(Notation.THICKNESS) + ' solid', 'border-left': 0 }, 'mjx-menclose > mjx-arrow[double] > mjx-aline': { left: lengths_js_1.em(Notation.THICKNESS * (Notation.ARROWX - 1)), height: 0, }, 'mjx-menclose > mjx-arrow > mjx-rthead': { transform: 'skewX(' + ANGLE + 'rad)', right: 0, bottom: '-1px', 'border-bottom': '1px solid transparent', 'border-top': lengths_js_1.em(Notation.THICKNESS * Notation.ARROWY) + ' solid transparent' }, 'mjx-menclose > mjx-arrow > mjx-rbhead': { transform: 'skewX(-' + ANGLE + 'rad)', 'transform-origin': 'top', right: 0, top: '-1px', 'border-top': '1px solid transparent', 'border-bottom': lengths_js_1.em(Notation.THICKNESS * Notation.ARROWY) + ' solid transparent' }, 'mjx-menclose > mjx-arrow > mjx-lthead': { transform: 'skewX(-' + ANGLE + 'rad)', left: 0, bottom: '-1px', 'border-left': 0, 'border-right': lengths_js_1.em(Notation.THICKNESS * Notation.ARROWX) + ' solid', 'border-bottom': '1px solid transparent', 'border-top': lengths_js_1.em(Notation.THICKNESS * Notation.ARROWY) + ' solid transparent' }, 'mjx-menclose > mjx-arrow > mjx-lbhead': { transform: 'skewX(' + ANGLE + 'rad)', 'transform-origin': 'top', left: 0, top: '-1px', 'border-left': 0, 'border-right': lengths_js_1.em(Notation.THICKNESS * Notation.ARROWX) + ' solid', 'border-top': '1px solid transparent', 'border-bottom': lengths_js_1.em(Notation.THICKNESS * Notation.ARROWY) + ' solid transparent' }, 'mjx-menclose > dbox': { position: 'absolute', top: 0, bottom: 0, left: lengths_js_1.em(-1.5 * Notation.PADDING), width: lengths_js_1.em(3 * Notation.PADDING), border: lengths_js_1.em(Notation.THICKNESS) + ' solid', 'border-radius': '50%', 'clip-path': 'inset(0 0 0 ' + lengths_js_1.em(1.5 * Notation.PADDING) + ')', 'box-sizing': 'border-box' } }; CHTMLmenclose.notations = new Map([ Notation.Border('top'), Notation.Border('right'), Notation.Border('bottom'), Notation.Border('left'), Notation.Border2('actuarial', 'top', 'right'), Notation.Border2('madruwb', 'bottom', 'right'), Notation.DiagonalStrike('up', 1), Notation.DiagonalStrike('down', -1), ['horizontalstrike', { renderer: Notation.RenderElement('hstrike', 'Y'), bbox: function (node) { return [0, node.padding, 0, node.padding]; } }], ['verticalstrike', { renderer: Notation.RenderElement('vstrike', 'X'), bbox: function (node) { return [node.padding, 0, node.padding, 0]; } }], ['box', { renderer: function (node, child) { node.adaptor.setStyle(child, 'border', node.em(node.thickness) + ' solid'); }, bbox: Notation.fullBBox, border: Notation.fullBorder, remove: 'left right top bottom' }], ['roundedbox', { renderer: Notation.RenderElement('rbox'), bbox: Notation.fullBBox }], ['circle', { renderer: Notation.RenderElement('cbox'), bbox: Notation.fullBBox }], ['phasorangle', { renderer: function (node, child) { var _a = node.getBBox(), h = _a.h, d = _a.d; var _b = __read(node.getArgMod(1.75 * node.padding, h + d), 2), a = _b[0], W = _b[1]; var t = node.thickness * Math.sin(a) * .9; node.adaptor.setStyle(child, 'border-bottom', node.em(node.thickness) + ' solid'); var strike = node.adjustBorder(node.html('mjx-ustrike', { style: { width: node.em(W), transform: 'translateX(' + node.em(t) + ') rotate(' + node.fixed(-a) + 'rad)', } })); node.adaptor.append(node.chtml, strike); }, bbox: function (node) { var p = node.padding / 2; var t = node.thickness; return [2 * p, p, p + t, 3 * p + t]; }, border: function (node) { return [0, 0, node.thickness, 0]; }, remove: 'bottom' }], Notation.Arrow('up'), Notation.Arrow('down'), Notation.Arrow('left'), Notation.Arrow('right'), Notation.Arrow('updown'), Notation.Arrow('leftright'), Notation.DiagonalArrow('updiagonal'), Notation.DiagonalArrow('northeast'), Notation.DiagonalArrow('southeast'), Notation.DiagonalArrow('northwest'), Notation.DiagonalArrow('southwest'), Notation.DiagonalArrow('northeastsouthwest'), Notation.DiagonalArrow('northwestsoutheast'), ['longdiv', { renderer: function (node, child) { var adaptor = node.adaptor; adaptor.setStyle(child, 'border-top', node.em(node.thickness) + ' solid'); var arc = adaptor.append(node.chtml, node.html('dbox')); var t = node.thickness; var p = node.padding; if (t !== Notation.THICKNESS) { adaptor.setStyle(arc, 'border-width', node.em(t)); } if (p !== Notation.PADDING) { adaptor.setStyle(arc, 'left', node.em(-1.5 * p)); adaptor.setStyle(arc, 'width', node.em(3 * p)); adaptor.setStyle(arc, 'clip-path', 'inset(0 0 0 ' + node.em(1.5 * p) + ')'); } }, bbox: function (node) { var p = node.padding; var t = node.thickness; return [p + t, p, p, 2 * p + t / 2]; } }], ['radical', { renderer: function (node, child) { node.msqrt.toCHTML(child); var TRBL = node.sqrtTRBL(); node.adaptor.setStyle(node.msqrt.chtml, 'margin', TRBL.map(function (x) { return node.em(-x); }).join(' ')); }, init: function (node) { node.msqrt = node.createMsqrt(node.childNodes[0]); }, bbox: function (node) { return node.sqrtTRBL(); }, renderChild: true }] ]); return CHTMLmenclose; }(menclose_js_1.CommonMencloseMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmenclose = CHTMLmenclose; //# sourceMappingURL=menclose.js.map /***/ }), /* 39 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMencloseMixin = void 0; var Notation = __webpack_require__(6); var string_js_1 = __webpack_require__(3); function CommonMencloseMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.notations = {}; _this.renderChild = null; _this.msqrt = null; _this.padding = Notation.PADDING; _this.thickness = Notation.THICKNESS; _this.arrowhead = { x: Notation.ARROWX, y: Notation.ARROWY, dx: Notation.ARROWDX }; _this.getParameters(); _this.getNotations(); _this.removeRedundantNotations(); _this.initializeNotations(); return _this; } class_1.prototype.getParameters = function () { var attributes = this.node.attributes; var padding = attributes.get('data-padding'); if (padding !== undefined) { this.padding = this.length2em(padding, Notation.PADDING); } var thickness = attributes.get('data-thickness'); if (thickness !== undefined) { this.thickness = this.length2em(thickness, Notation.THICKNESS); } var arrowhead = attributes.get('data-arrowhead'); if (arrowhead !== undefined) { var _b = __read(string_js_1.split(arrowhead), 3), x = _b[0], y = _b[1], dx = _b[2]; this.arrowhead = { x: (x ? parseFloat(x) : Notation.ARROWX), y: (y ? parseFloat(y) : Notation.ARROWY), dx: (dx ? parseFloat(dx) : Notation.ARROWDX) }; } }; class_1.prototype.getNotations = function () { var e_1, _b; var Notations = this.constructor.notations; try { for (var _c = __values(string_js_1.split(this.node.attributes.get('notation'))), _d = _c.next(); !_d.done; _d = _c.next()) { var name_1 = _d.value; var notation = Notations.get(name_1); if (notation) { this.notations[name_1] = notation; if (notation.renderChild) { this.renderChild = notation.renderer; } } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_b = _c.return)) _b.call(_c); } finally { if (e_1) throw e_1.error; } } }; class_1.prototype.removeRedundantNotations = function () { var e_2, _b, e_3, _c; try { for (var _d = __values(Object.keys(this.notations)), _e = _d.next(); !_e.done; _e = _d.next()) { var name_2 = _e.value; if (this.notations[name_2]) { var remove = this.notations[name_2].remove || ''; try { for (var _f = (e_3 = void 0, __values(remove.split(/ /))), _g = _f.next(); !_g.done; _g = _f.next()) { var notation = _g.value; delete this.notations[notation]; } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_g && !_g.done && (_c = _f.return)) _c.call(_f); } finally { if (e_3) throw e_3.error; } } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_e && !_e.done && (_b = _d.return)) _b.call(_d); } finally { if (e_2) throw e_2.error; } } }; class_1.prototype.initializeNotations = function () { var e_4, _b; try { for (var _c = __values(Object.keys(this.notations)), _d = _c.next(); !_d.done; _d = _c.next()) { var name_3 = _d.value; var init = this.notations[name_3].init; init && init(this); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_d && !_d.done && (_b = _c.return)) _b.call(_c); } finally { if (e_4) throw e_4.error; } } }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var _b = __read(this.getBBoxExtenders(), 4), T = _b[0], R = _b[1], B = _b[2], L = _b[3]; var child = this.childNodes[0].getBBox(); bbox.combine(child, L, 0); bbox.h += T; bbox.d += B; bbox.w += R; this.setChildPWidths(recompute); }; class_1.prototype.getBBoxExtenders = function () { var e_5, _b; var TRBL = [0, 0, 0, 0]; try { for (var _c = __values(Object.keys(this.notations)), _d = _c.next(); !_d.done; _d = _c.next()) { var name_4 = _d.value; this.maximizeEntries(TRBL, this.notations[name_4].bbox(this)); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_d && !_d.done && (_b = _c.return)) _b.call(_c); } finally { if (e_5) throw e_5.error; } } return TRBL; }; class_1.prototype.getPadding = function () { var e_6, _b; var TRBL = [0, 0, 0, 0]; var BTRBL = [0, 0, 0, 0]; try { for (var _c = __values(Object.keys(this.notations)), _d = _c.next(); !_d.done; _d = _c.next()) { var name_5 = _d.value; this.maximizeEntries(TRBL, this.notations[name_5].bbox(this)); var border = this.notations[name_5].border; if (border) { this.maximizeEntries(BTRBL, border(this)); } } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_d && !_d.done && (_b = _c.return)) _b.call(_c); } finally { if (e_6) throw e_6.error; } } return [0, 1, 2, 3].map(function (i) { return TRBL[i] - BTRBL[i]; }); }; class_1.prototype.maximizeEntries = function (X, Y) { for (var i = 0; i < X.length; i++) { if (X[i] < Y[i]) { X[i] = Y[i]; } } }; class_1.prototype.getArgMod = function (w, h) { return [Math.atan2(h, w), Math.sqrt(w * w + h * h)]; }; class_1.prototype.arrow = function (_w, _a, _double) { if (_double === void 0) { _double = false; } return null; }; class_1.prototype.arrowData = function () { var _b = __read([this.padding, this.thickness], 2), p = _b[0], t = _b[1]; var r = t * (this.arrowhead.x + Math.max(1, this.arrowhead.dx)); var _c = this.childNodes[0].getBBox(), h = _c.h, d = _c.d, w = _c.w; var H = h + d; var R = Math.sqrt(H * H + w * w); var x = Math.max(p, r * w / R); var y = Math.max(p, r * H / R); var _d = __read(this.getArgMod(w + 2 * x, H + 2 * y), 2), a = _d[0], W = _d[1]; return { a: a, W: W, x: x, y: y }; }; class_1.prototype.createMsqrt = function (child) { var mmlFactory = this.node.factory; var mml = mmlFactory.create('msqrt'); mml.inheritAttributesFrom(this.node); mml.childNodes[0] = child.node; var node = this.wrap(mml); node.parent = this; return node; }; class_1.prototype.sqrtTRBL = function () { var bbox = this.msqrt.getBBox(); var cbox = this.msqrt.childNodes[0].getBBox(); return [bbox.h - cbox.h, 0, bbox.d - cbox.d, bbox.w - cbox.w]; }; return class_1; }(Base)); } exports.CommonMencloseMixin = CommonMencloseMixin; //# sourceMappingURL=menclose.js.map /***/ }), /* 40 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Arrow = exports.DiagonalArrow = exports.DiagonalStrike = exports.Border2 = exports.Border = exports.RenderElement = void 0; var Notation = __webpack_require__(6); __exportStar(__webpack_require__(6), exports); exports.RenderElement = function (name, offset) { if (offset === void 0) { offset = ''; } return (function (node, _child) { var shape = node.adjustBorder(node.html('mjx-' + name)); if (offset && node.thickness !== Notation.THICKNESS) { var transform = 'translate' + offset + '(' + node.em(node.thickness / 2) + ')'; node.adaptor.setStyle(shape, 'transform', transform); } node.adaptor.append(node.chtml, shape); }); }; exports.Border = function (side) { return Notation.CommonBorder(function (node, child) { node.adaptor.setStyle(child, 'border-' + side, node.em(node.thickness) + ' solid'); })(side); }; exports.Border2 = function (name, side1, side2) { return Notation.CommonBorder2(function (node, child) { var border = node.em(node.thickness) + ' solid'; node.adaptor.setStyle(child, 'border-' + side1, border); node.adaptor.setStyle(child, 'border-' + side2, border); })(name, side1, side2); }; exports.DiagonalStrike = function (name, neg) { return Notation.CommonDiagonalStrike(function (cname) { return function (node, _child) { var _a = node.getBBox(), w = _a.w, h = _a.h, d = _a.d; var _b = __read(node.getArgMod(w, h + d), 2), a = _b[0], W = _b[1]; var t = neg * node.thickness / 2; var strike = node.adjustBorder(node.html(cname, { style: { width: node.em(W), transform: 'rotate(' + node.fixed(-neg * a) + 'rad) translateY(' + t + 'em)', } })); node.adaptor.append(node.chtml, strike); }; })(name); }; exports.DiagonalArrow = function (name) { return Notation.CommonDiagonalArrow(function (node, arrow) { node.adaptor.append(node.chtml, arrow); })(name); }; exports.Arrow = function (name) { return Notation.CommonArrow(function (node, arrow) { node.adaptor.append(node.chtml, arrow); })(name); }; //# sourceMappingURL=Notation.js.map /***/ }), /* 41 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLinferredMrow = exports.CHTMLmrow = void 0; var Wrapper_js_1 = __webpack_require__(0); var mrow_js_1 = __webpack_require__(10); var mrow_js_2 = __webpack_require__(10); var mrow_js_3 = __webpack_require__(84); var CHTMLmrow = (function (_super) { __extends(CHTMLmrow, _super); function CHTMLmrow() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmrow.prototype.toCHTML = function (parent) { var e_1, _a; var chtml = (this.node.isInferred ? (this.chtml = parent) : this.standardCHTMLnode(parent)); var hasNegative = false; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; child.toCHTML(chtml); if (child.bbox.w < 0) { hasNegative = true; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } if (hasNegative) { var w = this.getBBox().w; if (w) { this.adaptor.setStyle(chtml, 'width', this.em(Math.max(0, w))); if (w < 0) { this.adaptor.setStyle(chtml, 'marginRight', this.em(w)); } } } }; CHTMLmrow.kind = mrow_js_3.MmlMrow.prototype.kind; return CHTMLmrow; }(mrow_js_1.CommonMrowMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmrow = CHTMLmrow; var CHTMLinferredMrow = (function (_super) { __extends(CHTMLinferredMrow, _super); function CHTMLinferredMrow() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLinferredMrow.kind = mrow_js_3.MmlInferredMrow.prototype.kind; return CHTMLinferredMrow; }(mrow_js_2.CommonInferredMrowMixin(CHTMLmrow))); exports.CHTMLinferredMrow = CHTMLinferredMrow; //# sourceMappingURL=mrow.js.map /***/ }), /* 42 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmfenced = void 0; var Wrapper_js_1 = __webpack_require__(0); var mfenced_js_1 = __webpack_require__(43); var mfenced_js_2 = __webpack_require__(85); var CHTMLmfenced = (function (_super) { __extends(CHTMLmfenced, _super); function CHTMLmfenced() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmfenced.prototype.toCHTML = function (parent) { var chtml = this.standardCHTMLnode(parent); this.mrow.toCHTML(chtml); }; CHTMLmfenced.kind = mfenced_js_2.MmlMfenced.prototype.kind; return CHTMLmfenced; }(mfenced_js_1.CommonMfencedMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmfenced = CHTMLmfenced; //# sourceMappingURL=mfenced.js.map /***/ }), /* 43 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMfencedMixin = void 0; function CommonMfencedMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.mrow = null; _this.createMrow(); _this.addMrowChildren(); return _this; } class_1.prototype.createMrow = function () { var mmlFactory = this.node.factory; var mrow = mmlFactory.create('inferredMrow'); mrow.inheritAttributesFrom(this.node); this.mrow = this.wrap(mrow); this.mrow.parent = this; }; class_1.prototype.addMrowChildren = function () { var e_1, _a; var mfenced = this.node; var mrow = this.mrow; this.addMo(mfenced.open); if (this.childNodes.length) { mrow.childNodes.push(this.childNodes[0]); } var i = 0; try { for (var _b = __values(this.childNodes.slice(1)), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; this.addMo(mfenced.separators[i++]); mrow.childNodes.push(child); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this.addMo(mfenced.close); mrow.stretchChildren(); }; class_1.prototype.addMo = function (node) { if (!node) return; var mo = this.wrap(node); this.mrow.childNodes.push(mo); mo.parent = this.mrow; }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } bbox.updateFrom(this.mrow.getBBox()); this.setChildPWidths(recompute); }; return class_1; }(Base)); } exports.CommonMfencedMixin = CommonMfencedMixin; //# sourceMappingURL=mfenced.js.map /***/ }), /* 44 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmfrac = void 0; var Wrapper_js_1 = __webpack_require__(0); var mfrac_js_1 = __webpack_require__(45); var mfrac_js_2 = __webpack_require__(86); var CHTMLmfrac = (function (_super) { __extends(CHTMLmfrac, _super); function CHTMLmfrac() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmfrac.prototype.toCHTML = function (parent) { this.standardCHTMLnode(parent); var _a = this.node.attributes.getList('linethickness', 'bevelled'), linethickness = _a.linethickness, bevelled = _a.bevelled; var display = this.isDisplay(); if (bevelled) { this.makeBevelled(display); } else { var thickness = this.length2em(String(linethickness), .06); if (thickness === 0) { this.makeAtop(display); } else { this.makeFraction(display, thickness); } } }; CHTMLmfrac.prototype.makeFraction = function (display, t) { var _a = this.node.attributes.getList('numalign', 'denomalign'), numalign = _a.numalign, denomalign = _a.denomalign; var withDelims = this.node.getProperty('withDelims'); var attr = (display ? { type: 'd' } : {}); var fattr = (withDelims ? __assign(__assign({}, attr), { delims: 'true' }) : __assign({}, attr)); var nattr = (numalign !== 'center' ? { align: numalign } : {}); var dattr = (denomalign !== 'center' ? { align: denomalign } : {}); var dsattr = __assign({}, attr), nsattr = __assign({}, attr); var tex = this.font.params; if (t !== .06) { var a = tex.axis_height; var tEm = this.em(t); var _b = this.getTUV(display, t), T = _b.T, u = _b.u, v = _b.v; var m = (display ? this.em(3 * t) : tEm) + ' -.1em'; attr.style = { height: tEm, 'border-top': tEm + ' solid', margin: m }; var nh = this.em(Math.max(0, u)); nsattr.style = { height: nh, 'vertical-align': '-' + nh }; dsattr.style = { height: this.em(Math.max(0, v)) }; fattr.style = { 'vertical-align': this.em(a - T) }; } var num, den; this.adaptor.append(this.chtml, this.html('mjx-frac', fattr, [ num = this.html('mjx-num', nattr, [this.html('mjx-nstrut', nsattr)]), this.html('mjx-dbox', {}, [ this.html('mjx-dtable', {}, [ this.html('mjx-line', attr), this.html('mjx-row', {}, [ den = this.html('mjx-den', dattr, [this.html('mjx-dstrut', dsattr)]) ]) ]) ]) ])); this.childNodes[0].toCHTML(num); this.childNodes[1].toCHTML(den); }; CHTMLmfrac.prototype.makeAtop = function (display) { var _a = this.node.attributes.getList('numalign', 'denomalign'), numalign = _a.numalign, denomalign = _a.denomalign; var withDelims = this.node.getProperty('withDelims'); var attr = (display ? { type: 'd', atop: true } : { atop: true }); var fattr = (withDelims ? __assign(__assign({}, attr), { delims: true }) : __assign({}, attr)); var nattr = (numalign !== 'center' ? { align: numalign } : {}); var dattr = (denomalign !== 'center' ? { align: denomalign } : {}); var _b = this.getUVQ(display), v = _b.v, q = _b.q; nattr.style = { 'padding-bottom': this.em(q) }; fattr.style = { 'vertical-align': this.em(-v) }; var num, den; this.adaptor.append(this.chtml, this.html('mjx-frac', fattr, [ num = this.html('mjx-num', nattr), den = this.html('mjx-den', dattr) ])); this.childNodes[0].toCHTML(num); this.childNodes[1].toCHTML(den); }; CHTMLmfrac.prototype.makeBevelled = function (display) { var adaptor = this.adaptor; adaptor.setAttribute(this.chtml, 'bevelled', 'ture'); var num = adaptor.append(this.chtml, this.html('mjx-num')); this.childNodes[0].toCHTML(num); this.bevel.toCHTML(this.chtml); var den = adaptor.append(this.chtml, this.html('mjx-den')); this.childNodes[1].toCHTML(den); var _a = this.getBevelData(display), u = _a.u, v = _a.v, delta = _a.delta, nbox = _a.nbox, dbox = _a.dbox; if (u) { adaptor.setStyle(num, 'verticalAlign', this.em(u / nbox.scale)); } if (v) { adaptor.setStyle(den, 'verticalAlign', this.em(v / dbox.scale)); } var dx = this.em(-delta / 2); adaptor.setStyle(this.bevel.chtml, 'marginLeft', dx); adaptor.setStyle(this.bevel.chtml, 'marginRight', dx); }; CHTMLmfrac.kind = mfrac_js_2.MmlMfrac.prototype.kind; CHTMLmfrac.styles = { 'mjx-frac': { display: 'inline-block', 'vertical-align': '0.17em', padding: '0 .22em' }, 'mjx-frac[type="d"]': { 'vertical-align': '.04em' }, 'mjx-frac[delims]': { padding: '0 .1em' }, 'mjx-frac[atop]': { padding: '0 .12em' }, 'mjx-frac[atop][delims]': { padding: '0' }, 'mjx-dtable': { display: 'inline-table', width: '100%' }, 'mjx-dtable > *': { 'font-size': '2000%' }, 'mjx-dbox': { display: 'block', 'font-size': '5%' }, 'mjx-num': { display: 'block', 'text-align': 'center' }, 'mjx-den': { display: 'block', 'text-align': 'center' }, 'mjx-mfrac[bevelled] > mjx-num': { display: 'inline-block' }, 'mjx-mfrac[bevelled] > mjx-den': { display: 'inline-block' }, 'mjx-den[align="right"], mjx-num[align="right"]': { 'text-align': 'right' }, 'mjx-den[align="left"], mjx-num[align="left"]': { 'text-align': 'left' }, 'mjx-nstrut': { display: 'inline-block', height: '.054em', width: 0, 'vertical-align': '-.054em' }, 'mjx-nstrut[type="d"]': { height: '.217em', 'vertical-align': '-.217em', }, 'mjx-dstrut': { display: 'inline-block', height: '.505em', width: 0 }, 'mjx-dstrut[type="d"]': { height: '.726em', }, 'mjx-line': { display: 'block', 'box-sizing': 'border-box', 'min-height': '1px', height: '.06em', 'border-top': '.06em solid', margin: '.06em -.1em', overflow: 'hidden' }, 'mjx-line[type="d"]': { margin: '.18em -.1em' } }; return CHTMLmfrac; }(mfrac_js_1.CommonMfracMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmfrac = CHTMLmfrac; //# sourceMappingURL=mfrac.js.map /***/ }), /* 45 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMfracMixin = void 0; function CommonMfracMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.bevel = null; _this.pad = (_this.node.getProperty('withDelims') ? 0 : _this.font.params.nulldelimiterspace); if (_this.node.attributes.get('bevelled')) { var H = _this.getBevelData(_this.isDisplay()).H; var bevel = _this.bevel = _this.createMo('/'); bevel.canStretch(1); bevel.getStretchedVariant([H], true); } return _this; } class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } bbox.empty(); var _a = this.node.attributes.getList('linethickness', 'bevelled'), linethickness = _a.linethickness, bevelled = _a.bevelled; var display = this.isDisplay(); var w = null; if (bevelled) { this.getBevelledBBox(bbox, display); } else { var thickness = this.length2em(String(linethickness), .06); w = -2 * this.pad; if (thickness === 0) { this.getAtopBBox(bbox, display); } else { this.getFractionBBox(bbox, display, thickness); w -= .2; } w += bbox.w; } bbox.clean(); this.setChildPWidths(recompute, w); }; class_1.prototype.getFractionBBox = function (bbox, display, t) { var nbox = this.childNodes[0].getBBox(); var dbox = this.childNodes[1].getBBox(); var tex = this.font.params; var a = tex.axis_height; var _a = this.getTUV(display, t), T = _a.T, u = _a.u, v = _a.v; bbox.combine(nbox, 0, a + T + Math.max(nbox.d * nbox.rscale, u)); bbox.combine(dbox, 0, a - T - Math.max(dbox.h * dbox.rscale, v)); bbox.w += 2 * this.pad + .2; }; class_1.prototype.getTUV = function (display, t) { var tex = this.font.params; var a = tex.axis_height; var T = (display ? 3.5 : 1.5) * t; return { T: (display ? 3.5 : 1.5) * t, u: (display ? tex.num1 : tex.num2) - a - T, v: (display ? tex.denom1 : tex.denom2) + a - T }; }; class_1.prototype.getAtopBBox = function (bbox, display) { var _a = this.getUVQ(display), u = _a.u, v = _a.v, nbox = _a.nbox, dbox = _a.dbox; bbox.combine(nbox, 0, u); bbox.combine(dbox, 0, -v); bbox.w += 2 * this.pad; }; class_1.prototype.getUVQ = function (display) { var nbox = this.childNodes[0].getBBox(); var dbox = this.childNodes[1].getBBox(); var tex = this.font.params; var _a = __read((display ? [tex.num1, tex.denom1] : [tex.num3, tex.denom2]), 2), u = _a[0], v = _a[1]; var p = (display ? 7 : 3) * tex.rule_thickness; var q = (u - nbox.d * nbox.scale) - (dbox.h * dbox.scale - v); if (q < p) { u += (p - q) / 2; v += (p - q) / 2; q = p; } return { u: u, v: v, q: q, nbox: nbox, dbox: dbox }; }; class_1.prototype.getBevelledBBox = function (bbox, display) { var _a = this.getBevelData(display), u = _a.u, v = _a.v, delta = _a.delta, nbox = _a.nbox, dbox = _a.dbox; var lbox = this.bevel.getBBox(); bbox.combine(nbox, 0, u); bbox.combine(lbox, bbox.w - delta / 2, 0); bbox.combine(dbox, bbox.w - delta / 2, v); }; class_1.prototype.getBevelData = function (display) { var nbox = this.childNodes[0].getBBox(); var dbox = this.childNodes[1].getBBox(); var delta = (display ? .4 : .15); var H = Math.max(nbox.scale * (nbox.h + nbox.d), dbox.scale * (dbox.h + dbox.d)) + 2 * delta; var a = this.font.params.axis_height; var u = nbox.scale * (nbox.d - nbox.h) / 2 + a + delta; var v = dbox.scale * (dbox.d - dbox.h) / 2 + a - delta; return { H: H, delta: delta, u: u, v: v, nbox: nbox, dbox: dbox }; }; class_1.prototype.canStretch = function (_direction) { return false; }; class_1.prototype.isDisplay = function () { var _a = this.node.attributes.getList('displaystyle', 'scriptlevel'), displaystyle = _a.displaystyle, scriptlevel = _a.scriptlevel; return displaystyle && scriptlevel === 0; }; class_1.prototype.getWrapWidth = function (i) { var attributes = this.node.attributes; if (attributes.get('bevelled')) { return this.childNodes[i].getBBox().w; } var w = this.getBBox().w; var thickness = this.length2em(attributes.get('linethickness')); return w - (thickness ? .2 : 0) - 2 * this.pad; }; class_1.prototype.getChildAlign = function (i) { var attributes = this.node.attributes; return (attributes.get('bevelled') ? 'left' : attributes.get(['numalign', 'denomalign'][i])); }; return class_1; }(Base)); } exports.CommonMfracMixin = CommonMfracMixin; //# sourceMappingURL=mfrac.js.map /***/ }), /* 46 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMsqrtMixin = void 0; var BBox_js_1 = __webpack_require__(1); function CommonMsqrtMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; var surd = _this.createMo('\u221A'); surd.canStretch(1); var _a = _this.childNodes[_this.base].getBBox(), h = _a.h, d = _a.d; var t = _this.font.params.rule_thickness; var p = (_this.node.attributes.get('displaystyle') ? _this.font.params.x_height : t); _this.surdH = h + d + 2 * t + p / 4; surd.getStretchedVariant([_this.surdH - d, d], true); return _this; } Object.defineProperty(class_1.prototype, "base", { get: function () { return 0; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "surd", { get: function () { return 1; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "root", { get: function () { return null; }, enumerable: false, configurable: true }); class_1.prototype.createMo = function (text) { var node = _super.prototype.createMo.call(this, text); this.childNodes.push(node); return node; }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var surdbox = this.childNodes[this.surd].getBBox(); var basebox = new BBox_js_1.BBox(this.childNodes[this.base].getBBox()); var q = this.getPQ(surdbox)[1]; var t = this.font.params.rule_thickness; var H = basebox.h + q + t; var _a = __read(this.getRootDimens(surdbox, H), 1), x = _a[0]; bbox.h = H + t; this.combineRootBBox(bbox, surdbox, H); bbox.combine(surdbox, x, H - surdbox.h); bbox.combine(basebox, x + surdbox.w, 0); bbox.clean(); this.setChildPWidths(recompute); }; class_1.prototype.combineRootBBox = function (_bbox, _sbox, _H) { }; class_1.prototype.getPQ = function (sbox) { var t = this.font.params.rule_thickness; var p = (this.node.attributes.get('displaystyle') ? this.font.params.x_height : t); var q = (sbox.h + sbox.d > this.surdH ? ((sbox.h + sbox.d) - (this.surdH - 2 * t - p / 2)) / 2 : t + p / 4); return [p, q]; }; class_1.prototype.getRootDimens = function (_sbox, _H) { return [0, 0, 0, 0]; }; return class_1; }(Base)); } exports.CommonMsqrtMixin = CommonMsqrtMixin; //# sourceMappingURL=msqrt.js.map /***/ }), /* 47 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmroot = void 0; var msqrt_js_1 = __webpack_require__(11); var mroot_js_1 = __webpack_require__(48); var mroot_js_2 = __webpack_require__(88); var CHTMLmroot = (function (_super) { __extends(CHTMLmroot, _super); function CHTMLmroot() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmroot.prototype.addRoot = function (ROOT, root, sbox, H) { root.toCHTML(ROOT); var _a = __read(this.getRootDimens(sbox, H), 3), x = _a[0], h = _a[1], dx = _a[2]; this.adaptor.setStyle(ROOT, 'verticalAlign', this.em(h)); this.adaptor.setStyle(ROOT, 'width', this.em(x)); if (dx) { this.adaptor.setStyle(this.adaptor.firstChild(ROOT), 'paddingLeft', this.em(dx)); } }; CHTMLmroot.kind = mroot_js_2.MmlMroot.prototype.kind; return CHTMLmroot; }(mroot_js_1.CommonMrootMixin(msqrt_js_1.CHTMLmsqrt))); exports.CHTMLmroot = CHTMLmroot; //# sourceMappingURL=mroot.js.map /***/ }), /* 48 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMrootMixin = void 0; function CommonMrootMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_1.prototype, "surd", { get: function () { return 2; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "root", { get: function () { return 1; }, enumerable: false, configurable: true }); class_1.prototype.combineRootBBox = function (BBOX, sbox, H) { var bbox = this.childNodes[this.root].getBBox(); var h = this.getRootDimens(sbox, H)[1]; BBOX.combine(bbox, 0, h); }; class_1.prototype.getRootDimens = function (sbox, H) { var surd = this.childNodes[this.surd]; var bbox = this.childNodes[this.root].getBBox(); var offset = (surd.size < 0 ? .5 : .6) * sbox.w; var w = bbox.w, rscale = bbox.rscale; var W = Math.max(w, offset / rscale); var dx = Math.max(0, W - w); var h = this.rootHeight(bbox, sbox, surd.size, H); var x = W * rscale - offset; return [x, h, dx]; }; class_1.prototype.rootHeight = function (rbox, sbox, size, H) { var h = sbox.h + sbox.d; var b = (size < 0 ? 1.9 : .55 * h) - (h - H); return b + Math.max(0, rbox.d * rbox.rscale); }; return class_1; }(Base)); } exports.CommonMrootMixin = CommonMrootMixin; //# sourceMappingURL=mroot.js.map /***/ }), /* 49 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLscriptbase = void 0; var Wrapper_js_1 = __webpack_require__(0); var scriptbase_js_1 = __webpack_require__(50); var CHTMLscriptbase = (function (_super) { __extends(CHTMLscriptbase, _super); function CHTMLscriptbase() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLscriptbase.prototype.toCHTML = function (parent) { this.chtml = this.standardCHTMLnode(parent); var _a = __read(this.getOffset(this.baseChild.getBBox(), this.script.getBBox()), 2), x = _a[0], v = _a[1]; var style = { 'vertical-align': this.em(v) }; if (x) { style['margin-left'] = this.em(x); } this.baseChild.toCHTML(this.chtml); this.script.toCHTML(this.adaptor.append(this.chtml, this.html('mjx-script', { style: style }))); }; CHTMLscriptbase.prototype.setDeltaW = function (nodes, dx) { for (var i = 0; i < dx.length; i++) { if (dx[i]) { this.adaptor.setStyle(nodes[i], 'paddingLeft', this.em(dx[i])); } } }; CHTMLscriptbase.prototype.adjustOverDepth = function (over, overbox) { if (overbox.d >= 0) return; this.adaptor.setStyle(over, 'marginBottom', this.em(overbox.d * overbox.rscale)); }; CHTMLscriptbase.prototype.adjustUnderDepth = function (under, underbox) { var e_1, _a; if (underbox.d >= 0) return; var adaptor = this.adaptor; var v = this.em(underbox.d); var box = this.html('mjx-box', { style: { 'margin-bottom': v, 'vertical-align': v } }); try { for (var _b = __values(adaptor.childNodes(adaptor.firstChild(under))), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; adaptor.append(box, child); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } adaptor.append(adaptor.firstChild(under), box); }; CHTMLscriptbase.kind = 'scriptbase'; CHTMLscriptbase.useIC = false; return CHTMLscriptbase; }(scriptbase_js_1.CommonScriptbaseMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLscriptbase = CHTMLscriptbase; //# sourceMappingURL=scriptbase.js.map /***/ }), /* 50 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonScriptbaseMixin = void 0; var DELTA = 1.5; function CommonScriptbaseMixin(Base) { var _a; return _a = (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; var core = _this.baseCore = _this.childNodes[0]; if (!core) return _this; while (core.childNodes.length === 1 && (core.node.isKind('mrow') || core.node.isKind('TeXAtom') || core.node.isKind('mstyle') || core.node.isKind('mpadded') || core.node.isKind('mphantom') || core.node.isKind('semantics'))) { core = core.childNodes[0]; if (!core) return _this; } if (!('noIC' in core)) return _this; _this.baseCore = core; if (!_this.constructor.useIC) { core.noIC = true; } return _this; } Object.defineProperty(class_1.prototype, "baseChild", { get: function () { return this.childNodes[this.node.base]; }, enumerable: false, configurable: true }); Object.defineProperty(class_1.prototype, "script", { get: function () { return this.childNodes[1]; }, enumerable: false, configurable: true }); class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var basebox = this.baseChild.getBBox(); var scriptbox = this.script.getBBox(); var _a = __read(this.getOffset(basebox, scriptbox), 2), x = _a[0], y = _a[1]; bbox.append(basebox); bbox.combine(scriptbox, bbox.w + x, y); bbox.w += this.font.params.scriptspace; bbox.clean(); this.setChildPWidths(recompute); }; class_1.prototype.coreIC = function () { var corebox = this.baseCore.getBBox(); return (corebox.ic ? 1.05 * corebox.ic + .05 : 0); }; class_1.prototype.coreScale = function () { var scale = this.baseChild.getBBox().rscale; var base = this.baseChild; while ((base.node.isKind('mstyle') || base.node.isKind('mrow') || base.node.isKind('TeXAtom')) && base.childNodes.length === 1) { base = base.childNodes[0]; scale *= base.getBBox().rscale; } return scale; }; class_1.prototype.isCharBase = function () { var base = this.baseChild; while ((base.node.isKind('mstyle') || base.node.isKind('mrow')) && base.childNodes.length === 1) { base = base.childNodes[0]; } return ((base.node.isKind('mo') || base.node.isKind('mi') || base.node.isKind('mn')) && base.bbox.rscale === 1 && Array.from(base.getText()).length === 1 && !base.node.attributes.get('largeop')); }; class_1.prototype.getOffset = function (_bbox, _sbox) { return [0, 0]; }; class_1.prototype.getV = function (bbox, sbox) { var tex = this.font.params; var subscriptshift = this.length2em(this.node.attributes.get('subscriptshift'), tex.sub1); return Math.max(this.isCharBase() ? 0 : bbox.d * bbox.rscale + tex.sub_drop * sbox.rscale, subscriptshift, sbox.h * sbox.rscale - (4 / 5) * tex.x_height); }; class_1.prototype.getU = function (bbox, sbox) { var tex = this.font.params; var attr = this.node.attributes.getList('displaystyle', 'superscriptshift'); var prime = this.node.getProperty('texprimestyle'); var p = prime ? tex.sup3 : (attr.displaystyle ? tex.sup1 : tex.sup2); var superscriptshift = this.length2em(attr.superscriptshift, p); return Math.max(this.isCharBase() ? 0 : bbox.h * bbox.rscale - tex.sup_drop * sbox.rscale, superscriptshift, sbox.d * sbox.rscale + (1 / 4) * tex.x_height); }; class_1.prototype.hasMovableLimits = function () { var display = this.node.attributes.get('displaystyle'); var mo = this.baseChild.coreMO().node; return (!display && !!mo.attributes.get('movablelimits')); }; class_1.prototype.getOverKU = function (basebox, overbox) { var accent = this.node.attributes.get('accent'); var tex = this.font.params; var d = overbox.d * overbox.rscale; var k = (accent ? tex.rule_thickness : Math.max(tex.big_op_spacing1, tex.big_op_spacing3 - Math.max(0, d))) - (this.baseChild.node.isKind('munderover') ? .1 : 0); return [k, basebox.h * basebox.rscale + k + d]; }; class_1.prototype.getUnderKV = function (basebox, underbox) { var accent = this.node.attributes.get('accentunder'); var tex = this.font.params; var h = underbox.h * underbox.rscale; var k = (accent ? tex.rule_thickness : Math.max(tex.big_op_spacing2, tex.big_op_spacing4 - h)) - (this.baseChild.node.isKind('munderover') ? .1 : 0); return [k, -(basebox.d * basebox.rscale + k + h)]; }; class_1.prototype.getDeltaW = function (boxes, delta) { var e_1, _a, e_2, _b; if (delta === void 0) { delta = [0, 0, 0]; } var align = this.node.attributes.get('align'); var widths = boxes.map(function (box) { return box.w * box.rscale; }); var w = Math.max.apply(Math, __spread(widths)); var dw = []; var m = 0; try { for (var _c = __values(widths.keys()), _d = _c.next(); !_d.done; _d = _c.next()) { var i = _d.value; dw[i] = (align === 'center' ? (w - widths[i]) / 2 : align === 'right' ? w - widths[i] : 0) + delta[i]; if (dw[i] < m) { m = -dw[i]; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_1) throw e_1.error; } } if (m) { try { for (var _e = __values(dw.keys()), _f = _e.next(); !_f.done; _f = _e.next()) { var i = _f.value; dw[i] += m; } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_2) throw e_2.error; } } } return dw; }; class_1.prototype.getDelta = function (noskew) { if (noskew === void 0) { noskew = false; } var accent = this.node.attributes.get('accent'); var ddelta = (accent && !noskew ? this.baseChild.coreMO().bbox.sk : 0); return (DELTA * this.baseCore.bbox.ic / 2 + ddelta) * this.coreScale(); }; class_1.prototype.stretchChildren = function () { var e_3, _a, e_4, _b, e_5, _c; var stretchy = []; try { for (var _d = __values(this.childNodes), _e = _d.next(); !_e.done; _e = _d.next()) { var child = _e.value; if (child.canStretch(2)) { stretchy.push(child); } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_3) throw e_3.error; } } var count = stretchy.length; var nodeCount = this.childNodes.length; if (count && nodeCount > 1) { var W = 0; var all = (count > 1 && count === nodeCount); try { for (var _f = __values(this.childNodes), _g = _f.next(); !_g.done; _g = _f.next()) { var child = _g.value; var noStretch = (child.stretch.dir === 0); if (all || noStretch) { var _h = child.getBBox(noStretch), w = _h.w, rscale = _h.rscale; if (w * rscale > W) W = w * rscale; } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_4) throw e_4.error; } } try { for (var stretchy_1 = __values(stretchy), stretchy_1_1 = stretchy_1.next(); !stretchy_1_1.done; stretchy_1_1 = stretchy_1.next()) { var child = stretchy_1_1.value; child.coreMO().getStretchedVariant([W / child.bbox.rscale]); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (stretchy_1_1 && !stretchy_1_1.done && (_c = stretchy_1.return)) _c.call(stretchy_1); } finally { if (e_5) throw e_5.error; } } } }; return class_1; }(Base)), _a.useIC = false, _a; } exports.CommonScriptbaseMixin = CommonScriptbaseMixin; //# sourceMappingURL=scriptbase.js.map /***/ }), /* 51 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmunderover = exports.CHTMLmover = exports.CHTMLmunder = void 0; var msubsup_js_1 = __webpack_require__(7); var munderover_js_1 = __webpack_require__(9); var munderover_js_2 = __webpack_require__(9); var munderover_js_3 = __webpack_require__(9); var munderover_js_4 = __webpack_require__(90); var CHTMLmunder = (function (_super) { __extends(CHTMLmunder, _super); function CHTMLmunder() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmunder.prototype.toCHTML = function (parent) { if (this.hasMovableLimits()) { _super.prototype.toCHTML.call(this, parent); this.adaptor.setAttribute(this.chtml, 'limits', 'false'); return; } this.chtml = this.standardCHTMLnode(parent); var base = this.adaptor.append(this.adaptor.append(this.chtml, this.html('mjx-row')), this.html('mjx-base')); var under = this.adaptor.append(this.adaptor.append(this.chtml, this.html('mjx-row')), this.html('mjx-under')); this.baseChild.toCHTML(base); this.script.toCHTML(under); var basebox = this.baseChild.getBBox(); var underbox = this.script.getBBox(); var k = this.getUnderKV(basebox, underbox)[0]; var delta = this.getDelta(true); this.adaptor.setStyle(under, 'paddingTop', this.em(k)); this.setDeltaW([base, under], this.getDeltaW([basebox, underbox], [0, -delta])); this.adjustUnderDepth(under, underbox); }; CHTMLmunder.kind = munderover_js_4.MmlMunder.prototype.kind; CHTMLmunder.useIC = true; CHTMLmunder.styles = { 'mjx-over': { 'text-align': 'left' }, 'mjx-munder:not([limits="false"])': { display: 'inline-table', }, 'mjx-munder > mjx-row': { 'text-align': 'left' }, 'mjx-under': { 'padding-bottom': '.1em' } }; return CHTMLmunder; }(munderover_js_1.CommonMunderMixin(msubsup_js_1.CHTMLmsub))); exports.CHTMLmunder = CHTMLmunder; var CHTMLmover = (function (_super) { __extends(CHTMLmover, _super); function CHTMLmover() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmover.prototype.toCHTML = function (parent) { if (this.hasMovableLimits()) { _super.prototype.toCHTML.call(this, parent); this.adaptor.setAttribute(this.chtml, 'limits', 'false'); return; } this.chtml = this.standardCHTMLnode(parent); var over = this.adaptor.append(this.chtml, this.html('mjx-over')); var base = this.adaptor.append(this.chtml, this.html('mjx-base')); this.script.toCHTML(over); this.baseChild.toCHTML(base); var overbox = this.script.getBBox(); var basebox = this.baseChild.getBBox(); var k = this.getOverKU(basebox, overbox)[0]; var delta = this.getDelta(); this.adaptor.setStyle(over, 'paddingBottom', this.em(k)); this.setDeltaW([base, over], this.getDeltaW([basebox, overbox], [0, delta])); this.adjustOverDepth(over, overbox); }; CHTMLmover.kind = munderover_js_4.MmlMover.prototype.kind; CHTMLmover.useIC = true; CHTMLmover.styles = { 'mjx-mover:not([limits="false"])': { 'padding-top': '.1em' }, 'mjx-mover:not([limits="false"]) > *': { display: 'block', 'text-align': 'left' } }; return CHTMLmover; }(munderover_js_2.CommonMoverMixin(msubsup_js_1.CHTMLmsup))); exports.CHTMLmover = CHTMLmover; var CHTMLmunderover = (function (_super) { __extends(CHTMLmunderover, _super); function CHTMLmunderover() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmunderover.prototype.toCHTML = function (parent) { if (this.hasMovableLimits()) { _super.prototype.toCHTML.call(this, parent); this.adaptor.setAttribute(this.chtml, 'limits', 'false'); return; } this.chtml = this.standardCHTMLnode(parent); var over = this.adaptor.append(this.chtml, this.html('mjx-over')); var table = this.adaptor.append(this.adaptor.append(this.chtml, this.html('mjx-box')), this.html('mjx-munder')); var base = this.adaptor.append(this.adaptor.append(table, this.html('mjx-row')), this.html('mjx-base')); var under = this.adaptor.append(this.adaptor.append(table, this.html('mjx-row')), this.html('mjx-under')); this.overChild.toCHTML(over); this.baseChild.toCHTML(base); this.underChild.toCHTML(under); var overbox = this.overChild.getBBox(); var basebox = this.baseChild.getBBox(); var underbox = this.underChild.getBBox(); var ok = this.getOverKU(basebox, overbox)[0]; var uk = this.getUnderKV(basebox, underbox)[0]; var delta = this.getDelta(); this.adaptor.setStyle(over, 'paddingBottom', this.em(ok)); this.adaptor.setStyle(under, 'paddingTop', this.em(uk)); this.setDeltaW([base, under, over], this.getDeltaW([basebox, underbox, overbox], [0, -delta, delta])); this.adjustOverDepth(over, overbox); this.adjustUnderDepth(under, underbox); }; CHTMLmunderover.kind = munderover_js_4.MmlMunderover.prototype.kind; CHTMLmunderover.useIC = true; CHTMLmunderover.styles = { 'mjx-munderover:not([limits="false"])': { 'padding-top': '.1em' }, 'mjx-munderover:not([limits="false"]) > *': { display: 'block' }, }; return CHTMLmunderover; }(munderover_js_3.CommonMunderoverMixin(msubsup_js_1.CHTMLmsubsup))); exports.CHTMLmunderover = CHTMLmunderover; //# sourceMappingURL=munderover.js.map /***/ }), /* 52 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmmultiscripts = void 0; var msubsup_js_1 = __webpack_require__(7); var mmultiscripts_js_1 = __webpack_require__(53); var mmultiscripts_js_2 = __webpack_require__(91); var CHTMLmmultiscripts = (function (_super) { __extends(CHTMLmmultiscripts, _super); function CHTMLmmultiscripts() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmmultiscripts.prototype.toCHTML = function (parent) { var chtml = this.standardCHTMLnode(parent); var data = this.getScriptData(); var sub = this.combinePrePost(data.sub, data.psub); var sup = this.combinePrePost(data.sup, data.psup); var _a = __read(this.getUVQ(data.base, sub, sup), 2), u = _a[0], v = _a[1]; if (data.numPrescripts) { this.addScripts(u, -v, true, data.psub, data.psup, this.firstPrescript, data.numPrescripts); } this.childNodes[0].toCHTML(chtml); if (data.numScripts) { this.addScripts(u, -v, false, data.sub, data.sup, 1, data.numScripts); } }; CHTMLmmultiscripts.prototype.addScripts = function (u, v, isPre, sub, sup, i, n) { var adaptor = this.adaptor; var q = (u - sup.d) + (v - sub.h); var U = (u < 0 && v === 0 ? sub.h + u : u); var rowdef = (q > 0 ? { style: { height: this.em(q) } } : {}); var tabledef = (U ? { style: { 'vertical-align': this.em(U) } } : {}); var supRow = this.html('mjx-row'); var sepRow = this.html('mjx-row', rowdef); var subRow = this.html('mjx-row'); var name = 'mjx-' + (isPre ? 'pre' : '') + 'scripts'; adaptor.append(this.chtml, this.html(name, tabledef, [supRow, sepRow, subRow])); var m = i + 2 * n; while (i < m) { this.childNodes[i++].toCHTML(adaptor.append(subRow, this.html('mjx-cell'))); this.childNodes[i++].toCHTML(adaptor.append(supRow, this.html('mjx-cell'))); } }; CHTMLmmultiscripts.kind = mmultiscripts_js_2.MmlMmultiscripts.prototype.kind; CHTMLmmultiscripts.styles = { 'mjx-prescripts': { display: 'inline-table', 'padding-left': '.05em' }, 'mjx-scripts': { display: 'inline-table', 'padding-right': '.05em' }, 'mjx-prescripts > mjx-row > mjx-cell': { 'text-align': 'right' } }; return CHTMLmmultiscripts; }(mmultiscripts_js_1.CommonMmultiscriptsMixin(msubsup_js_1.CHTMLmsubsup))); exports.CHTMLmmultiscripts = CHTMLmmultiscripts; //# sourceMappingURL=mmultiscripts.js.map /***/ }), /* 53 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMmultiscriptsMixin = exports.ScriptNames = exports.NextScript = void 0; var BBox_js_1 = __webpack_require__(1); exports.NextScript = { base: 'subList', subList: 'supList', supList: 'subList', psubList: 'psupList', psupList: 'psubList', }; exports.ScriptNames = ['sup', 'sup', 'psup', 'psub']; function CommonMmultiscriptsMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.scriptData = null; _this.firstPrescript = 0; return _this; } class_1.prototype.combinePrePost = function (pre, post) { var bbox = new BBox_js_1.BBox(pre); bbox.combine(post, 0, 0); return bbox; }; class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } var scriptspace = this.font.params.scriptspace; var data = this.getScriptData(); var sub = this.combinePrePost(data.sub, data.psub); var sup = this.combinePrePost(data.sup, data.psup); var _a = __read(this.getUVQ(data.base, sub, sup), 2), u = _a[0], v = _a[1]; bbox.empty(); if (data.numPrescripts) { bbox.combine(data.psup, scriptspace, u); bbox.combine(data.psub, scriptspace, v); } bbox.append(data.base); if (data.numScripts) { var w = bbox.w; bbox.combine(data.sup, w, u); bbox.combine(data.sub, w, v); bbox.w += scriptspace; } bbox.clean(); this.setChildPWidths(recompute); }; class_1.prototype.getScriptData = function () { if (this.scriptData) { return this.scriptData; } var data = this.scriptData = { base: null, sub: BBox_js_1.BBox.empty(), sup: BBox_js_1.BBox.empty(), psub: BBox_js_1.BBox.empty(), psup: BBox_js_1.BBox.empty(), numPrescripts: 0, numScripts: 0 }; var lists = this.getScriptBBoxLists(); this.combineBBoxLists(data.sub, data.sup, lists.subList, lists.supList); this.combineBBoxLists(data.psub, data.psup, lists.psubList, lists.psupList); this.scriptData.base = lists.base[0]; this.scriptData.numPrescripts = lists.psubList.length; this.scriptData.numScripts = lists.subList.length; return this.scriptData; }; class_1.prototype.getScriptBBoxLists = function () { var e_1, _a; var lists = { base: [], subList: [], supList: [], psubList: [], psupList: [] }; var script = 'base'; try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; if (child.node.isKind('mprescripts')) { script = 'psubList'; } else { lists[script].push(child.getBBox()); script = exports.NextScript[script]; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this.firstPrescript = lists.subList.length + lists.supList.length + 2; this.padLists(lists.subList, lists.supList); this.padLists(lists.psubList, lists.psupList); return lists; }; class_1.prototype.padLists = function (list1, list2) { if (list1.length > list2.length) { list2.push(BBox_js_1.BBox.empty()); } }; class_1.prototype.combineBBoxLists = function (bbox1, bbox2, list1, list2) { for (var i = 0; i < list1.length; i++) { var _a = __read(this.getScaledWHD(list1[i]), 3), w1 = _a[0], h1 = _a[1], d1 = _a[2]; var _b = __read(this.getScaledWHD(list2[i]), 3), w2 = _b[0], h2 = _b[1], d2 = _b[2]; var w = Math.max(w1, w2); bbox1.w += w; bbox2.w += w; if (h1 > bbox1.h) bbox1.h = h1; if (d1 > bbox1.d) bbox1.d = d1; if (h2 > bbox2.h) bbox2.h = h2; if (d2 > bbox2.d) bbox2.d = d2; } }; class_1.prototype.getScaledWHD = function (bbox) { var w = bbox.w, h = bbox.h, d = bbox.d, rscale = bbox.rscale; return [w * rscale, h * rscale, d * rscale]; }; class_1.prototype.getUVQ = function (basebox, subbox, supbox) { var _a; if (!this.UVQ) { var _b = __read([0, 0, 0], 3), u = _b[0], v = _b[1], q = _b[2]; if (subbox.h === 0 && subbox.d === 0) { u = this.getU(basebox, supbox); } else if (supbox.h === 0 && supbox.d === 0) { u = -this.getV(basebox, subbox); } else { _a = __read(_super.prototype.getUVQ.call(this, basebox, subbox, supbox), 3), u = _a[0], v = _a[1], q = _a[2]; } this.UVQ = [u, v, q]; } return this.UVQ; }; return class_1; }(Base)); } exports.CommonMmultiscriptsMixin = CommonMmultiscriptsMixin; //# sourceMappingURL=mmultiscripts.js.map /***/ }), /* 54 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmtable = void 0; var Wrapper_js_1 = __webpack_require__(0); var mtable_js_1 = __webpack_require__(55); var mtable_js_2 = __webpack_require__(93); var string_js_1 = __webpack_require__(3); var CHTMLmtable = (function (_super) { __extends(CHTMLmtable, _super); function CHTMLmtable(factory, node, parent) { if (parent === void 0) { parent = null; } var _this = _super.call(this, factory, node, parent) || this; _this.itable = _this.html('mjx-itable'); _this.labels = _this.html('mjx-itable'); return _this; } CHTMLmtable.prototype.getAlignShift = function () { var data = _super.prototype.getAlignShift.call(this); if (!this.isTop) { data[1] = 0; } return data; }; CHTMLmtable.prototype.toCHTML = function (parent) { var e_1, _a; var chtml = this.standardCHTMLnode(parent); this.adaptor.append(chtml, this.html('mjx-table', {}, [this.itable])); try { for (var _b = __values(this.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var child = _c.value; child.toCHTML(this.itable); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this.padRows(); this.handleColumnSpacing(); this.handleColumnLines(); this.handleColumnWidths(); this.handleRowSpacing(); this.handleRowLines(); this.handleEqualRows(); this.handleFrame(); this.handleWidth(); this.handleLabels(); this.handleAlign(); this.handleJustify(); this.shiftColor(); }; CHTMLmtable.prototype.shiftColor = function () { var adaptor = this.adaptor; var color = adaptor.getStyle(this.chtml, 'backgroundColor'); if (color) { adaptor.setStyle(this.chtml, 'backgroundColor', ''); adaptor.setStyle(this.itable, 'backgroundColor', color); } }; CHTMLmtable.prototype.padRows = function () { var e_2, _a; var adaptor = this.adaptor; try { for (var _b = __values(adaptor.childNodes(this.itable)), _c = _b.next(); !_c.done; _c = _b.next()) { var row = _c.value; while (adaptor.childNodes(row).length < this.numCols) { adaptor.append(row, this.html('mjx-mtd')); } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } }; CHTMLmtable.prototype.handleColumnSpacing = function () { var e_3, _a, e_4, _b; var spacing = this.getEmHalfSpacing(this.fSpace[0], this.cSpace); var frame = this.frame; try { for (var _c = __values(this.tableRows), _d = _c.next(); !_d.done; _d = _c.next()) { var row = _d.value; var i = 0; try { for (var _e = (e_4 = void 0, __values(row.tableCells)), _f = _e.next(); !_f.done; _f = _e.next()) { var cell = _f.value; var lspace = spacing[i++]; var rspace = spacing[i]; var styleNode = (cell ? cell.chtml : this.adaptor.childNodes(row.chtml)[i]); if ((i > 1 && lspace !== '0.4em') || (frame && i === 1)) { this.adaptor.setStyle(styleNode, 'paddingLeft', lspace); } if ((i < this.numCols && rspace !== '0.4em') || (frame && i === this.numCols)) { this.adaptor.setStyle(styleNode, 'paddingRight', rspace); } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_4) throw e_4.error; } } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_3) throw e_3.error; } } }; CHTMLmtable.prototype.handleColumnLines = function () { var e_5, _a, e_6, _b; if (this.node.attributes.get('columnlines') === 'none') return; var lines = this.getColumnAttributes('columnlines'); try { for (var _c = __values(this.childNodes), _d = _c.next(); !_d.done; _d = _c.next()) { var row = _d.value; var i = 0; try { for (var _e = (e_6 = void 0, __values(this.adaptor.childNodes(row.chtml).slice(1))), _f = _e.next(); !_f.done; _f = _e.next()) { var cell = _f.value; var line = lines[i++]; if (line === 'none') continue; this.adaptor.setStyle(cell, 'borderLeft', '.07em ' + line); } } catch (e_6_1) { e_6 = { error: e_6_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_6) throw e_6.error; } } } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_5) throw e_5.error; } } }; CHTMLmtable.prototype.handleColumnWidths = function () { var e_7, _a, e_8, _b; try { for (var _c = __values(this.childNodes), _d = _c.next(); !_d.done; _d = _c.next()) { var row = _d.value; var i = 0; try { for (var _e = (e_8 = void 0, __values(this.adaptor.childNodes(row.chtml))), _f = _e.next(); !_f.done; _f = _e.next()) { var cell = _f.value; var w = this.cWidths[i++]; if (w !== null) { var width = (typeof w === 'number' ? this.em(w) : w); this.adaptor.setStyle(cell, 'width', width); this.adaptor.setStyle(cell, 'maxWidth', width); this.adaptor.setStyle(cell, 'minWidth', width); } } } catch (e_8_1) { e_8 = { error: e_8_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_8) throw e_8.error; } } } } catch (e_7_1) { e_7 = { error: e_7_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_7) throw e_7.error; } } }; CHTMLmtable.prototype.handleRowSpacing = function () { var e_9, _a, e_10, _b; var spacing = this.getEmHalfSpacing(this.fSpace[1], this.rSpace); var frame = this.frame; var i = 0; try { for (var _c = __values(this.childNodes), _d = _c.next(); !_d.done; _d = _c.next()) { var row = _d.value; var tspace = spacing[i++]; var bspace = spacing[i]; try { for (var _e = (e_10 = void 0, __values(row.childNodes)), _f = _e.next(); !_f.done; _f = _e.next()) { var cell = _f.value; if ((i > 1 && tspace !== '0.215em') || (frame && i === 1)) { this.adaptor.setStyle(cell.chtml, 'paddingTop', tspace); } if ((i < this.numRows && bspace !== '0.215em') || (frame && i === this.numRows)) { this.adaptor.setStyle(cell.chtml, 'paddingBottom', bspace); } } } catch (e_10_1) { e_10 = { error: e_10_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_10) throw e_10.error; } } } } catch (e_9_1) { e_9 = { error: e_9_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_9) throw e_9.error; } } }; CHTMLmtable.prototype.handleRowLines = function () { var e_11, _a, e_12, _b; if (this.node.attributes.get('rowlines') === 'none') return; var lines = this.getRowAttributes('rowlines'); var i = 0; try { for (var _c = __values(this.childNodes.slice(1)), _d = _c.next(); !_d.done; _d = _c.next()) { var row = _d.value; var line = lines[i++]; if (line === 'none') continue; try { for (var _e = (e_12 = void 0, __values(this.adaptor.childNodes(row.chtml))), _f = _e.next(); !_f.done; _f = _e.next()) { var cell = _f.value; this.adaptor.setStyle(cell, 'borderTop', '.07em ' + line); } } catch (e_12_1) { e_12 = { error: e_12_1 }; } finally { try { if (_f && !_f.done && (_b = _e.return)) _b.call(_e); } finally { if (e_12) throw e_12.error; } } } } catch (e_11_1) { e_11 = { error: e_11_1 }; } finally { try { if (_d && !_d.done && (_a = _c.return)) _a.call(_c); } finally { if (e_11) throw e_11.error; } } }; CHTMLmtable.prototype.handleEqualRows = function () { if (!this.node.attributes.get('equalrows')) return; var space = this.getRowHalfSpacing(); var _a = this.getTableData(), H = _a.H, D = _a.D, NH = _a.NH, ND = _a.ND; var HD = this.getEqualRowHeight(); for (var i = 0; i < this.numRows; i++) { var row = this.childNodes[i]; if (HD !== NH[i] + ND[i]) { this.setRowHeight(row, HD, (HD - H[i] + D[i]) / 2, space[i] + space[i + 1]); } } }; CHTMLmtable.prototype.setRowHeight = function (row, HD, D, space) { var e_13, _a; this.adaptor.setStyle(row.chtml, 'height', this.em(HD + space)); var ralign = row.node.attributes.get('rowalign'); try { for (var _b = __values(row.childNodes), _c = _b.next(); !_c.done; _c = _b.next()) { var cell = _c.value; if (this.setCellBaseline(cell, ralign, HD, D)) break; } } catch (e_13_1) { e_13 = { error: e_13_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_13) throw e_13.error; } } }; CHTMLmtable.prototype.setCellBaseline = function (cell, ralign, HD, D) { var calign = cell.node.attributes.get('rowalign'); if (calign === 'baseline' || calign === 'axis') { var adaptor = this.adaptor; var child = adaptor.lastChild(cell.chtml); adaptor.setStyle(child, 'height', this.em(HD)); adaptor.setStyle(child, 'verticalAlign', this.em(-D)); var row = cell.parent; if ((!row.node.isKind('mlabeledtr') || cell !== row.childNodes[0]) && (ralign === 'baseline' || ralign === 'axis')) { return true; } } return false; }; CHTMLmtable.prototype.handleFrame = function () { if (this.frame) { this.adaptor.setStyle(this.itable, 'border', '.07em ' + this.node.attributes.get('frame')); } }; CHTMLmtable.prototype.handleWidth = function () { var adaptor = this.adaptor; var _a = this.getBBox(), w = _a.w, L = _a.L, R = _a.R; adaptor.setStyle(this.chtml, 'minWidth', this.em(L + w + R)); var W = this.node.attributes.get('width'); if (string_js_1.isPercent(W)) { adaptor.setStyle(this.chtml, 'width', ''); adaptor.setAttribute(this.chtml, 'width', 'full'); } else if (!this.hasLabels) { if (W === 'auto') return; W = this.em(this.length2em(W) + 2 * this.fLine); } var table = adaptor.firstChild(this.chtml); adaptor.setStyle(table, 'width', W); adaptor.setStyle(table, 'minWidth', this.em(w)); if (L || R) { adaptor.setStyle(this.chtml, 'margin', ''); if (L === R) { adaptor.setStyle(table, 'margin', '0 ' + this.em(R)); } else { adaptor.setStyle(table, 'margin', '0 ' + this.em(R) + ' 0 ' + this.em(L)); } } adaptor.setAttribute(this.itable, 'width', 'full'); }; CHTMLmtable.prototype.handleAlign = function () { var _a = __read(this.getAlignmentRow(), 2), align = _a[0], row = _a[1]; if (row === null) { if (align !== 'axis') { this.adaptor.setAttribute(this.chtml, 'align', align); } } else { var y = this.getVerticalPosition(row, align); this.adaptor.setAttribute(this.chtml, 'align', 'top'); this.adaptor.setStyle(this.chtml, 'verticalAlign', this.em(y)); } }; CHTMLmtable.prototype.handleJustify = function () { var align = this.getAlignShift()[0]; if (align !== 'center') { this.adaptor.setAttribute(this.chtml, 'justify', align); } }; CHTMLmtable.prototype.handleLabels = function () { if (!this.hasLabels) return; var labels = this.labels; var attributes = this.node.attributes; var adaptor = this.adaptor; var side = attributes.get('side'); adaptor.setAttribute(this.chtml, 'side', side); adaptor.setAttribute(labels, 'align', side); adaptor.setStyle(labels, side, '0'); var _a = __read(this.addLabelPadding(side), 2), align = _a[0], shift = _a[1]; if (shift) { var table = adaptor.firstChild(this.chtml); this.setIndent(table, align, shift); } this.updateRowHeights(); this.addLabelSpacing(); }; CHTMLmtable.prototype.addLabelPadding = function (side) { var _a = __read(this.getPadAlignShift(side), 3), align = _a[1], shift = _a[2]; var styles = {}; if (side === 'right') { var W = this.node.attributes.get('width'); var _b = this.getBBox(), w = _b.w, L = _b.L, R = _b.R; styles.style = { width: (string_js_1.isPercent(W) ? 'calc(' + W + ' + ' + this.em(L + R) + ')' : this.em(L + w + R)) }; } this.adaptor.append(this.chtml, this.html('mjx-labels', styles, [this.labels])); return [align, shift]; }; CHTMLmtable.prototype.updateRowHeights = function () { if (this.node.attributes.get('equalrows')) return; var _a = this.getTableData(), H = _a.H, D = _a.D, NH = _a.NH, ND = _a.ND; var space = this.getRowHalfSpacing(); for (var i = 0; i < this.numRows; i++) { var row = this.childNodes[i]; if (H[i] !== NH[i] || D[i] !== ND[i]) { this.setRowHeight(row, H[i] + D[i], D[i], space[i] + space[i + 1]); } else if (row.node.isKind('mlabeledtr')) { this.setCellBaseline(row.childNodes[0], '', H[i] + D[i], D[i]); } } }; CHTMLmtable.prototype.addLabelSpacing = function () { var adaptor = this.adaptor; var equal = this.node.attributes.get('equalrows'); var _a = this.getTableData(), H = _a.H, D = _a.D; var HD = (equal ? this.getEqualRowHeight() : 0); var space = this.getRowHalfSpacing(); var h = this.fLine; var current = adaptor.firstChild(this.labels); for (var i = 0; i < this.numRows; i++) { var row = this.childNodes[i]; if (row.node.isKind('mlabeledtr')) { h && adaptor.insert(this.html('mjx-mtr', { style: { height: this.em(h) } }), current); adaptor.setStyle(current, 'height', this.em((equal ? HD : H[i] + D[i]) + space[i] + space[i + 1])); current = adaptor.next(current); h = this.rLines[i]; } else { h += space[i] + (equal ? HD : H[i] + D[i]) + space[i + 1] + this.rLines[i]; } } }; CHTMLmtable.kind = mtable_js_2.MmlMtable.prototype.kind; CHTMLmtable.styles = { 'mjx-mtable': { 'vertical-align': '.25em', 'text-align': 'center', 'position': 'relative', 'box-sizing': 'border-box' }, 'mjx-labels': { position: 'absolute', left: 0, top: 0 }, 'mjx-table': { 'display': 'inline-block', 'vertical-align': '-.5ex' }, 'mjx-table > mjx-itable': { 'vertical-align': 'middle', 'text-align': 'left', 'box-sizing': 'border-box' }, 'mjx-labels > mjx-itable': { position: 'absolute', top: 0 }, 'mjx-mtable[justify="left"]': { 'text-align': 'left' }, 'mjx-mtable[justify="right"]': { 'text-align': 'right' }, 'mjx-mtable[justify="left"][side="left"]': { 'padding-right': '0 ! important' }, 'mjx-mtable[justify="left"][side="right"]': { 'padding-left': '0 ! important' }, 'mjx-mtable[justify="right"][side="left"]': { 'padding-right': '0 ! important' }, 'mjx-mtable[justify="right"][side="right"]': { 'padding-left': '0 ! important' }, 'mjx-mtable[align]': { 'vertical-align': 'baseline' }, 'mjx-mtable[align="top"] > mjx-table': { 'vertical-align': 'top' }, 'mjx-mtable[align="bottom"] > mjx-table': { 'vertical-align': 'bottom' }, 'mjx-mtable[side="right"] mjx-labels': { 'min-width': '100%' } }; return CHTMLmtable; }(mtable_js_1.CommonMtableMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmtable = CHTMLmtable; //# sourceMappingURL=mtable.js.map /***/ }), /* 55 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMtableMixin = void 0; var BBox_js_1 = __webpack_require__(1); var string_js_1 = __webpack_require__(3); var numeric_js_1 = __webpack_require__(92); function CommonMtableMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.numCols = 0; _this.numRows = 0; _this.data = null; _this.pwidthCells = []; _this.pWidth = 0; _this.numCols = numeric_js_1.max(_this.tableRows.map(function (row) { return row.numCells; })); _this.numRows = _this.childNodes.length; _this.hasLabels = _this.childNodes.reduce(function (value, row) { return value || row.node.isKind('mlabeledtr'); }, false); _this.findContainer(); _this.isTop = !_this.container || (_this.container.node.isKind('math') && !_this.container.parent); if (_this.isTop) { _this.jax.table = _this; } _this.getPercentageWidth(); var attributes = _this.node.attributes; _this.frame = attributes.get('frame') !== 'none'; _this.fLine = (_this.frame ? .07 : 0); _this.fSpace = (_this.frame ? _this.convertLengths(_this.getAttributeArray('framespacing')) : [0, 0]); _this.cSpace = _this.convertLengths(_this.getColumnAttributes('columnspacing')); _this.rSpace = _this.convertLengths(_this.getRowAttributes('rowspacing')); _this.cLines = _this.getColumnAttributes('columnlines').map(function (x) { return (x === 'none' ? 0 : .07); }); _this.rLines = _this.getRowAttributes('rowlines').map(function (x) { return (x === 'none' ? 0 : .07); }); _this.cWidths = _this.getColumnWidths(); _this.stretchRows(); _this.stretchColumns(); return _this; } Object.defineProperty(class_1.prototype, "tableRows", { get: function () { return this.childNodes; }, enumerable: false, configurable: true }); class_1.prototype.findContainer = function () { var node = this; var parent = node.parent; while (parent && (parent.node.notParent || parent.node.isKind('mrow'))) { node = parent; parent = parent.parent; } this.container = parent; this.containerI = node.node.childPosition(); }; class_1.prototype.getPercentageWidth = function () { if (this.hasLabels) { this.bbox.pwidth = BBox_js_1.BBox.fullWidth; } else { var width = this.node.attributes.get('width'); if (string_js_1.isPercent(width)) { this.bbox.pwidth = width; } } }; class_1.prototype.stretchRows = function () { var equal = this.node.attributes.get('equalrows'); var HD = (equal ? this.getEqualRowHeight() : 0); var _a = (equal ? this.getTableData() : { H: [0], D: [0] }), H = _a.H, D = _a.D; var rows = this.tableRows; for (var i = 0; i < this.numRows; i++) { var hd = (equal ? [(HD + H[i] - D[i]) / 2, (HD - H[i] + D[i]) / 2] : null); rows[i].stretchChildren(hd); } }; class_1.prototype.stretchColumns = function () { for (var i = 0; i < this.numCols; i++) { var width = (typeof this.cWidths[i] === 'number' ? this.cWidths[i] : null); this.stretchColumn(i, width); } }; class_1.prototype.stretchColumn = function (i, W) { var e_1, _a, e_2, _b, e_3, _c; var stretchy = []; try { for (var _d = __values(this.tableRows), _e = _d.next(); !_e.done; _e = _d.next()) { var row = _e.value; var cell = row.getChild(i); if (cell) { var child = cell.childNodes[0]; if (child.stretch.dir === 0 && child.canStretch(2)) { stretchy.push(child); } } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_1) throw e_1.error; } } var count = stretchy.length; var nodeCount = this.childNodes.length; if (count && nodeCount > 1) { if (W === null) { W = 0; var all = (count > 1 && count === nodeCount); try { for (var _f = __values(this.tableRows), _g = _f.next(); !_g.done; _g = _f.next()) { var row = _g.value; var cell = row.getChild(i); if (cell) { var child = cell.childNodes[0]; var noStretch = (child.stretch.dir === 0); if (all || noStretch) { var w = child.getBBox(noStretch).w; if (w > W) { W = w; } } } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_2) throw e_2.error; } } } try { for (var stretchy_1 = __values(stretchy), stretchy_1_1 = stretchy_1.next(); !stretchy_1_1.done; stretchy_1_1 = stretchy_1.next()) { var child = stretchy_1_1.value; child.coreMO().getStretchedVariant([W]); } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (stretchy_1_1 && !stretchy_1_1.done && (_c = stretchy_1.return)) _c.call(stretchy_1); } finally { if (e_3) throw e_3.error; } } } }; class_1.prototype.getTableData = function () { if (this.data) { return this.data; } var H = new Array(this.numRows).fill(0); var D = new Array(this.numRows).fill(0); var W = new Array(this.numCols).fill(0); var NH = new Array(this.numRows); var ND = new Array(this.numRows); var LW = [0]; var rows = this.tableRows; for (var j = 0; j < rows.length; j++) { var row = rows[j]; for (var i = 0; i < row.numCells; i++) { var cell = row.getChild(i); this.updateHDW(cell, i, j, H, D, W); this.recordPWidthCell(cell, i); } NH[j] = H[j]; ND[j] = D[j]; if (row.labeled) { this.updateHDW(row.childNodes[0], 0, j, H, D, LW); } } var L = LW[0]; this.data = { H: H, D: D, W: W, NH: NH, ND: ND, L: L }; return this.data; }; class_1.prototype.updateHDW = function (cell, i, j, H, D, W) { if (W === void 0) { W = null; } var _a = cell.getBBox(), h = _a.h, d = _a.d, w = _a.w; if (h < .75) h = .75; if (d < .25) d = .25; if (h > H[j]) H[j] = h; if (d > D[j]) D[j] = d; if (W && w > W[i]) W[i] = w; }; class_1.prototype.recordPWidthCell = function (cell, i) { if (cell.childNodes[0] && cell.childNodes[0].getBBox().pwidth) { this.pwidthCells.push([cell, i]); } }; class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } var _a = this.getTableData(), H = _a.H, D = _a.D; var height, width; if (this.node.attributes.get('equalrows')) { var HD = this.getEqualRowHeight(); height = numeric_js_1.sum([].concat(this.rLines, this.rSpace)) + HD * this.numRows; } else { height = numeric_js_1.sum(H.concat(D, this.rLines, this.rSpace)); } height += 2 * (this.fLine + this.fSpace[1]); var CW = this.getComputedWidths(); width = numeric_js_1.sum(CW.concat(this.cLines, this.cSpace)) + 2 * (this.fLine + this.fSpace[0]); var w = this.node.attributes.get('width'); if (w !== 'auto') { width = Math.max(this.length2em(w, 0) + 2 * this.fLine, width); } var _b = __read(this.getBBoxHD(height), 2), h = _b[0], d = _b[1]; bbox.h = h; bbox.d = d; bbox.w = width; var _c = __read(this.getBBoxLR(), 2), L = _c[0], R = _c[1]; bbox.L = L; bbox.R = R; if (!string_js_1.isPercent(w)) { this.setColumnPWidths(); } }; class_1.prototype.setChildPWidths = function (_recompute, cwidth, _clear) { var width = this.node.attributes.get('width'); if (!string_js_1.isPercent(width)) return false; if (!this.hasLabels) { this.bbox.pwidth = ''; this.container.bbox.pwidth = ''; } var _a = this.bbox, w = _a.w, L = _a.L, R = _a.R; var W = Math.max(w, this.length2em(width, Math.max(cwidth, L + w + R))); var cols = (this.node.attributes.get('equalcolumns') ? Array(this.numCols).fill(this.percent(1 / Math.max(1, this.numCols))) : this.getColumnAttributes('columnwidth', 0)); this.cWidths = this.getColumnWidthsFixed(cols, W); var CW = this.getComputedWidths(); this.pWidth = numeric_js_1.sum(CW.concat(this.cLines, this.cSpace)) + 2 * (this.fLine + this.fSpace[0]); if (this.isTop) { this.bbox.w = this.pWidth; } this.setColumnPWidths(); if (this.pWidth !== w) { this.parent.invalidateBBox(); } return this.pWidth !== w; }; class_1.prototype.setColumnPWidths = function () { var e_4, _a; var W = this.cWidths; try { for (var _b = __values(this.pwidthCells), _c = _b.next(); !_c.done; _c = _b.next()) { var _d = __read(_c.value, 2), cell = _d[0], i = _d[1]; if (cell.setChildPWidths(false, W[i])) { cell.invalidateBBox(); cell.getBBox(); } } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_4) throw e_4.error; } } }; class_1.prototype.getBBoxHD = function (height) { var _a = __read(this.getAlignmentRow(), 2), align = _a[0], row = _a[1]; if (row === null) { var a = this.font.params.axis_height; var h2 = height / 2; var HD = { top: [0, height], center: [h2, h2], bottom: [height, 0], baseline: [h2, h2], axis: [h2 + a, h2 - a] }; return HD[align] || [h2, h2]; } else { var y = this.getVerticalPosition(row, align); return [y, height - y]; } }; class_1.prototype.getBBoxLR = function () { if (this.hasLabels) { var side = this.node.attributes.get('side'); var _a = __read(this.getPadAlignShift(side), 2), pad = _a[0], align = _a[1]; return (align === 'center' ? [pad, pad] : side === 'left' ? [pad, 0] : [0, pad]); } return [0, 0]; }; class_1.prototype.getPadAlignShift = function (side) { var L = this.getTableData().L; var sep = this.length2em(this.node.attributes.get('minlabelspacing')); var pad = L + sep; var _a = __read((this.styles == null ? ['', ''] : [this.styles.get('padding-left'), this.styles.get('padding-right')]), 2), lpad = _a[0], rpad = _a[1]; if (lpad || rpad) { pad = Math.max(pad, this.length2em(lpad || '0'), this.length2em(rpad || '0')); } var _b = __read(this.getAlignShift(), 2), align = _b[0], shift = _b[1]; if (align === side) { shift = (side === 'left' ? Math.max(pad, shift) - pad : Math.min(-pad, shift) + pad); } return [pad, align, shift]; }; class_1.prototype.getAlignShift = function () { return (this.isTop ? _super.prototype.getAlignShift.call(this) : [this.container.getChildAlign(this.containerI), 0]); }; class_1.prototype.getWidth = function () { return this.pWidth || this.getBBox().w; }; class_1.prototype.getEqualRowHeight = function () { var _a = this.getTableData(), H = _a.H, D = _a.D; var HD = Array.from(H.keys()).map(function (i) { return H[i] + D[i]; }); return Math.max.apply(Math, HD); }; class_1.prototype.getComputedWidths = function () { var _this = this; var W = this.getTableData().W; var CW = Array.from(W.keys()).map(function (i) { return (typeof _this.cWidths[i] === 'number' ? _this.cWidths[i] : W[i]); }); if (this.node.attributes.get('equalcolumns')) { CW = Array(CW.length).fill(numeric_js_1.max(CW)); } return CW; }; class_1.prototype.getColumnWidths = function () { var width = this.node.attributes.get('width'); if (this.node.attributes.get('equalcolumns')) { return this.getEqualColumns(width); } var swidths = this.getColumnAttributes('columnwidth', 0); if (width === 'auto') { return this.getColumnWidthsAuto(swidths); } if (string_js_1.isPercent(width)) { return this.getColumnWidthsPercent(swidths); } return this.getColumnWidthsFixed(swidths, this.length2em(width)); }; class_1.prototype.getEqualColumns = function (width) { var n = Math.max(1, this.numCols); var cwidth; if (width === 'auto') { var W = this.getTableData().W; cwidth = numeric_js_1.max(W); } else if (string_js_1.isPercent(width)) { cwidth = this.percent(1 / n); } else { var w = numeric_js_1.sum([].concat(this.cLines, this.cSpace)) + 2 * this.fSpace[0]; cwidth = Math.max(0, this.length2em(width) - w) / n; } return Array(this.numCols).fill(cwidth); }; class_1.prototype.getColumnWidthsAuto = function (swidths) { var _this = this; return swidths.map(function (x) { if (x === 'auto' || x === 'fit') return null; if (string_js_1.isPercent(x)) return x; return _this.length2em(x); }); }; class_1.prototype.getColumnWidthsPercent = function (swidths) { var _this = this; var hasFit = swidths.indexOf('fit') >= 0; var W = (hasFit ? this.getTableData() : { W: null }).W; return Array.from(swidths.keys()).map(function (i) { var x = swidths[i]; if (x === 'fit') return null; if (x === 'auto') return (hasFit ? W[i] : null); if (string_js_1.isPercent(x)) return x; return _this.length2em(x); }); }; class_1.prototype.getColumnWidthsFixed = function (swidths, width) { var _this = this; var indices = Array.from(swidths.keys()); var fit = indices.filter(function (i) { return swidths[i] === 'fit'; }); var auto = indices.filter(function (i) { return swidths[i] === 'auto'; }); var n = fit.length || auto.length; var W = (n ? this.getTableData() : { W: null }).W; var cwidth = width - numeric_js_1.sum([].concat(this.cLines, this.cSpace)) - 2 * this.fSpace[0]; var dw = cwidth; indices.forEach(function (i) { var x = swidths[i]; dw -= (x === 'fit' || x === 'auto' ? W[i] : _this.length2em(x, width)); }); var fw = (n && dw > 0 ? dw / n : 0); return indices.map(function (i) { var x = swidths[i]; if (x === 'fit') return W[i] + fw; if (x === 'auto') return W[i] + (fit.length === 0 ? fw : 0); return _this.length2em(x, cwidth); }); }; class_1.prototype.getVerticalPosition = function (i, align) { var equal = this.node.attributes.get('equalrows'); var _a = this.getTableData(), H = _a.H, D = _a.D; var HD = (equal ? this.getEqualRowHeight() : 0); var space = this.getRowHalfSpacing(); var y = this.fLine; for (var j = 0; j < i; j++) { y += space[j] + (equal ? HD : H[j] + D[j]) + space[j + 1] + this.rLines[j]; } var _b = __read((equal ? [(HD + H[i] - D[i]) / 2, (HD - H[i] + D[i]) / 2] : [H[i], D[i]]), 2), h = _b[0], d = _b[1]; var offset = { top: 0, center: space[i] + (h + d) / 2, bottom: space[i] + h + d + space[i + 1], baseline: space[i] + h, axis: space[i] + h - .25 }; y += offset[align] || 0; return y; }; class_1.prototype.getEmHalfSpacing = function (fspace, space) { var fspaceEm = this.em(fspace); var spaceEm = this.addEm(space, 2); spaceEm.unshift(fspaceEm); spaceEm.push(fspaceEm); return spaceEm; }; class_1.prototype.getRowHalfSpacing = function () { var space = this.rSpace.map(function (x) { return x / 2; }); space.unshift(this.fSpace[1]); space.push(this.fSpace[1]); return space; }; class_1.prototype.getColumnHalfSpacing = function () { var space = this.cSpace.map(function (x) { return x / 2; }); space.unshift(this.fSpace[0]); space.push(this.fSpace[0]); return space; }; class_1.prototype.getAlignmentRow = function () { var _a = __read(string_js_1.split(this.node.attributes.get('align')), 2), align = _a[0], row = _a[1]; if (row == null) return [align, null]; var i = parseInt(row); if (i < 0) i += this.numRows + 1; return [align, i < 1 || i > this.numRows ? null : i - 1]; }; class_1.prototype.getColumnAttributes = function (name, i) { if (i === void 0) { i = 1; } var n = this.numCols - i; var columns = this.getAttributeArray(name); if (columns.length === 0) return null; while (columns.length < n) { columns.push(columns[columns.length - 1]); } if (columns.length > n) { columns.splice(n); } return columns; }; class_1.prototype.getRowAttributes = function (name, i) { if (i === void 0) { i = 1; } var n = this.numRows - i; var rows = this.getAttributeArray(name); if (rows.length === 0) return null; while (rows.length < n) { rows.push(rows[rows.length - 1]); } if (rows.length > n) { rows.splice(n); } return rows; }; class_1.prototype.getAttributeArray = function (name) { var value = this.node.attributes.get(name); if (!value) return [this.node.attributes.getDefault(name)]; return string_js_1.split(value); }; class_1.prototype.addEm = function (list, n) { var _this = this; if (n === void 0) { n = 1; } if (!list) return null; return list.map(function (x) { return _this.em(x / n); }); }; class_1.prototype.convertLengths = function (list) { var _this = this; if (!list) return null; return list.map(function (x) { return _this.length2em(x); }); }; return class_1; }(Base)); } exports.CommonMtableMixin = CommonMtableMixin; //# sourceMappingURL=mtable.js.map /***/ }), /* 56 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmlabeledtr = exports.CHTMLmtr = void 0; var Wrapper_js_1 = __webpack_require__(0); var mtr_js_1 = __webpack_require__(12); var mtr_js_2 = __webpack_require__(12); var mtr_js_3 = __webpack_require__(94); var CHTMLmtr = (function (_super) { __extends(CHTMLmtr, _super); function CHTMLmtr() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmtr.prototype.toCHTML = function (parent) { _super.prototype.toCHTML.call(this, parent); var align = this.node.attributes.get('rowalign'); if (align !== 'baseline') { this.adaptor.setAttribute(this.chtml, 'rowalign', align); } }; CHTMLmtr.kind = mtr_js_3.MmlMtr.prototype.kind; CHTMLmtr.styles = { 'mjx-mtr': { display: 'table-row', }, 'mjx-mtr[rowalign="top"] > mjx-mtd': { 'vertical-align': 'top' }, 'mjx-mtr[rowalign="center"] > mjx-mtd': { 'vertical-align': 'middle' }, 'mjx-mtr[rowalign="bottom"] > mjx-mtd': { 'vertical-align': 'bottom' }, 'mjx-mtr[rowalign="baseline"] > mjx-mtd': { 'vertical-align': 'baseline' }, 'mjx-mtr[rowalign="axis"] > mjx-mtd': { 'vertical-align': '.25em' } }; return CHTMLmtr; }(mtr_js_1.CommonMtrMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmtr = CHTMLmtr; var CHTMLmlabeledtr = (function (_super) { __extends(CHTMLmlabeledtr, _super); function CHTMLmlabeledtr() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmlabeledtr.prototype.toCHTML = function (parent) { _super.prototype.toCHTML.call(this, parent); var child = this.adaptor.firstChild(this.chtml); if (child) { this.adaptor.remove(child); var align = this.node.attributes.get('rowalign'); var attr = (align !== 'baseline' && align !== 'axis' ? { rowalign: align } : {}); var row = this.html('mjx-mtr', attr, [child]); CHTMLmtr.used = true; this.adaptor.append(this.parent.labels, row); } }; CHTMLmlabeledtr.kind = mtr_js_3.MmlMlabeledtr.prototype.kind; CHTMLmlabeledtr.styles = { 'mjx-mlabeledtr': { display: 'table-row' }, 'mjx-mlabeledtr[rowalign="top"] > mjx-mtd': { 'vertical-align': 'top' }, 'mjx-mlabeledtr[rowalign="center"] > mjx-mtd': { 'vertical-align': 'middle' }, 'mjx-mlabeledtr[rowalign="bottom"] > mjx-mtd': { 'vertical-align': 'bottom' }, 'mjx-mlabeledtr[rowalign="baseline"] > mjx-mtd': { 'vertical-align': 'baseline' }, 'mjx-mlabeledtr[rowalign="axis"] > mjx-mtd': { 'vertical-align': '.25em' } }; return CHTMLmlabeledtr; }(mtr_js_2.CommonMlabeledtrMixin(CHTMLmtr))); exports.CHTMLmlabeledtr = CHTMLmlabeledtr; //# sourceMappingURL=mtr.js.map /***/ }), /* 57 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmtd = void 0; var Wrapper_js_1 = __webpack_require__(0); var mtd_js_1 = __webpack_require__(58); var mtd_js_2 = __webpack_require__(95); var CHTMLmtd = (function (_super) { __extends(CHTMLmtd, _super); function CHTMLmtd() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmtd.prototype.toCHTML = function (parent) { _super.prototype.toCHTML.call(this, parent); var ralign = this.node.attributes.get('rowalign'); var calign = this.node.attributes.get('columnalign'); var palign = this.parent.node.attributes.get('rowalign'); if (ralign !== palign) { this.adaptor.setAttribute(this.chtml, 'rowalign', ralign); } if (calign !== 'center' && (this.parent.kind !== 'mlabeledtr' || this !== this.parent.childNodes[0] || calign !== this.parent.parent.node.attributes.get('side'))) { this.adaptor.setStyle(this.chtml, 'textAlign', calign); } this.adaptor.append(this.chtml, this.html('mjx-tstrut')); }; CHTMLmtd.kind = mtd_js_2.MmlMtd.prototype.kind; CHTMLmtd.styles = { 'mjx-mtd': { display: 'table-cell', 'text-align': 'center', 'padding': '.215em .4em' }, 'mjx-mtd:first-child': { 'padding-left': 0 }, 'mjx-mtd:last-child': { 'padding-right': 0 }, 'mjx-mtable > * > mjx-itable > *:first-child > mjx-mtd': { 'padding-top': 0 }, 'mjx-mtable > * > mjx-itable > *:last-child > mjx-mtd': { 'padding-bottom': 0 }, 'mjx-tstrut': { display: 'inline-block', height: '1em', 'vertical-align': '-.25em' }, 'mjx-labels[align="left"] > mjx-mtr > mjx-mtd': { 'text-align': 'left' }, 'mjx-labels[align="right"] > mjx-mtr > mjx-mtd': { 'text-align': 'right' }, 'mjx-mtr mjx-mtd[rowalign="top"], mjx-mlabeledtr mjx-mtd[rowalign="top"]': { 'vertical-align': 'top' }, 'mjx-mtr mjx-mtd[rowalign="center"], mjx-mlabeledtr mjx-mtd[rowalign="center"]': { 'vertical-align': 'middle' }, 'mjx-mtr mjx-mtd[rowalign="bottom"], mjx-mlabeledtr mjx-mtd[rowalign="bottom"]': { 'vertical-align': 'bottom' }, 'mjx-mtr mjx-mtd[rowalign="baseline"], mjx-mlabeledtr mjx-mtd[rowalign="baseline"]': { 'vertical-align': 'baseline' }, 'mjx-mtr mjx-mtd[rowalign="axis"], mjx-mlabeledtr mjx-mtd[rowalign="axis"]': { 'vertical-align': '.25em' } }; return CHTMLmtd; }(mtd_js_1.CommonMtdMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmtd = CHTMLmtd; //# sourceMappingURL=mtd.js.map /***/ }), /* 58 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMtdMixin = void 0; function CommonMtdMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } Object.defineProperty(class_1.prototype, "fixesPWidth", { get: function () { return false; }, enumerable: false, configurable: true }); class_1.prototype.invalidateBBox = function () { this.bboxComputed = false; }; class_1.prototype.getWrapWidth = function (_j) { var table = this.parent.parent; var row = this.parent; var i = this.node.childPosition() - (row.labeled ? 1 : 0); return (typeof (table.cWidths[i]) === 'number' ? table.cWidths[i] : table.getTableData().W[i]); }; class_1.prototype.getChildAlign = function (_i) { return this.node.attributes.get('columnalign'); }; return class_1; }(Base)); } exports.CommonMtdMixin = CommonMtdMixin; //# sourceMappingURL=mtd.js.map /***/ }), /* 59 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmaction = void 0; var Wrapper_js_1 = __webpack_require__(0); var maction_js_1 = __webpack_require__(13); var maction_js_2 = __webpack_require__(13); var maction_js_3 = __webpack_require__(96); var CHTMLmaction = (function (_super) { __extends(CHTMLmaction, _super); function CHTMLmaction() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmaction.prototype.toCHTML = function (parent) { var chtml = this.standardCHTMLnode(parent); var child = this.selected; child.toCHTML(chtml); this.action(this, this.data); }; CHTMLmaction.prototype.setEventHandler = function (type, handler) { this.chtml.addEventListener(type, handler); }; CHTMLmaction.kind = maction_js_3.MmlMaction.prototype.kind; CHTMLmaction.styles = { 'mjx-maction': { position: 'relative' }, 'mjx-maction > mjx-tool': { display: 'none', position: 'absolute', bottom: 0, right: 0, width: 0, height: 0, 'z-index': 500 }, 'mjx-tool > mjx-tip': { display: 'inline-block', padding: '.2em', border: '1px solid #888', 'font-size': '70%', 'background-color': '#F8F8F8', color: 'black', 'box-shadow': '2px 2px 5px #AAAAAA' }, 'mjx-maction[toggle]': { cursor: 'pointer' }, 'mjx-status': { display: 'block', position: 'fixed', left: '1em', bottom: '1em', 'min-width': '25%', padding: '.2em .4em', border: '1px solid #888', 'font-size': '90%', 'background-color': '#F8F8F8', color: 'black' } }; CHTMLmaction.actions = new Map([ ['toggle', [function (node, _data) { node.adaptor.setAttribute(node.chtml, 'toggle', node.node.attributes.get('selection')); var math = node.factory.jax.math; var document = node.factory.jax.document; var mml = node.node; node.setEventHandler('click', function (event) { if (!math.end.node) { math.start.node = math.end.node = math.typesetRoot; math.start.n = math.end.n = 0; } mml.nextToggleSelection(); math.rerender(document); event.stopPropagation(); }); }, {}]], ['tooltip', [function (node, data) { var tip = node.childNodes[1]; if (!tip) return; if (tip.node.isKind('mtext')) { var text = tip.node.getText(); node.adaptor.setAttribute(node.chtml, 'title', text); } else { var adaptor_1 = node.adaptor; var tool_1 = adaptor_1.append(node.chtml, node.html('mjx-tool', { style: { bottom: node.em(-node.dy), right: node.em(-node.dx) } }, [node.html('mjx-tip')])); tip.toCHTML(adaptor_1.firstChild(tool_1)); node.setEventHandler('mouseover', function (event) { data.stopTimers(node, data); var timeout = setTimeout(function () { return adaptor_1.setStyle(tool_1, 'display', 'block'); }, data.postDelay); data.hoverTimer.set(node, timeout); event.stopPropagation(); }); node.setEventHandler('mouseout', function (event) { data.stopTimers(node, data); var timeout = setTimeout(function () { return adaptor_1.setStyle(tool_1, 'display', ''); }, data.clearDelay); data.clearTimer.set(node, timeout); event.stopPropagation(); }); } }, maction_js_2.TooltipData]], ['statusline', [function (node, data) { var tip = node.childNodes[1]; if (!tip) return; if (tip.node.isKind('mtext')) { var adaptor_2 = node.adaptor; var text_1 = tip.node.getText(); adaptor_2.setAttribute(node.chtml, 'statusline', text_1); node.setEventHandler('mouseover', function (event) { if (data.status === null) { var body = adaptor_2.body(adaptor_2.document); data.status = adaptor_2.append(body, node.html('mjx-status', {}, [node.text(text_1)])); } event.stopPropagation(); }); node.setEventHandler('mouseout', function (event) { if (data.status) { adaptor_2.remove(data.status); data.status = null; } event.stopPropagation(); }); } }, { status: null }]] ]); return CHTMLmaction; }(maction_js_1.CommonMactionMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmaction = CHTMLmaction; //# sourceMappingURL=maction.js.map /***/ }), /* 60 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLmglyph = void 0; var Wrapper_js_1 = __webpack_require__(0); var mglyph_js_1 = __webpack_require__(61); var mglyph_js_2 = __webpack_require__(97); var CHTMLmglyph = (function (_super) { __extends(CHTMLmglyph, _super); function CHTMLmglyph() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLmglyph.prototype.toCHTML = function (parent) { var chtml = this.standardCHTMLnode(parent); var _a = this.node.attributes.getList('src', 'alt'), src = _a.src, alt = _a.alt; var styles = { width: this.em(this.width), height: this.em(this.height) }; if (this.valign) { styles.verticalAlign = this.em(this.valign); } var img = this.html('img', { src: src, style: styles, alt: alt, title: alt }); this.adaptor.append(chtml, img); }; CHTMLmglyph.kind = mglyph_js_2.MmlMglyph.prototype.kind; CHTMLmglyph.styles = { 'mjx-mglyph > img': { display: 'inline-block', border: 0, padding: 0 } }; return CHTMLmglyph; }(mglyph_js_1.CommonMglyphMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLmglyph = CHTMLmglyph; //# sourceMappingURL=mglyph.js.map /***/ }), /* 61 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonMglyphMixin = void 0; function CommonMglyphMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = _super.apply(this, __spread(args)) || this; _this.getParameters(); return _this; } class_1.prototype.getParameters = function () { var _a = this.node.attributes.getList('width', 'height', 'valign'), width = _a.width, height = _a.height, valign = _a.valign; this.width = (width === 'auto' ? 1 : this.length2em(width)); this.height = (height === 'auto' ? 1 : this.length2em(height)); this.valign = this.length2em(valign || '0'); }; class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } bbox.w = this.width; bbox.h = this.height + this.valign; bbox.d = -this.valign; }; return class_1; }(Base)); } exports.CommonMglyphMixin = CommonMglyphMixin; //# sourceMappingURL=mglyph.js.map /***/ }), /* 62 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLxml = exports.CHTMLannotationXML = exports.CHTMLannotation = exports.CHTMLsemantics = void 0; var Wrapper_js_1 = __webpack_require__(0); var semantics_js_1 = __webpack_require__(63); var semantics_js_2 = __webpack_require__(98); var MmlNode_js_1 = __webpack_require__(5); var CHTMLsemantics = (function (_super) { __extends(CHTMLsemantics, _super); function CHTMLsemantics() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLsemantics.prototype.toCHTML = function (parent) { var chtml = this.standardCHTMLnode(parent); if (this.childNodes.length) { this.childNodes[0].toCHTML(chtml); } }; CHTMLsemantics.kind = semantics_js_2.MmlSemantics.prototype.kind; return CHTMLsemantics; }(semantics_js_1.CommonSemanticsMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLsemantics = CHTMLsemantics; var CHTMLannotation = (function (_super) { __extends(CHTMLannotation, _super); function CHTMLannotation() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLannotation.prototype.toCHTML = function (parent) { _super.prototype.toCHTML.call(this, parent); }; CHTMLannotation.prototype.computeBBox = function () { return this.bbox; }; CHTMLannotation.kind = semantics_js_2.MmlAnnotation.prototype.kind; return CHTMLannotation; }(Wrapper_js_1.CHTMLWrapper)); exports.CHTMLannotation = CHTMLannotation; var CHTMLannotationXML = (function (_super) { __extends(CHTMLannotationXML, _super); function CHTMLannotationXML() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLannotationXML.kind = semantics_js_2.MmlAnnotationXML.prototype.kind; CHTMLannotationXML.styles = { 'mjx-annotation-xml': { 'font-family': 'initial', 'line-height': 'normal' } }; return CHTMLannotationXML; }(Wrapper_js_1.CHTMLWrapper)); exports.CHTMLannotationXML = CHTMLannotationXML; var CHTMLxml = (function (_super) { __extends(CHTMLxml, _super); function CHTMLxml() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLxml.prototype.toCHTML = function (parent) { this.chtml = this.adaptor.append(parent, this.adaptor.clone(this.node.getXML())); }; CHTMLxml.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } var _a = this.jax.measureXMLnode(this.node.getXML()), w = _a.w, h = _a.h, d = _a.d; bbox.w = w; bbox.h = h; bbox.d = d; }; CHTMLxml.prototype.getStyles = function () { }; CHTMLxml.prototype.getScale = function () { }; CHTMLxml.prototype.getVariant = function () { }; CHTMLxml.kind = MmlNode_js_1.XMLNode.prototype.kind; CHTMLxml.autoStyle = false; return CHTMLxml; }(Wrapper_js_1.CHTMLWrapper)); exports.CHTMLxml = CHTMLxml; //# sourceMappingURL=semantics.js.map /***/ }), /* 63 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonSemanticsMixin = void 0; function CommonSemanticsMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.computeBBox = function (bbox, _recompute) { if (_recompute === void 0) { _recompute = false; } if (this.childNodes.length) { var _a = this.childNodes[0].getBBox(), w = _a.w, h = _a.h, d = _a.d; bbox.w = w; bbox.h = h; bbox.d = d; } }; return class_1; }(Base)); } exports.CommonSemanticsMixin = CommonSemanticsMixin; //# sourceMappingURL=semantics.js.map /***/ }), /* 64 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLTeXAtom = void 0; var Wrapper_js_1 = __webpack_require__(0); var TeXAtom_js_1 = __webpack_require__(65); var TeXAtom_js_2 = __webpack_require__(99); var MmlNode_js_1 = __webpack_require__(5); var CHTMLTeXAtom = (function (_super) { __extends(CHTMLTeXAtom, _super); function CHTMLTeXAtom() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLTeXAtom.prototype.toCHTML = function (parent) { _super.prototype.toCHTML.call(this, parent); this.adaptor.setAttribute(this.chtml, 'texclass', MmlNode_js_1.TEXCLASSNAMES[this.node.texClass]); if (this.node.texClass === MmlNode_js_1.TEXCLASS.VCENTER) { var bbox = this.childNodes[0].getBBox(); var h = bbox.h, d = bbox.d; var a = this.font.params.axis_height; var dh = ((h + d) / 2 + a) - h; this.adaptor.setStyle(this.chtml, 'verticalAlign', this.em(dh)); } }; CHTMLTeXAtom.kind = TeXAtom_js_2.TeXAtom.prototype.kind; return CHTMLTeXAtom; }(TeXAtom_js_1.CommonTeXAtomMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLTeXAtom = CHTMLTeXAtom; //# sourceMappingURL=TeXAtom.js.map /***/ }), /* 65 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonTeXAtomMixin = void 0; var MmlNode_js_1 = __webpack_require__(5); function CommonTeXAtomMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.computeBBox = function (bbox, recompute) { if (recompute === void 0) { recompute = false; } _super.prototype.computeBBox.call(this, bbox, recompute); if (this.childNodes[0] && this.childNodes[0].bbox.ic) { bbox.ic = this.childNodes[0].bbox.ic; } if (this.node.texClass === MmlNode_js_1.TEXCLASS.VCENTER) { var h = bbox.h, d = bbox.d; var a = this.font.params.axis_height; var dh = ((h + d) / 2 + a) - h; bbox.h += dh; bbox.d -= dh; } }; return class_1; }(Base)); } exports.CommonTeXAtomMixin = CommonTeXAtomMixin; //# sourceMappingURL=TeXAtom.js.map /***/ }), /* 66 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHTMLTextNode = void 0; var MmlNode_js_1 = __webpack_require__(5); var Wrapper_js_1 = __webpack_require__(0); var TextNode_js_1 = __webpack_require__(67); var CHTMLTextNode = (function (_super) { __extends(CHTMLTextNode, _super); function CHTMLTextNode() { return _super !== null && _super.apply(this, arguments) || this; } CHTMLTextNode.prototype.toCHTML = function (parent) { var e_1, _a; this.markUsed(); var adaptor = this.adaptor; var variant = this.parent.variant; var text = this.node.getText(); if (variant === '-explicitFont') { var font = this.jax.getFontData(this.parent.styles); adaptor.append(parent, this.jax.unknownText(text, variant, font)); } else { var chars = this.remappedText(text, variant); try { for (var chars_1 = __values(chars), chars_1_1 = chars_1.next(); !chars_1_1.done; chars_1_1 = chars_1.next()) { var n = chars_1_1.value; var data = this.getVariantChar(variant, n)[3]; var font = (data.f ? ' TEX-' + data.f : ''); var node = (data.unknown ? this.jax.unknownText(String.fromCodePoint(n), variant) : this.html('mjx-c', { class: this.char(n) + font })); adaptor.append(parent, node); data.used = true; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (chars_1_1 && !chars_1_1.done && (_a = chars_1.return)) _a.call(chars_1); } finally { if (e_1) throw e_1.error; } } } }; CHTMLTextNode.kind = MmlNode_js_1.TextNode.prototype.kind; CHTMLTextNode.autoStyle = false; CHTMLTextNode.styles = { 'mjx-c': { display: 'inline-block' }, 'mjx-utext': { display: 'inline-block', padding: '.75em 0 .2em 0' } }; return CHTMLTextNode; }(TextNode_js_1.CommonTextNodeMixin(Wrapper_js_1.CHTMLWrapper))); exports.CHTMLTextNode = CHTMLTextNode; //# sourceMappingURL=TextNode.js.map /***/ }), /* 67 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonTextNodeMixin = void 0; function CommonTextNodeMixin(Base) { return (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.computeBBox = function (bbox, _recompute) { var e_1, _a; if (_recompute === void 0) { _recompute = false; } var variant = this.parent.variant; var text = this.node.getText(); if (variant === '-explicitFont') { var font = this.jax.getFontData(this.parent.styles); var _b = this.jax.measureText(text, variant, font), w = _b.w, h = _b.h, d = _b.d; bbox.h = h; bbox.d = d; bbox.w = w; } else { var chars = this.remappedText(text, variant); bbox.empty(); try { for (var chars_1 = __values(chars), chars_1_1 = chars_1.next(); !chars_1_1.done; chars_1_1 = chars_1.next()) { var char = chars_1_1.value; var _c = __read(this.getVariantChar(variant, char), 4), h = _c[0], d = _c[1], w = _c[2], data = _c[3]; if (data.unknown) { var cbox = this.jax.measureText(String.fromCodePoint(char), variant); w = cbox.w; h = cbox.h; d = cbox.d; } bbox.w += w; if (h > bbox.h) bbox.h = h; if (d > bbox.d) bbox.d = d; bbox.ic = data.ic || 0; bbox.sk = data.sk || 0; } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (chars_1_1 && !chars_1_1.done && (_a = chars_1.return)) _a.call(chars_1); } finally { if (e_1) throw e_1.error; } } if (chars.length > 1) { bbox.sk = 0; } bbox.clean(); } }; class_1.prototype.remappedText = function (text, variant) { var c = this.parent.stretch.c; return (c ? [c] : this.parent.remapChars(this.unicodeChars(text, variant))); }; class_1.prototype.getStyles = function () { }; class_1.prototype.getVariant = function () { }; class_1.prototype.getScale = function () { }; class_1.prototype.getSpace = function () { }; return class_1; }(Base)); } exports.CommonTextNodeMixin = CommonTextNodeMixin; //# sourceMappingURL=TextNode.js.map /***/ }), /* 68 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.APPEND = MathJax._.util.Options.APPEND; exports.REMOVE = MathJax._.util.Options.REMOVE; exports.Expandable = MathJax._.util.Options.Expandable; exports.expandable = MathJax._.util.Options.expandable; exports.makeArray = MathJax._.util.Options.makeArray; exports.keys = MathJax._.util.Options.keys; exports.copy = MathJax._.util.Options.copy; exports.insert = MathJax._.util.Options.insert; exports.defaultOptions = MathJax._.util.Options.defaultOptions; exports.userOptions = MathJax._.util.Options.userOptions; exports.selectOptions = MathJax._.util.Options.selectOptions; exports.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys; exports.separateOptions = MathJax._.util.Options.separateOptions; /***/ }), /* 69 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.Styles = MathJax._.util.Styles.Styles; /***/ }), /* 70 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractOutputJax = MathJax._.core.OutputJax.AbstractOutputJax; /***/ }), /* 71 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.protoItem = MathJax._.core.MathItem.protoItem; exports.AbstractMathItem = MathJax._.core.MathItem.AbstractMathItem; exports.STATE = MathJax._.core.MathItem.STATE; exports.newState = MathJax._.core.MathItem.newState; /***/ }), /* 72 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.CssStyles = MathJax._.util.StyleList.CssStyles; /***/ }), /* 73 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractWrapperFactory = MathJax._.core.Tree.WrapperFactory.AbstractWrapperFactory; /***/ }), /* 74 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.AbstractWrapper = MathJax._.core.Tree.Wrapper.AbstractWrapper; /***/ }), /* 75 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMath = MathJax._.core.MmlTree.MmlNodes.math.MmlMath; /***/ }), /* 76 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMi = MathJax._.core.MmlTree.MmlNodes.mi.MmlMi; /***/ }), /* 77 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMo = MathJax._.core.MmlTree.MmlNodes.mo.MmlMo; /***/ }), /* 78 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMn = MathJax._.core.MmlTree.MmlNodes.mn.MmlMn; /***/ }), /* 79 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMs = MathJax._.core.MmlTree.MmlNodes.ms.MmlMs; /***/ }), /* 80 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMtext = MathJax._.core.MmlTree.MmlNodes.mtext.MmlMtext; /***/ }), /* 81 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMspace = MathJax._.core.MmlTree.MmlNodes.mspace.MmlMspace; /***/ }), /* 82 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMpadded = MathJax._.core.MmlTree.MmlNodes.mpadded.MmlMpadded; /***/ }), /* 83 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMenclose = MathJax._.core.MmlTree.MmlNodes.menclose.MmlMenclose; /***/ }), /* 84 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMrow = MathJax._.core.MmlTree.MmlNodes.mrow.MmlMrow; exports.MmlInferredMrow = MathJax._.core.MmlTree.MmlNodes.mrow.MmlInferredMrow; /***/ }), /* 85 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMfenced = MathJax._.core.MmlTree.MmlNodes.mfenced.MmlMfenced; /***/ }), /* 86 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMfrac = MathJax._.core.MmlTree.MmlNodes.mfrac.MmlMfrac; /***/ }), /* 87 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMsqrt = MathJax._.core.MmlTree.MmlNodes.msqrt.MmlMsqrt; /***/ }), /* 88 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMroot = MathJax._.core.MmlTree.MmlNodes.mroot.MmlMroot; /***/ }), /* 89 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMsubsup = MathJax._.core.MmlTree.MmlNodes.msubsup.MmlMsubsup; exports.MmlMsub = MathJax._.core.MmlTree.MmlNodes.msubsup.MmlMsub; exports.MmlMsup = MathJax._.core.MmlTree.MmlNodes.msubsup.MmlMsup; /***/ }), /* 90 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMunderover = MathJax._.core.MmlTree.MmlNodes.munderover.MmlMunderover; exports.MmlMunder = MathJax._.core.MmlTree.MmlNodes.munderover.MmlMunder; exports.MmlMover = MathJax._.core.MmlTree.MmlNodes.munderover.MmlMover; /***/ }), /* 91 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMmultiscripts = MathJax._.core.MmlTree.MmlNodes.mmultiscripts.MmlMmultiscripts; exports.MmlMprescripts = MathJax._.core.MmlTree.MmlNodes.mmultiscripts.MmlMprescripts; exports.MmlNone = MathJax._.core.MmlTree.MmlNodes.mmultiscripts.MmlNone; /***/ }), /* 92 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.sum = MathJax._.util.numeric.sum; exports.max = MathJax._.util.numeric.max; /***/ }), /* 93 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMtable = MathJax._.core.MmlTree.MmlNodes.mtable.MmlMtable; /***/ }), /* 94 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMtr = MathJax._.core.MmlTree.MmlNodes.mtr.MmlMtr; exports.MmlMlabeledtr = MathJax._.core.MmlTree.MmlNodes.mtr.MmlMlabeledtr; /***/ }), /* 95 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMtd = MathJax._.core.MmlTree.MmlNodes.mtd.MmlMtd; /***/ }), /* 96 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMaction = MathJax._.core.MmlTree.MmlNodes.maction.MmlMaction; /***/ }), /* 97 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlMglyph = MathJax._.core.MmlTree.MmlNodes.mglyph.MmlMglyph; /***/ }), /* 98 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.MmlSemantics = MathJax._.core.MmlTree.MmlNodes.semantics.MmlSemantics; exports.MmlAnnotationXML = MathJax._.core.MmlTree.MmlNodes.semantics.MmlAnnotationXML; exports.MmlAnnotation = MathJax._.core.MmlTree.MmlNodes.semantics.MmlAnnotation; /***/ }), /* 99 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.TeXAtom = MathJax._.core.MmlTree.MmlNodes.TeXAtom.TeXAtom; /***/ }), /* 100 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TeXFont", function() { return TeXFont; }); /* harmony import */ var _js_output_chtml_FontData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16); /* harmony import */ var _js_output_chtml_FontData_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_js_output_chtml_FontData_js__WEBPACK_IMPORTED_MODULE_0__); function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } 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); }; } function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } var TeXFont = /*#__PURE__*/function (_FontData) { _inherits(TeXFont, _FontData); var _super = _createSuper(TeXFont); function TeXFont() { _classCallCheck(this, TeXFont); return _super.apply(this, arguments); } return TeXFont; }(_js_output_chtml_FontData_js__WEBPACK_IMPORTED_MODULE_0__["FontData"]); ; TeXFont.OPTIONS = { fontURL: '.' }; /***/ }), /* 101 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(14); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml.js var chtml = __webpack_require__(15); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/FontData.js var FontData = __webpack_require__(16); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Notation.js var Notation = __webpack_require__(40); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrapper.js var Wrapper = __webpack_require__(0); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/WrapperFactory.js var WrapperFactory = __webpack_require__(18); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers.js var Wrappers = __webpack_require__(20); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/TeXAtom.js var TeXAtom = __webpack_require__(64); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/TextNode.js var TextNode = __webpack_require__(66); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/maction.js var maction = __webpack_require__(59); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/math.js var math = __webpack_require__(22); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/menclose.js var menclose = __webpack_require__(38); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mfenced.js var mfenced = __webpack_require__(42); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mfrac.js var mfrac = __webpack_require__(44); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mglyph.js var mglyph = __webpack_require__(60); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mi.js var mi = __webpack_require__(24); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mmultiscripts.js var mmultiscripts = __webpack_require__(52); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mn.js var mn = __webpack_require__(28); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mo.js var mo = __webpack_require__(26); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mpadded.js var mpadded = __webpack_require__(36); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mroot.js var mroot = __webpack_require__(47); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mrow.js var mrow = __webpack_require__(41); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/ms.js var ms = __webpack_require__(30); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mspace.js var mspace = __webpack_require__(34); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/msqrt.js var msqrt = __webpack_require__(11); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/msubsup.js var msubsup = __webpack_require__(7); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mtable.js var mtable = __webpack_require__(54); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mtd.js var mtd = __webpack_require__(57); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mtext.js var mtext = __webpack_require__(32); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/mtr.js var mtr = __webpack_require__(56); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/munderover.js var munderover = __webpack_require__(51); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/scriptbase.js var scriptbase = __webpack_require__(49); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/Wrappers/semantics.js var semantics = __webpack_require__(62); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/FontData.js var common_FontData = __webpack_require__(4); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Notation.js var common_Notation = __webpack_require__(6); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/OutputJax.js var OutputJax = __webpack_require__(17); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrapper.js var common_Wrapper = __webpack_require__(21); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/WrapperFactory.js var common_WrapperFactory = __webpack_require__(19); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/TeXAtom.js var Wrappers_TeXAtom = __webpack_require__(65); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/TextNode.js var Wrappers_TextNode = __webpack_require__(67); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/maction.js var Wrappers_maction = __webpack_require__(13); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/math.js var Wrappers_math = __webpack_require__(23); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/menclose.js var Wrappers_menclose = __webpack_require__(39); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mfenced.js var Wrappers_mfenced = __webpack_require__(43); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mfrac.js var Wrappers_mfrac = __webpack_require__(45); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mglyph.js var Wrappers_mglyph = __webpack_require__(61); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mi.js var Wrappers_mi = __webpack_require__(25); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mmultiscripts.js var Wrappers_mmultiscripts = __webpack_require__(53); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mn.js var Wrappers_mn = __webpack_require__(29); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mo.js var Wrappers_mo = __webpack_require__(27); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mpadded.js var Wrappers_mpadded = __webpack_require__(37); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mroot.js var Wrappers_mroot = __webpack_require__(48); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mrow.js var Wrappers_mrow = __webpack_require__(10); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/ms.js var Wrappers_ms = __webpack_require__(31); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mspace.js var Wrappers_mspace = __webpack_require__(35); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/msqrt.js var Wrappers_msqrt = __webpack_require__(46); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/msubsup.js var Wrappers_msubsup = __webpack_require__(8); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mtable.js var Wrappers_mtable = __webpack_require__(55); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mtd.js var Wrappers_mtd = __webpack_require__(58); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mtext.js var Wrappers_mtext = __webpack_require__(33); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/mtr.js var Wrappers_mtr = __webpack_require__(12); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/munderover.js var Wrappers_munderover = __webpack_require__(9); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/scriptbase.js var Wrappers_scriptbase = __webpack_require__(50); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/Wrappers/semantics.js var Wrappers_semantics = __webpack_require__(63); // CONCATENATED MODULE: ./lib/chtml.js Object(global["combineWithMathJax"])({ _: { output: { chtml_ts: chtml, chtml: { FontData: FontData, Notation: Notation, Wrapper: Wrapper, WrapperFactory: WrapperFactory, Wrappers_ts: Wrappers, Wrappers: { TeXAtom: TeXAtom, TextNode: TextNode, maction: maction, math: math, menclose: menclose, mfenced: mfenced, mfrac: mfrac, mglyph: mglyph, mi: mi, mmultiscripts: mmultiscripts, mn: mn, mo: mo, mpadded: mpadded, mroot: mroot, mrow: mrow, ms: ms, mspace: mspace, msqrt: msqrt, msubsup: msubsup, mtable: mtable, mtd: mtd, mtext: mtext, mtr: mtr, munderover: munderover, scriptbase: scriptbase, semantics: semantics } }, common: { FontData: common_FontData, Notation: common_Notation, OutputJax: OutputJax, Wrapper: common_Wrapper, WrapperFactory: common_WrapperFactory, Wrappers: { TeXAtom: Wrappers_TeXAtom, TextNode: Wrappers_TextNode, maction: Wrappers_maction, math: Wrappers_math, menclose: Wrappers_menclose, mfenced: Wrappers_mfenced, mfrac: Wrappers_mfrac, mglyph: Wrappers_mglyph, mi: Wrappers_mi, mmultiscripts: Wrappers_mmultiscripts, mn: Wrappers_mn, mo: Wrappers_mo, mpadded: Wrappers_mpadded, mroot: Wrappers_mroot, mrow: Wrappers_mrow, ms: Wrappers_ms, mspace: Wrappers_mspace, msqrt: Wrappers_msqrt, msubsup: Wrappers_msubsup, mtable: Wrappers_mtable, mtd: Wrappers_mtd, mtext: Wrappers_mtext, mtr: Wrappers_mtr, munderover: Wrappers_munderover, scriptbase: Wrappers_scriptbase, semantics: Wrappers_semantics } } } } }); // CONCATENATED MODULE: ./chtml.js if (MathJax.loader) { Object(global["combineDefaults"])(MathJax.config.loader, 'output/chtml', { checkReady: function checkReady() { return MathJax.loader.load("output/chtml/fonts/tex"); } }); } if (MathJax.startup) { MathJax.startup.registerConstructor('chtml', chtml["CHTML"]); MathJax.startup.useOutput('chtml'); } /***/ }) /******/ ]);mathjaxr/src/mathjax/es5/output/chtml/0000755000176200001440000000000015004373372017462 5ustar liggesusersmathjaxr/src/mathjax/es5/output/chtml/fonts/0000755000176200001440000000000014005301544020603 5ustar liggesusersmathjaxr/src/mathjax/es5/output/chtml/fonts/woff-v2/0000755000176200001440000000000014005301544022071 5ustar liggesusersmathjaxr/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff0000644000176200001440000003711014005301544027145 0ustar liggesuserswOFFOTTO>H VCFF 7J:IFFTM8 ]*GDEF8< OS/28\U`B`cmap8*0>head936 L9hhea: $}hmtx:4:[Jmaxp;p{Pname;xßvpost>4 2x| |Uo7;W`m-AA@@@EQYAM"K ٓ{wuU=BXþ切˸:.?{TUޣMUsoE&Zc֊53W-"3o^jn&geR{Ԫa[U1q1nʔ}iܣrJu==Q gzG*QQݢ꫺O5Xjjjjj%JU*C2U*ʥUnOUWU}ZU>r䤑˨GƦ(LMZrEJA~?~2e\ˤ/SX~ԌפxnV>'}^z 32I>{}j ӦM~yeڔ5;wRݭGV__5@jjzAP0CQGTFƨƢwS=zBijjjit3gUϡWVQU\ZZzQX^]vjVͩy5[-=jIU~u@TauB]RWkԵ,q2U8㰏>1"fMC7irVrYE ɾnϚ^zk{'\B|˅[uK _G߾[_ЧowqwܵAwgƽH؜TVosd0<\1Ag>X7$iC_fC_Q?<#G.}cf1ygKc q=63y|[;ꉅO|俞N<ߤ_R<>Ԕ|55f=SL=uYWo8y9҇CG ziӱq]@Gi }@ӛts~9X@.ѽPs8Kt$_8p~\5]ffe-1``^^>a^<< f. P.Myb!99݅×pGCU- 5C/-T.hb0r,zM2 Pm*F D v~sxLb((nq9iY'k'f KM̱ղ^jJR(JSЛxzyZK*1<=>5IfI"7E~b IY B";i?AJxȻ8;%,K}ѱ}-3\,N), ԧm<\ؒ%"[n#-:c!>V Z!j)PUc7r_^,X2y}VЇbx/ɹ-/ds IHG4b-yK4VXi- e$d+lٕi/+2M/Nip;3ji d |h@0%%vt=CcJ !RL&4wOzi<ٯy`] ,IO܋Ⱥm SQ]\ا6{/Rb[Me9f@s&Dŏ Ѝ_@ B p1]uPPchB7]|=X[ |n8x3}nu ~5`Z^R" V)vd 9`rWS p@TMCc"=d XGitdx[;^IGr$z-xe\! 䑎d> ^,_r< Fߠ7БB+QձAo"} hңUh5M|A6ПFt}\ݚy0 !+(&+9Y2DaͶ\V5*G}5: 9~?PVuBF2m.B:C:%B+xwXڳ OBoj<۶nݶb݂ٚ3JRS WU/=6y%8 ^ ex!ctDaNU6dsikAI/ia{AҭNë<~8pak'N>|'&7GAa#O, avVRsXmAKU~ qB {Ar$dXW_HQud.FIzgL.^Jȡ)01vNɺEz\ jZ%EKf + W@9j~ P"-rI(ThJzcc|FLDl4WXsͶ5U߉ąH́z[~hD%὚F]r?xob6DHTw;9mXJM-{Bf_T^!۲q,,n8H0'Q'LQ.xo}:>XwG:Tsl{[ 'G㱤mi` !4ަM ®&cQHr|[R\aڲ)y呇 lny>y, )2N(/dfq68&j12r0lj\a'3Ug<BLުwӇcZN{ ,Hht.W Fn鶳+l+vyL%z +W.jH71R lV|<v;&A]t(i :\wLRwjuʽ m_=5C#KksB |jσfw: s1! it{>?jsyu06xk[P8ƖtBǧƽojl eoI$vHO"#0DF) Ɏټ |XfٱpAي=nQ@I ^Y$IpQ0(GXv{NEim58^og7c 8ja0J#t }[(N1*Fslv3|(77TT3aKch!}WOyMXi RЯcwO[ՖYNZ@@x2{^S|'4^5'pzYm/)_W}p(q: ՛.<D +`R缼Pĺz}bgFdqZ\j0]txEwzaO0 [@5_UI:_3ʱm*;$BH+hEg47` i3ޕR[)&UK4 f͆ςm- wm t?QoA(t 'UKn?zxcLߺ+Diy=gG6n#[ڪ`~;5(jW;w]$l kf\+y_AL2ЌXiG:Lr1YZP>cq>CD[{*X7< Ia$sN:㈣}IӇN|I$nJ޹Ru!D'nAt~MnyHZc(nѯp +G^2τglqru$'#:G3Z*J8|p+l h/i/yAU,@J.ۘ6AO`Xǥs+r:aOF,ok_+ Wj?FyZ|%S1tO+e<Ã#BdW?BwA~ _^n.%Xo@ HEÂK(ֈ,هH{E D("y|,$(7">؟MbxI T XcgVRy("gzنқZ WY@0]h'&8XF^g;6 |]mSC?yWa ZxzwJJxJ❶e~]6O5_n6(Ƥk; EnP Rr!\Lnw[cx͸Oɇ ;g0}.7U/Hnb|J/I"_d=O Q!p3[,A_s(tOxxkT2%צyтHιz^N$ EbD58s!`;dvRPygu9"^ P==o9:3Pup=b.|u耦^q^Fr849 bA-sӛ#D{S>~Ory-8_k_v0']0݃i!mZ/S|FwGjh¯s' O5M=,:UydB+xvhGK! CuwJ ~p\ F5$22]v:In4Ioz LFN,qiN1WyL^HS49/ϝ8wzOWy^XrH#ȄȂ?"B9'r&p ta:V!cvӯg8G\RE#,Fm>A:~| ViQ@n2ЙJ^ĩ@ya. HD^0 k1 x )ysjg֮7wT=CON Ͱ5K /|{CI[c3rL]y ~; LgKғR~29UW ƨ.E}EA̦ϒh*hrWirCD@]cireϗSZxaw̞NiI}EQsAYt=*Rn"%LZXf z$pZ{l媓eno|4~ G?Y0җ{.~$м|Cq9 zzp|Fm= eȁi[9ˏ# oo& Hx7SE$=тV]"iḬk_"աI?~7'2p.cZaw9Vx4CnI<^3sĂ JGWT,>!}r; /|+r n+3*BDAi(r!A^CE2nmA+HYp"ykG&qCG)+\ vX&5dqׄȢ1u'^Pl=e;K$iw}Dc.KSTd'r:s II+蓭T GfG'ܟZuoi-еL\kC;D_TKJ.dtI00E꭛o_wsvga<-x6 m::M6Miyl7V"5h{ŌݨEnCBU=u9)xCˀqr7żH'x ѳz1v+R’So$դnnj3X;mnR+zN$(ױY B0~7~ SayA2LyG/'<>={9ʞ\7c]v!cl<NUpZ_t~BLOzzK-q,)K%6'OPLho5iNońl?PUoSI6P^_e<'PY6zΕm',c ^^C^%u;VvZh, ov7#t0.k䲅@R&or__Dź;"ra"u&WÊuke<*{O?$nCW-0ķat<ګFv]P2V<\#(Gïe6Uw@V$m ߄bէImZN'`yũ%,zaJLۚ#S@mDO[b${Cmwv%sծ0)ymAA)P `Ah- *i$[VلUqe ?BG>yNDY=A_\m,*tW?h<|l}cݾ-kD7z\,YL3"Ӹj$(VMU#^"!o0RoWFп_9c|",p甤+*;P\MhNPڌ*{_У_+TNRN-zc7>q>a{ *دy~j~EKm5L `46zQQ 9P3M>ȫb R` M\|plaW_Hsz)gscYz^ qXU]+ o.A8]O%wD~uzѢdWT=\Dҩ}Fɐi.t ;*;d3|#pޟb'y4zv$mƝk1Bkt^X"d"q+eaL>բ]SmpTɱJs_;HBhRټ]7Hᦰ UT۶n8q\^TjfrȖ:G3¤&?=in,tD m|Pu/"XT yFǛIzؼeJ?0+ ӢPMvɿ[Ar?ΪIXho4 rˣ4 ?vbO󰷶}7Sq)oQ%>Z?-z0[5[*16æqW!oxxmNTk@`8#k:MSBX,'.4%89r+ E8 -Vb}&y9;,!Ca͗E/2!$UN,cҞ BF O[ E1ϑiZq֙ˋ(v+n&Rhwʼn§[PV*Tl>VYyr+, KN\]g$ w'kQ A[nؼdv!p`u9+/!k4>26M(É\fFӀYE֊k M`+ÂDI=wԵOM$pa w]k;aƵ6طl[+6oCTRWl²Nx#W*<"]Lj"b|l1 ':Kߩ#]}I!eEǁh̹kr҆<'բ.*^]tdLtV6z jIp 5 !J㪰>]C9IzX48!^sIG=x=e*:,,W̌T 2].Yw6FzfҺhiԲ׿iږ) N+!b(!tbR粔Bif[ꮧ[1va=}E}aXv=yro97Nv?re]S FH@b"kEPE=CI!PTIny̿d-q+޽a?.5Op|z݅=Zzݪ>"݆[ʖ0rkOl Ry.Dp^AEq5"߲y> N|n=r2y>k1JS,޽otOS;Щ#"1g%좷ʽ(C]4,6YyfY'"=&<~/D{zohcus]͖ǪOGpz%D~l`-㩰 *'*[IQ7*KtX7bh&-Ce.<ֽ;T ">1}?J'|~i'X^lTx V` ~W} P-ϊt^gLEWWXeXw!I.ugl\璥l!r!̽ |ҦbN) "#rJʕ\]^rlF%64-:el& v]lHVʻ {XKWv0ӽV {)wfۗ9~*?/rZgL)"Nۼ=ukFA> ɬ3ێj_lu(kGZdF9X\H7 U>^Dd,",b^|RJ!EFvzc)C( 'sBT#Â'T{Hv+it=t )tt_zRYT:֤_dͳݙdG*b7S¼yVbt@kk*>jecf;߰7{+O5wԊ! ? r|y8g=v$\.ݰf Acz(̊ZGQV"ɸUy &vK7־cncLw6M! Pve-<>=z MEt@nAȀAz5N8WޠK.}"oWr1o+؄1 o=<+G5TS~Ӫ,[ ]G+yjZ^?5BVAV&XYUvBuSf$;Y ^37|s 8Yxb'NT":i_wQ"EkjQ j {4e5a<4DGp0 21^V}Fz]3,5]3"+S^Yv_$4k95@*5 G pAosH*wEm+Õ,ˢ-ti>V:1xiSz;fWiސ^hL7j2E~ǍR`d*L_WARchz9R+=2O%xc`d``b `b`* f xc`arez 4CF&  0y 20,`PxA#C3P) @&Ixc```f`F1, 7%``PPǰѐɜy 0/f^ƼRADARAzzbz٘'#YʼBAXABA_o_ߘ\s?gs?'?y%P u3FF&fV6vN.n^>~A!aQ1q I)iY9yE%eU5u M-m]=}C#cS3s K+k[;{G'gW7wO/o_?аp8 9`(`Uxc`d``{Bm2p30\]FS $ yq lxc`d``, dP xM/CQƿ{_BDJJF;y Dn5.nd3̺iՈsϹ|jF'2_VQ5j'3eלEjV߄$SV!? @ k7wG:l⿩A!@ѤhùVr czú TuəT*H^s/ɺT:k +LT{sr' 5݌+p5C~e^ t<" V()j)K6&9kdZ:*NtWBn 35{lzvCVYE*g2rۜ;0x=e鈔qNl}YIb+FQjn ktByBދѻj]AW#ޚqC>E])?ٵ~J`XZ:x[tzqtohead36fhhea !$hmtxDS%maxp#Pname]#`post\ 2x|[E/k[ҐnS8{Enz{eޭ4B ,Z؄]va@ fo@vݷo閙3g9+J!(J, mbSZ\'$u1*JXxxՈ_Bm?$]"~-/\G_w! ~f$V2QrnCْ$K$$k$%qTID%$V 'qIuP1#T BPxED~X$ 4}%Kb bRSgOļ՗e$e2 o sE^jrJ@B*+&. % YF*BM>X 5m~K CŢ`pj*U8e*y/a" rWAjlFBjRRbqj~Ab113$?tB*9H"+fYbv,&/5?=36iIy9٤،ԬԬԂجLndجKR,y,2#?53Ė3YyDdqbnalFTPgM{$%RHO:<KZCł`hӣ  .%%&e$\~:ibzy2 CfdfdC50&i*'1hf懮_83!Y8;T- xIX-䵤x=T[`j7kPxj}KsbC>{P1=>0.vQX*u:M}J:C3OԟϩP%P%7+k- EG' Sj1I¨0)0vUظaW]Cõaׅ]6!LvCЇn 9얰[n#T"*,:쎰; vw=arq_aS{0조 ՘JMy]br+K_*Sk_# ݈Fwag^s5=V^p &Tߐ|B77p{o5y󷟏j>'uwwM:)p{N[3k&o0yྦ 1xa#3?3_ b.]t"⩋/<#}K3,_ZdiRRniҟ?߱lɲe=o^UëԺ_oM7m3ضokvp{zؓqL?$.MZԗ^)GRw.N11ތLm&Lֹ]9T6ǙT7T>YXYtUQ~ȦjVUTgUcŅߖl+-Rs鹲Ҳ/ˍ審SQ{+UT5h<ݚOi7if|zf5ƵL{և~z9[b(Ͷ/:5ŵеŕ>6@0Ev`L$G#E_FW?pFS>ZSF>6c\d4x`xhqx;EGE?~؏?QQxN?^ߏ7)A0{d_40mRVTg5AZeAx 0%gȐ :Uosp_vix}.^pf1 G eYwwj+~E>8r5 6$,[w&0Y-&ڪKKG4aoWm`cv@[ R;fj9~uбkSӢ"s(/g=^F|5FldҸS{\dP`t> υT}z> U>ӽk?B't8;Z[vtR0?h=Vѩn,K鉩ºV*;3] 6xfSl~ؐYZ\MtPyKQV%S0B%ή6otCN"a$pၙ#4Y&*[Aj6VI[*^QqLlpvzm/jrJn4MFK0Yrc*eQ!/Vܗs|ɽ+~+8,0_9]ԙb kw\M= {3سU./6p ۉ \qw4:p4؎TxDp,R|s؛pL $"ba-SpfPjXyxG 5*ԐLa9AS^Aěb?ڝ Uݗג.X?aȄs.(rHCM=}tVHTO[Vҽpw, =4_*Gڮ~haPpXޯ VEOȊvEݻ:z[j5eh`T6e<"aL /0%yɰ5Z˄,HwwMMP?W/zT~/*~^ruu:KH]%:l8%ļ \QfYE4T -Rgo&0N=̶/72x% ׀T ʃm& JI)$$ H:-ǒT| ?DwnMAߺג9oCĽYﰡ=]=n%BG7(;54+cWi -eŃ#Wb}ZG{LB(aZifkuV I|AOڨ'_7#BPB _c wge:K ‚G\X9M-9/ZhUx`ޞ|^ lʾ4Uq?zN{f;px'՜q>g$7PT2 4e+۴Is`am`Ж]a?[v! Ry2'05Wf0-'_)_$i\@t˱$Mi4@:hQ:S"~$ŒܙO +^9ƺD흵u151v0bA k^ٔ( LƸ]4I-5ev`rWP^xe}J~nJTwg?5\l9ᚣH0'5G9nl"*zQf5&AQqT9If1,qº{E~w&P$W3fΪ')8I>: 6)q H?<w;;&P8qbbïVqSZiqj3y"gwZ ՚r 2QXyEYdts39hXIrd8p@nfݶz{e㻺[`4tuAZyD؈[T]QX>vRqww3&0Ռ8okP2.bXn>u߹M#{6~^aGo-;h%3{ Tpjy&=^}o =;Wm^޶ `ٌ"HkIx# &:&fu"!ڽ}xz'ؔZK '9= 971CStCVgsPC"5Wߕߔ:t¤460FȀڂ^.8 gμQgq4]b eY3ԒԐ#WUF `5,i@#u%="#CPmELVV]Vi)t^ ͰMԊ2-IFU6XQF1NY%64Fx v)Fhy4 ]fdҙXFl01FЫd8 eWk?"r.tKSK?7  uY]I9GǀEBLL(ҕN4a+c4я2륀eylv:oHk>R² &0LvR9ψZ |wUȋ]g4r#꽄<9z(e lt|ӳ`΁F*ބO[?|e{Km]V25&8*JB/ Q'K+T$0꒲BPQ)Mkq$pf(2kU/C1:r{/e-.e5vn^Ձe]wZ@L2߱<O硋-Ó[{X2|C:Lg#*euPJ|{.@R&!7o? t8e{ c$Q剽 %`B, ?V+_ QMw `ץ` ]aj,~Zf4 @_7oyY~qAٯuesʏ{Urz!;^[n6id-Fg`8`m.{Sz;!z֊,~l\ ,_RdsEx^J?yeWd*F#9r(-YYd7-4T$\$7O˷Lz'FN@d&f~GݖP9װ:{?T8b-ª27_زW?)51mNgMN3Z/ C+x317;E5}zh#e{%~^sWh47M>]vH}C)J=Fp mCIXs6m!dF WZdTPJP&2 E\9ˡd ɥ$-I|#&ޑ4Z}do|+Zcr̢:2k axH VaGY)/N^ 7\ǧ'zG e!gY4O7nv͹. $zO{LI]qv o_F@Gp٢L&t>Jxpp4lj |berv^lt=m}W _Ÿβ.i8rsM\= e WWtȺa`[،$3Dp-Mkc4&z@P`/vjNs &C&E;[D&z!@its$W#{u /P} **2EU$ZtF\eA"Y[W866z,|Z#xtt j$2PĨA͔CLadJL Ć-ҖظI ^.?"%$UB F .WB.l$$Urh͉V`9& }k둊6wŭAM+7ƕkr+e.=IBIҐ'/D "+ ~.OM~婭PΚ .I;C)kV'X#g z43TS|wqWi, av \NMF1/r@`w LJCMu .a.i l@Bl4+h K'5zB"ũF+9b9 [f'r4*ybV}B(oEʓ`Ց0R1MrR*2$<[8 ïGB0)$YaY]՜}KMV igh:hc*XNPp?9=*x-t + l|֚Tki-XՑߪ1B-aJ#|wz" Sp,(~I0ua>y2g^pAC]hAIXn9T & !ʥl@GS,l/\5$ UW7z9ҦI e97OH%52pG5,QGKLDO8Ct&4C![jxm&l޲]{{fkj @ڟGR><283zN#s0x-s xك(< ]xSJ Lf.a`1 jօD% "&~@5h,YqFmm$nGp ]#V l'/ɹe-t`MbTEhp,Ix,~Ab7F3jt p}PZвV0O[+-E}EE%ِD,®j; z]NOӉ,rʝޞO;9IpBrH`LfEo4im$ &mSdt@Ţde5DD%"Xi#@->a ld[׺x_ˋ HIY;h. ?׏xUΝssqtDXNQtA|75rI'cH8 o`n)ownsΌGR=b:%ZTjwDrRqV°rHוw[\j0h RU$Mײ:e pI[zw% :ҧ ?pB72w(v4k$wZV[51kacЋ5!;W]a㰿goRJ ju)rkI; {zt;ĝY#ν@Z=+i5q9sQ8bA`3vl ,W ) 7E` mv$w,:/îrq8H|uXIvA诪Uw^D:6 ,&iB *Ui=}.|?%2eU s8 L+>2b4&@>(VU$Hsf-SM[hQ+QʴIClwѮV0Cո_n+ǻ!)]UM m!wY6ls,"Q|V&MpӸm.,,of$X3L,ߒh wt8\9dz- 7E]]]Q7c+c't-@y."ϒt6\@BZI>0"a<罓xɗ&t/+-4RfզSyXWV-dҐݒkK 45Y HkV &).T\QA:&FNo٩Q׽o!!.|G] 'Xq=I[vj 8i6+ZT9(`y<NX#K*5MӣCjQA"VW)ma6;I$zbZkJoERKZoNnͺجM> Pbu!8IQ^I%SvB1Cy(?kCYy\ # :ZZ*a7Ԫq4`>,chTE>kLBȚKDKNO@߼`f[A2@+ʘ|qkWMIkEw_=i8:M8~t;Y#EIQދ~+&Yb$a) IZEWb.7<~iE-l^J4!bf?{L.{-Ddv"jdjlDCxg ֘cr&"E*L Ņ V|80E݉"(/Ƭ94"eK6Q$iuF57)@.; V t-]ŭJz8 zʞ=4IP )vD*Xnx6ABqFj vi˹-3m b)ho~qx2{  >{>$냐|ށӔ0^Xi|3| W 5z;Q܎5kj殊G:x'r5(]`3Dz^u\ zqĽ5Bn>Kp%=cκҾ廉4O_~OM% V\d02mvy5aܯ120.ūR 4ٰ{ HH1;^%}368;DCT9BWWNr?ނp,A/4M.in|kȖ<ͳB&9lnkLZ|=1<8xlS ɋ$mәHL3'KMܪOi2"av8Vtft'N\ y!"r31"^v?xljw.ˆ\52iYHfEdE*O^N 8 ? @"f) 7N&C!^|ӟ, ,#8wӥ)>d&r4yy°"fOg|{.U:GF1<Rް&`BzmA^d1CgR2[ g4o\HverJ mk箷7kn+ь6znm$*K==HaL͙x?+wQZ(-.H$S1Iq!Kwn{^ޝ} è?>EN(Qc0m/΂B(ҷY=g!|7uDn/ˈ+rC@xN+z/U^ ^y?ԙZqp x#YgnhhAKrω+KY#Lрb~5 M&06%5įr@ep#Hq^j 8qIvJ@9B*16YCSE1a1us*{F 2$SD@2ISLlvnkw،vZ v{Y琗െIaR%)/3aŶJ{(O3*(!fA8ip& 9J iI1B*m͗Lj w9hdř8G_:H7.t$6˶9:K]սv;8IOYfr"3"J ݪ!n`8a<"R]P:$1Ͳ&`iWvNؽiE;Hۓ| C<&BTL8#hٚF[\Yw{=~g{h*Vo]E+E! 23<2'~LV3c(UTֻ⌸8`ЈAns 6YlcKXr!K{v3G'lCǞY!K+ȴZ R41Vqw$㡃QT'*s J_vt~;v:}-A>hL*"XD|S /kjKodҼeE뉒^\]Eɨk駘BrcenY 42N5GOF ϗnVhi=V|h)GGEMd*`q=FiWmuQg;8hFv]3 h:6^)Ue,2y!\UQZ6EGf߈+lpZIZlH M~LTVVN>n82D(SB%IyqճqCHq#>݌xtsW٥k 8B>/>[Wnq>LO1/n:8iA͘7luIIIAm"yHp+#La=Mɫti)GWG2 ۀDsf PjhS>|dbq 4R+FB;1N|.9p˩c,*P1Y" #>Dz2h7vÁIn[F5.?w1BP_F_d(<ُ' FoU3GE~~vϮxM8tKF_mM F›xM$ ~Wya ߏP>FשF<>tEwu_ޭ~d4i]OY+KzaҜ taҤI'(7g34'[ ʞS/L~7٭wwq"Kw뉾#!||P-d\u_,^&Y#b/i?}Or{:GC|t9o [±,OEny Py+T4(nxT9WSx5ӂ[vG>ǢHcQ/c!1c7n&9v]#c S9؃B=$> > l%dPAP9/Rc`gtqOO#46v"J 6~Hǣh/=oT#nQӸMި֯vo_ t؃i~q+Pn->mmWlMŏ_G*,qNᯣϓ谰*d1 yYV1(|G>,H q`a303H'kx}nFX-M{1 ϊ "ܮ}L U ?rh!jc*}ؖ3S[j`dt nP#F]͊*\84B|x', bä^N|){X3*O$EUWe; >W]d(RX5XlCaPaVlDZ  ?G|_ހCɐ`YuU@~cDsPuesp=DįneW˦R^~Vbh(lj, dF EOC2[̩IW-JnE9J% .b o%6,n;_m=n_#zè>0-^Nrx3 ϗf&1(i+xFv[?F N+ZӺ$`_.pJƜpNVC/>0<'H~[pe@oNڋX'@#;wyyKsI0ޖNa W:"]('84{4%ݷsh_SK{`W.IEynFፄ#%[l̸KҌ !LxR_>>taw-'|^I}~&ZZiJ{s}Hrs ȋ%<Ĵ˪?ffiM c m1o*K,Z]0`}cM-ۏe{NŰ ~:@|uV$WJl`{uft=5a5'`>)۱”-ۧzq>9WbWןם ?A\\Dl]x4O>B=>NzC]ylnvVsz]qp#h5:4=#o*S *f+wiKפofqt00Q8K*Kkvdvu緖5;Eܙ8*iu9k%I;2}}8qs-vc9 Fw>n{h}@alx3mh)<K1ސD"}1՜mIbF3w~r >ZRlWۗӖDrl< [RRBEOZ5/t~C"Jg  ,|#Ud#^[Z\W_] wΓbjk9)jV3j*0+L[-v o{Op)S9JsBN^Cҡomkn-ɏ."Kؤjid|s ]A1V*X&i(tP+q^ކޫ$nG[ILOie";RL LMPr!Pc@2qdKnimq\L6C5𐬚֚NUWooUu$Whik[- jwPe0, B}>y7fɾ'M¾6q mqAmj-k3Io0ys߽{{&w[mtØ"!Vkkѐ"ꢽ*T :f#Kz4;,A=7& gBFQY9*%rP:P_"^0eULJZh^Λ{-\3BI!^e+l Ε y i׳]j3ry< WeE|*g.6}B>&}Y-Zeb"ZY`eAA$âQh2;]%v'?V)?W~B(( cQ)\6C >nd9͵C9ʼn*&,afV,d&KŸPqWßwr/Kq]]ڠkN@Gr'{rmufF͢[QҙIb;Teap8wm s9Os\lXb Z]cB r6Lx}NjӄG͞>z]yxln80Xet$_fqB>c/Әc&H8={][@PjE=geO3;,n:%6OGͦӷwlǷč¯ڝ#AA/o9 Նa\xz[>K#S4IOp>X_': j1iӶ/oRөkf~8B~V0%Pj&lsTߟ5})L[e2DEjO)fڎ.]PΔ7TrdIh*,X#HLh׳F]zF T9-si7Dx;vbH$$D{ޥcz/pwWOip&]V_Wژa] t7xC۠DAZ'+ӯT2J@A^&Lob>OfQlQKpҋxJ#Nk%ݖ.Mm6Є,ZsRгn*r3V09e:q_;nhGUO= h' t=uD"j0ZbVO=,ʣ3݊gh;شVF" '0@9 2PZ8$lqWo)IRzr#f.M{71Ts!˺Iwf *̄ wC"tPt6ed$Y[r (2 ѨcSG` "}y1}$;W|# g묵Po5>lD &b[섦D 4 j JńK \yUtk>$z[|[ҹ *Zk ӊuF䀅 Kay>|Ix}_Iپk޿/"%Ī_[26o/Z޶aCX$T! 5ylkZMXՁ>ź z邬 V.E8eLDrMpfi5k& 2DׯZs :҂{{z5tYYSRI67gtUimCdAɱގ)q4DD9JӠm&':>%݆f#͈U]^>./z+WzNvό`敭D&Vc6[:*P71 BׂLXM %hq{krg';\@:6Ȁff4nLjw[sKkn?L4|_T ֧,xTWV,>>m*qAGtd^ vZKaE.6&F| ;VoqWYCIoLy^o #ᴩ=siI,kS:%M (daV+G\1drZdS'@+/DN!(UKKyxPf9a,QϦ2Vg7k*rjLcʞW\iYXJYKPҟJ6:^sFLZ ysC4jrVZ֑qv1`A_zQOh4nz.M7$X]/4$$ʍnFA,nh;J/߸-'E;=K%Ɯ?;:⤨s";+(s*"_ c3pnK;"w}6ܷyryld|-qT _N}R;cS+vymۃJ.(A kԊf-ilDoU"`$S :,Q9a~'uɰ=E) _Gf$nm$Few >b}z8<5߁sjWnؗh WPmSْ5j"VnV6 &`l,YJhիJቝ42"MD֥F(Uݥ{ ksӠ $:' (;n0j[x |oO7}5%dlmӯ@gnghzH0iv[ҩ۬hw|WRKTS( ႩK:E'},)ʲǿaY&bh>-* 71.sG*G> ǧԤO'w9x&B-_z@@J?V)S)D_&E45$>_}J GE x׾]A!$U7ڒY`93Y^f5+8ZF`X(BPT͂&5/1s X-社k0>Sj2\м`_rfalErTNΟsRz?*'U|VRW\T7,[I!49O>Nx!MOXy[ne3k6VSR0VdY WWOpE`Heד{GSӓzz|IL:}jtRXN@x̚RZtf\qT8$<:B=~@ r.;Mzt3R"9xn}nrVsɤ%άZZ#LW.WM+FvO؉dF_,ԅQlޜR rS&n34CȄ.QPow7ыϾ:(0f5Ԯe.@l$X: {af_Fy^c2exJHU*oѾn…dH!dr1 [YMӘWƍ# lgA#hgoIhf8|F{hV}2<:~/VΦ3 Oՙl$$?kJGJ+쁠37w: ]5?^^ubB-}4SҼ:C9NV0 uMc4+bgQ?8u<->XS~@ !iy;hqC QW}WAُ@vM׍?x,^7"1Ntj0U-ڳC L[ۑ׍r9\s6oٲyD,"0d` ÷)fݬұĞ"QC?<$Uf;9W]y[ߠljGqx1r)w=~UKwkWtC݆l1٫TI|.Bߨښ;\2cQp@"֭L=t+N?gS<=$LYoUKBH_VhN+z{aA9r؜nohy'#Z$p-k6 qL<*EYuO?zc 5V&H+pr̥5Tu8WS۹k}e] j .vf?o6gצZ) >OO=6XrH Dx '5ԼM |`WZ+ʊb\ V2iǓN6X@]6,fUyYI&=%}n[t$ڊiG0f+"ѻ a#$6Yhc`f9\Ŋ҅h`-F+u@7bqFCU+3X%tq+זo؏Oqſx0V@@enE.]Zl46=^<02Y2tT%Fkp09Tl[.))ʮY[8\܎y*7,%xQުB4=S;=ʠjк;|/͗#}{::ujt_6 aD bN&f+ 7fVTi Y>msEa=DKg$Td< '>}qAg 5K3W+рEN$ }Eۘ8@M1eԯn?l%@M8dBK0Չ~L!rHi[\#8Y|a=b׍ikwd+N2فKXx(jʽ蛞ṕs_sݧ_?RկdW JCo\rϸgnXE}Y!sM\k/.yn=JTu'n;t{'%6 C܈k"iv屣xbjSg5Գ:B2Hڱ.Np-.' 6V̤aJb@'T*M2a A\‡?o?uck-ŗRtC%5ʠ|TNGʾww}(:P#: kƷ/q1(8J<ƃ%@ک,Yd Te?o3 K4#s5L@5#M|x|#X_G4s32fK?9"t -jc ^$]?>@oh (Gѡb,L _/OâbMf-m(p{յ{z`Z,hH85 (ё|$<\٨zM}h8ܱdkS ea]dbf3[ 74?J2#uMAhr-w,:'bN_z?;=ljKo M()e[]P) }\"kƫƓzW\v1l /yEol\vLЉ:bB.<4{CQ*Tڊ/JZ=R R&Ѷ7> ->Y󆖸L{Hb*PƂe&wSEkt?J)_ny}YG}+6Ctޣύ@.oJսNQn_*$۷ny&r%?pwQEP._qt AM]Q3JڲvLMnJZD9NeM3 i:=2=;-]=5/۬8r9C,3m}QNFC6tιa[pi2#\(FP܂x:%"di4x[YݬLsh;u9Bvb]Jfb "ѽ!җ[")"QDh E h,jWBN0zqQ"]4ڥ "p >*;9R`c9\[#wԠä)? & 3Lqe@ iZ!P1~'Ƨ[HSc)?Q(X&ySp:6:Zڶxx.Nk-V8zx, YÃp*/M^溌ܺ]wW-)`JrWʑ8v$C_;8)"ǑO+}}#JksɭbnV|Qy r #Ʈ*ck5Ut7oN:[^UV[@-/"=WrTf^_\oz\?I5*YLљ f""6D$Gm~P/ed95]¦+붘al>B^S=d3QČewJP#05;w?6bqQK-FLZ9~rEMf=7ztN_=/P+xdFM4y^t#Zw= `y=8ӃIǟW-GRi!{wC>3‘ |7N[MŘp{_҅0^[H$\m?[eFV_cؖ1x#'FUГ ^pY7gptQo\tvjÍQFƱ4dup)|2|K[9;q|=Rb| x,~яsyQ50U/CAV /;4toRV$-O'I×ϣlWϧOg:5]Q> rpUfz\xjgйysekfW19ŹK+ҕjtn)I$Kt\$6u|}&;$wkgn}ҋٸEM Zrw2ixf8X50fL0:*.{7\kmt̛қ֮XXSbKAZٟW 0 @+?ΈEbS4虌pYvzlj `\׃1#lxG7O>0J>@'^H/.ׄVfQcߣىV3b Ͼ/Hh](m.rxb\mvZn| %9#R(dAK+ߤ!&.r¥1!NUVg9%(*M8hVtsN_m|?ǿHy}CFѣ \8Qd߹8&ْ)~?Oج6j*(z>{H!&qY"/ $XY2Fh))#جG7D‰l*"$CT4ﭑnH!mCq=N~1R^0x=p7 ș_R I"DcO6D_RTs v VAQ)h5ȍKVF|Xy0i%nD;%Cm}ϝ3|Z B»{3Sʵʔ_uI~QL_ܑc"QIn̢ne9^ڲe؃m@֩2%vw؋"F/S+pR v/{`nܴH)V\YW(YN&cacΌ9zm՗[^|+O mU/PZY7]5) e':ߎqi,Sq׈;Ve K%Ϯ]81]9kKQ(w j,C_޿#}:Ʀ6bV/nꇝy 쀝N n8ȶz4X!>Yr-*[=Et^#?Y CM|Dyqt,Xy1f4UDؾTf^xŚBo4rq0@4qN^8шޜh:^2q6af)џ%^|4 cGNeKHX bNcg`/@YB>h:R#2o#_[&MInB]M F$#ry'ꋲ$o22CS5IihATMZj-Mh9%.anb{fe357fiC)Qz|֜&%|}Ѝ__w皢=r|Կޘx;#$XiAVΩM2 Ѹx'Oe4؞߻;ݫ!M "D,E_CO <8 A9\5¡Af~I=xlƲBa#hG,N.{]?w`4{I@ 0,F`ɓW۵dG|Yr* dq,ox<1*"tTEiR⿨9u}+-&Ā&o`M9fL/F+ȖROO+$qmTķGtXY~ z>.DR$rbg)"Q^G"l*,|zN }M g R0bA2Լh'c |h|XjBkH,ɡ X_ORN~BLptirR ˴(RYTzx J0zid^1 tI|C;=Cp W+o#u F=.RC5_͛Lw>yw2`u| ,nǓrϑ!"^"]>V8ߥ< Jݬ珅D:5uyeΚἝEǏ,=ݫح{ϺyKW?w#UײG2UK!kZ@4!^K"5?KEIƧha;re.?N$d_eB۶=EYIt:ʙJ99yxڡCW7?ZD |cCᡡ`o%>)zmu_i}wY95Z]*Ȓ*MWk^O^hw2%D#Eִ4Vx|' 6e?('OW몵*D@am}ܰ`o68|HB_|$!1ZO(=nl4[l9dQ[ O3o+7ICY/ Z1VRlsH1r u?+M6FBOP~yZ7zMFu)?yTXG\9S}i7/E'FN~p~α5 ط}$nmWVk5 ȁ|cYNosKسW$0i^ڿ_̣i+h﷛cP?9_0֠4b\pD7lj]o[T(z X˛β.6@H|{&*TGwDo0Fdy)PS<A"˺R̅ c,Af *!E{5d4RҟLIAwE[kc#+i'_Ľ4ǿTݟ(Uvi=Լ06 Wzy-L$BAAiZⲥeU2%%Bk,ϦT5u>t 9)W@6?Hs'2pIWw>S[`NyC+$ADI?D@l0~WU"ͨ}a|u<9mٸ|%|=2y_~ ;4z`,(OӭZL~JˬWpx_=?-Rͩ?U."`~2irlܦ`q|4m!#IOFWONfezgKlEFI@L͎bpҿML@1d&I8nD,|bCE4ӿq3TIñ-ݶG~X__;2cJgLy$ߏnA~X}-?+)1eϘ2m̋i_;7q?/:1A'S&zjPf(e_g\5ǂhfLOhfa43q4X; ~&>NN&y#lQHsƙLj#)xI=(]HR!S MB A)' tXǯհ6,ĶmDo>EZTPA+bjhur"A)&豟]""TϕAq2 Vb!&Nmano T%ZkI]n2VVŜi~?Hϲ#?H&\xi~n8njګp&Μ9SΜ6VM~N0wY>uys:/bbxC?~4uԽӒ&]:cIn<)no'O:4Dܤ=Ww8_M~tr=??'>%4#Mz)ҔmSΪUe քK4%/ĢnK~vo/YxIꦢ 3ȧ5{"?Z/_Ҙ+iE[ %1VF΢g1MQ_Dmj 6{ݰv+Z~ҢӲ;ϚĚ\ m.osW[άichO}$Cab81vN_OLԑM;O|{|(Ly]3i_v:,+G`YҦ܈(Yeu\-_ x!݀HZLJ#(%䢇^_?ͺp f"t*^mM]hdׁTUOac̢v ?Eŭ&'ח*KDNiMD6UT@&? 6~2#N4Mˉe.AA˥Viޡ\Mk5YȜzErun<>ʓVUFӪ++eP z)+xbZ`ә$*LQmm*.-($,UֹgsQ{^n 4ڀX֛ٟ솭-Op]]6ٚ,u3mDr"dB[(=DExi`fu弝q[PHa`Oo(yּȷіZ¢X^O=#h FFҔV  ?X̔ -協(󟗿ȶߺ-T҆"}E拜lpFmnζ\'8"O? &Ͳy%od|jž|N8Dp{*ef h~ªհV6lԗy|?:- [aJ~zeʬ+I8Y)4sJN P7\F{ V=P@U Xp= 扨skEk5ze|q5XQ^Ea?ͺww;=)j:}zxzxph2n9A  x5ەD&()8DLƓinOqKpCDz㴻?MP4ReK&"Z=2O%xc`d``b `b`d`dT,`Vxc`afŴB3>`0ddb@ ޼\S0( P@AN?{  d1 xiHUAywgf[kKYپJ+maRQmDTfVTBQmϗފ‚z-vTD"{af !F,OD"[$)"gHD^R?P^RMi ͣ=J-fVBX[8s( n<?+M?< `.0A,(I0 ! 'r^iew;:V+S#FM8Q%ݗ^V+MİX( cl(p<I8#ZAxCˑ`96)9p\8n 'A.mHqRjOʷ:y! fyټd^0͵f̯h8iTc?;Fvk-]K6j2f]ujSTO_ux`9<%xbbf^L4܀KqLI_FIvMv%ƺ\K;#'wglu\af1zxZ}|Z j&maݡt٥k=zݧo5gM{ƄooXEz9mHwuZn.HOyP}< x/ULa05r~Wv&dCm滖њ(ijʽyߎCfzr+:}EpqaIuUpF!VҚ*9ݢ}O8Giӳf-& !C+kYEI*_-HD7MOEKQM`s0< U׏E[JeTT+bKFdI[4;p6S"vvOv\t1B!; " A:Z^G_1 JQs*../NtWS8URifFjSuվAcS5$q72OLǔylТ#1Z[&ؾnuvȕ!WY.Ƕ]ci7"hB:=J}_0 \6gJt^AUcYMmUqu ktbꩣ'"[!msEe*oPu;Z$N=uxW\b_Hc=n_N';U4Ym <Dؗl &έ-.rgBfb;vU}ݓBKqEcc_q=^.G^qDj.5oG p%>[xc`f F X(Dmathjaxr/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff0000644000176200001440000004230414005301544030150 0ustar liggesuserswOFFOTTOD ^tCFF =Qb0FFTM?]*GDEF? OS/2?<R`A+XBcmap?1head@16 5hhea@ $~Zhmtx@X maxpA~PnameAu2postD 2x| |Uo7;נM:%..#"(,BIBtSUk}GQQ$(Jqc۾ީNhBֽg9V.HVtFi֓+ 3ˋK3,7XRn]=M{0!6\^kTˮ{5[yZVQAu*Mu.iUUKU+TUXUTYUK*VդTNuJY~ g/OP.;qMq!sUAʌUe7pOivQor×G˘[1?+4cvFf?&/cAaIvnAܬ%s2d(=×{fΜ1|yl2т5Yn^u˸{&Lt=0nFfIqϭ_yY}g 2rUGJP]ҨDUbUjեdeU)* eꏪ?VYuTqkUשWݠQuj<խTP݉z[u^}WMDMR=zH5E5u8]eR=zT5CqY'UOfnQQU=z@Pjjj 2rUڭ$5ԠՂZT{>:#u:S׫ԍ&uEݪnS'R52aECϵ%!j!5&Ǻ.RͥK.͗˸˾#)^v+_uU?}r?/kNכR?J?ص_W|x㸛tGnny-[umj N{so_vݿpn>tKPɔ'R>jSzƩ;iiN/7<w8afqOzYW͚0k֬{bQ? {z[{ΖgKLb2Ę<;EWȯIDwHgh!(Dgh4u_ܒϓ촿]ם䴖okO<$ӿmj'$ؕ㒒 tK?sx!UKPָ%V0fu`QS@$ (|ۻDؗ\گ𶝉;@Ix#o t.tߎ?qk,}wYBM `LJ0X= x/s"b8^&bV{_.Y aIsi3*?s.y,l\f^wfo>QeKܡ GS?0x>m[:Orߊ OGS :nȗf$?S,9I/XO Ͻ[ôۣfAL_iaj5`sVۍ"5U>Uh| @@kv{7l2u\?DpZb56c@NnXD˺Sקɮ++ WXS B`55H>,Mw3(!0hwU➪ ٰ$ǦƔÕT`ݡ~HʶZ{м}\V5*yላ\."VB\v `Ճ2h5# 83- L=Iq>aƺre0rO 8G+Kj!g{|~a{]+2m)n3ט@LrGѸ92?w-5w7C;B0o@Ey9,($E*Mx 0a'3Ơ[Ջ6B=Ϸf#n>LSiv &Ќ^Iجzaveoۡ퍻`M6whH~^8FS7bfڒ\씵xoxG&D +|.#Tԛxj&W1CU*wc<>Nfh6@𥵅dIF'z8(j+3q[;Cۡ& hVWN$~p58xd^㨩 pXՄ&!E8"H# '&iI?F'1UaAFzwѶӿKJi2rZ]ߥ&|~mq^*lO4enTY[$v,V::Dۇ)] Up;:'w|Sˆn! OC@']Ηs]Ӵ! UR}P0Wlnq+'U82!ݖ owR`$跃4ӂCºhW}ץ $.@{rfˊ) أ hk@L*CU׮y9"aǰ[诒vP;ԃS}Ot;n66At4t4 Ů K1pj"_rfDb]h&(:*bcA_z?ltX}evXoL|؛G6fh4; x& Z ieg sq$/5:H+?LznH5<6Oҝ~8/'*!66E,>%9Uv[^a̅S׺|HiBqDT6,yזx DH_QSa4/_O.I@5١/:n$FCbBzWx: 󺦈raĶҔ^JZJ{RQ]]VjJ~(dz>QT`5Uخ^5N \AX>H:QjPǢC"U`SYNPn"\FQ" Wܵ 4x7-<]Lhл(?HoL'i)ʾσ`y髮Ey|~1![X_jI_5_MOO|K?z8lY 9|4DkF5|~t)m;|;wwN>z hH^V< /Y6.Gg*df03!\Α@qeJxMr?@}7BP]\K6on\ .qAǎktE_;x3o98bbuWlQyшvzW lPZ[ނaЋ5~0wnfhub*AdJ+,/e`rEvk ooz VMSBg?++lV"%1xKuMMMTMQ"I8(bH2h9(_ezGZ j0LlFc/s/b΋a4Ж,@tWrS!/TPQzbN(m kyyo{|B=c+k6d4A@^Z*UiʂYJ;֯|AxaC/YD5 #8/>FQ%VKE^K'aj=qu6}]MrD^zK+oc0AR77<;[twmٶ3#uM~ުWz]#7fֲ2k$)V'vQBt/h~ 4uaTXVˠf}`0}^"?Mǟ֜{h H( úY[\q#T`&`9] 9;| QhB'7RPE]$v 㤚L!Zkt` }jmԇ, ?k. ô^"c .Z=*-W-I!N]bĂJ')ak0r6Tk@t!!# ƺ]Yee8qs94}v??3?b$)\!qd]qHY..TJryv#)i|[c7;KdpO%lDyK4ۂ:z7m1|_[ׂ =Kv2~&<%?!'ʽΈIׄtlzoq߃2ɆB7}L$ b/f~&v>)2m0!z'mCON6CU@ڀM/і9d2(S#}A|<~ZTcN8 J!4^lL pr4m(E|ѣ '$JD2l-6h'ߐ;)ZI$1W:_PA1D/N\V̱tgӋ݉ L3uN|Χ >G˳ϭ+\ yV&pU ]jv7S 1U>``=FۅP:tEzUs3ӴJJļ^Q]V*V\p=^ItT4d+$P*T . K B s-Qr[(hɋ.2[y0_3=EŢ`f|&!kG!S=͖oW/onL@WЅ b&.oJ}:>IELhGrn&e*"sIotlǛ͘ID辽`SkR2(9#̹NߜC DL[h!@u<{X[70vCAgXbl!poyll3qf02N b9Is=yrc,Et\|T"}%MJƆSpp{R=hZA誶ĶD"RjsQڧ`!ڢ1>Q2Haz#ONmA ܮD &tMn%u?d@S궻 o$JRDf*yRwuag6fXCDw).0.;^~Ȑ4KY?mJlHl:ߘ] Y8尢pݞCUݡQ8 9't4n0!Z0۱=9\/ lz6U`vs8{)50]Yw"`(tÄ/!A(8ۑ!7$6܂?,Uӥ=>}lI;tk-5h {yfQ봺mSD:jkBECZaݫufw"%ۏ#jGϻ`1J3("# ֝bj)j#1&0T+fg tv笯>)Ϣ/7/C'(t#|!H+Z5]rڇr鞨k"J6dZߜx!:`&i絞ƾ6L[9/Sk p66X FA [Dl9b;+;~mzߖDkfD,˅q=K99YJW:fX H}"|̟imKl w*FZ&5DK*;뗾ȗl.wnEj "vGV3x ,e_#.G $Jca,N8g|C kޱ׆>=o(!DN#j"Poӫ1iKq+2V,Rt`8c[d 7u'U[M:eg5zX|?BEj~9,អl$J=˰IcqXރTv``pĭͅoy /jp q5N/{z:a4p6eO)>s0{١Ǻ p44X tVm/Ԣ`| %6YC8@^x0!k\ge.1K8WMA.Ex]\dQ+[nh 5]% 3oH لq-n>ˠ]a%źXw: 81[ ֖c泚#+s۴8/a,e߉ClhǺŖ x襅:֪bȄՕ%U&;[AILe% 0(bz`",@*&+E0%b~Aa:m<9>_6[flYPIC~WqlLZ57v ob$ [lO. zu`RSvNXPj%M1qBI#mR(!.ߨ?YK~V=KcΓcH3YZܭ.me#Wp=0lnƱ阳300ތ1givB8&rs| Sf]fa0bաL os8GJA| G27 0M!Y䯔m{(p@v~7'#')kXӴq08fn: 3{0g 1_]ty@ 7JvWYwwFnK{ ylJ){^n7/{- tIT)0|͑ 1Gtbcovk=RqYDJ<AnavVu>{W `vٍ˱ֶz&]IJh[lCqO6'^{F3P}͈0 G4ƀ[fm#ZK9#6:#43<σBxNikE JKUFD$J^z*6dFHB0<~φ٣84 :GR.$ :2|OEgƃqWm-iKJ"9f!,e7< fr T):;&)%./νEĔcħ {6@sa85mML9 {?|o p"^ #N[z+v9@fkuo ;iq#qtձO({J60Ei&ÃP- o88Z *bC CgeeRwD~ rv}\XbHbzٮ E뛛;6kA,)7 13Ҕ=_ UosQө8F? d.{W{p4x2 Zr@{{cHBnXjlEmiƿL16TsĊ\& Y$OhˆÖdؖcRf~>~?7h#RAHVV KbXe'irڈGQpّ+|C~-.}N2z03J ,][?X 4+$ҴZ>ߠ˶CPvu@!0&$P]ccKfSzZ[я~MQAZޝ9u%^׳)UalF1vTPR¬}iQOc5RrP77w)/O3tb0 4B}ZK!֮ Lޅ/*K,Ϲ-ypHUi~uuc^*،yA|4}޳OkMṊKGyL jiD^tt姮-*M<۠ɡ߿A:I Y;:$rv!ǟIIJ+D/O~Nkwwwu{_~J뾿7Iw$IӱtmTrGgj0K32,c;&.G`:k;];]o+h|;~H[>McC44@tdf[8cᗻIӕg93߮uD߹N{>ѯ^*NU픣>8.Nˑ?+D F!fa|ܠKXΖu?;J4?I$x}WQ; 95`o1U(b¸4nC}:%U՞38W,*$GEB8T/UipFՁߪHo"Vv;ˆŢƝOCxѝK@P4>eR7w!y3c\;Cw>@yG~,dhrʮ5ΰG?伟Yz %PTmHw,M̛yG a>"m=PPp˱O֮&vv=dٲ*+W2eGw􃗟,23#,;z?GOZWnw` ~MH= P+s i ؼ\xyY$W~V_{vybz9T{UltIyv`!i:WԦcʤN7Yp /$R(@.SLU'߀Sqd%0qH!_Ok'nn7w h.5}\3è w|THgJ ՋäDǽ{+dXMƒ@"̻Vu/1ÙmȾ C @zS@e|N(ћQfyxq .0\P1+XTH˭PKּ^lrl?h yn`$/K=3vkqdFdE^EEVTj[} nY'`x3j׶w>֦%Z8'?Gp.44t8-ȗYm}LjK|v;5*.UE˼B m7=.WO>hA/rL頺fY bUYRSrݴ] h._sO龻}"GlDxI|!Al?G'u@4G2:3#_~Dwd}/3>{ Hj|:DO"d5O xa{-|+!xOJ?H O">e9?pV*#l89vhJQűAie&.SrxB*6tY6W/b E꬇%BCjon]NB;$ ᨩńn79rtvwnLbӁ71w:1ѬZҧh\O^zgh'xAY"szE/<Υ!wr!A)az4I2n[o?j+_E<2KqT'w0fˋ7,qj)}13Kz8oT0̐x]P'vm0QQrGC\kTN1aT6UH_ɓZׂلn0!ϼqK2.x\'`0=搁.Iij_Rxp.EbMgaPqD)lCDlGέ\C?>ǤuNi6 jdUx?E+ܬSh*qc^qil˸9g<198v6`R÷HxKg." utռ"݂W QɁV>[X"8y@ʯw﷼kZT9|Mǒ؋O&鬓tJJC|A ?$+&)=!?gSy sC?ÙuT1XyV#vPg]P^9[mՂ \}d'*iZ9 X;hDlj(Ox`ksl`%UTR=0= WzCJbxḳSKMm qaDj` IJ=;iV!}W-ĖثzHְlM0k*@zQ W*JCƦQ#iㄳwֻb!%[#pOKQݎ7(JJͮn^S:Us*ۭt$t$.WFZ[+tZp~ Ij$0'jjq]v[|e'pg|#! ȓc/{YK$_kDC/ՇVtܵUav#"Cd^+쥳^#"bBaa@lD8^˂ 5sːC_o[{=A0{06a`7>Q(5t 6ǥzi&V`=.x7?Ƨ ?=|%_V2ϴG x @MIt/lJ+YqhÉoaHaspAoqȷ"DZÇQ*Cc++~a*l\臐;zswgf.L(C+%ZY apé픍'ۨEo'ug?v\۲E0 >X~IQ:[jVI׼%ą3Ӓt_/<az͚$n bĬø*O{rM<:PSs`ʖQɓ: W<ЍsE ?l{dEs=^Ÿ&8]M9sDO&s9~a%V'R"4tt[~!5 VGB $'=^k :cI'C*r$ɨKN@ij"h1=Q+qxjYZZ+/P?޲Gt`茫X>v fN;ookX?ypB4 5c:+ {k64 ;f^A1(z1iGDNL%PYHEjXSt[cWiN whӱ~$xSN{,R=`ޜVGg?:c{U⟏kOL;<{<04nzwzԬp)P5K?cLm)kumHqj9 5o _ 9n8=:hu_6g'i&a>$kܽ(oAN޲yC)q:JJ'J )ߋq.2GG & E6kqZXQFZ5v)ںhFiNS4? T3飻ɪɷ$_j]SUM|@!4ErۃvPm0 $B7"5pGיjJ! ok &&Z-{$Hr%vpIҞ=cS璔kTT/GU֩QI}zuzzcVBbMLp$ vѕxьr.Br}3r2N/WP|=N(94Ѓq(ulVWiOD^R~6wYdgH5_ KMkcm /n_v$[97v $=siJ̹ӔcGU΋/K9K~kƅ\t'_62pl>kw@FC{MމHH=/uߺr %q8/=[x^bb2v=:`=J[UDjDJZd)S>L^rhWN\aHX!~uc.#K*݃V}wh> AD\-~R*4Ȋa6k]t ic1vgO}V$@ktrbicO4p"cs*Jrx-o/C_csdѐ@X7^GqZ cQYvˉHJ$M-7ulZ [yɷm.%Uj"':Vv+%٩٨;JE>ЕgX`e|4jCh>2,uUHƆ iΦ&Qb%+&nѭ6M*L^[57Z(#c׶TKk{:ҠXg\Myic =v_[m_Dx ,|;ډ]4 Ew [=2O%xc`d``b `b`Z f xc`ab`ŴB3>`0ddb@ ޼\S0( P@AN?{=S226xc```f`F1, ;Pϰѐɜy 0/f^Ƽ(@2NFRy#ڿ@oOoI&.ŸC6"#A L,l\<|B"bR2r J*jZ:zF&fV6vN.n^>~A!aQ1q #sח`Kxc`d``zm2q30\]F/ͤȴ `q xc`d``7L dPx5AJBQ8ZS|Yi5*@SM[C &򜸀6$p-?5q{ﱵulm ob JH! }|*[3h +}m*X2~V5dqc||dp=b*mTϨg[XΗxRϹKc3H|JsT uNL?hkvC<'895vS}0sb 3P~xTNA> ]54ȅxL 74@T(1 YCwHmv]^;xg/`|bbA"7gw̔;9rh Zw<}x;Zv^Y]s5!ieTSYJ#.{f#lBXxԳόpn) iL#۰\l4>b{fY| aQS<-SĴ'xt1esۆM>a4)Cڍ7՛R6j!~v7`Þ5JE< li)RE(A.p̫Ix=3ZgC>J#/= :c0te "a1Pp@D!Ͽ\oBfctA>׶lZ, <%boճ_w]_xc`f F X(Dmathjaxr/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff0000644000176200001440000010324014005301544026132 0ustar liggesuserswOFFOTTO CFF | dyFFTM}]*GDEF} LOS/2}U`Bacmap~T:H head36 hheaP!$Phmtxt[|!(maxpPname0$4post 2x|G>,yB'ؤ';)pB aegW]{oͦN )7dY&~XwggΜ9<ϙ5# 0 3,*:'QIi楧I #Y?OOIχ%ԏ$7XvD"&)܌?0T>T0Ix3$.Srdd"I9zI$I!ɗ$:YK\+4K$%;%$G%$$Hޒ| TrUD`B[}Xf$Ylf2LSh cgLf0gי+w" rg!C< diM!!!!CRRr0?Lȋ!B> "* ^/U!O:V:Y4JV MJK:)+uKۥ=>i+ϥHJC z)C>4tum%P6ZZ7HP_ˡoie 9yiI&̝ &Ogb^BVt^|lzjLtlnNxaI9I)q}J,bn,3NM^\b|NԘ5IKV$%FNJIO[4;hm҄ `1%XL ӂ`175) E@h ښ5)iI3f'gedEgg/ZJ|FbtVVz~J֜܌@<xJ\ZӂE˙3E@s^mn7?X,'b~?do(&(Wrp)xWNRtJ\֭I9i998qIx*`Ddܤ`1-JNN7i`1Sl.;JH~ӢSҶ&%F%&fҤ`s'}KJBYc{VzxLNJMJ 9eBFg`)KN:Ax$aKȊk`1/PL6}8*7wG|NV֔߿n0P̜,&gNMʊEKV0LS0L41L ft0%d.wt$SRt2]bz_{=^f9d1q2ǘ>9Μ`N2Dbs9\`^d.2/1/3HژW`.1o2o1o30w?d>b>f>a>e>C 1{G'g2~fA7HBiHh ?,\2$BnD&pS!CC(Bn Q"/5dDm!29BDHdȨB'ސBG`C!CƄe"Ebs7N}y=D~+$-.!5LyؿI8Nv]'a Ȇ4n:u7ϸ;aOnyQT𵷮whmmݷo;#sis["/]w{ i㞋\=b=CɣNWcp%M31mGLGM>6egnxieM;7i?MLwxdFYY͚>kѬ5*嘵cYg}4#fO`%ΑytN#N|{\ٹ;|:-,./n ZY.ؾ'{"'ßzZ쏚riN._3\jWWWY6du=nNWoyݖ_[n\eY[nO;[M|:Tۮ&'%'.\شicvKOؖP;[Q8rr ݝ7;xi+0WtoQn+Yɭ%/>ZXzHRʞ-;GP3^tF&]S9ܼC,bM/Uv~/<chva`. <>2G \!V`cxc$A&(PB67սj+y'U\gb DUW@#9qAxj;1Y%ȄGl{h?znWmXo&^:|١FUUZИZ!Jؚ 1GlԪUUB QTؔ:@֗顈w$+Pw) 7ͣ+ ;:OGJIS'k|; %t#ݴ]P0,5DK !ۓ_[-fRkh \:Г E"kVHf<򄦤΍+%5&䲱F!Ϯl _V&{;7gm!ғ;PR%_^WyDp+9^ ̜,֕TA?D)2l]fiaYiH6L@,4Y~\} #h~+i?5GO@sBѯ?W] ٿ12,`ru;v08E@T`47\< pOy5/ۗUI5PJ 7|Tʉ_8Y'8jmu] h3`m#w_7xK8]v({Q|ݱ} vUi¯}77:,=S|ſTzE>W`d)b22F.=wzfqxKoeCN5_ȩA`Fْ3EzʂUkVI< $OIᴜa;LӱNq4N6|/u8;+EP,; A7UP v]|q_ ̋!HL<Vt).))V^v9C4(dSOG}3;+eOzR.LoDf1 f?@R*_*M)lDȖ(PK UJV[Y^@z VzC ;vaG紛&[H\:}0&WG7ZLC JTz1uySXaxtFɈkZj r; $& #>@JUŹ2VGGZ RN5Eom{y#g4ɀt(tW oP͓mSi,R !1m;Z:8X4B(HVkAkkk]K hF7V,vڠjեNb<ɳ /4vwxxᮆZhHG-&[X 謹`#YYWiY??WZLP}D.f4&}H ,o]* nEN3kQ^8Xu xi5&5A[1o%7(7폨Jk[95KTɩNg 3r`7v˱sO.WCꮼ&RR_ dMR4It e*iiipZ}L!ik/c{:z ܭ*(,B,n8ץ~ -Nsah@HKi/\Df6,y8X vcl kmk{MMՑUBO14. }riFH)uu ')>L(­QaVx`hf(0)dS ;j+VZGB x |RPIX*,1X'Y0w9}D묳 fC7dye"pBp[OVW44ŕ^8KkIlL&WdXV2B&NTUrhd m;ENbha2} w9ؕrpw؛Wml΄Ds늑 Y3]A0demn8"⇽9$X1\CQYBVȀMMG{>tKH&*~BelRH(Kj9Ul5.;-/ #"c`6j0,:C71a*_sͬXgtfpf%gˣV#o1X7]⋫~:ǐкcd댲uKb Ef` %.C]>M--dӖ겪.f֌[:`FH@g; 6SW =$"ma d5e^3^`>*">Ĵ ULSEκ' ۭleHn 6c~! ]jnaLpL3@ )="\pnG0z~r}Тj*X8_華ؼ\+5h.q%ה4`LM9M6 Bڵ !ݍ9\X۴]ӖHzT͂q0;pŀNG6wdP|38Q\ظjO|9B7៞ E4W#׀^n F +J:Go\˫A 3Kba fV8R, ;\m.[]H {>B5cޯ93uvXzp{ 9 R5sKgn]Lc1%Ep/FtC{'"? oM;xTKx$@N6'}fhɅu­TJG9Ý? y E A` ])a1f)ݥG\<]YQi>h-lEfg软K&yHxƓP}DFYk&ufoS2q'N-fdzzLqj mrd >]'u{:^樳cƢVFNmv8Z4 H_hUĘgTZOd&5~.iB;` &yI1˱ư!'Vvs|MzSꉞxGb%9Z/D4^(vCfZ|FMSY24DKcR*|T4Go-dzE 4 ʺy@,la*Iodx萿mi̷=NL?b!iC>ڮtUՎ80M.7JSHǔS{ᔽC#Osmf3qn 3{`PncAYlFz"JԼ+p?ոJk2*q "Pntg""x|9a]$ nCOJ́lJ+:e0MK6~g&B{EŇ_$Vbdm[6f>g0*2W*3 wb U򼿴&wSVA}!%EeȩZez+f6[ tktz'u +51 F( f't!T#n]b8ibW7*#Pix&J9dHEP%6 rr6oi&4 +5GMex(;,71GxL‚`j\Ԝq=tV.H\,mn&m DA!Wi袼rV̧P`y|AkŃE O֗q `ELB5A9w< )l9[-6Οo(0#ɷ;n|MMeNYpvqxSv'jh5s9}WnVqp}Gy7\PJԑ.>&TĶ?m晁A;Vj$hh sJ9hX2v_c+vQXIgWxϟuoNMۥmVՅ5PƩ΂Zu%)^BCVɕ zlp0 hЋAl۲>5t{xU"z;ZZ_"fwI<嚎||vWSˎ8 L=_YK5p"BMvU* Qwujs9P#S>-*lOr̪ "YE_&$6Ͻgfь lBR2gg,זuvok4һ77a*c ns~OՖ۶ؓۧيA؀EP-& uh/MfzUeƩq90XKRVizX'ny?t[:s1&ivEet=_}J5ty1G4@^GުŸroQM~fUx`FUlpP)U MAFP'!s@1WB`aUe*ˢ;W/e>1`utl t6XEF'̋b fRf]PkҵWVg:S\sGMm! 12g^/SS:Mј7 <v}ĖCK?ᜰAz$,긖mk0|KGr._NB=d6c ctjYiciLj*pmpث:9M}Gz8,}`e6G?"6oՉyȄ\)O#} w8ISX&'\=DDSdnd B;ɒ&ecY;k0y9a !3tVaӅo{t{6Aẞ9Ȃyj8 yFBBwFYF1A˄8ȎPzyxo<+H0M V a:< :fÂD.:[#؏dɐi]"꠼X1{^\x{>xQSFN7 uBbi*H*˟H=(_s9ˆ,#2.Mny} .,j&Ǟ\ Rաv񋜖߃`^ՉN 0qG>zLo׸.>-w ㉰R+K%Ǜ8im.9gR4rue*ݺm@R#zOtOtGi$\z[l: j\oGo!g[>Cg*^V%yVrϯ!r?f(g:󙳊+- X!buc0zIJcnPLLվW* l)+ M>:7xS"oދR[y XtX H46 pdfCF]ݻa`.h6淶вW.: w$>_6ʹP*SeI"`×p"kq˨J~opy ܬ7Mh]BO\EoT.f Z EQ4" voϼ=' 09SLa\QKw0p<È |tؒc-1Bͪ-ۖtʞʫ*l"'P)kii8aGAUk8E;{#PͺXTNm,"ݖkˁw&5L˲l]`bϳgf*yz>T=Fwm@[%I)ZyRb†|[{+~z5K q0 k\TdѲq|s B+*{ ?9={ "0r^^ TDv0c.Ƈ$%VhKߖ sw~]j7撯ʊ&OՉtlG%4NGБr辰T',CV_bT5ZuNvzYB Wa0zz;mVT˹v׬w )M#T(T^G\cF('Z>7BMRj؊0~+ж \utc(CozFqMɖvDZ]XZBq53sζ}Рo()lvhj(a ~FllbѰKa/b~} >:JO}ö;BΡކ~7_]dh339 ſV|\_Y=^M޵5"cWqp 3sD$Y܀y9K{MxfV8 [ 9<8SDFsJZDIT-9^Mͫ  HC\Z ayaBbfvq&lM9ĥkd$9\H :.oP٬ ¤eJNωl>elBuEU$a"1䜎08}0DjA~W{ 4bZUNB{[mqyQ4CE\3ݰy{hc֠]/3E*Wp[ú}v9ǻ+^8zUo-jtVaD|$NxH9KoƎnh6Jut^z"iY:U8ODA1_E{>"7)*^5Dz0`/L&b(m32x勒+G^lxztNl<1;X\^J0LOXnIE{rFJW%ԑZF'=W#ކ;8= r{mANCX?5pP|7`C.໨f qhFu{\OQpO [//1p#|0&SO7P\ix L9%O /FQ^-> =7-:50[ƔtysHŻ{(Qanokyٷ) SaMub+*VXȠUt[ׄ>-[`O.qSRc`Mۺy[l XFI+J2بkMp{zb _OSS`L4$榗`J64Sc{*o4i0FᨅU>:~pSIG6 B&,YrA3o$'i{^|.1+ᎈ(X_k4,h#{BknH^ɒ )IEyI1u;|ƀ|e_aq]~F ¼;+iݲ]:.W|Y"nVMyL|T6eeoBo7?NmJz[Qz>;NBOtm #'Xo-X{C}m{"X,hK!%9?`d:s0eC ƒ MHGa?_XQy/Ŭ7ķ6v_x [ZtH9 L=  VX-:mQgDŤ24@Lk X UbȚ}aB$]%þ`ر皷4AQƙ0FC 'ղ]_mC,U7*w?jbvNSYa4b׈̮BBnibPQ l 6 |>R>Y^g\b_c-Pg9LU)}Y.wBUaUny8̺Wd{%<:J(B~$Ix@hqN^fڟɫc &Ӵ?D'29}p0L)UϷH7ڞj\[\%X^B-l5\,COXD34W(/>VƱG^CNo6F ŔБ_M槱|xTlN#OY07:wY`nƌzgbݖ@wi:+>%+ԝ޴ !3 b˪we-޺b~vTA~E4/#b}4'1٧.N+*+MNKv^8I?c~R::xq Ż]GZzj.8}raܹc> ]f0Д& t{!nx⸶ LZ87m]I-rKӨj]-0kN'gakDY14(3(MX9֥ବWuȉC0=IF!8<+S^9n? *}{@ԛ1A6gif_5tȃQ06s}Rߦ Eݠ{[QQ%qV;*:IH09|9bOIB5V6<8X\",.iHi}ro3 Cʇ/k:<,.? CS鹳LYfҩAZ,ݎk F[Wy^st" QFsQ']$>N>)=pr4$j @pGʁ8??@gn~YW5h3A)ڵE9 ͖X9~R|9wgJMb1E" n , ;kWZĭuDmn RmʨJvގV!q.,4 fzaW L<*_I`G :nh(Ыt^ky=ǟYi#)b_A&|cxdeأgYfMDctذ z^oxn)߀Sg[ڽZ]?WÈA,͐M)/41hrpQ;:_:s geBTjYDjV!o ZR|_DŽQTgQլe`713R|H~6=Ɣ;˵:^[gw~E !FlG5sɗ%E[`3DL=]Wꩪonjhk|~/ Rz[!sך)g }RI9O6G>*iTNW1 <%v>}\;'|%AI88\-ap@?Ggȃסx. 2c`v0 R`<E w)477ZmSn 6CkV]8񉤉5)0j-fFԜ;{nV?+9'rpip"Ja.ak+M.UyA Io2 :~d ^,@pkZμخoʮZ«9 gϽnT#g_o*WX kL&a`4 V3V4rDLn'mV(8:T)`+ndW5z `t]@'bx*W?OJoݝw2]2R'`ݼ]ߑD¾UsiԄӓ &NٲʽQ{y!`̪gʸ\Ug &89ǡ譝.DIثuӵI>%*IXۍy|7?moޤd{ihG1M< > gmB4/H0!Йuz֤eMdBSS |zfS*0Z^x%[ 5V94[նnV{5w`3 c'2Nx liJzim¥Q{W(FfEeѴg_S[X5+0#L?X!-8^8qd`3S7F^WNڬ]͖R˜B] SXv9ܩ7_Cryq/>p0\&tQ&ފ /ߵyg+Z=ƜQ=ꗤ8?Re ݁tv z7v7oNlnt&AᎨʰ&+ {a;wL'psY{zw6nosnlkLv vÄVT߈8^|\_ve,}6͂C@p'{;7.)rtq"|?Qg:46gpρ}|POwG.聞]I{OuR~w`V <3Γ:p34qMI߸5) ֺC[IPO*Y BT%0x`khB=`=aLƺ^;N׺vd<"ipx mEƜi0lÑ7߄#\$uZ^VwD|V y1? _: |s6{.G{ilTuԗ{vxBH0ޒ+0l`l![h̓`6 (HX/GFP2X*ƳmG1xakYpa[K,LZ#lXeqiy#[񤻰Ws@:!t:e'疮غnLgz&TSZ>ɑ-jrml4tօ1aY^a̢/R|{܊>[bݦ>y: Dyz\,tc!I0}fiM/PeZ*KFUqy)a.(:VgH1j@170Q%\PL*"w/?tj,f0W ߆o |C߷ П>2o+ <`cORN]pVoGt<-86G4Yŝf¢ mؐ$:늖 * 3#v{tNB賗"S.Oastӊz*lDS@X骸f`u1X]) klz/q⟢p=t2x)f4\&b~ՆZ Q4tW6ڕiJ*ƛ 4%q5Vc{Vx5:H\Nvt$d ؋E'IE%UP\Ъ,n vKFI2̝;ss̝}˾ ;D ,.ub[Vp}ϙbo_! <9y*u)Y\Xho/|LM pjrmz^^xNpXyꃃb0 #KUiQncY+zvl){xow1寤svgEOdg3Bgl j\}SbV&^"KuZjkX߾8dvehzNKA8lUUC!)H" a: W h(]*eV>Uͭݺ"CB8څ|Z1%-T" ˶v5JJ7CcEYqnޒ_SlP/au #g]-0z cAn[6PSQۡ\QN RnTrjLX _i i_9JX"44&۵( LAٴt_eZaVIh 9 kLPzP8_wCYk-Yb=]|׫okW#v!HJvWeA*@.I, M ;{X5ly֮%/l h7T=3%OpQ@Ͱ]o3:DVE9_*5Ρ(w;n|_".\6Wr{퓍K,z-3Y[30Y̦,WlCǙx'J$ C~$H%tT se,Msb2ԛM:zmRomoE ^ EgVr9UbX-4qv :e}9~ѥSv;C9®8hLy܈?n5ku:{%]/۶/j*{+\N"J;'+ͰGaOxrKyGO 6Jle(Ob 2:U4 9޲vNr*~lC/:mp=ƠTNm_@~,1297w@+(v,3=cGpjL TҙL4ɹU']UX"[&%/t tTA􃃂PA/©M($ C"M>*f i ?*["37۴,hؐ{ľAe,;"Y?so]SɸdരCmxПE]Bu%T=::S.Wf^<3sy2E5o.To&rT-=czm;cႝcgB~aϲGd!PG2{[%+4Pʃ6Q|$2;re/F"E+Bt$XW] +?]"԰xmtC+P 1ZMf*9J>*_ >3 (| oG}b+A|yրי0`eyx:!3;8j~ymi^Zuh͋ !II5e4PN_];^FKUnNrG KdT'Po;Pѱ>% EM﾿{>+؊B"{/78y7D152 .i XF^8Usyb*ỷx/6-̪s;\o "()fō%;-Ziϲ#dI~.<árxm>o$J> UN(r DnGM}+ Au09g agI3l])%xbQ$6_ζpwmGGeURINѧެ)Zh\ O!\UVUlS (~8ަvXѡO 5NA⍯l,u-j;y&^() KHn1̇%s,v(P3xl pdߪ%x@!3} 3hEJ? ؞X ?GK!XXEXP~4w~Ӆ$8أju[#Զ 7* (5ix XXޤGY3JCѢ x4( ׉;AEWlwtк >rՔm4 ,ձ]nET@aDG+G#9cYFFaټNRYJk,1Jx)=0d`N;2qkVtyTU2kyFe`y揜bCURnxJ?4p(LAT[R2H:el.L9ytA%͈u,ZddԺ;jf㝜,66[v,|s{% V2ix]^pZ%y$>5^SauY$;"-u(?@g0>DޗUcsæ-`3SӕѱnwØ'VPG J.)x#ీla-EJ+-5粰d`[!n#IS˲6k2!Y>##EmRTGG';x2F(b4YYR> U M* ׌\;U̜5 yoWFT/zt&]r2lR5:JNAHSsk5 L).i Y-u+K2-ZV*Qb5[J68ޯ24\BdT+x-B|J_-t54 /wPpI^ًMMU٫FUA^O%aXysᦂ&dRn(RVIKՆ\hFjq8rrTsC6-URpԦE-zg;e+'X$BR|{wv/rx5T8"sb_/P@Wm_]}.3g]!O"FNF[>JɭlYSUW}GcbAjۨ*/Ɔ[}yܭ h3N')7%9Dj{YkPζ ]䓶D*ꃵ0 KSܷ;:2M9kT:Hri3n:vQNWS_eW ,"p YTK>hĸ.Vc { \يC"q ))ugc2J4E6Pa}ka2 @@USݰE)ͯj(b/{zq&I߮+|¿&.݂|ߺrP*( lΈ^p.Z~;}vb8dЎө(r#~[%%וp6`^_6(NqNMkWѽv-=ol>p-o5vwt}_WD,ON-`m(ekצ!‡>fSƎVv/q=B :BQDy{׵-y|zWCˑ^`' L"vj3a&bZ{v)ϸj(-[~EbgEV^4| .A^F|}\L n%צ!N1{X4K ε"^KPf {)=vkpK0NT7\opV#r z-w{X|g}#hagJXR@uR.ܖE|;cS,dN^v撉ǀ ]GtBDs+vX WCx:drEHG"ԉ/esów(\yU tZPgiZK,s̴4Vd>4~-kt_l/u}lXE%+rp @ ':~g_I;x;7׮&)xj*r_n[bYI}XcIMmqzs5Vݎka:}E0%Tg1 rGW ?pFp!˓5\J3wU8R'U%S. zDd%as%i۩#_v)oI½2 !x ?Fj7ceo䁪iWE<R/Y2\Jw?+mcN\m09'֢m%WM:~o^) J?EPRc޿$y>ET46CB=O;DN: '&;8#ίwx XNV&"Kz#?Ѐ'+Wæ$5Λ(>*ʮC[fndl)PmnDӋUkfA4RӑQ?df::vq])+DkiXw#1 -EtCKd!("wPi݂_Dk{kU~YOȮEh(ieDM3eP!/J!Rk4EA8KLOkIgtӳ_}u>;jY>Aq:^Eme(b’"']|@di%R\7GMn }6Ano@ u!#Jo@~v" vꁇ dgm_-<Ƃ w BDZlEQ_Lua}c5%L&gN3"?UN{^c5BfwQ k:ӳ`ʦe*B>IYO!ΪR=ڃ{X/,([P|?Ybĕq5f/AY^hYc .xeIr{ܽ@5joTPDp:K!z7{g‰矛TpFuj;]EEj}k?]j tVOXkíYyoBѪ=kD>ۥ D8֕$򢞃YY9yeYrG1WLw1)T?JUyI>E QId州>pz;axd[r|wF/%'-r ?kRך _isÃFREYtR;NXT8$A6/;|n^!Tx.׿kGHFm4R\)*Z>#K'&mI7I_]YiW WYkF-!#IX|{YrQ"$ڣeBlS]3t#5huo<^v[J0jv:8# 46?R>w:Wel0T鬦ƱjJLJ,9=RSQFF՚Ȅ:Gy4rԦQ%`82zŝOht-q{X17pQ'_pcnձ+]gid4%~Hdo|Mp՟-4D$o!shlJa3Ys+3f k73\ͥMFO$CR/z$(?f/@m"BMe5Txg4sq$ް/)%V['bJboFK-lYglRptqģ?0[$?"!#U*'< !_N`:;~1&yIB.:ftuZ޲~fug]@#*EA͉uuFN9J+A Qί0fir7$oq5]~ZeM#!ˎ,-—m^]ܽY1P ASXY4D&wO߷+{gaM-jP)z9._6]7١w%dPI7䬊k>}?щ>؋+7J!/Ya𬗈E[ƿ4*st@݇~#cz {QGJϝ:r6#51Jv0RgуȉJ/V)'izqyWFvQmzM| `4IaǶFOaW@=&7"7LWeTHUOT#g1sݽI&_*x ^tIR| ?N!Ӂ0;c/yFn>G!AyT\@|@&3.$ݛ5#)L>S/*.Z_}6tZt;2boa]4٩҂kb˘S[pߩ#1.ԱHL"T3-P ^b=IN!49뀈H"-ehtd`e`5b:5X6p߅CL.`G1@3c(:hq_&߶I7HnU0SP`{#DƶI)L%]KL"?{ږ27~a *N%<+A<])lb#w56i|fZQi/׼ؾc! vd""3{`\'ȩd2HwqD*w;HADxN^?]o'*UfO>|n DP,hU{~W[(0f.2krޮ™x^@v8h~"S_XxxEΒk9ֹq'(ޠktԆee^DHͶM;Wۓh[dEs-ZtۨM@ӟuXwEXU sğ$\E* ?W?I:y~8y"qs a6}'v8LJڋ_a"'6}Q0RH(yfC}<*~Ⲿ C/Kf$,a)b_j [Ÿ}:Pm$Mgv`KD]<#ZhJ-LD =>bߪ.!0'rCkbssR/jgP} >r4+"᥆c>=hM-Vf/hs 5apqX$w@Jb!=.,`^ "b_\|(+AD&|_ĸS )ۆQbR{.fTK&P=-902Z%|qT V|Qc{SMԉSO:״Hb"Om$ʴAO]h* i8;d3S]$*'?y?9, Il_+?HL\X[t$z ip؛r)9gF]OIJ$5Ҁ4]}$n:;GIÃA(pUcƆ/~ wCpSLi÷⴩o܂zϲd~ \Yˡ+ Q}tVmh7 )Uh{ tEdC:}aQQA-1j$l sҙujK66<,}on=#k[$drq^sMY;wmڱwyLT1:S1eǒ:^ʀaeHNwW< e|hW#j$7`cῪBI ~DI|N@Cێ$"K~(훋 ]V{I5S\ڛJ,Kdv)v_]|Ưc|:2OMh9Yfq<w)V6 >DJFƌ".@ :bŽɱNEd{xVApχF'%Fc3I=h@Snduo% us^8oZx<g_&W^=|ƦZGU;?<_E WSBMgc1t[m%w ȕKMd:ě a5C9{2R$诞[w.ގZ?9z/Wo:qwL|͘tS|t9d/SwHIݫz:u=vh¡=+byYK=h+,]7W`ܵ+g r]k=Տv/5GMںPkQȽaun)Jmna;쵦zfX;oHBr(Hf]"!}]Q[Ƃ#nn2zT޸Gl;{cC[[6RS{@Sݮ@V /yTH)iSem85  GHxӭ״7S)SJW~(^y4X|U }A/۝6/ `6r $(}leVrv+N*M;$mU8QH+`loS;TxtpE|5nX]omxiă#(?}uJ_>f.'Z ԫDN({Pz <ѪT1B~p5S`Yְ^U%I ð/qGwrnC'RX)l;<SbFTKהgCDھZjeނj8NQvz hM(%Rҗg]4:$G ; -cepRS~>'~p2NvgD:@~ d DŽH{9xo0)KoXy`_2r6Mt*VhHR @i}:KoCKV[J/BјҏX.DXVp4.(bgE`R@/"A =SȺNu1-AΖg=Tw$R><Wpp f1'eWe,A+"QiC]Է3l(Aygч>}ݦկrONT?;_/ 1j~ZL:Nxӣ$_Z-.L%FW2r9U^N5X ƶ-bVYxTa/c^<&3~Kl/k]},M43E e}t dhm[Ya-̖Z;+e[ҧ$>7L˄I0 ʋ(J\@{du>f&ng\.$90gWφ7mluHtjAAғ&%N$Mx m(yTP1g JP)eT7eoǩSRЭʫWf^ 7ٻg=aEN4o#nXK(wY%fSI+y#q. G۹@Y 5լ&Zhx 9Ƿ\ۚlCNp,!s D_ ,N"2Q?'k\MHY٩&thWGȑfpA!jؚ`];l1j  &JsN,Cin ߼X O=\]rK<Җ5/=8GƮ/X (c#7/?.ܻIsĮ& W@8,V҉BZ FEiKV屦 XZtXҾx 4( h#fc^UQd,$2/Q2]W2QE\tȿ 8y?;LeZ{f 5D締`PUWWlbs˛ʃzZ]s$f}hT؝܊ޭwZ%pT`岉: e/%h᦬[wR!Z9{ܲgKV]4"f0CQNWmg y _tѩ//eIf[ĵ,E~jZ"֦F V!,l9UU]^tkV9<>LGeW#CiM-ZZ Po%?/;P㐱UWt!<>n{m!GP pOHgI͘1αg#2ՅuLKv.,B 63{tU:%AV#X]!+ېbUcc(;C(ꀢp":X"⮌uo/=z Hڿ~$II&ܲzokG$Wu;YrLc&$;y9U49r,(m;4pײ\Pv^&E@HqrLK{_iƃܵNy,t?Zd+4CAWaس|jm{i I|%F#p.p39ˮ,tDk+YEw(LXyIFI9w91DǒJM!O%ta6$Ie5ل-x q"x@ i #8b%H$YMQܪ40x>^q|n!c&rfd<Ț+&g{ &MMm*;od N*nEכ.;_zJ۽Tj47uVg?yzu)R'[BO'j4<@)󹵿>)3)T}YXֵy^`R$ܱQvjַn)/Q J`O^>7ybo=2O%xc`d``b `b`d`d,`Rxc`azǴ H30@h L@>400`xeHsMaX?G@998f=Lc Sx{LQ󽧾.W|KV]\C-4י0F+brI4Drny_Fc.ìy<;B(@~2NWīd1RrT*|1H7R:QWI#i-!ZLc;a~,qfca1r3Nj1^/+(8x !X  aD!&ȁP%P up bV[/[Ymi%v5$:t~*2I'@ C_Z$L̗kŐ+ e }aE21@:,l[! uax' !Ŗeoj1T4kLիsz~F՗µVVj+HFmR_/sMQ+kleRɐoȻ]NyYΒM6K/yx Oq,2,}Xpl\ 1S00c8a;lܨ8&:qzG^A? F& Q'gg:zy|:u8XYm!=zݧoXxD"5dh1q#F=fl¸'NDcTmeνi3n位 όVj:݋q=1[ QҕދD$=|)nShh%CCݶ6,4F -ae "5۫CKrFߠz4}'3O@kuչX]' $J>.oKKfv2[ƴ^g1mMs2#{Jfn6~E?{Xr 뻍Je/z_of\wc}ۑo<*wȟ#4PۢߍjY H/I22zd|=2C$gYݝPxTMO@}QR*UڶC!$>*( j{AYE&C=UK/Uy"AUݷ3oά5 _ 0Ow'̲ `2{hş/y ^]xJf~% Lm<^\Ym)se*oPmR/I,C[sꝻkEg@T&^O]vqvI6)h/qgQG&" h7[b/skP;"3x*C)O4՝ r9R7UaUO/0#xc`f F X(Dmathjaxr/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff0000644000176200001440000001324014005301544026762 0ustar liggesuserswOFFOTTO 8CFF ] _FFTMh]*GDEF ^OS/2M`>Wcmap%head36 9hhea $hmtx4t maxp1Pnameopost 2x7 tTUS`Pb@@h#ʌ" D!l_UZ~F a65."`4*=~xݯƙgΙz{w23,ˎx.j݂ܺU NYT8a1,3EgAicwe.mНδAw1#ӆL fs/3<`2bf11ff#t3)=#3+[{3?;MebQ0-=8 d gO[YYV[]e57Qkʲ꼪(O%%Uey1tƴ8x`mMq072c8q㟖ẍq0'|<b$`jd?t 2͛q0rUeuU'M>c 5E ז^WXPW0y3yʒbXf<<̤0FZY+uNJ^dClfmc ld7-kVL1̃L6a,||C\E"دyp˸w5$$O|+?C|C'$ߑ<*uɺd) =xGVʔC& 3,gXQz^#CVPBoVIĔHy iǓ/*dTi$mI۝NpC|$߿gvl<iBT"OFEi8LĩHnhs$N&#Y@\@KH}7 6w # xN  (WFk#`7xN+ ?6QtBHՁxLY&?\= KzkW$!*F)8#Qn>`q]FЀA#Eǥu=7"(6 Q?]%dIB!WD vm =|x3G8*HC.\Օ)5J'w8ܳ-$JpQb hm#%5p&0 `kWTԦ d:'L1`nЖZ`zh[LG{J! L$G9WPo,>P_CBe =v1U bNM9c;]S,B\j9K١:բeVT 5V`(Jޤil-_A5fAYQN P' zscW $]Hďr"R8ĞnG>DXԼhO^sX 8 x:Ƿ Z }VQ<Ŝ`|mSoߵ;r(Fh[װطۧ?N?*c_)~:[k9d yTw! @D A-כsJjb۹GfZ 2N pew?ӉNXq_>r\^G_kឩ.X4Z*~5p++%\:vzz}A]ixXy[|-ClG>Dn5%tm~es) h!2"^3r=EU=4.^*h;5ҫ/u@,rtmv:íپ+C-Vy]׬1RNew#W/]TYBA㌖2ʐS8^@Z T?,+}/k#z˫}$ȳO>6Q٬ԕl`ua{@ؓPcԼB95/kg[2 0c@E),`''} a3=jyřO6 8Kaoh yHjoVԭalW$yS'BS%vl_ GF!) pM`%nq3~638m&b,3M llvJ.E8^㣑[\9l Go5 ^ Ovd$MbFH3Ω]6b=J+'$=Muc_Am|$Sޢ۹ҷ۽#NSVS[2 uuC+:[›Vf=otF!`joca3*T9 (L( tK ד1o ~ͮf=&O3Տc^RSNLJ8r[uؓ6؂z$%^^QD;:@I!y)2`y[I0Py<ǧ`[!4uDޮJuNd< q7"w=9E{^- ݊ ),Zpҍd^8cVR+TPhnxxQDZ0Xe%q\[7e/_T*$%*R2ΒBj,]M~}4ǛKX<gn  *EȊ]t"  Q YB$ |>cCޯE N86˜ "%#^YM*B@9.hԪ[6z>bHZUqn;0Jͣ@ޤQ@rwm/ڄKMoz`0ddb@ ޼\S0( P@AN?@#Cgxc```f`F (1, ?%$5bj0c̬ 8QqEJJRJJJzJ/bbb{ @HzCj+P}[_ ry^={Xݕv5k gbS,$ƎWP0@Bqu&I,xc`d``m2p30\]F=osgZ 5xc`d``e d` xc` Vfrb0g\p Hi1&wLaI 4,x9(0X0`ge3P(4vD@S@,f3ZD e gaz!(P1xTN@=T`Al:JP9CE JAnqxDR~@/'tEǓTm,{ܹs# 㟍W[3GgZ28%cp<~~5l/b>Vg/t[Xg'3xje. ye@= ^D!6z:@`V9VQ泆F;oYd-;voUTb\)N(Z'm=z?>tq+\%7w݋=#Negu&##zHENP z/HQuʢ&&EczE=] 2cŪSQbMNy60ҏQz:c#GWV̇ivu-#)":#z,c3Mq[k:Իhrg99& U_:4Nxjs[ P-bbu]שtճ{bec49]s\s#P2ʶH/sr*8ܑrwH 0AؖH|)Zp;Qwdfp @ &$Z{' ]گ3*ן'=Axc`f F X(Dmathjaxr/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff0000644000176200001440000005054014005301544026463 0ustar liggesuserswOFFOTTOQ` mCFF J a[MFFTMK]*GDEFK0 OS/2KPR`ApX:cmapK<_@m@headL36 &9hheaM $khmtxM4Vr gmaxpN|PnameNNspostQL 2x[յ> yI"Ȍ1)ƀlS\㱧wIѨs:E4h\`!F -8u4&w,`F:gU}{}T⦲ۋ7-/.hYSqUy*k<Յ3T+W~-{U~W gTg5̳UѶ@PQGTT]U\ujjjJU2L*ʮ8 NՀj\= )_EKPl(-R\oK-n*l+ޮ{qmMKo.j*-[הU|{u=uU5wXŗ,n֛n{:SC畜pEW]x%\XfҚ .)?ZQP]\?yU4y2UUP}S-U ՙ**,wS}_٪BB4U~\.P\u"Ū_C.U]r蜫TR]FuMUÖnS-SݮCu':oתT+UTёUݧZZZNݔC<6˃<>O<^ / Eyx^"-/kPժXՍ(*c^:3+[ժΏqU"kO{ߨQh74oϼLj~}o<j/~9{ 7֝U5={O?\Z_8g _9O?q.8.CEy.2,]Ұe/ W^+{ԯV\}ຟ\Jn֍.YyӅ7_w3k{K_mێ,沢e,~Y%OEw;7.rמ`yt{ι>q/׬\;=qgoٟ?^/?iOO2dq~+'O'6|\>7Z->M'\ G%jz)YW(/fͅ gh>C4}FtY?_|f'x'1/X>G/ҁ3 qeQ@[X{?I"2 QozſL> $ ~@$׀>5ֹL7:!'µ |Ǝ QkȅW>/_k =se~{_+Ĉl~C p-bRzvy]^pl=]W >]=I_ڐ9ɣO+g_'>1hƲvkɦw8ݜ v l+nGˁ4꼩?<-fVD d:{#]SQm.hma"&I C׹lxCpDQ@EO\xBfh1'(g\+oڲbq `|;h21'y#u&h{$2֓Hz81&BQ]譍fҤW_W1МW6 J=q`!Iu»񊐬X r_};w^U]n+qo)td2I ntܲ/hxpjdlz'dV*'nv >tdZnر牭o+ĸܢ1Ʉ(Z$#q5%kuj_ 4@Yd{z[>Ztz]ƇHu$hbgb;-q=jSܔDs8DԮ.wJhllR0P;͐L_HvNwtrb4& 4@c)nTV5$#F~ #&E r"#my1>Пd= Ou@"ao)iUYe/e2g%]Lo]~g#a8iފGMBcs;a!&f ?Y'Q[z8 qJ\ yԕ=}:LURv;ns)h@_pڲ^EB&@ 5?$`=VѥO7 CW IߐIfyAD08IBN2\Ms(QsOE\>,Yu:^E7nޭ.Y``D-;D~v*]BO^?DAb a{4 {"+b/汗e[/ BP1o*D ]~*福oT*R нJP5O "c+m^Sn 6cmo@FG;|WrSp T2桎x+,l4OߢN6kn^r̬R@|'",QO`D2W"Eg3 6"|s%WpJ 2X (?=DrCrd X/vz1?E:fT^[VmMꆻlұ}=ޔF. iillvxt׾G_x>|f Umyjal<|Jh zkHh{fd7z2 ~n]m+ko/1ޡ/7Vkvu@ TRٕ{跍yt0Wfre|^ٙj0%+D x 2ncȈ X>If;;EMŏW>IQ17*߸t43֌ݎ@kP.CÙ/Lμg[yVDSR ! t3ftcXg$7Vܰ|c6.uFxчb$$ 상pY༫lUWrY I^ PO0m ~P d\MFwîN KD( 'G=O'@4ܺb6(վ=T%~{xhh- f:L Lz,[jR߻ً=FɢoVt7qaY2׼}w7<0IfPylr }^H!!ND>L|βֻ -f"> cAUxf'N`Z\mm=[^@/Ƣb!<0YKك:LK16;76ǥȖ=f+'9\v'F4575pɱm[pHve%&P˕"3FbYBܺ~60慯Ӏ|N0ǬI@(RNj$t =|Z%QĘ8uā,^τ0Q L%3h Xq"R8p V?@h5ͧoѢ蕱R'݊[qrkb -ME6|{[:'uxgMn?L²>~Ho3p%,=4}5Io82{/LBBrO-j}mMܜΐ8oh`pۜlXc|־P@pME9S;UGzZ:'DDi`;Ϣ|?~zlI D^?SB7dB mK)"7`}WĺiS~#ܻ=;o77} e5:c;m/4;[0ҍm-=@ F?ðss˛f-Ysmk<9g,Mlj2 F=ぎ!`pÐ2U9 ȒuEm:he=uMƖ-uzஃb0 .M69K_޽O(1M7( :9f^֕xK˷WxM. męD"R(8H7Z +Q!,Obb4b[/E%oн]T_H䨄<|~ņE^((_ rE$GAo>B BX Z<${ىur[pQX^?TOv[u;L34wLm{ M6mV@O#[G1jID1>yj: %/iPD@j?DшGdPVYiJ]PšhbydSQRQ)NYpQr<~Za{`zpvhN?mxrX9v MwcUW٬w^Wr"΁k&24sݱuB/ }Kt?; HDe4çai1r-P@Nt1=ze1?z%gk)slhYmT:7V|;YG_ŭjdҬc>tlr% ^9\+XRX4ŠOawAN8UCn8􇮗FJm^XoY؅~;"ڷILNe) YlX#6Ao5`g!ًy:i/,w-^ǩ0 I҃ ^q4Q,n…m-ϔuw{=pn,yect|;_a3yfW䟸'PC{7B@BI#|~z 5?0^ah 4d4mju+5fJ{fhD\ח߶bVj,bΆaZ֯;[>i%FjS>@sg0r0-K<,[CUcdwskαq2;{~A Qn6Ӛߝ{@ЫD=]G3<4@Ͼ9/)oҜ:gs0?pk}b?Fluc%}k&H *03obɛ]@/}H=[E4TьpCQ#7W](Pl^ib%p\HR>O5{ ŘNoȅceZF_ 0(QJ&#d~W }u.zhk@sG[$D1*{a\{w?Y"hD>ҦgJxq- !܈rUIC:!\}*/<9 u\ (+kĺ^R=2{sfо{M(nL>L 8mSՂ':L!q2B{A}e| 91mV-%eBsѠbteQ"NYuP0{P!qd=Pü HAPMp800pv_% ̰AHW w3;SSzd@%>7חOӂ '  y6{{l^:<>{wt$Dk . "t3v|,pRŸF}$N-Em6atM]>dlX准\&=дʻ@V/*]H鶇3ݏ۹kGoEhGK>92cf9+f ]J8~YjFH= oM)2925OY]ob N H ` d v(+Jl84.dfǗz D>K#ƪRO`rLH JWϷE/+xe |r,~`ՠQs;E5h} qbw+k<c p"`y4N$()hڅA~D ~"(p `b* ȳ6%8c P"ҭE CDLt~~H'Xom[Jm^֍]ư5 b]:܈7k1;rWXs\ N~H1IdYO4kyߑ͔\M~7m"Lm!6-x3D)c8:5~ lا:,>b/xKs@&E~͠??ЮZ\{oe_ܟ%ߦ!D﨤lV+4^mTv^]׋UNeQe+70grዜW;oEȭub_$]1GuHvЧۜ>@2RK͚j& vi7({'<.Q7pmXu% *-|^MRzX _-w*z1Je)HgI⫷-0<+3s>!'!/Q^QX+K3,D>]Y]_Q"+p> 葿sW;Jwcz[b"X/{xz<PekE{p3토cńDgf/yZ W$iQww\lh$v5Cu @VBZgzhsmW{MH8(/rg#ɨf,{ի&z3g abq|JO|oG=w~:-W@,˻Uul[aCiiISӅޮ3'my >vF^3o?ԋq1.Oz)q.EG{e:B #-3`G?{Mȷ=]k˃GL&#Er4PH4< Bod>G߷! fm&8Ll3YzG6ܲj3q٨;J[Z@lʵEQWo#KiGGF Y:C kѳ>abwb+_P{(E Ctll@{|N?\ /4;#4>~H G01)` Nr7c$ah @'iJGPrߓG].keGm07a$^=u(@\;%MZ]''i?wD>~v#&=Q3܇|gNtZ3iB@6 V%YB FOH$~? Gԃ[6>ʢS<ݿwq%yca>rk{I6܌J/YsM!p&SC{aDQ?H ʯV6fi5uޕ Ҡq+5:ߚc){yH2~LD-#0ݲXݬQWݾߐ?Bk Nl|F{ޚ]Q{hOFA7r"'ӱUv|UQ,{=W!6`z$.4n *>WK4w-׏uKi Ѕك(<vb<Cֹ-``j=[M)-$}=K+Hiup;cRbZ|0HFKɸ~vlBX._3;+:'?JLrJhYm2Hr49ʳ1m򍝲'x=ϊvNj8 ]Ã{ѭ 7za@r\#/K>p"e^sr 'g8 .:?w~!j=qn hyEs#ㅇמߡ_5.J* s_\&d A{@R}C;|Cԋ$߄ *ϝ$b(=%>Cv3^|:8M<`F>X~ s T9rċ^kdmxo"|yKZJ~hR)2nj\N`?̧sM!_vQdWUJq.#'t)`sYAqLjvni(E%Dxs퉴;Hox+I&3,>/伜YxJ}Fa?L4),Ig~N:c:l; wjzW+wDPxЦLU0 ڙX %HX9"0xSPdhєSٞ`!r1>kD#&a|A#/Ƌ&䌠 h2 J{i2\ d>L$y2QsU>oeeqk6/3HFjeC׸sqn$Bp8]22_ҝʂRO%|[iaBo+/p^éw( ܄g;VAyIOԭl8mq1kQXdfpcܗ8 &\ rx1~\MljT";%$r۫e?{އ}P>ݔ]sExa)"։@G񾾁`O#+|)^M &``iuav8E$ T4IKV$\L7qSc`4٭V6{э@ +}? ;bi TKIdd08T /tu.@mo;..}9 ̰c0 259|8D~ṫ_|,}|),<*r>tH@X314 A!1ijкe*n*Kf82قޠwl[^a54v:{v*퍬6׀ zw{Q͗5sBkEs#i /Sڣ^P]VhfBY<"9a>x!>u(3;x,]Lܕ\M51vd/KUJsVˮ_+b7_Ns H D}e.6PuZEcm Ca'h,82ׅuyПf>}ȧŴQ|8M;Ы!.>ص> ƣƁAO%͗{Y"Ъڡކ^ 1F25kbc^`e1J{~GLKevր_TLW MŤ1T)8y":2yM~H?5Z2S7z]`4U9L{8q~D] v40&&6bH@hsv  d8yIҦ/WmUPwGHhj*ll>Fo! Tvq\ 6PLj k?*o.|?^Xo#]cw{%PXTP$/GH!"HkmXW<= ،E ɶ{>dX-.3|[$t5 5 ۋQ:*i!c?<RlvnFPw-w8VI$๚'OK_}ڏT5 : wa$nX)~"R{c*08S)Dۋ-U|µMaQophUII(?}4~P_(nF5ɀ5N/|<o~3p2UUjIIĀMKkK`iq)ui:W6-8.7D|xוVjCe{tzr .(IXj[%[ #jдs|,-TB8/Aܠv"MJ+>VsRӽ!M0$q&ѹ6188L:_|6Sީ``ݞ@ۗ>(DH94UKނ2|ٸlKW-[q7~֒Rͻ=S9vR|lM@[O; W Wrj4 ŒM`U:f}t5>E\]u=q:զ΍5[EykD|W˲$džwg)W<\|8D% ┿fBl2FBmCCC#5.ǚ\4 }whກ5Vލt@l6}gr|\* ǟ ^z_;/>Oߠ氵 tWđ-Z؂lj 㖴3 pC+و]Y*W.PiMD$n҃tsjk!-b[{lݎ.0샩X`ATS;ir #5ΐ7cx35 E~%&GM!'Ofh?cRhX";PQ:ho[z$v^ieLO+ѯRpG@\@EY +V6j6+K0I/0ƌ`v88F)izܖ7ނ= jWBB7g S_n ~Op'[Ү>@g(ד#BnHG~Lv;ٳt\ag!lk=+tù97*!%!vzѱoo6µ3߄QD2j>Z⨿ 2du`é_p/ӕ^0S6aFDyZ]8 !&G{wLͤ_!'i]MXWƌeYִȴl4; ,ƁɢG*':Y 03"u(&AQ臐>ח>0ZE L M-XX&x\-c]m Ml[fE IiXGJwuu$P,qiO˖zLQܐ EvpSն@`G?IWE'Izɩ`3 %ǧsYC3mX, zCvtıp &`0&F_V}ei7igy_zLJ ʍhOc%IB&/{$tu8>w&p$;n&2mB?kt {<+nn۲oV>TjZybCug7_ߓciXP$Ex3GMz 3e첇Z$=ʑVXm/cVX\gp/@@9!Gp8n\w˭\XbץrJþ# (ʹnbs|K}1_:_yC8]>;4/wd3Z 7uʦ^q0\6^Qv:-m@͇܂GtGc@XŽt鶪Fo纎J+V˦ʲ 'qJ+bdH.~_[Y𠲯;TIh-[hr(}"p{8u-dbG-2 X<ŭk*5Zc/O WsefF.9ڌujXbk6s+^퇴"<kHnqՁ/PY8]ޜ#Be}Ύpn֪Z'|ɳVbM&j ^^Ґ\#qb=c[Oev5)OtFVVm*Od_e<c[2coq[6Q81ޓ3 `_XoeyYF''ՏGE0$(=?iK€>F|VXlo*Qv*dv6*GSJzl]3y@v^7MC0"rF>ʕ,X?9Pn ;v٘p􋼟BaoXm5{]KaTq1tzenY]y~+O/nanm`n2b_xt}:ځ'vK.L_fϵ)ǀ<1 !7o.lیl%Ǡ^A~^jWMF[#pdai=ʎ3w3̞Xl\]>оYa7av)m Sm RJQ+AE,DOmnJ %YGBM5a(m=啣0\m==!/,<:;JoBxb7H,߂Aq_eNxJ5@< ?nZaxZ ^xbסMhD}'W}J!/"i|':jA1 :.iH2DrkZ >e8 $s /Q yir2Or߮"0,aJRtJïHuje(:8£ * 3bM=JwRrS@Gv'{@Ycnp:PW2i\٫>r֥<yQ8! Wx)!\  ތHNy J@9 Ӏ8,WZD'5r?l߀gVÑsX{hox΢ Ax):,]U1ߛ0雌 VG' DOi׎>vAF ݁Ȍ.!aF-$jm`f&\OqH%d1 JW2FVz?8!ngvǕ\uesTqreW=Bg"f8,'a5!|fx?3$ b=Ff/:DJvxrr?q{uWM-N=X7+=Q9|\P޼|}e採%Z井UAHlw"ECU^)E+`y8-Eiy{b_\3$B'C"(0I&{ ҒgľΪWok\r5P֮5niu@g̙z89ʹ~]x^hFm3폎N͐nd*mB K::SGlb߫X M^s`r f.FL6P^gv_ɭ =\FtqܪXq'<X$$zS(*[KVY쌙AQYk.2K2Dңҷ'mZM-1a{$,#ޠ1y0/\e^xc saJtq? si!љ~#~lfs=h7(r0H|@D=x%s7LxUWTGKd#)B1yE $`y/9մ !/D2Bbߓ6/lUzǧ,ঙwӓh~z?bo#E!"U%H***@Gh AHBIM8~;ďu8!8Eb(y(ڢPGR+Rt *Eayg}g;s9w^.0=FpG_[x &. 8Aڇwr󾖏IP;RZЏxVp,͑*smVaպ+Sh_:~jy>ퟹ997r܏{ jcu @&鳔[|(#b] (p խ.&G8@^6kyzRS/n!nFwV`.$LJ`}߲7Wqkӳ_âdIC;."vis2H.x>85[ۜq}&'8?hD-8#=S׉ZbomFʲ:ap[1y}j5$=VQ({n=Gs;ׄWzo//&|a_VasŖZqmXm}$D|\ DGfB). mdRup9|H}=C#n40Ew0b\MՉ5ئɳmZl0I^GT=^Ɠc#t8Y1XjsCZDɦ9A>{ɪm ~Pkˊ"sy4MQ~4rUѥC[kᩏIFo Uc贈6ڴ&.Rbd5Uu-MMEsmRAjX6۽Qy&-B;S Z/,X gg|7ʶʊHWdӲ˲or^iI^1ɝIU^"owYAflbtH\\Ԑ |P+i_K FhY]YF;% cU?{l|+GJH sEiQ`C49IL ?$`"OXYL".x`p C*p&^{ˢݏ G)-RƦ+RNvR}0_~ MQ%`Juu{+7 q\s {$qbpaGr"%x@W? FBT"|GcKE jL8 UyF=2O%xc`d``b `b`j f xc`aaŴB3>`0ddb@ ޼\Sg(  Խi2h5xc```f`F 1, %``PPǰa1!93 33̳1/`^̼y"MP`PgeHD<IR  2@Z{7oߨ?W\s?gsωbD<@P;#3 +;'7/40dUT54ut ML-,ml]\=<}|CBÀH2Ȝ0YT\V^RJ(xJ[xc`d``obm2p30\]F{%wxc`d``߿g YR@"Ƞs;x-1HBQ{_IKC45F=P`-EMA5:446DQQCҚ{/{='_=$k<_eNxMS%gsZY؀Y؁#8M؍ZVvJچmW ^(bTsvT+/㟐 ~qyjKw$ܷqf(`{n &?C"N){da/̏LY9UC)ӎr·QͬkIn VaXBu KG3ћU=W3^Ab8!}^/IMwFRQ)cgP|xTKAV@B@(M6? (HT4Җ^dLd7Y=cC{I/ogG4,͛7{3șWS(xXCy8,.9j<~ZQȯ=쵉bKxo|xM|8gNdzdGQ4M:u*=TN7%+DeX.KS yno5Q֦$D=QAbJb)Bz( e5RrXQ<оPߒѠlPeFJ뉉sr(g]-Ք9K\Iw f>fxc```f`F| @!|JF6s#exc`f F@ (Uxcd`ab`ddM,JKM./ JM/I,Ig!Cq?fݖBXM"ˋ23J * dM#CsT= yE%mFe```lg`bddJKnfj߿Z[[ں&Mjnݾ!3~ZS-\pު3&t1yGڧwuuw77v7rupmʽg+>rX=UՓxc`d``b fB0+mathjaxr/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff0000644000176200001440000000213414005301544026510 0ustar liggesuserswOFFOTTO\ 0CFF >FFTM w'IGDEF<(OS/2hI`wFcmap4B $8head56 hhea@$ohmtxT`maxp`PnameMpost 3xc`d``bSPx~ /" W'o3л1(2121]`` xc`d``_H3#*`EgPxc`agŴB3>`0dd213#+8i) ')Nb_2%PBF} xuj@(-n vVEq#H)Eঈ[d}>A>EoA?3'gQ=Ac^&7* zͱ#\/Eɽv*ޟLVáZm:[D66;윳ZƑզ;M:SmXelL*L9aHH(D_}BB YK"e&zSi8Y8eXtӪ )_RFgU%~g@Sxc```f`F| @!|JF6s#exc`f F@ (Uxcd`ab`ddM,JKM./uIg!Cq5?39 [ 202r&eg8T ɚ F ! PKJ2KsX*ȔO/e8շ4vWvLmݡCw]-kmm{Wwuw9ӻ^dM2{~ɵ9WnXֱ lcD0` "ZHCtΩ+ 9YQ$ #6 #vns.qO5uWZ4\ihh/:j۲İd6hykgA9M/jjknP7Ϲ+6 774/~/}Co5i~iUoQm5j,լ5)͈fy-_.vg;>geɒG>YY\NyͿhYE͗4MW4_|MuͿkYA-ͷq{4܌C͏4?DsV5?ܡS3]8Hh\sC5h,a{\IS5!\yFfff%jZ:z͆Z j`Al YUo84~sA\.%*6na+ uK_. EKPSJ{N3}w_gGb zw>^~rOxλ;,W[=ޛуCWsKy'S]j[Xzic>;\])a]}_nCG5¯M6VЧV.\eUP֦;՞B< A0xeĂ5{>-"ф_4m^sѡ1PnE?=dg˯m)iKutYZȋ]H{4 0"+cd H[XQA[Mi) SHˤ Vx#Ҟ1诅9Ȣ[.՞Jx_7V*7U^M/H ׶.fx֖Vn~rNIc$1? "_MBX<88TN Cf82Ɓq>wH0EJ* F213?:,=A@a?r\EI^<@ {[ao=4L#'$<;-l8҂sW~-BV0#YAX,g*/4Ӡ4Zb{Ӫ=7wrnvuУ5d&H# ppEI9 ;dNo4{ ?Η?u t.}.xLnaϮOoʵ( _;^\1[eWE}JwEo[ϙC/~flq lm.䥈E*?biRiQtaO )mRD8E9p2*}=-'8.aD6])R(nv5g5-dz mf3WE0 LIGFa{Ғ7Tl`:_,'AsP( ZzAkr~~`!'X ʋ;[!~1@\JQ1)DrY9;__nן : D.B[n(0 zNKcc.D~ʏȩpIAF(Pcod`CMqC֠ˍImoeXql |ѕHA./Q=.چwbu}վ቉ns+šTt)qD6f}q 8k7Br @~#M}eUqx9J,dC[-DA(ll՟T~5iR_男t Qx<22/<%HNFX k:; }ѭ=dB8|ܴ#M섲VQib C<7VE@!8)#CjTBڿ fad]G9 %[eRy9*ڐxhϿ@9S_{s ',7^߽0 .18 Rdx8SmV 3~)&y8m owoX(!AAr~ȴrLc!AP1h.@r-.-Qܛ<92'Eʉ].+TV}gmýqu7NڃR^:o~mu:.GPq%ANr)R qV?Gcb1bb|23 ~v"^e%waJڿX#Xڇ< @FstwI2Ĺ|iQ$Dt"ma#ͩ{l[0zFwP.4&r-b{^5?Zf//".E #0atbV?۲zCt[ߺ ^A Gʵʳʏ~48M@?~~] jSm=j<ܴ7]_]9%pen20c#rWk`!l'~b\] i3=۠# ȊC@|?_9szp/F3cM5M$!qVl}jk#%7 '>TNE}=fg;YoUb98GqalL]*2Яc&]c*&@$6IHkx/ԗ#A2:f}(:2d86rrW$A ˜N!e᪗Ew(w+_*_:Ѧ]%WNR:Mhê 4y⮄=l6z־~bV:vC@b2&--M-&7gKi?bi{.0TL%hHqm$&BPV3%9?mDj0Rq& Q(F\:WFW\VgAV 'kf[o8u覥6 #Ax 0eq1"9.VJEGE;fWTIp62$wxw$ l %uRHYl\G#ި[&oČlOtRf^+~)t.yh1}XhKAw(6_@.AAIK2 i)ҳߺ~+gQn6=YY񒏵5\;2 VoCڿeVnk6%]a>.q E&߁5]V+HLEhY!LlOIEg[C&W8b~OF]Yjnԅ^CWֱ+P`!\Ny s(p燥ղX̾J-q,g]?7x_i)F s5Å=}eeaϺUkzD&◆;|CwSS󭻠]I6DftN.OF’$xdZD~xc󦐛5@;]W;F:fB7,zZD:L#D,-GJ.Uj<7")4\*w19OL.to0AsӾիq܈J qI?-M)/$8;AV 洡b"TD&7== 'gX&aJJ #ᨨ:0Y5dCqSYCఌ >PW'hə5VUmz~,UՄbn#ik< wZww+2"dHѽCkraaڝOknw<6#)̍ FdVc[eqIL4%q9uztFLW$Ãd,S()Sg5}}KzmNyGDž}`Lr$Z,٥P͌u,ww(2AO9/ LA;Lq Y停rIi}ko*w|~vmfGF5X ֘s؞6=[K᮫%KcN4Vr'ўx8x|E8Տci[ h籮VnS<c;Tydss8:z|HN+c{nrnUeCY#Yq\D =$O9;NI !hd3a7=['%ұd89w V[DT0M$D<8\)l|K\iDUytmf Zz7nA|ޱ# *ecYa 1puE1 *JyPꋧQ nAlMq4ass EVmonNL<3bOo\9B >ÁH [ޖ0)@5zա /%5p;Mʧ~mZm:!Lvp5'ŵէG'vRH:xph.5Of#؃ M{2zbn~@&X}jC8*֒dLbp2zt#cGgj|4VF)'@l_q>B|͒OjFsg^|eYB!jT?:*#:_Zehԯ'fs{ƆIԯ߭)$Q#>A$'c#i6AOyKzUwl keZfئA.RL#bXofpx'LÄ;T^|};pxQWV yv3)@.'0 mǐb^ن צu  ,R~LJ 6ų_" ,u)3LKX CLJ''¤k4ϋT2zpbpbr 2H{h&>/`qd4f}_ taW nK/CdGԯ]M:v<`de(zU c1+3GaކK)*(.LQZ,l <%r0JŃePҗ&]8C^~|>=c ywAvmooMQ}ЖC׏vlO7V܊-N <|([J/9 zߥN^XÙdᦏG"I^qʡkYgP Oi9rqwմwSXUwsjA=OAj ]~fwٜhL75 \VxMyЁ9"1eFm1u&8NdءPBPrȜe '"/+}hQ*|vQ DNN;RQw+xdʹ:,}4崸,HJDsq_NmQw w8؇+zeWLq8n@(ƉWwGg0N݆1o>X`#NPLLq &,U{zphWɹOl^݅oK{,U8.N_ޏ͘0Usʫ(>` 98\eZ jwu,AAWOJr<IHiBVZt+XF9>lwթ#(bC+,#rQ%}nm؅" yuOy8cAȑ]'"g*ĹET_qVmcL9&WWE9/ t9N,:R'%D`ɑv'a36 1jza6uˆZhCߍV׭pn\Xۺ0ֱBPLPg‰ ,sY}~r˖D.ZHc=dn0qNHޱsr6t+-ISS B77z%duV*:?C W$E'Kh"Xc XYLz^)tL 4Ð~ioFW'nX3{6ƶg;%Z 7mܨfؒ3r6ʹzF؃(IH\̢(FgSX@$VL)<Lc ۑj" |>, )L$ҬmZA&!+ _H0'cѰr|"Ŗ(W6_g5E~qo .ѫ )ˑ˵TkN6 )^P}C+/ cC`7 ]1x BKHrIb̉S$x`1&S%u,x"lw`[5;@Mku9̎ui#L//=3WX6jnt!əp I{/I2>9]ABI,Kp!. &Ʊ1Fb2JkOl1 cw@ ~ݳi1!>G Nl1(>DLFDPȌaF+xGX xN|,ʦ)bdL.+Qp1>hǺ=CV hEχ,6_?6MRN^X[Ȥsy41AtzF`2I8 x0׳fE:sHFMv4gNz;[ F#3aI2ǹD ݻMcQ ٰ@s,$F0mmnJD -z9bqld-GWn RLfCjYOH^L@q9?M$LAE$Aw齐 hS dt} 6ii_[ÛlonhZXkQ/u!l_;ٳY] l1Ái)9fTY+%De}̆k̍S>[uu(w'B{Yt617=Qg[yo ח` zٍh6"/XV9$ l\w~UzA;J照̞\næ獣@Z拙H)\/as0asi!ӓ03Sxjl,ǹ}Uvp]QR"l_7ޏ+Hv{֖f)@bTgCH솹6Xye,٭jIkyx8=g_dJMə$y^R Sjq^Rb.6[g;Gmzȵ>95*}@݉\N ]^wV [ ~t'-ekR8U|O|Aif,W-|*'Az[g9Ģ(sMrcGt`7igӶm=͛0mVUPD!ٟHCա|IcUael v'e!!T!1CIJ(:mFaXz(*a2 as(xLVCp(_?&3嗧dʙL.-{eV1f0;IN $E 4i=ݸ&mw69kmhK*=]\uv #2xc +f\lb2qeڤ\K;ߨ,=C ;9i62}ńX$$Oؒ˴@Fڪ{24ʢt]J>cq"z (2atA21,_Έa9Nl:7~ pf+Mv JZHפg2֧Ur 866whuz8rL ⾱1QEH.k&z+]ݢ,A:'jWՍuVҝ·~ԿĮ B(޹7̠?~L:R!Ux`P(!(:\8AiD*<¯(־q;iۡGa!DߟE, [&QpKRm}mFPh;GuɷV.=Z_ErBȬjQI:@uX>kdY bGFp88'ώ!Z[&|bɟio+/i_Jtiܗ/1giod%[u[pP1ܲ%ٓ(s#"v$#EPHRDmzdwt: *JHDIz ǐv}*挧jyv BvYY*#'>AC5kb_Z<b!Zy u~A413_E+AMgѽ-6q,=ml A+"Mdm1@ɼMU#Dy4ZF,I4[*D z^݄oؽv(NEAnuXȄʆ݅ʗk_q!X e|cV*6L#d M/FbZHy> %^ Rpa*GDcfFf$T ,9Bݙ$+cD"QS~աtDxw)_[/bmxY[?~8\QpTx Z\L`)*F'F_n3tMï PnNxj<⒈DoZt*yx}VJPp43= FĻBgm *uV=]Hى}& =mh/lF[L/R5UqXJ^WV\Ҿty-L*)I/aFs6iPK+QpneǞ5 laJ&Ğ=/6' v/NJђb 6W xn2ML披UX讥C!p0 C#&ۜ3q$,ܱ<ՍYL 0ZYxvjՠKp_҃Ҟ0?"#cAwȲ6y]R&rFNvF,,e-h3g܃.\' lQ8/X5_xo)&JBUvviq|_&\Isٓ2nU80"ʡƩzT{(^+fXl%8_y 2#iE;r:# &8t| eM!K(CP~८p J1ޔ(ΔC!Sz|2Ȑ4I4K28"v3|RBOc Ma/od#6arZ]}6POv wQ&1  I{j5\ݳuY~k׮ #K+Fajh'M2'o;,V% ^j`{vQM'E`$J`)3\[|{V;ՋdVh-&LQ#>!w"!CD7 䮞׭k9“(QD뛉~N$n^gSV-|Ae{ZKD F[rbbLzq{P<8%7a=IGyKbkqUb`hCҖFmqw|Rws ܪ?߸Q{Rϗ|H0as1jis26 y}7 9(8Q(Wv]j~7ҾTexY@ўFk\U2ewA`q!}b t;-Įi\]B"3Nf'*qBX{}p</ݬ.g1>L0Jh3WX!cM!|ل걺 v>7 PN:kX1ܚWXLƈrv0]"lCD>X ILDxZٻmQ}YV 4ڣc%^:5%,n=WvA ʗ)$$ gl DwtzRcn| .> cZळvB@L  w3sQ2-f :d1<= bTENrn DL%]#)恚R uW&*h,OILJh3T0 }0 W%8,vb.yhaö^q6|`=r!Vk:'*/yȲ:)q]C0 Uv\4U)QemR/ `V kzKc<:j8Qȇ gUHJ 5@NtB׫8g@A08dReeTAU>!LGـL"@P;a)s3߰YI.#@ տ:=  +ߗ! mCCLsp1iORN<\4r~tr"14fB#}iP`+B_g79nވ bD3B +%Qj&>%ai;'8x8=_xQ)po:_9]&EQT2巓ST.s-Mvtt:1A{G}eɳD#:ᔭME &𖸍ʼnkκ+ksoW7D"n6H WL^]"DdRz230 cs(4Uf*x9^Iңatt42w<9K%WӒL1jb\zWJ*f28)C+˸H v"!@[lNUUP>TT?%55 /8>nnkVO<EНw\s$&cMq<7R "8A<P{t0` )`Dj,17jO _)pĿ eaTPBʰyl+utwÂb#Ni2/r j(Ոaq ~6FNOh?0Ì?t$?؊P}0~Vu˝sG\*f&xB&]'aSI M> 0?ԉ1K%z %gŷԛb^I^W`], ޠbH0 ҭOEYLFQ(9]X:6s?Lu?щ>qUT2jV2nn  x8=9LPsY=9 }+q%eǧN.,Y5tM#wu^BMM?\ܼPwz`ik n6@0RH*l`KՓICIq8 P -dj~4o4k"'{8c5XwOLq8] GLO9q:2wTE*B|wՇaN`*NSDH})/0.I3pٸX\MdRyU/ >|7W2r^Ftzw[Q#z(i<~rt/G* \pBIF+)'I%|.[F6+( x7톝xۉD[ٱCOH+STRқ?HgG¢Ⱥw.=5׺Ny!̾4he+=>bl^lT7ͯ$g>K 7;s`H^ 'j &H; Bta-):rN]:ńNm|aPQ~1Dع<-}0ЏY6ս 5-ȕONȓd30j8edT C'΢L.w4k^{b5͕_qf"U_:_]ϰ "-WN|6\;FVLoAJIjjF~!VO\ 8N`<0+щ{yLƅk(Ga*RdvT{/?s6_kB~7?b8 b6{FJr92y=+rC"|l!po .D$V#!c6G=6Hlض (>OBW"Χf^ZD_D);SOv`V]Z,5W@W73O < d1 'X EmV2EF_y ҘtR0620f4͗ͷL[˺xg#W؂qfR}%W$3l@e$s\`7elF1O1jM (P&, T!6bM)mPNZ"Ykh[te(Xz'=S {:>p(-H\Jl2_,Z\VV yRkb({=09> D$-wcqڤPӪJ'߻eh>>hƮγ7Kg ׄBDDAْF+_'%Jl\^ Ը6_qB s V_|":Ĩµ/̣=|~ ˲yUT⑔;0캋QR 21]Q$\)6+,א<MC`cJ;a3#ncFdlTD$MfNKo(pA!H42HyǂiT.Bx=ˆjTi{p:AAL, 3f+R>pzDT k0>f%ϫ{j_MWsowd̃/5TmzcˆzGG7p hW:+6@-'"^%JMBH^^m~Bb~ 5:/I7o9zm{7eҭ%w# g=2O%xc`d``b `b` fjxc`ab`ŴB3>`0ddb@ ޼\S0( P@AN?M dxc```f`F| - `PbfegfcbX *2 @ ;old`l !j@eaecdbfWPTRVQUS7042615c0``wptrvqus "`3  %^/xc`d``bcm2p30\]F_E s xc`d``EoY@" Wux-O/CQ-Q-yVEX%;ec)|wBkЧ\/NܙAAu쉋(Pksw ,^ZMޑ7̑|`K>1Al"!m6/Ls.C`OPaxTN@=TشRtMAJQ$r@TU*48ClHvbXte?E?~DTx2X9s}s GVFla $K(jTXB}i 8+R b1.jT+e"UQ\zoB2 '؇CAǴ )coC;<42\:J=Hܕ!=Nk)^uzA¶U,j⊎߸w佑B].p+40{ؕug~lt#6YarWuG:!-Zκ)x%y?;h1=~uItH誤L#gWg!t$w͊)9sCZh_Rv9!vwj;Wq̳li'Eijܡқe{)旓$g&W˾\= RL\?5Wi~Es~ͣUFd4ECoM7=p><ӛnp˗~yϾ<|_~`G[6]w-7t tMW<2{źަ_xoO٪]\YӴkDUͥiۺ\uMFFo[okCw54h@s%5hPszknDs&8?ܪ4ܩKs^}5i*PSe)_;WӾ3 62/7y!TH!k|<Le!=Fe_L:;:-򰒪;KN[9(a]My)u%8_Rivm>ׁ eDɪhOBB z^VA%1S_+IB!yK:OB;X[{Ǡy" ÆtS[_b”nh<_2fd-e2r4'&g7'`+FZ[}׮^sǷMɖ-=,E(a4\Ńcw4?|.RrDdXrN0ư#ЛbZ8xr  ?U(6 j5x~;+t6囁 t4wdzS)FsD!"<dzor[tWE3кv8L~ T/ WTSb5z;ׁC \'Eje en 2*cCzаU;/,QpnPwk߶5?}#T/A:é2-S]yo9,XgC>牻[K@ΊG 1TEPNk]I:t9l='>Kcnp#| ĩȾᑩDz6| ;_}|%Hx]A3ڧNT|:BH0~/8~ aZV& PN3Nm-Q>gXw9^CccJidqn_9Eڼ>['B@> I옲PG8AA7,L)ʝGTg& o ʊkoR9!PCYBHa[k[js K{c5W(RI>>^=Qg2 n18.j,L0?^F@¹0tU0:Ӟ%"Zx aH{O3[wN`#:zT[_^׮|3;K>ۯ.OM47t5,=bQJJAWDpQH4J<,4W]hwL5*{D9Xܵi֞ޕly2u/ch^,hϝ[Qyk;$*\ ̌0YښЎna5 Kr\DkuN?5-G0،oJ|P'䔔yGc%U9l!|, A?c$9 d_r=}SvC+^ڈYDHPS`1Ƿ/xV}vCOduS_VV*,XέR斻-OU/*Nlo <,Z\CppHO;46v۶~L Ǔ;:14 3&J?Ae<yE\ 5 ^roޱ 胾>4; \G `;81ZtR]­@ ǰ~TV'xqȹLcU b!~#妿+?ܯGP0 <'EG(u)K qKc>cܒ;N.I{f`#366@+lJwM>o|oO8>9 4hmyCĩi}Hv$/pKᮩa(qm=3jܘq"=m\~9"D{y(/Lx L8N (L%8|^өgCR!&` ;4g=< Ii1MK*~kY$ooi6[0u9ZipnηN ɾqbXc$Sxqmh'z_ SE| +*0ɪ颳d\h/{089ʳX 0{q=›A)5/*]r]oq`~lKmA*βabϞ\ĸqu{-ZX?|o˫ʥ:J- Ϛ4] V(FpŜi\\1?H2lPNFsp<_OblfVxVnkBfR=h.O0S`DZfȱW/>7]}}#vtt,[ZqŚυ**nɹ?֑Ў΂m" =uV@]xcnJ\ݹ>H?e^ձˆs+sn#P'p21Lbt2i*mxmŞ;n{WƦŘA#.z|%.Ƒgޗ\@jK4;&<)LÉ|K4RO);Px# ?89vrz\n(1~d0 >U ] }>.魑+W}&'H1r(&RFJ֦!7Bu fދ~S{(ŊsuܐCo4٬n3"Q,O-y ? Տ7E =_>gކᷣgP"#Z`Y#`]_+2rrBAcʸdY<}`Z\l !#h9!$xꨘ7Juˮ@l ` `rJ.'-ۻLAڂ#{#0fDW"]ViFz@\Ċ wmAaoȓLD* RƜ8W/\tb, $< ;^; GOdN| 8vwSV/=R2f㛱~.k ;V?~j1+FAlpg GORH _d6ռȥK_V^X+ u8Ź`l{f9v6tX{nG0m2Actb&SLҩT8|B J=(L%=a?Jy2 ݹQqջ&99&yb  QLp$^la1>E]iO7„ؠ0Œ:^ӎԮ$ZͭnûaXv^V6x {<彾aH3(r jBz9Isg/Vo%:;}rC(mOx&34ML{J\&}(.<1>my$KP,bw)и1ٖtZ ]vXl,%!?)Slhϻ2d枎i8+9F LhKœ1t~b;+z4: }[#lIxB1'1H 2g]N#ru۠ùw'J`\\~#.APahbgWd-Rɡq; pg*57 l'f2(,{e/Eu!z]&Crc?B\> yNXK_~W0Ebbx,sfj.gM9=%&!$ DW5Ŗ ⹃zI"DIU](O uNtOtw6U Oߣ͋^x ~oK O9 H0#<iAjzuap#֯=c [1Od:0Q)\ {_1>%?xTש)nEDIsG16(HKȺ@?!vA(gc$Ų+2fJE) BX&uLf7SQӑ>H]z'ZO[^ lz Fy 校@搯֏Af3"o4/b=bO ѷ X|St͒aG)*] 7ZqV,u93*-Pʅ|<>`}V5jgxN"K]@"xam74F͋]GÈ1,ֶ.g?ig\p-_ڙn8Z|")4a3tld%iY^ Vvj}P]0 bkKsGgڈgު\l3Jr*uuY:{vzfU}* &r"e P|;:GL8={kE~cn{ׄEAwz@0Gv znGΖvH.06 .;Зؑ7򐨺vπbs2p QI{knsS]&,"gQ"@dCQUÐ]o萆Du7*DžcʼnRe J(9IgE>=yVFkWAd*O81 x0˖\XD!fa|2[T10,ĩPV,7gI6Vpi(=T1(OC!D(ap8 ^,U!2es."ïm'UUN1^sX|!:d8h]gXlo[ylp, r&*zi}P4v쾰 )I"0'fH =ɖyjo'YtSW[©QRcuHG'x zS. p {QuUELxp/0ȸO}ET>Y,WbHS98:@vh'r>,f Jx3!uI'd#܇IhW ;VnEkZK@.P.2c;RXk* H$yg98hl44Zyy T>\0ѭ^ףO{z|X'N%#cE9<Sׅ߲'MZA\]fGCC@t'~U [.*|n{0iz=6QFnL?"ϒ86{ӡ KR.q`r43G0 .,碝~~DCQa>. ꐟނ|$&ZԅCGE gO=E|[Ɂ-:z{:\OmQx'[UؿD*{%&$3h)Ywά7JWq: a9rQibXqj6?p\WY}=>aM3ޟI8v1f۶#5# `.|tfh6GWn_8 [rL_DL* g!)TGQ~hAZ0) 4,=W~e%ӯ_/1'}Ůd+nf5Y ㋋D4bdtG {?WW8ORXvA`L{cfłĩccGQ*…9uY^hpT d2B_dYBx4pX:>FrcUeK'-$%G27M&} _ܙH [1͛#2[O];k"^ބYkWQ;;wvtvExU~0n?)3crխ\<<$9LrT "OΞo^*+\ A)"ő gB*X"&&f`LJENcTxTY@E'xW;j47wl40% [Qk/lXz.dC= 7P(DbB 9&$q1^21j_` "GW/{H4+.>utD\Qf_T_ZmKID,"J] ֘ޏ}jBӿSG/Stʡk84эÄslp9*L r `j;cL^` Z| Jst)SJͨ;Ԥ %)0𠧪qmE.i'G?Z;1 ,phVQ0VONg)&J&d%:ֻh^;Q“s'6߁U{\ѹqS{ObiY˃#`WUIg,vXYS.S[ʶ@;Π;NR_WE 2),qbx䞽ސG͋7J \|=W*~}UfuXOIضP##FߠҺU_%EQKbQ'_8y0IKE|Er]&KҪRKB~f8 /BeZ5Ȱkp`@S$gdrGxKIu+ΨfO82?=t[ӓO<4ño=(_U!~ԏ 83%>3y3r 3#ר >nkk g(K6g˱P,g˄SZ&r&l\k}mH?:XiPM)*s?9톍IxO1ЍazWݡj027lYBʿ Tj˙>-a a͖BX u{|%p,Inkڵ{="D;3xq78㶀`:DnXۻfMꂮ@! sә|nkS71H;TݑDcHg̅3m I^\#Z&YꎣHodg`l\޹{tf]0_NajRuNfi h >6~hN6j8H,zv!J/+R7rS`Vm4\yǭ sVڈNqrX@: qGP6B/FfO.ʏ剗J|܂a(_T_nUpyYxd蓓wBRݞnӮݨ Cs`[֚pber;N갓(a8=~boJ2bLГpݱH\IwC:cS#0 6M;xn^ ?7nH#+Ξ!ݪ&&'E <017${~3q.!(‡x(&Rdc+Qd|֌ rGr(?B`JNi1?O:#m'RXc}=8N|i촇sA` kԥH6{ߵbroWZ]֟1 /᠊X)]hSb8 q@A/L@ NqH2wO#=V(ŭEU;A|e3c*GIqT*&F20t3-6iUpkw=SXEK LDJm'ҳ9tv>%yPj1y!*@@RUM@YZqt{JrQyT_T9$qx8^k0A.I_eMT,aîЃZOO  te Eʷ^u&܌cx-J;G r4ZChм}̈́κKs;38MnnAKWJզp(-P6a/LF d|WwwC I(跎ZM5zڜ~jpZ({3[]L=ly7Q,3dQ=bTObμt: T ")yY'79݇&\X+IT"$/a~vV} ӟ) T=V+ hn4$7>){17Qބ9zGo{FwAiDI䟾i?k>+wR}6g^es41{?HSX]3qglM4\B]ڞnuy=ؓqL8Fh ~xjv$d8eWq<}W3ƋHnRw׀ ?y#bn#t*Ÿ"-Җ jCX 44`"Q1DB{ysx5z[]^5;1Hv7ڷe6daO,BLM1 2z|H83Jۓp`$ό{dVFL#6]Z]0"># M Fh81"RG"2#c'l/()#bӰ@lI+`9]RaF"g.F3Q\gHvC]NH DE+Wum7է\hn)?SC}\Q_3 |#v6h[؞ XRQ4ƍⲐS@p|< 㡠,j@~'}#\%TD &Pqd4Ou"W _Cq3_T{%V.ұBKhBzt y\h 3#Hl0cO #RI ۈ*W~ CR^yXeKk,xþR(U`cIm(?!ꅝ7Z [)[ĐD!qn"LĢ[-ͽ=>c)rۅt#[ͧZNv#%|6ұ@(xi.Q,ـ\%V_UW2ռŒ*-*X}|/bL_ٔt0ns3Ʀrǧ l3iH~rD@&0/5ȨZO-`oݹ]3XD6|Z0gm.|Fōh)$i4rTJ 'NĽ1-PʽNRK>S^6Joz[Z;vBI^C li<0pˀi_n6 ZS1O7 .«WWS[(1}xԙh(u>ec>2˨{0&)L+{R,o?j~\ܯ.QYGn53κlCRXFsE^r;T8}S'NdL͘ߦf(ar.4Yed ;uɞnzWiF!c9j1vэ4 8]x' ϼ@ڊv\X¬`7bIbtlĮ7GAW=1YSl^>01rT H]gPcn zAYXSL]w.6w7huQiLTry ..V?4ځi x~DW5ުi+vwCCR/S.$Qge7J/0"7 HFw `*&D_Lړ3:iw; nvg7M&kuyVP&2_7>Qa!x97P.pQƹ s"NhM&;ۈݽk[^e,!\t4[,K< Vc[۱{y(5 y8[t6V8FSpY9+1oʙq%7:˔dM2?TǨ*b;XPGPOr wt u2ڇ.y# ;a ݿscj,eg's(d&ZUF١ʳFR!oU]CIgi}YKGիB"@LQ{a WÓ LHwC[Y|q|4:K%舐 Ro?Ē42 wWviV귯V ڨn^TϩAPj2yV]ԥPsp΀\xzi$>WnKGh?^pr>kBp?ʸa[1ߍƇfs/OOgc8l+Q ϗzh_i?f~k0usXg FⲺ>3c) w6t/3l<3-6܀GULˏ;u k,WWZ&I;nd6sd; kJ4,d0XJ.חcyE`[Yܥ+'MCV/%!)"dgDTmc9I|fx.cL (E"Gm]i{T&HFg.FGBq%D*R~l\$xxLYΔ=Ɍ( dh2!`E[`93m=(&官U`X2lD6U8v Zhq`VqIv 8% C|WUW`;;R)[/; ̓M]F¸`xTov.ça+ku\]e,)(HcT NX^Óɡ d:;mV7f%O|858r/<-H,/3xhE%B%]57$cd)=y ,-72:-^>zM oЍ:A mj)ړ$|_K#yPܕtJȪ"΀# =?ڝPA9~?7ס{g~>iĂ*rvarY#-\z^/j aXDZW0C<_%@nr Bm#Aɂq/"Fe2/E9n"d1mNyfrGL37(zg{Q "pABʕ _:˛LG& ڃqWńP9Ehc8 gX-"/r=zތ |x/VޘzR$sy#4(þTX[mB7FGmϱ4&rlO5kb(N@NDI*>^[|#Wb &7Vw [0PHKaq,PI< {!E#0BkŻDhތ7K!׸hL !)5LFyL^6)w◻}lЋZ/,WIA#r"Ba®dG7 = Fvk >,EY vw0̂ yv(XR5d(]]FV Q ovX7NT08i[‘{ g|)>\=ʣ)r7SdCO-T۾RR C [Di%%B=B݃Or F26m*|mMxK`yYȺ2HΧjWh}7|pEZo,?pH N>i/Eo ġ @1cR' Aj?q_b.4["BOΌ(ER4\JSNh%\ӠCY+G%9F3`bHԱ]* s,uFԂ<5M  W: ĀءnB5~V,Z﬽N?웫_5~w2 gd8fO;tBړ"q( Bo$&jrLNgPM|F훯:#,oҤVΤcjos30ǹq@,U3ّ 5& *c %]s}*\ q:_[L VdvSpby4ɋ괤Iݱ mrxD kbgfK.8c:Nj N-],AYc|ha3ЕMӟK۵o@͙B?zNK-&dd^SDv)*k)K̐S/C+U+deFvkm$মL3&,[&4r ,XR,hPɖw.}~vrv-t7Y7yvαZ`㿋A mEM| X֘ y2Z$χY{izyW?5Z`} =` 䐗,3R`Ǹ.3= sM nf?`@jf}zf<8X,M-B4/!7Ct5]=E%Z?=\BQ XiR6nJ9䰄Ʊ M v@gL\fpWLKM:wxFLѰB!4|ZqTOωHԑBNQdΚٱ4͊I}bd0cQ0U|hRiM٥9ė˙$GT<,&1 =7 =9ӆyqqp!ۓ]=NNy&97̒rw,odOPAq&Qʹ.&N_W ffy84\.uHrg'a 4oXtdN;\"tm t zL!rӋ~1Zs;aqTwCi,XL+mv&8vUPT~E'Z'wg6jZ:ev;mu: Ml`z8KR[Wm?77zgMKX^'T:iW5 Mmm{aGjiJ2*c ]^.g/B\|G];m/\i/|׿2]quq5@kV^}uwH7jT^c-S!$`] pg=2O%xc`d``b `b`x f_xc`aJbz 4CF&  0y 20,`PxA#C3P'% @1xc```f`F1, @ZA(Š```PŰ@A1cQ`P922$$3>x(w7o~`#*, `dc hV6vN.n^>~A!aQ1q IddUT54ut ML-,ml]\=<}|L*BB*1xc`d``3Osm2p30\]F_:&(xc`d``߰` x-K+aƟsΐ;3.\r%! 4odPSH)+_@1b| ;ů_}9u0 78JvOO%0BF4i%d}0KU}]g$!kGJ5RC^ gj|[}{BeΕf=t=C[%in!Ko#qN5)i,GCѮСi9]G^y_{iZ@.1ÌX˃ Ȝ CĘ""*'󎳷OP`xN@!A4RU]YtQ BHd5( AĎl''7#t.ntE ~DQ)|}3wxlB+a shx9|6WԺ&̎RUĦ>$&Zw1Wܺͳ8ZWՈb!i7] _؂ޱ~䀱bu ;tOt7'+9vOmKX%ؓF#үAl}y; }_YB;b>gFhƫ㌷0N141k>d.2iI7攪{RVMy7~7/,M֤Qɓi,5ޜjL)--嗧S`syfO5'i컵Fd\5 sLm s)F> j#F;EkjV0wh:e6ZsiWӮ]2_԰Y&k͔%ֲrԥ(3ZRZ\R\Z(00/~voSZݓuL-ߜW_\r=e[o)Liӆ3EgԜoWsNl5eݣtv=L՚iZMTͩڛSk tTiFa64miZgӴΦiO1MetZ/ӵakNV4}h7nЬ1KƬZךQfЮl3klZ׳5L4K3ѬsV4GSMas4 6kMSiFYcfY5fi֘YcfY5ff=OU3d=Q]R7Nэ?iz^lhz2/O?F}3?DtJUEt>S?N?^FdQ7E Ȩ&oߡS~,){SӐiD?SSuݯ g B6~R2rdf+Wg#K[__ߠ\-WI7}~[c;j3},ݒ޲1[ƶ UW}q׾}]}zCufX=qbg&nGn_xGw>wF'wN>:,?)̺Ԇi+fOjgt㽛q/f0z=8'ws_0n~N>ɱmtr[7]<_' ~zK ۼ+:^ůj;vS[deeo6v32rqͻYo`+>\ScfN̷Q{e٫7\MRӞtV}Gt> - 5~/'ˏȏʢ\' o֝ ϩD E6FWc{{+7wol)iksm~cBŎ:I:wu;3@ߟD|8r=O?;_Wے{یG,&|wd~ǼS{[,:>ںߐdw:jǁ[p9tA/!Y,`m"lb:~>\JM n7pJ΃ʬʍp|;!dX?J~{8emN'%yܜl ]lI<"OPM|;RtVAɡH0oFfgED%QnKM\ \I1,472qe1FC zOE2J`bIgЄXuw+V 6.ꨲ wU:7D:9VK0 <׍6+K*v'x>4I $:GuuTpaG8U>4 _Uˆ:ibf,W{hџ .4ƼXP@=; w[M.pq6ۊի9gd% 8Wv=";!T>a>ۙA8^dA($-}95|snD) m6rbR"e vX/{ܬd2>< FOǟ?}Hђ 9 Ȕdi놲5VoW Xl[pdCX@* WdX?h噳~`$ӗƏV!9ܫTD9vp<4peO&| ܈^E6_̗k\&#Gg!(hFdPhG Co,I*;sPQfi^nZxW_E :GoԷވ^&t-{C0 ܿ.:Plrh6AUd̸r UьpAHa" iE,OdA?Yim@1w(){}ճl-£s_') c& 筂/4\gy΁: Y+1X}Q !R,0/ 17,l fpI8rXg]BvK@y7v/6M%_@g&:#(c]9K@#e^Ӓ{%+UI W=*r}QCš7h$ @oD#p2*8d1HtQ'&{aE"!F`D cm;d3 2=@lnz?54~uKAd 'V !I)>', Kt+!J9 !7^xnT+[Z6l,r*FF#|%I$pzKPH (5g#!"@gᤂ#CЂPe@-!;sտQK]:2uQf.H3r0,D1ie/}v޿2/?%oN%2?S1iH8"cu pA8H aXG$\@gXdK>V_"<#0u1bDG*XYKcUo{?33dlӺ4bMĄXT5ř^~ l&=#5cd'(ͪR`=X[mၼOC c\!,*mQ?}ov2)UЄ} ;~Fd(CpI|WHo ahh(+%Q]~" Å\\'\"8VPr1ğf q) GB Cqg= @oG?M~+B)Ar^]TzS|D"B&pp79h{btX~F_hug$wB7 ~5Hgos᯳ʥ>^Y/r#T4R ";щqrM<󰪙/"~K)is??Gb1DS0d8\PCS(;Ɏ356ZHiv75V*8ZT." 5e鐢x?G(~( t&FAE\va- n~Ȫ=FJUjЁ+%k4b,"ʌnq# Nn,V&LS{0SV%7QN 8vG.j x9ê4#O%Uf}-9-ql^d7v3w-0 8 LW<Y?-!S&dJ 3}10[@M28Q"R$_8Lg3&_, Qwy|ab՛{Xj8opsoƟZbjU)Rt B>O^:nSt;>VL#*t2Ӂ; w#5 ~D%^ 0:"K@ 21Y4}j5 F΍T :w➘3n% Q0 W9j]o;1зf,(\j%3oCD\rbTW ?shX|3H8 >Pt1+Xy+O>3%ب#ao^$6Ayvyi^ZZs(eVfZOxBI=g8FL#JDjwzs`#lm,ѩ5K}<`$i[?>[gE j2쇼5w:_]"'xx, xl+t9/5A7p:~,6G3C>{sY7zzIsSw.sZKetFǽ{3*hF"NY*Kn$t@ 6$Vd\U5˅AFn_cAُ XKtb0j|B _Xg.`y5Ғ\iDbQ1"43ȹMUD`z@}lI[ݓEV胓ў2~jFv #mK#̵9x h5=10Ep_>P߻tqa?4EKRXYn]=pkdOHn1dYnyܗŅZ@_'$ts0ym-kl$3T]vP!@l5b6[;[jRJX|fLXf qDq;< }: ɷMwrew2/ǤmI筡&v@ f%*LTVލpԩ:Z֚OF^]BQ-Y::P}.e"SP ,Z @nV nK®6W F * N*eUzJ:L+Ljb[8WBH Hf `J؋<1t8%U}Cי9`ٮ)Mj.vzd9c+q((^M%Yr cj%FbՑRmcm^j' '\,r8*)Q(\ФNU@[xN @_0A lV_xpl&}T9|jNx_j[X1#RThJ= [~')|# ,HՂ삋|J U8_y]Bjk͘]^r ]ׇf/JFE@NaSK\mֆ΢;j&t2~!l9NJ~l*1 ǿb+rc:Y5&;EckޣSh yG!I!aD>U6$u Ljfa#' r!re|BJZ ̻!xO-ߏ b']K‘,YXro bl(a]NahEz"݈UQS urc*t]aWk˭cg~ d3m{E0Ltx5Ac ةIyX9,QάȌ#?op HGqj B<̄,Dc)xKzV:nH+| wPMeWIr7{6&S5.}ہ@0MAQ+!M,'!V*9NlڙtqTTSqP׌AiDQݕMN1x %ja,EY@$-o vI}]0Cg"(gAļ7$ ~O`ȡA4rQ\!/{VR0Rb6q\E6 ]-Sk̏\̵A#2F}$hؒC#!IgtuC:ڟ +2( NSqJE*WAQԱ;6(J˻׼>+J_~  ҉`/4 " fsll[s]oeߑC <|Uv&norTłR#Z߂cƕW#u cJ#Z\\୆gh)xjQ~5(T.GDgݟK]WYF=Ƙ=Ln;}ym&|!lx#&hkK7s =_>@ou|d$L0tSń ypmgN31Ll~|wT<&Nz=d;`x^|#ej+By20{w Dl=C:w!1]Pf_]d/,*y豟+J*1Ƣ-r4CW/6oPSG FcshK2|/&BF'zWgxW=GHX?PYӘtf:n".zuWWr=YDΎ{Y-Du‡Z jKW}8dZMhWF!x[x'd'#7c]^@sCưh^0ftTrddx?D UAڠ[Yi{K,@y.z]˦d>|Nܥy|?s(ӆ=uXXA`f^ "e}L4G*[ 7*-#t p| ViBn)?%q6 $ԛU/_2v1Ŕ2.f%M>X1u,p[w%_Wn[KRŰSNjP\d܏#ZW.,DN0Rg:q3P"<8 xWWr6@3;v89,?p<#W~Iu>3 k7N>)z^a#&%)iݟЊ\ phBrb_ڔQF>QGau{cRKn쩖 | oŰSv+XJ[8X/*'$b]bN18[fem%LoT.l׋@ڣΦ$o3*Ԍ3.@pvM=JZx,$ Y:CIDZ:@k]r݀!n^¦ DVvnepjDķE7INH'3 Rv:jo'JGo%08v30#- d0nLaGD"EƁKcÎ8':THɻԣW9^ j`TXA-~*`)DƈĪa3(3~dcE̒Ÿl"&c58J΢>)w3Jv pU%bMa6ccƦYAfC_VѣL}uƽwY[brb3 ?PFo_p< ]5FG( Ӗ4DBj`I!1]%Tz. ;$ p9ݸ/pɽ"NM& F=D1[ -0fVtAq3P̖$78)~!Rdnixo2* z"s )="4G$!1Fan ktG#HJ&Fq7q!5s`p@ s@2ATs`C ٙpy#wA?O:>D۟>n;-1:\/;UҸH"šbT[=jltq aZE9@ZOEOB#ļ1Sv%o_|Z\v~1,_:f&m9{LF#L!ӊP?.QV- b P-7 ߊ8IĘf(,BhIѶ\j% r'[JE$ E<%@d{OŢ^bX;]ª9XM#> ~9z`YBwiƧ ;;9By>n7Ŗ.-&@Wfd=x^V`F6!VXͭkuaXC8<8s+V㕛`޷ 6*Rͺ0S4UC:yl bW&jkn;:K30APfWg޷!z9,sxG+ɐ[+\SWF2= }r0z&<i+ LK[k_cO0Đh] [I 1{f炊Li7њ[Z Zvف=3ʨ]߼Kp\Ѝ r8[\v[ƺ!c'Y5NfV6kVkOAhc|V=޳$)7V;:s/h޶w+lܜcYWB_[Yjzuh:dx_% pF;}MR)Ҧam0 _@P Zw"+~q ˖W5M*lٖ|r:Ft\a4#&n=V;=s/H2&'@3CN(!V}x%̏ %"Śӛ{ߊu'S|{_'+FPtz1(iNW0j-HnxS J%xHmAyG."==1 ~ ̹i,Nnk'MʏؠG-vLoVn $zHf R5%w%\"x%{5xЖco&@ev媎4#\>&eeV2T|_`UhZ]gڳ˶ov_:=V~Qf?|^}^]FYŠ>ACIEϖT՚;hnYQS&A%T{ޯ-nz.u}֥+vl.]u~xC*o>YdM&%=D%Δ&%k8? 'jRW@cAΖXי=]"xbc[H]SHqMJ,˯.*pb1ę@sr$Wjq&_=u I3UݙQ1=E+e=G=5zlWUoe;q jv]o9p˼6@?]R!`ѧc/\3'[mnjCWTDB?q u׺ywV)!Ǯ)hpeW$}^I'fՙm]CuWM%^@pQh)!\T U=kR$M-;[A"Nl*(V求3/M|l2QֲFO,W҉b3:[aʠ=xT+' T x5,IWrSK,č1e4 t tZ.=`&,z\x} Yow\m@r6`gJ'|oOaʥ>7F9Ȃiˀ>B& eLBA@? +;Β>:O3iܞt*U[7J Uk@8Hcc,sj0<#$y|(/ ?LmJKrA$5$O*77\wo(ĘW38y\u.U5r9/.L--\mU!hP{jlFؽOKW=B =p< cR e \̩Gk{$Tkj]asfGZtooei/ߣ*@1N=y-_> !Ax(t]KO'Q\ANk9֍Dsљ;rǠf.s]2̙rKɮBeG>gzH8XdVv?FO?ĩ3}.h2zy=h*L)'_4nV݇@_KR+LCOv שTkî'&@wçAG4@7ʙo-(+.!S I BkYG{P#mͽbD1Bt$3Ǝbzd'N"$Fp䑟`:a.)k͛> 3-0۠b7I.Lk$汎܃Oew$p90f#bg3OܳkS-򳻹HuwGq8{Wq R PcasK_ptbRCgkգ.>y:A .^o duw,\D D;#}mkB9TlL1թ2-݉PPU.yP)2R좦?!=3 Ao84_ַu?\(TZa N^#jE1YQ~O5 9~)o,Lƪ1(*7J:ǗP_˸gې(1뜙qz9ӹNK}JPLpi>hj^Vv[swϩ9D.8OI^=&`^BꮭgK=Fc;Ts*uQI+:pPY78N ꖚz )&EЇ@PO.\&:p>`l3@lj{{iVM܁8Boݪ,7e+Ѽ2qҘ^!̮ԍ|1 4[qHogqvޏJN G^+7 ccDvh`Ze?T@?:B4۶Xsrb*T2n3JmOZ`ΐ"2#zҭ6np,Z[WVٗ77Nctr>AANTܛ?/_qچiye}mӉSf&Nsї> w=au/Jië_ӝ}Z^3fJ&ӣ='#Cpٛ~Y 1rC<g+UjqϬz*TP=Wgo]ƳJ+(m//>Oz8C~^PU ^ݖ"ޱ1X 6/Bo`}BN}d|墊{Irtgq\xAs|^UWр>䔱EP!jFfTd!zB861}{X75{XX#Oÿý훷ljQz t. 3kkRWbƸQX_I8k~tc&LҵeTi[vVT#6+Lպ5pWZIƌV±T@;ϞS& I@03Tv>S'db{LD&BWZQ :ʠ8"Bt91Z!t[Nx' =x z.(u*DiaÁB4x TI{l^*nwC&&]u8ިsi%#i\]3"dEv%EBTp@+2Q%lu=#ײE yN0jsgihhuZ"z$4%Z`zYPb"4Y^^(ċؠ/Iܡ8}M*bs[Ub+!q !1GI0 $֦0ۑSr&5Pk%оyu9b23ǧHh5Q\̐{\O$H2454u7J?Փ75${(BIJ54Aϓ811ef\Ì7N8NC0 ̂w@F:]BFk/-ko ZXmkJǖ\SL[aW J cD&駆h^k臻OPMk J/˺(׫(ӅNbLOe6dA al&kNEqPkBhX 'uP`J Wi?&;'NS?-^A8gT<[='U{stY9\`\ͩ+Mz҃bq] !+1 ?eu)#ԆJ>KV ,m(!\} }f4\ _szPkUk5mWtA/3b-…^3\._F.YwLڝ[*Gfz6 ,,w~yojT[ؖ{aekZj;uX+l}2/2+ ֭K)\|dN}qT UGm(]UI V$R9=b:JE{垃!*-oL KrZ{p >Ѩi|r]*JVS_ڻ5&˩TAR.c}B60AE oxkqB)V9Rs[S9`^[@{[ӵ]l]*1)x[]> E, ;d;]N @̅Xh6헩C2/H?WE:2q"A#d24XXFOojiiܒՐ.+=f{~]lKCC˖Դu9i Zb1zRtX}5z}`SV#im]ZLҍV_S׵noܚUn}JLTW|s \NGN *֪xe*c#dBd=1L]a*|O_UF 2jNAU-Yɽ~{7lX^PP 핕3E}~o6Cahv8Ibw7W̉)~ {fXX[*_+J@Z }{Ow GYٱ>Գ}.z}gS 4 )])d'D/=z}$L̥r]m~69X?u2 Xd!Rk{pn Ύ)˷iw֢SLԊv2U6pn$,5$eLᚽb-QG(\:,~9E3R9be%f$iSݖ3RfhvEq i,z-&Me x}"4ݐEĬ@=iHTwjh92!9Ap<cZ7!g| }:)(`' :z ݍ\0;V:k#0@ѿ@]Wg#8^> $ 4^fp̼=u&!sQX7;e C{(HYHzv"$Mh [J.d s'^B4iRMO\j8p(6}Rnxl|.Yx\Z93b}<٩4^ pB=ĠgϢRLz絝W,yvcc$b nʚGi&$QY2Œk[uޘ #9Bźf.\@05IN`؏-M]C"[Fe01ar$*g}$⪾i8lM}~l2$i.<֛N]2\#uicύ̳9I٭-Ux zm];7}=ڤB'ȳGV(7 1{t7T)UK jRTRTLWɜv#cg iMOy:} CIqۍQHfYRφ%thgSș#M3e[Z?&Eo׊}Sa 4:#x0>Jmh6 ;zmU:N%wץؤ Y)Dɢ mVTpCZVQrꔏx+x,NmKU#@c4K cWОL#%mF^o ]o ѢP+= J2*]VD~k#{h dn!vU}kxh6s<_.p4fsH vϱPڅϸ[,@|~ZU$&g e,ȏJt Y&E"͍Q\B Fk /(d-f:bSp$vٗE^nrE#'^p  {SPFN4$wo0Q4k"4)̴iPݴs?hzs&iv/i43cqtC ʟ^׋~ȋ84x)(1ftx6q9d^xhG#cѨafZPܻXLXӅ0N٬޹sVYFajB7 x6uU j\TG s*+dM-.ݛide\X(ZhAtSлBX=x ְ8 <A|֏hvDuO>SF^O#\3)_?#rgB L*:;3R2_N ~O4ml7L:"'X,+Y79E#h>m4"Qeg1]{)ry.т.4)X QX[],rZ[x Y3_>ki/ #1c(V߾x~=|J)/ͺt=^O]#gtȹ.g⑟f*Sq=/̓j ? hȈ bʱr 2#nQz<r$PFa0WJv5Ͽ|C{;5ih,D?4 >ߔBGw-#0qqzݭ^6(^W\@z=K%Ek{zic0-<o$Z TzB6v' 'X'G(jGf;oPh YX}>CHܜSv\."|}qvXO~8M\bnXצэC& M4Q>"EN%̃3x%y2ӅaաhJbrKM;gvcx'>Rn)o `z0K}}5TB ҬOl&jXGʧn& o~gS)UݽgktKx.X_ذD*rZX `eXgGwʸCڼ= ᗤ.xJ~WֶMߌ(lJGxEpL<M.{` و喏Rдb}IsO-B.nNO& 0"?t7Xno4Yy`zy %S.KLVTG;!8 4{8ĄkkKr\Nd޾A|ƷHʙ_;h El {zNqo/0X8gӃ 'Q)UIԯ\J F;ughxm UV{-Zg!RqewШU!0 -Ejڼd_ݱl-#~ߋma~Gmd*YK^@Cq /JYn(v4dCϸܱ|x[Xq};,fX'O<0"zһ4|;Bܗh_.->ao5y2{}Emvq+ 10Q g~?!Iא_xrTqpUyLS)Zn'Ea+S J*mnC:gi/xJ/`6kp>\R”O!K}Gn;L2WUVM7L,ZrŌLb?T~b Z QùLNs,x9CfYw9ğ7JCM:gEmE%E.έΪ^IbSA o÷aveaᖒFѳd_s@tZBJ~rAf',CӰ]DcEsb|[&okAqx)uJ%| gCWe֨*~Q7߬@3&Ҹ57gLhqxhTbk]Arj7:~\µ,̬l.ry֑e {*FiƑ{78'-H}?ȥXQnq`ѥsNB+-ӛ9j}pXtt <_wͱ2rhjAO5'?ZO{y -O%JFT}C+jH:#H0 􁕨2nZ_wd7ӃkeBR::nbdZl'we{H(O ޷U:@J3NZBAqD~p?*R(Wo8C̢`)~ # 8qq ickAK;;B~BntЀ"d ۞bpLs<ǫ6&Ǿ̛ƒCΥy\ָof P*xyZ_ x]2Y9nE+bA@#zCZo|vצ> 3 u"/ B-c4!ų9p_X#wDV[Ie쌋tkqקs"onVONzϷh:UDlVQ9}+ُPNzVz0U`rOSIx@b?x4!0X-I#.~AwCĪȤ#Oٳ>Cܫ?}5 v6}{kșO^zjޘY}k=>VXkzSUӵu.A Y$T6$iw7:(Kܙ1^[ﭮR< nX+1jNUYV,w @Wf gPf1 $\QY/!6 |*w{fIVUYZ|]qUDS늊b v}*[_eIO"Ÿ:,b|t4;r8_X?FE/ۯ33)yNBdUjLLbXH녒*un^AFs2)i4X338r zJ]?[VFO=3f&?!zZ6i4@#)  /cAldzSz܊ 6i> #; ֨; I`BLEf#ꐬC RanBּ䉺Lzr_o:Q'~wuⰋMb^U=y^oa/~QJwk]Pq9+Zg36 Q8=zBbWMb3=ZlV 8 ֌!κΪݢNO qa0q=A2^ʊy\&(dTˌdFCIt4fr,RƂU)o\4g8Nh}< e`AAvѕPT@JފnގN쓯5-M^yMIt]b)> Ȼp0se Xѩ*ꂠ vBWBC1QZ7`Ҳ41,L kcq~/8%aZZ$hn eAKXϣYꞅTv׿Li`oD_:]_BPPPCZDE+MvOk}o &潜*< 75S}l~`A?d`3 'lYX"4YQZ A)$vH]<-yz-P;IQ%qZk$ʥzRW=XbӔ/_Nw ^6Jz^< "=澚&bY ~)d|Pp>j颮E"H9U=P GsNng)Ѐ iFZ)(wUkB܇ xV=c,oGMZ(/1(" _Sbjv;0CRjr ;/k͏Tc=;%zB]* YG=¤%g}8.nw}A~_F'ͳ֕Pۜ(xT; _t:hƄ> 1kn"׼Clr0:5@76rC,hC(MlB3 Hڑܚ4:ógF{bpكhX6Z6ё?HEZ!dWxMZ3vjPJ'dF'+8tnx t zTr]qQ =bUDo=p9lzւ(8EѵC ԍZϋ@5!hwMs>bZG|{2'D-%&ʪ-K[T-5 վ*PT˱(@QCXm(?1mrFO~' >GN};x!=Lofy|^P0L1- T#U涃2C>W|^}0OBp3Wbn_GhGc2:.z!O&7OܼW!OƨSS˫3}ʆjuݡKtsSAnAz27SO+C85t8|voއ&:YE( (C(36DBAN+BC'cIT;ygwhT)zv;ZsSؿzhq~v%ۂe|9ͺtPYu=ݯrȎVsξA)V,e:zd: OeQ/6xmP4u՚ou99y`$)Rrt櫹t oy PN ˁٌ<%Pr3g[ /:`+,ӫߢ$V63\1>_NЎ>) nƺЮe`vE)-+R܃Xֿ+ d8 rٝ/zWD_]7'^\l^ۋ|M ./KI+n NqtfEZg,,VmDj_q8 eō^F7㦮M/nLsn.n+$pE=[kE46PPt8P+:Pb*%y{Hoڎ5}>^ϝ=trq, G Q( =dWJ)XfV"'J3 !m|XPL0Vu3-vpՠ!*S*lS<1{?u&Kb cwx0 !/-[Σ#nBV^dFN:qDCY(^6\|; /`9a@&h*B{WIFCGl1j%ǔBorHioy 0W~F hlt _+-Br E>Cx;AK' [3&@GS&O-ŕECGjw}֍lJ Nު+0;pwLo`ͩ6؍$.>fSP9$#sycL-V EO^Bs5ZߡMʥYC (ssJ8M>=Eζ4ٖ *b1 Et?n8WWvѧ/ђ> Io90ÞԲçoZLӮE.? hD5}"I*W8At]]RXtS{ÊFMhWozsݐ<`hE | غVv+~jڥG1YQfoTJp~PB550sԫo %ۻih= eE! p? WeYA0 {9ޞ ~ELdw;}T!Xmo-?6Zn`Xw.=4AtpWzXb(~Xx+b];Fܑx=w9*r~dv_pwcr4jL߮=n=ו2SWbt 1B1}"E{'YdWӯ\|%VCDjx 2wSSg|ibnqOiFp U}._W v/vVw/0rdj,w⽋ql>X̤Q482E#=NUNjWt򭢊r4^ivr1w'xZ:Κ7>kBk:\N>9a,[P Y%Y,dvkPL9z%\ZJ>OD0Orz)Q9&?z;/|8̵"ݲ^uHh sRD5V4C-ݐ LU@>LP͘+x5cjca)KE'e2Ƕ\[ă 3: 6m44eV 6cYQ8c88.UETATHFDU BB\CS169}vgqs`Mk ƁBHC(Bh@iJhhih3֕:IHNtwڻݽ~3|r|uk!!>*O(1=)iQ N.w/jv4ۖZʫ|`{›0'"{./vpWv! j#Nു(Т!0j!Ґ}L=+$` vu@ ˱ѤF#*=p \ۺֽ _E9oYYzeQ nPIɯÜk h0+ԥu""8҇'pKF6A)(9 g`Z[oڿsKeV,̇9 VC…~ 'P,keq{ψ$.2 ΋!ӟP%3ȹ} C{ʾswNmq+pߞdva!j؎͘ H:&xP%꒘+.9utzq<.5eU6˞P0ʁ%bԍKW^.?0֞',SuLzۓ k=8]L&/B۩zVUd' s5UW[EN#VWMY͛#MP ]B)gя ȏoR{zhŧ_@ݦ0~jBb (dP(3 &Yqj? =:&2Ӧ#os`l$RYΌ(;rL[Xb(Efݡz4Wt`ߋ{G\ 'дo;jJ-a\5())/4< ̐X(%A&u_7_/R;W ?_HRVP:,('<M4+Kj/> #\ʆfS2|W@ Jhb;110h.4qI2$iɪ(㧌3uP$C\$ š6uvQc=03cD<2Qa@hOĭ!T qpǐ$#y" ܠ AC#y5&F97QW7x<VP䪚b/@8VV[`Pes)wi#Bo'[77R_iȡ&zFA\Q$|Iϰmؙfa?0RX] x }Whw;|.։UsΕP94K@y.t>vG۹9yhϺzN7.Zjƽ8}xbl]ҡӲ[; wD(h#Ұ9w${pdIOZô^Dd!Y%EHzQT3EѴjpC5AHDn Z$nY˦pJ90U|_4~a}^p{F߃k*V.'|{2Gb]f mD=^'Qsr?)sr`<4jIgz&9 n+#E/Upϖ<#Ff(UDx =Rd>0ud`0fJ$Fn5Fv -{SG[5=2O%xc`d``b `b`d`dd,`8xc`a8iCf|`Ā 0y 0`PxA#C3Hi52PxkHTAٽ߯ ՏZ!RQI %Ȩ2H Z *,-͞=)9{Tz@z> s |01MDfacv~R>g0mf]` lvYH$a9B `)d@%Z8 nhpx-ZІAIWa&f\yq'``J:Wo`vC|ә;x(|ͼwT+%+[JR+]3=@ 0]2cͳxS39B;܆=<~>2̘`.n0=;Ln,X'EM}U$sy)U(UJҩy=}4Hn:G *tQP1"ZOy)2i%4frLɔDqJDO1*bP ~^Bh⵨ CkZfm6W%j1Zyݦ6u.TT.?}a?ΦEMJ~6аȨظ'f$䳦6 Ʀ$﷡gMxc`d``/_|ef~aj=v!k $ rxc`d``S{9@"HxuJA5 5/(A*"bXYZB]$ "6&3a\89{n3ol2[R.Ic ,qubzU|a*7i|W,Fπ %KeShX5(2fb:cycަ/ .IvX'&z19b +he:HV}v=֜K$:/sGgS r,8vǪwcy͐iفO["+\ߖ Yb9X.^w.Νݴ8߄-=2d=Zޓ<7gpOﷴ{6~n]5pܜRO |3)Y[f)v{LQ xwLaTPxTMkQ=&-&4TB2@ ZRҖ6EMN^3&03ɴk. 7D\r3/6(fyݹs}+V&"^l!wa C+opg^@Gc<|3x}b1Vw/t[Xy8bpYd}\ B0ЅƵ u4؆D}T\%{)ËPuXzkVjjElHu !;K!=nku޳K9 vaW]u1+?r͌}FP7oW*2 Uz;xa<Heo4i&o|vhczR+ɔӑmSDw"exzZ}d;:nu+5)WP՘ғ:3]88ISGWDtC"4eTP>Kn$Ibyjs|sKTCp,;"=borG&/ۃ8qC)h)OFAG"h7[b(skPS۞X]sOzRh%p9?r9B5#;RTryaլ'5xc`f F X(Dmathjaxr/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff0000644000176200001440000002711414005301544027240 0ustar liggesuserswOFFOTTO.L 9CFF (.A}FFTM)]*GDEF) MOS/2)Q`AWscmap*4nZe^ohead*36hhea* $ hmtx*ZDmaxp+x Pname+0Ppost.8 2xz tՙiq!%FdL , Kš0 "[,k[Rzߗ꪿V%˶ll &!a 3J4[ff޼T+7srssBn]|ke{\qZeSE{NM99-=g8wyMwXdo~z_ߞoܞͮA/Pr);94t([xךkך/>*״)V]U=?euG}m˪-zG ׳/7W4OnwsܙsW9?̹'ޜrQΏsy0硜s~ӜGry,'r%r]d.JǪ;r?ٻDn O|3+f['s3V;Pw׷~Xxߺ?tw5sϊ$޳<'B|5?*Űjؔ(;-=[p-nR }I} fi1Mviywۆa NB>?!5f3Tn5[L8|^4->Hqp~ $$ZvL,򐴹ȖgE9N;6YadX=ʑ5PvcdֶlUݰrDv$, T]:R"(Ҭ5jPG`NWFV`W镱fo9?#Ѵ5KSCıL۴ -zp8}d2O$"މgva->J9Ai#Iq :5K4IC[&xx|'3S.a鏱>.H1qBθ (">q͞-{7a%-UV;exYDq41`o&F:iZu#4ACR>m9]px|پɉ#{Y!W qp.YSC;Tn|Җ u!s,.h] Jʪq;@r8`/>5q2~` U y<:<=y(<#D({dZq:zkmFA'5Dy+wY[6?f|Ekįp"FS'FFQ4& tک4+ 5%rd2Tk.9 R,$L!Cgi4~!7іH{ҹ\rhN|yzxc5ݑ}|jjo6zsnGe: ;?( @o{l|*!3h)Yb\VS)A-ς)?rT a'^=rR`᳞X?/ʼnӡd׺jkn ׁ2S6Ђgrɠi)_ A@WD:_P{Ex-vGx钙3Ācyva衩Lj>88:~0ԎH|L+m6\K!\D!U%m)st2m4#nzyZ\5_ <$ig8呅T'cA5 8x&+RhI*^1@b 'O=x!5 9L^j?9@D,h_. 8Wvz\@с>O^VQQ7A-{2^>P`l4AcL2bY7+jW1,@8an$kZ`B[d5mM{*kj-M{әz>x܌]_/nAXQf2,vL%5WGӇ2iWze5#zSTK~bደ7uzI/FաPzx%"s ɘqllQYZ[](3TXT;J4r@}㏍1tcqX\$jz]*ye֠2v4$fi{+7jI&S,Kc^ᑷ.F&[elkROSQi;դ")kri!Xru6އܥ8$$zݞT* &łCqH h*s(sm|zܧZ9Ykϟ}k/Xr^h0T̤3P|?~3ׯA NtdCt+έKUuf{CE/_uq]zax2Nv%RѤ/ 7bm\1-G@7r~R`2jC8'E;9->"O0>J,N0$(EtwQIk", x Aiѵ64[4 f;)%: z? ܨG\D]Sخm˷nU4ޙ}HդkeL;☪L  .g4r %)@s|OT,1:vqP`md{?Ȗe5f&-X<>6r4}-=5ǘ9\j)x%a#/MdMNv3hн8Lz}n\e"X { LVV? s'#ԘO!d峿#@xbBzOCaD8Ч`9qНm6=O֚p9K\oe&kD`F ÅOyCxqk%1*"FwL";Ѩj0tjBi? 1c#-]%;bSUYS٭D6{=@q0{a C`%Dɨ3t$ZYגPill8ڤQذgCɚ646յZ,F4^[`a8`b78d܌goO`ɓ0: .0&H 66]{fûq-#H ]^^/kWb`06hUV+٠Ql{@uyR{n v& akDITwiv<6 z=K cꜰLK*(^ϹWϼ Ӻ"-ح2yR=*x~IeH{vsފU]3?4L-5oLΣ8 CۋF/#ñVݵsMby-qݕObVM赇Ѐ8y܊gK6TTZR;j^j밼>oXbNJA ޺5z[ @&,WU V#>$vX1/fz?؝B_F߬!m<-A]wDxԹhlj:A@z{ %M*MBgĀ ~SșgTgtJG2HׁKd*:;ڊ1+Awcb{?><0?}꓿D'wuvPQ6?{lwþq͏7jF] $˷x3=~2P%!YP[m;Ӫ6+mOJ+*IQ;hxKZ|u9tHR},t֕ȟp_JJ&y{Df'a? @T"-~O^~tXjIH/_E|wљ4 qr8Nm LA})=u_~Q2%9{ Ůy{R\Ď5D֔Nv熇45U^Zd{WxcQkmeots+|}g~gLuӝ^Ɵ۟J$Hދ/]>{cC xٱCEZgvib #;2lakע'$u|'cu:T6ʞ]67ָD,VAER농DśϞ}Gf#>>&hPa%@X3;`2-L=.,bhRYWFtW*Hrv{͏}/TVv6BYqUMx56᥋hE<@ oek~MNޛߟϾ[ αmm qmi:d 5u>tΧ ]zB$?4Hh"ʢ=кP_s9X5xoxk⭟ M`42 DX{qBtf`FV0.A@<В?8Tm:s}Ϻt#()fo*pmukccGs{}g4M7:]]r$0 1>1%BlE.h3hIzJCSbUIkMssCӤWqXbcsO AfLg[VqϐJ.Rwv7iV_4yY żB 'b#)Xů& Zڪ[W$QOΝZzUڗbKDo`:>XYyiqoJz Pρc_8f<)Mik^c6UC\,氬WaRܢ Vc.AcYP<)ɴ 9rsplz?$p8ꆊk?77?5tNb J $ _nBh17(vߢvbo1Y|5J\zF݂;S#( q KS9˅,`iA9{lz&=U.e [Yo0;<6r:ożQ|gKsJo:INwk}L1|F6ރkYvڎQtcsT6Vk1jZ+=e˯ڰyBeKE( Smֽ>DFdfaO8Z8=Kb! %4iVN#v7yju7Ae̮ՖNW)ʷkti+WW,-p_?j25c<0Sj20pǂ/{@'cP`hHpJ=S5l3FSu޶:'!mM d;ҽ2z_P_ů'z1\n'c7QX[e?ɮx(eo-Y}]nrR%١T|v`aA-[8ws/t-g1Jom)&V{){"E6as @2`}v8oo:=71x&x1Aa$hzk5ۚv*:HcRZ%ֺQRz&e/,x}~AZ %(?׹3ɸT+ŶͯE ,/۰uYj:B[B;FNܠ油,F{yTź02 djxsgG#Ǐ?:FH:35=6B0xN,%DnIQѢ+/kkX]{jCJ"qǣx4e/BVˣ[+EjҠFɐ6 F#؝`)\J`YŴz{nbN B?I8>,8rM?+ E2]IcB` 0URF֛+6c'+u}wݨNa g~7A~NV]ZŖeSء!;Ks#13*;+4EZ~eilG MN ~3hWXG\|o^!c%N3N/޶ʺ6m[}P57k?*5C#oN>)~'AY^}$1Y 769\y ޙ}$:[eOl -G6 =|qc:E6sUR?Zӡp;9p(` ERr`Nڿeצ-F2i -|+v{l0~$E|$As#0Ba]<$[:xȡx" ǃ oN:I'8*Me2E0PCj61CvU΍! ʄ> 0@y[ j9mf "Q~\3ёpXB@27$7Т%`J6++6e>\\sh#Çg-?N!o!1[mN\mԄ#6`h#vd>@f,zq^J`]ZS"۲zdp*o alq9049xx/x̲^˨L$9.|ׇY* 5apDkj7I͸Hχ|љɼLҫ X! H/'Rdx3zF r .Zs,IAj[̲6Mp^i+Z(Om."ls%uuuMkHXd6$Wik kݩ%1;Jw Jz$CvlvhAYd5AZTVkpڵpkw剥wJ y¿~P3Wt /z+|Jmy=2O%xc`d``b `b`By fRxc`az8iCf|`Ā 0y 0`PxA#C3H,2JZxc```f`F|  Q (dr?F@ PB L,l\<|B"bR҄tRȐ Pxc`d`` ɁB6__EƮw&} $ oxc`d``Xn2DUxc`YAAi3 s=:SIYfMkI@vs,# Q fA1^)031X0tٔ!d300P xTJQ=RB\UQL (HT4RJq̌Mf$hn't覫~@zY`1;{=U-)xa-cldpO9ipgϣo;2['Y2la  b7sM?.#@>Ra**|PҨW DrTlE8,{+ZV+Պl$zʖF{.SxcMIӊ]7w}t9UA%s/!1{pn֣0GqGɪSL(K һH^-ut]T]YIRuag#8gZc<6 hى6-M1xpՀL[DD#]g=$&瀸UΣttN,J9U:& U e'fʸ:&4Ny _)P\B\溬uTzEo>ϙ{o؅QrU[!{nOݸNpx#7VBC7T0rU,h~_ckXqnuOJW⦵Zh LuyέW#|jXqV$D % @cٸ˶ޥmo3sffg{JZjU˖b1N!T:3+3^~vf)sϕZu*Z]TP_@^  jU3TjՕ?+rGNh.Pz*w.8 TW^[sUW+ sTsUSH5Ou'V]Iujjê|գu"UJUҫ*ʩbT ªYRTCUUS_PYr󯾷ŅTl\dIɲGJʫ*,+Y\QXTPP^]\Hf僅3?d7Or*%U%j*Kjk_o}AC立K6߫d.s wMQ_n/,Xp̗{f,P[RT\e.ګ^}]wp٦M?M:?CU*GXc%K?U]\uJP].Fu-z UDܬ՝TwAGݫOuj!:A"CŪ%eGЅ+T+эT^5f՜ԼZPjZRuPRuTS u:nQԭ6uJݮPwuOݯP[zL=ڤӅg3>̚ ^m4`]ŰY-\zݿr*x9 /S8lsdkd,F0}ܩ{oHչn936\ynhj8}e1N41uYj';^j~M B|r5,b׿ 9ļ/o#xu}˭ewvbknxWz7thÏ=? pϽrL;>,: ޭQc9%}fB W?#/ _9pLOR!Me$J%; ^#x%US(Q}TKi<A4B=c<;8ky|$ !8ڹ^ks< &w4hP67e?X)H>`K~?HR\RJOrHjy ApcYYѣ繠 ShbmcVޣ:Mf:8rUjZ^Hy\0yz&:hB>9=@8+V|%7ܿ# Q 0 8aګNzAݱ'DV __]6[ftOj!cA)q1W&k4.`4I.‚\uW1~}w+`KCW/CWXh=C b(v͸$| "VE,zVAsmDӡ8/k)D8 pyqQ$01XwgW:+`dJ"$l=CO.Pz7\Xp&UxRA?Jh "g +4ad^ y$La_xYv9o❂GIe ^I~z'tB;E^dvedy XfQecYLg$|v1L<".&Wiw6-x^!.EA@|$811ncꇗ>RV B +WW铮?oXŤ6$jn6qPUZX!:^0"v~3ʗZ9*R )*giǸ|D)/iJ +@y}zg6ByzX3lj^0V avOQΞaЈH(j8\@7a9ns~-<)*Z|A"˸1m~.Y"r0;,U0=Lj#Fnc6ci^; q,}m1n1)')C͕i${ +<6!2?M!CI! 2A/ d fף)8"=j(\/EK4LT.Nv#] f6@\<>6:Ƚrf`]x,uU5!c sբ/#ʲzg?gן\hAka}~Qݺqahtl~>z>C/X/61> p!uRKI߰]HM,'{ PWrFE.Xӥ#?V[`+ 88?̈́kjEJ%0ti?JQ]Y7~Bs1MJ'd'?aĉ'Z^DArsyc6{ A1 I4 żAp,mw5<-JFtFZb"!ؔgBt5/&!aiՉ4LNtzDF@6CјCȢ0F Zˆֵ=2 ^yP'_j^X%34f҆򆊢W UH`ģ4X{л;2saɹ>({/tR hՌ]%.1++%qCܸDUu+Xھ.u'[61V64U(\w wO8hz~0dViwEfD~%,Or߀V>kXi2(Fr?ad=~&d~8$4Ż8Q}z+VMj[ou;7_nA;K0I}syM_;/IsSO~|?0$Y 71 7źVŻ x Ooz]DrZ8+~7&*?R@r?aZDb <+5e@N#D+6zmUGب QxsgǟXE:ryfOm3n̙BS !a)8x=dO'G~EF/Bi_W(>WQV+N;~R4~{@]Ew u)uu52Ku()"+嵚nV&XP7L$gՇOUN ^9!IsE(rH __LR D|m1!d(h W-"|mJuX7;ơrEWybҴo[E $e i17!lBJz[3ۜϔ¥ufo`qÜnI4՜@5OY}+r3F <}/fJ#QJLg* "gaJ`#_ z^<*DŽFy͙גϻL|DgYz>trXARV\fI.u|B"f2mB('1~&"lհbP HY5K  W)]'VI)2N.bm$S!=EƀK!"]L72)t=Q?8z[™8_ d&Vf!ZoR9^#> !A1o)8x,'6K閊26/P&D3(6 >XD f4/zL@ӛ=řSP<[dZVq{XɕhqJL$/g'/=k:de&I9m`eʇ+O0Iדz[\adM\I^,4'qQ+D`Qd8| VՇ7Z~Q%qʾQUy/*Hm`]yCL| C(vd ۨb_ٝu(Uv]ve@25{6c5 ;yK7 k+]^G+7^aqz#bjx!ݕ-'(UFdSÅ0,j1dӴҰ*2?{`r,S>V:vF}$}zmYH~bW[0N<- [ShH#& :0YF]wM," Ϳ~'VJS夳|1!ցREIT4NI 6"r,#Nih!#jI#Zl{9F,GGuxśΩoism4}(]1i;2}'Oޮe`djknkz~r `@ٗő=w@;x;;80kݕm'n})M7nѝj"5k[o^V Ӗ]Miš%[nACR7-+1bk(3ͥ\So}7+}=GH˸]W.r89+gL`SٙAhuImx,HEbbI334mXz'M]}`PW}N e+oSK[ibkޢccp[ҩ71=LJzbmk Oޭ-dː;u1x*~Vbxbr!Aw^UTh5{J˚MJwD?h`#h󑀇7?I Q{:J/UC]dK%PC;0+2,~3,:GQ4V&x͖MFvuAg351sȁz9@$")a q1ٷʝUc+(hjٹ 4o%BG.f&š< 5Ar;EGJ/h6FM v P J󲪵+l(vݞ> [vM]YAzXƭ}ؾсn ݐ(o 9W9c3y57ڵ۠+6Ҝ 93Pz ~-b4Á1R£N  =zs~׎?b2_ޭyHXW#6H! $)4W0  ~PաpMYPwG]$Mk ytdo^,|MMĎwo?ִ;ɺҊyyy"47یLGT]^" 'AH1^|y=%f?44Z֚V..ӇV 3g}Dr-h@4ŹkXX<:`p>E;2W[_GZFvcs=ʊyZ3w O 8Sx' ,Ѥۘ-+*\;۝B>J؝:R>!jh.]KEo <> ufqi)x q`dH4$$ /,z^v7zhg*zzCք? Fv8Z?|N`r}7?  ýC8,1)7vˍFJhW."z3rmdY}~86< #hB<.VS᭮Rj^ۿ)jlYlzeG n J(s#;N.lT,#֯?ٺ# 3jdz\hsx$i8f΁cL\fl1U2)D /ݰxB]?΀ܗO'_D0T6-`R:{i?D5[ |]"']H#Y"fW.,0<\kL:kzhG攽0# f_`Y,19t,kUfj)'N;'j,æ-fC@txM=-Ji2K,Wv*|RhoK h@9X;x wn" CҞy:Â'W`dXQvߣLHqJH'ZMUE_5Fwe rlU0v\#1 A.wzH{$ц&NDAq%ZcBGҶDzs䗵)ib,uw+HR3 8c:UuV|1|wx\0U ;43җ@ɹ67mvA=~[/0_"TCc-Yy5Mn拰I9KU[7$ހ+@RwHpl75[HoY4!/~u_l^]8et哔 ({4.Q!Uf:D[bn^~H"Zz-@OxbF`fώ|N(O۩*KGӫ[,bLwE*ՍP]%,x,sUjvd!oĒLQ]zk\@c !0oǡ D\>J[ʗ_ރy^`xߒ,]|Gt081–`QC$c{899wۀ^mêFKXR[S=#y g%ƎaXUV_k(Aa)Yilo luoB69t|e>mANf OD2ijAuVpyZ}]fuڽٻD`Q F #3ykT`خA6prڝFf]ieۓG iD@`Gd^h|P+BLkeT`^)bduGoZDficP$ÔtFlcsƐN8]Z XvKo6ދӤw:u bdֶA&J'#c oA,:}m]FyP*H@2-V.%`4"Oq@qǔz`ۻ;~ QWH@Q:L93MlVg6_QT^ZMa`:O;^Bmi虜Fc&hxqEEeyBH=u՗?dzsh&cm(sO *\ B\\]޼&Ӑ3;~ZVlpHŭ-2>kCS=ɉN->YQUFilU@ǡiXdUоy:ug2ef{Yy*kuf\KǾݺŃO2j-c1bOv%сdlO젿&`:21U e5Vqh=lQ -V,>k1n1G y9#ʦ޷-Mf-/Fw .C5X5HtH-.}-b$DqJAxtfODUgq݌@i`4,V٣T1h ؓies/4|rpϡc?GbTnۛm͹m6mLap ݽ[G0#݃^'il=1wbLxgx%X@պym#J-C`GT㻏?3<<8lKQF,zӪ/X+!tܔ.ԬLyivh\1#璸fhƸ̠/L2~HMշ/()--몬 ^7{ZO1Hn^;#p qHf7 c*ZHiK <ɿ\Cړ HQӆ28?5qEwNiT_8^e8T?ī(svHZ >eAO.ě h ݢb:n/  K'k>tTƕ;txTӴ/&nZhL~}5 0lnj^,3^xT+B%Ȳ6|Ls`v@J>kP &3@t1]Ku G yϸy-Գ7Ο=sځz.#H@d`z5? ٣Y=(($L¶>K^C6V& & 8S1^XQnXYUX7/Usv>cQ Jlש5W 7.S'z,3()LSp䓤AKε{c'9Jq^Sf D:u6>&a!J)z<\$Y Dr{G_ LMj⩗Wg\,_DVbepfƒȷ -ͦ)13> X/`Ͷ%,7xpE@.r\yJO*(vZeBTW>r r El+^.^?FW|?#l@0Nq6_i^zJ ̋w @mH?&R)ү"z:Lj602DnZAeB͖1JmB,GK C 57v,rv#0VgN,qκ Jk xl +ab?4oSaPGsg{{-~5`)pv_|kn4%:Od*=crǶ߃kLl #vB)gV_]nz^gkgZ8^ #=#=Tp7Im1m͘6.mA8 b Q;V#\S,~RRU? e/74`L*XbMߴ!B eZ7{E'Ԃ*m'$_1_/+m'ݡ;6<[vzI3k۠qUz-͖ 8?8|TjEy%{zfOl}!&>7QuR!$oEP %p'M_>oЙ{,Z/ :+}a}#->91<ѽ7u9#^mo=,5EU%8/~8=wwnrNZD_ -3/A9o|0H&md[9N(q/3W?@9 :q JwpYySMm'ŚC5!k˘"4B~טFR4uFJ۵W`sC*lՏaD`V9 Ƭ]~/o:uہ%1! 6BXYY|Ƴ6!p#s>JUՓ )=ys] k֬2;M.ԛ+%Jg1s췔9|9KeJ 0s?ølu-np,qC׈S+57S{<ޝ"=섣W Yb[hՅY$^gj\_XPJD.X=xjަrhY#zyϰ.+M&b|4@~Vڡ's=4 FAwN kC\;//I QP3$vE /6uF9)]uH2+`0`rr3L?1rKq:n 9U wk?'{oAD rv5YvRTPh#,Q8Hr:}%j1JSxy5>_믩J٭ۿz)MUKL&CƒnŞf.TҘOZ,o˹pLqen4og~UܑW~3۹oWB 1W؆twtU[]攓]cR+Rf[tbkne,x9++vuX[JdC̗ okѽ7׫mڳ୊=Cp<hW$7"ΈCo'TFh`,#u|iz]pgfUAv8Brix">zbm!ဦ̌ce`#/ : `k8ME@jotB1{C(RIY;pIGMp9 rặx &t]hrXuJGL] x6FmXk ǃq8Lr.7\w췍sw(.$D&BǠ+#9g6XϾ:zֿH5J n(_-`lEYf(y__xj fI_eO.nto޼arv= IɅ#-uMM}Oxo#~@5?^;ho򴜧2Oc c4/8իW|1k=nH#iNdVnQɣ*j*4'ðvDh{49Bջ^Mzt2?עѥMM-&2sy _k{fz VsL%dqQ JΪ-sԺN"X",I!rD>A7zor??~&xht0p267lFˣavգJOz !$|m$c1*DvA.vub'wkƇڛS4W9BZ]݆݃xu^=T:*M?4j~FKN:~~J<5X9|y[y9;O^::ywFRlU?CJkDc&ua1m`!) G=I$Sy&`c.l 2C-c1V7f%@ar@ v Қ 'rK[OoEVg"`5`l0-h1M<]KɩWVO¡Hc{t~28F)>ivpGt郶_7Hrt~!/ Uf~rm/㒾aO|zOJIese!Ev_ҫ; N$VcԘW fr|L I.fҟ9f<@\.8Eթg"i,-hCYmKsr&^rQ]ʙbz$-;G&wtv1vQB2n*+`M#pt=]m&wKI333 ses>!n@w5<GpGsuقpK;[ISck-i,pgw\`͂3t{(}7߆doy&F^{.k[CV]Z>OLێFmI"&aY$X!P,K@> \RZ;-J~.G łQ.gƒXA -V[hcxcg5r(VKc$Y)T}fpd˵!=LMge[^ l}|=!гՇ4;3oxaE]U:{ ɩKċ[ۀHkaMBƦZ RgO䳚;R20Ű/I/8:wz Sn-zgyf\9lԼP)ζf#WňխN'u_^ןpPxs*0IT}N*AԴs&w5\:0(S.\U4@|,>6[LLa(q|5>h1txg?/E<#y<R")YD˾D c`u&=Ջ7nv*k,=tR zotrV@<-bԑx>9GS^5䓜˔P?=55NGx έķcqlq\kȣ`4DmVHma(  $Hl/Npigg)bGn|SFc.Ƣ&`YUx7.4#8xp)RP@xtߏ5~d"W,6Ymd" N `:ƖGږ\A9ini̖*gVzrVS#RM]voĬl4f(wGBCAp5 ΪnWAOcP#IـoW86pV\*{ {skM%8\,/F ߩ7'FoBO-ɕmrW<[UC*7ZVZV dF|^DQ4GONn/";K$McE55y_ɱzT c6\1zfFeSxh\VJˇeYwmAr/|A-cqO dfL.y=-JzFY j(=q7WUmw(<"n$^K+^ hWlߣr){BN|0cpX `w"w:5UeJSFxLf~<ڹD$|tHN0ƒ;Kj:*Hbę$87,ygK!R 9IGZ<=ibei!Ih,N<5bjeeF~zkr_Q3D{dRdM._SE+<$Mkfoj{wKKsI$nQ?{Xd9CI{ޔKvC^U.m,|Xѳy Æa3c4=6>lXk(1Uꛚu&SE/#Dh"e\½ǜӜSvڗ :x9J橷=w"5ﵬOޭμܸдPYsoNBg㦪-0*\1yG0$7*aׄrI8W B]4aHq^G5[@@x}+v{JP6#cǕs3}6I yn?< S  j@~qh /t7rh1ZsRUD{դ{*㕩6eh0BU-9|0[Lp׻^[lcfnعXmӋ#-θ("'xcL)@fjC`_`IJ)R{ojOO?i6]Sq7fΡwCچ";9Y=gϜ=ΛgϽ@ueJV5*7fvƟ*qҪ#ٳkÁ7W=~vl w֢ĤxZ}ۻOOi /I̊HuwEMͼ~7 6O] 7a-g5Tv-L:4k+o[Y,Zs9JBck:#3wȮ,=2O%xc`d``b `b`$ fxc`areŴB3>`0ddb@ ޼\S0( P@AN?{'  dxc```f`F81, +$0Oa,?s3?3LO,d{l 4_@PHXDTL\BRJ"/#+'o`hdlbJ3@ vD0#Axc`d``_h|ef~aj4Y $ ]xc`d``X@" AnxP+Da=~ȯk ̐H;N#I_ ҆@R,LÆQ,,z5[T hGƃb&~1AD6+o\݇m>6EXzOHKL/ #NraB\Y`H1%hRKNkzD5b_{;ܳEFѥ^fÃC.K7mQR2oB~ixc`f F X(Dmathjaxr/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff0000644000176200001440000002326414005301544027637 0ustar liggesuserswOFFOTTO& 0PCFF  %/wFFTM&xBGDEF%"&'POS/2hT`B_1cmapbMhead66ghhea@ $O@hmtx%qxmaxp`*Pnamedpost 2S)X_< 2O o-IHxc`d``5Y=@"@ P*xc`aǴ H30@h L@>400`xeHsMaX?G@998f,: dJfxOKAƟDlT i $?b*HT4RJ/2&cvd쮉~s/0RdD-T1wwf๳_,;Xg3Y^8x|Z3ˋx_b^Z^|6"bh !`=7Pc[EPpԥ%`XKa XT{%ѨV+Z&T z,A; a9ϖi cG޶-W+˹Ckw\*phF-.4wl'&}0F#)Sk-ԽYh%l5& <s)iʖP-шuU*3o1]{+k,scT.ux"8bW+suBĩc+A{*H8,XvGE*8w&eq"1;WȑԾ<0I2m4jҋu&n,^P|?&Wxc```f`F| d+0X2D1,x#}&#@gbfaec  KHJI+(*)0@,]=6xc`f F X(DxzixenhԴ Ƣ lT/$ξ ( .㈃3A?8\wΏѹ}t(''7{Vv.+h,nSY+5eiLaNfִ;o2AO>r>Q} ٣6]EJDŋ_^L^V\\Vߠn#Y/^_Y˛*+f/,+-J^CDrDwEѝ")E~-W4G4W4O4_hhA"Cߊ="zTXq'EO=#zV;s9T䰢E!Y>`Mߊ5ΐ_onYw˶[ko|;|Wi`Ef͙]5gCsv?~.̊ɜI7}.(#,ʝY)%bFyąx.4R䳏B`Uڑz9`AH9m-/P%K < \zM0r Plk`Z˵;`,}I6Ɇ0\'SH,`R39Xe.)4V |\q99āRPx1S>CYG|@IΟ,̀벸)?~|ڝ& FjSrV 2.n{?xg%Wmt01P!:d3<{@ VQ}W=BY%#~MU,K,*hd7~pœ?7|z(I @ C5;TnF\=+<pǽQXFڴwK $_V6ZP=<;'<?(܅\+2J;Ax2X5Ѧ4V4f*8 ɕ2 ^ra*f [F$g\:(gvqL@!\Nt:QK$)tz`ۦ ]-X=:{p Fl-TȎ as\@GKIhxݩxyz%mbM`FEuvv,!E>g=g~!KF('!fZE6TiŻ5j r@,;x``Y`DYA .`!%HPM>79"W{ lN` CD,XRa8܀}px֢&oLcc77FX,ѣ3@xsp0n/P  4:#^{I&`;iAjף6N@'/XUF06 4uGbn(O#v$^P԰1 yZ A0y dh`(y3c ZFޮ`gMQ] ٽ ѣݱX=LP>gw)s[L\)I5(m#h.M88˕t>nC?@;ꪷoPo>Rdly?AݓF>sÓ8Gpl3xrkę@ 2(Os*sԫ*9ioI®V ||]zZ'20`amlP4YT* )UP{ڀ>I\4ƪ:n$lj=yl_j'ׅ-#)TdM1qYkeA]09})}2YZ02SFTt8;cU{!n5$Pl3VkxPwңY< 3=k&P'~Ki-av*MlDxxq\̍}X;9@,SyuUcSq4ʥIJ#IHYWi౏ʿ/8#H{̝uj(z1T5v LDwm1h?GP!wq>G]~`/M@7KP{+~DLe RڣmA"jdn`l(AB'p1<9C-n6B&dᰊ$g .{Ɗ$&XVGQ9r6؃8V/6jm(oX3u]| oK6ּPj[ɒ2L۲\j)Ө~3H%Ο@@: dSoxY\AXrŷ]}Ҥ,l8-X+\Vp0|4{ `cp)U:KZZ0!@-wޠ8c:Ar\2uM ڹ`G""N%8K|0 Cr؁@E,6f&nU L[PSoK=$rxއOL"FP__[# awd("\ .~8{`S耈Iíu =L<16A8NDgiWCzM!&ӂl`#sgDxQ'aZ%`X\R{APpo;w{!@Fuʨ3x>M/s= px߿OɓCg҇ZKYF Y3,q,SY[lj5ԫ-5[ ~GܜLt΀3ݡйQA2&d%,@%ňM OyHAɴ*nzyz@\\w~x?#X,xVEysW2+W<%XߋkpFjFˋ6YAɒLꉊ{"=CC8'vsڼAҐ٥+ :٪WT*K]\X_,q{?8w8=1dX@:ۛX}^Ny7|:/ܕ Ba.oq:<. 9+BpuͻJ[8^O-QOGQu@bΦyB7̹2]$])I'qw =zb.ެԫ KTo"$|%L]B®hk'CEauL+'a$jMzLVd5S9og(iB|ؽ7wOhXMkh?mZ{j֤juz!G 0pǃ.F?>?L&&dh)44"e>/[ y[)o8,O}NB%෹ln$&ƴQ^*ךtvCR7zއBS9x;HVJT 2ґ-z4#)E/NlS{/DdxqL]kႜl?0KwWrcs1TVhWeffd 1 hgg{ǻxGpPk #`6W}Q4JeI]]5̥| ΃'2x~-GMf@àkL+կ TC03vr#n?u:ԏFF}B$xd HHWl.oZiԫv MLftBOmK$Ђ3b~Wr6l 8qWNxs+j'B-wߌ }p(0 oPȃO%x7mrt Q:%&ƈf)J^]o)0{Q rL1wrLx<{] i⃬1 ҉X b1 8P 9yWpɧ9"/&c?R#8Ww& M} ca㗬> i e˅geϦ}`0F~ J+`%Դ^fznEV,^4sϯNcl,O_cP>2 /ԉNk5!X_:84;Hf|oG@i7v-4lj2Dgس6&MsD~cDڽί7YRa0{cî Ѧl&*Q˛TrcE6_q6u5<ƔM7ő-M=:{ D!mQSR7_"w=lxp'I>d5kw NXmUx# 8>Ӂox''ղFmߨ)*PmJGO(&>v샋'赤MKvuPЅ-!d / IO2Fē;zqɺ~zB|>HhtƉl B M^-uu/޸Q;}h)UZ٣;LW^xTIn4XLR")ho!Ι4 x | ~&lufoxmPnDJ]cp:Wd[/\j,P:Y߮Ѽݪch$ DO{⩉$vMWH$p0}mC=ŭ7#dVsc;-ҦU;393]̔2njH[WF3IG>W V.D>9ܬwT9 حOn3աJ絵ϾҩŌ҉fNZkx}uA^|Y?l(蛚WڴA՝ Y;/'R?25̘c8%??0ڟX^Ziރm}?FBI$;M 3iL6 tV0&X?8{k88RHśu@C{w$Ns!A#Cq)uӃ뱍{TqS@049=3Sm)jdڢy³뻔9i~\O2GINK;(;MeTGXi aw-T7~@WT [XV2WU[a;!{ʛ#oMlo{>Ov@7F7*\NF*ۡi=}d% uϯYVTW3Dͳ@ 5l| zΊjѩ嵰U봶#k ~5xz8hTla*pau 31{ bAc}yUMD ,V3bG <;lIq~x㼗s HEeN}Ѥ4Pi0[#I[\wq~7ܮ{H]/{}屸n;W!#IDmmwOę9h!ji+M ^1w5[+ ̍ &YNah@Wdy:}|#0EaP8BL>65nZ@}{o|cǿ||mReBc or͓3[7=!xc`d``b19&F b3B0 Uxxc`ɞA X-l(mZ,+\R|~ї7笕8NK{V ռ^YjL^)WCuY+q3d(lsv[mvJv,lx$AD[5"t}%uҗi$t6HH+m7vڥF%1kV^|̝ߪ!K#LYfNX.Xs߿ɳɭM H dlP7R3 ;8'rBZXQLHDV gL؎Z;4fnT< zgiR4,1ڤmaݡmjQ!QϪc2jMi\p >Wiݪ; yM c:tYL!˙OJ<{*4(uG$s58><䃡\S !"3:AO͡>Tʵ@@f3"cMN9snrʽlNOO/t r}o{p]:sn}wOt@- b^iD:\xc```f`F| @?CHVJF6sTxc`f F@ (Uxcd`ad`ddM,JJ- a!C  }jb6q(tuss63p/,L(QHT0204WHUW_TYbc;##3_s\;]nen\{eX`3lxc```d3΃諱y0H_Vxc`d``bF(dAL Imathjaxr/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff0000644000176200001440000001203414005301544026765 0ustar liggesuserswOFFOTTO CFF ٯFFTM]*GDEF4 aOS/2TM`>Wcmapߖhead\36 ٘9hhea $ `hmtxЕ\maxp@4PnameHo post 2xuW |ٟa""5Q$0G$ T @H $l53ޛd !HEşj$N&bۙͳO tH7-t+n7z+NNAwһz/AMQbf4AN&~諴< {+[-hC7ttosNy&$'Zʴ=a*D4`(#Ξjv+6M*V1Yj3GP<|iqL.p^ź%e5vNؚ maݱo}5"--un`n;P}r[o5hex9^bNm"#!MsA K2#lRB[ `OvN doE(S= a5ˆhga$kG}YP'  Ge<1>f<ڎGx&wK>h#@pPB> - e&-J$U~bU\b*~aq{~OcH4IB 6fS ]rhN%zja7:9Mt(e^_?& N4 "@Ee4Q;yg1N/2`ȃ,%J9zЊm1RUTrnp3vЖX߉4jߏ1|S #bd;G€hLwBl2w2h6Iy8J.`:eūMClR&V[a/$ y-4ODBk3z2b|ʙ'ӒHOZ n 8cEB3 u~T/d{JDhl@)ޥbhI RO,G4$ PnQO<T}nsGLTn+O7FCnYV@ӕI~kapjծ$93׵gh }P!29 k,Gs.M:MJT=HLx'E勇}Ozrnl1mgW,^Ri+:%t4~Cl Wht#@(>`@qbCh7.T5 җ JKn#΢*\<:8L*qƔlKB_ّ}%`ջhԯT\AgJN8F砟cubS.`s@eӛ[3lߢFmE_0Ȥv#΀: -.kHd(17}r-뀐kEp< & ItC (!-Xy Њr&cLk2n6Է(NρM!bޜvfC #G3vCs]Mz>heu" w@t5.6Ps{OAO~h(H"!(A}n09lyi*c7Q7 75:XGM$.\.9ʞ囌>HގL a^xߚk r$KͨA=ףk0ͺ#S̉Zj?]$ !X(۵pM㚝-\΅U@.eFA ȓͻ9[mjY2c~8ZLB[d{}- L#3tRZ:Bq#ܤ͛޼-yܠП908ڗ27dHK4J&MJK|K 4ʷ௨8=h)(NKuJ-P1F.R^9^/"cD yJ R {o?yRuoITuzif%zRc2/Jr.1hI4ڥN 7_2躱mӽͦnB7Q`[(I)j:/}5rT #n=_—T(_QPbJy~tB$yABB_' KsFq6I}E\cf^al}$Y/=2O%xc`d``b `b`Bc f{fxc`afeŴB3>`0ddb@ ޼\S0( P@AN?@oxc```f`F81, +$5bj0c̬$̭VyC^A.IPl TW_׿~qN -;&P*31)bV6v $C(.pX j3xc`d`` }6__EƮL-Ǟv ``o xc`d``=/@"xc`Y-+c`rg j @='DFx! |zF^zVͨ͜ @$fh @D3W260W2lU, @{8Ei3 @ ) )3P4xTN@=T`Al:JP%Cl " nqxDR~@/'tEǓTm,{ܹs# _ {g0≵dpKV,Zo yjpٌ g7 ^|%^()7pgOg08\^tm-c)&:#Jt=RD&␸5EM8ZRg~ܚ`Hkpw eqU*ݯS~SM]q<9ݭz(Ȗvq@[X溮tT:{be3Idzs\<[\bOH#NON^;;T4^n W "nؓl έCQ:QsK8}(xP/#7T8#姢 fW?/Axc`f F X(Dmathjaxr/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff0000644000176200001440000000625414005301544026773 0ustar liggesuserswOFFOTTO hCFF  |"FFTM]*GDEF FOS/24N`>W>cmaphead $36 ٘9hhea X $ hmtx xWd;maxp Pname opost  2xuU{PT?݋Q X h1F`B:hjJMՀ",*yʲ~]vaA>6`-1Vgd;vR'u(:Ӵ|f۳b?~}{s\h%׍Eog*.)7!,‘gD]ͩORhj鷒E.kH+\(Lqv"0$d)YFC{%G I!H/9G.X۲S>{]@#fg6/`cn |۷23CuG%Նզ 벳7e~.Jqbxd.1YLkɿF6.Hd9~rpg5ƧӼXsSݮ5j~/_j07̖fx Q隴Q=cutX[0]ϯ(qs ?Å;=,QrpªôVFyb3W*($tXdޓ cM=XWר[ѧĞg#Z@c2 ǼROf|>>:y U<a\r,WQR:U8TܾF]`[ݴ$iA7u74NC2Cu j?æ${5`wx\w'︭R5AwyqQ(4i_uWSc4ӇkpJux\(@!7T3㎄k*3 A::!–&,z45c^*^I cjɗ{򺔺СΝ׭#3E‡~)[gwg4P yy7zs^Y"#HΑ_y+ 0Qtu*?ڴj"K%TKj]Qb2kIZje}2ǠZl[U7! G'4Mo׃${|aݽcyes&v G|Y}e]eM`ݷeJ^kY-%h *K3# RӂS_>u_tAt w=7< K8- TϹC]MA.c&j#ʼn|:7d9|$h4 T`rп?p ׳ɥPk[sNX yk{589~qJ=2O%xc`d``b `b`B fRKxc`aZ8iCf|`Ā 0y 0`PxA#C3T21nxc```f`FX1, @ZA(ǠɠPP˰ff%)enTFgsx[_ rzㆎ$^<"<3b!d&`ec+Ii?"A 7@(xc`d``o|ef~ajNju9* $ qxc`d``uɯoX3D$|xc`E Vba0g`-47;& na]F_@!ɝsw u@Ǩ ) "sPxTNQZ5m` 6ލ G7BB MJ*J!ҹd:mf- |.]'\ۋPCMP;=|{ U+-xd-18[hlp?f\r6cu1}If+s:J-,3Y< 2fpO3_ ^/m`=q H (YCQ _H7EOEKQ `׿TOĊ*ZZŎU'-OГhehi81.IKn-u)9=zF p L$$G:F:G;g&^ԑEML((x) rt9+[YFꅢTGؾCS ki&CUU:!mZz'ǽ]ݻy;dk<7wNF)# bq@"Y-3fnN05w΄ɸ| .ڜVB=5dKا-fXs]UDu*v[XFNg=wx7WH%8- !ܮ N.wx@y2qe$_V)2;7qԝ1+ܡ$BkqE}@I-'IV*^I*HE'_ eAxc`f F X(Dmathjaxr/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff0000644000176200001440000003444414005301544027501 0ustar liggesuserswOFFOTTO9$ HCFF 1<"wͩFFTM2]*GDEF2 OS/23R`A{X#cmap3h*0>head436 ֘9hhea4 $hmtx4^x maxp6H{Pname6P upost9 2x{w|Tպa'KШGmh*EAP@I!2d2If&SL2B @:4E4 6gqx{ߏIfYkFv#gWg^H} sJ:*9DS<#dx4"JzI$N,QI2$,a%%I$$O( 8D|y#SBׇ)S~/7 {أ^^&=z<=4>>tJx\j袨١7.0:2>tqĄQ7Fϋ :mڔG/SLګ؀^2rлC5%|ctdBa ao6??71%>4NBI%OH$$$P$<).!yJ$YsLD.yA"K%H^($HJ^!ySҏ`d-ےAw$COޕ'&.!ygdddd$dT%$JIK>,,\,Y"Y*Y&Y.YAVj8UJAIyMj:NKzyR4_Z IBiXZ"IX%iDKTRi\)N5 OƨW!hkе_ tw{[>=NW~nEvL!WQPl9^Q꽯Ϻ_:F)oT~3?l|K f ߠ~ 45wI/Ф?; 7|ĈF>bG\qڅv/0O܆PWno$?H=! r]1u݁< ol`v0DCL Ag;͜<* $Q2SbXhLZȆtof9pMǗ721% @1z=)O3iMs {`uU]eOp[]&WњR6s/ҩM4j,l&!--:& tL`S":ӊ2VxH>Vba[CsŶ&K!"ߩ﹛^KO`dE3C=&stLEVr(`֛@ ZeF_0szl ZOn 1ӂ@ 9rWف_6h)k,~тJpci'gFQ_W#c/qIIiP&C y |ZBjRYBPT3x+;ݗ7:q÷x߃>дSf*d2,P]pS\urz?U>PPqh5_.:s%P{ ͚M{!)6Y^r' 'Ts% MiV*aԴTmZApA ŻՖdFZrYeVsZy3s9gx`97pM&-;ޅ(f( +sׅ^iU)~g1/)y?'`{8L-VL꣒Qd2},4s~cV3h򁼫en *!Bpq/,zgjjv5r<#y{0?bTdЩ)168B⻲Na]NMa` 9.Hkag tV+-Lv6HS4Ф5ϛ`EaLm/^ɬ¥g89ڼ%:Dk5թƛA:gj"}H .ʭ,35>+$ҳAN9aH1nKјxa@{:*#ύ`if5]B4y4Z*} C 0."=)'ci{}E؅/m 2>:jxe2jK;K/KS߸#~ogzB_f/+8x}Oo;us"# :[uHp$Se3LUH'勛םM) eHw9&ASg\1)C G {)H佺9 SѯDIu9LN!<55%GI A~-.5y e*2VY*Z+ʹ*H?>XB4F<$/@K@[ E#ț$Ì 2`8RTU2?f:Îz.D8pgmZXr9Sr~wao}%M};~"D#FD!TZt\xݮƼcGO̻9.M84΋+?ߕZGk](*uiHZmln; L>|*- H EYXw*t o&ĀښkФ>Acael{fC+kM~ Ҿ,C\Znڵbɜ s`i-+I=Ϸ:C>U;v2rDPd=@HɟS~ ~:.Qj D]P2ϖvӲMwhF3rqYC*EvN߶ 9Gn< HH9sY@^Nnj1ˋ)2X5P-]rգrɢ.fXmo 0{` 8Yױ\~MEX8Ҹj5r ӻ,m8BwU{+c/}T(< #>4o(lx2?SGr(Y,?Z,(x5MXE' ο?|O- 5qv '>G^ǰx_'ڿ _{ӁQ}sT DWR-yX-͹ӻswpq.J"(-3,"-caϖ `ԍpCXV$S%_,8*IP %}*8;w!kW]W[i.{s+CfфQIeP2n(x/Gr_ ~ΆlőzLL@5 qzϙX/4+Y܁H -L*֮?F9Ay遜.ia< H$!!qa$h,nuLjU&UC|6.#e_!9_PG߸xJ~8\x({B2]G Ԁ4 xOJ ׇσv>fۉcE@ׄYT>,n28,Jw2j0.x;Sd&6Jon ïm)|4 (#o&hg$E]n8|S븿xZȫQh2"?{!շɸ 8(!Id)'yȖe=;A&' ,LmS7bmaɭ=%]єi5 3~r?gEV$6mi'8*xv~l%\)PD(9q59TSH%tXJ#f, [FҢƏ-Zy ~u~>=@!a&i\u7 oWtW`s!=t3Γ۷7U1={>=BqO ;)4#\ɋGOf[M0EcĺUp" ]4\짆hg,̡&Z+?HO٪ެڡ˪ϬE.;#Ӣvkb[ mR9+$4d3rÊW__/r~XyDde>*k h2BS5 Ҝ*{ 0Z 9c_y]89Mx]fB>ܲH֌4$X :efA ̯]jrXVHfO7~I[m._/9/Ѥ+ ֖\WU 'C-ep9@{Zw1D:'~m4 oy<; >]&FS3Eߑ¯r̰{ >Ɠ0v[Uc`hJ؞D_f IT"aa`3!KL"0wLݡTmm-@vl+l>V5DdDb5FiӒ}h@g9SOK.➐FDZN@xA`&åAb(# e2#LY]/@iG ,ƫQ5EG_ÇEs3Ho΄?Q1\0O3$8S?t>39- A NtsȋqrU)ałi+?]ZpfOm@;A3X#8uؑS̐sImoXrLKEF#\[q_*BVyPAI%lZ3H<ڂ1E&youMs~n 5&s|` pr|^›q\Zz-C86*Si\xB<`>sil,=sP,U [4/I92RS9@2 Jv6|FM5j7 ևB`r:|!C>Ԭ$J+V;|:G_A,4 ہ,tSv|ft? E9aȌ|;ʰf4qmB`qJջvUj$;gsKH\KTE[ϯʏ '{8gUZ(GwV@u$>lkݦ(Pi[N -}Akvܺ),<'̓s*Q, &cfm\Ns>F]x .îƖA9C.1cg%jՓȢa͘-j75XV=2MaWe{E_n6hS ( ן{EBF~'\uC&hٳnoĉ Sn@GC:4[6&8 bym|tMbY˳sH\j(kܺiSvNٵU[+E.}Ǹh^efov<ȞQdSi}(9+M j,q$wVx鋑!4Hvj\J$U"@km&#H50Ka|ZYa 8TXsvVl9\7Zs';N'=A?-e t>NZf/,C.S@IVDij;~rFwٯ6?_B90VƯG xS?؁ʚ<N#jm ):|~~ś/$\۲_.+r`y8j 0U1""?uW38Rf. »jŲt{XĚM99L}QkV-_F*v yWtuNVGOPv|ucC;&Nաcr=96Pښz2 b 0k8[p4SXP/q8B}ٗɫwa\ YLGKTZK MdxN(?mU^ 2 z-jJ-ա`Ld̙l*dE%EB/-RYWDnv(җ\ }`t./HqNWxV\i# 8-'XncfBV$$x/ %KP }¸u")=d(7& s$ziQZs̩a/D"w6\ʐw\ qmlǬ[ 9Q&m5ˢ>.1,pm}VOu=_b 3$,X';Ys]+pG`k}83ӮXz GP{wM/Z:RFq fk5kPٗalȴ/hӅ }̍r60 IR{tR_A~\#H71SVY@库/K k)KԐ mz87?_?2u8H2]!SU7$,TSF} ec}Iō!usYԙi|΂Cua3$mNz. k E60:R,ޖw{?őK9d[bzOSyQQQ#n= W/ QPL v*mWvO]ޯx1%c<"* YERs-FmZ|F4B'‹;,(.6rs<$B%%xV?+w*#6)ۀwrho7Yo=`\_^a5wu߉G"yCJv9.[; yQ=Q_Af)b{~}4] }ڽjw7O29+ZBռq%agש[Nx9_Ax"<@fA"Zջ!Ɂwjs95pk.q\@Tipx)/gmPe(cd@MJ,;laH5.SR՘s;b#]&*RjThվ݊ !Ub0f=JHwU76{Zs⛙[VQlbG\3~e'Ѹ7W<~^:ft@mᄮR\Lr[ ݁-C-h#ȋd %8KHE޵0@YCiN ORLr: P^Ɩ|I{(h+姠^Xhf8kU8;FNIc-o:tE9Y{$ϖoS1fC?Ptspoݖonɉj"YfөK6r1=1m4ǜxoNQa/:ƹ= %4@zy8ߣܫ:LQ [|FHqޢEAln *6P=E(/{?k!ʓRu/yWuVC_^9ٌ1wq#ҋ GY|LA3$l,4FчN,փ{;c/45 cE{B.[a-ٝ9~yg DuaɁ1hƫbcC?D4?73b.Q)bf*J: u~XL4Q-7殢jޜ>!d?6y!K}*ڛ$ "UQ~_;Mgw)@*vݜ/⩴\/2r&KpXe1ѴX[!gݵ&ƙ5Th`I]hsNfyAcQ 5dOix1 v="?BS[h.*snq_7}[mrCzC $BX<ի#`SwZrׯo &*ȭ:J"3eR,;}7VTzQ/ _ҐWXXQTЌwT}AX;'sY2"LO]MCjHv&:22gE2cVƈG!s Nd/P|AjK:Uja9\WQXd+ϧ~ױbp`õ ($=L$FD F(~!'KFD8) D]k]7[m]{R'X@{ w`iו{\_xuyȕ"T|{wSOSۻPtS!J$$!%53ץcqhac)Ul.j[QE9lHQM 8{QʡFjkt=:3}:DU6%_Nh n@^S[`?o Op+B=8 hZPb*U*o P,4PR5hU FjmUEY n2A"&dӇQ{,d)4\njVD (ƓtcYh&=2O%xc`d``b `b`* f xc`afŴB3>`0ddb@ ޼\Sg(  Խi32)xc```f`F1, 7%``PPǰѐɜy 0/f^ƼRADARAzzbz٘'#YʼBAXABA_o_ߘ\s?gs?'?y%P u3FF&fV6vN.n^>~A!aQ1q I)iY9yE%eU5u M-m]=}C#cS3s K+k[;{G'gW7wO/o_?аp8 9`(`Uxc`d``_Θ|ef~ajw? ;& xc`d``ſc]XL@"Ƞ+x51HBQs5T444֔HAPbf j(j0rhI p1&!!ˆιsA@"86 V6=O_7b2K k",2O!SKzMrFR&<ÑTc#'8."Ni̝[~mcqG_qȚ?A5{"ڒUE&纍1-n}ԽޚX>$c2{&KDҬ1Ľ6VI*i0%{ޕ2Z|`tGLcIEM7u;9L80c:K頹{2eļAONz P{xTMKA~V*"Azl>bA@$j^dLH kJ@/{(ΎhP+̾ϼ;3,A+rl 2n,KSx8g3xS x^xthqG2;1Ub`,YgmFjz|Z^ 4 v"=/ΊkjR*=_;ZU ]HC{#KH;ay~Ԗ~V>w8d_ֹ"bP2+qՇAO[5qCHzmRNM+\Anz苊[yr;gXɧFkhu 2B=^Ƙ.=*܁5ChN& [Jq0 SM-vM\17^ܾ麂~ccU}#ٵzj( `D_ZxTz5-zOE~}2SyNly@*oؓu졧$=<&2PAL>*DfPο\!Rq_ G澐Q-EѨV*@ u?^jչjٿ/R]xc`f F X(Dmathjaxr/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff0000644000176200001440000004564014005301544026475 0ustar liggesuserswOFFOTTOK gCFF D[c,8FFTME]*GDEFE OS/2ER`ApXXcmapFLltheadG036 И8hheaGd $WhmtxGL maxpHdPnameHNvϓpostK 2x`6X^"XYrd c۲qmYK[̙E+iիU-r7̀ =!\Ry׌gVkɽd$̼Fu-z UDܬ]UEOݧ_jz!BêEŪ%轥eUjQjN j^-E_-:#:ꤺER6u:PwuOݯPzL=PmVB [XsaΧKs7H>鳗ss{ۋw9hE^se uy^|%.]?}꧿\++{Wuy^wu 7̿/4|-cם u{wش =XPC-Z_}饟.Om{?9{/gsk=+/zOnЫur6<ŀ3b7}aN-O<|D h9L[veSrۅ0 v+$[/!`) $xml=L/8hXcW/@Mb.a$r"0@l|a Oj9>)XpۜVSo9M,\!jrk`i% q0<ڀ >N[d~YgN-4eexrs0Y|6t9oÛ <3g ;Շ#QB]b`t¶Җ5A7/_g=8r0#xxn˃Յ[;m+s4ݟQ(/6~xRXG\~N xϯnx@y:K<<`05MBs ANg?td mG.~pIWm0|3Tgau3iaز%Woذ!sp]g$"JG_\~<=Cvl-5=Lɇ3Z 0b-|"#Sr>l riVbE1ɸ0G8kr=DOЧBDAJK"`tc\Qܒu6Y894I*{cZI8gC E" j0w7(&h?3zM^Ѹbw'gn}#sA8J]_DQ$> ϳRSzkd&6?.AƒTn 1Rf9wn2W0[_ C4q<!.mX6{ <|i|Az mGml{ bl-FZ,\3 xg mCD=30MqW_q3k_W)`M>5Lg.8 vWo_.hII`N <ۍk 9AUhLV ;Cszl=}o r,8p$W_~ƿ:luHI>I}Υ?<<|߃|;=Xwc;J˕wGi]ۓkF'ymMc'ϘVdh!}k=lJ."{zaӷY][~u'R5|RqGJ7LG@2Faw<>RX5$JzH[fq'XgӖ [7<̭l`gh?t?![^O½'hp\aQj>|yE9\ F(p~g^E^O#pUx'ڑxybCW ka_@k^f̊h-*RjW %oHHQME>+*}E -Oj:u})c,'0”6 [CpF ? F);{gpg7?A#"! ௣pM_RhΑ8l"\mwƉU`A^ˋ!fTgmrJ{NP_f^vpV݆! mRrV_sv;L  G'?8]̏oޟZs )Kpرcv8?'y^l4öq}q! `ie\H^|tП]'Y@e,Ao){Qмٮ#\ݻx]h|H/$L jӮ\f!+xع,ЖQ.x:GoѫyGCnnYYԕC/_PwS~|t5rGZkc. vwu:]QMYfnoXi(F?a]Keӽ&d~8'5#{/@(>l{k@]jot6guA3#0E{O^;7IĮ9̑ڧ?\wAK,[8wb]x=Hs 腙<'vn)!d ؀aSH)@ -Gs"Zxg@N"D+}v*z46j{,7?z\T3|?Dd[: a8 (VPRYvPsZ8 [a|VD0;"<yf*ӦiП |P;ʪSSx9'gBI\}T͡*!aFE]tzaDJ]]uB,J]=b9ˊJy  S uikh:/lPNvkي"Q & fN_cfȸW2N`Bzf4;ȖC 6 eSKbvH@i"{|NyT)j ~IƇ7Ȣ*tꘛk6C1_#`|N=L6/seiqi]۸+xv1[@ >M5Qj> >)+DnHgL@i$Ji BE!ؑE l%>LlKg&WY%qH9Z|=?\)U]:VᴴYs=hR#7Hl3mn.ILA"[d۩k5l"B"RER5A-5J ikҝN2N]!am8S|!=ȈNE Ha"]D72%~0]ȣ~p!3sx_n10ȍ A1|5&M_D5L$ý~d&]6fzoV9>~ #Aq_%8y;㭮$vk RvZ(p3.IJ(v >EXL 4/zͳ@ӗ;%KR<[dVQq{ XɕhqIL o'/=yv fG鈤YԜvpہ2ss5xqtB$-}Igm`0UBp~$YyI80d?_1sU(2L! h [eIe_G(ߦ<7T@7H_0ѮмޑK6y>؍!bFf}aOT9*.Dl YA[D\k{MnY|ʍȵ^tg~KJwٜ+p! Z 544.&J#:lG}7Ek"'%טK8TߩW^vfUC=ܕZVqYknqqm.*E)jiun"XZ›qpku<]I*CN?j*E1Z d~ H)$ĤvtFc)=}\pJF !QK01޺wۓx4a9?*c(l7u.a+L c~+O>8yUe1v|J~]dɩˁ%FdMpWឦVg\ߡ_{@@T[>:5zz_ixDO,L?BѲ-eM҄Hӊ7͇" *[V"bHp9 g'w /o\\-"-qo^WXl0C-W Z$HK0@v,\ aUkrXԷ4wOo+!]il+;np?_qZ=J<'+l,}OFەNՃaV"m _[pm1[vӹ\ Y/IB,GVZהoZU~k&>GFDI-`O{yc1Ļ}O֯|NX t{.3$|01r@h M.'oڟxh5eLz .̫\_1|9mFcnK]uc5 +ڕ=Yhk`/tҼyZ ̔CdxB(ԳR{Wc qz5u3;8^ӛz։[ڠ5mil B|~ƃƺX34v`f yjaC&p[,[39cs"o6` ҧ#N3fwcUUzBVn$rAiehi,+//@Q$w6t$Y -ն"°ʡUmYZvuCM",iC aP,J^Byˡi(*^jl'0d$H$UL^~:{sd*̵6nmNwGF4gFԇf}i_wKnHp)Dx舲Sʋ%4 kϥw eA-O̓hȧMihHłIA l?5#GvEBB9t(\3p5Ys7cYJ/W'/"=/sғW?COunCrn)}vO?-͍6kyyÖjggQ$[}\ 1΋P'ĬV@#]&kESZ eJa&6?L -` ;8 G')ߏ([0yaLY3Z+ݛH+46w"2(ajiRZ]U:)j3|Pu᩟g.ڴbrxT$%5ku{ ȧS{҇P}O5d] -حkjlǧ26za"p.-&:n D"5#%'ώV?ULEVZOOhL;sЖ "}C[h cNg+0%3o'D/ݵ#u؟yEx#fnRKpؼv@i ʥ DDoaCUA-[GF¡Dt#W(Cj|PFS#64B֨ZVUV9]vӠlt~GZ|Adzoϡ?kJi]m;nÙF-zœWO IǙ]>su;ldbE:/kkI#@j8}E%GqDr\@~ηvvM΀Qt0/ӱ t>Z$.'j=-nGsAtͽEJe6M:kTv*RX_k"Ah`39Yxwn"y*cʑ*{:˂'DžadXQqLXqJHێM5%_7FOu,q5 3\#1 A.t{hG4َ& .DA/-ZcBGsdfg˯h/9;\.ԙ駃گ\ "QJ߈&@㼌I>TE|N/[iq6a+([KH_u& Ģ;۞64jow$6 _ PSGNmwacY7y/&3g,,qXn)]ޔ4QJ%#=hHB|ˡIyb3Z)cL+|pP٣qJ XN",f5݁DG$XB*4pnViH{lfȇ‘o\6~8r z5c::;`B+㉹IV%Y]6 w@6EI[kg=@_"yj@Ocޱ9>~~ڽXϦkT3 XS{Ѯ@ِcP] S* yyG{Ð my9qۇmt '55;ZV<52R]0VwxH_ۜfYW^n.D]V/"NiD( h.,]:QwcՇ^zNOFݗ[AT0+bEK uN$AaSA7oU-1.e8֕WWxY~6QO&u~DF饟!ʹVAe0&ϐ6GM|#mn3 B,R~ jdNߨ}i Jdy.D"Exw*L6\&{~)FQ=xJm3GL_?|^Ǯ}nz7->8D6Iƚ'J+ MvGݣfͧGԷz/EM}jL?$: xh%f qimz˚lCj9ڿc(8&k8ɭ#Uٷx*CnuA_!X&'i? Zz8rIU&ylU@שiؤ~xYDtlo:uWReea`a@jKΞp G"ą0s64=;JƖTBUsC˅ 6V97νjUo.e-4-ҹ5'kg!G i1C_癿a"(ɳ̋'k0 CxenQ_kD$n~ fڄG%HaXOi[zes |;o*Jt]:2iK7N-4sf鸾޺& p(/;ZV= n#;xG f{|ds;9D@^uDA(7 a(xބYT:6Xŀ:=ewy-Ի//=sځF!+H@dPf5'I٫[(L>K>C> ^V& `&8S1>4ì)B*9C(xA%@6›ƜGjFޟFޑ֟Zn/Ȣ(ƫ2H"_x/a;*#xK5|pkh2_L"p^+%x@Nݖ6̾ F Q5VIx9N?gs1ݵ(4κ: Xg_^kGK2g]f勀\esTH 6(s+|ULW镽ݼ<^f 2N襹 ,ajFЂN1J2/#t c ҂rCb8[h/@2N8y9'Zm)cd=B/&<+#c׌X0ѫWjnY/NGs*wX#\ 7z휜 +ab?s5oSY$(  ^ah-E=ԁנمn~9}Ӕ||>7!m|"m^tN>%҈U E u] y9݄\3{¥l=?7yCطk4 aL1a'm"ۊqnCb& "Y+\Ytq >$r'o4%+Up/XSnhN!thVw^3eljb_e5˗3jJŻyOx uz<}>7h>+cˈJXdvj9& r^ى[b\C X*aPF@>OZ9omک);ysC ԭ2WE/6ZLejWG=KA>֜Dez2R9`amczx#4J͍btϾÇuI=X‘UkAlvW5?Zbu񺅶O9׃[*Bu:Hը`/aWUەXm2#{E"3p\ xEhu1 B&B 0c}d1`"(>];KvRCii'a E+אa6k׽k Fؒϳ^(҂ (?́ON3M=sQ{JWAҶl6-F,`w=&4OrvxoBN=Z 'Ŧ} ^"|B)b,q:Kr y>4JytNdVB~0+Dv+U)"=~@/UԶgPXMYx[\Ygq4-V $_>UP'5ڥPrYe5;67LOu6`=呿-9ixU%!4 GO|[4{lCB9'(ycc%GkǫiXፔˡTs=M{Kџ`E!)$|ZFϏSU340ѩp]ee*nbp s=g0ᛕA[)Ra,a@҇? +ߙwc,9z;'2+N^;bGFY!{Ůn)G{ ݅#H\ٰh{}z:aȊ= Vψ#:';wK=mj/2 B$;$, +#'! sߞ w_HW&O^q^Ǧr3J-*:ldآh" l H}inWjnuXVDj䜆hcjN*J:`oz8(`qN ѕ#/%8ݿD QjO$"TWWdblc7Aff"196BRHIbLB\ .l+</OL w$"i8_SWLc=CC=DmA#T;=6jyVO7N9<L|R[ VVz}ܼ]'/S_Q iH5ǫDa5"wq{ɺD Qxc{Hwkw,%ሻs 3[YIސỹũE1:}.8H޳Hkɜ >c;]_%CJ{ݚƒjSk`=# :1dvn'^ oLڔ>QLQ*2CxOs>>hM$Fokܯ7 2Ze' .) /iN1F9WZ%a%j?`!Hl3L`17˗DPAq 즏h&/cn ˁc^_x_N?/H;j[[#uq(?GҮ4ԓ&!lk5:M+( n=OOIkc;_n<#J (8#2w.W݉& tr+ {y5WW̟7AY! x(4uƺ}m}SqzWn)lzЃB &};ݶsVLNON1-Y7@UҶSO,Z ,t(_% nvs]Ve# Z AScM^L5` {do([`K hctsw5r(#VUA$Yit7tOY[\eg uˈa%J%l@2gdFFyފ$&=4섎RXMyfӏ|bNx=3.rڝv.Wzn\Q(ŽN+ȗ͈m. ٝu_ןtQyp-)4HXT%nubaP(ܼ/dY;l4My#1+Wi]Nӑ]=?>Þ^[7Fl`HVd  x)y=.Z\6ϴ٥J=:#)-| *Ҫʚ-2XU8Rgx_?J B!7;s&>!9<ڵU,N- kWs yT=]x?B_E$x_Bʟ:>jWЃ|!GFa&\ߴa qZq8k2"򊈿<c#T5/F`]}|\N~';ʆA]f[yczsῸX3^EYW1i}c4-Z EEndLg|+ O4Y/_X*v0m,D .Zѳ}滤#Cû}CODE77KMYɺ][%Ѻr6ûyީ~ġcpFʑ}«~l|s/8fRɠ:1U /抙ZK{/齜sqڕ-7U3y^O嚶oوY^5eBQc/v{T 8jΪaw!㞺OsH#Ec݀+P86p6\.< EGgsˣ*e^;8\ = ۇf7`Yybo=ɗr ?WTslt)ɬ(hsCz@GwIRI&K cVkWW]Wgg n џD'>hSZ>,zn9w-dRv }J&3%dllYA޻$ǟoUJֻ7ILnB8GoYUYnx1(b@AI܌i30=uZ4TN]5;B t0kK4I7\^a,ʘZ&IjĜ&$8?"xgSG#R 9KG>=iri!)X,N<5bxՍͺ7&/i%&ӿKɗ{KI[v*ՁaB}m/~(I!T F!LbKdS~}i`J|\PWU[/BXѻy# k4?5=b\k,3W:K ; M(=Fja慄e+6!ػ?h `D+:xJ橷(=o2=̕'gYfZ`^|x)PqTsϒRw҂6[2= K s~H"ps&cy ;#]ATC ِ⢾u%=^T-ϐ3Ǖs3}6Iyi 2 %#<+ՀԹn\^&0wKD1MɝO2uޮ 1A{$ꔙ z=kUll =S!} Ik+!J 8 {h9Y, ^I2G+ڛ`{7j4|g~Os3T|͓ٟ|?o}"?ֈ.q1v9.i<<\{rqaf`+ǐ0#swuWeWc{yoV٠zz'>5*7fvƟ*qҪ#ٳkÁ7W=~vn w֢Ĥx[̍ۻOOi /I̊HuwEͼ~7 6O] 7a-g5Tv-̫:4k+o[Y,Zs9JBck:#3w2=2O%xc`d``b `b`d fxc`afŴB3>`0ddb@ ޼\Sg(  Խi2Sxc```f`F81, $0Oa{OϢ? 3?3O?yR" 01T&τ_@PHXDTL\BRJZ"/+'o`hdlbjFC vB0'D!xc`d``|ef~aj4Y& / xc`d``X@" BoxM+a{?[ ;޺ e@f:O Є/ )d ;Ä20[ R<~ko>H=%!I.P|]]y4[ R!S*>C'd|pƀ|Fax#°%";z2N¦r_vʟuj=SE~!Vd|M'+xn*c&?γD9ߖ$ Un{+̊mE:חI+=||=~Vxk'I*.Х{O~ d=NDPdxTkAMnPxAZL6?P %)*^v3NMv4i<7xAoKx귓mko޼7Cgƿ"^[`,B_-g8/-cykq([| =^,vwOQG7sx-s/o,.9y<}x6cs$P",P᳂AUHMlQVM=`#'j,ZRU)SՍD;P2 dQ4:p?;,Ȯ9c΀m[8ل¤u7q&qqҕUD]\\\׮}Ae)^lW*2IUWZYE33Uo52BY}ÞyoN pmt{rq@rumhp#Ƶ6)q(SMhwY+i}ܚ`*p}ϼ eyU *}.⛌3X󄺦Wz(Iɖp@_\ẨsTz+^{h4Xqi,)"z`n*Vo+ݙ93;۫zoeɽ6^HI^3&$%/>v{9y{]J3ko\)屪i5 Y ŊSge9[+_~%˕_tBqg^r˗흢]~Q\g<*nQܮKq◊GO*UqWjӥ-ȅ?G{x-m7\类vuGny7xS巘n}6w;?k/{w}O>g~G赏汭N}mO<)=ǧ-~5gW?k>cgg^3sìulxO߿Y|k?x&S?Ycҍct'ɡO.)H/Ŵo>?fK6.T૏nz7c& 94 be#Z92ĩOEA @W o=_)|aV%׀p^pVe7wr^W r'a+l^aH') 6 xE V˪ ZboȮVNb8ጬղ (/Ǒy؂xnU4 @s ώLŕp3<9ޘE,^^.cxeE)m;ĊAcu`;q}mtn:OͺOz}_Y698'p\ov sd8ٍ8]>Fp s0X' jv̓ V֌pXsa C\Fuc I֞o,]k3{l\Gƿ>/T讆pB_{D7ol?|iqNS[Nn}B(b|xxWyX8 <~#@&Zwy>[j+V怔 hZ|otv`{`,7r2b&C|G(m CD ْ ͑n-8;i^lݲ>f]17Q7m{jC B' g|3`I4AmCIgڎt^fN% ~'':Sô !Ez=σ3ߝ>cKthvkx[%JX>J=-#͑ig? `́E18\:Ysu]`Gd&}l.8XEX:s#vjn>/|'s*x>%t|T#5X1yc=DU=Rn~'㰞݄9&y. zxQ9Ʋz%!jB›a_.I"Ρ$brs5`/MGE]QlU|Jqp˹R~TWG;?q(;zl]LNNe`@fEA d}, 3bX$y:"m+mVKwuI?E7v|kP cK{U~zj=n z8QEx ;D? {[BS`By٨aοQҕJW B4H4%[s77P+X&Mh8LKJ7'>*2>mtAi~扬wx6Vr ހv5CC{i9N#~Kw.]Ƴ7p8v *A gj|u2w0i~6]>8㖘Mt a|bgAg6T+]up{T2E>n{^KdC\.7d׬8RK[Dɞ'L|mi/ þn?PxO_vî Bu?쐓3dR.`4sN׳۴s*\&8 É}ٱP ΀TfP vѺ (y D!' N8 [G~Jo.Mgftfxg{ 6 /Bwd7A9xTq hP } Qo.c3wCq ST #;8$ =QY_ubc k+ !Lσ Z-u%~Gtku[;H_U^޿}FhZ^ZkD ?@l0zujbsmAkq9#ʬ䁦PMaP_?9)t $+ | =T e9{v1雟tV|賟pͩ^Do]1FܥF>hH-PӴD^i2tPKtq֮wpw?|Q!*Ĉ/.{];8BLR-#x$89QT9AUW5ظql.Z>u/=o;KOo#vAtu06$n<}+fctc9l^@o}e`{~v: Z& Wu,~:#F̩ݛASTkȖlDTy8Yn?BwBBt"c qLod{2_JȆ\ vNuTKw/<OJ="2b@1W(OUdH+^9E5jE>w6oD]ɉFd< ߗH.ʛ4^wRλgH?肎W £ څZBv&%?LJj3h?spV %Qy_eN"":̀q\;4q},'=A 6ɧ~ mr*G "_-EBhl1ՀHt%Z#zHwv7 G^tFAtb|@66=8̭E`"KLo9醓g#žY݃Kzv)ykɓ<@ۼ7?&Df,j?蹍vZEhX,P N|`߳cQ|.#C Eֳ<'4H`T,^ϧށ!vf ]~ubXGs:yMӫ~[>_"uCR${.UMFt͘;92 ʃ%`}8]F}2X*B<ϻkYiZž$-(K0n8"Y U(y](AŷɷCv\V?> WaNDǥ0dzЇCV(*6R*`)<Ie"^]d>b,fZ;=&g[lҏUC=#"XvUaZ*d8cw7Yr*sЀNFrWBmY Ř8/rC;fr/X#^9=wAUtjfsY4̛B#LQ߄N7]"r!7u4?&Ϛ^'uTT˿r`7'`ẁHA!nwSUuL ݟ[tE큌//!nM"%J9zd:Oĝ| np+" O4$&r; "i0D"$hzmtloOG74((4iaӚX;Ǖ zQuj¶֑޶ ;IІ/q?bdqLVg'Um/[+Ee !>}VCշV dXpn[c~{ԇ׻j-4tksY8g⼜;iz7}E6z.fjʆ;6o;=K$z.Es |l}y/<qʾ q(HTU1b>3"/Y_T@<߶ҥuѨ5Xa4v# c 5voG*><,KΖscʍ2:^EcN U{vBbk[e;3ŒɆa6mRB-|Α{0[,PK*:sw@߰3s u%X_3A装t ˘^wVe%k"Ϙ| aULf5JBe ]*qpӼ1f׳#tn!(ɆlZzBpzza#2e=,i nmJIᵸgx 7ޝE4"c4mZt}ȜvABôNRkmw:W#[RMC(CU]-r^%UK)"^Mlڂ{67ԙڼcgG](9o"}<ԷHyl5ZH`^ŏ!1OSр_э_@^hQ]8mxt[.l.!unހ&gaN8vfgql?͗X2&3"Gdc wYՒJC/ə&Mo[;oL9]6=27,pw2.i3u*cYUD8k#mJVADl]Շ/p87>#\}Pz5P0KZp0z5ҏYBxu6ʝK~"iw5DZeL=CĥY6Sk7[P@=9Nyq6z1C_I/j;SZb}};{S==-V_A7p^eÆfGcЮm]cd̒:qgb5LI"RJw6>ZnFQC5Hҍ=quK->.fIn[>Ie77GZY)| =jӢhfdmڶ<9W(5n(S/h^GkَrcN.$DP"~s#9X8n֣c{|tHI ]>l zZN4%dN;`8FI S>̘|aW;sfOA~-}JSп}ݦ!\c₂05Lxj9+% 5Pq~Vd-KB%XYsG3Nk:Ntъ@-Tѩ3VkM 87¹Lkl(_VCܜ%mKjz KUSWwos|r7Bɿ0+/l,[,կ Njr y dr ?h 5FEmKEN͕K`^z/BNxi#-@v:v9BP, 13G#o7Kpm}[7SH HӁf=_2V芪z-987QR19sUğݙ1' #Q uT68sl!W Hzm_e s*[`l GE:}kK<ܚBy21A 9<lրJV߮I A0a]zȷF(m[AGșr[jJ,_3WXY14R3B_IʥO' :Krz\ +ja5Է& %&{c]e. vsJKrO_"Cy0Î?!^e#leޒ҂e`Akgcxw@k_da.e?!C.뫮 .cCC]Rq$a6azRզ08)L6/ x-ZQXPSVjH>KpnC1Tk:KH0fE1G/̢\+#|kp}tcPS{! X7C[tH[QW԰D=sQ4v?;TV <2s0@ zK^gz ?TCܞ<.@]F!]H0L;RJn˸BJhz{Pӳ5kVke]SadL˫@ =[b[6~FoFzпppLs,ZV E "c'rkf,EJ{w@I04>\.ɧB_'JBAjٮۆl p{mr@> xjssV~z2Bo} SfkIt!0o8!>$qK6?Sa̺{ebf-ֲSL W |gnzV7=?zҕWrN<-vk ^+?s3Jdy}m M ޢOnjw[ߟ8krk&jCm- !߀:g}~M BD%Tlݵ}Q:4@^?m!}h}s?a nnsUI|Z}!\t]b /3E/6N)C?Hcʶ˹,6Q=e-eրC3P f[x߃^ x'/7]d5uӗLLmt0TGQ9]Gx"HDaYb>}!0+wALh k۷yD\|9orV>fa6 qD]]h=G z:xOdS5L@$l=SNN;8K? mgg|6Kgm- 0PՄw]0S&/}=z=3?I.ߪI xLjAZx2 uc=xOnñ\GD' fXǖ xݪ6nS^}(-8;z^>InЌ8z;ubݑOI/z5 y}{P$a+6[:yݚ_>y#s,D&(\qڪbweaY.-k\9*Gc}t.ҿqwShг eWRu0QK+skW-0 AX@UU\4z5u׹dG⮿TM4B832NϢ= S-Q=AJ2[/ҫ6;Nf`ϫGs{s KM|G9 ( *ԓ*Cj.<g弜id9Rk52Y[Z8/;$r(?#KOSd,]bXnhCD}_6v`< GXWj vS>?/ |.3"S2tYp$R sP "nPK݂q IN&{r8i/+)5`t"3alU] A^_kyN2h^^]k[\orʕs:f>'"a @7y˜i'b/2yX6SHcRL<: UM ~:A~?#)G6#OA@-[t:9}䫡 πx7qByY'k 3M a߉+r!/| 8 .AmtJa Iq0Bu܃->|fs4WVҲr<w)'塳xH o@A͏ }gAg)Sˊ^E"dn%9#͙rbbƫN>yǙ*Lj iT͙(".M, 2]AR7c!3#}ɺ8t@pa/̫z 8_}W' z'@;$ t'F}'vK& ۠㷠qkgavr 2:S#=ixd򒚢e .˫̉[|f]>w&>zޚEsޅÓwv^w^Kսgx}GWw?oA5&[\q']}TG} dN,̓/p|W~jlS8L6TZxnM{D~ i{lk q>oY%})1\)n0v8ZI#D jKbT"Yzg9Z͙uN}+ﶡZG:@Pah>냉)^PzF9TX QZKV$-LC'DVKwrMcBv+ˇeP/*zC:%2jm ۆ)=@390dk\zapwnQq q2 ) _A9sr2@c?s8:nNןJ] Gh #ΪGF{ML:m@IّuO=|M.7IFqG9A+c*n%3"f(\L.9&B l /_.B~N}h}Yv]7Ͽni!ȴyTǧ# '!zgHڴ~iX:n f`HyZHSG$JGQZIˌbq5⵵EKL瀁wtf۪>Mm:99, "82*nNGp-$ݪ֢fG #:üOBv^kͶ"cdm4ĝtz5Tm߼7ЌhvukqTe"#ρT㻥@92m %4?G/twGV]$Z:: <Ai'FG'hg);;7onhv&$ghn5cSz>s4Fu]w=|o z鎯xx/·|oeǐ7yA\v,I@cu7FSןazcX:.l4Otu˒R,^$| Q# w@ߡ+YiXN I1 tlEn>) vќ( ̓.Jȴ<Ͼ+߂[ @8k v6>VmP}L$qoue:܏KWT+8ť#غwq cmK 65#$1^,x̀1bz8?-ǎ/p*ԜSPWZ[XoKqL &r*zo'.w].J /&X3L~^>p|bXjz\z^CϜZRIS7TE-NXLӂD+ݔ3]]S&_d?tY7k.3iz2Y]9{v+7 i0iSE #G{{菓rDexppEWE|4`kF L{Q EdS~A3Oi~6ؖhucR"uz@ÏwP$!T&W;wuN`wqXHc`Xs^&_!dcZz4ix!6$ ʴ^~tF+t;&L~@-Dll":e1N34`ZS1,m윬+2h#5_ۥ.;QWdrY`im'9%^RҬ"MXMZzyzƬϨ%&v:MO/JGw3Z05N^_% q3Jsd4MU!]`E%*g\\}~7k~ i*qs4eE_jiKϯA__c(6d f0Y]>w4o ,MFu=U1 U A{EQz/JtM)YnF#{6/CWp׏` Um AVEj{a6 -z"w"bW3 j+t:'s42h%sljZrm盟C+@V&Z%MY<=\+OЄ|Q> p>i@G|ST^(,| c4yz#}f)?J/wjoɃ7ꊖ27SM>Lˠ'pk!C6 $+j8n{yN7O0>'v>UGp5f:vkyKnw]f˸CR٣mPX( 䑞%we>fHDXctVR2->}LWRM=ԌĦ(O I\!Uڹ%=jQّɴsQ$r5sљ昞Wkuŕ BÆ&wEz'ёhOch}8y9Ҭ+w+J2/XM`~ {VNgbQ{/Qæf}SrZ!m~HJh16Sք RmHqWi)-ogpnXZ:g©]6aW?>q7ӳHؽ4'685}{l߾,ʡ"|0AMv"=A;a΋rz۵RՃH_/\0ꛭ+V vغC'`g`ɹCv)t5u]s~ Nzr̡P/T`=u-@}>"|zUoHÌ-Ԃ "9A~۫t/Ji]f}Ҵ.;R֞5d[,)^Rwf+Bva'X|Qf(( uuUȓtCĦ7EA{M tiwsɊN;3"x,L.-k& rh\I!c|.ݦyq6B_Wp l@|]tIOMUPe5z|m~or<;g"պZfT5x^'6_״}?^Кy;.cyNa+ OKwGҋwicqg޻N r5\>;@p]~;o+d7Z}C)cbRrw<BHrb_r^IW#J'T=\7DoE" !_{jyl!'xK1lLcZM}}yz$" <,o.9caFbPs* d#y 1'8@vn]pժ\E-^}J/6Lc,C;&dsnʟoD4db09U tKǦlzTsIE:[%_ܓ)頻0y6.0v5z涖"}uťF[[uvYq^7KV( c;㻉v,[>:բ,c11X!=ىZb:Xֵ5 T[Oڶ{|⋳l%aL"81IL0^Ki[\w ~(VO'JZ:{;7(5Nn)yY'8<ΥB"^N%/.qab>g7|$ ;U%,lv ##Tؽwۺ#86]ӻ?q@UG㻿m̔EڦpAnoiil2@fsuKj Vpƪwo|3,. ̸\oil149`>w("d01.z5гavz >Mm-%i)AWM^-Sqp/^ܻ;WW|go0|9~ZiGc'G]hA|Bxd 8p77dj֩i.[fm'ul]X9 1,۲+볋!WG9۫B\=2O%xc`d``b `b`d fxc`aZδ H30@h L HÛ0~@k B? 1)001ufZǠG xc```f`F81, $0Oa{OϢ? 3?3O?yR" 01T&τ_@PHXDTL\BRJZ"/+'o`hdlbjFC vB0'D!xc`d``bnx~ /" WcWm_`9t $ Y xc`d``,@" BxPKBa=߽ &Q>D-BiA4b mM% 5D AC64EI::^D=h -IAv5BR/#Hn0wbP3d}y5br [X^$G2 5$1,ᵤH]Đ<˪%!njc@.Ӱ4G>ehg/9{:5[Ka0"5e# /}?L %aly@Dc> 5_by+Ky&P7Sd>i0qe]FHPdxT]KA=R0 B1`@$*)5#q7쎉}cB@dU!Ιw=s1Lx鼰8GtZHoYd.j{FԽU;b,J\,ŦLT;aSD-l{>CxÛ9}lZ&Kћ4Gi8'tSxF}C7C((nKQ" ʧ [*M#hqP5Zs#?YEN׳Yc\z(U`߰G>RA\.Ym ?;#npJ:]J}2ׇ _?oHp\AU=>vG|۬&: <Ů 5Җ0Vb\*>ԓ{R,}g?k9t e"l9Ď*s݃@%XX xdpYؒЁZ]ve8pridv{G)_T+nuR($Xuu%j.Vc#[JLxc`f F X(Dmathjaxr/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff0000644000176200001440000001253014005301544026764 0ustar liggesuserswOFFOTTOX CFF WP3FFTM`]*GDEF| VOS/2M`>Wcmapڄehead36 7hhea $hmtxu||maxp|)PnameopostD 2xW XS׶>p*U6<>u@[DՎsFD :  32(: hoն_ﳾj[)>a޷_/ 9{k cX}deڳ֦R{9uwlư,q#.da"8엒;.9"'g/ga#FʙF1C6͌e0&Yìe62L`3Ō2uL3g fŎe'f. 8eޝ);sSt8.nNlNnFF2]3=%yoz2uwvAq܊!X9 "v A ؅C?ˆ`y$,Aٲ!3qÇ+ a^W;M9nZqqΉ25'}w渵)驙)3ǭL{{b&<NVW8Ϯo4J FقR2DN"K4d>y~2@6!KZ!MI<,[&rLOaZ(lEo%fsHI"Ny1)#%6x*<" J›&d @ji4c12lr50^.UPUP ePb4M,("gGst˥,VvKZnHpb7))KN>j,wXX3lzePu%e8QF7Byxxhq'ݖ7$@ksdZ%ccPdU#MU_y+.]/ XoqqS͝[k-Z~^}y1pZ0F~j:S®[7BO'z34zun҆)1{c}Rڪ#V N ~\YvT.yrƜK[N-,$Q a]U\M;P$JUbxGcV~RJƮ§Mٖ`)xՊ²2;@<ޣ5-[tlHxs@~O勤>ժ]u3+#Bf%zuW3jw /6MTlUwwO ~\szMfDwOX`2C8Jvvq9Yt4 ?G FsޓdM*^[v[8 ?9wQJ{ax@6{$8A!6=Dҿ9yE{&31qA+m꾞ݐ+/{wuo)8Z5}ֿ_F7]}q.xy/(&Mo@8kƋ]jmVau-ѩ/7z<2vW-Gj:bW&MN]fvnfֽ S@`;IBJ-{jӎ5T;`'Jn֙qREl'l,3;- iK &rh5Z hG߿AV`!/4\.EC h<߻'z.4V٥Fͫ$^$g@k2ՌgVݯ1R[8V$}fMIgp.FO3A΍6ʼ* P+6(^y0.bk_Gx r*I54Cm4uu,4`IgaH| &[1ISBq!tnDBqk̶2_2!? rhyu8+dDR:-e~+VOT^|p/ 6e&jz$| YO']ӀyQ(2 Yў[;8Me8/y($DÛU%UTǛ^BkWI0`^D^NJy&tثlݿHtY*zٞ^сEGAy lR$f_osfG@4Tђ/H#%}VTW)C d_-Yq#܁+oҞa]8 -YBGdR ʄ2AڞSpt98uu=up^wlOxW<'ypᯑxXFDX-q%~Eg,"ţLԽ)?GǪ&Ci!ii9;iPdL/pD|4=p<</|9HҀ7δϬmWoT%#;3VV0iLIHء:CYܓ}xާmʣqG@h9VT#4y!MO/-~nsx!_csPFVS:;d8=9f@!b- vZϘO[;Z]enuQx)rJ[*_. OH)܂p \c~M$P&$ |CPU8q{0( ?6 (u8ŋH"3gb"oyB?-1l*a 4'(|BTК\i;<?ڎ6'rxX6Qۍ;˶m-J+z!.prRkPczwB;PCߕed7 +MvRקP{u38M3)ZGZ,Αƒlr8vT-ȡ#{>uUo(3n&nS*߮V;_$ sg#_ -+g''*6"7P<'޹\~̾ _3n;ᅫnz}gWJ8"엔x~oOA;K/ђӈLYEt#%xD_]?)A2oCQB22iҼa;HT2Xi56I/X pqNv_?c8dw%@qZֶvSKoYd\`BQ @a=2O%xc`d``b `b`B f[xc`agŴB3>`0ddb@ ޼\S0( P@AN?@ #xc```f`F1, ;$5bj0c̬$$tX[(0hF#eRV:̡B/P_Y]pw 0xMᚼ&mDF6`L`Ys0p`*g  ڹy`,o3xc`d``ػ[|ef~aj#g $ Kxc`d``= d xc`)a +3k3X0`x̀lra~7  # ,,@u 9Pz:@`V9VQ泎FoYd-;NoUTb\)]N(Z' z~}'$V"eKn'-u%9=zF p L$$G:F:G;g&^ԑEML((x) rt9+[YFꅢTGp&<A(=JӇ-)ҫBuC~۴\N`{wvfk4CFF *;1HǬFFTM+D]*GDEF+` OS/2+R`A{X^cmap+*0>head-36 9hhea-4 $Yhmtx-TAmaxp.{Pname.spost1` 2xz xźvCOŨQ& l ) {f'3}I&JB@DY@DYD:u{{=39쫒^e_}«̨Wf1yy̼żüLef3 :&`1L2ʤ3*pq0^f.3?%RELر  Q$!^7ݤmO&>9'EG ۖ<2,)h~PtphQˢ"V%FmY81jQtXDm3f=9̞4譐;vҨwǾ3v̰ĨABbBF206!:hC$3ða"L??3y}yc93 5+_Wf5 Mf(3:a83yɌbF3c)2{f"u$f23j3dfQ}|a2ԁ Ebf YFYɬbV3kԱ$.1JLN^bX$VMb8$NKx$$KJ$2&]Ù ɩgҙ}2cgM͒Er}FD}~l@݀o \c$/^8i-5/_'+710zॿ˩~zٗ_yW۫o~dkrn< b^C?ިyϼɾқaoͶ}vhP~a>>6孬n ;|qmi#82vjdȽ#ώadWY͒f#mG;YsO#%GSHt"9':n#^ j`S,wv ]tJw Aǐ><~,S:Nz*pf`1L##Xj# YH@6 *i@?.SȁTuhj7[\v<BK{8Q+2a6`x緲= 2NTYSH/Ks]z붯J_kr,Y[%# ٵHd iFAiLL&)hZ%o'߽Spg!.nȻۀ$ǮWz iZ`N!jB䶱ߑ`kCSX~ |U2 e߉~@[yĦ%m O^`skA5TVV[rͿqC~9n[[,aj꩙ڞ9H-`D*P-)k(1峚71{_l?ǩO:C7N(ngt/`i fS`j6!&7yO ~zFfpdqdا@D=G^x깁6K=xbmOZ"wjsÿqhmdڕ䫸&&ہ?vKAkƚA,]{4pɞ='O` `??ğIٯZ_ as֭UȫUI> D65,C2 |#ƛR0{biSaFsN ڄ6 //rtYkl5.nyC $FtsyN[VnY>@-(o$SrXHd2>&cXlKƆҢH>g=x;}(<½PlzʸiHUzS=ކ3p‡Դ8G^÷|߁amYnMQӌHRm8up_89GbߙLuf:* + +]y{&!OqqdZ QlΝJ%8c`, NԩMQ4SDA20ɧc;NfY3Ԡ|Kx\0ƻR\㖏C|yT q?&ؒI OhyUO;Oӕv諼㷯K8<c*wRy&: 斘kP j,ڷ`n>bCIe&ii| 4Ho49qVŗĎ~ϋ}jrEm[^uaQp 05.i AK>^ԎQ~ݓٲTHf8G@">gVm<a2듊ٵ!EM[TjeN}Pەxz<} D іF[a,5$dƦE)Rb:.Ӏrx¬홟qqwnIvJg$-o>dT%A[d6b FI=>Pii*S.;Gq {6LoOſU0acF7'aWEHGǓ~M|>JMxyþ&:w3- B}A|Ӥ īls{/\2{턑ZĈ GTSh1R/{ @PR}Lek mr-ί+w9-.{Ra!(t)LIG.M4[L:#qfGvUwrURa=DSQj2 8d6UM{=mOOUcW%'Q*Gvz=ț?2lXV.ؔNG_,<ϻ ?<ʷXb)",zB< ft՛beFi!6^ƍ矹\a-gd^tArI3*ҳPMD^m@V7DPU- #ԙL-S+e ң{*\^!+go Ey9rތw928G-`xl?ܹ `:n);g{r ‡rZbQM/ra>at`Xi)\¶vt^'n rʩJڴnv^Α<"9y ў`7O!הkMrվyIT@u] 1 ̔m!TqZLttEv7kuƛI_KFQ>ڸ6l^V`,öK/t8V %~ ' _XĹW; 'V\p2û pM62(+]={wCYxC|m]ɽGjGIU8td+. G.I><[gܭ՟58}w4 BΝ_$PaJS\u3e b$ky¦y gP>Is }(F}TUx .Bmˑp;-~x&gYG q_t/vr@l66kQ]coqR $H(o_';%ApriY/mϲ.Ϣ&4;H&~cuA4 gK.jȳE'K"2~9`Z;d:j|H{W!0qT=7YrKzgx-rQê"RQPKջELwhF1)+p⸻^l3a>;^GяB~8tgq&,Hg1Zs:t\oe8*s P,f}qޓG!ҟv)}5*M/[̒VT=+hD YH>K^gFm u$ {HlY2[HP#J;x:Ag!`U֍a=H< {h? .6 &ǟDiuD ~VpIk%˧nX:%adN",,kqatqBEucR³hKmK1_p-ZU>j=JJMBo"#fQ$iL"x 7h~qT<(09LW hlo5bnt]xY(ƅ9p= ('h6.eMSbߜ.k9\6|¡pu.\ʩUn*)g4;rWrʵ^'}`>x by*+r~} =1?490rz@&VzP S:#oA{׻Ƨ[;d{xY@s@#~ǮɌ' ŌXg]ŧSD /D1@mLM˳t&xCpMuʅ(-V.ܔ]4'8e bc!WU(ž[{yzҭ,GK:sckRSD&ޣ/؛hS.5ڶ: ƼM1&C2 ')Q'3/LY% 6k,@ٲ$擬@I[ ̮QV$F;u| ֌Pզ$CE)w󐭞Gd$q95?6AH9#ksXw'䟁' ~Vw`r޾'pZ8 ,^[kqcKywoo-td[Ŕ% 1Los9ٲ{Eٹ2w/0!tLC'J;&.(WlЬ,Y.hw;'/T6EL|` J \8,5ѭp }~e6RS%2 ʩKnZSiJƄjѝOw #9v6rM P@!%gMbؒF1`kSIH-d~;뫑[&K1nZʣt9lZRRZSc2Ret=n8ul& $@4Lkx׿KoIas־d9C꒏ EVZc7am*>7)",4i4Qפ`o\5"_h>)'2*nFv*7c:Mާ Ͽ&OWs0{8MZ=>_񁯁smV^XU@cl=ֶ^|˯5]/UZrkW[VRhҩYS6.|kX4eI :jΣ<ŤUPnkBclƲj. 7cSNAf(YJ(3"C)h*^a:lHD=']~F|^hwu w8@~OXE$pݮwhl!7XurbTC lZ]I恃GiÅ'='KH~e.Xfݫљ1Ad9΅'iDdYœ2 ו{+OzMvgh){a! }>۞[w.6)O'iC^>?>>ܦc}~sRTU_Jc}RO\S߬Į\/dW~~shG\2pXM ݮ .‰=ey;:4Lpq_~;>s]tKK[rJĂG ΠjOPwT?>h3f!:s6-y\:5f{+zH,O -Be;)m''CB1^qO aѷVx nGn;l:lLeT~CǧX%=s_ M agj[+NBiDa0E*Ӿ7S6̕<|p ojeaEtD1Cͦq])u2P g)9 ?A1_WYV[\zJQ[]E4;NwI}7܃cx50*(CfHMY>k+-/26(c@@Ua ʏڞYhBPuX*`],DX96\Jxu7*@ciH~Up9J(dd 8u"• wbhG[hxi % D?mgZBkɌ~޴D/س@<ЋYX_Y5zmXv3_\!9ȲI^8ASYra8H]†yx*C!I,=)%_'3 s#|8ʰqjp%~: :H ?E&~-jc +pν챳?` oy5Z /AC.s,hpE"9(p<Ƙi4u:[7ĥBUDVEB\bԡP kQ^YaYmg"^J("`#h٩dUhDNlEYޫpȧp vEr@ɩň'&~s@_#͊kksÛ\!癚_&kh?ui&=iHyvKѥx/?-R@,&Vdb^jDē%=Vi8*Ly`k\RLÖF}"!qhٲ1& 8sP3-иQh~^T.'ʅO{O p\ɟ2_%=Sv)wK!䐡}`Fتgpϡ ٦ֆo\ n뒐.)i}Js;%=;tJ{ {wHOvJi\>RuwICm..ڼq4VzRgqclr"M$fOj͊DxRTo٢t^ݱB%/IQ1;j–m]R7 S}9QdYd 'oNHB T&zu9 RO#뺕c`sD hutJq^$Zmiٵ:C}}kΩVeY|DZ5"3S n2]^kUam/ c@^6ɳط"oܷVv٩~̀,d)E ZM0mJˉR$G&(2R4$Xx-4_v5%($ tꢠcG zcPQ2 J>+3~Yiq#Fݠ6$A Ua1SP"6aAm'D7 ,ʊ몚NVtvbJlԸ:èU* -]/o}%}b~mv0 Aﷆx$GIϣGdx0x/^xzW0(LX\  6z 5kO^eF3}%Wי2/@jp;"m)VA,)Ȍ A\r#uB]*s{JIC#6FNP/clR LPP`0ddb@ ޼\S0( P@AN?{f d]dxc```f`F1, 7%``PPǰѐɜy 0/f^ƼRADARAzzbz٘'#YʼBAXABA_o_ߘ\s?gs?'?y%P u3FF&fV6vN.n^>~A!aQ1q I)iY9yE%eU5u M-m]=}C#cS3s K+k[;{G'gW7wO/o_?аp8 9`(`Uxc`d``{ m2p30\]F 8xc`d``ſי3DA5wxMJA)tWDa**!X%QABvc-A`+}}$ XZR;l"zE3o~`F|c6BuTc." u;ɺ6Q%!qIHx٫sD Q $}ɱ&CTVI)3r,2{={K+,g;@JI"0X =5457uS{2e|Yo;Ɣ=kTz:m%CrNș{/A}07[zF8iP{xMKAǟլ-CО<H6/b(HJ)A͘I6agG=c=C;VkQ̲;}23!NJֲCdyY*:E9zYv?-/Я܂<=w_Z^rݏPvrDء%:<_,}XvQ˹_-/8?fX ׳HK;ʻh4SJHQ"JiB*bS p3m$m|cT%z2m F)/EW+zVMU7 T2e[qW$:-'ta!QԎ"hK"ցLL{ڥUvG=hz٘Cb|S@n9H~|-PE|`Z^C5e _{w;lLg&o>6YvD<&sm*ف|}1o=>|UhbzM=zCSGQdM-jcAפrB֋ӿոƸYC<3ENSpϬZ|T`F,m;^AMd#[d2GX+J#ޓZ&cHK08J'" CO2֘<;24ڼ3Թ=u(#O\cz'#"mxQ5LU/KDjm!Vxc`f F X(Dmathjaxr/src/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff0000644000176200001440000002260014005301544030351 0ustar liggesuserswOFFOTTO% /CFF $+rFFTM%dxGDEF$"&'POS/2hP`ArVcmapbMhead66hhea@ $thmtx$bmaxp`*Pnamekpost 2Pf_< 2O p(qxc`d``eG2DnP*xc`aJdŴB3>`0ddb@ ޼\S0( P@AN?$˴ABxTJA>\Fl~T"QH)q3fG6eg(}>B}/K@zY XR37gϜs愈^ZEhs-gs4K !Z38OGmza]sK+d%|1Ù1$z Ah;,J=PeEbР)/G{Ɏ2h5GT}0>|ϵ9XC3(Kw!Y6i6Uoh/ &EmlC[ -F_Gf0=' 7I'h'+FuhCX=Pyj^oPzRPLE ͛j.ԫ.-W 3Ƴ K4ξ4 }.iAK6R^v؍UvlGR-(jb1[@##%@(û[,唒V SM &41>/iE omL3YXN!s HtJ)W《Tߏ9YqLp<)Tj7I=PO4E Al5 5zJdi7z%{g$pO|B a"kv渴?#сdb &Pڳ/yبllD,Pr+kYj7X5*d䈀>nKC Nm@̯ߗ G w v Sɤ& *lż+2d({(.%ٷµJZTϝI~ݙa!KtvU?N8`6&̈́\ٱM]KI_hMZt־6/& wA?إ0ϸX^.m\H֚[Cv|¨S^W*]^&"z>nu}F5A%#.sLR;N30 !W̌\/2➣Y%ف=%+wRvNJe -.)C1c嫽UJok>SҒeC|ꍇ|aX[ zʊ,d1b7?w>S<0Vb).#+1k+K7?|ec+:_)ڽn$l3H;S{&éh ; ػ9`0uiq*: GE B/L˺J ]yNqx FՆe[\ Kp-^mҊa` B5<"W[|+aоwƄ #,g\耑H+v'hܰݴ'w;o(v`YǐS'"1> ,b8&muK!F2(A\Ɉ=6* NܒvA&N=FLGOdN ¤pA#\pՙ֑臝ΤcJm\Ɩr\낶h,Nurыy{_Kt"PO6ǶW7UN,ba BЖZNed;Հl`c`G  5lh +%<v ف=Q0 1s6yٝouLtEA68Tԑ Aak4c/ ?-xymBh;S,ȵtm'>?zBѮX:JwVJQj\zݰ{dR2b(<<ݏ-'.L9^>:`0o`|6̶>uB?'y~œFEB|a:+@zq۽+tVeě+2i8#Zo((>7'u4<Jo uECQt]L3^םXZ'uv- .;M C %|w\ 0h,7hijڪj5z$J)T FpȜst T3~b݌o,LZZ!f1 UgMKī @ mū-bѳ+0*Nqh#qs>֝9:6z<eiYo؛͔CjfQco}Y.]>|;p[h5jjScmWӴ;RQ.Ą1h|3=]Qtv;|C`/tÞ`$Q[cy}>>8_H]^Qbob<aUd-JӬ|СwZ19<?&NnsGwb\o !e.2)y:}8sE-3B߶cpۈ1h'=\mڔ-[+sR{ q_:%;QJaXȢ+3Rf#Pl󲼐lS,2DP.Ԅi27aаc {ɱr5KZW lݫWL] 3+W]dIGii7CZ.(T3JD{`?KI֗#9[DAeĐuA cA9^_ Fp#|B@@Ǚ{:FomNۢa/oTg0K@(Wր5L& n&GݽLe>-98AnˏЋࣤ0C;8· ׁľ㢍:3O>ܸpQA7lOZmHp]pmPl`_|s3FJ;Fxmx%jUv2ΐWa/' F} OG1;pbZ;wwaY|O%56W^̱~'g W 7 O qM;Q/x- ~.W4Aʪs9hN'W%\%>Xh3Xs2 ^7Fq;0: Zf|c}]o |Fi0UŹ(P^e:S0]8X3/!w<'em|~΍0xH[;19|DcXjX_wlPԠZĦu/g Ӥ_f [j 94(-:݁`2ssJ`qMʊ^yHT۷4!8VJ9؜9l9PaN~E߂L^B)nq51tZ&^Zϊ'm:p}R@nTiv)Q .9O -?fN;{9=xyvքkNiTmhre 6u0ݥٴ5ccc<;,e)tpc)("76N|c)qHb^{.yC)ananJn)T3`TCjkZv76ȷi79H3;C6QY`uMPAGȜPG3˻T!U&p v0V6;{,'Jl؆qC$XMVA(w ]>Mj>1u.7U U ,9$5=Rsw1M:Dqbj'e٬lLN]4 3lFa;)W.+@޺TS";[9\b{#jfJ=ڪw0È 9i̛yMPKUjrMlWѢ5>ucb_k$L;fWfK3Tދ[۷4!uR1u`\ 6>y MCBd?n#&\V<$1އ+H\˜y s@l:.q+jm&\y%>7Hcd"ioNjBܸNJ$\&W` ~uzR~:z t-\#\mы @=ځAo4wd[W|Z`ɮ5 G7O`g3ߏՀ6^RB[r%Fb‡WMϞ毅wɚ/__BxRnǀǞ֥놗xVUlg)6.iʄ*il:u)&X 4m^tTFm(w x>"&tfj3-vhj)+ߢ|\_%<=`VWxHYGUIy?섁L$cͧ܈j[.螝aI0ۡ*\\.uu raoQϊ[FQ btC¿7ϼK?w L  w{aCOCT\R 6}#^r#;' m5lc#dG& ^In\aG6 aBυ(|YAunQՏW-={(!oa?$/ $|C$qlcC#ŻXakrPDy DTZR`E *K/ُ?Dm8-"TM=B,cO3})/"1HvL0`4w;a,r{;,:BnF2b͌}r'Yoy`hNRp JB+;ؑl[$Ov0!oDbxx=؜R%aԃ p{\h YO<+ݥ3f!/WȯdLNNÔ†%W.o,Q.? Jοjtxc`d``b19&F b3B0 Uxxc` :k A@ b311MdP`gafff3130i13ĠASf+ ̆ E@}q JLE32H2ad:`4A**M:̐l#^ 2O pmathjaxr/src/mathjax/es5/output/chtml/fonts/tex.js0000644000176200001440000052714214005301544021754 0ustar liggesusers/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 56); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.CHTMLFontData = MathJax._.output.chtml.FontData.CHTMLFontData; exports.AddCSS = MathJax._.output.chtml.FontData.AddCSS; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.isObject = MathJax._.components.global.isObject; exports.combineConfig = MathJax._.components.global.combineConfig; exports.combineDefaults = MathJax._.components.global.combineDefaults; exports.combineWithMathJax = MathJax._.components.global.combineWithMathJax; exports.MathJax = MathJax._.components.global.MathJax; /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TeXFont = void 0; var FontData_js_1 = __webpack_require__(0); var tex_js_1 = __webpack_require__(47); var bold_italic_js_1 = __webpack_require__(3); var bold_js_1 = __webpack_require__(5); var double_struck_js_1 = __webpack_require__(48); var fraktur_bold_js_1 = __webpack_require__(8); var fraktur_js_1 = __webpack_require__(10); var italic_js_1 = __webpack_require__(12); var largeop_js_1 = __webpack_require__(14); var monospace_js_1 = __webpack_require__(16); var normal_js_1 = __webpack_require__(18); var sans_serif_bold_italic_js_1 = __webpack_require__(20); var sans_serif_bold_js_1 = __webpack_require__(22); var sans_serif_italic_js_1 = __webpack_require__(24); var sans_serif_js_1 = __webpack_require__(26); var script_bold_js_1 = __webpack_require__(49); var script_js_1 = __webpack_require__(50); var smallop_js_1 = __webpack_require__(30); var tex_calligraphic_bold_js_1 = __webpack_require__(32); var tex_calligraphic_js_1 = __webpack_require__(51); var tex_mathit_js_1 = __webpack_require__(52); var tex_oldstyle_bold_js_1 = __webpack_require__(53); var tex_oldstyle_js_1 = __webpack_require__(54); var tex_size3_js_1 = __webpack_require__(38); var tex_size4_js_1 = __webpack_require__(40); var tex_variant_js_1 = __webpack_require__(42); var delimiters_js_1 = __webpack_require__(44); var TeXFont = (function (_super) { __extends(TeXFont, _super); function TeXFont() { return _super !== null && _super.apply(this, arguments) || this; } TeXFont.defaultCssFamilyPrefix = 'MJXZERO'; TeXFont.defaultVariantClasses = { 'normal': 'mjx-n', 'bold': 'mjx-b', 'italic': 'mjx-i', 'bold-italic': 'mjx-b mjx-i', 'double-struck': 'mjx-ds mjx-b', 'fraktur': 'mjx-fr', 'bold-fraktur': 'mjx-fr mjx-b', 'script': 'mjx-sc mjx-i', 'bold-script': 'mjx-sc mjx-b mjx-i', 'sans-serif': 'mjx-ss', 'bold-sans-serif': 'mjx-ss mjx-b', 'sans-serif-italic': 'mjx-ss mjx-i', 'sans-serif-bold-italic': 'mjx-ss mjx-b mjx-i', 'monospace': 'mjx-ty', '-smallop': 'mjx-sop', '-largeop': 'mjx-lop', '-size3': 'mjx-s3', '-size4': 'mjx-s4', '-tex-calligraphic': 'mjx-cal mjx-i', '-tex-bold-calligraphic': 'mjx-cal mjx-b', '-tex-mathit': 'mjx-mit mjx-i', '-tex-oldstyle': 'mjx-os', '-tex-bold-oldstyle': 'mjx-os mjx-b', '-tex-variant': 'mjx-var' }; TeXFont.defaultVariantLetters = { 'normal': '', 'bold': 'B', 'italic': 'MI', 'bold-italic': 'BI', 'double-struck': 'A', 'fraktur': 'FR', 'bold-fraktur': 'FRB', 'script': 'SC', 'bold-script': 'SCB', 'sans-serif': 'SS', 'bold-sans-serif': 'SSB', 'sans-serif-italic': 'SSI', 'sans-serif-bold-italic': 'SSBI', 'monospace': 'T', '-smallop': 'S1', '-largeop': 'S2', '-size3': 'S3', '-size4': 'S4', '-tex-calligraphic': 'C', '-tex-bold-calligraphic': 'CB', '-tex-mathit': 'MI', '-tex-oldstyle': 'C', '-tex-bold-oldstyle': 'CB', '-tex-variant': 'A' }; TeXFont.defaultDelimiters = delimiters_js_1.delimiters; TeXFont.defaultChars = { 'normal': normal_js_1.normal, 'bold': bold_js_1.bold, 'italic': italic_js_1.italic, 'bold-italic': bold_italic_js_1.boldItalic, 'double-struck': double_struck_js_1.doubleStruck, 'fraktur': fraktur_js_1.fraktur, 'bold-fraktur': fraktur_bold_js_1.frakturBold, 'script': script_js_1.script, 'bold-script': script_bold_js_1.scriptBold, 'sans-serif': sans_serif_js_1.sansSerif, 'bold-sans-serif': sans_serif_bold_js_1.sansSerifBold, 'sans-serif-italic': sans_serif_italic_js_1.sansSerifItalic, 'sans-serif-bold-italic': sans_serif_bold_italic_js_1.sansSerifBoldItalic, 'monospace': monospace_js_1.monospace, '-smallop': smallop_js_1.smallop, '-largeop': largeop_js_1.largeop, '-size3': tex_size3_js_1.texSize3, '-size4': tex_size4_js_1.texSize4, '-tex-calligraphic': tex_calligraphic_js_1.texCalligraphic, '-tex-bold-calligraphic': tex_calligraphic_bold_js_1.texCalligraphicBold, '-tex-mathit': tex_mathit_js_1.texMathit, '-tex-oldstyle': tex_oldstyle_js_1.texOldstyle, '-tex-bold-oldstyle': tex_oldstyle_bold_js_1.texOldstyleBold, '-tex-variant': tex_variant_js_1.texVariant }; TeXFont.defaultStyles = __assign(__assign({}, FontData_js_1.CHTMLFontData.defaultStyles), { '.MJX-TEX': { 'font-family': 'MJXZERO, MJXTEX' }, '.TEX-B': { 'font-family': 'MJXZERO, MJXTEX-B' }, '.TEX-I': { 'font-family': 'MJXZERO, MJXTEX-I' }, '.TEX-MI': { 'font-family': 'MJXZERO, MJXTEX-MI' }, '.TEX-BI': { 'font-family': 'MJXZERO, MJXTEX-BI' }, '.TEX-S1': { 'font-family': 'MJXZERO, MJXTEX-S1' }, '.TEX-S2': { 'font-family': 'MJXZERO, MJXTEX-S2' }, '.TEX-S3': { 'font-family': 'MJXZERO, MJXTEX-S3' }, '.TEX-S4': { 'font-family': 'MJXZERO, MJXTEX-S4' }, '.TEX-A': { 'font-family': 'MJXZERO, MJXTEX-A' }, '.TEX-C': { 'font-family': 'MJXZERO, MJXTEX-C' }, '.TEX-CB': { 'font-family': 'MJXZERO, MJXTEX-CB' }, '.TEX-FR': { 'font-family': 'MJXZERO, MJXTEX-FR' }, '.TEX-FRB': { 'font-family': 'MJXZERO, MJXTEX-FRB' }, '.TEX-SS': { 'font-family': 'MJXZERO, MJXTEX-SS' }, '.TEX-SSB': { 'font-family': 'MJXZERO, MJXTEX-SSB' }, '.TEX-SSI': { 'font-family': 'MJXZERO, MJXTEX-SSI' }, '.TEX-SC': { 'font-family': 'MJXZERO, MJXTEX-SC' }, '.TEX-T': { 'font-family': 'MJXZERO, MJXTEX-T' }, '.TEX-V': { 'font-family': 'MJXZERO, MJXTEX-V' }, '.TEX-VB': { 'font-family': 'MJXZERO, MJXTEX-VB' }, 'mjx-stretchy-v mjx-c, mjx-stretchy-h mjx-c': { 'font-family': 'MJXZERO, MJXTEX-S1, MJXTEX-S4, MJXTEX, MJXTEX-A ! important' } }); TeXFont.defaultFonts = __assign(__assign({}, FontData_js_1.CHTMLFontData.defaultFonts), { '@font-face /* 1 */': { 'font-family': 'MJXTEX', src: 'url("%%URL%%/MathJax_Main-Regular.woff") format("woff")' }, '@font-face /* 2 */': { 'font-family': 'MJXTEX-B', src: 'url("%%URL%%/MathJax_Main-Bold.woff") format("woff")' }, '@font-face /* 3 */': { 'font-family': 'MJXTEX-I', src: 'url("%%URL%%/MathJax_Math-Italic.woff") format("woff")' }, '@font-face /* 4 */': { 'font-family': 'MJXTEX-MI', src: 'url("%%URL%%/MathJax_Main-Italic.woff") format("woff")' }, '@font-face /* 5 */': { 'font-family': 'MJXTEX-BI', src: 'url("%%URL%%/MathJax_Math-BoldItalic.woff") format("woff")' }, '@font-face /* 6 */': { 'font-family': 'MJXTEX-S1', src: 'url("%%URL%%/MathJax_Size1-Regular.woff") format("woff")' }, '@font-face /* 7 */': { 'font-family': 'MJXTEX-S2', src: 'url("%%URL%%/MathJax_Size2-Regular.woff") format("woff")' }, '@font-face /* 8 */': { 'font-family': 'MJXTEX-S3', src: 'url("%%URL%%/MathJax_Size3-Regular.woff") format("woff")' }, '@font-face /* 9 */': { 'font-family': 'MJXTEX-S4', src: 'url("%%URL%%/MathJax_Size4-Regular.woff") format("woff")' }, '@font-face /* 10 */': { 'font-family': 'MJXTEX-A', src: 'url("%%URL%%/MathJax_AMS-Regular.woff") format("woff")' }, '@font-face /* 11 */': { 'font-family': 'MJXTEX-C', src: 'url("%%URL%%/MathJax_Calligraphic-Regular.woff") format("woff")' }, '@font-face /* 12 */': { 'font-family': 'MJXTEX-CB', src: 'url("%%URL%%/MathJax_Calligraphic-Bold.woff") format("woff")' }, '@font-face /* 13 */': { 'font-family': 'MJXTEX-FR', src: 'url("%%URL%%/MathJax_Fraktur-Regular.woff") format("woff")' }, '@font-face /* 14 */': { 'font-family': 'MJXTEX-FRB', src: 'url("%%URL%%/MathJax_Fraktur-Bold.woff") format("woff")' }, '@font-face /* 15 */': { 'font-family': 'MJXTEX-SS', src: 'url("%%URL%%/MathJax_SansSerif-Regular.woff") format("woff")' }, '@font-face /* 16 */': { 'font-family': 'MJXTEX-SSB', src: 'url("%%URL%%/MathJax_SansSerif-Bold.woff") format("woff")' }, '@font-face /* 17 */': { 'font-family': 'MJXTEX-SSI', src: 'url("%%URL%%/MathJax_SansSerif-Italic.woff") format("woff")' }, '@font-face /* 18 */': { 'font-family': 'MJXTEX-SC', src: 'url("%%URL%%/MathJax_Script-Regular.woff") format("woff")' }, '@font-face /* 19 */': { 'font-family': 'MJXTEX-T', src: 'url("%%URL%%/MathJax_Typewriter-Regular.woff") format("woff")' }, '@font-face /* 20 */': { 'font-family': 'MJXTEX-V', src: 'url("%%URL%%/MathJax_Vector-Regular.woff") format("woff")' }, '@font-face /* 21 */': { 'font-family': 'MJXTEX-VB', src: 'url("%%URL%%/MathJax_Vector-Bold.woff") format("woff")' } }); return TeXFont; }(tex_js_1.CommonTeXFontMixin(FontData_js_1.CHTMLFontData))); exports.TeXFont = TeXFont; //# sourceMappingURL=tex.js.map /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.boldItalic = void 0; var FontData_js_1 = __webpack_require__(0); var bold_italic_js_1 = __webpack_require__(4); exports.boldItalic = FontData_js_1.AddCSS(bold_italic_js_1.boldItalic, { 0x131: { f: 'B' }, 0x237: { f: 'B' }, 0x2044: { c: '/' }, 0x2206: { c: '\\394' }, 0x29F8: { c: '/' }, }); //# sourceMappingURL=bold-italic.js.map /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.boldItalic = void 0; exports.boldItalic = { 0x2F: [.711, .21, .894], 0x131: [.452, .008, .394, { sk: .0319 }], 0x237: [.451, .201, .439, { sk: .0958 }], 0x2044: [.711, .21, .894], 0x2206: [.711, 0, .958, { sk: .192 }], 0x29F8: [.711, .21, .894], }; //# sourceMappingURL=bold-italic.js.map /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.bold = void 0; var FontData_js_1 = __webpack_require__(0); var bold_js_1 = __webpack_require__(6); exports.bold = FontData_js_1.AddCSS(bold_js_1.bold, { 0xB7: { c: '\\22C5' }, 0x131: { f: '' }, 0x237: { f: '' }, 0x2B9: { c: '\\2032' }, 0x2002: { c: '' }, 0x2003: { c: '' }, 0x2004: { c: '' }, 0x2005: { c: '' }, 0x2006: { c: '' }, 0x2009: { c: '' }, 0x200A: { c: '' }, 0x2015: { c: '\\2014' }, 0x2016: { c: '\\2225' }, 0x2017: { c: '_' }, 0x2022: { c: '\\2219' }, 0x2033: { c: '\\2032\\2032' }, 0x2034: { c: '\\2032\\2032\\2032' }, 0x203E: { c: '\\2C9' }, 0x2044: { c: '/' }, 0x2057: { c: '\\2032\\2032\\2032\\2032' }, 0x20D7: { c: '\\2192', f: 'VB' }, 0x219A: { c: '\\2190\\338' }, 0x219B: { c: '\\2192\\338' }, 0x21AE: { c: '\\2194\\338' }, 0x21CD: { c: '\\21D0\\338' }, 0x21CE: { c: '\\21D4\\338' }, 0x21CF: { c: '\\21D2\\338' }, 0x2204: { c: '\\2203\\338' }, 0x2206: { c: '\\394' }, 0x220C: { c: '\\220B\\338' }, 0x2224: { c: '\\2223\\338' }, 0x2226: { c: '\\2225\\338' }, 0x2241: { c: '\\223C\\338' }, 0x2244: { c: '\\2243\\338' }, 0x2247: { c: '\\2245\\338' }, 0x2249: { c: '\\2248\\338' }, 0x2262: { c: '\\2261\\338' }, 0x226D: { c: '\\224D\\338' }, 0x226E: { c: '<\\338' }, 0x226F: { c: '>\\338' }, 0x2270: { c: '\\2264\\338' }, 0x2271: { c: '\\2265\\338' }, 0x2280: { c: '\\227A\\338' }, 0x2281: { c: '\\227B\\338' }, 0x2284: { c: '\\2282\\338' }, 0x2285: { c: '\\2283\\338' }, 0x2288: { c: '\\2286\\338' }, 0x2289: { c: '\\2287\\338' }, 0x22AC: { c: '\\22A2\\338' }, 0x22AD: { c: '\\22A8\\338' }, 0x22E2: { c: '\\2291\\338' }, 0x22E3: { c: '\\2292\\338' }, 0x2329: { c: '\\27E8' }, 0x232A: { c: '\\27E9' }, 0x25B5: { c: '\\25B3' }, 0x25BF: { c: '\\25BD' }, 0x2758: { c: '\\2223' }, 0x29F8: { c: '/', f: 'BI' }, 0x2A2F: { c: '\\D7' }, 0x3008: { c: '\\27E8' }, 0x3009: { c: '\\27E9' }, }); //# sourceMappingURL=bold.js.map /***/ }), /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.bold = void 0; exports.bold = { 0x21: [.705, 0, .35], 0x22: [.694, -0.329, .603], 0x23: [.694, .193, .958], 0x24: [.75, .056, .575], 0x25: [.75, .056, .958], 0x26: [.705, .011, .894], 0x27: [.694, -0.329, .319], 0x28: [.75, .249, .447], 0x29: [.75, .249, .447], 0x2A: [.75, -0.306, .575], 0x2B: [.633, .131, .894], 0x2C: [.171, .194, .319], 0x2D: [.278, -0.166, .383], 0x2E: [.171, 0, .319], 0x2F: [.75, .25, .575], 0x3A: [.444, 0, .319], 0x3B: [.444, .194, .319], 0x3C: [.587, .085, .894], 0x3D: [.393, -0.109, .894], 0x3E: [.587, .085, .894], 0x3F: [.7, 0, .543], 0x40: [.699, .006, .894], 0x5B: [.75, .25, .319], 0x5C: [.75, .25, .575], 0x5D: [.75, .25, .319], 0x5E: [.694, -0.52, .575], 0x5F: [-0.01, .061, .575], 0x60: [.706, -0.503, .575], 0x7B: [.75, .25, .575], 0x7C: [.75, .249, .319], 0x7D: [.75, .25, .575], 0x7E: [.344, -0.202, .575], 0xA8: [.695, -0.535, .575], 0xAC: [.371, -0.061, .767], 0xAF: [.607, -0.54, .575], 0xB0: [.702, -0.536, .575], 0xB1: [.728, .035, .894], 0xB4: [.706, -0.503, .575], 0xB7: [.336, -0.166, .319], 0xD7: [.53, .028, .894], 0xF7: [.597, .096, .894], 0x131: [.442, 0, .278, { sk: .0278 }], 0x237: [.442, .205, .306, { sk: .0833 }], 0x2B9: [.563, -0.033, .344], 0x2C6: [.694, -0.52, .575], 0x2C7: [.66, -0.515, .575], 0x2C9: [.607, -0.54, .575], 0x2CA: [.706, -0.503, .575], 0x2CB: [.706, -0.503, .575], 0x2D8: [.694, -0.5, .575], 0x2D9: [.695, -0.525, .575], 0x2DA: [.702, -0.536, .575], 0x2DC: [.694, -0.552, .575], 0x300: [.706, -0.503, 0], 0x301: [.706, -0.503, 0], 0x302: [.694, -0.52, 0], 0x303: [.694, -0.552, 0], 0x304: [.607, -0.54, 0], 0x306: [.694, -0.5, 0], 0x307: [.695, -0.525, 0], 0x308: [.695, -0.535, 0], 0x30A: [.702, -0.536, 0], 0x30B: [.714, -0.511, 0], 0x30C: [.66, -0.515, 0], 0x338: [.711, .21, 0], 0x2002: [0, 0, .5], 0x2003: [0, 0, .999], 0x2004: [0, 0, .333], 0x2005: [0, 0, .25], 0x2006: [0, 0, .167], 0x2009: [0, 0, .167], 0x200A: [0, 0, .083], 0x2013: [.3, -0.249, .575], 0x2014: [.3, -0.249, 1.15], 0x2015: [.3, -0.249, 1.15], 0x2016: [.75, .248, .575], 0x2017: [-0.01, .061, .575], 0x2018: [.694, -0.329, .319], 0x2019: [.694, -0.329, .319], 0x201C: [.694, -0.329, .603], 0x201D: [.694, -0.329, .603], 0x2020: [.702, .211, .511], 0x2021: [.702, .202, .511], 0x2022: [.474, -0.028, .575], 0x2026: [.171, 0, 1.295], 0x2032: [.563, -0.033, .344], 0x2033: [.563, 0, .688], 0x2034: [.563, 0, 1.032], 0x203E: [.607, -0.54, .575], 0x2044: [.75, .25, .575], 0x2057: [.563, 0, 1.376], 0x20D7: [.723, -0.513, .575], 0x210F: [.694, .008, .668, { sk: -0.0319 }], 0x2113: [.702, .019, .474, { sk: .128 }], 0x2118: [.461, .21, .74], 0x2135: [.694, 0, .703], 0x2190: [.518, .017, 1.15], 0x2191: [.694, .193, .575], 0x2192: [.518, .017, 1.15], 0x2193: [.694, .194, .575], 0x2194: [.518, .017, 1.15], 0x2195: [.767, .267, .575], 0x2196: [.724, .194, 1.15], 0x2197: [.724, .193, 1.15], 0x2198: [.694, .224, 1.15], 0x2199: [.694, .224, 1.15], 0x219A: [.711, .21, 1.15], 0x219B: [.711, .21, 1.15], 0x21A6: [.518, .017, 1.15], 0x21A9: [.518, .017, 1.282], 0x21AA: [.518, .017, 1.282], 0x21AE: [.711, .21, 1.15], 0x21BC: [.518, -0.22, 1.15], 0x21BD: [.281, .017, 1.15], 0x21C0: [.518, -0.22, 1.15], 0x21C1: [.281, .017, 1.15], 0x21CC: [.718, .017, 1.15], 0x21CD: [.711, .21, 1.15], 0x21CE: [.711, .21, 1.15], 0x21CF: [.711, .21, 1.15], 0x21D0: [.547, .046, 1.15], 0x21D1: [.694, .193, .703], 0x21D2: [.547, .046, 1.15], 0x21D3: [.694, .194, .703], 0x21D4: [.547, .046, 1.15], 0x21D5: [.767, .267, .703], 0x2200: [.694, .016, .639], 0x2203: [.694, 0, .639], 0x2204: [.711, .21, .639], 0x2205: [.767, .073, .575], 0x2206: [.698, 0, .958], 0x2208: [.587, .086, .767], 0x2209: [.711, .21, .767], 0x220B: [.587, .086, .767], 0x220C: [.711, .21, .767], 0x2212: [.281, -0.221, .894], 0x2213: [.537, .227, .894], 0x2215: [.75, .25, .575], 0x2216: [.75, .25, .575], 0x2217: [.472, -0.028, .575], 0x2218: [.474, -0.028, .575], 0x2219: [.474, -0.028, .575], 0x221A: [.82, .18, .958, { ic: .03 }], 0x221D: [.451, .008, .894], 0x221E: [.452, .008, 1.15], 0x2220: [.714, 0, .722], 0x2223: [.75, .249, .319], 0x2224: [.75, .249, .319], 0x2225: [.75, .248, .575], 0x2226: [.75, .248, .575], 0x2227: [.604, .017, .767], 0x2228: [.604, .016, .767], 0x2229: [.603, .016, .767], 0x222A: [.604, .016, .767], 0x222B: [.711, .211, .569, { ic: .063 }], 0x223C: [.391, -0.109, .894], 0x2240: [.583, .082, .319], 0x2241: [.711, .21, .894], 0x2243: [.502, 0, .894], 0x2244: [.711, .21, .894], 0x2245: [.638, .027, .894], 0x2247: [.711, .21, .894], 0x2248: [.524, -0.032, .894], 0x2249: [.711, .21, .894], 0x224D: [.533, .032, .894], 0x2250: [.721, -0.109, .894], 0x2260: [.711, .21, .894], 0x2261: [.505, 0, .894], 0x2262: [.711, .21, .894], 0x2264: [.697, .199, .894], 0x2265: [.697, .199, .894], 0x226A: [.617, .116, 1.15], 0x226B: [.618, .116, 1.15], 0x226D: [.711, .21, .894], 0x226E: [.711, .21, .894], 0x226F: [.711, .21, .894], 0x2270: [.711, .21, .894], 0x2271: [.711, .21, .894], 0x227A: [.585, .086, .894], 0x227B: [.586, .086, .894], 0x2280: [.711, .21, .894], 0x2281: [.711, .21, .894], 0x2282: [.587, .085, .894], 0x2283: [.587, .086, .894], 0x2284: [.711, .21, .894], 0x2285: [.711, .21, .894], 0x2286: [.697, .199, .894], 0x2287: [.697, .199, .894], 0x2288: [.711, .21, .894], 0x2289: [.711, .21, .894], 0x228E: [.604, .016, .767], 0x2291: [.697, .199, .894], 0x2292: [.697, .199, .894], 0x2293: [.604, 0, .767], 0x2294: [.604, 0, .767], 0x2295: [.632, .132, .894], 0x2296: [.632, .132, .894], 0x2297: [.632, .132, .894], 0x2298: [.632, .132, .894], 0x2299: [.632, .132, .894], 0x22A2: [.693, 0, .703], 0x22A3: [.693, 0, .703], 0x22A4: [.694, 0, .894], 0x22A5: [.693, 0, .894], 0x22A8: [.75, .249, .974], 0x22AC: [.711, .21, .703], 0x22AD: [.75, .249, .974], 0x22C4: [.523, .021, .575], 0x22C5: [.336, -0.166, .319], 0x22C6: [.502, 0, .575], 0x22C8: [.54, .039, 1], 0x22E2: [.711, .21, .894], 0x22E3: [.711, .21, .894], 0x22EE: [.951, .029, .319], 0x22EF: [.336, -0.166, 1.295], 0x22F1: [.871, -0.101, 1.323], 0x2308: [.75, .248, .511], 0x2309: [.75, .248, .511], 0x230A: [.749, .248, .511], 0x230B: [.749, .248, .511], 0x2322: [.405, -0.108, 1.15], 0x2323: [.392, -0.126, 1.15], 0x2329: [.75, .249, .447], 0x232A: [.75, .249, .447], 0x25B3: [.711, 0, 1.022], 0x25B5: [.711, 0, 1.022], 0x25B9: [.54, .039, .575], 0x25BD: [.5, .21, 1.022], 0x25BF: [.5, .21, 1.022], 0x25C3: [.539, .038, .575], 0x25EF: [.711, .211, 1.15], 0x2660: [.719, .129, .894], 0x2661: [.711, .024, .894], 0x2662: [.719, .154, .894], 0x2663: [.719, .129, .894], 0x266D: [.75, .017, .447], 0x266E: [.741, .223, .447], 0x266F: [.724, .224, .447], 0x2758: [.75, .249, .319], 0x27E8: [.75, .249, .447], 0x27E9: [.75, .249, .447], 0x27F5: [.518, .017, 1.805], 0x27F6: [.518, .017, 1.833], 0x27F7: [.518, .017, 2.126], 0x27F8: [.547, .046, 1.868], 0x27F9: [.547, .046, 1.87], 0x27FA: [.547, .046, 2.126], 0x27FC: [.518, .017, 1.833], 0x29F8: [.711, .21, .894], 0x2A2F: [.53, .028, .894], 0x2A3F: [.686, 0, .9], 0x2AAF: [.696, .199, .894], 0x2AB0: [.697, .199, .894], 0x3008: [.75, .249, .447], 0x3009: [.75, .249, .447], }; //# sourceMappingURL=bold.js.map /***/ }), /* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.doubleStruck = void 0; exports.doubleStruck = {}; //# sourceMappingURL=double-struck.js.map /***/ }), /* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.frakturBold = void 0; var FontData_js_1 = __webpack_require__(0); var fraktur_bold_js_1 = __webpack_require__(9); exports.frakturBold = FontData_js_1.AddCSS(fraktur_bold_js_1.frakturBold, { 0x2044: { c: '/' }, }); //# sourceMappingURL=fraktur-bold.js.map /***/ }), /* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.frakturBold = void 0; exports.frakturBold = { 0x21: [.689, .012, .349], 0x22: [.695, -0.432, .254], 0x26: [.696, .016, .871], 0x27: [.695, -0.436, .25], 0x28: [.737, .186, .459], 0x29: [.735, .187, .459], 0x2A: [.692, -0.449, .328], 0x2B: [.598, .082, .893], 0x2C: [.107, .191, .328], 0x2D: [.275, -0.236, .893], 0x2E: [.102, .015, .328], 0x2F: [.721, .182, .593], 0x30: [.501, .012, .593], 0x31: [.489, 0, .593], 0x32: [.491, 0, .593], 0x33: [.487, .193, .593], 0x34: [.495, .196, .593], 0x35: [.481, .19, .593], 0x36: [.704, .012, .593], 0x37: [.479, .197, .593], 0x38: [.714, .005, .593], 0x39: [.487, .195, .593], 0x3A: [.457, .012, .255], 0x3B: [.458, .19, .255], 0x3D: [.343, -0.168, .582], 0x3F: [.697, .014, .428], 0x5B: [.74, .13, .257], 0x5D: [.738, .132, .257], 0x5E: [.734, -0.452, .59], 0x2018: [.708, -0.411, .254], 0x2019: [.692, -0.394, .254], 0x2044: [.721, .182, .593], 0xE301: [.63, .027, .587], 0xE302: [.693, .212, .394, { ic: .014 }], 0xE303: [.681, .219, .387], 0xE304: [.473, .212, .593], 0xE305: [.684, .027, .393], 0xE308: [.679, .22, .981], 0xE309: [.717, .137, .727], }; //# sourceMappingURL=fraktur-bold.js.map /***/ }), /* 10 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fraktur = void 0; var FontData_js_1 = __webpack_require__(0); var fraktur_js_1 = __webpack_require__(11); exports.fraktur = FontData_js_1.AddCSS(fraktur_js_1.fraktur, { 0x2044: { c: '/' }, }); //# sourceMappingURL=fraktur.js.map /***/ }), /* 11 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fraktur = void 0; exports.fraktur = { 0x21: [.689, .012, .296], 0x22: [.695, -0.432, .215], 0x26: [.698, .011, .738], 0x27: [.695, -0.436, .212], 0x28: [.737, .186, .389], 0x29: [.735, .187, .389], 0x2A: [.692, -0.449, .278], 0x2B: [.598, .082, .756], 0x2C: [.107, .191, .278], 0x2D: [.275, -0.236, .756], 0x2E: [.102, .015, .278], 0x2F: [.721, .182, .502], 0x30: [.492, .013, .502], 0x31: [.468, 0, .502], 0x32: [.474, 0, .502], 0x33: [.473, .182, .502], 0x34: [.476, .191, .502], 0x35: [.458, .184, .502], 0x36: [.7, .013, .502], 0x37: [.468, .181, .502], 0x38: [.705, .01, .502], 0x39: [.469, .182, .502], 0x3A: [.457, .012, .216], 0x3B: [.458, .189, .216], 0x3D: [.368, -0.132, .756], 0x3F: [.693, .011, .362], 0x5B: [.74, .13, .278], 0x5D: [.738, .131, .278], 0x5E: [.734, -0.452, .5], 0x2018: [.708, -0.41, .215], 0x2019: [.692, -0.395, .215], 0x2044: [.721, .182, .502], 0xE300: [.683, .032, .497], 0xE301: [.616, .03, .498], 0xE302: [.68, .215, .333], 0xE303: [.679, .224, .329], 0xE304: [.471, .214, .503], 0xE305: [.686, .02, .333], 0xE306: [.577, .021, .334, { ic: .013 }], 0xE307: [.475, .022, .501, { ic: .013 }], }; //# sourceMappingURL=fraktur.js.map /***/ }), /* 12 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.italic = void 0; var FontData_js_1 = __webpack_require__(0); var italic_js_1 = __webpack_require__(13); exports.italic = FontData_js_1.AddCSS(italic_js_1.italic, { 0x2F: { f: 'I' }, 0x3DD: { c: '\\E008', f: 'A' }, 0x2015: { c: '\\2014' }, 0x2017: { c: '_' }, 0x2044: { c: '/', f: 'I' }, 0x2206: { c: '\\394', f: 'I' }, 0x29F8: { c: '/', f: 'I' }, }); //# sourceMappingURL=italic.js.map /***/ }), /* 13 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.italic = void 0; exports.italic = { 0x21: [.716, 0, .307, { ic: .073 }], 0x22: [.694, -0.379, .514, { ic: .024 }], 0x23: [.694, .194, .818, { ic: .01 }], 0x25: [.75, .056, .818, { ic: .029 }], 0x26: [.716, .022, .767, { ic: .035 }], 0x27: [.694, -0.379, .307, { ic: .07 }], 0x28: [.75, .25, .409, { ic: .108 }], 0x29: [.75, .25, .409], 0x2A: [.75, -0.32, .511, { ic: .073 }], 0x2B: [.557, .057, .767], 0x2C: [.121, .194, .307], 0x2D: [.251, -0.18, .358], 0x2E: [.121, 0, .307], 0x2F: [.716, .215, .778], 0x30: [.665, .021, .511, { ic: .051 }], 0x31: [.666, 0, .511], 0x32: [.666, .022, .511, { ic: .04 }], 0x33: [.666, .022, .511, { ic: .051 }], 0x34: [.666, .194, .511], 0x35: [.666, .022, .511, { ic: .056 }], 0x36: [.665, .022, .511, { ic: .054 }], 0x37: [.666, .022, .511, { ic: .123 }], 0x38: [.666, .021, .511, { ic: .042 }], 0x39: [.666, .022, .511, { ic: .042 }], 0x3A: [.431, 0, .307], 0x3B: [.431, .194, .307], 0x3D: [.367, -0.133, .767], 0x3F: [.716, 0, .511, { ic: .04 }], 0x40: [.705, .011, .767, { ic: .022 }], 0x5B: [.75, .25, .307, { ic: .139 }], 0x5D: [.75, .25, .307, { ic: .052 }], 0x5E: [.694, -0.527, .511, { ic: .017 }], 0x5F: [-0.025, .062, .511, { ic: .043 }], 0x7E: [.318, -0.208, .511, { ic: .06 }], 0x131: [.441, .01, .307, { ic: .033 }], 0x237: [.442, .204, .332], 0x300: [.697, -0.5, 0], 0x301: [.697, -0.5, 0, { ic: .039 }], 0x302: [.694, -0.527, 0, { ic: .017 }], 0x303: [.668, -0.558, 0, { ic: .06 }], 0x304: [.589, -0.544, 0, { ic: .054 }], 0x306: [.694, -0.515, 0, { ic: .062 }], 0x307: [.669, -0.548, 0], 0x308: [.669, -0.554, 0, { ic: .045 }], 0x30A: [.716, -0.542, 0], 0x30B: [.697, -0.503, 0, { ic: .065 }], 0x30C: [.638, -0.502, 0, { ic: .029 }], 0x3DD: [.605, .085, .778], 0x2013: [.285, -0.248, .511, { ic: .043 }], 0x2014: [.285, -0.248, 1.022, { ic: .016 }], 0x2015: [.285, -0.248, 1.022, { ic: .016 }], 0x2017: [-0.025, .062, .511, { ic: .043 }], 0x2018: [.694, -0.379, .307, { ic: .055 }], 0x2019: [.694, -0.379, .307, { ic: .07 }], 0x201C: [.694, -0.379, .514, { ic: .092 }], 0x201D: [.694, -0.379, .514, { ic: .024 }], 0x2044: [.716, .215, .778], 0x210F: [.695, .013, .54, { ic: .022 }], 0x2206: [.716, 0, .833, { sk: .167 }], 0x29F8: [.716, .215, .778], }; //# sourceMappingURL=italic.js.map /***/ }), /* 14 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.largeop = void 0; var FontData_js_1 = __webpack_require__(0); var largeop_js_1 = __webpack_require__(15); exports.largeop = FontData_js_1.AddCSS(largeop_js_1.largeop, { 0x2016: { f: 'S1' }, 0x2044: { c: '/' }, 0x2191: { f: 'S1' }, 0x2193: { f: 'S1' }, 0x21D1: { f: 'S1' }, 0x21D3: { f: 'S1' }, 0x2223: { f: 'S1' }, 0x2225: { f: 'S1' }, 0x2329: { c: '\\27E8' }, 0x232A: { c: '\\27E9' }, 0x23D0: { f: 'S1' }, 0x2758: { c: '\\2223', f: 'S1' }, 0x2A0C: { c: '\\222C\\222C' }, 0x3008: { c: '\\27E8' }, 0x3009: { c: '\\27E9' }, }); //# sourceMappingURL=largeop.js.map /***/ }), /* 15 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.largeop = void 0; exports.largeop = { 0x28: [1.15, .649, .597], 0x29: [1.15, .649, .597], 0x2F: [1.15, .649, .811], 0x5B: [1.15, .649, .472], 0x5C: [1.15, .649, .811], 0x5D: [1.15, .649, .472], 0x7B: [1.15, .649, .667], 0x7D: [1.15, .649, .667], 0x2C6: [.772, -0.565, 1], 0x2DC: [.75, -0.611, 1], 0x302: [.772, -0.565, 0], 0x303: [.75, -0.611, 0], 0x2016: [.602, 0, .778], 0x2044: [1.15, .649, .811], 0x2191: [.6, 0, .667], 0x2193: [.6, 0, .667], 0x21D1: [.599, 0, .778], 0x21D3: [.6, 0, .778], 0x220F: [.95, .45, 1.278], 0x2210: [.95, .45, 1.278], 0x2211: [.95, .45, 1.444], 0x221A: [1.15, .65, 1, { ic: .02 }], 0x2223: [.627, .015, .333], 0x2225: [.627, .015, .556], 0x222B: [1.36, .862, .556, { ic: .388 }], 0x222C: [1.36, .862, 1.084, { ic: .388 }], 0x222D: [1.36, .862, 1.592, { ic: .388 }], 0x222E: [1.36, .862, .556, { ic: .388 }], 0x22C0: [.95, .45, 1.111], 0x22C1: [.95, .45, 1.111], 0x22C2: [.949, .45, 1.111], 0x22C3: [.95, .449, 1.111], 0x2308: [1.15, .649, .528], 0x2309: [1.15, .649, .528], 0x230A: [1.15, .649, .528], 0x230B: [1.15, .649, .528], 0x2329: [1.15, .649, .611], 0x232A: [1.15, .649, .611], 0x23D0: [.602, 0, .667], 0x2758: [.627, .015, .333], 0x27E8: [1.15, .649, .611], 0x27E9: [1.15, .649, .611], 0x2A00: [.949, .449, 1.511], 0x2A01: [.949, .449, 1.511], 0x2A02: [.949, .449, 1.511], 0x2A04: [.95, .449, 1.111], 0x2A06: [.95, .45, 1.111], 0x2A0C: [1.36, .862, 2.168, { ic: .388 }], 0x3008: [1.15, .649, .611], 0x3009: [1.15, .649, .611], }; //# sourceMappingURL=largeop.js.map /***/ }), /* 16 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.monospace = void 0; var FontData_js_1 = __webpack_require__(0); var monospace_js_1 = __webpack_require__(17); exports.monospace = FontData_js_1.AddCSS(monospace_js_1.monospace, { 0x2B9: { c: '\\2032' }, 0x391: { c: 'A' }, 0x392: { c: 'B' }, 0x395: { c: 'E' }, 0x396: { c: 'Z' }, 0x397: { c: 'H' }, 0x399: { c: 'I' }, 0x39A: { c: 'K' }, 0x39C: { c: 'M' }, 0x39D: { c: 'N' }, 0x39F: { c: 'O' }, 0x3A1: { c: 'P' }, 0x3A4: { c: 'T' }, 0x3A7: { c: 'X' }, 0x2017: { c: '_' }, 0x2033: { c: '\\2032\\2032' }, 0x2034: { c: '\\2032\\2032\\2032' }, 0x2044: { c: '/' }, 0x2057: { c: '\\2032\\2032\\2032\\2032' }, 0x2206: { c: '\\394' }, }); //# sourceMappingURL=monospace.js.map /***/ }), /* 17 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.monospace = void 0; exports.monospace = { 0x20: [0, 0, .525], 0x21: [.622, 0, .525], 0x22: [.623, -0.333, .525], 0x23: [.611, 0, .525], 0x24: [.694, .082, .525], 0x25: [.694, .083, .525], 0x26: [.622, .011, .525], 0x27: [.611, -0.287, .525], 0x28: [.694, .082, .525], 0x29: [.694, .082, .525], 0x2A: [.52, -0.09, .525], 0x2B: [.531, -0.081, .525], 0x2C: [.14, .139, .525], 0x2D: [.341, -0.271, .525], 0x2E: [.14, 0, .525], 0x2F: [.694, .083, .525], 0x3A: [.431, 0, .525], 0x3B: [.431, .139, .525], 0x3C: [.557, -0.055, .525], 0x3D: [.417, -0.195, .525], 0x3E: [.557, -0.055, .525], 0x3F: [.617, 0, .525], 0x40: [.617, .006, .525], 0x5B: [.694, .082, .525], 0x5C: [.694, .083, .525], 0x5D: [.694, .082, .525], 0x5E: [.611, -0.46, .525], 0x5F: [-0.025, .095, .525], 0x60: [.681, -0.357, .525], 0x7B: [.694, .083, .525], 0x7C: [.694, .082, .525], 0x7D: [.694, .083, .525], 0x7E: [.611, -0.466, .525], 0x7F: [.612, -0.519, .525], 0xA0: [0, 0, .525], 0x131: [.431, 0, .525], 0x237: [.431, .228, .525], 0x2B9: [.623, -0.334, .525], 0x300: [.611, -0.485, 0], 0x301: [.611, -0.485, 0], 0x302: [.611, -0.46, 0], 0x303: [.611, -0.466, 0], 0x304: [.577, -0.5, 0], 0x306: [.611, -0.504, 0], 0x308: [.612, -0.519, 0], 0x30A: [.619, -0.499, 0], 0x30C: [.577, -0.449, 0], 0x391: [.623, 0, .525], 0x392: [.611, 0, .525], 0x393: [.611, 0, .525], 0x394: [.623, 0, .525], 0x395: [.611, 0, .525], 0x396: [.611, 0, .525], 0x397: [.611, 0, .525], 0x398: [.621, .01, .525], 0x399: [.611, 0, .525], 0x39A: [.611, 0, .525], 0x39B: [.623, 0, .525], 0x39C: [.611, 0, .525], 0x39D: [.611, 0, .525], 0x39E: [.611, 0, .525], 0x39F: [.621, .01, .525], 0x3A0: [.611, 0, .525], 0x3A1: [.611, 0, .525], 0x3A3: [.611, 0, .525], 0x3A4: [.611, 0, .525], 0x3A5: [.622, 0, .525], 0x3A6: [.611, 0, .525], 0x3A7: [.611, 0, .525], 0x3A8: [.611, 0, .525], 0x3A9: [.622, 0, .525], 0x2017: [-0.025, .095, .525], 0x2032: [.623, -0.334, .525], 0x2033: [.623, 0, 1.05], 0x2034: [.623, 0, 1.575], 0x2044: [.694, .083, .525], 0x2057: [.623, 0, 2.1], 0x2206: [.623, 0, .525], }; //# sourceMappingURL=monospace.js.map /***/ }), /* 18 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normal = void 0; var FontData_js_1 = __webpack_require__(0); var normal_js_1 = __webpack_require__(19); exports.normal = FontData_js_1.AddCSS(normal_js_1.normal, { 0xA3: { f: 'MI' }, 0xA5: { f: 'A' }, 0xAE: { f: 'A' }, 0xB7: { c: '\\22C5' }, 0xF0: { f: 'A' }, 0x2B9: { c: '\\2032' }, 0x391: { c: 'A' }, 0x392: { c: 'B' }, 0x395: { c: 'E' }, 0x396: { c: 'Z' }, 0x397: { c: 'H' }, 0x399: { c: 'I' }, 0x39A: { c: 'K' }, 0x39C: { c: 'M' }, 0x39D: { c: 'N' }, 0x39F: { c: 'O' }, 0x3A1: { c: 'P' }, 0x3A4: { c: 'T' }, 0x3A7: { c: 'X' }, 0x2000: { c: '' }, 0x2001: { c: '' }, 0x2002: { c: '' }, 0x2003: { c: '' }, 0x2004: { c: '' }, 0x2005: { c: '' }, 0x2006: { c: '' }, 0x2009: { c: '' }, 0x200A: { c: '' }, 0x200B: { c: '' }, 0x200C: { c: '' }, 0x2015: { c: '\\2014' }, 0x2016: { c: '\\2225' }, 0x2017: { c: '_' }, 0x2022: { c: '\\2219' }, 0x2033: { c: '\\2032\\2032' }, 0x2034: { c: '\\2032\\2032\\2032' }, 0x2035: { f: 'A' }, 0x2036: { c: '\\2035\\2035', f: 'A' }, 0x2037: { c: '\\2035\\2035\\2035', f: 'A' }, 0x203E: { c: '\\2C9' }, 0x2044: { c: '/' }, 0x2057: { c: '\\2032\\2032\\2032\\2032' }, 0x2060: { c: '' }, 0x2061: { c: '' }, 0x2062: { c: '' }, 0x2063: { c: '' }, 0x2064: { c: '' }, 0x20D7: { c: '\\2192', f: 'V' }, 0x2102: { c: 'C', f: 'A' }, 0x210B: { c: 'H', f: 'SC' }, 0x210C: { c: 'H', f: 'FR' }, 0x210D: { c: 'H', f: 'A' }, 0x210E: { c: 'h', f: 'I' }, 0x210F: { f: 'A' }, 0x2110: { c: 'J', f: 'SC' }, 0x2111: { c: 'I', f: 'FR' }, 0x2112: { c: 'L', f: 'SC' }, 0x2115: { c: 'N', f: 'A' }, 0x2119: { c: 'P', f: 'A' }, 0x211A: { c: 'Q', f: 'A' }, 0x211B: { c: 'R', f: 'SC' }, 0x211C: { c: 'R', f: 'FR' }, 0x211D: { c: 'R', f: 'A' }, 0x2124: { c: 'Z', f: 'A' }, 0x2126: { c: '\\3A9' }, 0x2127: { f: 'A' }, 0x2128: { c: 'Z', f: 'FR' }, 0x212C: { c: 'B', f: 'SC' }, 0x212D: { c: 'C', f: 'FR' }, 0x2130: { c: 'E', f: 'SC' }, 0x2131: { c: 'F', f: 'SC' }, 0x2132: { f: 'A' }, 0x2133: { c: 'M', f: 'SC' }, 0x2136: { f: 'A' }, 0x2137: { f: 'A' }, 0x2138: { f: 'A' }, 0x2141: { f: 'A' }, 0x219A: { f: 'A' }, 0x219B: { f: 'A' }, 0x219E: { f: 'A' }, 0x21A0: { f: 'A' }, 0x21A2: { f: 'A' }, 0x21A3: { f: 'A' }, 0x21AB: { f: 'A' }, 0x21AC: { f: 'A' }, 0x21AD: { f: 'A' }, 0x21AE: { f: 'A' }, 0x21B0: { f: 'A' }, 0x21B1: { f: 'A' }, 0x21B6: { f: 'A' }, 0x21B7: { f: 'A' }, 0x21BA: { f: 'A' }, 0x21BB: { f: 'A' }, 0x21BE: { f: 'A' }, 0x21BF: { f: 'A' }, 0x21C2: { f: 'A' }, 0x21C3: { f: 'A' }, 0x21C4: { f: 'A' }, 0x21C6: { f: 'A' }, 0x21C7: { f: 'A' }, 0x21C8: { f: 'A' }, 0x21C9: { f: 'A' }, 0x21CA: { f: 'A' }, 0x21CB: { f: 'A' }, 0x21CD: { f: 'A' }, 0x21CE: { f: 'A' }, 0x21CF: { f: 'A' }, 0x21DA: { f: 'A' }, 0x21DB: { f: 'A' }, 0x21DD: { f: 'A' }, 0x21E0: { f: 'A' }, 0x21E2: { f: 'A' }, 0x2201: { f: 'A' }, 0x2204: { c: '\\2203\\338' }, 0x2206: { c: '\\394' }, 0x220C: { c: '\\220B\\338' }, 0x220D: { f: 'A' }, 0x220F: { f: 'S1' }, 0x2210: { f: 'S1' }, 0x2211: { f: 'S1' }, 0x2214: { f: 'A' }, 0x2221: { f: 'A' }, 0x2222: { f: 'A' }, 0x2224: { f: 'A' }, 0x2226: { f: 'A' }, 0x222C: { f: 'S1' }, 0x222D: { f: 'S1' }, 0x222E: { f: 'S1' }, 0x2234: { f: 'A' }, 0x2235: { f: 'A' }, 0x223D: { f: 'A' }, 0x2241: { f: 'A' }, 0x2242: { f: 'A' }, 0x2244: { c: '\\2243\\338' }, 0x2247: { c: '\\2246', f: 'A' }, 0x2249: { c: '\\2248\\338' }, 0x224A: { f: 'A' }, 0x224E: { f: 'A' }, 0x224F: { f: 'A' }, 0x2251: { f: 'A' }, 0x2252: { f: 'A' }, 0x2253: { f: 'A' }, 0x2256: { f: 'A' }, 0x2257: { f: 'A' }, 0x225C: { f: 'A' }, 0x2262: { c: '\\2261\\338' }, 0x2266: { f: 'A' }, 0x2267: { f: 'A' }, 0x2268: { f: 'A' }, 0x2269: { f: 'A' }, 0x226C: { f: 'A' }, 0x226D: { c: '\\224D\\338' }, 0x226E: { f: 'A' }, 0x226F: { f: 'A' }, 0x2270: { f: 'A' }, 0x2271: { f: 'A' }, 0x2272: { f: 'A' }, 0x2273: { f: 'A' }, 0x2274: { c: '\\2272\\338' }, 0x2275: { c: '\\2273\\338' }, 0x2276: { f: 'A' }, 0x2277: { f: 'A' }, 0x2278: { c: '\\2276\\338' }, 0x2279: { c: '\\2277\\338' }, 0x227C: { f: 'A' }, 0x227D: { f: 'A' }, 0x227E: { f: 'A' }, 0x227F: { f: 'A' }, 0x2280: { f: 'A' }, 0x2281: { f: 'A' }, 0x2284: { c: '\\2282\\338' }, 0x2285: { c: '\\2283\\338' }, 0x2288: { f: 'A' }, 0x2289: { f: 'A' }, 0x228A: { f: 'A' }, 0x228B: { f: 'A' }, 0x228F: { f: 'A' }, 0x2290: { f: 'A' }, 0x229A: { f: 'A' }, 0x229B: { f: 'A' }, 0x229D: { f: 'A' }, 0x229E: { f: 'A' }, 0x229F: { f: 'A' }, 0x22A0: { f: 'A' }, 0x22A1: { f: 'A' }, 0x22A9: { f: 'A' }, 0x22AA: { f: 'A' }, 0x22AC: { f: 'A' }, 0x22AD: { f: 'A' }, 0x22AE: { f: 'A' }, 0x22AF: { f: 'A' }, 0x22B2: { f: 'A' }, 0x22B3: { f: 'A' }, 0x22B4: { f: 'A' }, 0x22B5: { f: 'A' }, 0x22B8: { f: 'A' }, 0x22BA: { f: 'A' }, 0x22BB: { f: 'A' }, 0x22BC: { f: 'A' }, 0x22C0: { f: 'S1' }, 0x22C1: { f: 'S1' }, 0x22C2: { f: 'S1' }, 0x22C3: { f: 'S1' }, 0x22C7: { f: 'A' }, 0x22C9: { f: 'A' }, 0x22CA: { f: 'A' }, 0x22CB: { f: 'A' }, 0x22CC: { f: 'A' }, 0x22CD: { f: 'A' }, 0x22CE: { f: 'A' }, 0x22CF: { f: 'A' }, 0x22D0: { f: 'A' }, 0x22D1: { f: 'A' }, 0x22D2: { f: 'A' }, 0x22D3: { f: 'A' }, 0x22D4: { f: 'A' }, 0x22D6: { f: 'A' }, 0x22D7: { f: 'A' }, 0x22D8: { f: 'A' }, 0x22D9: { f: 'A' }, 0x22DA: { f: 'A' }, 0x22DB: { f: 'A' }, 0x22DE: { f: 'A' }, 0x22DF: { f: 'A' }, 0x22E0: { f: 'A' }, 0x22E1: { f: 'A' }, 0x22E2: { c: '\\2291\\338' }, 0x22E3: { c: '\\2292\\338' }, 0x22E6: { f: 'A' }, 0x22E7: { f: 'A' }, 0x22E8: { f: 'A' }, 0x22E9: { f: 'A' }, 0x22EA: { f: 'A' }, 0x22EB: { f: 'A' }, 0x22EC: { f: 'A' }, 0x22ED: { f: 'A' }, 0x2305: { c: '\\22BC', f: 'A' }, 0x2306: { c: '\\2A5E', f: 'A' }, 0x231C: { c: '\\250C', f: 'A' }, 0x231D: { c: '\\2510', f: 'A' }, 0x231E: { c: '\\2514', f: 'A' }, 0x231F: { c: '\\2518', f: 'A' }, 0x2329: { c: '\\27E8' }, 0x232A: { c: '\\27E9' }, 0x23D0: { f: 'S1' }, 0x24C8: { f: 'A' }, 0x250C: { f: 'A' }, 0x2510: { f: 'A' }, 0x2514: { f: 'A' }, 0x2518: { f: 'A' }, 0x2571: { f: 'A' }, 0x2572: { f: 'A' }, 0x25A0: { f: 'A' }, 0x25A1: { f: 'A' }, 0x25AA: { c: '\\25A0', f: 'A' }, 0x25B2: { f: 'A' }, 0x25B4: { c: '\\25B2', f: 'A' }, 0x25B5: { c: '\\25B3' }, 0x25B6: { f: 'A' }, 0x25B8: { c: '\\25B6', f: 'A' }, 0x25BC: { f: 'A' }, 0x25BE: { c: '\\25BC', f: 'A' }, 0x25BF: { c: '\\25BD' }, 0x25C0: { f: 'A' }, 0x25C2: { c: '\\25C0', f: 'A' }, 0x25CA: { f: 'A' }, 0x25FB: { c: '\\25A1', f: 'A' }, 0x25FC: { c: '\\25A0', f: 'A' }, 0x2605: { f: 'A' }, 0x2713: { f: 'A' }, 0x2720: { f: 'A' }, 0x2758: { c: '\\2223' }, 0x29EB: { f: 'A' }, 0x29F8: { c: '/', f: 'I' }, 0x2A00: { f: 'S1' }, 0x2A01: { f: 'S1' }, 0x2A02: { f: 'S1' }, 0x2A04: { f: 'S1' }, 0x2A06: { f: 'S1' }, 0x2A0C: { c: '\\222C\\222C', f: 'S1' }, 0x2A2F: { c: '\\D7' }, 0x2A5E: { f: 'A' }, 0x2A7D: { f: 'A' }, 0x2A7E: { f: 'A' }, 0x2A85: { f: 'A' }, 0x2A86: { f: 'A' }, 0x2A87: { f: 'A' }, 0x2A88: { f: 'A' }, 0x2A89: { f: 'A' }, 0x2A8A: { f: 'A' }, 0x2A8B: { f: 'A' }, 0x2A8C: { f: 'A' }, 0x2A95: { f: 'A' }, 0x2A96: { f: 'A' }, 0x2AB5: { f: 'A' }, 0x2AB6: { f: 'A' }, 0x2AB7: { f: 'A' }, 0x2AB8: { f: 'A' }, 0x2AB9: { f: 'A' }, 0x2ABA: { f: 'A' }, 0x2AC5: { f: 'A' }, 0x2AC6: { f: 'A' }, 0x2ACB: { f: 'A' }, 0x2ACC: { f: 'A' }, 0x3008: { c: '\\27E8' }, 0x3009: { c: '\\27E9' }, 0xE006: { f: 'A' }, 0xE007: { f: 'A' }, 0xE008: { f: 'A' }, 0xE009: { f: 'A' }, 0xE00C: { f: 'A' }, 0xE00D: { f: 'A' }, 0xE00E: { f: 'A' }, 0xE00F: { f: 'A' }, 0xE010: { f: 'A' }, 0xE011: { f: 'A' }, 0xE016: { f: 'A' }, 0xE017: { f: 'A' }, 0xE018: { f: 'A' }, 0xE019: { f: 'A' }, 0xE01A: { f: 'A' }, 0xE01B: { f: 'A' }, 0x1D400: { c: 'A', f: 'B' }, 0x1D401: { c: 'B', f: 'B' }, 0x1D402: { c: 'C', f: 'B' }, 0x1D403: { c: 'D', f: 'B' }, 0x1D404: { c: 'E', f: 'B' }, 0x1D405: { c: 'F', f: 'B' }, 0x1D406: { c: 'G', f: 'B' }, 0x1D407: { c: 'H', f: 'B' }, 0x1D408: { c: 'I', f: 'B' }, 0x1D409: { c: 'J', f: 'B' }, 0x1D40A: { c: 'K', f: 'B' }, 0x1D40B: { c: 'L', f: 'B' }, 0x1D40C: { c: 'M', f: 'B' }, 0x1D40D: { c: 'N', f: 'B' }, 0x1D40E: { c: 'O', f: 'B' }, 0x1D40F: { c: 'P', f: 'B' }, 0x1D410: { c: 'Q', f: 'B' }, 0x1D411: { c: 'R', f: 'B' }, 0x1D412: { c: 'S', f: 'B' }, 0x1D413: { c: 'T', f: 'B' }, 0x1D414: { c: 'U', f: 'B' }, 0x1D415: { c: 'V', f: 'B' }, 0x1D416: { c: 'W', f: 'B' }, 0x1D417: { c: 'X', f: 'B' }, 0x1D418: { c: 'Y', f: 'B' }, 0x1D419: { c: 'Z', f: 'B' }, 0x1D41A: { c: 'a', f: 'B' }, 0x1D41B: { c: 'b', f: 'B' }, 0x1D41C: { c: 'c', f: 'B' }, 0x1D41D: { c: 'd', f: 'B' }, 0x1D41E: { c: 'e', f: 'B' }, 0x1D41F: { c: 'f', f: 'B' }, 0x1D420: { c: 'g', f: 'B' }, 0x1D421: { c: 'h', f: 'B' }, 0x1D422: { c: 'i', f: 'B' }, 0x1D423: { c: 'j', f: 'B' }, 0x1D424: { c: 'k', f: 'B' }, 0x1D425: { c: 'l', f: 'B' }, 0x1D426: { c: 'm', f: 'B' }, 0x1D427: { c: 'n', f: 'B' }, 0x1D428: { c: 'o', f: 'B' }, 0x1D429: { c: 'p', f: 'B' }, 0x1D42A: { c: 'q', f: 'B' }, 0x1D42B: { c: 'r', f: 'B' }, 0x1D42C: { c: 's', f: 'B' }, 0x1D42D: { c: 't', f: 'B' }, 0x1D42E: { c: 'u', f: 'B' }, 0x1D42F: { c: 'v', f: 'B' }, 0x1D430: { c: 'w', f: 'B' }, 0x1D431: { c: 'x', f: 'B' }, 0x1D432: { c: 'y', f: 'B' }, 0x1D433: { c: 'z', f: 'B' }, 0x1D434: { c: 'A', f: 'I' }, 0x1D435: { c: 'B', f: 'I' }, 0x1D436: { c: 'C', f: 'I' }, 0x1D437: { c: 'D', f: 'I' }, 0x1D438: { c: 'E', f: 'I' }, 0x1D439: { c: 'F', f: 'I' }, 0x1D43A: { c: 'G', f: 'I' }, 0x1D43B: { c: 'H', f: 'I' }, 0x1D43C: { c: 'I', f: 'I' }, 0x1D43D: { c: 'J', f: 'I' }, 0x1D43E: { c: 'K', f: 'I' }, 0x1D43F: { c: 'L', f: 'I' }, 0x1D440: { c: 'M', f: 'I' }, 0x1D441: { c: 'N', f: 'I' }, 0x1D442: { c: 'O', f: 'I' }, 0x1D443: { c: 'P', f: 'I' }, 0x1D444: { c: 'Q', f: 'I' }, 0x1D445: { c: 'R', f: 'I' }, 0x1D446: { c: 'S', f: 'I' }, 0x1D447: { c: 'T', f: 'I' }, 0x1D448: { c: 'U', f: 'I' }, 0x1D449: { c: 'V', f: 'I' }, 0x1D44A: { c: 'W', f: 'I' }, 0x1D44B: { c: 'X', f: 'I' }, 0x1D44C: { c: 'Y', f: 'I' }, 0x1D44D: { c: 'Z', f: 'I' }, 0x1D44E: { c: 'a', f: 'I' }, 0x1D44F: { c: 'b', f: 'I' }, 0x1D450: { c: 'c', f: 'I' }, 0x1D451: { c: 'd', f: 'I' }, 0x1D452: { c: 'e', f: 'I' }, 0x1D453: { c: 'f', f: 'I' }, 0x1D454: { c: 'g', f: 'I' }, 0x1D456: { c: 'i', f: 'I' }, 0x1D457: { c: 'j', f: 'I' }, 0x1D458: { c: 'k', f: 'I' }, 0x1D459: { c: 'l', f: 'I' }, 0x1D45A: { c: 'm', f: 'I' }, 0x1D45B: { c: 'n', f: 'I' }, 0x1D45C: { c: 'o', f: 'I' }, 0x1D45D: { c: 'p', f: 'I' }, 0x1D45E: { c: 'q', f: 'I' }, 0x1D45F: { c: 'r', f: 'I' }, 0x1D460: { c: 's', f: 'I' }, 0x1D461: { c: 't', f: 'I' }, 0x1D462: { c: 'u', f: 'I' }, 0x1D463: { c: 'v', f: 'I' }, 0x1D464: { c: 'w', f: 'I' }, 0x1D465: { c: 'x', f: 'I' }, 0x1D466: { c: 'y', f: 'I' }, 0x1D467: { c: 'z', f: 'I' }, 0x1D468: { c: 'A', f: 'BI' }, 0x1D469: { c: 'B', f: 'BI' }, 0x1D46A: { c: 'C', f: 'BI' }, 0x1D46B: { c: 'D', f: 'BI' }, 0x1D46C: { c: 'E', f: 'BI' }, 0x1D46D: { c: 'F', f: 'BI' }, 0x1D46E: { c: 'G', f: 'BI' }, 0x1D46F: { c: 'H', f: 'BI' }, 0x1D470: { c: 'I', f: 'BI' }, 0x1D471: { c: 'J', f: 'BI' }, 0x1D472: { c: 'K', f: 'BI' }, 0x1D473: { c: 'L', f: 'BI' }, 0x1D474: { c: 'M', f: 'BI' }, 0x1D475: { c: 'N', f: 'BI' }, 0x1D476: { c: 'O', f: 'BI' }, 0x1D477: { c: 'P', f: 'BI' }, 0x1D478: { c: 'Q', f: 'BI' }, 0x1D479: { c: 'R', f: 'BI' }, 0x1D47A: { c: 'S', f: 'BI' }, 0x1D47B: { c: 'T', f: 'BI' }, 0x1D47C: { c: 'U', f: 'BI' }, 0x1D47D: { c: 'V', f: 'BI' }, 0x1D47E: { c: 'W', f: 'BI' }, 0x1D47F: { c: 'X', f: 'BI' }, 0x1D480: { c: 'Y', f: 'BI' }, 0x1D481: { c: 'Z', f: 'BI' }, 0x1D482: { c: 'a', f: 'BI' }, 0x1D483: { c: 'b', f: 'BI' }, 0x1D484: { c: 'c', f: 'BI' }, 0x1D485: { c: 'd', f: 'BI' }, 0x1D486: { c: 'e', f: 'BI' }, 0x1D487: { c: 'f', f: 'BI' }, 0x1D488: { c: 'g', f: 'BI' }, 0x1D489: { c: 'h', f: 'BI' }, 0x1D48A: { c: 'i', f: 'BI' }, 0x1D48B: { c: 'j', f: 'BI' }, 0x1D48C: { c: 'k', f: 'BI' }, 0x1D48D: { c: 'l', f: 'BI' }, 0x1D48E: { c: 'm', f: 'BI' }, 0x1D48F: { c: 'n', f: 'BI' }, 0x1D490: { c: 'o', f: 'BI' }, 0x1D491: { c: 'p', f: 'BI' }, 0x1D492: { c: 'q', f: 'BI' }, 0x1D493: { c: 'r', f: 'BI' }, 0x1D494: { c: 's', f: 'BI' }, 0x1D495: { c: 't', f: 'BI' }, 0x1D496: { c: 'u', f: 'BI' }, 0x1D497: { c: 'v', f: 'BI' }, 0x1D498: { c: 'w', f: 'BI' }, 0x1D499: { c: 'x', f: 'BI' }, 0x1D49A: { c: 'y', f: 'BI' }, 0x1D49B: { c: 'z', f: 'BI' }, 0x1D49C: { c: 'A', f: 'SC' }, 0x1D49E: { c: 'C', f: 'SC' }, 0x1D49F: { c: 'D', f: 'SC' }, 0x1D4A2: { c: 'G', f: 'SC' }, 0x1D4A5: { c: 'J', f: 'SC' }, 0x1D4A6: { c: 'K', f: 'SC' }, 0x1D4A9: { c: 'N', f: 'SC' }, 0x1D4AA: { c: 'O', f: 'SC' }, 0x1D4AB: { c: 'P', f: 'SC' }, 0x1D4AC: { c: 'Q', f: 'SC' }, 0x1D4AE: { c: 'S', f: 'SC' }, 0x1D4AF: { c: 'T', f: 'SC' }, 0x1D4B0: { c: 'U', f: 'SC' }, 0x1D4B1: { c: 'V', f: 'SC' }, 0x1D4B2: { c: 'W', f: 'SC' }, 0x1D4B3: { c: 'X', f: 'SC' }, 0x1D4B4: { c: 'Y', f: 'SC' }, 0x1D4B5: { c: 'Z', f: 'SC' }, 0x1D504: { c: 'A', f: 'FR' }, 0x1D505: { c: 'B', f: 'FR' }, 0x1D507: { c: 'D', f: 'FR' }, 0x1D508: { c: 'E', f: 'FR' }, 0x1D509: { c: 'F', f: 'FR' }, 0x1D50A: { c: 'G', f: 'FR' }, 0x1D50D: { c: 'J', f: 'FR' }, 0x1D50E: { c: 'K', f: 'FR' }, 0x1D50F: { c: 'L', f: 'FR' }, 0x1D510: { c: 'M', f: 'FR' }, 0x1D511: { c: 'N', f: 'FR' }, 0x1D512: { c: 'O', f: 'FR' }, 0x1D513: { c: 'P', f: 'FR' }, 0x1D514: { c: 'Q', f: 'FR' }, 0x1D516: { c: 'S', f: 'FR' }, 0x1D517: { c: 'T', f: 'FR' }, 0x1D518: { c: 'U', f: 'FR' }, 0x1D519: { c: 'V', f: 'FR' }, 0x1D51A: { c: 'W', f: 'FR' }, 0x1D51B: { c: 'X', f: 'FR' }, 0x1D51C: { c: 'Y', f: 'FR' }, 0x1D51E: { c: 'a', f: 'FR' }, 0x1D51F: { c: 'b', f: 'FR' }, 0x1D520: { c: 'c', f: 'FR' }, 0x1D521: { c: 'd', f: 'FR' }, 0x1D522: { c: 'e', f: 'FR' }, 0x1D523: { c: 'f', f: 'FR' }, 0x1D524: { c: 'g', f: 'FR' }, 0x1D525: { c: 'h', f: 'FR' }, 0x1D526: { c: 'i', f: 'FR' }, 0x1D527: { c: 'j', f: 'FR' }, 0x1D528: { c: 'k', f: 'FR' }, 0x1D529: { c: 'l', f: 'FR' }, 0x1D52A: { c: 'm', f: 'FR' }, 0x1D52B: { c: 'n', f: 'FR' }, 0x1D52C: { c: 'o', f: 'FR' }, 0x1D52D: { c: 'p', f: 'FR' }, 0x1D52E: { c: 'q', f: 'FR' }, 0x1D52F: { c: 'r', f: 'FR' }, 0x1D530: { c: 's', f: 'FR' }, 0x1D531: { c: 't', f: 'FR' }, 0x1D532: { c: 'u', f: 'FR' }, 0x1D533: { c: 'v', f: 'FR' }, 0x1D534: { c: 'w', f: 'FR' }, 0x1D535: { c: 'x', f: 'FR' }, 0x1D536: { c: 'y', f: 'FR' }, 0x1D537: { c: 'z', f: 'FR' }, 0x1D538: { c: 'A', f: 'A' }, 0x1D539: { c: 'B', f: 'A' }, 0x1D53B: { c: 'D', f: 'A' }, 0x1D53C: { c: 'E', f: 'A' }, 0x1D53D: { c: 'F', f: 'A' }, 0x1D53E: { c: 'G', f: 'A' }, 0x1D540: { c: 'I', f: 'A' }, 0x1D541: { c: 'J', f: 'A' }, 0x1D542: { c: 'K', f: 'A' }, 0x1D543: { c: 'L', f: 'A' }, 0x1D544: { c: 'M', f: 'A' }, 0x1D546: { c: 'O', f: 'A' }, 0x1D54A: { c: 'S', f: 'A' }, 0x1D54B: { c: 'T', f: 'A' }, 0x1D54C: { c: 'U', f: 'A' }, 0x1D54D: { c: 'V', f: 'A' }, 0x1D54E: { c: 'W', f: 'A' }, 0x1D54F: { c: 'X', f: 'A' }, 0x1D550: { c: 'Y', f: 'A' }, 0x1D56C: { c: 'A', f: 'FRB' }, 0x1D56D: { c: 'B', f: 'FRB' }, 0x1D56E: { c: 'C', f: 'FRB' }, 0x1D56F: { c: 'D', f: 'FRB' }, 0x1D570: { c: 'E', f: 'FRB' }, 0x1D571: { c: 'F', f: 'FRB' }, 0x1D572: { c: 'G', f: 'FRB' }, 0x1D573: { c: 'H', f: 'FRB' }, 0x1D574: { c: 'I', f: 'FRB' }, 0x1D575: { c: 'J', f: 'FRB' }, 0x1D576: { c: 'K', f: 'FRB' }, 0x1D577: { c: 'L', f: 'FRB' }, 0x1D578: { c: 'M', f: 'FRB' }, 0x1D579: { c: 'N', f: 'FRB' }, 0x1D57A: { c: 'O', f: 'FRB' }, 0x1D57B: { c: 'P', f: 'FRB' }, 0x1D57C: { c: 'Q', f: 'FRB' }, 0x1D57D: { c: 'R', f: 'FRB' }, 0x1D57E: { c: 'S', f: 'FRB' }, 0x1D57F: { c: 'T', f: 'FRB' }, 0x1D580: { c: 'U', f: 'FRB' }, 0x1D581: { c: 'V', f: 'FRB' }, 0x1D582: { c: 'W', f: 'FRB' }, 0x1D583: { c: 'X', f: 'FRB' }, 0x1D584: { c: 'Y', f: 'FRB' }, 0x1D585: { c: 'Z', f: 'FRB' }, 0x1D586: { c: 'a', f: 'FRB' }, 0x1D587: { c: 'b', f: 'FRB' }, 0x1D588: { c: 'c', f: 'FRB' }, 0x1D589: { c: 'd', f: 'FRB' }, 0x1D58A: { c: 'e', f: 'FRB' }, 0x1D58B: { c: 'f', f: 'FRB' }, 0x1D58C: { c: 'g', f: 'FRB' }, 0x1D58D: { c: 'h', f: 'FRB' }, 0x1D58E: { c: 'i', f: 'FRB' }, 0x1D58F: { c: 'j', f: 'FRB' }, 0x1D590: { c: 'k', f: 'FRB' }, 0x1D591: { c: 'l', f: 'FRB' }, 0x1D592: { c: 'm', f: 'FRB' }, 0x1D593: { c: 'n', f: 'FRB' }, 0x1D594: { c: 'o', f: 'FRB' }, 0x1D595: { c: 'p', f: 'FRB' }, 0x1D596: { c: 'q', f: 'FRB' }, 0x1D597: { c: 'r', f: 'FRB' }, 0x1D598: { c: 's', f: 'FRB' }, 0x1D599: { c: 't', f: 'FRB' }, 0x1D59A: { c: 'u', f: 'FRB' }, 0x1D59B: { c: 'v', f: 'FRB' }, 0x1D59C: { c: 'w', f: 'FRB' }, 0x1D59D: { c: 'x', f: 'FRB' }, 0x1D59E: { c: 'y', f: 'FRB' }, 0x1D59F: { c: 'z', f: 'FRB' }, 0x1D5A0: { c: 'A', f: 'SS' }, 0x1D5A1: { c: 'B', f: 'SS' }, 0x1D5A2: { c: 'C', f: 'SS' }, 0x1D5A3: { c: 'D', f: 'SS' }, 0x1D5A4: { c: 'E', f: 'SS' }, 0x1D5A5: { c: 'F', f: 'SS' }, 0x1D5A6: { c: 'G', f: 'SS' }, 0x1D5A7: { c: 'H', f: 'SS' }, 0x1D5A8: { c: 'I', f: 'SS' }, 0x1D5A9: { c: 'J', f: 'SS' }, 0x1D5AA: { c: 'K', f: 'SS' }, 0x1D5AB: { c: 'L', f: 'SS' }, 0x1D5AC: { c: 'M', f: 'SS' }, 0x1D5AD: { c: 'N', f: 'SS' }, 0x1D5AE: { c: 'O', f: 'SS' }, 0x1D5AF: { c: 'P', f: 'SS' }, 0x1D5B0: { c: 'Q', f: 'SS' }, 0x1D5B1: { c: 'R', f: 'SS' }, 0x1D5B2: { c: 'S', f: 'SS' }, 0x1D5B3: { c: 'T', f: 'SS' }, 0x1D5B4: { c: 'U', f: 'SS' }, 0x1D5B5: { c: 'V', f: 'SS' }, 0x1D5B6: { c: 'W', f: 'SS' }, 0x1D5B7: { c: 'X', f: 'SS' }, 0x1D5B8: { c: 'Y', f: 'SS' }, 0x1D5B9: { c: 'Z', f: 'SS' }, 0x1D5BA: { c: 'a', f: 'SS' }, 0x1D5BB: { c: 'b', f: 'SS' }, 0x1D5BC: { c: 'c', f: 'SS' }, 0x1D5BD: { c: 'd', f: 'SS' }, 0x1D5BE: { c: 'e', f: 'SS' }, 0x1D5BF: { c: 'f', f: 'SS' }, 0x1D5C0: { c: 'g', f: 'SS' }, 0x1D5C1: { c: 'h', f: 'SS' }, 0x1D5C2: { c: 'i', f: 'SS' }, 0x1D5C3: { c: 'j', f: 'SS' }, 0x1D5C4: { c: 'k', f: 'SS' }, 0x1D5C5: { c: 'l', f: 'SS' }, 0x1D5C6: { c: 'm', f: 'SS' }, 0x1D5C7: { c: 'n', f: 'SS' }, 0x1D5C8: { c: 'o', f: 'SS' }, 0x1D5C9: { c: 'p', f: 'SS' }, 0x1D5CA: { c: 'q', f: 'SS' }, 0x1D5CB: { c: 'r', f: 'SS' }, 0x1D5CC: { c: 's', f: 'SS' }, 0x1D5CD: { c: 't', f: 'SS' }, 0x1D5CE: { c: 'u', f: 'SS' }, 0x1D5CF: { c: 'v', f: 'SS' }, 0x1D5D0: { c: 'w', f: 'SS' }, 0x1D5D1: { c: 'x', f: 'SS' }, 0x1D5D2: { c: 'y', f: 'SS' }, 0x1D5D3: { c: 'z', f: 'SS' }, 0x1D5D4: { c: 'A', f: 'SSB' }, 0x1D5D5: { c: 'B', f: 'SSB' }, 0x1D5D6: { c: 'C', f: 'SSB' }, 0x1D5D7: { c: 'D', f: 'SSB' }, 0x1D5D8: { c: 'E', f: 'SSB' }, 0x1D5D9: { c: 'F', f: 'SSB' }, 0x1D5DA: { c: 'G', f: 'SSB' }, 0x1D5DB: { c: 'H', f: 'SSB' }, 0x1D5DC: { c: 'I', f: 'SSB' }, 0x1D5DD: { c: 'J', f: 'SSB' }, 0x1D5DE: { c: 'K', f: 'SSB' }, 0x1D5DF: { c: 'L', f: 'SSB' }, 0x1D5E0: { c: 'M', f: 'SSB' }, 0x1D5E1: { c: 'N', f: 'SSB' }, 0x1D5E2: { c: 'O', f: 'SSB' }, 0x1D5E3: { c: 'P', f: 'SSB' }, 0x1D5E4: { c: 'Q', f: 'SSB' }, 0x1D5E5: { c: 'R', f: 'SSB' }, 0x1D5E6: { c: 'S', f: 'SSB' }, 0x1D5E7: { c: 'T', f: 'SSB' }, 0x1D5E8: { c: 'U', f: 'SSB' }, 0x1D5E9: { c: 'V', f: 'SSB' }, 0x1D5EA: { c: 'W', f: 'SSB' }, 0x1D5EB: { c: 'X', f: 'SSB' }, 0x1D5EC: { c: 'Y', f: 'SSB' }, 0x1D5ED: { c: 'Z', f: 'SSB' }, 0x1D5EE: { c: 'a', f: 'SSB' }, 0x1D5EF: { c: 'b', f: 'SSB' }, 0x1D5F0: { c: 'c', f: 'SSB' }, 0x1D5F1: { c: 'd', f: 'SSB' }, 0x1D5F2: { c: 'e', f: 'SSB' }, 0x1D5F3: { c: 'f', f: 'SSB' }, 0x1D5F4: { c: 'g', f: 'SSB' }, 0x1D5F5: { c: 'h', f: 'SSB' }, 0x1D5F6: { c: 'i', f: 'SSB' }, 0x1D5F7: { c: 'j', f: 'SSB' }, 0x1D5F8: { c: 'k', f: 'SSB' }, 0x1D5F9: { c: 'l', f: 'SSB' }, 0x1D5FA: { c: 'm', f: 'SSB' }, 0x1D5FB: { c: 'n', f: 'SSB' }, 0x1D5FC: { c: 'o', f: 'SSB' }, 0x1D5FD: { c: 'p', f: 'SSB' }, 0x1D5FE: { c: 'q', f: 'SSB' }, 0x1D5FF: { c: 'r', f: 'SSB' }, 0x1D600: { c: 's', f: 'SSB' }, 0x1D601: { c: 't', f: 'SSB' }, 0x1D602: { c: 'u', f: 'SSB' }, 0x1D603: { c: 'v', f: 'SSB' }, 0x1D604: { c: 'w', f: 'SSB' }, 0x1D605: { c: 'x', f: 'SSB' }, 0x1D606: { c: 'y', f: 'SSB' }, 0x1D607: { c: 'z', f: 'SSB' }, 0x1D608: { c: 'A', f: 'SSI' }, 0x1D609: { c: 'B', f: 'SSI' }, 0x1D60A: { c: 'C', f: 'SSI' }, 0x1D60B: { c: 'D', f: 'SSI' }, 0x1D60C: { c: 'E', f: 'SSI' }, 0x1D60D: { c: 'F', f: 'SSI' }, 0x1D60E: { c: 'G', f: 'SSI' }, 0x1D60F: { c: 'H', f: 'SSI' }, 0x1D610: { c: 'I', f: 'SSI' }, 0x1D611: { c: 'J', f: 'SSI' }, 0x1D612: { c: 'K', f: 'SSI' }, 0x1D613: { c: 'L', f: 'SSI' }, 0x1D614: { c: 'M', f: 'SSI' }, 0x1D615: { c: 'N', f: 'SSI' }, 0x1D616: { c: 'O', f: 'SSI' }, 0x1D617: { c: 'P', f: 'SSI' }, 0x1D618: { c: 'Q', f: 'SSI' }, 0x1D619: { c: 'R', f: 'SSI' }, 0x1D61A: { c: 'S', f: 'SSI' }, 0x1D61B: { c: 'T', f: 'SSI' }, 0x1D61C: { c: 'U', f: 'SSI' }, 0x1D61D: { c: 'V', f: 'SSI' }, 0x1D61E: { c: 'W', f: 'SSI' }, 0x1D61F: { c: 'X', f: 'SSI' }, 0x1D620: { c: 'Y', f: 'SSI' }, 0x1D621: { c: 'Z', f: 'SSI' }, 0x1D622: { c: 'a', f: 'SSI' }, 0x1D623: { c: 'b', f: 'SSI' }, 0x1D624: { c: 'c', f: 'SSI' }, 0x1D625: { c: 'd', f: 'SSI' }, 0x1D626: { c: 'e', f: 'SSI' }, 0x1D627: { c: 'f', f: 'SSI' }, 0x1D628: { c: 'g', f: 'SSI' }, 0x1D629: { c: 'h', f: 'SSI' }, 0x1D62A: { c: 'i', f: 'SSI' }, 0x1D62B: { c: 'j', f: 'SSI' }, 0x1D62C: { c: 'k', f: 'SSI' }, 0x1D62D: { c: 'l', f: 'SSI' }, 0x1D62E: { c: 'm', f: 'SSI' }, 0x1D62F: { c: 'n', f: 'SSI' }, 0x1D630: { c: 'o', f: 'SSI' }, 0x1D631: { c: 'p', f: 'SSI' }, 0x1D632: { c: 'q', f: 'SSI' }, 0x1D633: { c: 'r', f: 'SSI' }, 0x1D634: { c: 's', f: 'SSI' }, 0x1D635: { c: 't', f: 'SSI' }, 0x1D636: { c: 'u', f: 'SSI' }, 0x1D637: { c: 'v', f: 'SSI' }, 0x1D638: { c: 'w', f: 'SSI' }, 0x1D639: { c: 'x', f: 'SSI' }, 0x1D63A: { c: 'y', f: 'SSI' }, 0x1D63B: { c: 'z', f: 'SSI' }, 0x1D670: { c: 'A', f: 'T' }, 0x1D671: { c: 'B', f: 'T' }, 0x1D672: { c: 'C', f: 'T' }, 0x1D673: { c: 'D', f: 'T' }, 0x1D674: { c: 'E', f: 'T' }, 0x1D675: { c: 'F', f: 'T' }, 0x1D676: { c: 'G', f: 'T' }, 0x1D677: { c: 'H', f: 'T' }, 0x1D678: { c: 'I', f: 'T' }, 0x1D679: { c: 'J', f: 'T' }, 0x1D67A: { c: 'K', f: 'T' }, 0x1D67B: { c: 'L', f: 'T' }, 0x1D67C: { c: 'M', f: 'T' }, 0x1D67D: { c: 'N', f: 'T' }, 0x1D67E: { c: 'O', f: 'T' }, 0x1D67F: { c: 'P', f: 'T' }, 0x1D680: { c: 'Q', f: 'T' }, 0x1D681: { c: 'R', f: 'T' }, 0x1D682: { c: 'S', f: 'T' }, 0x1D683: { c: 'T', f: 'T' }, 0x1D684: { c: 'U', f: 'T' }, 0x1D685: { c: 'V', f: 'T' }, 0x1D686: { c: 'W', f: 'T' }, 0x1D687: { c: 'X', f: 'T' }, 0x1D688: { c: 'Y', f: 'T' }, 0x1D689: { c: 'Z', f: 'T' }, 0x1D68A: { c: 'a', f: 'T' }, 0x1D68B: { c: 'b', f: 'T' }, 0x1D68C: { c: 'c', f: 'T' }, 0x1D68D: { c: 'd', f: 'T' }, 0x1D68E: { c: 'e', f: 'T' }, 0x1D68F: { c: 'f', f: 'T' }, 0x1D690: { c: 'g', f: 'T' }, 0x1D691: { c: 'h', f: 'T' }, 0x1D692: { c: 'i', f: 'T' }, 0x1D693: { c: 'j', f: 'T' }, 0x1D694: { c: 'k', f: 'T' }, 0x1D695: { c: 'l', f: 'T' }, 0x1D696: { c: 'm', f: 'T' }, 0x1D697: { c: 'n', f: 'T' }, 0x1D698: { c: 'o', f: 'T' }, 0x1D699: { c: 'p', f: 'T' }, 0x1D69A: { c: 'q', f: 'T' }, 0x1D69B: { c: 'r', f: 'T' }, 0x1D69C: { c: 's', f: 'T' }, 0x1D69D: { c: 't', f: 'T' }, 0x1D69E: { c: 'u', f: 'T' }, 0x1D69F: { c: 'v', f: 'T' }, 0x1D6A0: { c: 'w', f: 'T' }, 0x1D6A1: { c: 'x', f: 'T' }, 0x1D6A2: { c: 'y', f: 'T' }, 0x1D6A3: { c: 'z', f: 'T' }, 0x1D6A8: { c: 'A', f: 'B' }, 0x1D6A9: { c: 'B', f: 'B' }, 0x1D6AA: { c: '\\393', f: 'B' }, 0x1D6AB: { c: '\\394', f: 'B' }, 0x1D6AC: { c: 'E', f: 'B' }, 0x1D6AD: { c: 'Z', f: 'B' }, 0x1D6AE: { c: 'H', f: 'B' }, 0x1D6AF: { c: '\\398', f: 'B' }, 0x1D6B0: { c: 'I', f: 'B' }, 0x1D6B1: { c: 'K', f: 'B' }, 0x1D6B2: { c: '\\39B', f: 'B' }, 0x1D6B3: { c: 'M', f: 'B' }, 0x1D6B4: { c: 'N', f: 'B' }, 0x1D6B5: { c: '\\39E', f: 'B' }, 0x1D6B6: { c: 'O', f: 'B' }, 0x1D6B7: { c: '\\3A0', f: 'B' }, 0x1D6B8: { c: 'P', f: 'B' }, 0x1D6BA: { c: '\\3A3', f: 'B' }, 0x1D6BB: { c: 'T', f: 'B' }, 0x1D6BC: { c: '\\3A5', f: 'B' }, 0x1D6BD: { c: '\\3A6', f: 'B' }, 0x1D6BE: { c: 'X', f: 'B' }, 0x1D6BF: { c: '\\3A8', f: 'B' }, 0x1D6C0: { c: '\\3A9', f: 'B' }, 0x1D6C1: { c: '\\2207', f: 'B' }, 0x1D6E2: { c: 'A', f: 'I' }, 0x1D6E3: { c: 'B', f: 'I' }, 0x1D6E4: { c: '\\393', f: 'I' }, 0x1D6E5: { c: '\\394', f: 'I' }, 0x1D6E6: { c: 'E', f: 'I' }, 0x1D6E7: { c: 'Z', f: 'I' }, 0x1D6E8: { c: 'H', f: 'I' }, 0x1D6E9: { c: '\\398', f: 'I' }, 0x1D6EA: { c: 'I', f: 'I' }, 0x1D6EB: { c: 'K', f: 'I' }, 0x1D6EC: { c: '\\39B', f: 'I' }, 0x1D6ED: { c: 'M', f: 'I' }, 0x1D6EE: { c: 'N', f: 'I' }, 0x1D6EF: { c: '\\39E', f: 'I' }, 0x1D6F0: { c: 'O', f: 'I' }, 0x1D6F1: { c: '\\3A0', f: 'I' }, 0x1D6F2: { c: 'P', f: 'I' }, 0x1D6F4: { c: '\\3A3', f: 'I' }, 0x1D6F5: { c: 'T', f: 'I' }, 0x1D6F6: { c: '\\3A5', f: 'I' }, 0x1D6F7: { c: '\\3A6', f: 'I' }, 0x1D6F8: { c: 'X', f: 'I' }, 0x1D6F9: { c: '\\3A8', f: 'I' }, 0x1D6FA: { c: '\\3A9', f: 'I' }, 0x1D6FC: { c: '\\3B1', f: 'I' }, 0x1D6FD: { c: '\\3B2', f: 'I' }, 0x1D6FE: { c: '\\3B3', f: 'I' }, 0x1D6FF: { c: '\\3B4', f: 'I' }, 0x1D700: { c: '\\3B5', f: 'I' }, 0x1D701: { c: '\\3B6', f: 'I' }, 0x1D702: { c: '\\3B7', f: 'I' }, 0x1D703: { c: '\\3B8', f: 'I' }, 0x1D704: { c: '\\3B9', f: 'I' }, 0x1D705: { c: '\\3BA', f: 'I' }, 0x1D706: { c: '\\3BB', f: 'I' }, 0x1D707: { c: '\\3BC', f: 'I' }, 0x1D708: { c: '\\3BD', f: 'I' }, 0x1D709: { c: '\\3BE', f: 'I' }, 0x1D70A: { c: '\\3BF', f: 'I' }, 0x1D70B: { c: '\\3C0', f: 'I' }, 0x1D70C: { c: '\\3C1', f: 'I' }, 0x1D70D: { c: '\\3C2', f: 'I' }, 0x1D70E: { c: '\\3C3', f: 'I' }, 0x1D70F: { c: '\\3C4', f: 'I' }, 0x1D710: { c: '\\3C5', f: 'I' }, 0x1D711: { c: '\\3C6', f: 'I' }, 0x1D712: { c: '\\3C7', f: 'I' }, 0x1D713: { c: '\\3C8', f: 'I' }, 0x1D714: { c: '\\3C9', f: 'I' }, 0x1D715: { c: '\\2202' }, 0x1D716: { c: '\\3F5', f: 'I' }, 0x1D717: { c: '\\3D1', f: 'I' }, 0x1D718: { c: '\\E009', f: 'A' }, 0x1D719: { c: '\\3D5', f: 'I' }, 0x1D71A: { c: '\\3F1', f: 'I' }, 0x1D71B: { c: '\\3D6', f: 'I' }, 0x1D71C: { c: 'A', f: 'BI' }, 0x1D71D: { c: 'B', f: 'BI' }, 0x1D71E: { c: '\\393', f: 'BI' }, 0x1D71F: { c: '\\394', f: 'BI' }, 0x1D720: { c: 'E', f: 'BI' }, 0x1D721: { c: 'Z', f: 'BI' }, 0x1D722: { c: 'H', f: 'BI' }, 0x1D723: { c: '\\398', f: 'BI' }, 0x1D724: { c: 'I', f: 'BI' }, 0x1D725: { c: 'K', f: 'BI' }, 0x1D726: { c: '\\39B', f: 'BI' }, 0x1D727: { c: 'M', f: 'BI' }, 0x1D728: { c: 'N', f: 'BI' }, 0x1D729: { c: '\\39E', f: 'BI' }, 0x1D72A: { c: 'O', f: 'BI' }, 0x1D72B: { c: '\\3A0', f: 'BI' }, 0x1D72C: { c: 'P', f: 'BI' }, 0x1D72E: { c: '\\3A3', f: 'BI' }, 0x1D72F: { c: 'T', f: 'BI' }, 0x1D730: { c: '\\3A5', f: 'BI' }, 0x1D731: { c: '\\3A6', f: 'BI' }, 0x1D732: { c: 'X', f: 'BI' }, 0x1D733: { c: '\\3A8', f: 'BI' }, 0x1D734: { c: '\\3A9', f: 'BI' }, 0x1D736: { c: '\\3B1', f: 'BI' }, 0x1D737: { c: '\\3B2', f: 'BI' }, 0x1D738: { c: '\\3B3', f: 'BI' }, 0x1D739: { c: '\\3B4', f: 'BI' }, 0x1D73A: { c: '\\3B5', f: 'BI' }, 0x1D73B: { c: '\\3B6', f: 'BI' }, 0x1D73C: { c: '\\3B7', f: 'BI' }, 0x1D73D: { c: '\\3B8', f: 'BI' }, 0x1D73E: { c: '\\3B9', f: 'BI' }, 0x1D73F: { c: '\\3BA', f: 'BI' }, 0x1D740: { c: '\\3BB', f: 'BI' }, 0x1D741: { c: '\\3BC', f: 'BI' }, 0x1D742: { c: '\\3BD', f: 'BI' }, 0x1D743: { c: '\\3BE', f: 'BI' }, 0x1D744: { c: '\\3BF', f: 'BI' }, 0x1D745: { c: '\\3C0', f: 'BI' }, 0x1D746: { c: '\\3C1', f: 'BI' }, 0x1D747: { c: '\\3C2', f: 'BI' }, 0x1D748: { c: '\\3C3', f: 'BI' }, 0x1D749: { c: '\\3C4', f: 'BI' }, 0x1D74A: { c: '\\3C5', f: 'BI' }, 0x1D74B: { c: '\\3C6', f: 'BI' }, 0x1D74C: { c: '\\3C7', f: 'BI' }, 0x1D74D: { c: '\\3C8', f: 'BI' }, 0x1D74E: { c: '\\3C9', f: 'BI' }, 0x1D74F: { c: '\\2202', f: 'B' }, 0x1D750: { c: '\\3F5', f: 'BI' }, 0x1D751: { c: '\\3D1', f: 'BI' }, 0x1D752: { c: '\\E009', f: 'A' }, 0x1D753: { c: '\\3D5', f: 'BI' }, 0x1D754: { c: '\\3F1', f: 'BI' }, 0x1D755: { c: '\\3D6', f: 'BI' }, 0x1D756: { c: 'A', f: 'SSB' }, 0x1D757: { c: 'B', f: 'SSB' }, 0x1D758: { c: '\\393', f: 'SSB' }, 0x1D759: { c: '\\394', f: 'SSB' }, 0x1D75A: { c: 'E', f: 'SSB' }, 0x1D75B: { c: 'Z', f: 'SSB' }, 0x1D75C: { c: 'H', f: 'SSB' }, 0x1D75D: { c: '\\398', f: 'SSB' }, 0x1D75E: { c: 'I', f: 'SSB' }, 0x1D75F: { c: 'K', f: 'SSB' }, 0x1D760: { c: '\\39B', f: 'SSB' }, 0x1D761: { c: 'M', f: 'SSB' }, 0x1D762: { c: 'N', f: 'SSB' }, 0x1D763: { c: '\\39E', f: 'SSB' }, 0x1D764: { c: 'O', f: 'SSB' }, 0x1D765: { c: '\\3A0', f: 'SSB' }, 0x1D766: { c: 'P', f: 'SSB' }, 0x1D768: { c: '\\3A3', f: 'SSB' }, 0x1D769: { c: 'T', f: 'SSB' }, 0x1D76A: { c: '\\3A5', f: 'SSB' }, 0x1D76B: { c: '\\3A6', f: 'SSB' }, 0x1D76C: { c: 'X', f: 'SSB' }, 0x1D76D: { c: '\\3A8', f: 'SSB' }, 0x1D76E: { c: '\\3A9', f: 'SSB' }, 0x1D7CE: { c: '0', f: 'B' }, 0x1D7CF: { c: '1', f: 'B' }, 0x1D7D0: { c: '2', f: 'B' }, 0x1D7D1: { c: '3', f: 'B' }, 0x1D7D2: { c: '4', f: 'B' }, 0x1D7D3: { c: '5', f: 'B' }, 0x1D7D4: { c: '6', f: 'B' }, 0x1D7D5: { c: '7', f: 'B' }, 0x1D7D6: { c: '8', f: 'B' }, 0x1D7D7: { c: '9', f: 'B' }, 0x1D7E2: { c: '0', f: 'SS' }, 0x1D7E3: { c: '1', f: 'SS' }, 0x1D7E4: { c: '2', f: 'SS' }, 0x1D7E5: { c: '3', f: 'SS' }, 0x1D7E6: { c: '4', f: 'SS' }, 0x1D7E7: { c: '5', f: 'SS' }, 0x1D7E8: { c: '6', f: 'SS' }, 0x1D7E9: { c: '7', f: 'SS' }, 0x1D7EA: { c: '8', f: 'SS' }, 0x1D7EB: { c: '9', f: 'SS' }, 0x1D7EC: { c: '0', f: 'SSB' }, 0x1D7ED: { c: '1', f: 'SSB' }, 0x1D7EE: { c: '2', f: 'SSB' }, 0x1D7EF: { c: '3', f: 'SSB' }, 0x1D7F0: { c: '4', f: 'SSB' }, 0x1D7F1: { c: '5', f: 'SSB' }, 0x1D7F2: { c: '6', f: 'SSB' }, 0x1D7F3: { c: '7', f: 'SSB' }, 0x1D7F4: { c: '8', f: 'SSB' }, 0x1D7F5: { c: '9', f: 'SSB' }, 0x1D7F6: { c: '0', f: 'T' }, 0x1D7F7: { c: '1', f: 'T' }, 0x1D7F8: { c: '2', f: 'T' }, 0x1D7F9: { c: '3', f: 'T' }, 0x1D7FA: { c: '4', f: 'T' }, 0x1D7FB: { c: '5', f: 'T' }, 0x1D7FC: { c: '6', f: 'T' }, 0x1D7FD: { c: '7', f: 'T' }, 0x1D7FE: { c: '8', f: 'T' }, 0x1D7FF: { c: '9', f: 'T' }, }); //# sourceMappingURL=normal.js.map /***/ }), /* 19 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normal = void 0; exports.normal = { 0x20: [0, 0, .25], 0x21: [.716, 0, .278], 0x22: [.694, -0.379, .5], 0x23: [.694, .194, .833], 0x24: [.75, .056, .5], 0x25: [.75, .056, .833], 0x26: [.716, .022, .778], 0x27: [.694, -0.379, .278], 0x28: [.75, .25, .389], 0x29: [.75, .25, .389], 0x2A: [.75, -0.32, .5], 0x2B: [.583, .082, .778], 0x2C: [.121, .194, .278], 0x2D: [.252, -0.179, .333], 0x2E: [.12, 0, .278], 0x2F: [.75, .25, .5], 0x30: [.666, .022, .5], 0x31: [.666, 0, .5], 0x32: [.666, 0, .5], 0x33: [.665, .022, .5], 0x34: [.677, 0, .5], 0x35: [.666, .022, .5], 0x36: [.666, .022, .5], 0x37: [.676, .022, .5], 0x38: [.666, .022, .5], 0x39: [.666, .022, .5], 0x3A: [.43, 0, .278], 0x3B: [.43, .194, .278], 0x3C: [.54, .04, .778], 0x3D: [.583, .082, .778], 0x3E: [.54, .04, .778], 0x3F: [.705, 0, .472], 0x40: [.705, .011, .778], 0x41: [.716, 0, .75], 0x42: [.683, 0, .708], 0x43: [.705, .021, .722], 0x44: [.683, 0, .764], 0x45: [.68, 0, .681], 0x46: [.68, 0, .653], 0x47: [.705, .022, .785], 0x48: [.683, 0, .75], 0x49: [.683, 0, .361], 0x4A: [.683, .022, .514], 0x4B: [.683, 0, .778], 0x4C: [.683, 0, .625], 0x4D: [.683, 0, .917], 0x4E: [.683, 0, .75], 0x4F: [.705, .022, .778], 0x50: [.683, 0, .681], 0x51: [.705, .193, .778], 0x52: [.683, .022, .736], 0x53: [.705, .022, .556], 0x54: [.677, 0, .722], 0x55: [.683, .022, .75], 0x56: [.683, .022, .75], 0x57: [.683, .022, 1.028], 0x58: [.683, 0, .75], 0x59: [.683, 0, .75], 0x5A: [.683, 0, .611], 0x5B: [.75, .25, .278], 0x5C: [.75, .25, .5], 0x5D: [.75, .25, .278], 0x5E: [.694, -0.531, .5], 0x5F: [-0.025, .062, .5], 0x60: [.699, -0.505, .5], 0x61: [.448, .011, .5], 0x62: [.694, .011, .556], 0x63: [.448, .011, .444], 0x64: [.694, .011, .556], 0x65: [.448, .011, .444], 0x66: [.705, 0, .306, { ic: .066 }], 0x67: [.453, .206, .5], 0x68: [.694, 0, .556], 0x69: [.669, 0, .278], 0x6A: [.669, .205, .306], 0x6B: [.694, 0, .528], 0x6C: [.694, 0, .278], 0x6D: [.442, 0, .833], 0x6E: [.442, 0, .556], 0x6F: [.448, .01, .5], 0x70: [.442, .194, .556], 0x71: [.442, .194, .528], 0x72: [.442, 0, .392], 0x73: [.448, .011, .394], 0x74: [.615, .01, .389], 0x75: [.442, .011, .556], 0x76: [.431, .011, .528], 0x77: [.431, .011, .722], 0x78: [.431, 0, .528], 0x79: [.431, .204, .528], 0x7A: [.431, 0, .444], 0x7B: [.75, .25, .5], 0x7C: [.75, .249, .278], 0x7D: [.75, .25, .5], 0x7E: [.318, -0.215, .5], 0xA0: [0, 0, .25], 0xA3: [.714, .011, .769], 0xA5: [.683, 0, .75], 0xA8: [.669, -0.554, .5], 0xAC: [.356, -0.089, .667], 0xAE: [.709, .175, .947], 0xAF: [.59, -0.544, .5], 0xB0: [.715, -0.542, .5], 0xB1: [.666, 0, .778], 0xB4: [.699, -0.505, .5], 0xB7: [.31, -0.19, .278], 0xD7: [.491, -0.009, .778], 0xF0: [.749, .021, .556], 0xF7: [.537, .036, .778], 0x131: [.442, 0, .278, { sk: .0278 }], 0x237: [.442, .205, .306, { sk: .0833 }], 0x2B9: [.56, -0.043, .275], 0x2C6: [.694, -0.531, .5], 0x2C7: [.644, -0.513, .5], 0x2C9: [.59, -0.544, .5], 0x2CA: [.699, -0.505, .5], 0x2CB: [.699, -0.505, .5], 0x2D8: [.694, -0.515, .5], 0x2D9: [.669, -0.549, .5], 0x2DA: [.715, -0.542, .5], 0x2DC: [.668, -0.565, .5], 0x300: [.699, -0.505, 0], 0x301: [.699, -0.505, 0], 0x302: [.694, -0.531, 0], 0x303: [.668, -0.565, 0], 0x304: [.59, -0.544, 0], 0x306: [.694, -0.515, 0], 0x307: [.669, -0.549, 0], 0x308: [.669, -0.554, 0], 0x30A: [.715, -0.542, 0], 0x30B: [.701, -0.51, 0], 0x30C: [.644, -0.513, 0], 0x338: [.716, .215, 0], 0x391: [.716, 0, .75], 0x392: [.683, 0, .708], 0x393: [.68, 0, .625], 0x394: [.716, 0, .833], 0x395: [.68, 0, .681], 0x396: [.683, 0, .611], 0x397: [.683, 0, .75], 0x398: [.705, .022, .778], 0x399: [.683, 0, .361], 0x39A: [.683, 0, .778], 0x39B: [.716, 0, .694], 0x39C: [.683, 0, .917], 0x39D: [.683, 0, .75], 0x39E: [.677, 0, .667], 0x39F: [.705, .022, .778], 0x3A0: [.68, 0, .75], 0x3A1: [.683, 0, .681], 0x3A3: [.683, 0, .722], 0x3A4: [.677, 0, .722], 0x3A5: [.705, 0, .778], 0x3A6: [.683, 0, .722], 0x3A7: [.683, 0, .75], 0x3A8: [.683, 0, .778], 0x3A9: [.704, 0, .722], 0x2000: [0, 0, .5], 0x2001: [0, 0, 1], 0x2002: [0, 0, .5], 0x2003: [0, 0, 1], 0x2004: [0, 0, .333], 0x2005: [0, 0, .25], 0x2006: [0, 0, .167], 0x2009: [0, 0, .167], 0x200A: [0, 0, .1], 0x200B: [0, 0, 0], 0x200C: [0, 0, 0], 0x2013: [.285, -0.248, .5], 0x2014: [.285, -0.248, 1], 0x2015: [.285, -0.248, 1], 0x2016: [.75, .25, .5], 0x2017: [-0.025, .062, .5], 0x2018: [.694, -0.379, .278], 0x2019: [.694, -0.379, .278], 0x201C: [.694, -0.379, .5], 0x201D: [.694, -0.379, .5], 0x2020: [.705, .216, .444], 0x2021: [.705, .205, .444], 0x2022: [.444, -0.055, .5], 0x2026: [.12, 0, 1.172], 0x2032: [.56, -0.043, .275], 0x2033: [.56, 0, .55], 0x2034: [.56, 0, .825], 0x2035: [.56, -0.043, .275], 0x2036: [.56, 0, .55], 0x2037: [.56, 0, .825], 0x203E: [.59, -0.544, .5], 0x2044: [.75, .25, .5], 0x2057: [.56, 0, 1.1], 0x2060: [0, 0, 0], 0x2061: [0, 0, 0], 0x2062: [0, 0, 0], 0x2063: [0, 0, 0], 0x2064: [0, 0, 0], 0x20D7: [.714, -0.516, .5], 0x2102: [.702, .019, .722], 0x210B: [.717, .036, .969, { ic: .272, sk: .333 }], 0x210C: [.666, .133, .72], 0x210D: [.683, 0, .778], 0x210E: [.694, .011, .576, { sk: -0.0278 }], 0x210F: [.695, .013, .54, { ic: .022 }], 0x2110: [.717, .314, 1.052, { ic: .081, sk: .417 }], 0x2111: [.686, .026, .554], 0x2112: [.717, .017, .874, { ic: .161, sk: .306 }], 0x2113: [.705, .02, .417, { sk: .111 }], 0x2115: [.683, .02, .722], 0x2118: [.453, .216, .636, { sk: .111 }], 0x2119: [.683, 0, .611], 0x211A: [.701, .181, .778], 0x211B: [.717, .017, .85, { ic: .037, sk: .194 }], 0x211C: [.686, .026, .828], 0x211D: [.683, 0, .722], 0x2124: [.683, 0, .667], 0x2126: [.704, 0, .722], 0x2127: [.684, .022, .722], 0x2128: [.729, .139, .602], 0x212C: [.708, .028, .908, { ic: .02, sk: .194 }], 0x212D: [.685, .024, .613], 0x2130: [.707, .008, .562, { ic: .156, sk: .139 }], 0x2131: [.735, .036, .895, { ic: .095, sk: .222 }], 0x2132: [.695, 0, .556], 0x2133: [.721, .05, 1.08, { ic: .136, sk: .444 }], 0x2135: [.694, 0, .611], 0x2136: [.763, .021, .667, { ic: .02 }], 0x2137: [.764, .043, .444], 0x2138: [.764, .043, .667], 0x2141: [.705, .023, .639], 0x2190: [.511, .011, 1], 0x2191: [.694, .193, .5], 0x2192: [.511, .011, 1], 0x2193: [.694, .194, .5], 0x2194: [.511, .011, 1], 0x2195: [.772, .272, .5], 0x2196: [.72, .195, 1], 0x2197: [.72, .195, 1], 0x2198: [.695, .22, 1], 0x2199: [.695, .22, 1], 0x219A: [.437, -0.06, 1], 0x219B: [.437, -0.06, 1], 0x219E: [.417, -0.083, 1], 0x21A0: [.417, -0.083, 1], 0x21A2: [.417, -0.083, 1.111], 0x21A3: [.417, -0.083, 1.111], 0x21A6: [.511, .011, 1], 0x21A9: [.511, .011, 1.126], 0x21AA: [.511, .011, 1.126], 0x21AB: [.575, .041, 1], 0x21AC: [.575, .041, 1], 0x21AD: [.417, -0.083, 1.389], 0x21AE: [.437, -0.06, 1], 0x21B0: [.722, 0, .5], 0x21B1: [.722, 0, .5], 0x21B6: [.461, 0, 1], 0x21B7: [.46, 0, 1], 0x21BA: [.65, .083, .778], 0x21BB: [.65, .083, .778], 0x21BC: [.511, -0.23, 1], 0x21BD: [.27, .011, 1], 0x21BE: [.694, .194, .417], 0x21BF: [.694, .194, .417], 0x21C0: [.511, -0.23, 1], 0x21C1: [.27, .011, 1], 0x21C2: [.694, .194, .417], 0x21C3: [.694, .194, .417], 0x21C4: [.667, 0, 1], 0x21C6: [.667, 0, 1], 0x21C7: [.583, .083, 1], 0x21C8: [.694, .193, .833], 0x21C9: [.583, .083, 1], 0x21CA: [.694, .194, .833], 0x21CB: [.514, .014, 1], 0x21CC: [.671, .011, 1], 0x21CD: [.534, .035, 1], 0x21CE: [.534, .037, 1], 0x21CF: [.534, .035, 1], 0x21D0: [.525, .024, 1], 0x21D1: [.694, .194, .611], 0x21D2: [.525, .024, 1], 0x21D3: [.694, .194, .611], 0x21D4: [.526, .025, 1], 0x21D5: [.772, .272, .611], 0x21DA: [.611, .111, 1], 0x21DB: [.611, .111, 1], 0x21DD: [.417, -0.083, 1], 0x21E0: [.437, -0.064, 1.334], 0x21E2: [.437, -0.064, 1.334], 0x2200: [.694, .022, .556], 0x2201: [.846, .021, .5], 0x2202: [.715, .022, .531, { ic: .035, sk: .0833 }], 0x2203: [.694, 0, .556], 0x2204: [.716, .215, .556], 0x2205: [.772, .078, .5], 0x2206: [.716, 0, .833], 0x2207: [.683, .033, .833], 0x2208: [.54, .04, .667], 0x2209: [.716, .215, .667], 0x220B: [.54, .04, .667], 0x220C: [.716, .215, .667], 0x220D: [.44, 0, .429, { ic: .027 }], 0x220F: [.75, .25, .944], 0x2210: [.75, .25, .944], 0x2211: [.75, .25, 1.056], 0x2212: [.583, .082, .778], 0x2213: [.5, .166, .778], 0x2214: [.766, .093, .778], 0x2215: [.75, .25, .5], 0x2216: [.75, .25, .5], 0x2217: [.465, -0.035, .5], 0x2218: [.444, -0.055, .5], 0x2219: [.444, -0.055, .5], 0x221A: [.8, .2, .833, { ic: .02 }], 0x221D: [.442, .011, .778], 0x221E: [.442, .011, 1], 0x2220: [.694, 0, .722], 0x2221: [.714, .02, .722], 0x2222: [.551, .051, .722], 0x2223: [.75, .249, .278], 0x2224: [.75, .252, .278, { ic: .019 }], 0x2225: [.75, .25, .5], 0x2226: [.75, .25, .5, { ic: .018 }], 0x2227: [.598, .022, .667], 0x2228: [.598, .022, .667], 0x2229: [.598, .022, .667], 0x222A: [.598, .022, .667], 0x222B: [.716, .216, .417, { ic: .055 }], 0x222C: [.805, .306, .819, { ic: .138 }], 0x222D: [.805, .306, 1.166, { ic: .138 }], 0x222E: [.805, .306, .472, { ic: .138 }], 0x2234: [.471, .082, .667], 0x2235: [.471, .082, .667], 0x223C: [.367, -0.133, .778], 0x223D: [.367, -0.133, .778], 0x2240: [.583, .083, .278], 0x2241: [.467, -0.032, .778], 0x2242: [.463, -0.034, .778], 0x2243: [.464, -0.036, .778], 0x2244: [.716, .215, .778], 0x2245: [.589, -0.022, .778], 0x2247: [.652, .155, .778], 0x2248: [.483, -0.055, .778], 0x2249: [.716, .215, .778], 0x224A: [.579, .039, .778], 0x224D: [.484, -0.016, .778], 0x224E: [.492, -0.008, .778], 0x224F: [.492, -0.133, .778], 0x2250: [.67, -0.133, .778], 0x2251: [.609, .108, .778], 0x2252: [.601, .101, .778], 0x2253: [.601, .102, .778], 0x2256: [.367, -0.133, .778], 0x2257: [.721, -0.133, .778], 0x225C: [.859, -0.133, .778], 0x2260: [.716, .215, .778], 0x2261: [.464, -0.036, .778], 0x2262: [.716, .215, .778], 0x2264: [.636, .138, .778], 0x2265: [.636, .138, .778], 0x2266: [.753, .175, .778], 0x2267: [.753, .175, .778], 0x2268: [.752, .286, .778], 0x2269: [.752, .286, .778], 0x226A: [.568, .067, 1], 0x226B: [.567, .067, 1], 0x226C: [.75, .25, .5], 0x226D: [.716, .215, .778], 0x226E: [.708, .209, .778], 0x226F: [.708, .209, .778], 0x2270: [.801, .303, .778], 0x2271: [.801, .303, .778], 0x2272: [.732, .228, .778], 0x2273: [.732, .228, .778], 0x2274: [.732, .228, .778], 0x2275: [.732, .228, .778], 0x2276: [.681, .253, .778], 0x2277: [.681, .253, .778], 0x2278: [.716, .253, .778], 0x2279: [.716, .253, .778], 0x227A: [.539, .041, .778], 0x227B: [.539, .041, .778], 0x227C: [.58, .153, .778], 0x227D: [.58, .154, .778], 0x227E: [.732, .228, .778], 0x227F: [.732, .228, .778], 0x2280: [.705, .208, .778], 0x2281: [.705, .208, .778], 0x2282: [.54, .04, .778], 0x2283: [.54, .04, .778], 0x2284: [.716, .215, .778], 0x2285: [.716, .215, .778], 0x2286: [.636, .138, .778], 0x2287: [.636, .138, .778], 0x2288: [.801, .303, .778], 0x2289: [.801, .303, .778], 0x228A: [.635, .241, .778], 0x228B: [.635, .241, .778], 0x228E: [.598, .022, .667], 0x228F: [.539, .041, .778], 0x2290: [.539, .041, .778], 0x2291: [.636, .138, .778], 0x2292: [.636, .138, .778], 0x2293: [.598, 0, .667], 0x2294: [.598, 0, .667], 0x2295: [.583, .083, .778], 0x2296: [.583, .083, .778], 0x2297: [.583, .083, .778], 0x2298: [.583, .083, .778], 0x2299: [.583, .083, .778], 0x229A: [.582, .082, .778], 0x229B: [.582, .082, .778], 0x229D: [.582, .082, .778], 0x229E: [.689, 0, .778], 0x229F: [.689, 0, .778], 0x22A0: [.689, 0, .778], 0x22A1: [.689, 0, .778], 0x22A2: [.694, 0, .611], 0x22A3: [.694, 0, .611], 0x22A4: [.668, 0, .778], 0x22A5: [.668, 0, .778], 0x22A8: [.75, .249, .867], 0x22A9: [.694, 0, .722], 0x22AA: [.694, 0, .889], 0x22AC: [.695, 0, .611], 0x22AD: [.695, 0, .611], 0x22AE: [.695, 0, .722], 0x22AF: [.695, 0, .722], 0x22B2: [.539, .041, .778], 0x22B3: [.539, .041, .778], 0x22B4: [.636, .138, .778], 0x22B5: [.636, .138, .778], 0x22B8: [.408, -0.092, 1.111], 0x22BA: [.431, .212, .556], 0x22BB: [.716, 0, .611], 0x22BC: [.716, 0, .611], 0x22C0: [.75, .249, .833], 0x22C1: [.75, .249, .833], 0x22C2: [.75, .249, .833], 0x22C3: [.75, .249, .833], 0x22C4: [.488, -0.012, .5], 0x22C5: [.31, -0.19, .278], 0x22C6: [.486, -0.016, .5], 0x22C7: [.545, .044, .778], 0x22C8: [.505, .005, .9], 0x22C9: [.492, -0.008, .778], 0x22CA: [.492, -0.008, .778], 0x22CB: [.694, .022, .778], 0x22CC: [.694, .022, .778], 0x22CD: [.464, -0.036, .778], 0x22CE: [.578, .021, .76], 0x22CF: [.578, .022, .76], 0x22D0: [.54, .04, .778], 0x22D1: [.54, .04, .778], 0x22D2: [.598, .022, .667], 0x22D3: [.598, .022, .667], 0x22D4: [.736, .022, .667], 0x22D6: [.541, .041, .778], 0x22D7: [.541, .041, .778], 0x22D8: [.568, .067, 1.333], 0x22D9: [.568, .067, 1.333], 0x22DA: [.886, .386, .778], 0x22DB: [.886, .386, .778], 0x22DE: [.734, 0, .778], 0x22DF: [.734, 0, .778], 0x22E0: [.801, .303, .778], 0x22E1: [.801, .303, .778], 0x22E2: [.716, .215, .778], 0x22E3: [.716, .215, .778], 0x22E6: [.73, .359, .778], 0x22E7: [.73, .359, .778], 0x22E8: [.73, .359, .778], 0x22E9: [.73, .359, .778], 0x22EA: [.706, .208, .778], 0x22EB: [.706, .208, .778], 0x22EC: [.802, .303, .778], 0x22ED: [.801, .303, .778], 0x22EE: [1.3, .03, .278], 0x22EF: [.31, -0.19, 1.172], 0x22F1: [1.52, -0.1, 1.282], 0x2305: [.716, 0, .611], 0x2306: [.813, .097, .611], 0x2308: [.75, .25, .444], 0x2309: [.75, .25, .444], 0x230A: [.75, .25, .444], 0x230B: [.75, .25, .444], 0x231C: [.694, -0.306, .5], 0x231D: [.694, -0.306, .5], 0x231E: [.366, .022, .5], 0x231F: [.366, .022, .5], 0x2322: [.388, -0.122, 1], 0x2323: [.378, -0.134, 1], 0x2329: [.75, .25, .389], 0x232A: [.75, .25, .389], 0x23B0: [.744, .244, .412], 0x23B1: [.744, .244, .412], 0x23D0: [.602, 0, .667], 0x24C8: [.709, .175, .902], 0x250C: [.694, -0.306, .5], 0x2510: [.694, -0.306, .5], 0x2514: [.366, .022, .5], 0x2518: [.366, .022, .5], 0x2571: [.694, .195, .889], 0x2572: [.694, .195, .889], 0x25A0: [.689, 0, .778], 0x25A1: [.689, 0, .778], 0x25AA: [.689, 0, .778], 0x25B2: [.575, .02, .722], 0x25B3: [.716, 0, .889], 0x25B4: [.575, .02, .722], 0x25B5: [.716, 0, .889], 0x25B6: [.539, .041, .778], 0x25B8: [.539, .041, .778], 0x25B9: [.505, .005, .5], 0x25BC: [.576, .019, .722], 0x25BD: [.5, .215, .889], 0x25BE: [.576, .019, .722], 0x25BF: [.5, .215, .889], 0x25C0: [.539, .041, .778], 0x25C2: [.539, .041, .778], 0x25C3: [.505, .005, .5], 0x25CA: [.716, .132, .667], 0x25EF: [.715, .215, 1], 0x25FB: [.689, 0, .778], 0x25FC: [.689, 0, .778], 0x2605: [.694, .111, .944], 0x2660: [.727, .13, .778], 0x2661: [.716, .033, .778], 0x2662: [.727, .162, .778], 0x2663: [.726, .13, .778], 0x266D: [.75, .022, .389], 0x266E: [.734, .223, .389], 0x266F: [.723, .223, .389], 0x2713: [.706, .034, .833], 0x2720: [.716, .022, .833], 0x2758: [.75, .249, .278], 0x27E8: [.75, .25, .389], 0x27E9: [.75, .25, .389], 0x27EE: [.744, .244, .412], 0x27EF: [.744, .244, .412], 0x27F5: [.511, .011, 1.609], 0x27F6: [.511, .011, 1.638], 0x27F7: [.511, .011, 1.859], 0x27F8: [.525, .024, 1.609], 0x27F9: [.525, .024, 1.638], 0x27FA: [.525, .024, 1.858], 0x27FC: [.511, .011, 1.638], 0x29EB: [.716, .132, .667], 0x29F8: [.716, .215, .778], 0x2A00: [.75, .25, 1.111], 0x2A01: [.75, .25, 1.111], 0x2A02: [.75, .25, 1.111], 0x2A04: [.75, .249, .833], 0x2A06: [.75, .249, .833], 0x2A0C: [.805, .306, 1.638, { ic: .138 }], 0x2A2F: [.491, -0.009, .778], 0x2A3F: [.683, 0, .75], 0x2A5E: [.813, .097, .611], 0x2A7D: [.636, .138, .778], 0x2A7E: [.636, .138, .778], 0x2A85: [.762, .29, .778], 0x2A86: [.762, .29, .778], 0x2A87: [.635, .241, .778], 0x2A88: [.635, .241, .778], 0x2A89: [.761, .387, .778], 0x2A8A: [.761, .387, .778], 0x2A8B: [1.003, .463, .778], 0x2A8C: [1.003, .463, .778], 0x2A95: [.636, .138, .778], 0x2A96: [.636, .138, .778], 0x2AAF: [.636, .138, .778], 0x2AB0: [.636, .138, .778], 0x2AB5: [.752, .286, .778], 0x2AB6: [.752, .286, .778], 0x2AB7: [.761, .294, .778], 0x2AB8: [.761, .294, .778], 0x2AB9: [.761, .337, .778], 0x2ABA: [.761, .337, .778], 0x2AC5: [.753, .215, .778], 0x2AC6: [.753, .215, .778], 0x2ACB: [.783, .385, .778], 0x2ACC: [.783, .385, .778], 0x3008: [.75, .25, .389], 0x3009: [.75, .25, .389], 0xE006: [.43, .023, .222, { ic: .018 }], 0xE007: [.431, .024, .389, { ic: .018 }], 0xE008: [.605, .085, .778], 0xE009: [.434, .006, .667, { ic: .067 }], 0xE00C: [.752, .284, .778], 0xE00D: [.752, .284, .778], 0xE00E: [.919, .421, .778], 0xE00F: [.801, .303, .778], 0xE010: [.801, .303, .778], 0xE011: [.919, .421, .778], 0xE016: [.828, .33, .778], 0xE017: [.752, .332, .778], 0xE018: [.828, .33, .778], 0xE019: [.752, .333, .778], 0xE01A: [.634, .255, .778], 0xE01B: [.634, .254, .778], 0x1D400: [.698, 0, .869], 0x1D401: [.686, 0, .818], 0x1D402: [.697, .011, .831], 0x1D403: [.686, 0, .882], 0x1D404: [.68, 0, .756], 0x1D405: [.68, 0, .724], 0x1D406: [.697, .01, .904], 0x1D407: [.686, 0, .9], 0x1D408: [.686, 0, .436], 0x1D409: [.686, .011, .594], 0x1D40A: [.686, 0, .901], 0x1D40B: [.686, 0, .692], 0x1D40C: [.686, 0, 1.092], 0x1D40D: [.686, 0, .9], 0x1D40E: [.696, .01, .864], 0x1D40F: [.686, 0, .786], 0x1D410: [.696, .193, .864], 0x1D411: [.686, .011, .862], 0x1D412: [.697, .011, .639], 0x1D413: [.675, 0, .8], 0x1D414: [.686, .011, .885], 0x1D415: [.686, .007, .869], 0x1D416: [.686, .007, 1.189], 0x1D417: [.686, 0, .869], 0x1D418: [.686, 0, .869], 0x1D419: [.686, 0, .703], 0x1D41A: [.453, .006, .559], 0x1D41B: [.694, .006, .639], 0x1D41C: [.453, .006, .511], 0x1D41D: [.694, .006, .639], 0x1D41E: [.452, .006, .527], 0x1D41F: [.7, 0, .351, { ic: .101 }], 0x1D420: [.455, .201, .575], 0x1D421: [.694, 0, .639], 0x1D422: [.695, 0, .319], 0x1D423: [.695, .2, .351], 0x1D424: [.694, 0, .607], 0x1D425: [.694, 0, .319], 0x1D426: [.45, 0, .958], 0x1D427: [.45, 0, .639], 0x1D428: [.452, .005, .575], 0x1D429: [.45, .194, .639], 0x1D42A: [.45, .194, .607], 0x1D42B: [.45, 0, .474], 0x1D42C: [.453, .006, .454], 0x1D42D: [.635, .005, .447], 0x1D42E: [.45, .006, .639], 0x1D42F: [.444, 0, .607], 0x1D430: [.444, 0, .831], 0x1D431: [.444, 0, .607], 0x1D432: [.444, .2, .607], 0x1D433: [.444, 0, .511], 0x1D434: [.716, 0, .75, { sk: .139 }], 0x1D435: [.683, 0, .759, { sk: .0833 }], 0x1D436: [.705, .022, .715, { ic: .045, sk: .0833 }], 0x1D437: [.683, 0, .828, { sk: .0556 }], 0x1D438: [.68, 0, .738, { ic: .026, sk: .0833 }], 0x1D439: [.68, 0, .643, { ic: .106, sk: .0833 }], 0x1D43A: [.705, .022, .786, { sk: .0833 }], 0x1D43B: [.683, 0, .831, { ic: .057, sk: .0556 }], 0x1D43C: [.683, 0, .44, { ic: .064, sk: .111 }], 0x1D43D: [.683, .022, .555, { ic: .078, sk: .167 }], 0x1D43E: [.683, 0, .849, { ic: .04, sk: .0556 }], 0x1D43F: [.683, 0, .681, { sk: .0278 }], 0x1D440: [.683, 0, .97, { ic: .081, sk: .0833 }], 0x1D441: [.683, 0, .803, { ic: .085, sk: .0833 }], 0x1D442: [.704, .022, .763, { sk: .0833 }], 0x1D443: [.683, 0, .642, { ic: .109, sk: .0833 }], 0x1D444: [.704, .194, .791, { sk: .0833 }], 0x1D445: [.683, .021, .759, { sk: .0833 }], 0x1D446: [.705, .022, .613, { ic: .032, sk: .0833 }], 0x1D447: [.677, 0, .584, { ic: .12, sk: .0833 }], 0x1D448: [.683, .022, .683, { ic: .084, sk: .0278 }], 0x1D449: [.683, .022, .583, { ic: .186 }], 0x1D44A: [.683, .022, .944, { ic: .104 }], 0x1D44B: [.683, 0, .828, { ic: .024, sk: .0833 }], 0x1D44C: [.683, 0, .581, { ic: .182 }], 0x1D44D: [.683, 0, .683, { ic: .04, sk: .0833 }], 0x1D44E: [.441, .01, .529], 0x1D44F: [.694, .011, .429], 0x1D450: [.442, .011, .433, { sk: .0556 }], 0x1D451: [.694, .01, .52, { sk: .167 }], 0x1D452: [.442, .011, .466, { sk: .0556 }], 0x1D453: [.705, .205, .49, { ic: .06, sk: .167 }], 0x1D454: [.442, .205, .477, { sk: .0278 }], 0x1D456: [.661, .011, .345], 0x1D457: [.661, .204, .412], 0x1D458: [.694, .011, .521], 0x1D459: [.694, .011, .298, { sk: .0833 }], 0x1D45A: [.442, .011, .878], 0x1D45B: [.442, .011, .6], 0x1D45C: [.441, .011, .485, { sk: .0556 }], 0x1D45D: [.442, .194, .503, { sk: .0833 }], 0x1D45E: [.442, .194, .446, { ic: .014, sk: .0833 }], 0x1D45F: [.442, .011, .451, { sk: .0556 }], 0x1D460: [.442, .01, .469, { sk: .0556 }], 0x1D461: [.626, .011, .361, { sk: .0833 }], 0x1D462: [.442, .011, .572, { sk: .0278 }], 0x1D463: [.443, .011, .485, { sk: .0278 }], 0x1D464: [.443, .011, .716, { sk: .0833 }], 0x1D465: [.442, .011, .572, { sk: .0278 }], 0x1D466: [.442, .205, .49, { sk: .0556 }], 0x1D467: [.442, .011, .465, { sk: .0556 }], 0x1D468: [.711, 0, .869, { sk: .16 }], 0x1D469: [.686, 0, .866, { sk: .0958 }], 0x1D46A: [.703, .017, .817, { ic: .038, sk: .0958 }], 0x1D46B: [.686, 0, .938, { sk: .0639 }], 0x1D46C: [.68, 0, .81, { ic: .015, sk: .0958 }], 0x1D46D: [.68, 0, .689, { ic: .12, sk: .0958 }], 0x1D46E: [.703, .016, .887, { sk: .0958 }], 0x1D46F: [.686, 0, .982, { ic: .045, sk: .0639 }], 0x1D470: [.686, 0, .511, { ic: .062, sk: .128 }], 0x1D471: [.686, .017, .631, { ic: .063, sk: .192 }], 0x1D472: [.686, 0, .971, { ic: .032, sk: .0639 }], 0x1D473: [.686, 0, .756, { sk: .0319 }], 0x1D474: [.686, 0, 1.142, { ic: .077, sk: .0958 }], 0x1D475: [.686, 0, .95, { ic: .077, sk: .0958 }], 0x1D476: [.703, .017, .837, { sk: .0958 }], 0x1D477: [.686, 0, .723, { ic: .124, sk: .0958 }], 0x1D478: [.703, .194, .869, { sk: .0958 }], 0x1D479: [.686, .017, .872, { sk: .0958 }], 0x1D47A: [.703, .017, .693, { ic: .021, sk: .0958 }], 0x1D47B: [.675, 0, .637, { ic: .135, sk: .0958 }], 0x1D47C: [.686, .016, .8, { ic: .077, sk: .0319 }], 0x1D47D: [.686, .016, .678, { ic: .208 }], 0x1D47E: [.686, .017, 1.093, { ic: .114 }], 0x1D47F: [.686, 0, .947, { sk: .0958 }], 0x1D480: [.686, 0, .675, { ic: .201 }], 0x1D481: [.686, 0, .773, { ic: .032, sk: .0958 }], 0x1D482: [.452, .008, .633], 0x1D483: [.694, .008, .521], 0x1D484: [.451, .008, .513, { sk: .0639 }], 0x1D485: [.694, .008, .61, { sk: .192 }], 0x1D486: [.452, .008, .554, { sk: .0639 }], 0x1D487: [.701, .201, .568, { ic: .056, sk: .192 }], 0x1D488: [.452, .202, .545, { sk: .0319 }], 0x1D489: [.694, .008, .668, { sk: -0.0319 }], 0x1D48A: [.694, .008, .405], 0x1D48B: [.694, .202, .471], 0x1D48C: [.694, .008, .604], 0x1D48D: [.694, .008, .348, { sk: .0958 }], 0x1D48E: [.452, .008, 1.032], 0x1D48F: [.452, .008, .713], 0x1D490: [.452, .008, .585, { sk: .0639 }], 0x1D491: [.452, .194, .601, { sk: .0958 }], 0x1D492: [.452, .194, .542, { sk: .0958 }], 0x1D493: [.452, .008, .529, { sk: .0639 }], 0x1D494: [.451, .008, .531, { sk: .0639 }], 0x1D495: [.643, .007, .415, { sk: .0958 }], 0x1D496: [.452, .008, .681, { sk: .0319 }], 0x1D497: [.453, .008, .567, { sk: .0319 }], 0x1D498: [.453, .008, .831, { sk: .0958 }], 0x1D499: [.452, .008, .659, { sk: .0319 }], 0x1D49A: [.452, .202, .59, { sk: .0639 }], 0x1D49B: [.452, .008, .555, { sk: .0639 }], 0x1D49C: [.717, .008, .803, { ic: .213, sk: .389 }], 0x1D49E: [.728, .026, .666, { ic: .153, sk: .278 }], 0x1D49F: [.708, .031, .774, { ic: .081, sk: .111 }], 0x1D4A2: [.717, .037, .61, { ic: .128, sk: .25 }], 0x1D4A5: [.717, .314, 1.052, { ic: .081, sk: .417 }], 0x1D4A6: [.717, .037, .914, { ic: .29, sk: .361 }], 0x1D4A9: [.726, .036, .902, { ic: .306, sk: .389 }], 0x1D4AA: [.707, .008, .738, { ic: .067, sk: .167 }], 0x1D4AB: [.716, .037, 1.013, { ic: .018, sk: .222 }], 0x1D4AC: [.717, .017, .883, { sk: .278 }], 0x1D4AE: [.708, .036, .868, { ic: .148, sk: .333 }], 0x1D4AF: [.735, .037, .747, { ic: .249, sk: .222 }], 0x1D4B0: [.717, .017, .8, { ic: .16, sk: .25 }], 0x1D4B1: [.717, .017, .622, { ic: .228, sk: .222 }], 0x1D4B2: [.717, .017, .805, { ic: .221, sk: .25 }], 0x1D4B3: [.717, .017, .944, { ic: .187, sk: .278 }], 0x1D4B4: [.716, .017, .71, { ic: .249, sk: .194 }], 0x1D4B5: [.717, .016, .821, { ic: .211, sk: .306 }], 0x1D504: [.696, .026, .718], 0x1D505: [.691, .027, .884], 0x1D507: [.685, .027, .832], 0x1D508: [.685, .024, .663], 0x1D509: [.686, .153, .611], 0x1D50A: [.69, .026, .785], 0x1D50D: [.686, .139, .552], 0x1D50E: [.68, .027, .668, { ic: .014 }], 0x1D50F: [.686, .026, .666], 0x1D510: [.692, .027, 1.05], 0x1D511: [.686, .025, .832], 0x1D512: [.729, .027, .827], 0x1D513: [.692, .218, .828], 0x1D514: [.729, .069, .827], 0x1D516: [.692, .027, .829], 0x1D517: [.701, .027, .669], 0x1D518: [.697, .027, .646, { ic: .019 }], 0x1D519: [.686, .026, .831], 0x1D51A: [.686, .027, 1.046], 0x1D51B: [.688, .027, .719], 0x1D51C: [.686, .218, .833], 0x1D51E: [.47, .035, .5], 0x1D51F: [.685, .031, .513], 0x1D520: [.466, .029, .389], 0x1D521: [.609, .033, .499], 0x1D522: [.467, .03, .401], 0x1D523: [.681, .221, .326], 0x1D524: [.47, .209, .504], 0x1D525: [.688, .205, .521], 0x1D526: [.673, .02, .279], 0x1D527: [.672, .208, .281], 0x1D528: [.689, .025, .389], 0x1D529: [.685, .02, .28], 0x1D52A: [.475, .026, .767], 0x1D52B: [.475, .022, .527], 0x1D52C: [.48, .028, .489], 0x1D52D: [.541, .212, .5], 0x1D52E: [.479, .219, .489], 0x1D52F: [.474, .021, .389], 0x1D530: [.478, .029, .443], 0x1D531: [.64, .02, .333, { ic: .015 }], 0x1D532: [.474, .023, .517], 0x1D533: [.53, .028, .512], 0x1D534: [.532, .028, .774], 0x1D535: [.472, .188, .389], 0x1D536: [.528, .218, .499], 0x1D537: [.471, .214, .391], 0x1D538: [.701, 0, .722], 0x1D539: [.683, 0, .667], 0x1D53B: [.683, 0, .722], 0x1D53C: [.683, 0, .667], 0x1D53D: [.683, 0, .611], 0x1D53E: [.702, .019, .778], 0x1D540: [.683, 0, .389], 0x1D541: [.683, .077, .5], 0x1D542: [.683, 0, .778], 0x1D543: [.683, 0, .667], 0x1D544: [.683, 0, .944], 0x1D546: [.701, .019, .778], 0x1D54A: [.702, .012, .556], 0x1D54B: [.683, 0, .667], 0x1D54C: [.683, .019, .722], 0x1D54D: [.683, .02, .722], 0x1D54E: [.683, .019, 1], 0x1D54F: [.683, 0, .722], 0x1D550: [.683, 0, .722], 0x1D56C: [.686, .031, .847], 0x1D56D: [.684, .031, 1.044], 0x1D56E: [.676, .032, .723], 0x1D56F: [.683, .029, .982], 0x1D570: [.686, .029, .783], 0x1D571: [.684, .146, .722], 0x1D572: [.687, .029, .927], 0x1D573: [.683, .126, .851], 0x1D574: [.681, .025, .655], 0x1D575: [.68, .141, .652], 0x1D576: [.681, .026, .789, { ic: .017 }], 0x1D577: [.683, .028, .786], 0x1D578: [.683, .032, 1.239], 0x1D579: [.679, .03, .983], 0x1D57A: [.726, .03, .976], 0x1D57B: [.688, .223, .977], 0x1D57C: [.726, .083, .976], 0x1D57D: [.688, .028, .978], 0x1D57E: [.685, .031, .978], 0x1D57F: [.686, .03, .79, { ic: .012 }], 0x1D580: [.688, .039, .851, { ic: .02 }], 0x1D581: [.685, .029, .982], 0x1D582: [.683, .03, 1.235], 0x1D583: [.681, .035, .849], 0x1D584: [.688, .214, .984], 0x1D585: [.677, .148, .711], 0x1D586: [.472, .032, .603], 0x1D587: [.69, .032, .59], 0x1D588: [.473, .026, .464], 0x1D589: [.632, .028, .589], 0x1D58A: [.471, .027, .472], 0x1D58B: [.687, .222, .388], 0x1D58C: [.472, .208, .595], 0x1D58D: [.687, .207, .615], 0x1D58E: [.686, .025, .331], 0x1D58F: [.682, .203, .332], 0x1D590: [.682, .025, .464], 0x1D591: [.681, .024, .337], 0x1D592: [.476, .031, .921], 0x1D593: [.473, .028, .654], 0x1D594: [.482, .034, .609], 0x1D595: [.557, .207, .604], 0x1D596: [.485, .211, .596], 0x1D597: [.472, .026, .46], 0x1D598: [.479, .034, .523], 0x1D599: [.648, .027, .393, { ic: .014 }], 0x1D59A: [.472, .032, .589, { ic: .014 }], 0x1D59B: [.546, .027, .604], 0x1D59C: [.549, .032, .918], 0x1D59D: [.471, .188, .459], 0x1D59E: [.557, .221, .589], 0x1D59F: [.471, .214, .461], 0x1D5A0: [.694, 0, .667], 0x1D5A1: [.694, 0, .667], 0x1D5A2: [.705, .011, .639], 0x1D5A3: [.694, 0, .722], 0x1D5A4: [.691, 0, .597], 0x1D5A5: [.691, 0, .569], 0x1D5A6: [.704, .011, .667], 0x1D5A7: [.694, 0, .708], 0x1D5A8: [.694, 0, .278], 0x1D5A9: [.694, .022, .472], 0x1D5AA: [.694, 0, .694], 0x1D5AB: [.694, 0, .542], 0x1D5AC: [.694, 0, .875], 0x1D5AD: [.694, 0, .708], 0x1D5AE: [.715, .022, .736], 0x1D5AF: [.694, 0, .639], 0x1D5B0: [.715, .125, .736], 0x1D5B1: [.694, 0, .646], 0x1D5B2: [.716, .022, .556], 0x1D5B3: [.688, 0, .681], 0x1D5B4: [.694, .022, .688], 0x1D5B5: [.694, 0, .667], 0x1D5B6: [.694, 0, .944], 0x1D5B7: [.694, 0, .667], 0x1D5B8: [.694, 0, .667], 0x1D5B9: [.694, 0, .611], 0x1D5BA: [.46, .01, .481], 0x1D5BB: [.694, .011, .517], 0x1D5BC: [.46, .01, .444], 0x1D5BD: [.694, .01, .517], 0x1D5BE: [.461, .01, .444], 0x1D5BF: [.705, 0, .306, { ic: .041 }], 0x1D5C0: [.455, .206, .5], 0x1D5C1: [.694, 0, .517], 0x1D5C2: [.68, 0, .239], 0x1D5C3: [.68, .205, .267], 0x1D5C4: [.694, 0, .489], 0x1D5C5: [.694, 0, .239], 0x1D5C6: [.455, 0, .794], 0x1D5C7: [.455, 0, .517], 0x1D5C8: [.46, .01, .5], 0x1D5C9: [.455, .194, .517], 0x1D5CA: [.455, .194, .517], 0x1D5CB: [.455, 0, .342], 0x1D5CC: [.46, .01, .383], 0x1D5CD: [.571, .01, .361], 0x1D5CE: [.444, .01, .517], 0x1D5CF: [.444, 0, .461], 0x1D5D0: [.444, 0, .683], 0x1D5D1: [.444, 0, .461], 0x1D5D2: [.444, .204, .461], 0x1D5D3: [.444, 0, .435], 0x1D5D4: [.694, 0, .733], 0x1D5D5: [.694, 0, .733], 0x1D5D6: [.704, .011, .703], 0x1D5D7: [.694, 0, .794], 0x1D5D8: [.691, 0, .642], 0x1D5D9: [.691, 0, .611], 0x1D5DA: [.705, .011, .733], 0x1D5DB: [.694, 0, .794], 0x1D5DC: [.694, 0, .331], 0x1D5DD: [.694, .022, .519], 0x1D5DE: [.694, 0, .764], 0x1D5DF: [.694, 0, .581], 0x1D5E0: [.694, 0, .978], 0x1D5E1: [.694, 0, .794], 0x1D5E2: [.716, .022, .794], 0x1D5E3: [.694, 0, .703], 0x1D5E4: [.716, .106, .794], 0x1D5E5: [.694, 0, .703], 0x1D5E6: [.716, .022, .611], 0x1D5E7: [.688, 0, .733], 0x1D5E8: [.694, .022, .764], 0x1D5E9: [.694, 0, .733], 0x1D5EA: [.694, 0, 1.039], 0x1D5EB: [.694, 0, .733], 0x1D5EC: [.694, 0, .733], 0x1D5ED: [.694, 0, .672], 0x1D5EE: [.475, .011, .525], 0x1D5EF: [.694, .01, .561], 0x1D5F0: [.475, .011, .489], 0x1D5F1: [.694, .011, .561], 0x1D5F2: [.474, .01, .511], 0x1D5F3: [.705, 0, .336, { ic: .045 }], 0x1D5F4: [.469, .206, .55], 0x1D5F5: [.694, 0, .561], 0x1D5F6: [.695, 0, .256], 0x1D5F7: [.695, .205, .286], 0x1D5F8: [.694, 0, .531], 0x1D5F9: [.694, 0, .256], 0x1D5FA: [.469, 0, .867], 0x1D5FB: [.468, 0, .561], 0x1D5FC: [.474, .011, .55], 0x1D5FD: [.469, .194, .561], 0x1D5FE: [.469, .194, .561], 0x1D5FF: [.469, 0, .372], 0x1D600: [.474, .01, .422], 0x1D601: [.589, .01, .404], 0x1D602: [.458, .011, .561], 0x1D603: [.458, 0, .5], 0x1D604: [.458, 0, .744], 0x1D605: [.458, 0, .5], 0x1D606: [.458, .205, .5], 0x1D607: [.458, 0, .476], 0x1D608: [.694, 0, .667], 0x1D609: [.694, 0, .667, { ic: .029 }], 0x1D60A: [.705, .01, .639, { ic: .08 }], 0x1D60B: [.694, 0, .722, { ic: .025 }], 0x1D60C: [.691, 0, .597, { ic: .091 }], 0x1D60D: [.691, 0, .569, { ic: .104 }], 0x1D60E: [.705, .011, .667, { ic: .063 }], 0x1D60F: [.694, 0, .708, { ic: .06 }], 0x1D610: [.694, 0, .278, { ic: .06 }], 0x1D611: [.694, .022, .472, { ic: .063 }], 0x1D612: [.694, 0, .694, { ic: .091 }], 0x1D613: [.694, 0, .542], 0x1D614: [.694, 0, .875, { ic: .054 }], 0x1D615: [.694, 0, .708, { ic: .058 }], 0x1D616: [.716, .022, .736, { ic: .027 }], 0x1D617: [.694, 0, .639, { ic: .051 }], 0x1D618: [.716, .125, .736, { ic: .027 }], 0x1D619: [.694, 0, .646, { ic: .052 }], 0x1D61A: [.716, .022, .556, { ic: .053 }], 0x1D61B: [.688, 0, .681, { ic: .109 }], 0x1D61C: [.694, .022, .688, { ic: .059 }], 0x1D61D: [.694, 0, .667, { ic: .132 }], 0x1D61E: [.694, 0, .944, { ic: .132 }], 0x1D61F: [.694, 0, .667, { ic: .091 }], 0x1D620: [.694, 0, .667, { ic: .143 }], 0x1D621: [.694, 0, .611, { ic: .091 }], 0x1D622: [.461, .01, .481], 0x1D623: [.694, .011, .517, { ic: .022 }], 0x1D624: [.46, .011, .444, { ic: .055 }], 0x1D625: [.694, .01, .517, { ic: .071 }], 0x1D626: [.46, .011, .444, { ic: .028 }], 0x1D627: [.705, 0, .306, { ic: .188 }], 0x1D628: [.455, .206, .5, { ic: .068 }], 0x1D629: [.694, 0, .517], 0x1D62A: [.68, 0, .239, { ic: .076 }], 0x1D62B: [.68, .204, .267, { ic: .069 }], 0x1D62C: [.694, 0, .489, { ic: .054 }], 0x1D62D: [.694, 0, .239, { ic: .072 }], 0x1D62E: [.455, 0, .794], 0x1D62F: [.454, 0, .517], 0x1D630: [.461, .011, .5, { ic: .023 }], 0x1D631: [.455, .194, .517, { ic: .021 }], 0x1D632: [.455, .194, .517, { ic: .021 }], 0x1D633: [.455, 0, .342, { ic: .082 }], 0x1D634: [.461, .011, .383, { ic: .053 }], 0x1D635: [.571, .011, .361, { ic: .049 }], 0x1D636: [.444, .01, .517, { ic: .02 }], 0x1D637: [.444, 0, .461, { ic: .079 }], 0x1D638: [.444, 0, .683, { ic: .079 }], 0x1D639: [.444, 0, .461, { ic: .076 }], 0x1D63A: [.444, .205, .461, { ic: .079 }], 0x1D63B: [.444, 0, .435, { ic: .059 }], 0x1D670: [.623, 0, .525], 0x1D671: [.611, 0, .525], 0x1D672: [.622, .011, .525], 0x1D673: [.611, 0, .525], 0x1D674: [.611, 0, .525], 0x1D675: [.611, 0, .525], 0x1D676: [.622, .011, .525], 0x1D677: [.611, 0, .525], 0x1D678: [.611, 0, .525], 0x1D679: [.611, .011, .525], 0x1D67A: [.611, 0, .525], 0x1D67B: [.611, 0, .525], 0x1D67C: [.611, 0, .525], 0x1D67D: [.611, 0, .525], 0x1D67E: [.621, .01, .525], 0x1D67F: [.611, 0, .525], 0x1D680: [.621, .138, .525], 0x1D681: [.611, .011, .525], 0x1D682: [.622, .011, .525], 0x1D683: [.611, 0, .525], 0x1D684: [.611, .011, .525], 0x1D685: [.611, .007, .525], 0x1D686: [.611, .007, .525], 0x1D687: [.611, 0, .525], 0x1D688: [.611, 0, .525], 0x1D689: [.611, 0, .525], 0x1D68A: [.439, .006, .525], 0x1D68B: [.611, .006, .525], 0x1D68C: [.44, .006, .525], 0x1D68D: [.611, .006, .525], 0x1D68E: [.44, .006, .525], 0x1D68F: [.617, 0, .525], 0x1D690: [.442, .229, .525], 0x1D691: [.611, 0, .525], 0x1D692: [.612, 0, .525], 0x1D693: [.612, .228, .525], 0x1D694: [.611, 0, .525], 0x1D695: [.611, 0, .525], 0x1D696: [.436, 0, .525, { ic: .011 }], 0x1D697: [.436, 0, .525], 0x1D698: [.44, .006, .525], 0x1D699: [.437, .221, .525], 0x1D69A: [.437, .221, .525, { ic: .02 }], 0x1D69B: [.437, 0, .525], 0x1D69C: [.44, .006, .525], 0x1D69D: [.554, .006, .525], 0x1D69E: [.431, .005, .525], 0x1D69F: [.431, 0, .525], 0x1D6A0: [.431, 0, .525], 0x1D6A1: [.431, 0, .525], 0x1D6A2: [.431, .228, .525], 0x1D6A3: [.431, 0, .525], 0x1D6A8: [.698, 0, .869], 0x1D6A9: [.686, 0, .818], 0x1D6AA: [.68, 0, .692], 0x1D6AB: [.698, 0, .958], 0x1D6AC: [.68, 0, .756], 0x1D6AD: [.686, 0, .703], 0x1D6AE: [.686, 0, .9], 0x1D6AF: [.696, .01, .894], 0x1D6B0: [.686, 0, .436], 0x1D6B1: [.686, 0, .901], 0x1D6B2: [.698, 0, .806], 0x1D6B3: [.686, 0, 1.092], 0x1D6B4: [.686, 0, .9], 0x1D6B5: [.675, 0, .767], 0x1D6B6: [.696, .01, .864], 0x1D6B7: [.68, 0, .9], 0x1D6B8: [.686, 0, .786], 0x1D6BA: [.686, 0, .831], 0x1D6BB: [.675, 0, .8], 0x1D6BC: [.697, 0, .894], 0x1D6BD: [.686, 0, .831], 0x1D6BE: [.686, 0, .869], 0x1D6BF: [.686, 0, .894], 0x1D6C0: [.696, 0, .831], 0x1D6C1: [.686, .024, .958], 0x1D6E2: [.716, 0, .75, { sk: .139 }], 0x1D6E3: [.683, 0, .759, { sk: .0833 }], 0x1D6E4: [.68, 0, .615, { ic: .106, sk: .0833 }], 0x1D6E5: [.716, 0, .833, { sk: .167 }], 0x1D6E6: [.68, 0, .738, { ic: .026, sk: .0833 }], 0x1D6E7: [.683, 0, .683, { ic: .04, sk: .0833 }], 0x1D6E8: [.683, 0, .831, { ic: .057, sk: .0556 }], 0x1D6E9: [.704, .022, .763, { sk: .0833 }], 0x1D6EA: [.683, 0, .44, { ic: .064, sk: .111 }], 0x1D6EB: [.683, 0, .849, { ic: .04, sk: .0556 }], 0x1D6EC: [.716, 0, .694, { sk: .167 }], 0x1D6ED: [.683, 0, .97, { ic: .081, sk: .0833 }], 0x1D6EE: [.683, 0, .803, { ic: .085, sk: .0833 }], 0x1D6EF: [.677, 0, .742, { ic: .035, sk: .0833 }], 0x1D6F0: [.704, .022, .763, { sk: .0833 }], 0x1D6F1: [.68, 0, .831, { ic: .056, sk: .0556 }], 0x1D6F2: [.683, 0, .642, { ic: .109, sk: .0833 }], 0x1D6F4: [.683, 0, .78, { ic: .026, sk: .0833 }], 0x1D6F5: [.677, 0, .584, { ic: .12, sk: .0833 }], 0x1D6F6: [.705, 0, .583, { ic: .117, sk: .0556 }], 0x1D6F7: [.683, 0, .667, { sk: .0833 }], 0x1D6F8: [.683, 0, .828, { ic: .024, sk: .0833 }], 0x1D6F9: [.683, 0, .612, { ic: .08, sk: .0556 }], 0x1D6FA: [.704, 0, .772, { ic: .014, sk: .0833 }], 0x1D6FC: [.442, .011, .64, { sk: .0278 }], 0x1D6FD: [.705, .194, .566, { sk: .0833 }], 0x1D6FE: [.441, .216, .518, { ic: .025 }], 0x1D6FF: [.717, .01, .444, { sk: .0556 }], 0x1D700: [.452, .022, .466, { sk: .0833 }], 0x1D701: [.704, .204, .438, { ic: .033, sk: .0833 }], 0x1D702: [.442, .216, .497, { sk: .0556 }], 0x1D703: [.705, .01, .469, { sk: .0833 }], 0x1D704: [.442, .01, .354, { sk: .0556 }], 0x1D705: [.442, .011, .576], 0x1D706: [.694, .012, .583], 0x1D707: [.442, .216, .603, { sk: .0278 }], 0x1D708: [.442, 0, .494, { ic: .036, sk: .0278 }], 0x1D709: [.704, .205, .438, { sk: .111 }], 0x1D70A: [.441, .011, .485, { sk: .0556 }], 0x1D70B: [.431, .011, .57], 0x1D70C: [.442, .216, .517, { sk: .0833 }], 0x1D70D: [.442, .107, .363, { ic: .042, sk: .0833 }], 0x1D70E: [.431, .011, .571], 0x1D70F: [.431, .013, .437, { ic: .08, sk: .0278 }], 0x1D710: [.443, .01, .54, { sk: .0278 }], 0x1D711: [.442, .218, .654, { sk: .0833 }], 0x1D712: [.442, .204, .626, { sk: .0556 }], 0x1D713: [.694, .205, .651, { sk: .111 }], 0x1D714: [.443, .011, .622], 0x1D715: [.715, .022, .531, { ic: .035, sk: .0833 }], 0x1D716: [.431, .011, .406, { sk: .0556 }], 0x1D717: [.705, .011, .591, { sk: .0833 }], 0x1D718: [.434, .006, .667, { ic: .067 }], 0x1D719: [.694, .205, .596, { sk: .0833 }], 0x1D71A: [.442, .194, .517, { sk: .0833 }], 0x1D71B: [.431, .01, .828], 0x1D71C: [.711, 0, .869, { sk: .16 }], 0x1D71D: [.686, 0, .866, { sk: .0958 }], 0x1D71E: [.68, 0, .657, { ic: .12, sk: .0958 }], 0x1D71F: [.711, 0, .958, { sk: .192 }], 0x1D720: [.68, 0, .81, { ic: .015, sk: .0958 }], 0x1D721: [.686, 0, .773, { ic: .032, sk: .0958 }], 0x1D722: [.686, 0, .982, { ic: .045, sk: .0639 }], 0x1D723: [.702, .017, .867, { sk: .0958 }], 0x1D724: [.686, 0, .511, { ic: .062, sk: .128 }], 0x1D725: [.686, 0, .971, { ic: .032, sk: .0639 }], 0x1D726: [.711, 0, .806, { sk: .192 }], 0x1D727: [.686, 0, 1.142, { ic: .077, sk: .0958 }], 0x1D728: [.686, 0, .95, { ic: .077, sk: .0958 }], 0x1D729: [.675, 0, .841, { ic: .026, sk: .0958 }], 0x1D72A: [.703, .017, .837, { sk: .0958 }], 0x1D72B: [.68, 0, .982, { ic: .044, sk: .0639 }], 0x1D72C: [.686, 0, .723, { ic: .124, sk: .0958 }], 0x1D72E: [.686, 0, .885, { ic: .017, sk: .0958 }], 0x1D72F: [.675, 0, .637, { ic: .135, sk: .0958 }], 0x1D730: [.703, 0, .671, { ic: .131, sk: .0639 }], 0x1D731: [.686, 0, .767, { sk: .0958 }], 0x1D732: [.686, 0, .947, { sk: .0958 }], 0x1D733: [.686, 0, .714, { ic: .076, sk: .0639 }], 0x1D734: [.703, 0, .879, { sk: .0958 }], 0x1D736: [.452, .008, .761, { sk: .0319 }], 0x1D737: [.701, .194, .66, { sk: .0958 }], 0x1D738: [.451, .211, .59, { ic: .027 }], 0x1D739: [.725, .008, .522, { sk: .0639 }], 0x1D73A: [.461, .017, .529, { sk: .0958 }], 0x1D73B: [.711, .202, .508, { ic: .013, sk: .0958 }], 0x1D73C: [.452, .211, .6, { sk: .0639 }], 0x1D73D: [.702, .008, .562, { sk: .0958 }], 0x1D73E: [.452, .008, .412, { sk: .0639 }], 0x1D73F: [.452, .008, .668], 0x1D740: [.694, .013, .671], 0x1D741: [.452, .211, .708, { sk: .0319 }], 0x1D742: [.452, 0, .577, { ic: .031, sk: .0319 }], 0x1D743: [.711, .201, .508, { sk: .128 }], 0x1D744: [.452, .008, .585, { sk: .0639 }], 0x1D745: [.444, .008, .682], 0x1D746: [.451, .211, .612, { sk: .0958 }], 0x1D747: [.451, .105, .424, { ic: .033, sk: .0958 }], 0x1D748: [.444, .008, .686], 0x1D749: [.444, .013, .521, { ic: .089, sk: .0319 }], 0x1D74A: [.453, .008, .631, { sk: .0319 }], 0x1D74B: [.452, .216, .747, { sk: .0958 }], 0x1D74C: [.452, .201, .718, { sk: .0639 }], 0x1D74D: [.694, .202, .758, { sk: .128 }], 0x1D74E: [.453, .008, .718], 0x1D74F: [.71, .017, .628, { ic: .029, sk: .0958 }], 0x1D750: [.444, .007, .483, { sk: .0639 }], 0x1D751: [.701, .008, .692, { sk: .0958 }], 0x1D752: [.434, .006, .667, { ic: .067 }], 0x1D753: [.694, .202, .712, { sk: .0958 }], 0x1D754: [.451, .194, .612, { sk: .0958 }], 0x1D755: [.444, .008, .975], 0x1D756: [.694, 0, .733], 0x1D757: [.694, 0, .733], 0x1D758: [.691, 0, .581], 0x1D759: [.694, 0, .917], 0x1D75A: [.691, 0, .642], 0x1D75B: [.694, 0, .672], 0x1D75C: [.694, 0, .794], 0x1D75D: [.716, .022, .856], 0x1D75E: [.694, 0, .331], 0x1D75F: [.694, 0, .764], 0x1D760: [.694, 0, .672], 0x1D761: [.694, 0, .978], 0x1D762: [.694, 0, .794], 0x1D763: [.688, 0, .733], 0x1D764: [.716, .022, .794], 0x1D765: [.691, 0, .794], 0x1D766: [.694, 0, .703], 0x1D768: [.694, 0, .794], 0x1D769: [.688, 0, .733], 0x1D76A: [.715, 0, .856], 0x1D76B: [.694, 0, .794], 0x1D76C: [.694, 0, .733], 0x1D76D: [.694, 0, .856], 0x1D76E: [.716, 0, .794], 0x1D7CE: [.654, .01, .575], 0x1D7CF: [.655, 0, .575], 0x1D7D0: [.654, 0, .575], 0x1D7D1: [.655, .011, .575], 0x1D7D2: [.656, 0, .575], 0x1D7D3: [.655, .011, .575], 0x1D7D4: [.655, .011, .575], 0x1D7D5: [.676, .011, .575], 0x1D7D6: [.654, .011, .575], 0x1D7D7: [.654, .011, .575], 0x1D7E2: [.678, .022, .5], 0x1D7E3: [.678, 0, .5], 0x1D7E4: [.677, 0, .5], 0x1D7E5: [.678, .022, .5], 0x1D7E6: [.656, 0, .5], 0x1D7E7: [.656, .021, .5], 0x1D7E8: [.677, .022, .5], 0x1D7E9: [.656, .011, .5], 0x1D7EA: [.678, .022, .5], 0x1D7EB: [.677, .022, .5], 0x1D7EC: [.715, .022, .55], 0x1D7ED: [.716, 0, .55], 0x1D7EE: [.716, 0, .55], 0x1D7EF: [.716, .022, .55], 0x1D7F0: [.694, 0, .55], 0x1D7F1: [.694, .022, .55], 0x1D7F2: [.716, .022, .55], 0x1D7F3: [.695, .011, .55], 0x1D7F4: [.715, .022, .55], 0x1D7F5: [.716, .022, .55], 0x1D7F6: [.621, .01, .525], 0x1D7F7: [.622, 0, .525], 0x1D7F8: [.622, 0, .525], 0x1D7F9: [.622, .011, .525], 0x1D7FA: [.624, 0, .525], 0x1D7FB: [.611, .01, .525], 0x1D7FC: [.622, .011, .525], 0x1D7FD: [.627, .01, .525], 0x1D7FE: [.621, .01, .525], 0x1D7FF: [.622, .011, .525], }; //# sourceMappingURL=normal.js.map /***/ }), /* 20 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sansSerifBoldItalic = void 0; var FontData_js_1 = __webpack_require__(0); var sans_serif_bold_italic_js_1 = __webpack_require__(21); exports.sansSerifBoldItalic = FontData_js_1.AddCSS(sans_serif_bold_italic_js_1.sansSerifBoldItalic, { 0x131: { f: 'SSB' }, 0x237: { f: 'SSB' }, }); //# sourceMappingURL=sans-serif-bold-italic.js.map /***/ }), /* 21 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sansSerifBoldItalic = void 0; exports.sansSerifBoldItalic = { 0x131: [.458, 0, .256], 0x237: [.458, .205, .286], }; //# sourceMappingURL=sans-serif-bold-italic.js.map /***/ }), /* 22 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sansSerifBold = void 0; var FontData_js_1 = __webpack_require__(0); var sans_serif_bold_js_1 = __webpack_require__(23); exports.sansSerifBold = FontData_js_1.AddCSS(sans_serif_bold_js_1.sansSerifBold, { 0x2015: { c: '\\2014' }, 0x2017: { c: '_' }, 0x2044: { c: '/' }, 0x2206: { c: '\\394' }, }); //# sourceMappingURL=sans-serif-bold.js.map /***/ }), /* 23 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sansSerifBold = void 0; exports.sansSerifBold = { 0x21: [.694, 0, .367], 0x22: [.694, -0.442, .558], 0x23: [.694, .193, .917], 0x24: [.75, .056, .55], 0x25: [.75, .056, 1.029], 0x26: [.716, .022, .831], 0x27: [.694, -0.442, .306], 0x28: [.75, .249, .428], 0x29: [.75, .25, .428], 0x2A: [.75, -0.293, .55], 0x2B: [.617, .116, .856], 0x2C: [.146, .106, .306], 0x2D: [.273, -0.186, .367], 0x2E: [.146, 0, .306], 0x2F: [.75, .249, .55], 0x3A: [.458, 0, .306], 0x3B: [.458, .106, .306], 0x3D: [.407, -0.094, .856], 0x3F: [.705, 0, .519], 0x40: [.704, .011, .733], 0x5B: [.75, .25, .343], 0x5D: [.75, .25, .343], 0x5E: [.694, -0.537, .55], 0x5F: [-0.023, .11, .55], 0x7E: [.344, -0.198, .55], 0x131: [.458, 0, .256], 0x237: [.458, .205, .286], 0x300: [.694, -0.537, 0], 0x301: [.694, -0.537, 0], 0x302: [.694, -0.537, 0], 0x303: [.694, -0.548, 0], 0x304: [.66, -0.56, 0], 0x306: [.694, -0.552, 0], 0x307: [.695, -0.596, 0], 0x308: [.695, -0.595, 0], 0x30A: [.694, -0.538, 0], 0x30B: [.694, -0.537, 0], 0x30C: [.657, -0.5, 0], 0x2013: [.327, -0.24, .55], 0x2014: [.327, -0.24, 1.1], 0x2015: [.327, -0.24, 1.1], 0x2017: [-0.023, .11, .55], 0x2018: [.694, -0.443, .306], 0x2019: [.694, -0.442, .306], 0x201C: [.694, -0.443, .558], 0x201D: [.694, -0.442, .558], 0x2044: [.75, .249, .55], 0x2206: [.694, 0, .917], }; //# sourceMappingURL=sans-serif-bold.js.map /***/ }), /* 24 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sansSerifItalic = void 0; var FontData_js_1 = __webpack_require__(0); var sans_serif_italic_js_1 = __webpack_require__(25); exports.sansSerifItalic = FontData_js_1.AddCSS(sans_serif_italic_js_1.sansSerifItalic, { 0x391: { c: 'A' }, 0x392: { c: 'B' }, 0x395: { c: 'E' }, 0x396: { c: 'Z' }, 0x397: { c: 'H' }, 0x399: { c: 'I' }, 0x39A: { c: 'K' }, 0x39C: { c: 'M' }, 0x39D: { c: 'N' }, 0x39F: { c: 'O' }, 0x3A1: { c: 'P' }, 0x3A4: { c: 'T' }, 0x3A7: { c: 'X' }, 0x2015: { c: '\\2014' }, 0x2017: { c: '_' }, 0x2044: { c: '/' }, 0x2206: { c: '\\394' }, }); //# sourceMappingURL=sans-serif-italic.js.map /***/ }), /* 25 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sansSerifItalic = void 0; exports.sansSerifItalic = { 0x21: [.694, 0, .319, { ic: .036 }], 0x22: [.694, -0.471, .5], 0x23: [.694, .194, .833, { ic: .018 }], 0x24: [.75, .056, .5, { ic: .065 }], 0x25: [.75, .056, .833], 0x26: [.716, .022, .758], 0x27: [.694, -0.471, .278, { ic: .057 }], 0x28: [.75, .25, .389, { ic: .102 }], 0x29: [.75, .25, .389], 0x2A: [.75, -0.306, .5, { ic: .068 }], 0x2B: [.583, .083, .778], 0x2C: [.098, .125, .278], 0x2D: [.259, -0.186, .333], 0x2E: [.098, 0, .278], 0x2F: [.75, .25, .5, { ic: .1 }], 0x30: [.678, .022, .5, { ic: .049 }], 0x31: [.678, 0, .5], 0x32: [.678, 0, .5, { ic: .051 }], 0x33: [.678, .022, .5, { ic: .044 }], 0x34: [.656, 0, .5, { ic: .021 }], 0x35: [.656, .022, .5, { ic: .055 }], 0x36: [.678, .022, .5, { ic: .048 }], 0x37: [.656, .011, .5, { ic: .096 }], 0x38: [.678, .022, .5, { ic: .054 }], 0x39: [.677, .022, .5, { ic: .045 }], 0x3A: [.444, 0, .278], 0x3B: [.444, .125, .278], 0x3D: [.37, -0.13, .778, { ic: .018 }], 0x3F: [.704, 0, .472, { ic: .064 }], 0x40: [.705, .01, .667, { ic: .04 }], 0x5B: [.75, .25, .289, { ic: .136 }], 0x5D: [.75, .25, .289, { ic: .064 }], 0x5E: [.694, -0.527, .5, { ic: .033 }], 0x5F: [-0.038, .114, .5, { ic: .065 }], 0x7E: [.327, -0.193, .5, { ic: .06 }], 0x131: [.444, 0, .239, { ic: .019 }], 0x237: [.444, .204, .267, { ic: .019 }], 0x300: [.694, -0.527, 0], 0x301: [.694, -0.527, 0, { ic: .063 }], 0x302: [.694, -0.527, 0, { ic: .033 }], 0x303: [.677, -0.543, 0, { ic: .06 }], 0x304: [.631, -0.552, 0, { ic: .064 }], 0x306: [.694, -0.508, 0, { ic: .073 }], 0x307: [.68, -0.576, 0], 0x308: [.68, -0.582, 0, { ic: .04 }], 0x30A: [.693, -0.527, 0], 0x30B: [.694, -0.527, 0, { ic: .063 }], 0x30C: [.654, -0.487, 0, { ic: .06 }], 0x391: [.694, 0, .667], 0x392: [.694, 0, .667, { ic: .029 }], 0x393: [.691, 0, .542, { ic: .104 }], 0x394: [.694, 0, .833], 0x395: [.691, 0, .597, { ic: .091 }], 0x396: [.694, 0, .611, { ic: .091 }], 0x397: [.694, 0, .708, { ic: .06 }], 0x398: [.715, .022, .778, { ic: .026 }], 0x399: [.694, 0, .278, { ic: .06 }], 0x39A: [.694, 0, .694, { ic: .091 }], 0x39B: [.694, 0, .611], 0x39C: [.694, 0, .875, { ic: .054 }], 0x39D: [.694, 0, .708, { ic: .058 }], 0x39E: [.688, 0, .667, { ic: .098 }], 0x39F: [.716, .022, .736, { ic: .027 }], 0x3A0: [.691, 0, .708, { ic: .06 }], 0x3A1: [.694, 0, .639, { ic: .051 }], 0x3A3: [.694, 0, .722, { ic: .091 }], 0x3A4: [.688, 0, .681, { ic: .109 }], 0x3A5: [.716, 0, .778, { ic: .065 }], 0x3A6: [.694, 0, .722, { ic: .021 }], 0x3A7: [.694, 0, .667, { ic: .091 }], 0x3A8: [.694, 0, .778, { ic: .076 }], 0x3A9: [.716, 0, .722, { ic: .047 }], 0x2013: [.312, -0.236, .5, { ic: .065 }], 0x2014: [.312, -0.236, 1, { ic: .065 }], 0x2015: [.312, -0.236, 1, { ic: .065 }], 0x2017: [-0.038, .114, .5, { ic: .065 }], 0x2018: [.694, -0.471, .278, { ic: .058 }], 0x2019: [.694, -0.471, .278, { ic: .057 }], 0x201C: [.694, -0.471, .5, { ic: .114 }], 0x201D: [.694, -0.471, .5], 0x2044: [.75, .25, .5, { ic: .1 }], 0x2206: [.694, 0, .833], }; //# sourceMappingURL=sans-serif-italic.js.map /***/ }), /* 26 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sansSerif = void 0; var FontData_js_1 = __webpack_require__(0); var sans_serif_js_1 = __webpack_require__(27); exports.sansSerif = FontData_js_1.AddCSS(sans_serif_js_1.sansSerif, { 0x391: { c: 'A' }, 0x392: { c: 'B' }, 0x395: { c: 'E' }, 0x396: { c: 'Z' }, 0x397: { c: 'H' }, 0x399: { c: 'I' }, 0x39A: { c: 'K' }, 0x39C: { c: 'M' }, 0x39D: { c: 'N' }, 0x39F: { c: 'O' }, 0x3A1: { c: 'P' }, 0x3A4: { c: 'T' }, 0x3A7: { c: 'X' }, 0x2015: { c: '\\2014' }, 0x2017: { c: '_' }, 0x2044: { c: '/' }, 0x2206: { c: '\\394' }, }); //# sourceMappingURL=sans-serif.js.map /***/ }), /* 27 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sansSerif = void 0; exports.sansSerif = { 0x21: [.694, 0, .319], 0x22: [.694, -0.471, .5], 0x23: [.694, .194, .833], 0x24: [.75, .056, .5], 0x25: [.75, .056, .833], 0x26: [.716, .022, .758], 0x27: [.694, -0.471, .278], 0x28: [.75, .25, .389], 0x29: [.75, .25, .389], 0x2A: [.75, -0.306, .5], 0x2B: [.583, .082, .778], 0x2C: [.098, .125, .278], 0x2D: [.259, -0.186, .333], 0x2E: [.098, 0, .278], 0x2F: [.75, .25, .5], 0x3A: [.444, 0, .278], 0x3B: [.444, .125, .278], 0x3D: [.37, -0.13, .778], 0x3F: [.704, 0, .472], 0x40: [.704, .011, .667], 0x5B: [.75, .25, .289], 0x5D: [.75, .25, .289], 0x5E: [.694, -0.527, .5], 0x5F: [-0.038, .114, .5], 0x7E: [.327, -0.193, .5], 0x131: [.444, 0, .239], 0x237: [.444, .205, .267], 0x300: [.694, -0.527, 0], 0x301: [.694, -0.527, 0], 0x302: [.694, -0.527, 0], 0x303: [.677, -0.543, 0], 0x304: [.631, -0.552, 0], 0x306: [.694, -0.508, 0], 0x307: [.68, -0.576, 0], 0x308: [.68, -0.582, 0], 0x30A: [.694, -0.527, 0], 0x30B: [.694, -0.527, 0], 0x30C: [.654, -0.487, 0], 0x391: [.694, 0, .667], 0x392: [.694, 0, .667], 0x393: [.691, 0, .542], 0x394: [.694, 0, .833], 0x395: [.691, 0, .597], 0x396: [.694, 0, .611], 0x397: [.694, 0, .708], 0x398: [.716, .021, .778], 0x399: [.694, 0, .278], 0x39A: [.694, 0, .694], 0x39B: [.694, 0, .611], 0x39C: [.694, 0, .875], 0x39D: [.694, 0, .708], 0x39E: [.688, 0, .667], 0x39F: [.715, .022, .736], 0x3A0: [.691, 0, .708], 0x3A1: [.694, 0, .639], 0x3A3: [.694, 0, .722], 0x3A4: [.688, 0, .681], 0x3A5: [.716, 0, .778], 0x3A6: [.694, 0, .722], 0x3A7: [.694, 0, .667], 0x3A8: [.694, 0, .778], 0x3A9: [.716, 0, .722], 0x2013: [.312, -0.236, .5], 0x2014: [.312, -0.236, 1], 0x2015: [.312, -0.236, 1], 0x2017: [-0.038, .114, .5], 0x2018: [.694, -0.471, .278], 0x2019: [.694, -0.471, .278], 0x201C: [.694, -0.471, .5], 0x201D: [.694, -0.471, .5], 0x2044: [.75, .25, .5], 0x2206: [.694, 0, .833], }; //# sourceMappingURL=sans-serif.js.map /***/ }), /* 28 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.scriptBold = void 0; exports.scriptBold = {}; //# sourceMappingURL=script-bold.js.map /***/ }), /* 29 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.script = void 0; exports.script = {}; //# sourceMappingURL=script.js.map /***/ }), /* 30 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.smallop = void 0; var FontData_js_1 = __webpack_require__(0); var smallop_js_1 = __webpack_require__(31); exports.smallop = FontData_js_1.AddCSS(smallop_js_1.smallop, { 0x2044: { c: '/' }, 0x2329: { c: '\\27E8' }, 0x232A: { c: '\\27E9' }, 0x2758: { c: '\\2223' }, 0x2A0C: { c: '\\222C\\222C' }, 0x3008: { c: '\\27E8' }, 0x3009: { c: '\\27E9' }, }); //# sourceMappingURL=smallop.js.map /***/ }), /* 31 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.smallop = void 0; exports.smallop = { 0x28: [.85, .349, .458], 0x29: [.85, .349, .458], 0x2F: [.85, .349, .578], 0x5B: [.85, .349, .417], 0x5C: [.85, .349, .578], 0x5D: [.85, .349, .417], 0x7B: [.85, .349, .583], 0x7D: [.85, .349, .583], 0x2C6: [.744, -0.551, .556], 0x2DC: [.722, -0.597, .556], 0x302: [.744, -0.551, 0], 0x303: [.722, -0.597, 0], 0x2016: [.602, 0, .778], 0x2044: [.85, .349, .578], 0x2191: [.6, 0, .667], 0x2193: [.6, 0, .667], 0x21D1: [.599, 0, .778], 0x21D3: [.6, 0, .778], 0x220F: [.75, .25, .944], 0x2210: [.75, .25, .944], 0x2211: [.75, .25, 1.056], 0x221A: [.85, .35, 1, { ic: .02 }], 0x2223: [.627, .015, .333], 0x2225: [.627, .015, .556], 0x222B: [.805, .306, .472, { ic: .138 }], 0x222C: [.805, .306, .819, { ic: .138 }], 0x222D: [.805, .306, 1.166, { ic: .138 }], 0x222E: [.805, .306, .472, { ic: .138 }], 0x22C0: [.75, .249, .833], 0x22C1: [.75, .249, .833], 0x22C2: [.75, .249, .833], 0x22C3: [.75, .249, .833], 0x2308: [.85, .349, .472], 0x2309: [.85, .349, .472], 0x230A: [.85, .349, .472], 0x230B: [.85, .349, .472], 0x2329: [.85, .35, .472], 0x232A: [.85, .35, .472], 0x23D0: [.602, 0, .667], 0x2758: [.627, .015, .333], 0x27E8: [.85, .35, .472], 0x27E9: [.85, .35, .472], 0x2A00: [.75, .25, 1.111], 0x2A01: [.75, .25, 1.111], 0x2A02: [.75, .25, 1.111], 0x2A04: [.75, .249, .833], 0x2A06: [.75, .249, .833], 0x2A0C: [.805, .306, 1.638, { ic: .138 }], 0x3008: [.85, .35, .472], 0x3009: [.85, .35, .472], }; //# sourceMappingURL=smallop.js.map /***/ }), /* 32 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texCalligraphicBold = void 0; var FontData_js_1 = __webpack_require__(0); var tex_calligraphic_bold_js_1 = __webpack_require__(33); exports.texCalligraphicBold = FontData_js_1.AddCSS(tex_calligraphic_bold_js_1.texCalligraphicBold, { 0x131: { f: 'B' }, 0x237: { f: 'B' }, }); //# sourceMappingURL=tex-calligraphic-bold.js.map /***/ }), /* 33 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texCalligraphicBold = void 0; exports.texCalligraphicBold = { 0x41: [.751, .049, .921, { ic: .068, sk: .224 }], 0x42: [.705, .017, .748, { sk: .16 }], 0x43: [.703, .02, .613, { sk: .16 }], 0x44: [.686, 0, .892, { sk: .0958 }], 0x45: [.703, .016, .607, { ic: .02, sk: .128 }], 0x46: [.686, .03, .814, { ic: .116, sk: .128 }], 0x47: [.703, .113, .682, { sk: .128 }], 0x48: [.686, .048, .987, { sk: .128 }], 0x49: [.686, 0, .642, { ic: .104, sk: .0319 }], 0x4A: [.686, .114, .779, { ic: .158, sk: .192 }], 0x4B: [.703, .017, .871, { sk: .0639 }], 0x4C: [.703, .017, .788, { sk: .16 }], 0x4D: [.703, .049, 1.378, { sk: .16 }], 0x4E: [.84, .049, .937, { ic: .168, sk: .0958 }], 0x4F: [.703, .017, .906, { sk: .128 }], 0x50: [.686, .067, .81, { ic: .036, sk: .0958 }], 0x51: [.703, .146, .939, { sk: .128 }], 0x52: [.686, .017, .99, { sk: .0958 }], 0x53: [.703, .016, .696, { ic: .025, sk: .16 }], 0x54: [.72, .069, .644, { ic: .303, sk: .0319 }], 0x55: [.686, .024, .715, { ic: .056, sk: .0958 }], 0x56: [.686, .077, .737, { ic: .037, sk: .0319 }], 0x57: [.686, .077, 1.169, { ic: .037, sk: .0958 }], 0x58: [.686, 0, .817, { ic: .089, sk: .16 }], 0x59: [.686, .164, .759, { ic: .038, sk: .0958 }], 0x5A: [.686, 0, .818, { ic: .035, sk: .16 }], 0x131: [.452, .008, .394, { sk: .0319 }], 0x237: [.451, .201, .439, { sk: .0958 }], }; //# sourceMappingURL=tex-calligraphic-bold.js.map /***/ }), /* 34 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texCalligraphic = void 0; exports.texCalligraphic = { 0x41: [.728, .05, .798, { ic: .021, sk: .194 }], 0x42: [.705, .022, .657, { sk: .139 }], 0x43: [.705, .025, .527, { sk: .139 }], 0x44: [.683, 0, .771, { sk: .0833 }], 0x45: [.705, .022, .528, { ic: .036, sk: .111 }], 0x46: [.683, .032, .719, { ic: .11, sk: .111 }], 0x47: [.704, .119, .595, { sk: .111 }], 0x48: [.683, .048, .845, { sk: .111 }], 0x49: [.683, 0, .545, { ic: .097, sk: .0278 }], 0x4A: [.683, .119, .678, { ic: .161, sk: .167 }], 0x4B: [.705, .022, .762, { sk: .0556 }], 0x4C: [.705, .022, .69, { sk: .139 }], 0x4D: [.705, .05, 1.201, { sk: .139 }], 0x4E: [.789, .05, .82, { ic: .159, sk: .0833 }], 0x4F: [.705, .022, .796, { sk: .111 }], 0x50: [.683, .057, .696, { ic: .037, sk: .0833 }], 0x51: [.705, .131, .817, { sk: .111 }], 0x52: [.682, .022, .848, { sk: .0833 }], 0x53: [.705, .022, .606, { ic: .036, sk: .139 }], 0x54: [.717, .068, .545, { ic: .288, sk: .0278 }], 0x55: [.683, .028, .626, { ic: .061, sk: .0833 }], 0x56: [.683, .052, .613, { ic: .045, sk: .0278 }], 0x57: [.683, .053, .988, { ic: .046, sk: .0833 }], 0x58: [.683, 0, .713, { ic: .094, sk: .139 }], 0x59: [.683, .143, .668, { ic: .046, sk: .0833 }], 0x5A: [.683, 0, .725, { ic: .042, sk: .139 }], }; //# sourceMappingURL=tex-calligraphic.js.map /***/ }), /* 35 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texMathit = void 0; exports.texMathit = { 0x41: [.716, 0, .743], 0x42: [.683, 0, .704], 0x43: [.705, .021, .716], 0x44: [.683, 0, .755], 0x45: [.68, 0, .678], 0x46: [.68, 0, .653], 0x47: [.705, .022, .774], 0x48: [.683, 0, .743], 0x49: [.683, 0, .386], 0x4A: [.683, .021, .525], 0x4B: [.683, 0, .769], 0x4C: [.683, 0, .627], 0x4D: [.683, 0, .897], 0x4E: [.683, 0, .743], 0x4F: [.704, .022, .767], 0x50: [.683, 0, .678], 0x51: [.704, .194, .767], 0x52: [.683, .022, .729], 0x53: [.705, .022, .562], 0x54: [.677, 0, .716], 0x55: [.683, .022, .743], 0x56: [.683, .022, .743], 0x57: [.683, .022, .999], 0x58: [.683, 0, .743], 0x59: [.683, 0, .743], 0x5A: [.683, 0, .613], 0x61: [.442, .011, .511], 0x62: [.694, .011, .46], 0x63: [.441, .01, .46], 0x64: [.694, .011, .511], 0x65: [.442, .01, .46], 0x66: [.705, .204, .307], 0x67: [.442, .205, .46], 0x68: [.694, .011, .511], 0x69: [.656, .01, .307], 0x6A: [.656, .204, .307], 0x6B: [.694, .011, .46], 0x6C: [.694, .011, .256], 0x6D: [.442, .011, .818], 0x6E: [.442, .011, .562], 0x6F: [.442, .011, .511], 0x70: [.442, .194, .511], 0x71: [.442, .194, .46], 0x72: [.442, .011, .422], 0x73: [.442, .011, .409], 0x74: [.626, .011, .332], 0x75: [.441, .011, .537], 0x76: [.443, .01, .46], 0x77: [.443, .011, .664], 0x78: [.442, .011, .464], 0x79: [.441, .205, .486], 0x7A: [.442, .011, .409], }; //# sourceMappingURL=tex-mathit.js.map /***/ }), /* 36 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texOldstyleBold = void 0; exports.texOldstyleBold = { 0x30: [.46, .017, .575], 0x31: [.461, 0, .575], 0x32: [.46, 0, .575], 0x33: [.461, .211, .575], 0x34: [.469, .194, .575], 0x35: [.461, .211, .575], 0x36: [.66, .017, .575], 0x37: [.476, .211, .575], 0x38: [.661, .017, .575], 0x39: [.461, .21, .575], 0x41: [.751, .049, .921, { ic: .068, sk: .224 }], 0x42: [.705, .017, .748, { sk: .16 }], 0x43: [.703, .02, .613, { sk: .16 }], 0x44: [.686, 0, .892, { sk: .0958 }], 0x45: [.703, .016, .607, { ic: .02, sk: .128 }], 0x46: [.686, .03, .814, { ic: .116, sk: .128 }], 0x47: [.703, .113, .682, { sk: .128 }], 0x48: [.686, .048, .987, { sk: .128 }], 0x49: [.686, 0, .642, { ic: .104, sk: .0319 }], 0x4A: [.686, .114, .779, { ic: .158, sk: .192 }], 0x4B: [.703, .017, .871, { sk: .0639 }], 0x4C: [.703, .017, .788, { sk: .16 }], 0x4D: [.703, .049, 1.378, { sk: .16 }], 0x4E: [.84, .049, .937, { ic: .168, sk: .0958 }], 0x4F: [.703, .017, .906, { sk: .128 }], 0x50: [.686, .067, .81, { ic: .036, sk: .0958 }], 0x51: [.703, .146, .939, { sk: .128 }], 0x52: [.686, .017, .99, { sk: .0958 }], 0x53: [.703, .016, .696, { ic: .025, sk: .16 }], 0x54: [.72, .069, .644, { ic: .303, sk: .0319 }], 0x55: [.686, .024, .715, { ic: .056, sk: .0958 }], 0x56: [.686, .077, .737, { ic: .037, sk: .0319 }], 0x57: [.686, .077, 1.169, { ic: .037, sk: .0958 }], 0x58: [.686, 0, .817, { ic: .089, sk: .16 }], 0x59: [.686, .164, .759, { ic: .038, sk: .0958 }], 0x5A: [.686, 0, .818, { ic: .035, sk: .16 }], }; //# sourceMappingURL=tex-oldstyle-bold.js.map /***/ }), /* 37 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texOldstyle = void 0; exports.texOldstyle = { 0x30: [.452, .022, .5], 0x31: [.453, 0, .5], 0x32: [.453, 0, .5], 0x33: [.452, .216, .5], 0x34: [.464, .194, .5], 0x35: [.453, .216, .5], 0x36: [.665, .022, .5], 0x37: [.463, .216, .5], 0x38: [.666, .021, .5], 0x39: [.453, .216, .5], 0x41: [.728, .05, .798, { ic: .021, sk: .194 }], 0x42: [.705, .022, .657, { sk: .139 }], 0x43: [.705, .025, .527, { sk: .139 }], 0x44: [.683, 0, .771, { sk: .0833 }], 0x45: [.705, .022, .528, { ic: .036, sk: .111 }], 0x46: [.683, .032, .719, { ic: .11, sk: .111 }], 0x47: [.704, .119, .595, { sk: .111 }], 0x48: [.683, .048, .845, { sk: .111 }], 0x49: [.683, 0, .545, { ic: .097, sk: .0278 }], 0x4A: [.683, .119, .678, { ic: .161, sk: .167 }], 0x4B: [.705, .022, .762, { sk: .0556 }], 0x4C: [.705, .022, .69, { sk: .139 }], 0x4D: [.705, .05, 1.201, { sk: .139 }], 0x4E: [.789, .05, .82, { ic: .159, sk: .0833 }], 0x4F: [.705, .022, .796, { sk: .111 }], 0x50: [.683, .057, .696, { ic: .037, sk: .0833 }], 0x51: [.705, .131, .817, { sk: .111 }], 0x52: [.682, .022, .848, { sk: .0833 }], 0x53: [.705, .022, .606, { ic: .036, sk: .139 }], 0x54: [.717, .068, .545, { ic: .288, sk: .0278 }], 0x55: [.683, .028, .626, { ic: .061, sk: .0833 }], 0x56: [.683, .052, .613, { ic: .045, sk: .0278 }], 0x57: [.683, .053, .988, { ic: .046, sk: .0833 }], 0x58: [.683, 0, .713, { ic: .094, sk: .139 }], 0x59: [.683, .143, .668, { ic: .046, sk: .0833 }], 0x5A: [.683, 0, .725, { ic: .042, sk: .139 }], }; //# sourceMappingURL=tex-oldstyle.js.map /***/ }), /* 38 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texSize3 = void 0; var FontData_js_1 = __webpack_require__(0); var tex_size3_js_1 = __webpack_require__(39); exports.texSize3 = FontData_js_1.AddCSS(tex_size3_js_1.texSize3, { 0x2044: { c: '/' }, 0x2329: { c: '\\27E8' }, 0x232A: { c: '\\27E9' }, 0x3008: { c: '\\27E8' }, 0x3009: { c: '\\27E9' }, }); //# sourceMappingURL=tex-size3.js.map /***/ }), /* 39 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texSize3 = void 0; exports.texSize3 = { 0x28: [1.45, .949, .736], 0x29: [1.45, .949, .736], 0x2F: [1.45, .949, 1.044], 0x5B: [1.45, .949, .528], 0x5C: [1.45, .949, 1.044], 0x5D: [1.45, .949, .528], 0x7B: [1.45, .949, .75], 0x7D: [1.45, .949, .75], 0x2C6: [.772, -0.564, 1.444], 0x2DC: [.749, -0.61, 1.444], 0x302: [.772, -0.564, 0], 0x303: [.749, -0.61, 0], 0x2044: [1.45, .949, 1.044], 0x221A: [1.45, .95, 1, { ic: .02 }], 0x2308: [1.45, .949, .583], 0x2309: [1.45, .949, .583], 0x230A: [1.45, .949, .583], 0x230B: [1.45, .949, .583], 0x2329: [1.45, .95, .75], 0x232A: [1.45, .949, .75], 0x27E8: [1.45, .95, .75], 0x27E9: [1.45, .949, .75], 0x3008: [1.45, .95, .75], 0x3009: [1.45, .949, .75], }; //# sourceMappingURL=tex-size3.js.map /***/ }), /* 40 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texSize4 = void 0; var FontData_js_1 = __webpack_require__(0); var tex_size4_js_1 = __webpack_require__(41); exports.texSize4 = FontData_js_1.AddCSS(tex_size4_js_1.texSize4, { 0x2044: { c: '/' }, 0x2329: { c: '\\27E8' }, 0x232A: { c: '\\27E9' }, 0x3008: { c: '\\27E8' }, 0x3009: { c: '\\27E9' }, 0xE155: { c: '\\E153\\E152' }, 0xE156: { c: '\\E151\\E150' }, }); //# sourceMappingURL=tex-size4.js.map /***/ }), /* 41 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texSize4 = void 0; exports.texSize4 = { 0x28: [1.75, 1.249, .792], 0x29: [1.75, 1.249, .792], 0x2F: [1.75, 1.249, 1.278], 0x5B: [1.75, 1.249, .583], 0x5C: [1.75, 1.249, 1.278], 0x5D: [1.75, 1.249, .583], 0x7B: [1.75, 1.249, .806], 0x7D: [1.75, 1.249, .806], 0x2C6: [.845, -0.561, 1.889, { ic: .013 }], 0x2DC: [.823, -0.583, 1.889], 0x302: [.845, -0.561, 0, { ic: .013 }], 0x303: [.823, -0.583, 0], 0x2044: [1.75, 1.249, 1.278], 0x221A: [1.75, 1.25, 1, { ic: .02 }], 0x2308: [1.75, 1.249, .639], 0x2309: [1.75, 1.249, .639], 0x230A: [1.75, 1.249, .639], 0x230B: [1.75, 1.249, .639], 0x2329: [1.75, 1.248, .806], 0x232A: [1.75, 1.248, .806], 0x239B: [1.154, .655, .875], 0x239C: [.61, .01, .875], 0x239D: [1.165, .644, .875], 0x239E: [1.154, .655, .875], 0x239F: [.61, .01, .875], 0x23A0: [1.165, .644, .875], 0x23A1: [1.154, .645, .667], 0x23A2: [.602, 0, .667], 0x23A3: [1.155, .644, .667], 0x23A4: [1.154, .645, .667], 0x23A5: [.602, 0, .667], 0x23A6: [1.155, .644, .667], 0x23A7: [.899, .01, .889], 0x23A8: [1.16, .66, .889], 0x23A9: [.01, .899, .889], 0x23AA: [.29, .015, .889], 0x23AB: [.899, .01, .889], 0x23AC: [1.16, .66, .889], 0x23AD: [.01, .899, .889], 0x23B7: [.935, .885, 1.056], 0x27E8: [1.75, 1.248, .806], 0x27E9: [1.75, 1.248, .806], 0x3008: [1.75, 1.248, .806], 0x3009: [1.75, 1.248, .806], 0xE000: [.625, .014, 1.056], 0xE001: [.605, .014, 1.056, { ic: .02 }], 0xE150: [.12, .213, .45, { ic: .01 }], 0xE151: [.12, .213, .45, { ic: .024 }], 0xE152: [.333, 0, .45, { ic: .01 }], 0xE153: [.333, 0, .45, { ic: .024 }], 0xE154: [.32, .2, .4, { ic: .01 }], 0xE155: [.333, 0, .9, { ic: .01 }], 0xE156: [.12, .213, .9, { ic: .01 }], }; //# sourceMappingURL=tex-size4.js.map /***/ }), /* 42 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texVariant = void 0; var FontData_js_1 = __webpack_require__(0); var tex_variant_js_1 = __webpack_require__(43); exports.texVariant = FontData_js_1.AddCSS(tex_variant_js_1.texVariant, { 0x3F0: { c: '\\E009' }, 0x210F: { f: '' }, 0x2224: { c: '\\E006' }, 0x2226: { c: '\\E007' }, 0x2268: { c: '\\E00C' }, 0x2269: { c: '\\E00D' }, 0x2270: { c: '\\E011' }, 0x2271: { c: '\\E00E' }, 0x2288: { c: '\\E016' }, 0x2289: { c: '\\E018' }, 0x228A: { c: '\\E01A' }, 0x228B: { c: '\\E01B' }, 0x2A87: { c: '\\E010' }, 0x2A88: { c: '\\E00F' }, 0x2ACB: { c: '\\E017' }, 0x2ACC: { c: '\\E019' }, }); //# sourceMappingURL=tex-variant.js.map /***/ }), /* 43 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.texVariant = void 0; exports.texVariant = { 0x2C6: [.845, -0.561, 2.333, { ic: .013 }], 0x2DC: [.899, -0.628, 2.333], 0x302: [.845, -0.561, 0, { ic: .013 }], 0x303: [.899, -0.628, 0], 0x3F0: [.434, .006, .667, { ic: .067 }], 0x210F: [.695, .013, .54, { ic: .022 }], 0x2190: [.437, -0.064, .5], 0x2192: [.437, -0.064, .5], 0x21CC: [.514, .014, 1], 0x2204: [.86, .166, .556], 0x2205: [.587, 0, .778], 0x2212: [.27, -0.23, .5], 0x2216: [.43, .023, .778], 0x221D: [.472, -0.028, .778], 0x2223: [.43, .023, .222], 0x2224: [.43, .023, .222, { ic: .018 }], 0x2225: [.431, .023, .389], 0x2226: [.431, .024, .389, { ic: .018 }], 0x223C: [.365, -0.132, .778], 0x2248: [.481, -0.05, .778], 0x2268: [.752, .284, .778], 0x2269: [.752, .284, .778], 0x2270: [.919, .421, .778], 0x2271: [.919, .421, .778], 0x2288: [.828, .33, .778], 0x2289: [.828, .33, .778], 0x228A: [.634, .255, .778], 0x228B: [.634, .254, .778], 0x22A8: [.694, 0, .611], 0x22C5: [.189, 0, .278], 0x2322: [.378, -0.122, .778], 0x2323: [.378, -0.143, .778], 0x25B3: [.575, .02, .722], 0x25BD: [.576, .019, .722], 0x2A87: [.801, .303, .778], 0x2A88: [.801, .303, .778], 0x2ACB: [.752, .332, .778], 0x2ACC: [.752, .333, .778], }; //# sourceMappingURL=tex-variant.js.map /***/ }), /* 44 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.delimiters = exports.VSIZES = exports.HDW3 = exports.HDW2 = exports.HDW1 = void 0; var FontData_js_1 = __webpack_require__(55); exports.HDW1 = [.75, .25, .875]; exports.HDW2 = [.85, .349, .667]; exports.HDW3 = [.583, .082, .5]; exports.VSIZES = [1, 1.2, 1.8, 2.4, 3]; var DELIM2F = { c: 0x2F, dir: FontData_js_1.V, sizes: exports.VSIZES }; var DELIMAF = { c: 0xAF, dir: FontData_js_1.H, sizes: [.59], stretch: [0, 0xAF], HDW: [.59, -0.544, .5] }; var DELIM2C6 = { c: 0x2C6, dir: FontData_js_1.H, sizes: [.517, .817, 1.335, 1.777, 1.909] }; var DELIM2DC = { c: 0x2DC, dir: FontData_js_1.H, sizes: [.583, .805, 1.33, 1.773, 1.887] }; var DELIM2013 = { c: 0x2013, dir: FontData_js_1.H, sizes: [.5], stretch: [0, 0x2013], HDW: [.285, -0.248, .5] }; var DELIM2190 = { c: 0x2190, dir: FontData_js_1.H, sizes: [1], stretch: [0x2190, 0x2212], HDW: exports.HDW3 }; var DELIM2192 = { c: 0x2192, dir: FontData_js_1.H, sizes: [1], stretch: [0, 0x2212, 0x2192], HDW: exports.HDW3 }; var DELIM2194 = { c: 0x2194, dir: FontData_js_1.H, sizes: [1], stretch: [0x2190, 0x2212, 0x2192], HDW: exports.HDW3 }; var DELIM21A4 = { c: 0x21A4, dir: FontData_js_1.H, stretch: [0x2190, 0x2212, 0x2223], HDW: exports.HDW3, min: 1.278 }; var DELIM21A6 = { c: 0x21A6, dir: FontData_js_1.H, sizes: [1], stretch: [0x2223, 0x2212, 0x2192], HDW: exports.HDW3 }; var DELIM21D0 = { c: 0x21D0, dir: FontData_js_1.H, sizes: [1], stretch: [0x21D0, 0x3D], HDW: exports.HDW3 }; var DELIM21D2 = { c: 0x21D2, dir: FontData_js_1.H, sizes: [1], stretch: [0, 0x3D, 0x21D2], HDW: exports.HDW3 }; var DELIM21D4 = { c: 0x21D4, dir: FontData_js_1.H, sizes: [1], stretch: [0x21D0, 0x3D, 0x21D2], HDW: exports.HDW3 }; var DELIM2212 = { c: 0x2212, dir: FontData_js_1.H, sizes: [.778], stretch: [0, 0x2212], HDW: exports.HDW3 }; var DELIM2223 = { c: 0x2223, dir: FontData_js_1.V, sizes: [1], stretch: [0, 0x2223], HDW: [.627, .015, .333] }; var DELIM23DC = { c: 0x23DC, dir: FontData_js_1.H, sizes: [.778, 1], schar: [0x2322, 0x2322], stretch: [0xE150, 0xE154, 0xE151], HDW: [.32, .2, .5] }; var DELIM23DD = { c: 0x23DD, dir: FontData_js_1.H, sizes: [.778, 1], schar: [0x2323, 0x2323], stretch: [0xE152, 0xE154, 0xE153], HDW: [.32, .2, .5] }; var DELIM23DE = { c: 0x23DE, dir: FontData_js_1.H, stretch: [0xE150, 0xE154, 0xE151, 0xE155], HDW: [.32, .2, .5], min: 1.8 }; var DELIM23DF = { c: 0x23DF, dir: FontData_js_1.H, stretch: [0xE152, 0xE154, 0xE153, 0xE156], HDW: [.32, .2, .5], min: 1.8 }; var DELIM27E8 = { c: 0x27E8, dir: FontData_js_1.V, sizes: exports.VSIZES }; var DELIM27E9 = { c: 0x27E9, dir: FontData_js_1.V, sizes: exports.VSIZES }; var DELIM2906 = { c: 0x2906, dir: FontData_js_1.H, stretch: [0x21D0, 0x3D, 0x2223], HDW: exports.HDW3, min: 1.278 }; var DELIM2907 = { c: 0x2907, dir: FontData_js_1.H, stretch: [0x22A8, 0x3D, 0x21D2], HDW: exports.HDW3, min: 1.278 }; exports.delimiters = { 0x28: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0x239B, 0x239C, 0x239D], HDW: [.85, .349, .875] }, 0x29: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0x239E, 0x239F, 0x23A0], HDW: [.85, .349, .875] }, 0x2D: DELIM2212, 0x2F: DELIM2F, 0x3D: { dir: FontData_js_1.H, sizes: [.767], stretch: [0, 0x3D], HDW: exports.HDW3 }, 0x5B: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0x23A1, 0x23A2, 0x23A3], HDW: exports.HDW2 }, 0x5C: { dir: FontData_js_1.V, sizes: exports.VSIZES }, 0x5D: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0x23A4, 0x23A5, 0x23A6], HDW: exports.HDW2 }, 0x5E: DELIM2C6, 0x5F: DELIM2013, 0x7B: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0x23A7, 0x23AA, 0x23A9, 0x23A8], HDW: [.85, .349, .889] }, 0x7C: { dir: FontData_js_1.V, sizes: [1], stretch: [0, 0x2223], HDW: [.75, .25, .333] }, 0x7D: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0x23AB, 0x23AA, 0x23AD, 0x23AC], HDW: [.85, .349, .889] }, 0x7E: DELIM2DC, 0xAF: DELIMAF, 0x2C6: DELIM2C6, 0x2C9: DELIMAF, 0x2DC: DELIM2DC, 0x302: DELIM2C6, 0x303: DELIM2DC, 0x332: DELIM2013, 0x2013: DELIM2013, 0x2014: DELIM2013, 0x2015: DELIM2013, 0x2016: { dir: FontData_js_1.V, sizes: [.602, 1], schar: [0, 0x2225], stretch: [0, 0x2225], HDW: [.602, 0, .556] }, 0x2017: DELIM2013, 0x203E: DELIMAF, 0x20D7: DELIM2192, 0x2190: DELIM2190, 0x2191: { dir: FontData_js_1.V, sizes: [.888], stretch: [0x2191, 0x23D0], HDW: [.6, 0, .667] }, 0x2192: DELIM2192, 0x2193: { dir: FontData_js_1.V, sizes: [.888], stretch: [0, 0x23D0, 0x2193], HDW: [.6, 0, .667] }, 0x2194: DELIM2194, 0x2195: { dir: FontData_js_1.V, sizes: [1.044], stretch: [0x2191, 0x23D0, 0x2193], HDW: exports.HDW1 }, 0x219E: { dir: FontData_js_1.H, sizes: [1], stretch: [0x219E, 0x2212], HDW: exports.HDW3 }, 0x21A0: { dir: FontData_js_1.H, sizes: [1], stretch: [0, 0x2212, 0x21A0], HDW: exports.HDW3 }, 0x21A4: DELIM21A4, 0x21A5: { dir: FontData_js_1.V, stretch: [0x2191, 0x23D0, 0x22A5], HDW: exports.HDW1, min: 1.555 }, 0x21A6: DELIM21A6, 0x21A7: { dir: FontData_js_1.V, stretch: [0x22A4, 0x23D0, 0x2193], HDW: exports.HDW1, min: 1.555 }, 0x21B0: { dir: FontData_js_1.V, sizes: [.722], stretch: [0x21B0, 0x23D0], HDW: exports.HDW1 }, 0x21B1: { dir: FontData_js_1.V, sizes: [.722], stretch: [0x21B1, 0x23D0], HDW: exports.HDW1 }, 0x21BC: { dir: FontData_js_1.H, sizes: [1], stretch: [0x21BC, 0x2212], HDW: exports.HDW3 }, 0x21BD: { dir: FontData_js_1.H, sizes: [1], stretch: [0x21BD, 0x2212], HDW: exports.HDW3 }, 0x21BE: { dir: FontData_js_1.V, sizes: [.888], stretch: [0x21BE, 0x23D0], HDW: exports.HDW1 }, 0x21BF: { dir: FontData_js_1.V, sizes: [.888], stretch: [0x21BF, 0x23D0], HDW: exports.HDW1 }, 0x21C0: { dir: FontData_js_1.H, sizes: [1], stretch: [0, 0x2212, 0x21C0], HDW: exports.HDW3 }, 0x21C1: { dir: FontData_js_1.H, sizes: [1], stretch: [0, 0x2212, 0x21C1], HDW: exports.HDW3 }, 0x21C2: { dir: FontData_js_1.V, sizes: [.888], stretch: [0, 0x23D0, 0x21C2], HDW: exports.HDW1 }, 0x21C3: { dir: FontData_js_1.V, sizes: [.888], stretch: [0, 0x23D0, 0x21C3], HDW: exports.HDW1 }, 0x21D0: DELIM21D0, 0x21D1: { dir: FontData_js_1.V, sizes: [.888], stretch: [0x21D1, 0x2016], HDW: [.599, 0, .778] }, 0x21D2: DELIM21D2, 0x21D3: { dir: FontData_js_1.V, sizes: [.888], stretch: [0, 0x2016, 0x21D3], HDW: [.6, 0, .778] }, 0x21D4: DELIM21D4, 0x21D5: { dir: FontData_js_1.V, sizes: [1.044], stretch: [0x21D1, 0x2016, 0x21D3], HDW: [.75, .25, .778] }, 0x21DA: { dir: FontData_js_1.H, sizes: [1], stretch: [0x21DA, 0x2261], HDW: [.464, -0.036, .5] }, 0x21DB: { dir: FontData_js_1.H, sizes: [1], stretch: [0, 0x2261, 0x21DB], HDW: [.464, -0.036, .5] }, 0x2212: DELIM2212, 0x2215: DELIM2F, 0x221A: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0xE001, 0xE000, 0x23B7], HDW: [.85, .35, 1.056] }, 0x2223: DELIM2223, 0x2225: { dir: FontData_js_1.V, sizes: [1], stretch: [0, 0x2225], HDW: [.627, .015, .556] }, 0x2308: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0x23A1, 0x23A2], HDW: exports.HDW2 }, 0x2309: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0x23A4, 0x23A5], HDW: exports.HDW2 }, 0x230A: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0, 0x23A2, 0x23A3], HDW: exports.HDW2 }, 0x230B: { dir: FontData_js_1.V, sizes: exports.VSIZES, stretch: [0, 0x23A5, 0x23A6], HDW: exports.HDW2 }, 0x2312: DELIM23DC, 0x2322: DELIM23DC, 0x2323: DELIM23DD, 0x2329: DELIM27E8, 0x232A: DELIM27E9, 0x23AA: { dir: FontData_js_1.V, sizes: [.32], stretch: [0x23AA, 0x23AA, 0x23AA], HDW: [.29, .015, .889] }, 0x23AF: DELIM2013, 0x23B0: { dir: FontData_js_1.V, sizes: [.989], stretch: [0x23A7, 0x23AA, 0x23AD], HDW: [.75, .25, .889] }, 0x23B1: { dir: FontData_js_1.V, sizes: [.989], stretch: [0x23AB, 0x23AA, 0x23A9], HDW: [.75, .25, .889] }, 0x23B4: { dir: FontData_js_1.H, stretch: [0x250C, 0x2212, 0x2510], HDW: exports.HDW3, min: 1 }, 0x23B5: { dir: FontData_js_1.H, stretch: [0x2514, 0x2212, 0x2518], HDW: exports.HDW3, min: 1 }, 0x23D0: { dir: FontData_js_1.V, sizes: [.602, 1], schar: [0, 0x2223], stretch: [0, 0x2223], HDW: [.602, 0, .333] }, 0x23DC: DELIM23DC, 0x23DD: DELIM23DD, 0x23DE: DELIM23DE, 0x23DF: DELIM23DF, 0x23E0: { dir: FontData_js_1.H, stretch: [0x2CA, 0x2C9, 0x2CB], HDW: [.59, -0.544, .5], min: 1 }, 0x23E1: { dir: FontData_js_1.H, stretch: [0x2CB, 0x2C9, 0x2CA], HDW: [.59, -0.544, .5], min: 1 }, 0x2500: DELIM2013, 0x2758: DELIM2223, 0x27E8: DELIM27E8, 0x27E9: DELIM27E9, 0x27EE: { dir: FontData_js_1.V, sizes: [.989], stretch: [0x23A7, 0x23AA, 0x23A9], HDW: [.75, .25, .889] }, 0x27EF: { dir: FontData_js_1.V, sizes: [.989], stretch: [0x23AB, 0x23AA, 0x23AD], HDW: [.75, .25, .889] }, 0x27F5: DELIM2190, 0x27F6: DELIM2192, 0x27F7: DELIM2194, 0x27F8: DELIM21D0, 0x27F9: DELIM21D2, 0x27FA: DELIM21D4, 0x27FB: DELIM21A4, 0x27FC: DELIM21A6, 0x27FD: DELIM2906, 0x27FE: DELIM2907, 0x2906: DELIM2906, 0x2907: DELIM2907, 0x294E: { dir: FontData_js_1.H, stretch: [0x21BC, 0x2212, 0x21C0], HDW: exports.HDW3, min: 2 }, 0x294F: { dir: FontData_js_1.V, stretch: [0x21BE, 0x23D0, 0x21C2], HDW: exports.HDW1, min: 1.776 }, 0x2950: { dir: FontData_js_1.H, stretch: [0x21BD, 0x2212, 0x21C1], HDW: exports.HDW3, min: 2 }, 0x2951: { dir: FontData_js_1.V, stretch: [0x21BF, 0x23D0, 0x21C3], HDW: exports.HDW1, min: .5 }, 0x295A: { dir: FontData_js_1.H, stretch: [0x21BC, 0x2212, 0x2223], HDW: exports.HDW3, min: 1.278 }, 0x295B: { dir: FontData_js_1.H, stretch: [0x2223, 0x2212, 0x21C0], HDW: exports.HDW3, min: 1.278 }, 0x295C: { dir: FontData_js_1.V, stretch: [0x21BE, 0x23D0, 0x22A5], HDW: exports.HDW1, min: 1.556 }, 0x295D: { dir: FontData_js_1.V, stretch: [0x22A4, 0x23D0, 0x21C2], HDW: exports.HDW1, min: 1.556 }, 0x295E: { dir: FontData_js_1.H, stretch: [0x21BD, 0x2212, 0x2223], HDW: exports.HDW3, min: 1.278 }, 0x295F: { dir: FontData_js_1.H, stretch: [0x2223, 0x2212, 0x21C1], HDW: exports.HDW3, min: 1.278 }, 0x2960: { dir: FontData_js_1.V, stretch: [0x21BF, 0x23D0, 0x22A5], HDW: exports.HDW1, min: 1.776 }, 0x2961: { dir: FontData_js_1.V, stretch: [0x22A4, 0x23D0, 0x21C3], HDW: exports.HDW1, min: 1.776 }, 0x3008: DELIM27E8, 0x3009: DELIM27E9, 0xFE37: DELIM23DE, 0xFE38: DELIM23DF, }; //# sourceMappingURL=delimiters.js.map /***/ }), /* 45 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.PackageError = MathJax._.components["package"].PackageError; exports.Package = MathJax._.components["package"].Package; /***/ }), /* 46 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports.APPEND = MathJax._.util.Options.APPEND; exports.REMOVE = MathJax._.util.Options.REMOVE; exports.Expandable = MathJax._.util.Options.Expandable; exports.expandable = MathJax._.util.Options.expandable; exports.makeArray = MathJax._.util.Options.makeArray; exports.keys = MathJax._.util.Options.keys; exports.copy = MathJax._.util.Options.copy; exports.insert = MathJax._.util.Options.insert; exports.defaultOptions = MathJax._.util.Options.defaultOptions; exports.userOptions = MathJax._.util.Options.userOptions; exports.selectOptions = MathJax._.util.Options.selectOptions; exports.selectOptionsFromKeys = MathJax._.util.Options.selectOptionsFromKeys; exports.separateOptions = MathJax._.util.Options.separateOptions; /***/ }), /* 47 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommonTeXFontMixin = void 0; function CommonTeXFontMixin(Base) { var _a; return _a = (function (_super) { __extends(class_1, _super); function class_1() { return _super !== null && _super.apply(this, arguments) || this; } class_1.prototype.getDelimiterData = function (n) { return this.getChar('-smallop', n) || this.getChar('-size4', n); }; return class_1; }(Base)), _a.defaultVariants = __spread(Base.defaultVariants, [ ['-smallop', 'normal'], ['-largeop', 'normal'], ['-size3', 'normal'], ['-size4', 'normal'], ['-tex-calligraphic', 'italic'], ['-tex-bold-calligraphic', 'bold-italic'], ['-tex-oldstyle', 'normal'], ['-tex-bold-oldstyle', 'bold'], ['-tex-mathit', 'italic'], ['-tex-variant', 'normal'] ]), _a.defaultCssFonts = __assign(__assign({}, Base.defaultCssFonts), { '-smallop': ['serif', false, false], '-largeop': ['serif', false, false], '-size3': ['serif', false, false], '-size4': ['serif', false, false], '-tex-calligraphic': ['cursive', true, false], '-tex-bold-calligraphic': ['cursive', true, true], '-tex-oldstyle': ['serif', false, false], '-tex-bold-oldstyle': ['serif', false, true], '-tex-mathit': ['serif', true, false] }), _a.defaultSizeVariants = ['normal', '-smallop', '-largeop', '-size3', '-size4'], _a; } exports.CommonTeXFontMixin = CommonTeXFontMixin; //# sourceMappingURL=tex.js.map /***/ }), /* 48 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var double_struck_js_1 = __webpack_require__(7); Object.defineProperty(exports, "doubleStruck", { enumerable: true, get: function () { return double_struck_js_1.doubleStruck; } }); //# sourceMappingURL=double-struck.js.map /***/ }), /* 49 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var script_bold_js_1 = __webpack_require__(28); Object.defineProperty(exports, "scriptBold", { enumerable: true, get: function () { return script_bold_js_1.scriptBold; } }); //# sourceMappingURL=script-bold.js.map /***/ }), /* 50 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var script_js_1 = __webpack_require__(29); Object.defineProperty(exports, "script", { enumerable: true, get: function () { return script_js_1.script; } }); //# sourceMappingURL=script.js.map /***/ }), /* 51 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tex_calligraphic_js_1 = __webpack_require__(34); Object.defineProperty(exports, "texCalligraphic", { enumerable: true, get: function () { return tex_calligraphic_js_1.texCalligraphic; } }); //# sourceMappingURL=tex-calligraphic.js.map /***/ }), /* 52 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tex_mathit_js_1 = __webpack_require__(35); Object.defineProperty(exports, "texMathit", { enumerable: true, get: function () { return tex_mathit_js_1.texMathit; } }); //# sourceMappingURL=tex-mathit.js.map /***/ }), /* 53 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tex_oldstyle_bold_js_1 = __webpack_require__(36); Object.defineProperty(exports, "texOldstyleBold", { enumerable: true, get: function () { return tex_oldstyle_bold_js_1.texOldstyleBold; } }); //# sourceMappingURL=tex-oldstyle-bold.js.map /***/ }), /* 54 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tex_oldstyle_js_1 = __webpack_require__(37); Object.defineProperty(exports, "texOldstyle", { enumerable: true, get: function () { return tex_oldstyle_js_1.texOldstyle; } }); //# sourceMappingURL=tex-oldstyle.js.map /***/ }), /* 55 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports["enum"] = MathJax._.output.common.FontData["enum"]; exports.V = MathJax._.output.common.FontData.V; exports.H = MathJax._.output.common.FontData.H; exports.NOSTRETCH = MathJax._.output.common.FontData.NOSTRETCH; exports.FontData = MathJax._.output.common.FontData.FontData; /***/ }), /* 56 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/components/global.js var global = __webpack_require__(1); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex.js var tex = __webpack_require__(2); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/bold-italic.js var bold_italic = __webpack_require__(3); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/bold.js var bold = __webpack_require__(5); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/fraktur-bold.js var fraktur_bold = __webpack_require__(8); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/fraktur.js var fraktur = __webpack_require__(10); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/italic.js var italic = __webpack_require__(12); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/largeop.js var largeop = __webpack_require__(14); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/monospace.js var monospace = __webpack_require__(16); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/normal.js var normal = __webpack_require__(18); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/sans-serif-bold-italic.js var sans_serif_bold_italic = __webpack_require__(20); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/sans-serif-bold.js var sans_serif_bold = __webpack_require__(22); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/sans-serif-italic.js var sans_serif_italic = __webpack_require__(24); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/sans-serif.js var sans_serif = __webpack_require__(26); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/smallop.js var smallop = __webpack_require__(30); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/tex-calligraphic-bold.js var tex_calligraphic_bold = __webpack_require__(32); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/tex-size3.js var tex_size3 = __webpack_require__(38); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/tex-size4.js var tex_size4 = __webpack_require__(40); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/chtml/fonts/tex/tex-variant.js var tex_variant = __webpack_require__(42); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/bold-italic.js var tex_bold_italic = __webpack_require__(4); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/bold.js var tex_bold = __webpack_require__(6); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/delimiters.js var delimiters = __webpack_require__(44); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/double-struck.js var double_struck = __webpack_require__(7); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/fraktur-bold.js var tex_fraktur_bold = __webpack_require__(9); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/fraktur.js var tex_fraktur = __webpack_require__(11); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/italic.js var tex_italic = __webpack_require__(13); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/largeop.js var tex_largeop = __webpack_require__(15); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/monospace.js var tex_monospace = __webpack_require__(17); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/normal.js var tex_normal = __webpack_require__(19); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/sans-serif-bold-italic.js var tex_sans_serif_bold_italic = __webpack_require__(21); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/sans-serif-bold.js var tex_sans_serif_bold = __webpack_require__(23); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/sans-serif-italic.js var tex_sans_serif_italic = __webpack_require__(25); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/sans-serif.js var tex_sans_serif = __webpack_require__(27); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/script-bold.js var script_bold = __webpack_require__(28); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/script.js var script = __webpack_require__(29); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/smallop.js var tex_smallop = __webpack_require__(31); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/tex-calligraphic-bold.js var tex_tex_calligraphic_bold = __webpack_require__(33); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/tex-calligraphic.js var tex_calligraphic = __webpack_require__(34); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/tex-mathit.js var tex_mathit = __webpack_require__(35); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/tex-oldstyle-bold.js var tex_oldstyle_bold = __webpack_require__(36); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/tex-oldstyle.js var tex_oldstyle = __webpack_require__(37); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/tex-size3.js var tex_tex_size3 = __webpack_require__(39); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/tex-size4.js var tex_tex_size4 = __webpack_require__(41); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/js/output/common/fonts/tex/tex-variant.js var tex_tex_variant = __webpack_require__(43); // CONCATENATED MODULE: ./lib/tex.js Object(global["combineWithMathJax"])({ _: { output: { chtml: { fonts: { tex_ts: tex, tex: { "bold-italic": bold_italic, bold: bold, "fraktur-bold": fraktur_bold, fraktur: fraktur, italic: italic, largeop: largeop, monospace: monospace, normal: normal, "sans-serif-bold-italic": sans_serif_bold_italic, "sans-serif-bold": sans_serif_bold, "sans-serif-italic": sans_serif_italic, "sans-serif": sans_serif, smallop: smallop, "tex-calligraphic-bold": tex_calligraphic_bold, "tex-size3": tex_size3, "tex-size4": tex_size4, "tex-variant": tex_variant } } }, common: { fonts: { tex: { "bold-italic": tex_bold_italic, bold: tex_bold, delimiters: delimiters, "double-struck": double_struck, "fraktur-bold": tex_fraktur_bold, fraktur: tex_fraktur, italic: tex_italic, largeop: tex_largeop, monospace: tex_monospace, normal: tex_normal, "sans-serif-bold-italic": tex_sans_serif_bold_italic, "sans-serif-bold": tex_sans_serif_bold, "sans-serif-italic": tex_sans_serif_italic, "sans-serif": tex_sans_serif, "script-bold": script_bold, script: script, smallop: tex_smallop, "tex-calligraphic-bold": tex_tex_calligraphic_bold, "tex-calligraphic": tex_calligraphic, "tex-mathit": tex_mathit, "tex-oldstyle-bold": tex_oldstyle_bold, "tex-oldstyle": tex_oldstyle, "tex-size3": tex_tex_size3, "tex-size4": tex_tex_size4, "tex-variant": tex_tex_variant } } } } } }); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/startup/lib/components/package.js var components_package = __webpack_require__(45); // EXTERNAL MODULE: /home/wviechtb/work/software/mathjaxr/mjsource/components/src/core/lib/util/Options.js var Options = __webpack_require__(46); // CONCATENATED MODULE: ./tex.js if (MathJax.startup) { Object(global["combineDefaults"])(MathJax.config, 'chtml', { fontURL: components_package["Package"].resolvePath('output/chtml/fonts/woff-v2', false) }); var options = Object(Options["selectOptionsFromKeys"])(MathJax.config.chtml || {}, tex["TeXFont"].OPTIONS); Object(global["combineDefaults"])(MathJax.config, 'chtml', { font: new tex["TeXFont"](options) }); } /***/ }) /******/ ]);mathjaxr/src/mathjax/LICENSE0000644000176200001440000002613614005301544015324 0ustar liggesusers Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. mathjaxr/src/mathjax/README.md0000644000176200001440000001575314005301544015601 0ustar liggesusers# MathJax (Source Repository) GitHub release version GitHub release version (branch) powered-by NumFocus ## Beautiful math in all browsers MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all modern browsers. It was designed with the goal of consolidating the recent advances in web technologies into a single, definitive, math-on-the-web platform supporting the major browsers and operating systems. It requires no setup on the part of the user (no plugins to download or software to install), so the page author can write web documents that include mathematics and be confident that users will be able to view it naturally and easily. Simply include MathJax and some mathematics in a web page, and MathJax does the rest. Some of the main features of MathJax include: - High-quality display of LaTeX, MathML, and AsciiMath notation in HTML pages - Supported in most browsers with no plug-ins, extra fonts, or special setup for the reader - Easy for authors, flexible for publishers, extensible for developers - Supports math accessibility, cut-and-paste interoperability, and other advanced functionality - Powerful API for integration with other web applications See for additional details about MathJax, and for the MathJax documentation. ## What's in this Repository This repository contains the source files for MathJax, which are written in TypeScript. These are compiled into JavaScript files and then combined into component files for use on the web. The component files are available from several [CDN services that host MathJax](https://docs.mathjax.org/en/latest/web/start.html#using-mathjax-from-a-content-delivery-network-cdn), and also from the [MathJax Component Repository](https://github.com/mathjax/MathJax). Node applications can use either the component files, or call the MathJax JavaScript files directly. ## Installation and Use ### Using MathJax in web browsers If you are loading MathJax from a CDN into a web page, there is no need to install anything. Simply use a `script` tag that loads MathJax from the CDN. E.g., ``` html ``` See the [MathJax documentation](https://docs.mathjax.org/en/latest/index.html#browser-components), the [MathJax Web Demos](https://github.com/mathjax/MathJax-demos-web), and the [MathJax Component Repository](https://github.com/mathjax/MathJax-demos-web) for more information. ### Using MathJax Components in node applications To use MathJax components in a node application, install the `mathjax` package: ``` bash npm install mathjax@3 ``` (we are still making updates to version 2, so you should include `@3` since the latest chronological version may not be version 3). Then require `mathjax` within your application: ``` javascript require('mathjax').init({ ... }).then((MathJax) => { ... }); ``` where the first `{ ... }` is a MathJax configuration, and the second `{ ... }` is the code to run after MathJax has been loaded. E.g. ``` javascript require('mathjax').init({ loader: {load: ['input/tex', 'output/svg']} }).then((MathJax) => { const svg = MathJax.tex2svg('\\frac{1}{x^2-1}', {display: true}); console.log(MathJax.startup.adaptor.outerHTML(svg)); }).catch((err) => console.log(err.message)); ``` **Note:** this technique is for node-based application only, not for browser applications. This method sets up an alternative DOM implementation, which you don't need in the browser, and tells MathJax to use node's `require()` command to load external modules. This setup will not work properly in the browser, even if you webpack it or bundle it in other ways. See the [documentation](https://docs.mathjax.org/en/latest/index.html#server-nodejs) and the [MathJax Node Repository](https://github.com/mathjax/MathJax-demos-node) for more details. ### Using MathJax modules directly in node applications You can use the MathJax JavaScript files (as opposed to MathJax components) directly in node applications. This gives you the greatest flexibility, but requires more coding. To use this approach, install the `mathjax-full` package: npm install mathjax-full This will provide the following directories: node_modules/ mathjax-full/ ts/ the MathJax source TypeScript files js/ the compiled JavaScript files components/ the component build tools and control files es5/ the packages component files You can use the components and JavaScript files directly in your node applications (see the [MathJax node demos](https://github.com/mathjax/MathJax-demos-node) for examples). If you want to work from the GitHub repository directly, then do the following: ``` bash git clone https://github.com/mathjax/MathJax-src.git mathjax-src cd mathjax-src npm run --silent compile npm run --silent make-components ``` in order to compile the JavaScript files from the TypeScript source, and build the component files from the JavaScript files. ## Code Contributions If you are interested in contributing code to MathJax, please see the [documentation for contributors](CONTRIBUTING.md) for details on how to do this, and for the policies for making pull requests. In particular, please be careful that you are working from the proper branch in the git repository, or you may be asked to rebase your changes when you make a pull request. ## MathJax Community The main MathJax website is , and it includes announcements and other important information. A [MathJax user forum](http://groups.google.com/group/mathjax-users) for asking questions and getting assistance is hosted at Google, and the [MathJax bug tracker](https://github.com/mathjax/MathJax/issues) is hosted at GitHub. Before reporting a bug, please check that it has not already been reported. Also, please use the bug tracker (rather than the help forum) for reporting bugs, and use the user's forum (rather than the bug tracker) for questions about how to use MathJax. ## MathJax Resources * [MathJax Documentation](https://docs.mathjax.org) * [MathJax Components](https://github.com/mathjax/MathJax) * [MathJax Source Code](https://github.com/mathjax/MathJax-src) * [MathJax Web Examples](https://github.com/mathjax/MathJax-demos-web) * [MathJax Node Examples](https://github.com/mathjax/MathJax-demos-node) * [MathJax Bug Tracker](https://github.com/mathjax/MathJax/issues) * [MathJax Users' Group](http://groups.google.com/group/mathjax-users) mathjaxr/src/Makefile0000644000176200001440000000010515004366707014323 0ustar liggesusersall: # install.libs.R will minify the Javascript if js is installed mathjaxr/src/install.libs.R0000644000176200001440000000143114016722465015406 0ustar liggesuserssrcdir <- "../src" destdir <- "../inst/doc" jsfiles <- list.files(srcdir, pattern = "[.]js$", recursive = TRUE) fontfiles <- list.files(srcdir, pattern = "[.]woff$", recursive = TRUE) minify <- requireNamespace("js", quietly = TRUE) for (f in jsfiles) { dir <- file.path(destdir, dirname(f)) if (!dir.exists(dir)) dir.create(dir, recursive = TRUE) if (minify) { mini <- js::uglify_files(file.path(srcdir, f), unused = FALSE) writeLines(mini, file.path(dir, basename(f)), useBytes = TRUE) } else { file.copy(file.path(srcdir, f), file.path(destdir, f)) } } for (f in fontfiles) { dir <- file.path(destdir, dirname(f)) if (!dir.exists(dir)) dir.create(dir, recursive = TRUE) file.copy(file.path(srcdir, f), file.path(destdir, f)) } mathjaxr/NAMESPACE0000644000176200001440000000002313657731606013320 0ustar liggesusersexport(preview_rd) mathjaxr/NEWS.md0000644000176200001440000000306315004366651013176 0ustar liggesusers# mathjaxr 1.8-0 (2025-04-30) * rebuilt for CRAN due to missing 'build/stage23.rdb' file # mathjaxr 1.6-0 (2022-02-28) * upgraded MathJax version to 3.2.0 * updated instructions for making use of the package * fixed issue with `\mjeqn` coming first in a paragraph (issue #11) * `preview_rd()` now shows links to local help pages (although they are non-functional) and displays figures (if there are any) # mathjaxr 1.4-0 (2021-03-01) * fixed issue with minifying the javascript files upon installation under Windows * `preview_rd()` now loads package macros # mathjaxr 1.2-0 (2021-01-30) * upgraded MathJax version to 3.1.2 * MathJax is now bundled with non-minified javascript files; upon installation from the source package, the javascript files are minified if the `js` package is available * `preview_rd()` now tries to load any package-specific macros before rendering a help page * `preview_rd()` gains a `dark` argument (for the option to render HTML pages in dark mode) # mathjaxr 1.0-1 (2020-06-25) * added `\mjteqn` and `\mjtdeqn` macros (triple-argument versions) * added `preview_rd()` function * environment variable `MATHJAXR_CDN` can now be used to specify an alternative URL for a CDN * changed name of environment variable from `MATHJAXR.USECDN` to `MATHJAXR_USECDN` * expanded information provided under 'Issues' # mathjaxr 0.8-3 (2020-05-08) * first version released on CRAN * simplified `ifelse` logic for the `\mjeqn` and `\mjdeqn` macros * added `\mjseqn` and `\mjsdeqn` macros (single-argument versions) # mathjaxr 0.8-0 (2020-05-03) * first version mathjaxr/inst/0000755000176200001440000000000014005023477013047 5ustar liggesusersmathjaxr/inst/doc/0000755000176200001440000000000015004366707013622 5ustar liggesusersmathjaxr/inst/doc/R_dark.css0000644000176200001440000000501114527163526015536 0ustar liggesusers@media screen { .container { padding-right: 10px; padding-left: 10px; margin-right: auto; margin-left: auto; max-width: 900px; } } .rimage img { /* from knitr - for examples and demos */ width: 96%; margin-left: 2%; } .katex { font-size: 1.1em; } code { color: inherit; background: inherit; } body { line-height: 1.4; /*background: white;*/ background: rgb(26, 26, 26); /*color: black;*/ color: rgb(187, 187, 187); } a:link { /*background: white;*/ background: rgb(26, 26, 26); /*color: blue;*/ color: rgb(84, 158, 255); } a:visited { /*background: white;*/ background: rgb(26, 26, 26); /*color: rgb(50%, 0%, 50%);*/ color: rgb(84, 158, 255); } h1 { /*background: white;*/ background: rgb(26, 26, 26); /*color: rgb(55%, 55%, 55%);*/ color: rgb(255, 255, 255); font-family: monospace; font-size: 1.4em; /* x-large; */ text-align: center; } h2 { /*background: white;*/ background: rgb(26, 26, 26); /*color: rgb(40%, 40%, 40%);*/ color: rgb(255, 255, 255); font-family: monospace; font-size: 1.2em; /* large; */ text-align: center; } h3 { /*background: white;*/ background: rgb(52, 52, 52); /*color: rgb(40%, 40%, 40%);*/ color: rgb(255, 255, 255); font-family: monospace; font-size: 1.2em; /* large; */ } h4 { /*background: white;*/ background: rgb(26, 26, 26); /*color: rgb(40%, 40%, 40%);*/ color: rgb(255, 255, 255); font-family: monospace; font-style: italic; font-size: 1.2em; /* large; */ } h5 { /*background: white;*/ background: rgb(26, 26, 26); /*color: rgb(40%, 40%, 40%);*/ color: rgb(255, 255, 255); font-family: monospace; } h6 { /*background: white;*/ background: rgb(26, 26, 26); /*color: rgb(40%, 40%, 40%);*/ color: rgb(255, 255, 255); font-family: monospace; font-style: italic; } img.toplogo { width: 4em; vertical-align: middle; } img.arrow { width: 30px; height: 30px; border: 0; } span.acronym { font-size: small; } span.env { font-family: monospace; } span.file { font-family: monospace; } span.option{ font-family: monospace; } span.pkg { font-weight: bold; } span.samp{ font-family: monospace; } div.vignettes a:hover { background: rgb(85%, 85%, 85%); } .source { color: inherit; background: rgb(26, 26, 26); } tr { vertical-align: top; } span.rlang { font-family: Courier New, Courier; color: #666666; } mathjaxr/README.md0000644000176200001440000001305615004366627013365 0ustar liggesusersmathjaxr: Using Mathjax in Rd Files =================================== [![R build status](https://github.com/wviechtb/mathjaxr/workflows/R-CMD-check/badge.svg)](https://github.com/wviechtb/mathjaxr/actions) [![CRAN Version](https://www.r-pkg.org/badges/version/mathjaxr)](https://cran.r-project.org/package=mathjaxr) ![devel Version](https://img.shields.io/badge/devel-1.9--0-brightgreen.svg) ## Description The `mathjaxr` package allows for easy inclusion of [MathJax](https://www.mathjax.org/) equations in Rd files. Package authors wanting to make use of the package and its functionality need to: 1. install the `mathjaxr` package, 2. add `mathjaxr` to `Imports` in the `DESCRIPTION` file of their package, 3. add `mathjaxr` to `RdMacros` in the `DESCRIPTION` file of their package (or add `RdMacros: mathjaxr` if the `DESCRIPTION` file does not yet contain a `RdMacros` entry), 4. add `BuildManual: TRUE` to the `DESCRIPTION` file, 5. add `import(mathjaxr)` in the `NAMESPACE` file of their package. One can then enable the use of MathJax by calling the `\loadmathjax` macro (that is provided by the `mathjaxr` package) within the `\description{}` section of an Rd file (or within the `@description` section when using `roxygen2`). An inline equation can then be added with the `\mjeqn{latex}{ascii}` macro, with the LaTeX commands for the equation given between the first set of curly brackets (which will be rendered in the HTML and PDF help pages) and the plain-text version of the equation given between the second set of curly brackets (which will be shown in the plain text help). With the `\mjdeqn{latex}{ascii}` macro, one can add 'displayed equations' (as in LaTeX's `displaymath` environment). Single argument versions of these macros, `\mjseqn{latexascii}` and `\mjsdeqn{latexascii}`, are also available. For the relatively rare case that one must specify different LaTeX commands for the PDF and HTML pages, there are also triple argument versions of these macros, namely `\mjteqn{pdflatex}{htmllatex}{ascii}` and `\mjtdeqn{pdflatex}{htmllatex}{ascii}`. ## Details The Javascript code for MathJax is contained in this package. If a user viewing a help page has `mathjaxr` installed, it will be retrieved from there, otherwise it will be retrieved from the CDN site https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js. To force use of the CDN site, the user can set the environment variable `MATHJAXR_USECDN` to any non-blank value (e.g., `Sys.setenv(MATHJAXR_USECDN=TRUE)`). The URL for a diferent CDN can be specified via the environment variable `MATHJAXR_CDN`. ## Notes/Issues - Care must be taken when using the less-than and greater-than symbols in equations as these might get interpreted by the browser as HTML tags. See [here](https://docs.mathjax.org/en/latest/input/tex/html.html) for further details. Adding space around these symbols should solve this problem (e.g., instead of writing `\mjseqn{i˞ڗw@(Kf65p}sEۇxqJMҁDKI\$Yd;oѧn!^3 ҋ܊. [6 Cep!amHs&됤jCK*Hd`Çx ʞlX40edF!` A;aVGEzoG}I*\Z%K4}n. =V^]p*ڪ4.Wg-ծ}Rh68TCQV'8?yeSΜH&rdvϫj,fF_fGcYL2{J ͶftqB붢ڢ7T`T+^vj?\p\ +t=N.}Q+y2{y?A{bԋ+67K -`*U9(IYsV'쒥U)'FcGDWV;1w}ONmN$nTfZCRg-kRٵVwfz̥f܇ؙAx",3P|DMYAe0{9z6_UTOz$+vL;+Nq qr&Ja%G3쁡f6++t -wl/umi$Y<􋶭q%4-$0CXTS|্T[oGvzc>wj`Bu\IٴJMpKzͦe݁xv黽3<҆J9>Cb颰F/-BN .%ne׉|Mk 'WsL&K(1IEphsF;59 ׇ˺CUcqSA*_hk8uīadl}!T/ VP//,QSinդ"{F-}tBUlucA܍c ܋x?w<<=><Þs@>A=g{-^Ss(*Cqb(GYfsgf.M]!)Hh6sH?:|3m: G|AǛ?bD࠳-%u+;t#nl$Ќ2 qrͲq :"Cحu'DNj:/ }!u :$cZnn7mןB|oNߎE2oz{~ҳ^DNzKH:M !+CJ<&0-^A"_No<◐Rb{m"X+ 776(ᾍY 7DDAܖpo? Ke&SbvNăH|v3Hg"ys""xCB ADzF<tQlBABzjVf^7[o5a$X"֭mYҌ]gcz5NHs=ՀvăHs9S!W"X@ D.NNŠ H[0\`j(R.}vȀG>*3Ξf"U){JI7IОcP/:دR2+Pؖ+pu?-.YRUj5vhb@FZY )ZtD:6,-hgtM#fOM_p7\>8YP*̫vX˚!4Qv|#ͱL^0 Oq0_ u;}.n!X'Mf>:ه6G& Ma{3zn+ #Fv#~ njLhD554*ğ$a I]u3I#jƼٚƜVYbmw9s2Nt/B|=ү|;vy'~"-曪IJFC\@z;F!%6hp4myQtxn'RА,(Wmx,;R!kU-ih2a눟Gp" r+H?lD" U; .V"*^'MfID;60M:(N<wʝyȱ%p2uOJNg[f}48fJܖh $- 0 a'Ee4i +N_f`3F6FEkcghF=V@=F Բ ru! C8HRqha╰H40a~Ȳm[gb7\oKDY%X!7p94"` i Di4*UO >~;nJUƈZѐ.R+-14%pn9 A,į!5aHrqj-mFjvF&l#d7Pj:3nrAHYec֌,ʖp;e45p\t|eDрLLUB2:|;x+0\QfzM%5?=u=d7Xsk0 }7tޏF&4l O\pC S=lz,tQXNii/jY==ϓZVGY{w2}qzbw!h@A=M u;"UT>y{|,_6Ћڅ)ۮ~ )B4iW m!+r{6ߎ' Ňx% F{Pnդ"WFh`;(n# **hrjUj9g< TQ-R)q5x$6yjI]{I,-t:'j( A| 闄;#hF1KviQY0)hFXC|WnDMˈA;n)X>Vrh&k#$nk $CXfďm]Peo"@@/k,.n@lSw3I#gO`9#EͶΓxv1SuAIw4o@4׳x= lKބxbqEEԑֻck+rTM֊: 5srX@|/Nt; ,/"~t^C ܸ~g/!?ʀdY^FҟY>I4_nFӋ kVTáJ-8"ekL 0Cp0h|>O]JC)Mm- 1 FIb_,$VRN66[sE4 !})(DIS.n|C^I֏cf(VR>tHא;oA Fv:EĿd4`lcdlH,w?Zd4-`/$_!A" 2:oˮUwQ&>.w#pby; mI͸zYh&֢jճߘMz&<ߖk鎁iBU3HcﱒN}1$Ƥ6<6!%%lqhuH'f sY3G-2Ή+3&uԆ[K67XLba.F %\FрƯ!10agy'Hp"a4TcXSPRFNm>i9<57w N7HgV)Ȗ̈́0 {4wyɬQb4 ܔRnÝݶ4Z5hQD\8.eE/rB͡?!ƕP\~r $Bx:yQ7h!^s2 7b ?* 9Iuo!^ M6[!ّ9+DQ \3&IUuҊ, k}N7w g[*;o|m qYΒD*[ri~'[TֈdkyWWsk `9'Uj+${&:6gIUt7,o KX>NX2#kq:a5g[ԌU_o#?| +IzS֖ qI9vomCk)oLX267'֊=H[v,JuauE ZYZKol/`w66'xޞu'#bgUr!BŎ",֡mM(D{q]Siolf\YCcO^wW 7܂ӟG1Ÿ?#*FP:LkZ*F.UQsFi&ҫvk{*C4&Cݦl).jӸ~P< P&c:ALJxq:a9cZ=&L~H\pR,kV5,=nkƍÈw!-cZ k[.ލ4dؿ·x *,0 LJɼ@Rq&P+x1Oި(TĔwN9W|g$NXKX*לӊ*WRk}ږ2<9PTǹdzP 4vw*~S@K{) %'glmeW6Tc\jX-&I1  Ed]m_[5cW/Ph+ʻ2~k|CYYJ%ڹg(/I)-9$U3ȶERKhdW1a}uPRpe n@r4G>$AcTa>@cQK(jcJ٠ )[sוGia/llaTc!~$֭f;]v6kVf/b(Zd4,]]XGCuۣuæZ녶f(0PIm\H*lf9srկM!ꕚ"m0^{O$o"(siuO<( nm/pDSYX6͍ 0t)YKkc1ۡOk<꘦n;vlFB]EãٵLXHC >ovjܣˁ)0,#=7/˗f:  fE-,-ւ{AŒmWlCxs&cR-GNj 3N&CRQ+|K9{ p{xU˜eY=B?cAkoH`4WBacYqZGGQP@2BIgf&/cuq'V%pLt89𬵺;HO ib45uO CK{ ﹡񻶐 >;xNqvoBMIpS3[=L"4t*4?ZGs+H_33S.] 'C>5!i1$PcUkk (!- }bjbꝻܖ2ekx Smó񴬱 vEւPAZu=gc[ުͨH ʛɧo)axg︥[vOZ]-P63Al)>h5KBzVKqup7Q3Mwg:0~`b2E$ 2aZ8ׂ>;}W(?xyTI7eGτчjmd"KwKw4h8r58$x [wlmF{8LiCIQ,y?7\YriS AIr%rbʱFl%B‰|@{e<9Q`9v{2Jʄ0%?kiXǨMφ6>l9F #D8'Ytk x*Ւ\ q",?:pSU V 0drNL&;yAD9,GG=jjUrcC9r mD'}}qmathjaxr/build/mathjaxr.pdf0000644000176200001440000041326315004366707015521 0ustar liggesusers%PDF-1.5 % 23 0 obj << /Length 1289 /Filter /FlateDecode >> stream xW[s8~xȺ y%&f/igKlbbp7ɿߣ 8ٷg,ҹ|O؛{4/' =QQM$tHw_٤1s2$bZeM^5_0/t-A!O:=0q*% v=>w`${5-Q*l:r=N*X.F lyٴ'[3Ƈ1췮 5:㮗НV#@cBk (4 tis3mQj_87LY䵓,NFP't!^›@V}$$1Nx@W s (S[z-Ǖ5m_0և"wZI~wHEGSͪZV> stream xڵZYoF~K` )y Ɔΰa!'ldߪ)NxVGWGѿte^(}O(/E~#}e:J{a46k7fc;.[ʮ4zRs+~tfSdnN)G3ԃ6o}QojO/hd$Ǯ}h"XZ(Pݐ/Ο/}4G> EDBЈ[Plwu~C%/HE?x_>[R^"]_ {p|%Op7p|E,]e_)Mzx By}^,a( } *,g/H $ X75͏Wn. qw:"xsXmDzi r 4f:p!"*pnvc! tt\uSڢ|]X2S=^cOZ,q,gEr dqG[ؚ+F [4+/ qϷW + ^IQ0{q<)h%Rg=h ; k$C[mIj`4OWZ̬bnxlMKg2y#b*zIl^2.ؔ 5`X\%yH‘Y"Ƒsi1uU!QY5V]XnLK ȇzߔqwtk)je٭DFWn-C-g G%q6kAwgWfEO$Ɛt+Qb,<`υፇ*ִn|,6vw$}$ͦ-TcQ-SxC %Gj$q~;VCn# éQ7:C-kӊ+byaݕ-~f€%E'UA*P`Yeq:f\c[ bO s]4uU;"  @փȩeSoMa h֨5G;R^>4_(Z.qx% 0yxb7tO6m3ONOy塅.ƫt{Z,6)@RFhy/K7Llz]*0d S}0[cKΓQ/XҕX2% <".G# (n"¹CMah{O/~~ޟ{g"KFUW̪O-AË4To>yw-v!E;<5]W8f0u6|1M]lE }8d,sЍnO`'&)8%ŬPU_ssȼ0]T*sso3pH6]jsʘ^4E©/YW ![1(I@cx6ƅ;SUwQ^cos]ե.xꓙ~ CFDWJW6% $ &.UlUCIUl|qՊSKfWƚ9gA8/3<~C}9]@<%'Үx]'i6*6]!+٭)VVDJ$TIܪ/ls%c% (?dL2ƚ3d& -%'M G+ )⻕NN#XX{M@|~]SĢ͢\4XTR2B_EE!*'Wު|wj6dsmzM*5; =Fg G4Qi`* 8"92 ?u@5W"P[8t psC$s5h:15W ɌddlN0j6âkHODrn=d [|SVtд#L$4 U&_o>/01([AfoAl~Kl/jtvGۣ|;` DՂzOiڴokt!ƸHd芜ݓ&}fpmt8,4k󩭻wa(EP=> stream xڵX[F~_ 26UjUJib366830`F\Μ767?.ob4`=I Y-ST@17U_ߋwɐ_siy3(ܛQ G%aLJ!F\5yU74/᫪BL(@(GX_3/,pRz&S]T$U[;KeD3ҕ]GPԇc Nδrތ 0 (jϵ۬tkV unR'9#1c0(g #!!vjp9w'a٣V*W*ͣ]HUQwͱX7yk eOvT^7U (d3&գ(_ITuѷF}bChX1 i@5Āry)=d7c/W^y'C@Lh罹*<+sfDK 3Ih"_nMDXEZ548gB=09# Q؇4]P b"DɠݝFDRPO A z @L x@_ؙ@ $By>[& @`ʁڗ<Oa '=!4#!{!h/v`:\ޠ:5bfbҹ`Fv:kE 7LUj%rƸ$W6gj2]5t-b!x1#u'-McETimNɪ@LbcpeVꪇ[" 6`+Y!uΚUrruYc Nw৉￷ i|Ep};#"kC|~:P|`.xr-( |`Q̹:^0m[/chʮjZs^!xǺϢW@TGm{MUm srY/Re1q xeg Gie(|91D{R&VOSҠwadb4ml'yl޴ Gc')bn*{jNz$2 ۗny> stream xڝXms6“~<%s{s{ͦ/۹fڛ;ڢ-52J: PedA  /wyj}g OwE,E, ]ŋq}ga,Ɗ[yBJz6yfx u\K-LFOm+G@^)#2~}^V] F~Q<f-Wax?NKQfBXr.ag+sǸ ݀Ty%y K^%r{U~usT|(6Fl+8ؠaQjM#~ʢon޾n.9ypYq%"e+["HvŰ*r.,mCteŠ[id Z: ~P8|QE՘0KQxlA>٬i >JJ_e߿ \e5%M8q|rr3g9dvd޾2n5Ⱦ JfMG , INB`qPD{\X>`+D)氩+`&/HjH K =]B^EƘ=!9,pOj״HڐӝF:׮L [Lj05F,O4gTNJk\GOMR[0`hza喒r±w^XQWA%OYaWՒ*/V֔<HǦԂ&K׸""_)i?|zb7wQβ D }>ZbkݬWu[܁\NFI4i &38gMzs=wwㅅ' endstream endobj 95 0 obj << /Length 373 /Filter /FlateDecode >> stream xSMO@Ww'RO`L USPni,|aޛfg(B7[E;ha?ԠF# C跮ކ.yX@EJRQW p]aޓǗd0!6`Tc*ѯ|,sДTwh([˟WnA ya| Wv"Ρ&tqHy6Y:ۗLW},]ÆLҡeLb+SPh"p_U_OwT^DtɝVeɖll<]#O ,-oL-=6@[Nws e (D/F>͸EmiF%tGn%6GO70)PSD(ZWaU@/M endstream endobj 110 0 obj << /Length1 2674 /Length2 17801 /Length3 0 /Length 19162 /Filter /FlateDecode >> stream xڜT[-Nl݂{`wwwG}{ZCG p27748ZťF jheh1J+M(/~6z6&z _qF-Z:Q|X@``346+G Cbi @@O0p.1\:FEvvh,oL,Th?E 2xG5O!< v!Ϯiѳa'w=d/c?F%|[=j}tMY}~9:G o|?o]-M-\T5gD*~+cLEL] LMF@ {ڕjPHך= L,03\.tV!G2 6 @'t"#NbЉA:?O>d>o|r})A*A jF?},~Az@}sao+Pof1;GGF,2/埚?6d/dq8|i<#S'ÿX$6eq|TEVL\mL a3R ~@֏~,RX=7_7*`O)%G_6?R c{Q=7WL 13[G돗6̟ƙ?KM#֏៾>n:g|p#0>pߴoOnv[Hcvx7\QF>Ҽ>YC5?381,O6ȸ#<jkzس//Nuh^.g _F N^3JuR_У*Iubh(,Ւ+!È; ܦ׬PavjX!h \6D=+~"jwn{j9$+Q@=+&l KnyKYcپkŷ:(-DbGh| D@} AǞ5-{2!+=- M~ uRӧXO$BP!H3a$O;TvU]s(4p"uDC< 3 ;>YrFDW"P<ط諆`Y[MRgU5MZ,&2`0tj=*V .[܅%ԗL$V;WV |FBtO%m0|43- zQvMhP~5 S?i#A'X|F/NR1#}kL~*K\Wr֗;.`R$!:=;9gN[kRaXȒF#g~͚jnzѻ4<"s,^5#wk-&-t"%X] Y"-ݽP߅u}־;!<@l/jG-JbL8gCeɐA3i,cPb%V:J&aOcg)yf‰ xD .i1DFK/'<%BR9Ӆe;r=T?n eK[*#rXq\7]79>%"ړoGJ $a ]bM9}gR<4C3͊[6C0T ki]tk6$EPOgJJg7s, wvsIo(fj{vZA_ݱ?NR_N˼hكф} D})sw[b?ֿKOW'?-!~ѯn@vf:1A%5ѠQuMsBM7ݰ|f@u^:h }LӵtOB/༭o^J;ڎcŸ+}$2_`})1ca(6rϨP()6e#3.p9)rXt0#+ORٜq~g!oD:0,n"}nI)))æXrD~_)vduQ/T~N,Y"& YbW1%ip#NT1DinHE#z_H2ks+|K {n=[A4QpciGדm'93 CL@]2i`ѹ`6hJ4i] \]н%hZA [A94?`bS`˃H.L?aVe(_9:w%>S%Y^%KYUHE5?d{otuh\{&0Hf>`{N̰sRf. |U "m359)j`0vd9N"TTЪ-q$Ҍ |k\6i&9)mTl!Oeq",mO O&UƓY۪*>aȈڭw\[h䶮 3ENE2;Ņc[60V^4VĚ"E5U2o4Ph$ [t~J$.݊ϊ\p]OӴ-(GkTSxWcNz+q2Nj9WD=gFr_ L)N]~٨%3ZvJ )i4KEt˿R\$ FUa 1;@]"4Zi}vNjbo[_ʢNh;7Kn4Zk%ұՑ0 è]}16|=LBnZY`$K8vzga~MpDoGye= ߮V9/6|op av»%Hᰗ*Y$GdC)JE'~bTgo>F"wO^rO d˶)nK`\V津N ޷mSߔ}d:kǬ{KpκCcZ00~baWweV`S߹>m_Qph8  <1(OV-昋4r?=)Ox%I tj{.Z<_c5%b{hV]Ny|£Іh1@Mr )+ëxb&҆/h-Ww#ԾDqYe]Z( A^uh[ ~6oaZC!v2*LFףMmvFBx5),hQ.G%(J.b ƵX@n۶[X03%yvUG%90.(C881ٜfbHIVxDIHs1/Ro6\I~M. )lz'[Ṝtcc-?qlE[psϲ! lx$>n5ee,dґ3RANXQ"C JH##]Ne΄#&zRB{}.nF5žSeJRď4Z%:nyNgM^ɉI-1Bo 3KȈUx]]?U7=2lA39C7'Ի㼌h(O.e0ZiluӎVIw4lLwSL^æ4!2y2K['\$? ϑGa#gs^Pq'L*ltӉ (fm_K@ 9FLI߷І#0mcV2jE ƼT&kI5Nu>yR6>7ϊZ&=>+s|UavCIx.H7mp~]P;8]HlB>z; ;%NPio-'A(TK۪&7cJz]R@@zVT!WsH;Pn {Xa^#mb*S)hR\](""iS#749x$H8!y?dθ8iв'g\΁C+gUbwo#kX !INm$,\QDy+H%LYA?ɒ7Kݾ)iM~QQ͛jC:#isq xJzEREd-.")A8,G6TJ3B (K?'qy&dć㰽4}mv97Obwe~3.GXmy{(U3(Lh-Xyji fŚN 9Wfd?QzPFEݢgNSOhl ."dM2%U=q8<IDžmfd,dKDUzzn@Ab f-DWvv *MT Lv)^jQ#"_{^!+BDnXƚ+x(yQҐVH`pw?E}Xth?457 ƭosHx$l!!*f^ҧ'H!$+ sIa֌H$˴H( wSՑ前8y]bjK.r[(㎙@sHFq)j)~ձw֜U$U`'w钩ߑ;U sR9W ї7$OaZw" i2s Pb0Rj'V@7ub$}m7o*YyՕ*%ǽm$_JGJQ8MQA.l*{3QY/mbz[aQ'#ypL9 ;E+d}-*l=צ/+L(m\V:8>[A'$ERkg#n7w:mҞ$xט:wd "Ƕ!鶰|@Zh![|$f;^xNcg}O9`@NHw_ʱltgd.ϱ-ȭiGQծzivĐ ܠ{m7}yjT ǝ6B,QJPK#8 3!R*R D˘#9] ;1ig`gW.[3A"IF,Vrm4XЏ0-qPuݜoMᆠ6p?m@T3_.I ߬Z&jנ #HhReM.7,_TIΆɩLB_V'“B_}AklB=Qb q4}MIp63f]͑Rz}q]eCҰ}M7sHLK $p!+5;D~R)=,'.ₛZ׻b4e> %7p3ǀcMVzT(-`ܑ3I ǔ竕:yRΚ7ZLe=w{;#e0֊F =NzLQ Kqr؉/="'QItt(~}m1sHs#AQ9Y,xSZuERkDBqY3W_\U=  G!짚?:S6עعo#t]+3[IµI&~#^jYw tX}ZMWL{+Vh]A@uA V%dISVX.V!4,#Sfo**ؓº:5ٿ+m;^5f2bm{6~I6a=H=" ư5}gRܗ[ ݼ<?V`x6KO{@fe@`'~SxkOCob}]m<*YUqh8~!/5Qu2epȝt]"ӥ'r7e2br՗ìN]ʈ]?ϯb6"/{Œy6Jtjh4a\2Šʧ2Ih$.jp,|$BI6_tYyTݴorkEk/IȢa-N|d>n j劧)eMZt}R}_ ?$}$)@9)A >hZofy"fq5vn2sNxO,twvZu#*Dž )iw鼍j Y"I{-i։.lإLv1+5da&~q AXQ2"+3 `jX Sfk`׉MpgCOV{@$vOiC - Xm;>YnT]7Bsugq⬂\Wm Мc?JE'6J/;UשH ZHӚl)b}՞;ݷu>ۊ| 'K##}8/ގxp^L􇴂ut/]v kjK`3+a ?/b "+r?:[G) 凞z74BZW[|YIm%d0l<"#z]8.f@:$z2B+pc>-:<{oYL-/]㞤)Y:3$=L4ªUcV1`Jwg~$=AZaG/.D̷,@hbѶ*<[e-a{4(dE*.X}4IgYy0u3UЈVILOA;s{ViS |U+k_Rħy ։*de=9~@AOUhWfٴ'*QR]@`n\B w^.6и>Y~Lx8-G'1w[V&e<-~h"Mxh7/c..m&U\+cHTZn ;y]:мg0%J:t =#ƚq7dzd&Xa3]u +gK@칰;sP&rU34=qTda~V>5O`/]dFr#Lse:`rD/n y9tT](B 8˻c=cAX)V :7)= Wn({AH5*P{*ȉVwۗDƒ.Z7{]+8E +DnTOTTʌH&Ik"m8E`0nD*uO6BQt}@hWuA4b+ j_⃆¸=aX-Am:_7n1O6w}l`?G7W0mt ;Jˤ{4Zwv4p3}g+4w/B-WKn:%Vys٥MlKep~Yt),sE O<ĊEve /ӹfy=%ff.~Ls {Q4ޓ&l֩,!pea.ҭÐ۳Z3!O .RQh_ G-,gDgģfْlxoԌ JZC3ߛT 8=͍LfŽ='J2BbYtk0OR cF57 K1644;3|@ܻvI6Ϟ+(X0^]M,56%Q.5MBBD`M.ŋv u{CV?-;HnIȒҊ0{li#\mu(ŀ3 Sf[Uv A1D_ VnYyBБʤbOas7ۣ>;b\w~߭3r)9:+Wi 9PED?h9hvΟ(XVp 5ZzVtH2p)|}F8ф+DC"H7Ra^CI)I{`tfq~No. _-f:y'ܑbIj4c)R0|.j@oKB-ă)]#UR+ 5@@A;ң8Q!3%})Q&Ȇzޛi(pҔ jz JޱZj}yLӐTH %E?"ђ@a |J*IO#7l&O^x??gtcI=2mk6u, BMtS}xҫКI}pkfAKʨwHCob\οU+(P}rWOK{`Q>[ e4^,g/VGz,=]!mѵ)fڍH7 &oOMCZ\Q.F]NYa#}{C=V7OC"6\˼ Z ɡ$@H;D{ʍ3x&@t8j.;(%:1M ȟР[㲎Q3t'(QR&fNfϳwƺ]:l`aï=ʜqXd7J_~vkکM-Sk 25M7¹}aoD)$.&xWaal(T]2~}aq7enµFءU0r@Kǰ Qac@rq\%oEOY Ԉ6eJUU6P/x;: eQnoڵY.dyѷyYy:v8BMK)bN-%a4f8jewng%/l6  !Z(9$1nQE |FdbZ{0`- A*Ukd ɪ[\k=c!]O;TKR? 1XӥpŊJ5kK_B#$hn{no];:#3Ǣ^kO+Ҁ1bRp匩m Ӥ$Ox^RƵ +?P8vAͤGm)j zf$+&F=P i OYJCY8K'?.{cDw(d6VGط\ogƏQ-gݒ^ QW/ƾ| r#&(Y|ѵPx3gR6uPBpnA,P( rE:b( @PU!J;V{juorFR$q|`q9Hqe&YW, ie= AI{:^RjIcE&xabH}(AZŃ68#FLUv#XDJaA)#P8Iq{dɭ=CPm %ӘtA?[u9@?!5V&lóZ"%oteA(ٮ;QdTw2hph4|ЇX{*(+1DJ[j8-іV)T5ŧ\]Us?,nCՕM [WtY82#e@ PN:k9FUZeFDWI|=9G5!M!nEIR?e hLD%ږB7RG,cHml<ΤdrEt#С=:Ca}zV8Gy I1Ԍ4?Ҹ ПvsJA }K]I>)gH*E0 Ũ{1b;*TSN)8Kll}{̰5d I1pb$.QCI>x^=#vnHe{]RW"K󟤍Kܱx#3ZrT萪/DJGu>wf }0o;@wU kֳK  M'Ue䋫LԼx󎞈m7hAڗSf\n1)]Y$b۷/G\ zj\AA ?4+ܯcjUJ^1`O$"-zԐH8UtlxL(>hu>hNT67J]ۦB.1cWln)']_'vºIϊQSGt(f?5Gxn>*k9':WrUAn'WaqvQ9*С8`q@3?͛sb1"ߢHH~~ m {?1~^A)+s-; Ĉ hJ^*[B[K:,{!*L#فi/E?K9F2!javy*$G1]KdPr۪>naWUyoՍdFo\<|'._UZ6m%750B6zŮOԥ}{`xgv'e5x+h$5jjD]iej+KuS4= 80a/;Xj4|,GtwfEbȃSVw Κ=¾N 0f+"=Ӷ,VGvv,=]]5g|/oG,Ef`duT!l"~Z|-#j]{M#F+uM_6L9f&\`*N@VHfMs.WXj`Hhm .cD=Bg@*dO $yE$wOmӨt [HR!l|ӯ+`:5clCKU;#17pٍj-3~uv.oZk pn7+VVoflANKj* ,rЋol =/Ի,"(,0f5Czlf̧gymTDF7￱gg!pw2w28#SrD!"g5&*2 R;p ?Chzx.i^Ȩ=]k#Ђ݃hÁ*.B [ ȦRnvJde*υ~("#3h^r"5͉Pzmњ=l"sqMu?+M}n:77NCғ7EYgڭV@ 5焄u/q@yO\TU]~뀠ެq6X?^QB|TU[O"2) 4\6)Cs0]:7/og:^6uۤhgx (7 $$DzC8ocqUcȤd}!qד^()uu2:3~ V`L‚P2ǾCUɩb@=NmKnjddD)J SQ>S`/ n^{bSYP} uG t8Wa} z _GUww"= I/EDYj^ "ސYaSuA*1#y;@ (-p`A#$b6AKe(^IA"gOsݿ`EzJoZ  raʗE˥PnBC7i܆nn>f ;up;& &rosT,؉n@ψ2`斶FCGY ϗ/0NP F%;7>\ݛ?T)x/C9 }є+(z?1ìu\z3kZM#!CLO,[~oϤ~K=յۂ3$vǔRb|ǞHx-g;(d_p9)T+ XʗbҰV}4"1eZRmR0\ -iNcigfWӰ0݄ >:_hH 87VA8Diz`d! KqzXk453w@s[iMdBTQM߹J,-(1l8ݳXYR&k?E#gD__"Jx-(%a3HFA>n)xp3- T/̐)}]}ɝ?<ږk@E1eOyWZT˼ -4fFt?:k(j 3} 12 DA FLX~. Ei5qܮT2%Apsе~UowZ0Dr|Bu5tߠ'Xi݌lB: /-;CҸߠ[PUY`+8}ol86IM$; nMz#xObp㟡h~>28:Zu]@9{&A KpOnB(+hʃL<1F5ߚ fdKfu'mZ׾Ӈ|Z&jT@deZX&G:2&'pUOd{F21C\5b#Ͼ=\|&͏WMQ ˯?ȅ3}'"a5 @U:4O5R"Շ%ksD0Bѥ.1%,^96Ьq 9[v. hدO_Mj=Pw"~X=iEO6t9Il#Um*˃'$^-(3LH2 > stream xڍT6tHCM{A@!@h $"HoJRRJSA4AE=_VJޙyfϳxdVp%3"T!^Ʀ8 hYp(Sb@M3P'{ !ѿHW1a !h<劰`qDEpN:]03P;aWAzHW =<<@~!"(|}wPğ>+W UW؍g?$QŴXn_||G_ULߎA?qK]7 VHjKpkFU1PdmGp /7%8G3!u` aUs^#h,7 AXa~/տPt!_Huuz>|XZ=uFb)@~@+A X ;A{mcc-'L! |]{67;oa}p`j  n>Y M=1LVX|1ZiO}I}j/#fu[fɫk > , 8/Ċ\q2FQH[v뱑ޯN]@-Y ]LU/Nσ"RY%ZO}]QjOWb( gso.rJR)ef#Jkneo.(eM4߶)#%jZ.5'o-z&+W*mؙPy7_A-,Dkzsdz釞`feʶ_-[KM(ndE.~6A=Gq#~STf}YcJ2wDj p^#oV9i(hYg|5hyo#r%s^'d_wзOϢb@Wm1M,3]L%8Z9oiz8--tUM-q6[nR\)RM)jN ]FN>V\*Qʥmr;?3gdOu6G7.4fGqUҏ\,H+닭[z7M[-1/< 3bavw.3"toH ϶kͿtLEP;Lf\Iҍo5|ʂloY6P{ l)za 3e'~2yub jwG>$gtf1z>iw6_w_lc˔Wsz&%!xE9eȅ=[@ |x!qU|wFb(@M3]iʱkFU( o"Z=m>T2+uاEIWVh6s"+Ƴ񨪃Ldzuwĭs ȧĸܩԟsNsyEd]NM3-u^Q=kV`8 ߴinC<Ł9E2OWPmT|>ޤvΉx64c2lC[NO{x{;8StpxvAJ:J~>䎮Gؒ )޸ D432txkY6 jby ^9kZI3NM%]oy)șEpNI+y'*d%jW;AHH e:76kNj2mĨq@FYF9SuRuƚp O}d>'͆g^SP7 Y UB:h3$LG|N`w*A,'뀀Z[0tHpJrq5LcJ_&7k49k"݅x_ޮf6Pހl SXV & D@{.w<7%T{S XQa`ɰ vPѵˆWذot ]Ѻs$X:F(xvP={e/˙ai;󺲊TU| B̀9Xe>$#~)# `W2ErƞJƸD~Kmn8( !&6\]v ;qǗ ^?Z|Z;$gAkmA,A۠=CU@]vֺq)G@03}>K.AOOt,Hd93٨rΙܑդ`k"uY6͌;LY[jWZF'V~`a!mcI\4B?ы%}5x(W[KlMOh;A6-tquf*lGeݭW\lۘHxIVSekJ4}quYyfJo3I'ʝFm 1 ۭW z|ϥI'eǻAO55~a5^'iIf7a92ޔ^(m|th~ۘՓPtpV)jNf"_ڧGMcTܬpqSҘƳ "NS__[jRn5ܑW.1Yׂ8PhG]vxr^ L{QKB63azurkK qYQx=.D<,_xVq`AAwIS}_.FE~h) PXZ'AH,op'Vxy*~"Oʵ30 dA-"aU|ñp{>_pdy:ܽO j1_cD뷒wdʒ]}p(hDXŝȠ>T %&ߢ>Mc_D?D;SqIlsCVr=!\[P ڍ/sd03b6S/p{Rm6÷+_M6Bsds)@S+w>QPP>,NtKbto˧oHvEhҐpKKAeEqu[A!eI2QwSf2 Ps] 6w[}:ΎcPՐ[}/smB+m?[[l{t,1fl~1\S)oJZ] bT*O?/?eы KhK_lVE'A" MZV o &׎W|&q'jLI$?4@fKz<˛+CKJYƱ5!bXy/ YHKc[Mja]8q&g07J"4)a@1ι|oy@D25~^Xҙ;V^YM/2!wWH_rjϘxBV{n\M'o" fWI0'iʶSOӋIݢe;R-?X^.g)jZr5v2yK)|-M Nfܖ.E% }wC+fI+i5u jWs$.ar1ޛqʛ`׶B].޼6GH:5A᡼YޚΣI,Ker|H9T G $8w3.w~/2#>]u]Uh+ ']F[Qv/[R CvsXġ N(au"`96I\,_yoz(*Õ!e(f@V_Hc4DF*!)6[8\>R(%aHq$= >ZuK^%P\pj Ҿ4#]zL-iƀar"!_W1>;RHj#r2*oJT\$/D@t Z>EOV}K͗`Bd$9fԓ4ikAݮZ>wv@c kcYʳ k#ԃU/Q^%OR??PU4x?p p8N.J4ғl^]tW))hxPg"HbuPE"qK=pd({A(h&A(xyoAg?ս\Z `1+)Ii/OL?F2{ۿ]ReGrѕ m Ĝ상ވ? :NVsUwKy}aGC.>jFM MPuCw+jM8%|/9+ K)>| +}Sm]G$἟gž'Ґ9i=K8Oi$ HQ(LUhFH2a 'gWN ؊+S[@N"  z Sԫ~N{|}v /i{*:.fd՜\}_a-NA&s.0a%&2-F<ʸ42> u]*Rlן#D;Ue`! W{ӪLڰ{ؑrƸo][T:Nw7m-co6 pw\{eL$\SIF!׮ avY洎3 /:Qho$ VEƁKD ]LeH9fxgMy&6 7 nD=idwbBXI>6 rԩKU/#F{~)9~˞~ݞ3;\X; iӶ ė^9P_]9wʼsNNL گE0},5\h)p7XR,vB?6!y-y:hihU;4irO*Wv#/Rcci7*{ͻӗ#nc?g.jZBŋQCyuV2YsOJ+Z ?=s=[ј~ KdT.b~Y4%yKBJg/EQx8u!<73mާX&unrCWesJ5^.PSD^GUY{$8zV)TH*AD5,,z@>po )Y9dw+@Git "^zP}4!RrqFSkfFZx[P5\pmP4?;a!">W #Tȭ6,?k5s1ddO'*\O7F(LO*%L̈́dO v񵶷Mog]܏}D1=t7I&W2< T/gpE Y uK e qOdWOi?qhP7G"wudk47u\N2=g,'G+tHFY)mk?i=Y?wyQ=׊afukY slRyS|[⧈GL'>_SEergo$OM`p'⚬#}&~%j.LQmn\2b!*Y5_ʦD:׷; բzF:摙s#{;j Lxn3lgN r? {mNGPV׫„T )zե;+lhc%F@os_y0;fo׈xwwOR]uT.1xN;z4KV P~8{֎~tS;/T. ^uEzKyv> stream xڍtT.)%Hw7))3C -ݍ -ttHJw(0sw]5k}gǻc, 0([ ,e`Ѓa\ _` 8ujrsxEs :'@2=!6p1z0[xDD+ ۂ'Z0+p(;'l#pm:`50@3'.@ׅY݁`X. W( @UVh: f*NZYPO` 48pv w!n@=s @AZDw<+g#܅bkD_e,P `+{r٬kXC _C\'W$ p sN-ׯzN_0r_oG#9b Fz+;i@+8l:[wxLp I/ jWW1Pc3}2207WIW~U]p'Uj pyM/b0$kܔ[ URpf?@$i]HÐ2w!h {@6H2ssr!. 0H C?/C`- ׷_>$/.H F}C`_#-7R of8082` sf^^/)r8r<~8o [` wv f%6Q-Mα>,yx1\h {9VaGe"{qZm'– eD9Փ)(y24%=(ZԑD8@6= >L]3JT[4>WfR}ׁ7Y $geDUn{r@9}k0x/<((1@S q,VZ])_aU+̈P;lU#CU×= G@Ƴ;і~%IE]]8S|^s45\~0^U0hxTwz52, RwLp:15e$VD/9&&:pӫ+hNFjyjpףX?܊7崶hMK5\_ Fn+׹(`'l]`0 ;1rJVD;SԜ:V/x~X"?ȘL!|'up@t] ƀaz I;hcܒֱ!`O,xǵGRJ$EiЙ0.eLFL,(W}{ 5~\\3[{33EB/4U'yU0~!qnO ˇj5:{,깟K҄7RjS_[<1 C,ݘeT =2dsǣwV=7~uw'EX8Q~53墥|bu} \s4e j>V^ED,7 8ϧRFxcϼz;i!+Մ iZՎI,ťդ61ѭ94qhvwi9 гdHۗ]ه *ja&{1LID+kZJ+qVDʨW:F|7Ɂoi19>P>-<(q54sTG)f00YA Ca"3e) Z-bL+YT=jDc?U@Pa n$eG, x(T~ 9JZA˛ך C{;=(& bG;B;`cqŲ 3│!G_YsJ["'a3ƴɯnJBFv_$cfu5z3=|E^gنNџ7BnԹ_3-\pz\6}q{|aB3PCCIrӕU*=(bBi"RHl߮NztO-\HG|f7zk5Լ),;wOY_H/SGh gmL nmr-;L%̯CBl%|.Pw #1Zks / Iƴ)a- 4:?w#Z3c*:-9jO+e0OȎpA6,^[oJŽ ڞCqJuiTU-n?8tJ-XJ96 {c~KRt""m8*GpGs35xƙ L)EXGXԸڽy"Q?j?HF"%?o6H\R"5}{fTJ0&%W}E3A6mѼ-|}c:9#΋:Yc!jdϡgksk+.Wh9qGa4YUR%X3/ap&۪#*'Ϳ5K1{g7rZl Z9ZGV>}in-9'g9Z<%W2]Ȳ6Y-fhM8@ϝ=S _]o 4wVAIlVxY7΄#%r B B"gRbOS,#ÓSKAo{ "}L*kW[S@5vU^f:ݢ ?)wB;[3V7+N;=w=;찙Ys@!H >ъqmdrN?1,AȶY |}?U}P<=c(MuYTv7 Fk/7fO? "m?lٔe,$k2s$@:TWωڛb`^}>jQdUN>Z<%eamFDnx\Fw@q?)S9<̑ 1%lUe+hnm( /Ø3K/No ?gaCs{F)3=0ވ1Q"B T<8| aCp圚^ApV|ՙc'[$U.H8XVSc'Տ߮3- SpUG٫ysW+xxЫEn1{$х/'y 1 A{jcf)nĿY!mLv(]y=VeBV)ɖ4xMϽ 5NufsXA)f+iDASDz#AO%Ipēm<,кioM;>n3}IxIL .x\c'Y31|MkԺYY@*,sZ<[1mEWmZB$7X MeCjѧl{ШN ^!Jbuxzz3rg>|7;7'U`=$4l/QOiO]3ddoZ4Io}ؼ 6YC{ʉL[eԫUGMQQo0IMS7r4&>*$h볝 Xb)l8|{uw Aࠧ9uL:Yw aJ5c:*ES=V 4:=1JB8u7-^CIKE{A>sH#m8mɬXȼ0 /akI'%Lfc;B咮t,J\/nя8lA3{O豳+$AA3]!4q%~Q_G٫og-kE'QRա'L,KyVi  of4B;x3[[zގ' w#qVzM:RFd.$I_d+{\'!6zJ -˫X*Pg5QrޫK#-|-ӶUj(nV;߾>]Q϶nDsnkNCc8:;;3(7;N Xd]5xNϰeX g!ٜ™b+RL4ԔG=D_}+4Cg GN=IxNtEDkЉHgS +.R%-5ӭ[q}^xnM3̞?#6!9xFyMs-K@AyN,tDڳJTߢL܊A/^}zTD@,oS,)p Ac]N&Ah}L&@ X4D9W[ ̎͠K_J{jnj1+OF5m-V셽 +J<-1G; {:OhȌ'Yd[4ry:8\:m]vƃ6r_'PZIC&%7uBbjbz_j&kgd?~TgXhRp~o"CJvV uŁnϯ}D8]3YWmW>>Vipq|Fp$]pý/s&qJ.55u lQ3]EťyM ^2g:ęA1EԺǴsR*[ī(ig9I8MV9ZR$2նtwY+%=C1DdIt\)ھTY[Q%M19-H2<̀\~1):qC?`ItWY0LMy4:o 3;7S:;4^dza7H#_<ߔMu 34I;19$sujL^}]S5iZwɤ!s+ලKRy c]K'3]q}?bj:L-n䘨8HRVpzI#H,  DP fPGkGm W}ŠĤ+!vM(SшZa%.\+Jl$#ڱ~6tfM#4b\k ,[rےEi{ ?eoR=KzbM술[0I}[*1$z}ƪ8u3)е%k>.?' 8DM^KX8~l?" LO2'W#A~։IB0=7caqdY9xOh\[h$UJ7&l].@8G^5R%E)0*$|@q=2r;-Z |q4Ѽ"+I*I%v궨('u/'abw)F 1Dm OabŠ}]p$b22kF@Ao#$xRp[+7aEm.]8b:i?KbUs/`a'Cq%(o1匇[r݇OpĮ'ERT=ssiŖڇuUQpznX"S>[7o2OKb>퐌Vzݷ1p7w&E00@ig-/aQcs8: Lxc"pߒ8ΎiQZOL懝@Ko2IYލO$j]O"H) a9'htNiqo~yTb '~)ڔ*6l8-EcА1F#Hq=ȋ^+AbWiW4  Wzpħ):'J/sݮY>`t mВ'$啵< zݜnOf%,QJXР@˙I,]H%szM}$cEa춁Βp2n_1\Gcjx όȬ̇\(p) ~lOPK$TݹJʭ!TUjl}u֠ph$ f $3 ^;}z\V%RJlU>(T %bH͌}Zܶes դ[4+J˛wI',Tsoc՗uyBnuZZ<Sow,|u^~]|{s IUASi-`fjn&AIfd ",镡-=ohuڢ: wAJIns](n\Β.} VE?V,Tj[}i&q|%|1DIrq1SNh}3Pb[m endstream endobj 116 0 obj << /Length1 1444 /Length2 6976 /Length3 0 /Length 7959 /Filter /FlateDecode >> stream xڍtT6t#1t ]ݍH00C ! H !)HK7{{k}ߚq훛LXD"P`P @" CܖPo!jP CPX;$ Ł`)9deC`.@.p!=an(5:`YYi@7@PP8 Ox 0; 4x@T&|fHW? p3E@ˁf:@#O(⏱!_E@0og3!܀08h/ @ !_'!@M [_8{">0EvYᢆ"P>_üض= C*SecnPPIˊ^@h恞J/[Ah'- sb>?( O?% t9NP7wt, u#c ڀA~>aD6=_Qm3Ck?[  Kb ɤ1J?|uHlmW~3!Z(oۂ$AL.?~5KZ_v 5@@]`AAp0MXrvÖ?ů-Pc׳Ǝtr}:|b7Wj .VLLR CJ`0v]I A QX P+kR`(w,bePF PW(/|cE#k$l Ph05t&MՁ[#ܫV}WeG.xsk3x=u/Top-tL|_f4 -%fSy'ß,{pP?oR3\5݇I,Qf \] Q>c{T<͡B̫[ָ\ JCkRO^|7At1 á}Nc8kH" D"e1^72RkG USR.^W\¼QEqx: RCC[cc7Ez4'94%7 @( <%!vN! * !ʼRxct2{}o>/zk8QmYJ=J[t$}ym+HXnOqI2C|_>Pù{NWx3<z:~yߙvk7ܶqMH&X۪sڏkΉLW/A}mO:׼_x<gucZOdVaM^W/vGU+8G!f|Z)c^8~ѦakߓxDĨ7#Twǘ)䋼oP.a}7*%KvWWJ0zt @U(-'b~Do75qڪg L*[mx|\ܺ}حzK;qu>2kt+Sa1;$cXpw#_&\-h2Å;P8uzȢIZ͠4)y]tR*p _EιYxOỹ:e+O7Fj,c։4-BL~BaGXC,_RLU_tMMMRp J8y:B1Q"3h`Ic69=ߊ5'0S+ʅKf+WyT.x+_4G;[;@Vegr!;s6xWA5WPIKGV̡)f30F݈]S*zI]xff} 6-)~U_EB=/|龧D?t3CMS]ę!~A_| *^Jzd +<#0۰o!#41] 5ȼgq{q֢2♞yg-p>[e[δ犤9 X'/ 0WK^%}>v |\dAmDErAvɔ{hotzK,>'Me\*7NQqQ C_lZgxzD jOk(BxH\F KԮh4,͡**"6fbN@TY7C(;zߛ9NLv+=msiT/f2j} cUv94)"#uy:{7ǵs>>Ord}=S7'żkeJ(o?x2*o}sZ[/$Oh{þPn[}Wy&( >V@#팉׵䲮{ { )^7+(86(:\8V3le.4wg\3'a0}c*i('kuM$hgT,iMЉYQJ@cfad{}WhztsFU6Ϭ[S}:v7@΃FJw>X}wj}3@$ZllHU?l.1FY20$;U$#G]n\Ų7mdl`M]qzh*i8F'Sa}}h fPc]WR36O~HfejxB=0iY M3{aHA_D]C2>Z*ˠXu5&emeqz~T[WoM' Ůݲh}Eӟp.Q~#~Xn_>ٛYN!|W])B2S!ڌΧmߕ*rCk…i2Uœb‘V5|qJ8g'wgCX*yuya5#Uvo xB6I"&ݷ9}Z<9Q!8彟1w!(xbn,I6Pn * &btE|eѴl"S,Xk ʍҾcbot(hٞajR wR;[ W{[]VIOrQŤ=ăjp"᧺b'+M֝嬴Nyqsޑ+"+:^** ֔0T_Y%MTP7)B4KtQOҠh:chJ^6׊[O;(k7 u2RHꗠuZkCCY[Rԗ-S[' 6_ߑ] uf?æ7p}O1oюon -}Lm׷!7o!Tw{_(,LX _۵zw0s  &+) :H|KX.)?]oWQXSQmCZӎ_~)5trijEr'MX7 mCVS|k43:oգˇ 4]v;P-fמ"Q kb}ې>&ŏI+n,:F^k,Pk *0q2=Y?e-] ^zy[c$[d {P4Y5kݻ3,>MͬO}׉rgJ(؛ot-r>1uA"Zpx)$f=HSBȐV`[mhҦ=cU\nGyRs~vZ8ADkzɷͮ C/Hk:&&I2 j=ol x7ڹ"^CV@[REnH"ǵ]qZR:$lGr=?(ҍrO[L}㻢7UshP˯/CynQ}_FkTn.gqC,m;WIqvTA1@OK2GEPܵ5*~OHLdh!Fƌ:X.=TҮ"h|όD s1uKdڹn[: }:iSOY*ޗ Õ}~Bzl!51O,SRγLklf,n1GN(9 q/VU5=j{du04bTfID0F Пd6ar=!wEuPBq,Sy@\ O}򾋄l= &=aƉ9bUJo3{FvsƮ䐶t}U=i@3&i%Ӗvvs45| (F QIn(F k0,$& tu5 (w` | %/ּ"RQ(p_^p[š@g@N9T"e?+'_[/r[]mG坆zmIi[39s&&-lLe8,- M~ζdsM8f)@y2iA4=m* s'2HT:=iʟtk^/)#GV<Uj%-RGbJY ukP͸iz_ 哜n\90/f[{t1V9V,ݮ*ŽLܘ4ER[X'CKZ? 6)Q]Pux}M kla>VoL-nj~-ދs:>aDR b~꣰^@f' sg!Wt3FnVWNr㝇*ڨt)kuۛtvʹ|v,7튺jiJ@t˳|,}yl+D/K; SB,7 =h>pUHV7|N&Œ$(-FS;@Ľ|#ݾeƖmWGכY3nȷXb1:A߮|C%=-+:Xj&U:3RGk_3L|^e=nu麩 ݇"f~4-ʍm]YfU:mBy=%|)傲aL؟O>L@to bqp_!ߡ؈Wj.Y zhK%`9 ߴ [3"8}R(jfM&]|I-MK5+槶>AOIJGZd0]mȠ3~eһm}\`J֦>o\; Hp$Iww'"J0 ,~fم!w*H^1you`B3~kb'lPm;K517BlqS3}d=kc}N3+wgbw%GU9#݉[2:* xD IWwlj6t |SG#=F0V~h endstream endobj 118 0 obj << /Length1 1373 /Length2 6101 /Length3 0 /Length 7047 /Filter /FlateDecode >> stream xڍvT.!RCҍtH# 3 tH4ҍt !%J+]sֽܻk֚ywyװ3)!l*8O( x/@!BvvC(솄" BuJ Mh;b@ @#M8IuUupr%$x``7- `-`QH% A\$<==A0$?A EA`$l=. 3?!;E6@أ2MPWUsm_ _멬XtU4[DU ;7NwQbE |)Z+/{0 ן@Oܽ0yݣ4FBA伛8磣QCQ%0u_ "zY<lu&gG:pk5Q?:FQQanTxu+Jb⤑DIFtewhay- kHRCN9?x;9ڏ(g ~%~ׂ+H{.evb?( :zyLWl]@:csUY ?]r o/pp 4O6Ȳ/V|g97"{mF^}}9!D S:X76ODI3FSY)g)UIL<ߙ$ZWSw8˼oTУ?=~7dp|zv6U_o\Kg쮭9"/!xxZ2%:R 4VME=Smi-Kdc`0C̑R5|JONdr}s/)߀4cFqLMB `roҡ[ T k5!wFNxVfy8ZUIpN5b[%|W54 C:λ O\%Fમ0b}'޹]c;+[?=)yjio[/n!]7n=b;I ,wiYޘvzDajrW19Òi=v>P>D{y;z;SY 9.X=zܢ2 _h) ˸H=a$>N3+a e#QX1w_4XZƹFjD?{tyRvnk#Am#+bcu'^gM(iTUHipT* 7^E@]rSrݵ7CYe*0nK;%d?]yS2G彚'4Y>ء2!QGbɼ .HDi쯡>e8K=)sXW2\-70bԾuWMҲY 1OEȊ̘P b i7,[in2Il3(=vaP@`Rܕ4VUz{Ma_V<[IBx]e#h:@f̞y6VI%ݡپ5\:qB>^ބSh<:Me*/hH&75uGd#v|T(lŋIQbiLQrLڟ<՗Գ:{Qx9yn }_=A'i~sHX=#yUľ / Ԧ7ꫝ~E%9,ܻA Ӊ޿`X#I/e#qF\_:y]X)Q$9I|jX/J}0+?3(9k0 "~'+e2-O~cSS4)ג,Md'V ?,*F->W٢~Qt;*0te W.p֟.\V *h<XDEF\PʏrsTZkq#n)޲fI ǻzм3 4e5߁i mm| .UAzƖ{2r>)D{S5Z8&h"G̉էBd3|lIϞO-Ѽ['R ?5AX&4MZ<5tpʺlD4ʂލoq2V?̐.joXZ5mدN(8eu~)C/p BtvsPpEKbf>fb0DU7g ?e1BDywa˟l_ kĦUM+Ip_D!%\PqVOqT{to]S{sQ^,0x=Vezsw= E CMr :a5d8Ě;luΜpRoN]qKjrגt|R%Cul8cڹ~m8i"dQݧRG2xM٤nfx~_ltw{G}t=9\S8m.V597n?59w rvfN̠,w+]][̫*(G cwiM =2۾L\ʢk]:ɋ  InZx~iG rʔd˵?edPjPNWyL1C65q?RY噵"K!"jLd ,6TیPȲ4:Vd?50>dN CXzZD!{횣a䷧|jپf]q1]јE!ZKxLef(Dc's X-|#e f%-4273fka>i|Κ{¼%k(J8Z[#$:g} AK}UKNSKS^UTUc'q.fH~Řcؚ-rS ^RmI5ޭ 0F)~mLW!=8Uom>r+ZI2'i<̅ܙf&iVZHd^.l┼~6Vk})s.$pz/%y[#KIQ6JTo bb| endstream endobj 120 0 obj << /Length1 1407 /Length2 6176 /Length3 0 /Length 7144 /Filter /FlateDecode >> stream xڍxTS6EzSz@zM{DJ!A:Hқt頀(U@tiϽ_V3μ<;YX@iUC" A@Y"@0 m'0z`H =`4ƦFcH@@R )  J DzHT^0 @ 80'g4foHRRw8@ ]02h %px#( ujviM` C0F:PA&`vkݡ:+ݟ_``FNG WD`/ Bb^`l. PS41񀹣Q(WB`Y᠌ts"(_<̹ +{C88j]{ Tmsb@Iqq18 ی!pĴ 9B1_D(+"P'1f_k=`>+ ~ _w9 pXRTOr*)!}’Iq $$c?b5H_bp@x̥0 7ŀe_y? 0Q.C͡IWto&Q" h P/; :X0z`aDq9N [ |z$ngvv4_IPsPh豺xVe8j~>ud?` II~)vŒWU]=IO 2*5hT 97Ζh&BVhB1kwR*B1xBͲo%׭2gdq($Lh]yٮLK -kMR 9Y*PidKUAco'_ ,cҺ&lcߟz|+}G~H]j-^Ք(֪&Ԫ~Lα;1LZt=fQʇJ*J2IfA*$QCgXΎMDpyڢ]+ͱ=Z g8%j~x|$d/WUwhw!Jn ~rqd3Ee" C+5[[[*D>tԃ;\]tmH s=&lմ)ikpkA:FΠj_KEIϭ%܄^0>DZ;,gpyFR4s ֕naeڕ ^NyO[tV׻ w+Ѽʨn>X0,VI<[@PE:-NvxZYUMٷ'񼌔Jps UHlhs:\)iᛊ6ؕYT~ܐ30I̱!{Cڣ#(˚}=7cV-?昛u8 v4"S)e  /y%O79ʟʯ΄Kxޖ]4RRlEcL69F} KZyHS'9H#n_=:>vPqp"^䟕>3x>%ȥ|컴Zk;bꅂ5^j^!WїV)̘R?? U/>T!+ūѹȶPYWqGP-oVWmxYM6z$++!l҉[闞6X1DbGYJE^,5YuclgTB#A S|a7* QwZԧiJP/ۇbjс.pEɖ4?1=L.|m[o^2`cj~vMYY[]^s̒ľ )*kT}PԡQu{?uey6o֭#-ϯZ; v$ޝ*qbhi"~+%576pDK"{cO!ǍcHyNy2<]X }we'PO4ÿb:?@9 =s3o|6'XZClϽ0=f#H'{~4Tú()c7t9\dLJ4 |~B읓]q׭7$6LzяZ2#ʐLO$=Ʀ5"]jLO|\ [o㏜كjg^~%́|1#rd @upɌ[v,C@Bq!qbw8D}-F&d[+WʱQ: ي5^@GHsѽ>moC *P:bG'o/HQk=AR `AOP)ba8#/x~f,2)*=uiVUuTUDȀݮT0U.p/|˖9bn/ ݘ>ԻLa*wU߇רV[?0@*q aسֹ)7О-;=O# NqciF_PLq ^4kNi&tVI{EOVҢ2mXUJ&Cp7W%Өw'Lcw]N^ecto%1'o19+ pP 6M%#yඐZ9`0(m- %v"5~ ]qs?:ЊB6(֭f\(Nlw)1~њLmn\W-Mn 2 qGBnt?:V{nO yE'ujL ڴG##'-;T*SBCN+JnKM8݋ov4 5^<]`6i 7{ XNdӑ=eW+2dF/~D;`CM-{_) tP]{^U3Nt2 Ҥ͛2Siq!7D1ʪ-vF7B S :Z"yA; G^+;]'AڋSK"Gߥ餩)X"3,V•XRnƔYP% hJGoB᜚ZKy*EulG.ZW&w-^ IAѣtW~y|\ NnXA*M}'$p<,ʓm^qzFW7G]ZamB)jl⦂@M|چS@: ݐ0l%;KqѻAbEf|%d7EfM%0)STpZ5%{Ǟ$36+QG{OvH ku6]n֖$_NJ_sG ߙ߉ПKv#{ULτ?B7{AϩH_KF< ʃpKAO#"רg2kG;EVmwWlQ)TlvځޮyDƐs_ޓ)k۴RvFs%O,Z N'756isIƦ~Rae7OUr!%E5\a/JisheL^-A:,fIEȣ䈳2͘@sY;HJf9>skdK(;M)Kr~o!gZ0-Kg|o#5>Ľ-^*wh3нrvRv,5 zRlC(U}s`U?kI1ņI0p#ӜV9~c)PP#=;$Y<_suM_}-+_)hH@3e|%*ଜ>x Q¦ 8.vx<̖ty0@*(;ϳ%n4p4p'Q*4E윯wUv[Mh×'pS@R#A*mzԅᛗkg;kP3I YH*j-Ȁ٧bIzyfAPT6.C֧aW&Ey~ B] iUƨvdw%(,d5=WC i.Ŧ _Z!x7_&$GeM'?m-n<]#L Y f!L;$)NpKF FP#}(j"ZYu[ y;' {WR-?b|MTꑝ'ŴD:?+1x]l*bCIңbCzj|h43JBx~<9JS nOQ+)[Ve|KcXُVD :8 ]ȏRx0 endstream endobj 122 0 obj << /Length1 1370 /Length2 6028 /Length3 0 /Length 6971 /Filter /FlateDecode >> stream xڍvTݶ-HoҤɇޥ*E BIo"MwW)"E*JGs㽑1Z{V]^y(!L@ %E-S 88 hg_r#AL @D%$`@  p(#0w"E nl-7 !!ȻPp[Ђ`.m!΀C*qqCq/8ЇP0(k`@3`w ^ p[၀Pfs@Mq!5@߳]oBpd-#;3 QC{AE8#1OC9P nοFUs"@O b݇:!^ ;8jk+ЀXBTTX0o[_ }\a`~HW3,n|C_Z*fwLx%aaq@LBg]o!쐀ğf1=?_opĈpG`-M[SoUnHwwC\> z1Bb\o1g`PG- pw7 G:Q/90];ףW c/['#!=Wa(A >D`ED?0BH4&!QD PT@0-̶Zv3 %FJ;ֆV3zn __ZiN2As9h?UwSV|ش?#ϗoŴ9h,5}oϾunA bk_mqO_Fu mUne& ixk+AS ( C?NZ|2zӅ4zD+QSf{OOSAX$56}#Eŋ~!z{mbW x7K?ǖD" C<䝜a\bքߓܔ(8EsQ  Q0*reRӔ q|ey7$5=9si0pTCuҁ^qJi+pATy:I7nϤӧ֛-f':"S2 j}LC$fz5lڥC`Ǩ˩O CcZ2ȣuY qxk~6>` lWjo\w$N ߤ?諑lJZD4՚깯-6ua0cVWkc@fl\7Wᜤ!F=y2;fyS_99DLifLPb$ک@!rא!Tr.A%f%g#W"POU/u1V@aǬ@ZwwC7{< o_HG|ZD,OuH钃dfcMQ/ex=wnEmh{r϶i}v}LfJ__8?V]l4#/D;ٴL'kyӵT&N#7-0836 Ookǒ`T3yr3vcѺϯڙĵli+ll r@ev!",ҪښɅ QֽRl%,C&註!`ulUӔϓkNa`vۡ8*&ڦ>)TUVPs*kiYU4(_f, ~kY"D[NDn$ryDo6/l`g2n#7Q#+e>;u+~-[ wXy(6Fv>mdq5۩^BCddоfޠ}v_5QaOJ6[zc/Ԛ4ԦQH!(-YlW]hA\t3ۯ2{zdG"f?H>g 0V<~rVc,T}^Y?Q/"~-lǻSCh[`Z~Lܮ1_,8*կJ"k&@4‘2ycW۹cM]3WB@&*nرΨ-)(8z|}~(%k)F/1z9C-VޱTnVڏY/]7G,qr6$*7ʛ~B~_itmPsrNcʲ _@b^%csAќ)4h8rD\Y.V{{E?DM|diWn9t$kZ\#0(Ц"JbIdqs.S积J9C;"պ:g&>h0 6%>Q$≔hMJlɄ$Ј ku7WOu k kt;C!uXwǠvTyJ<]z>^c?i(X}ؔ4vW~ rRᐕjZ1 i:֓%yNrr2As=MM0>ݧ/\m.aOmYmhWD粴6`{ Cy~:k޺2,~Cs1p #Ne=b/ΥNdA`=1 ?x( b[5N3FO U{T.2"*D-7<- .zŸ*bڀIrn~!fv5֬fcm ('=nr^3}A CBd%素Y6J8 ;~rSJ`U$uOxǯBo=2QD;ٻ g~{F>pZb 1R6j e j fQEp{ O !;3oTLͺܝ,вS $U Q'(w1x"A#ɧcrgqtYL9Mֳ@O;tXqHe{sEqm)S}M޹<M9,t9 YXo#B9?kP^{f>O4ȭܧϗ# b&br%>B$ 5]P4g샔vf;H:ZwML{3#龪I}lFC8W7xP0F `=}峒ELXG!LNS䢭)# /UwEggHzƆHfHm=11̄17V^2lo@c36 k)E([ Ĵj'o|!1V,+EgBG$Zx8j;%dOHnHM'yxlޥbó{@<,[+whsKO@ܥ2ḵŔSV*O!6:Qۡw%8-7e(Kmز8=VYOvoʥ֭4w3v8h"lI깱'u ֽG 5B.)Biۭ)B1Eog±*^=Hn9NKJ46efN M48–M~#(Gp2i!!Qj_cOqCk|1&aS]VihYp Qd#^3ޑ]Q*կ뗚V(cH ]C+Dt]-;z'[/n_h_Elb,x$J4hp RkC{飽-?ȿ83lX<\ǢSbKIxTqA% bFO戍BU`߸N%Am0ivٔ𽃽MLT3"Ltn 6XrO7:d7O0hFkCL7yߋF.t{q& Y(C ;"~e7k8-p2gEj]せ\/C9ts33>sVm;E}+%Nb\ ۑ Pg'אֹ5 vG.*w]uJ/7&UW&SZ3jwݷ ͏| O+LŽנYGW*ERdw Zg^OyA椻\*GoBAyѵ\q6ucS9rgab!nۀ˷c<>.40wUU3ԯg–Hf? 0?3|;E XTϑ-@ n u\ e~)"F.7ߴg5 K$goꈍթzh%P:xn<֭K9Y%F񡽄MP`V*k(L|5m3gE+'QG+9g |fUa8-/|.ì @ad;i,bU* 3,=.ɢ?9&kn-h1;,!uvbY;O5'z1ߺI׫rL!5]*/UcX$嵖Oc;,EޟE ﹷ|dG(!E5 ZX<|Tgsߋ̅`}E3 ;L ] Ѿ~|mjI-=CtG)8+MO^"=o>{x(31XvBhv)Jzusހf+{c27|Z]?T13^{# 7*P ^_kK S,%c뮃LPC8Ku")CXeQc>OeÐJ$7ADfM}WB tQPZr؜4Qۏβi̙ )]C?JبD+XJXjWZVeKkoB. M"6+)vvl^k_1fēa,^P40o('T 8i;`N|E2 /3T2v([]i'|M\x]+= ]'@$FvwR\6O4bzPN7_0WKun4IN۝/~3* euǔqޏ2PBjYrvbE2T[,won+Rظ%Yi[{:?MFusxK{0FHgu|XAsIt|Na6!Eg߲ O ':t.o(|ݨTU r"g7z 0czꝅCP+kl~62-9p칱=zr+Ԋ;]>.otd8Yyf*Pݤ ~+9S8IUCRy!3Pg3P~[3?ݩJxS4Uサ -,[/Sz{l$uYux,WAۇ`kr'kWܧn16sůͦ5{ ,*cJqkp+' $ko9NZ}b^Us &@jpJfń=M]9_j#-(5 SaiCwѷuky>)p?anoj'*pu}VY;IlbiVJug[ g?zd%unklILMn<޸/1K}fEHY~o5Ŵq{QUdRxy%h<dIt}j9%wۚgsqUY?^ʨX0ejԼERd S㠸 7E^V Bq)_{By&;,{@ -.nG^e h:JK M>t<`U, 춵(lo"B3"Xini-SQ.^rB߽_uFeuܧTCgCs endstream endobj 124 0 obj << /Length1 1371 /Length2 5904 /Length3 0 /Length 6848 /Filter /FlateDecode >> stream xڍtT.(0HHw#C0t7R%R  !Hw7 8޵]7gw}EKG a U@Q< ^>1OMrH.H((4O:@HD_DR vYy*8ԅM䉄آ=y; E `8@:w G q[I tww;"60-@EAh&%b\k;  wAg­Hzs@ CVCx{6/f*NC G'0XM5^! E; `70l& P9\x]`F*>ey, GOB sp;5) UKACDl(#aaAQt~ |NkP_5GvPHWsE`j:ZY/  -/+? 2QTR3c227HH"\e5OcWn@U pG|B|-)77;;0Ͽh]Qh#67ǴP+GQ`6h1y0J /9P- ׷_1 ZCP}<3~!a{/$ id@S}$ѯkapW_(?*C\H~ ֿ z@!Dӓʐ ,X@A/bLu}&,e2 ʭB,UZZ3Kk?`p i~51Wѓ;3 q34;=uq qԱ.Oɘ<|&gl:+LX:[l"xGTB0&% d_gp.d%ݘD*Rj5Ft>$kyy1Dprd}r14+AJ|`݇@+2_`?IH~JrRлUZyqGл9P]D^b^j`7% ƻ|r: (eJ;PC ),?J!~73-gU`绘G8&WD<"2~=*AӠD}pt2ܭG oގm J: Л,qydpfJ_M]'bA[s1M_ M[WL顫~R8`Őw1xe=o 2C]̌קf"gt{,@gGf 8JOCHHC#L;[$ igneT+e'Ȕ_vVvONِAI7uҿ+4&[a1[xDW.g~54!A+/c]|x"Zugyco r >^j{Qv%ga?ݢحy&p5x[8u#vlTP`Q \:[';~u20#+K}=Ϸ;4’5~]P&ƛlRƀ5'_^K AR)3 50ȸåv}fc՘).;EEGgyVPJ޸^suvq8҄IW 4=<8JR>3dF u  .,Rcz*&#fH,0sNhmwtjd'R.vOȦ30Vll0.i i^W5f0p'vJ<^ZmҶ{5* ~HKphK3W/lc+>-2xҰ6q6mQț!H]=1h'(EY~'t[w >|P?[\/Y@8|!Zk7}PBL>SOK_XUIS׶}952#a4{^5S}gWWdʣNB7a2l_gc̲@e1U69Nyj #'.o8[ V$;-_2*<S9,u._8zD/;aߌ+2Ҽ3maW(?ORyfO^[cHgM'PhF iMkɭ=aK {;wG)BC][Dz=vsj~'P,WX[/Oa1k"C#JReGGKI-k}َI73hbއ+V-q ~ 3ëĿSȓvIn(/5'Uܖ۝5Ӳ~Rd?zmUY}5s.1oጁ(JXlP+nvs^سi/BR;@|8 }2VT&;#SdkiOZxz rq7p óFܽ_V7Gsh.bJmedfT6*;sBr(bWQN=HnSGpSSm[2!&f(5T FR 1^2svC8j%KzXSxsy yNu2`cPJ |Mvfig&ik'kQ6E6EpU(B i /;U8Rm+4T`a?bǀt7׬qNޔmğ=ȡYMGyG ৣNpF5}N$XvK @~Txr6 <0Ӱ%Dz^͟?NvǨP:&oer#M@qR#?_˸R;7.p~Y栖bz$J}$^:PE~L2]ZYd~oaG9fcUe98 hߞXTyJn[$I{|r~.E]Rvw>]!d}S!2>ta$K$8-,Kmsf҉9窏}-lKt*V~T<?z/!)9>>h֐}0e_=xji6j?fQ"v`>GO<0lNZh.4(u->;9Y&i{OHO8;E;-s3-J6[mދG?ԛIs]OFP<|wٲܟ&^a:h.260<`}c**m\IWrH߫ËiJ&TGB'2m mL}ʭ<_%zT,fJ{tHVg &P.~bjVSRuQR$μp53e&|*]ȪPm(^RTIYӱ 2]Q'BfKg;/'6y^`E)~՗?a3W~E>L:lߟpYpm{'*@]'Х'L÷[z2n hvZM2mjkFf̶GKv 4.`"oE22kIƳ II׶CՓM߀UUZvk胉[dO-(miONP%r>NQuOͰ#q 4I'qSJ<Ri"Zprt.XPii+hg| zy|kخ S̥ZbP/ap k5)5U ng,&BWX(y)je*=R/_Ոeڦ|%* 9{wF޺P6byy7KJh)${g`x̡D4F0Z|XkGhAq@љyd%Dn|R]]=n۲N/[qQgh7f1G~핳5 VQzKD0fQM^<̘x)=}ל +>z"rVkx b,c X83% pϳHҚ7,NJh1ǻvo }QsiVM|7{U<`#HeqW88*4%hδnpwZI9e[?NAQK9k]q!ƕ8N*ۂ|=V*b&:?3[37 qikh0Jb:'u@^DxcrbX+6Q'F'A7‡$ݪ)Gڶg$E_n L:oC|y]0-Of*JHW\  BOGpNvc^oZi+7^ zξGiNn< ĚssVXjY*{ۉ]z&m:[d9;9ER$諩^HL@Wop; |!+xR6na7j(nT)(MygxE&]N9>e}[uEpn2JNQw亪J%%BM43k!%_{ ~!kF=jYW=u^M0@240d߼W3_\ f\34ik?2I endstream endobj 126 0 obj << /Length1 1626 /Length2 11427 /Length3 0 /Length 12272 /Filter /FlateDecode >> stream xڭweTۖ- ] Npw '@@q~5Ʒ5ךk1BUYbݘYʶGe"fFpBfn  ppi'o[k7=##?-̽jk ><@'G l@+[@BEUONY@'A.fUws[  XA\8, `KۿZseyw\@oi / _.&` v1 [8[En - quspurUUO73jھHK_-{yق]n /jNfo\lj '& t'uow6` rbAfxiV׮ȁ v-ݝr{@t  3K` BfUTfo"E?qUvBK;8(9-?#c3E_bhJh?~8XOm$`7YXauYںY] l rqt{fv6iZ؃._I7yVy =E%q;Pm 4޸G+J: 𑙝v%bY `7'[@,Z 73ۦ/˛_΃@^ e`]fN[~Ivر0fO0N'N&hAE$~TX[n^ƃ`V S؏?yشv?#ts (ġsBhJlzPrr L9'fOxG#hvBmrlۃ JkI_~M%ɲ+[ɪn! uNek_JiF%eGFB5'fSTJkuq</YAe=u LWŕ8#6[hϭ,b}<z4a^[-tE'ҽN0M/XȿCwm|<=؍`R2n|ݎDeOsGv1glחqX2o L=B,+2HcHj8MnٞI!hjNS >) s[xлc%A\&'%.iA9$*ns ZT\Hs~سuܴc!FiH%1-}4>g0:o$>"hx'm)I$R-gbjକvn0d-1 iE?&77~ۊW%pjUtT)*Ɔ!Ū)cvMZ. ˢΗx1bӓѓ_p #)u8,ޔ43َXX~Z:kSE@ŭ Rλ hx+7XO:̀&?߇K-MigfظT@PDW/bFT7v{@u* PY[12 4w&A.]8T-X,/_ ]ԛ_VWx(rc>Xv56(}FVA"3( C{>'lmşkTs.o \Ե#.J־-s 1>ZSXػ,X_?a.*.u֪O|"`Ö_H!~B…1._ ծ6?P׏:*ig:"'㚉[hSB97#l2RHMZ53Xk_q/ؾpX^|nʎ={]1h;(VCX_#} ~ѓ'bk I;^e ,Qq.d#Ò} 6Pt klA;|xzZ_4N]|V5LI@ PnS}pф=p_'˻ j#EǐNv䗖 xeh#]i KY?WP%jwQ; 77Uw딐4y~}1/dcW4; ?ur;N%]^x_trM(m dI -yu@5V h_멆11jWe^xlJ!9darܹgrst-b'V޿r ONo!i7Fj*&À8HY&fT:dEi+C,RK9%΍5@qPKקآ'΃5V{;zT,w?'EW`]tOFn#n$zݖI:e-DK@8`w2 IC2>OZ>;©I-9B0Rluje ,9hzR$ ߥC #b$;!9Be5cO''ƥEħ4[FsJcBauF|dq>L1K+%8VGG<1(/$7z}K$ 5qۗTt~]ۆ3f5lxLJd53NH˪%ARU|XGH[~x"#>w?ּx|%45Ԧa T&LM.Z:cFVJ t(KIX%WT ᨳ+)E@LscGwx&3`nCAkA6/h';&=l-Ϛcx{@pZk6_]^C&rnoD~Q92$>sD!T,&p;:=|-> -dz)ysYd"娏迴gsq1M0,!R \|I}YS#Z[ϵ(j=k:ѩ7JjPRaه)<AX65Xç@r$ffѫq _' U^4,?4ZsUa9z{2F}3YT}tb8Zɔ hcq G^xrFˎUU;m /,nel#/a+;;FIVz؃+KQ('l)Eky:^`Y /DsNRš#[>Ȏ՜l_x0S U&aOGZû?wt׹+6$:H<4wY7TUl\a?RJ:sL *0 \/?^LnF䮹͇x-7م8A u 뛘-SQLrr%IH2])h)8Ri馐`@ ̢ :hbd= Yn4IMW?RP{*;WQsgXKUFlB͞v &r`ށUԼmrg'R]h'Nlg޳+]tvP&BNDUUo~桔jh.8&[O(^~`tL#b*Ù (Eu)Y2{אyvk~|BV9,/2?b]X%3gQKz=80DVZ g Pg%j0qZ ښcK'q~msՖ酜1Z{ݶJ/ۄ]g濒Gm6Ug\WQ^-6z1݅5i(ssPa͆x>+^3q/ظ =竐+ F cM^;9jә8P%Z~qϡͳ9A'#֗5'vc ;vMV;>" 31ta OƇPeZT6;⺬T{1bR~u;ukglhsU.MB9zڰr%.=u\(dXEB7F88MEƒdp!<<'5;EGVd6"(A.*u35*~(cGf!F\&iDr1 ~+8i3d S$Vcpݺ`S58~ ovcXyYU[,lF$ wR|f2=2rCq4fGR tcDyvrBJKtã6E\77 3x\/v0 x$KJnI ĎxxΊʰi:E TdN6m< po cDLׂqmjF=TB?%eg47-r_%%yq.(b,CٳFܛ}6Dj v6у2zTU *Ty y )C1&y/Ɵϭ_ĩq ;~rHL =8]I&maR%`-;ZKIDq;^]wC)}fR \$i @Cʥ)FVJÊ# ˊH/:B8Xɪ5YY ]昊N8EETHfFʐkܤ^ -!дvyj=QDM'RL%a͘B%]~s,0FK;:y%ᶱPsu i4&ph̿,VaSIUotk Y#|d,%#غAQ=Bb 8 ^kѓN_#Rh,% x JTI8q0?4չP,e1mҌ$iq0`ꈡO ӕFX3J\|5;|q #c)S(ʂa-iwЦks.GUܲ6 %Q301eK9ԵL&Q>RϧGɶRWd%f\V/# qp&M-l7$䔲0F"F]>PӵXXkۿV3/SwkB(EjG b&R/>@[vÎ$eC%GLeZ@ˊrf}fCT|,)$nu 1ܪِWE4KTntJ9Z_ἕyOpubcIz](G"%'֘i%B>j(֏yKA:1VKsSaZZS9(,}L =PC*lsMdbu6TZ,ցr)\ON`(,7\۹z*@?}۽; z<]7Y?FbXmk}m0ݬjKSBMd#0y,~jGw2R)M+l% \6jtuΐ~6ri$gɨ5߮Ӻ+z>niD)?׋2t׏~&ܕTДߘFP":DM}Ffk}PXH QgysMQDj[;ID5@xI!`E/4*c,(vD0t6` wXp7UCj(0haH Oۖ㜫e@Ӕ G"mZX~?M dbkaoi׏iArW7G^vBelGyKh3^ę&ܝ[}XI3ÖZ  5 ct}jGoGEO1y6OA6)*407UKc;t2pYqꅇ>fpn}pv#Y|G d8RYs[ D-&!w-d*s|~8A+L ֨Hd>H/jkRv U^H:= aF*&/\=S~kF]er~r,YhN['8[\Rks !UZM.̪Q淄m10H!߯Ȝ{>+*C_9nUx&\}3(VJ_;7;T(fm8V,͚F]dLndte%vՐgʼnYDZa'Y2O[F2c@TЦ'L˷~R5U ? #jK9.U}Eѹ:aT:L4e`5b}[XRXpӀ9=H./$Yp O7N>)^ *i.!]c_ 7m\/gv%wMgzj"x7`G $QTx|[L)%aBavwF|4i O!;.vN&T@r^'s8C8839ON2 8~5[yJe[OX &Nec΢&xAr_G̅*bj3io*mTGC 1 ָ[{A,U}oG]pBǨ]Z;` m?RE) ;:āzWUskVG,Beɦ2T5ߗDay[| KQYgpq+_tkg\j/v&&Ӧ|pU~;NR8d Yths^&?@މ vPu!62%=SriwCE) }_ y`6J8Q,acz['9NI|[j$2m|9YU+~%wO+)C6qk WqbLg[%ٲl L<%&Ժم;) YD/{. 84{c|<-ekSWVL32 X}D~P( 5,Amɤ3͈YfY!Ȉ 1'TU0[C_<2 Q,JYu< ΋}OJ.lpڋs bÛ?}3z S2dn'ު,f z*wkŨwr,XXxʽPY,aӂ 1;W()>u! X_ ~5jl"ϡUaG$Z=73Ld)DƃPPn1m-Ț$-v#7* WV42{Z z}ݐO[ַDaf%_Oq4JYj!Y2ͦnU,|B]UPԜeV)PmnzU򠩮QO^ϯ<5i|mm=Bbg(#si9c2zo_^ֻV-իސy8$$xmPWLc<}M}Z7RC9WVfJ#v=EӣڴJDXCet qPGfpHQ4ĿT]V(cv#H7fvڑʙb)O,d~7iWE<6B.k^DH=ӪO {{8_L[e d /PӶH.Ǫ,!T1:)a#CI;H@"PBn:J|N\Fh?2!0ėL_df^8ʡăl稴c~ H˞5m\e'Ȝ0|'ZъK[KJIНسb q-kwDxᔨb(3vnߩ>ȥ!13?bXY}Ba3hBƸZ .XMp$ '6u>\Z ThOp]vNG4G] IR/G>sJb[t˘;x΄Fp9&`G9󵺬tGBJVqF^ A5]?0"U6AdP`D],0F:|nϕI!\Q[!r*RKcdo"yJ~ 07⣾lںBhft\l#d'ޛf1#{cqj^ hLR+xq0#AA0~t7kOQ[> stream xڬct]%b۸㤂m۶ض͊m۶QT\}8_ sa t&vF@1;[g:Fz. W KN.4t1trԁ&1 Kp03wP*Shz:Y(m!@9`ja +hJʉT@[5@ ca uRL>lM,)͉/d4t7m,,f{l5v1'rS%dh/3oTlnOl'j_K;cJ/_O,# o`J?38 MNNabӝTohoo/oY,֦Lc;mfa Y502[nb:WDPM`4!g7$e>(o!7r+G%ZZ{.C[=h >6'jw0Igÿm5K =ÿNb@ gcsߞKjkt_m120?$[5_TRR,*gjdL!!;w#'&俀,kh[7㿪t ?lhkw_V=4][3LLwc6b_ڨRT_cYi^B4tfq(hӚ7'߇e(^)Bzբޤ^;$t'#?k?:٣=qjCFrj]9E#p D!MN 9!oq}'ī+SRVz J'۲ C.c%3ٗ Q۟PX>Z )eU>4UX MQiE۟(jTCZ&j 銚jQ3,|QuI{1z>м= *i t#bE;0hZ~?~zU*gKjYOkFus@"eD-K~}ګݓ&o0s<$]8)s R& +˒uhT;Du[!ɶM xbܧpWO@uB\C}a`}*UԊ6mxΏ3Zyڄ~SKtk ?vu\[AzM 9Wcߘn9 Ӽj̸@=Me[Y =]jQ&KP\=[ڛZ܄RcOX&[& L?ĽI =@YDy,t'xY\Mlj( f' V{ OW"rŖIe/Z6nÌߒBko?_Ԗt\N7T&DHw~yj֢\;0BF_=f 7ݩ #٦6ªն@Жste@S_ j{l@O8q7lLOCXoR_zLRqH垎*u߱=,w|X*Tٸ 7;>^^3 @176|d2GXF1ֱҰZ'fhMF sޜjeTO_z: |e-`J+7t% ,ec? !oˑMzMg[>ɣUoz!BluE]OZŽ^'(oĻ7F·Gbh"ŔSx"Dd͕!od"7UrOG**f=rO"TFCxvs'TXo^'zߚq ~ ­dNjM@ sRNH ?Qr:ppĵH{l̬gbU:|e:ool&F/[:" XgjBѮ>k x/&2Tw?VYc췽F:>ؽ$yAſ/.sVO[osUfC4dGSZYujtmTHE"P|ZW8rw+ $ Z]!T!_Ő5AzF Oݹ)`x>WEP]X=y%2?j`𵏙.䲢3A$q{;wEKܝeH[v>NQ Qa}#6|3N'U O2񷖋-hp\b n.el/O=%xj 4 KT(H{Pb=r`4m@xƜIʈ։ƅ9@ mGi~@ݼmJqzӼɌ4DJ?s{-6ug;kSbwp1ؤ/Xl[/{W4coLz?gp=KQp)w*>lA9( j;~l؃&܌yFr\G'mV%EK[3DDL2rּDKGÖx(vr)p!C$,})RK+-$L6 ժ =6lN尅ИG]E4(N ikXQ ""`嶙jQۄ0[cM(rM:ׇu/߼Xm۶ƏmMLfbzʳL|$+`ME'l׻)I^)qE6\o @UZ6PC] 3tpL8$*{~c$9X5y_NFO$^O<>R3- {dxAL*Tkq4D<*;pHok>EV5XzD4K)&sǬ wW|pLJk꽟!(Kay)k~37ǧ,\guajg-C9P>Tq ]hnM>sUDɠ"h2᏾ |Rxdp%. ʟQ/AZSٳ].t_鹄K;(: 'lm~'&Eд w-"jlcq/=XA:%k q'W!!/Y&`:/eR )'yY= d<.,9ڇn$Gۼ{Yn0Cxh#RyLdY?׎d؞aցF &Jm*(jeA"@CNѽnn!#;],D1Lț5-5%A>)"/`2-(AXR|] kڽ%jeK.7Hfwl.Zg>3J.J~Xn !pRWzoaam0e.u$a_ȨI3>񽌘Me.lD.x(`fg"ah'1dE69f&)x,6%RP /sxId9x[N!3*cO33ЫtEV}|-g9;&%4Kh_< ĪtEBk4 nS<ùVp8jvS#2Ҙ0nH]9+zE|xߏ/n "ƅGظAd|x2\;`܆*4(t5.Xy/J t>R:Z֡ PT̈%Z*onQy4T] ʧFYjfLl]M^αBY8Ȩm:).+{7m`Y$$s< w"[H{v9=2:A_Gqʜ P+ܑ ὿9Z?+_6Q?3>xYA%0|#I3>`Ao.v;nht:!2N>n')sZX#o0_*8w,u>StX|kT *ClVH&I[hu:ͿigǹT)W*E_TnqiޗA$G\Nf#Igz^T)w~^^H)nPRb]DSl,~\ yuAӦgkq?B`Ώz~ƞly&"iHYY^UA&*sѐ|^Ge1^S@Ǥ=J[b) Qs`E,TH̙dX 2LN別'喻ߟ.)㥠iG d6MZZDԒaġP#"T raXNrȊd?e ,A#fWjߒ.ߠˮYPk+H'LTpdE&RCZ\##㩆fƈ|pа ԓ4lbdJ臠 cSgĢw{\Ќ3X }"(@rm |FL0 JzG9JW>ڻ 71 O4 ;D=rZ K,M{簅FD/U-.gؾ?1 {k{EQ:`A(JNSa ڙsDHZn{Y !zκAp\[7nFЩ)ٿyQ(C.gCqPթ0_u*#䛆HN<@Fa-\fMRY;8b1K&^07&4-H%#(6AM&9˭ /f7>lFya \l`<̐D'hk YzX2LXjoh'S2AuCFM$]Fx@yR<7Elbꪙl铉Gq}qIS~n UiT֜āH lt,p*`B!l~|'SRd/ҕpDr$ akD!mSBEgXORk{JBR &Jc3ƏeZm+M}9 'Җ0$0#WE˯;fvlZ:_\Nf,+ͨ&%MCOf6w:9*($xN U3Hf1n:06p蒛jT(xD5#onn22 /C8<,3BHUp);} hl~kAa遮w;TC"3M8($D*Dd[֞ʖ;e"y7uMIu^n: Ǝ`dBd+,}GHڹ4dNhA8>b9)LWd64Y Uߝ*S?3j{=Ϻ1yQ =$ 'c b~@Bq7斂9e*EH&M |rT~gXSn<|R vhצrC~Ff+2.۠bsF/Jj,]-E@08 F2K:/$uY/ oG1ӱQbCM \U {Jԯ45'^~ҐOR_;ѽÒ=æ.N7dD/BȪ}f9nIOTS)xD,vER8|?6KriylV<$q FCC$TE9i&znFn|aw)Եi 6g-t!o]b2L\/QL)uiI 7Ha;Lۅq Jdഭ205N95E,@|c ^6sr77 /l ܪ#njE *͵[ F8mumd}8w^g])i!8ͤIOIxXCe/Pڲ%Rbvp̳}В~K*hcpnjۀiI<= c H_*3R&4:`B+t׵tiթ]]ָ4m3 3JAV ʽLZ+ma>fV;xm}oWaLHINއ6k/G "Qc|FRc>\`9ML@mF S\H:xb|NgS/Vvf% EQpc?_7@;^ojg yrD)ᷝ c!wDfĜ&XbPW*2mEc|,,_f-"Wm5qO*Z@x?H&V1>YqR.!7LVqtrcEV+36enH=-P mcF&ӖM9 fxZCxyö5c?voWi|`)@ _m(pTͲWRb^\Ȍ1mwV. A)X!ss3ߌfNcp·ZO[|op+I}=JŊ W|ǏB$b>]:wu+!Z:{Nb;ʁOf7ft(PhK~ w ~3 ax/{A!x{6GᏋ4ZC" 2>ؕyV .` ;"Z_ӗ.q YbwBp4 4 a0!Pr JPK iu2.lXu XI%̷хꔼ~ݯm[+Hԟ1ȤQ f2+6@,b.WwMX<1XژϮ5.XwsUP+Fea{-qxWfo"+AS[>SE4mxA^}r1X@ *^rЬ^ E=~|}.q[w-n=R8սMq^ER'pm}!-س_v -K`n$gR*[G9VRض09c͒N?E" 5_y[ՠ` 8yBQX2e/1<`Ï0biC%7 h3"Qrg]51(zN. vu0_ڼ=h#%sq"NJ8w6N(zY0lf7REҲThU$.>~VQ _*Y[_s^B40$|q]\c׽G<" ZX{P,׺ˊ^(UXѲF=6;E6K,voxkslX:U؟.L;< 701fFuV1}'w)vLӹo 9Y_ e) O)s_ şwL7fHѷE2 w,fC$Eqčy9Q!c]oZR\f1DIX,b߄p<60&(zq9AR1Y6ʙown"`*L!Ƚ|1ۡºh oT+Rd##i֫f]d{PC58}VVɱ+Rvr=B> TL;Uk!Zif蛣ea$>_{sg|Gی/9:iigJ{ b\&IP q*/k 2:"5D!Jw)w\om70̨ža#8-ּ򏶠012㤔d"Xc| z8s{ Z궩02D&N;Ѵ<ڀ~:;˖#(PN&(`!+xQR0p`;ד@T)+{N`f2$}.n%y3%kbԡd($s@o# SM }ظY IQDjxʞ3(,% ՔׄdP17)w@9EVH'CLljXPZiEo4FԎ=0]#-b2&'0İ*0j4P(0łөRƚ^o L.r1㽜x{sQly"MVdY=ptL?"|r?̛:c%{:cC0B^o+*/`@; GCV=ڋ@b+9"^:HaAiDV#4abGgHihwJ0.+R j/y 6*'H)X$rQؖKb˒^~sݢ5f9j'Y>'&֩,)FcKm8/Ehp3"a9=7>)IkaAQYA5ĨJAgFޟlv3E:5Y"n/Wvu,U8ںK-b\.>&c&O$CEt{#8(~]%$udlV*o%@nXK|q: P|{J; a%:$fi^:d1)xvmc}Z*H*#iNpQ*X b8bT X1n^2&{O P6GR>˱GOWn^WqFk]il W7SXl%)1+8?4Gߌۂv qIW&0 fa^AG%Im5ǭe6ׁfRv|-R;!2R_'%[_3nr~lGP8{cjTI⢤o- -N"%6d(LvMKMCXܓی )}:.z3Q:Xe]@ъ},xɩ\xSrP8yw/K|~KJ6cEA{[qH-(gigK'OOܲ:!"ve?Ɯ@]K:`*#- 6*%%:Af=k.XArcri Ajݱ,n۞V6OPg!iuxeБV 똄B/Z9'Zh-NErGB 42iҳH^36$g >wF>fP–ǾnfDk%BGoy9E&*Gf!1b fXm9m chz-X^$GmsK6&Ej\M~vZz7L9`k:#c{U/v)x?%cClh*lO*ԛh6*i]'> "`QM %cE_&l0tbcX>h9bs=b/ۅBŮSqcȒfǴ5p}_!Hh7;٬:V'+t`]O5'҈d@A5fxO4~Jfi˰uCp`UGF%B1zd&Ø֧ͅy :*s5J"$ٖ嚽X@eqJѻk:j˚ V!ej,VGDLƸHd>ρ;r!xr){\U|)&L ;޲'.]`AҿӬLrƔ˸]e4[t1WQX!u5We?)T)0aVM"%'W1p;Xu>cXuy L-fQ" rB}p 2:v3Q$9W]yJL*X{)0zt5rCI8qH,_i|my詙 }D 2VV$[ϗ{H~QQ7"|dmw/P`㊇_!8r@(eV.0srjhQXDu|s&SYv%wX:dyDpak t%bG49 ci \>'=;1'`JMǩZ\Xrto[+ L.0wšm߰L}}Uk#=uHo Zt/+E`dv6`˞ T^8R:\J8af^=ȒÁ\U61z zc\f5uߒ dgK>OQz;7|FᐓhcרF$ Iۆoa_2Rd2tڽMi.R ']<ʒ!f-PV̪ ~t(dU$ZQh]LGkNRXaU+BK2һ|1y|,(KxIdΣz'S{JhU,r0Uqy1 T CR&$P9b(\T?їGiWiݖn(YqÎ]wpC.#'T6#BGZ7NjY y7C}+ƈ|.^^[OŸ9Jz-EM%ӜWv?¬bOןmaW ug̬2ٌ\b1!MR!*neL \i1u̙۬* ;y^+_Y+@Fv`@(PnG&ZZx=8ɼ.fn׶Q)!™_tt3D}~6ȿ噋!gEy^e#޽BT -$!qK1m;,JxO*⠝o Y?E=Sh2X2˴aq5vW ?{>|F46wBhɠ.py1* ̾bbEvW^ݚmn{]\*a e;Dk/>ٽC̦"cLH8V]E)"v>C"gO}f~iDזz#2 4&UpCb)H8 e  H*-5-+EPю k_݇jgrj@np 5~QKbߔHq!))i|e6?i P0.">Ŵ p#kDس{}B!Q|VgUobo/;rnlT &Ny!Yhy p 2&q v Gzc *|rC0ئQ\Kq$!7ڶeʌDCsώ9ɍ_%-[>xMMպjdJR$+냯leCahErLn~Q_+g%º {k 4fLu}raTEV%ͦ**td!*FTCፊ;m>5-`u "s )I[|اT`oАCqtkM4_kԛ7N,4* ]kIV\b);q Zf1) qdYnc~OFuGB7+MSZc2դ :DjqYB ԡp|=L_'7*:6 ,>]KQ՘9;𬊙<WUyXN۬v"k \oz^U+ k,ABU(x}![\ͱ?6MUT!1"ns}qw ~p-`_4h*% 8MH3 8׋@!!}GhT6RG'&T+ F)RqSVGr>-*c䫸 ڣUM;@w ?y)YjB>^ \ ^poZ~7tʋLb+̥Wr*Ph]0},*j):<~U7 ?EZfNuVW#tt"Iԙ+id\Ck{IsP_4bb3Ax ;+lDnZΡ9͊'[{WzdW4t׽[2l; ?+݆XS~յ Zן_`ߙ07G\Gߌ~{؂daḵ/;SP RE c Ȁv33>yq lFUoU, qvjc&n O!rla8z?x0(@CuFT7͵WDB`97EskQgP.]9IH9Zol{45xJf Ⱥ1 UjPԸGAN9H{Ofo)Ƽ.LnK2/'ժf,"@yzD@"}Mu ;g['0~:=RܶiX%oa0Z]cav.ȃx4P{wYťrZl4}|p Nmj0~S(Ԓ˭zNھ2_Y>b_8ҏI`Vj% 9 4dq/_#3)B@8pCI/5l4t)9aZ/#.d$bw Eu)(4&5e9s >دE$m\;A0=LdwAI\Sy})h)yʇޟhΚ]$.Lox;$%SQ78ڰ&dǥ+E 7¦x}I20UјH\ endstream endobj 130 0 obj << /Length1 1644 /Length2 8341 /Length3 0 /Length 9192 /Filter /FlateDecode >> stream xڭveXܖ5.E;h. (]kC)R ];C{͟+9{}vBG*nhq@Y98*`sW GG~%V +N!R@(H H,\\N~~WtIG'Og 柖?Wx!/n {G'BvP lH˫eU hPs5[ ` pX%\@7rv|]@PGbaj'_ 99;px^].`'(%yBm?]/0妥럒^h^P( q@A?AK=% 34\]f :[ڃ\\^h^tuK@''{ϿP+NЗ`+?"rprmtuO W K@KG'd]S'AyoF_R˸۫^xY2@e=׿@&Eb" +?; dZ/}ˮ 9ۃ!}j-_0-<C V"_5K%˪i2l|T t-qC(!f}`z_Rge 0`|!'? X8Z$M(b2{0-\_$k^x0h!b!.e ?^0?ʱ?5|[ØS̾P=Cg 8̗;2}+VI Fځnɴ /wu $ַ('L4nxWN~b۰`pj w;#vodǢ  fOwn|.3_t^'j{ϺR^Ƭr~5Ut? E*LyCMr\KmV`wND .c?9+JS\tAh;4u}Hq>ZQ:iHIkbE&P_ Jڬ5a0 DҾoR:b)KRnJhCJ:{ݏ$ߍpL u U>Ҫ gG0K/W9UGuVdqw$BEFF9e^U8 \aS_JL4DH"'YJ{H 0H[N3$ <d1Fho')oؾ?ѷzJm|[qmmx+"-sC=rhdcnjKJ BS 1K+Nx^vO<-؛ ;x6뎡 E-ATyRZnB@ᜈxܒBJ$:Rƍ 1+>Kp/ lX'/~)R;f #H2Hh8,:Q B6<:M yt*;>%mKֿpҘxpYk>$-p"9kUca]x0YcìUױO8Q*kܼ^'4X=_ZW6YkE _Dh#a XXOʴT)&%C\C=zY KLGG ŭ]sIiӲ<`!B<+S@7iuF{1w1Ax}Hz)f1ٙeWisϭ4 o'_ P; xp WJ\_^]BOgF.uä.&"EI ojB$>UlP6_ҏmSz;Kj~)Eu5m8)h؇ka2Z_wcϑj6(Ě^&*63RۑGIax赼[M⍳CGUwqOF*8L NCدKKhXJ%F4@` /Xl |a~nI^D|,H~וֹ#5̺ϭ Hp!@/{;)W#雓7hҀ?%k4H6).[.’0Fd-S7CHEvY/.sMУ֦4Ӧe|{v`MM}׆խäB:$]Z|\at 4),U:)v)x8 c#SMc[Q+(4ȱ ?}I מ2\ger""XARvrn?.yqOh 0)G%$h8dAFфUc6c5dlja*O'+H?E&9kƯiαơAī"(|!Z6t-ǥ,D{+-Jx˟чQ4eű'CK&`t(8S!vbZˡ^''-N?a?@Jt_wXqY Aq􀅏MHQmIIK_5ȝۃ- `-J^6C]4Jm}̊`#P&*4%}\뚹lZ٠΄:=]4/?'Z,iJj2[$X$Lht^2A2OEju|de:-s p6CUt]7P;L`w2໾o;*hYĕ{oC1w-Ereo adbVB$vV؄f錑F'!6FӅ hū=2ugabʘ]HXui3Χf?bHyH.3x>J]E-Z9~GwxW`Zw:N?"̈eQ[/7[fmh>#`!|1 ,#U&'Zy١8l_0u"S#?Jت~j7eD"7Thf1NAX&$zOP^wB{F|a(LX^6Dbonشw*:AɳۜձkWy/aB*jmxuH2Kč{rdӴxzOG'_{P$IR QtyhNeb5|õͣhXLqJBW Lv&q75s\*YYI8c`H&`9q-WKrES}ފ 498!Eioqyѐ}ް!''8QnA%zyjsߪaT}$ \d<|GWp͠i6,҂z W^-~R,_@' +y23>q:w$cTW(vHA O4a,zc}\Boyr x&D$W ZE:-߲@uT`W9j]#+$'ueoǠ>r>N1"dTS:å<XSjF6l/9MwChQd2Y,yͣ91PG:G֩߿e}t u /xh߮'\JZh{@+ o΢/%Q(Ӊqr t>;&>.sң=KJ4{RRIL}~mb8wV*㴹pXݬuc-}XA.7?~Avy䝅ͮqkIҙ Bn:W)IA7Ԃˡz+KÕbf/Ƥ|[CBQؓu~q/"q:TZ E*`Ǔ}E* 7TkT>gȖQWX.wj ïW{A :1G&d'Li+EqPS׌[A8#ru[Q-hvxgX\6f&2vҩ-͊=VHů8՗LjN&KlҏT0<͊|ZFD[^V'V. KaPiwRdnˤ] ЅaN_/y2u s,O‰νAIV2e+vx#Cs?YL>Xk84:.6'C-[a+UZ $4D-7mw,v[p87#BJF\{w˶dׄY^ǮMIZ 6|MÂM?v)͵$v ":A dW{3X`{bNOF (lA /hg i,F~1;bރ*7L6϶Ri9[MVNɻ P<,M,SjKhi!;z$r<Gmp 'i :UδTγI3-GS?} 烛uʼ.YN0-IC5쳆ڕ^}s]bLpDjΗM+)VSVC>xs:qJ?`^vپ-cLJ|BuwDٜP455[A CkͲ}KN"#牖\uv<+OvN l *2M}Wr9g J'W'W ƕmvh"E;8e`Y25#(͏p˦}vKQ?ͱ}aSQjՉ!bԣSQ L~)^C}̀y/WH3I<٪?M <2ңw[s`?K~&/;ȶ5z7v-3;6',<+/Ɂ xWϣJ(Ay*M)+AbR;ŭE(|-ܩ"H0.~'CpQ6h<DoEqqЄ=xK`K ]cj8-·=-PS3] eSf<$綼"J765I/7fwj1j~$} kO50c՟tѽe6qH#@a^U++E0>aA8uX% 7ZPh3Qcϔr,h C?I}*jVkڔ= OrYcZG}ϒ!KŎ_㗜oɚErOs򹤈5E6lNo|R wiu_?0`“Kޓ-Ҕq"mpx4[iS12{ z,NMkS)"Z;ۃ:IDˀY&T1cjf-|+"ƧOQWQh ς'NQt6aR6 6feڼ2=t'٫M(FF!Gʚf2J!lw w v$ESLH[tܐ_ľ: X%e8בZ*dڼ!RY8s@'E#a̖AnCnjV2A]/>䵞:1 Ss<hr8Љ b_- !Hp?t9N9^ ->#TJ:LѱS%N,ԏe B>#2}8(q_ p/r_,Xrׂ#Baޏ~ul5}Gw e0mXJKNETxֿd{$ #=R H_i,ч*mσ y@3ͺ)y=͞tkXCBC_\2AwԾyOs߰FN/$kl}boTBz3b lFXɟ?,>d1  &}aoA}Ϯ\iu5{Vj+uٜ*ҪH!%*4ɂ;>>Lh0i}0[l.Psl6ټ)F _%C$Ź;mN>XDCCGlH~O7q\?ڙuڲB[[T+li@5H]kmn:ŎB1T6ٔEky7ྲb|_{oBBblUK=ix $ID\ #Q[^ cʲֱΏ58e(Ig2qNWwɲ]n-٤C?v9ćVّqw߲*"odG}=?;#>Ϙ4Q"mM&lŧ+le+9>;Ahß~eR-ىGޫaZaǂ#go[}2llGط>!pr MuGw2V\i 7 } hVǐ㍳[ M%#\=w,HxݮX4C.03+l<~totz[=Wv} bBhD }e,4X= O0q y(A) LE2ÇjKCFsKj^˧mfέa+EȖߘ=hh_L6 =rS*𘇾;(jhgYs04*uDB."~;T g2u0?^塐1k^O[mѢSZ"`;tGo@.St܄Yvă0V*MiCCH*Y^1at$!F:&Tt,-/±~fY أU.Ud(Y=;dzO#98|7N/֟`xs/seQi0q#~$\LI2VLv4_ΰs> stream xڭveTڒ5N. \hKpB]{͛o̼ݫO]UgשtTZlRV <) P9ZjBU!Bl@7nWNhe݀=@h p d N. [7 ?-\@^#]A6`v{_j7[ ȨQU0*`k K2v2!.K 5WW.)W9 h z zY@'#7 q1ށ[:[)n 'ȫ+Jqust9^]۟ܮW~Xi/u3]n@/?,+kW2'_e61wrҼr oݛ;99x jQ_sZQ85 b33LE[A+5 *5%2O-W#wwpP5w| uј l] 5w9xOWR`Wظ6\A^@+u-뀭. 0U5_0m[=|C@տ_pj()j/gשpv3 !^l\B6ny?i"Y0d~ϓȁ-!VHl:ze[*6xDYXڥge Or96j@z#ׄ*k?O ?y8=me%p`Sw܁!Fi 9}N/mehdaAu4ϰE09RWXdvy^5D`^|YM:2 (\K GvVqFBos!SHdV*iĉQfm?aIFb [yWQ %K}F. #xz*g m.[SI}6š&#Q(IT;)=>hҘI^$K9vy@boOt!jp c逕} 9t*s1mo0>Ql;Vl'QM)){o*$\A\K: )#s:j%6r0pa ~;F ZͽΔ\yƈI't9=666 ro0um WZȷfxċ'[xʖ)e^P5r{xtӗs=\T!XFEq,@73O4jKX -XÄV^@.ӶS42Q/ϡvKAw E{\wAupiAl&|I){q  'h+ĴPlBd9$,2VܩD,uLs#~75EʽQhȥ#yݙ힜bu8j@Giz(}WwXiP I"O);'s,h i3jRhq>;qG$*_t0Sg:-66Kn ?Rrac_@7|amQ\}d@-Rz/!xh/Fg3y^iD:GJ RBORhE(wӪD%U]m њ@S]Kb;1#a9VB"F7wM=_͋I>&8;Rs^[Yq` B=CB]J!&IUs18LA-B0NPP#T*GhB}y]JgQO7 9W?KC"HߘV\}*q^pzv|Ttnk [-i*7<<0ѹ&UJVoPL2qQ_O>:Gs%ˬy3)[1hWz/Ϛx;󢇋sm\ +qٕO'"wJ^{9ܓbx 2ٮnkfKg 5?0fe7h 43~w4 cJ(@wCڐ+rxGW'!;w+B]\5rv-dݓ޲!ⴾ^Xtx磟4:;&7hk8i~\xt 4%7f"S +mLH9Uy;}Ԑ [/T38YC}8wͤؠ[0[k{׏ #-y:L3ʍhxz_z)׵ocS#؅3~:k uxhlwsqxH?F sQ2}684~;bZi+i&$7>oAJi<6ߎs/. [KԌH`p4DØL4[46G չX\ݏ:\:Foe 6gݠvaڄL旨@< oL룚Psdxs.>`T̐nYm#yzjeoh4-,_'EuJT٨4EAYav&lSsϑb~ 6N &>KLdMp2<&b'~RNzFP*їOpb֞FAn|.FGVʗͱ~D꙲Ǟeh6Fݞ)fzr$).k''/IP'C"10_;sb]}-Ͻ5ugT'Rj"AE@Ciz3bx 24|Cqv:M&sN9`B_ Eh4S[i 9CԖb:XZSRՅ 1޽\D8I=>ɏ1ˏvYݏ(EG2ܟ4XSIm6g9 BIw߁.c~qg_'q=0 WYIx"ۍE) f`XY$kzNM˘錴[!b Ϫ("bM UP5%#ҺWK[Z7(xGU1bXSǾj_YKe$s)X-h &_:Cfj\cO 0 )zZ}W#դ`1ޣ%Y{}iˆ \1B$esR,k?ze67n8$#n[E=[la$~:cՔ|,zN*U)1)S,Lݵa/bO/&C&)gq &fLYp gGs̻jf,BpI砙aQo6<˚^EP$"\s`(k`_*uVS-8J4$ ˊ͞y ˋ:vb^e/Fܳ)%Zm[D:f wb X~FGt*HlΓʽ0uDrA-y m@t֩S¶32\Cysq~AB/eGɳ$d(mS ]Duim[V5DNGt|ު?\%i .Q26.: a3V&yddhk3{\''#5KXn{/T*։\5kXNտ6*/% hLlkt^KfY5aw(^i-|ULDl3`bSvX?D 3(&Ml_Fi!"݋dBy,UxUт*xYu/=UVi=@W;t#fy5P(P}A 3J2y6!/F3wi(SsFhmxvOṆ/xsɈsiSPlq`FI82G.Tbxپ夈<]_NȳഺR/GȢ1I䡪i՞}$elQQⱿA8p)/MםZ[¥ W,l>Bp܀="< Rd2#NXlAЊ?^m80N?RmhtVw#Tχ^)sreX1;t{ڒwM4iH%PbEԚ6x7%l%\V9/ Za@i㯉(\(m>p>ms-4VEiFW罆8#I~r? .|J&" >RW+Oֶ>-dQI~@cL 6=OXD_9ͬ*tWBUmpMTRU}u߅v]-/P*K41DAf$v&)bt͉ [J&D4R<噻[܏.&M,;H[qvjMD;c2VswF|VM 1;rV 1<%47}M*xtlm.J:9cїwg?*^_4 d ܄ݻ7.+he : XnM[]`ȹ G`0nʘ5 r7ޜb1JUMzqe ];QXCP2kT1VC,8r,J <Bu?pGg`ϓhۭ g4o^J!SZЂ>XWuehC߂| o1| Z5|؉ I}i\wk9=ł' vh4hǓ]! >II%x/Lt|4v? MFwZZ#d.3dgC2O咔w槻.S,%]V2]x=%kcޙ>v%Ut6{fظv 0 V(Oy]+3|}ɦ?ʜ,vd;w9^m<қ]E3g^koͬ@ \pR/qI@ 0|,)=&D鲰炠 tf.Tő``x?4281wnn#nl̿CD<:'=dxP9j^h!x;=6`3ߑBvvJNՏ>晏/YS#rAñbL iV%4k%`7A*:{u~/ɗ18@n*T6 :=+-W⇊5o\k+ń܍0ɊOߙy>^H|>(v {n3 =M6ڕ?s؍3Q* |DQvK?))9mHXZiko4@=pƼsE9\ڞ|:7{܁tG.(,Hk rQPs%-׋v쫎&P2:{b%ȖR;|YibX!qr=8-rZ"C;я]KtQvFB6@(m 0(;Ɗ2? c6SQAw;h&[3Œ؎Z=RY "܁};gFipp䈠sɺ$&7Nk'+G[\;|,-Zk3;oDV$D9 9MmhڭQ@KaW]ڗg~f2qma$J⧋+ITz'Nׅ9aF}*yZ}ďvzW4&xO[ Kc̉5P#ARbՉXI3kfc!CLLBm ŐWEYdN痪5ZRw_$)b oG]ֱ@:_*p!O7ҋnA9Ƀ}{RȻk k[,ʆ쫗A=PypE aQ3+ HeZg# ŷǞj}HɘWlh#FH5(Nƻ\nkS9\"^Ρ6c<.G8! F9y/n+)bK?Y{TX[WNzVtq+h8}E+ iXM><ő ְ9`ͺNE*\L*sF<ARo9g:V (GZDs.F4_ѠH,qmV9?U27>t5\᷎:U\>8.T G!i6~(; @~S}:8[#Kn;Oc4|{YAR'+7Y8ځphÎ+$&ƚ!~S{V|>QXȸc`2~\(͊Ђs{nXx" 3׿'/LuOEyCVxWD &ߒz//l8-̲dm|Ž:=U('g;,):Tfs&XCߚ &3*N=fwU:$B0ȼ^}EO7u-Pi&jL\]1{ +Rz-_{:!E7PBNߢ~Cʉ{ER-p•M4쐢N箉:ITViC %1w2@%$-޸خi-y9գWGܮ(3[v0nf,tn?VFjRk ө_--(ҥL_T]}HK3\I+4TL4pogԿtʟS.-Og'] Ҝ_uġZX+VzETj*"?L ᷐ެeQefky* LЈ\ߡzK %'㊫m41tBzov 2(\x(8EG_wRbP&!;]캢DMO/.:{t7AL X~Rcqy=`$Rz+vuѬP1z<_fL*pYU(sƏy[B42R?PzM,\F `bNL)Ν^ik-I Eէ)h<(M>ȩTS0ӍDk.Jh2OQW=A"K0P~1`}hLV:Xq9Sg܋ftxr,1Ict*uDr7y!d\85DDoLlL"1J:]ͺ':ɞj*P"Įe(sA蚺_ޟ3Ejic kfjxC..M73;u7) A+j ͭWd_9H+G1],>UU`MMՕ$7)jL 8>(V> stream x[YsF~篘ǤRrGd˱G(^EAcTr@鐲/"Acϯ{f $s&晏,1%ǔvL~)pTgƀ$0'}OEJ1-YiƋHF]v."AtV:FC3tҰ k. y&]ifi3Ř_gW?Ny7eo{_5Oq3-> [~4yn/01=p|^|䲢=;40ɎNѣϛ7`'NƳb<+1DGE9OEIa[a#{'(!:Md yGAC@S'-ʧ^COūxQA<̆8olvSCj~kq fg1l:~& _[’aò&fXj=*49 ;DSKīў@?fxtA:n< FVa{%XHP_+*K؊k>/g58SMI*,?Q1.fb|s݀?(J'f=`h3`:5G<{dPvQV31gĻ 97z d"P@C-_b?NJQG+ ppgwQr-V6!vH<}7y+=  .ƹsWEќGAR+@>.&]3h:mh1 i;ZIy어0Nɦ2a)ն1JL/ķUӌn16MT3oK̺9"!wpP1>;ǒ՘\1$02OLC/Rt~<5Vi)I =saόf'F&,ż.@ޑb5Tv9CWۅ-ʣ]slo^[(h*,kZVgn GG RIS裀l jCZ -޴2hN>?)}ISU>yEUiV1dx]z a) ,p\##,,LbH.s~@Vk8!][ZgV0 M=fﶴ#NiirH<[xSEp#+b}Dd\ga?#!8d[fʀ8GJE;X(V9qJF[F6~4lyk5t.]0g:\S{;䘁U,k[EgLwx:IY 9m8_0zjsVd,^r\67 l>5kYmFˍ6R.-J&dl+v,ն`[ƂM{m|~qnY/#6obn̸\JϚQQ.cFƿ1?z>-雮XD1ul$^sQZA~6劧B>TZ5CZj-⒮\nu6}#ف8N"sv:;ujiuZyL7ɴ׿_ON9&r2 Qq9pԿ,xR/u)*N0&Z'o^+4&=` Ǘį;tq՟ZWx"g;M^WP?7H[L}9WlbV]Mk1h2/E!?Ӣ?+J\ysUP.ދe)XgŴ^DLƅ7ЛWP7Ŕpr.'l$31N\x0⃸şb:R>/&w6__~@ɵf3QL)i#-K&۱d4mKK)֖FmY齀f(F슨w×?>"P hlz ( Z+EO &YXM~PiHUdO_ݮ~Q^}z{ȟTn%i,)xG8'ߟ}qO6N'eT-tG%lXpĴ>GNwe 5Ie NN+m8]qv7>yU'lp?y}wNGJȳpɫo^$ڣ WJe\^u_9yjx)N6%ٜSsc;5gVҮVw¨7_]*FЪVmi5t#ZU~dvq$JmJ/@Bu4UPVUA.PMlB} O,_C#Z?䷓'k wQ#)T/g]VmY*BZӻ17Oe;k/?361{կoP'/UAm`P endstream endobj 145 0 obj << /Producer (pdfTeX-1.40.20) /Author(Wolfgang Viechtbauer)/Title(mathjaxr: Using 'Mathjax' in Rd Files)/Subject()/Creator(LaTeX with hyperref)/Keywords() /CreationDate (D:20250430113047+02'00') /ModDate (D:20250430113047+02'00') /Trapped /False /PTEX.Fullbanner (This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) kpathsea version 6.3.1) >> endobj 134 0 obj << /Type /ObjStm /N 25 /First 198 /Length 1002 /Filter /FlateDecode >> stream xڭmoFSˣQ^t:)!@ҖTʁ=p 6%m)oBf<;ߌwg`CPF  8ꂴ,`ec cP 6h@0/DHqm|P j!@E -Aµ:ZSA9QJW?_05)L$y'J?zt7 l#R"vi!8I{k?F(AetY/'xZE][%qEN@.ڲmvO .M'Tuz4TNY]Rʓ.oLY(SY|{כGg`Oh;|A Fc1Y}Wlp-pv:ܛ\jpZ[r&=vpw3~haػ|y#.?pڶP6G& h?87~2~Wh͉Ra=`|;"[2+[5>ΔAM5qan<xx?V܎l<,tYWpˑ>'VVa>]EiivIX٦h;%-J6R"ya Қ![v9Q3oI{Qd=~5]o'_{cd7xG˪!j-e..UOERt]JyE֯}X@~[J[ED!" u.֝)d݉nc+q ׇ6֭3]@|Ю'ԻI+ طiSo-&j>}n'֛ NzD(cqIqxӐwpy!{a|Z+n-Of+5ʜ%uBTxcA_ endstream endobj 146 0 obj << /Type /XRef /Index [0 147] /Size 147 /W [1 3 1] /Root 144 0 R /Info 145 0 R /ID [ ] /Length 354 /Filter /FlateDecode >> stream x%7RA@#{/<>qn@N $@)!UIzkTx"~DžT (* ΖCK A!A1 ePP*+2 JBTCC7tBJ0akq?wgm.p```Fa a&a aU_ּ˰p*OVr*Tf,[:U}Y:S/i8X؜2pc,\z[Q/!6# endstream endobj startxref 136273 %%EOF mathjaxr/man/0000755000176200001440000000000014207127734012652 5ustar liggesusersmathjaxr/man/preview_rd.Rd0000644000176200001440000000552014207130230015272 0ustar liggesusers\name{preview_rd} \alias{preview_rd} \title{Preview rendered version of an Rd file} \description{ Function to preview the rendered version of an Rd file. } \usage{ preview_rd(Rdfile, view = TRUE, type = "html", verbose = FALSE, dark = FALSE, \dots) } \arguments{ \item{Rdfile}{character string with the name of the Rd file to preview (either with or without the \code{.Rd} or \code{.rd} extension).} \item{view}{logical indicating whether the rendered version of the help file should be displayed.} \item{type}{character string indicating which version should be rendered (either \code{"html"}, \code{"txt"}/\code{"text"}, or \code{"pdf"}).} \item{verbose}{logical indicating whether diagnostic output will be shown.} \item{dark}{logical indicating whether the rendererd HTML page should use a dark mode.} \item{\dots}{other arguments.} } \details{ The function is useful when writing a help file that contains MathJax equations. Instead of having to reinstall the package under development to check if the equations are being rendered correctly, one can just set the current working directory to the root of the package (or its \code{man} directory) and then use \code{preview_rd()} to preview the HTML, plain-text, or PDF version of an Rd file on the fly. For \code{type="html"}, the HTML page will be opened in the browser with the \code{\link{browseURL}} function. When making further changes to the Rd file, reopening the page each time with \code{preview_rd()} is inconvenient as this will usually open up a new tab in the browser. Setting \code{view=FALSE} prevents this. Reloading the page in the open tab should then reflect the updates. In RStudio, the generated HTML version will be displayed in the \sQuote{Viewer} pane and the \code{view} argument is then irrelevant. Setting \code{dark=TRUE} (in combination with \code{type="html"}) renders the HTML page in dark mode. Unfortunately, this does not work in RStudio. For \code{type="txt"} (or \code{type="text"}), the plain-text version of the help file will be shown (using the \code{\link{file.show}} function and directly on the console in RStudio). For \code{type="pdf"}, the PDF is generated using \command{R CMD Rd2pdf} and should open up in the default PDF viewer. } \note{ Any links to local help pages used in the Rd file to preview will be shown in the rendered HTML or PDF help file, but are non-functional. Due to some limitations as to how MathJax can be loaded via the \pkg{mathjaxr} package, MathJax must be loaded via the CDN when using the \code{preview_rd()} function. Hence, rendering of equations in HTML will only work in the preview with an active internet connection. } \author{ Wolfgang Viechtbauer \email{wvb@wvbauer.com} \url{https://www.wvbauer.com/} } \examples{ \dontrun{ setwd("/path/to/root/of/package") preview_rd("someRdfile") } } \keyword{utilities} mathjaxr/man/macros/0000755000176200001440000000000014144301562014127 5ustar liggesusersmathjaxr/man/macros/mathjax.Rd0000644000176200001440000000507314144301562016057 0ustar liggesusers% macro to load MathJax %\newcommand{\loadmathjax}{\if{html}{\Sexpr[results=rd,stage=render]{if (nchar(system.file("doc/mathjax/es5/tex-chtml-full.js", package="mathjaxr")) && !nzchar(Sys.getenv("MATHJAXR_USECDN"))) '\\\\\\out{}' else '\\\\\\out{}'}}} %\newcommand{\loadmathjax}{\if{html}{\Sexpr[results=rd,stage=render]{MATHJAXR_USECDN <- Sys.getenv("MATHJAXR_USECDN"); MATHJAXR_CDN <- Sys.getenv("MATHJAXR_CDN"); if (!nzchar(MATHJAXR_CDN)) MATHJAXR_CDN <- "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js"; PATH <- system.file('doc/mathjax/es5/tex-chtml-full.js', package='mathjaxr'); TEXT <- paste0("if (nchar(\"", PATH, "\") && !nzchar(\"", MATHJAXR_USECDN, "\")) '\\\\\\\\\\\\\\out{}' else '\\\\\\\\\\\\\\out{}'"); eval(str2expression(TEXT))}}} \newcommand{\loadmathjax}{\if{html}{\Sexpr[results=rd,stage=render]{MATHJAXR_USECDN <- Sys.getenv("MATHJAXR_USECDN"); MATHJAXR_CDN <- Sys.getenv("MATHJAXR_CDN"); if (!nzchar(MATHJAXR_CDN)) MATHJAXR_CDN <- "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js"; PATH <- system.file("doc/mathjax/es5/tex-chtml-full.js", package="mathjaxr"); if (nchar(PATH) && !nzchar(MATHJAXR_USECDN)) '\\\\\\out{}' else paste0('\\\\\\out{}')}}} % two-argument macros \mjeqn{latex}{ascii} and \mjdeqn{latex}{ascii} \newcommand{\mjeqn}{\ifelse{html}{\emph{}\out{\(#1\)}}{\eqn{#1}{#2}}} \newcommand{\mjdeqn}{\ifelse{html}{\out{\[#1\]}}{\deqn{#1}{#2}}} % single-argument macros \mjseqn{latexascii} and \mjsdeqn{latexascii} \newcommand{\mjseqn}{\ifelse{html}{\emph{}\out{\(#1\)}}{\eqn{#1}}} \newcommand{\mjsdeqn}{\ifelse{html}{\out{\[#1\]}}{\deqn{#1}}} % tripple-argument macros \mjteqn{pdflatex}{htmllatex}{ascii} and \mjtdeqn{pdflatex}{htmllatex}{ascii} % \newcommand{\mjteqn}{\ifelse{latex}{\eqn{#1}}{\ifelse{html}{\out{\(#2\)}}{\eqn{#3}}}} % \newcommand{\mjtdeqn}{\ifelse{latex}{\deqn{#1}}{\ifelse{html}{\out{\[#2\]}}{\deqn{#3}}}} \newcommand{\mjteqn}{\if{latex}{\eqn{#1}}\if{html}{\emph{}\out{\(#2\)}}\if{text}{\eqn{#3}}} \newcommand{\mjtdeqn}{\if{latex}{\deqn{#1}}\if{html}{\out{\[#2\]}}\if{text}{\deqn{#3}}} mathjaxr/man/mathjaxr-package.Rd0000644000176200001440000001207314643207657016362 0ustar liggesusers\name{mathjaxr-package} \alias{mathjaxr-package} \alias{mathjaxr} \docType{package} \title{Using MathJax in Rd Files} \description{ \loadmathjax The \pkg{mathjaxr} package allows for easy inclusion of \href{https://www.mathjax.org/}{MathJax} equations in Rd files. Package authors wanting to make use of the package and its functionality need to: \enumerate{ \item install the \pkg{mathjaxr} package, \item add \verb{mathjaxr} to \verb{Imports} in the \file{DESCRIPTION} file of their package, \item add \verb{mathjaxr} to \verb{RdMacros} in the \file{DESCRIPTION} file of their package (or add \verb{RdMacros: mathjaxr} if the \file{DESCRIPTION} file does not yet contain a \verb{RdMacros} entry), \item add \verb{BuildManual: TRUE} to the \file{DESCRIPTION} file, \item add \verb{import(mathjaxr)} in the \file{NAMESPACE} file of their package. } One can then enable the use of MathJax by calling the \code{\\loadmathjax} macro (that is provided by the \pkg{mathjaxr} package) within the \verb{\\description{}} section of an Rd file (or within the \verb{@description} section when using \pkg{roxygen2}). An inline equation can then be added with the \code{\\mjeqn{latex}{ascii}} macro, with the \LaTeX commands for the equation given between the first set of curly brackets (which will be rendered in the HTML and PDF help pages) and the plain-text version of the equation given between the second set of curly brackets (which will be shown in the plain text help). With the \code{\\mjdeqn{latex}{ascii}} macro, one can add \sQuote{displayed equations} (as in \LaTeX's \code{displaymath} environment). Single argument versions of these macros, \code{\\mjseqn{latexascii}} and \code{\\mjsdeqn{latexascii}}, are also available. For the relatively rare case that one must specify different \LaTeX commands for the PDF and HTML pages, there are also triple argument versions of these macros, namely \code{\\mjteqn{pdflatex}{htmllatex}{ascii}} and \code{\\mjtdeqn{pdflatex}{htmllatex}{ascii}}. } \details{ The Javascript code for MathJax is contained in this package. If a user viewing a help page has \pkg{mathjaxr} installed, it will be retrieved from there, otherwise it will be retrieved from the CDN site \url{https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js}. To force use of the CDN site, the user can set the environment variable \env{MATHJAXR_USECDN} to any non-blank value (e.g., \code{Sys.setenv(MATHJAXR_USECDN=TRUE)}). The URL for a diferent CDN can be specified via the environment variable \env{MATHJAXR_CDN}. } \section{Notes/Issues}{ \itemize{ \item Care must be taken when using the less-than and greater-than symbols in equations as these might get interpreted by the browser as HTML tags. See \href{https://docs.mathjax.org/en/latest/input/tex/html.html}{here} for further details. Adding space around these symbols should solve this problem (e.g., instead of writing \code{\\mjseqn{i) Maintainer: Wolfgang Viechtbauer Repository: CRAN Date/Publication: 2025-04-30 10:10:02 UTC