「MathJaxをデバッグしてJavaScriptの理解を深める ページ4」の版間の差分

提供:yonewiki
9行目: 9行目:
=== __webpack_modules__[2388].call(r.exports, r, r.exports, __webpack_require__) ===
=== __webpack_modules__[2388].call(r.exports, r, r.exports, __webpack_require__) ===
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
2388: function(t, e, r) {
2388: function(t, e, r) {
var n = this && this.__assign || function() {
  var n = this && this.__assign || function() {
return n = Object.assign || function(t) {
      return n = Object.assign || function(t) {
for(var e, r = 1, n = arguments.length; r < n; r++)
        for(var e, r = 1, n = arguments.length; r < n; r++)
for(var o in e = arguments[r]) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
          for(var o in e = arguments[r]) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
return t
        return t
}, n.apply(this, arguments)
      }, n.apply(this, arguments)
},
    },
o = this && this.__values || function(t) {
    o = this && this.__values || function(t) {
var e = "function" == typeof Symbol && Symbol.iterator,
      var e = "function" == typeof Symbol && Symbol.iterator,
r = e && t[e],
        r = e && t[e],
n = 0;
        n = 0;
if(r) return r.call(t);
      if(r) return r.call(t);
if(t && "number" == typeof t.length) return {
      if(t && "number" == typeof t.length) return {
next: function() {
        next: function() {
return t && n >= t.length && (t = void 0), {
          return t && n >= t.length && (t = void 0), {
value: t && t[n++],
            value: t && t[n++],
done: !t
            done: !t
}
          }
}
        }
};
      };
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.")
      throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.")
},
    },
i = this && this.__read || function(t, e) {
    i = this && this.__read || function(t, e) {
var r = "function" == typeof Symbol && t[Symbol.iterator];
      var r = "function" == typeof Symbol && t[Symbol.iterator];
if(!r) return t;
      if(!r) return t;
var n, o, i = r.call(t),
      var n, o, i = r.call(t),
s = [];
        s = [];
try {
      try {
for(;
        for(;
(void 0 === e || e-- > 0) && !(n = i.next()).done;) s.push(n.value)
          (void 0 === e || e-- > 0) && !(n = i.next()).done;) s.push(n.value)
} catch(t) {
      } catch(t) {
o = {
        o = {
error: t
          error: t
}
        }
} finally {
      } finally {
try {
        try {
n && !n.done && (r = i.return) && r.call(i)
          n && !n.done && (r = i.return) && r.call(i)
} finally {
        } finally {
if(o) throw o.error
          if(o) throw o.error
}
        }
}
      }
return s
      return s
},
    },
s = this && this.__spreadArray || function(t, e, r) {
    s = this && this.__spreadArray || function(t, e, r) {
if(r || 2 === arguments.length)
      if(r || 2 === arguments.length)
for(var n, o = 0, i = e.length; o < i; o++) !n && o in e || (n || (n = Array.prototype.slice.call(e, 0, o)), n[o] = e[o]);
        for(var n, o = 0, i = e.length; o < i; o++) !n && o in e || (n || (n = Array.prototype.slice.call(e, 0, o)), n[o] = e[o]);
return t.concat(n || Array.prototype.slice.call(e))
      return t.concat(n || Array.prototype.slice.call(e))
};
    };
Object.defineProperty(e, "__esModule", {
  Object.defineProperty(e, "__esModule", {
value: !0
    value: !0
}), e.CONFIG = e.MathJax = e.Startup = void 0;
  }), e.CONFIG = e.MathJax = e.Startup = void 0;
var a, l = r(9515),
  var a, l = r(9515),
c = r(8666),
    c = r(8666),
u = r(7233);
    u = r(7233);
! function(t) {
  ! function(t) {
var a, l, u = new c.PrioritizedList;
    var a, l, u = new c.PrioritizedList;


function h(e) {
    function h(e) {
return a.visitTree(e, t.document)
      return a.visitTree(e, t.document)
}
    }


function f() {
    function f() {
a = new e.MathJax._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor, l = e.MathJax._.mathjax.mathjax, t.input = v(), t.output = _(), t.adaptor = S(), t.handler && l.handlers.unregister(t.handler), t.handler = M(), t.handler && (l.handlers.register(t.handler), t.document = O())
      a = new e.MathJax._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor, l = e.MathJax._.mathjax.mathjax, t.input = v(), t.output = _(), t.adaptor = S(), t.handler && l.handlers.unregister(t.handler), t.handler = M(), t.handler && (l.handlers.register(t.handler), t.document = O())
}
    }


function d() {
    function d() {
var e, r;
      var e, r;
t.input && t.output && m();
      t.input && t.output && m();
var n = t.output ? t.output.name.toLowerCase() : "";
      var n = t.output ? t.output.name.toLowerCase() : "";
try {
      try {
for(var i = o(t.input), s = i.next(); !s.done; s = i.next()) {
        for(var i = o(t.input), s = i.next(); !s.done; s = i.next()) {
var a = s.value,
          var a = s.value,
l = a.name.toLowerCase();
            l = a.name.toLowerCase();
g(l, a), b(l, a), t.output && y(l, n, a)
          g(l, a), b(l, a), t.output && y(l, n, a)
}
        }
} catch(t) {
      } catch(t) {
e = {
        e = {
error: t
          error: t
}
        }
} finally {
      } finally {
try {
        try {
s && !s.done && (r = i.return) && r.call(i)
          s && !s.done && (r = i.return) && r.call(i)
} finally {
        } finally {
if(e) throw e.error
          if(e) throw e.error
}
        }
}
      }
}
    }


function m() {
    function m() {
e.MathJax.typeset = function(e) {
      e.MathJax.typeset = function(e) {
void 0 === e && (e = null), t.document.options.elements = e, t.document.reset(), t.document.render()
        void 0 === e && (e = null), t.document.options.elements = e, t.document.reset(), t.document.render()
}, e.MathJax.typesetPromise = function(e) {
      }, e.MathJax.typesetPromise = function(e) {
return void 0 === e && (e = null), t.document.options.elements = e, t.document.reset(), l.handleRetriesFor((function() {
        return void 0 === e && (e = null), t.document.options.elements = e, t.document.reset(), l.handleRetriesFor((function() {
t.document.render()
          t.document.render()
}))
        }))
}, e.MathJax.typesetClear = function(e) {
      }, e.MathJax.typesetClear = function(e) {
void 0 === e && (e = null), e ? t.document.clearMathItemsWithin(e) : t.document.clear()
        void 0 === e && (e = null), e ? t.document.clearMathItemsWithin(e) : t.document.clear()
}
      }
}
    }


function y(r, n, o) {
    function y(r, n, o) {
var i = r + "2" + n;
      var i = r + "2" + n;
e.MathJax[i] = function(e, r) {
      e.MathJax[i] = function(e, r) {
return void 0 === r && (r = {}), r.format = o.name, t.document.convert(e, r)
        return void 0 === r && (r = {}), r.format = o.name, t.document.convert(e, r)
}, e.MathJax[i + "Promise"] = function(e, r) {
      }, e.MathJax[i + "Promise"] = function(e, r) {
return void 0 === r && (r = {}), r.format = o.name, l.handleRetriesFor((function() {
        return void 0 === r && (r = {}), r.format = o.name, l.handleRetriesFor((function() {
return t.document.convert(e, r)
          return t.document.convert(e, r)
}))
        }))
}, e.MathJax[n + "Stylesheet"] = function() {
      }, e.MathJax[n + "Stylesheet"] = function() {
return t.output.styleSheet(t.document)
        return t.output.styleSheet(t.document)
}, "getMetricsFor" in t.output && (e.MathJax.getMetricsFor = function(e, r) {
      }, "getMetricsFor" in t.output && (e.MathJax.getMetricsFor = function(e, r) {
return t.output.getMetricsFor(e, r)
        return t.output.getMetricsFor(e, r)
})
      })
}
    }


function g(r, n) {
    function g(r, n) {
var o = e.MathJax._.core.MathItem.STATE;
      var o = e.MathJax._.core.MathItem.STATE;
e.MathJax[r + "2mml"] = function(e, r) {
      e.MathJax[r + "2mml"] = function(e, r) {
return void 0 === r && (r = {}), r.end = o.CONVERT, r.format = n.name, h(t.document.convert(e, r))
        return void 0 === r && (r = {}), r.end = o.CONVERT, r.format = n.name, h(t.document.convert(e, r))
}, e.MathJax[r + "2mmlPromise"] = function(e, r) {
      }, e.MathJax[r + "2mmlPromise"] = function(e, r) {
return void 0 === r && (r = {}), r.end = o.CONVERT, r.format = n.name, l.handleRetriesFor((function() {
        return void 0 === r && (r = {}), r.end = o.CONVERT, r.format = n.name, l.handleRetriesFor((function() {
return h(t.document.convert(e, r))
          return h(t.document.convert(e, r))
}))
        }))
}
      }
}
    }


function b(t, r) {
    function b(t, r) {
e.MathJax[t + "Reset"] = function() {
      e.MathJax[t + "Reset"] = function() {
for(var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
        for(var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
return r.reset.apply(r, s([], i(t), !1))
        return r.reset.apply(r, s([], i(t), !1))
}
      }
}
    }


function v() {
    function v() {
var r, n, i = [];
      var r, n, i = [];
try {
      try {
for(var s = o(e.CONFIG.input), a = s.next(); !a.done; a = s.next()) {
        for(var s = o(e.CONFIG.input), a = s.next(); !a.done; a = s.next()) {
var l = a.value,
          var l = a.value,
c = t.constructors[l];
            c = t.constructors[l];
if(!c) throw Error('Input Jax "' + l + '" is not defined (has it been loaded?)');
          if(!c) throw Error('Input Jax "' + l + '" is not defined (has it been loaded?)');
i.push(new c(e.MathJax.config[l]))
          i.push(new c(e.MathJax.config[l]))
}
        }
} catch(t) {
      } catch(t) {
r = {
        r = {
error: t
          error: t
}
        }
} finally {
      } finally {
try {
        try {
a && !a.done && (n = s.return) && n.call(s)
          a && !a.done && (n = s.return) && n.call(s)
} finally {
        } finally {
if(r) throw r.error
          if(r) throw r.error
}
        }
}
      }
return i
      return i
}
    }


function _() {
    function _() {
var r = e.CONFIG.output;
      var r = e.CONFIG.output;
if(!r) return null;
      if(!r) return null;
var n = t.constructors[r];
      var n = t.constructors[r];
if(!n) throw Error('Output Jax "' + r + '" is not defined (has it been loaded?)');
      if(!n) throw Error('Output Jax "' + r + '" is not defined (has it been loaded?)');
return new n(e.MathJax.config[r])
      return new n(e.MathJax.config[r])
}
    }


function S() {
    function S() {
var r = e.CONFIG.adaptor;
      var r = e.CONFIG.adaptor;
if(!r || "none" === r) return null;
      if(!r || "none" === r) return null;
var n = t.constructors[r];
      var n = t.constructors[r];
if(!n) throw Error('DOMAdaptor "' + r + '" is not defined (has it been loaded?)');
      if(!n) throw Error('DOMAdaptor "' + r + '" is not defined (has it been loaded?)');
return n(e.MathJax.config[r])
      return n(e.MathJax.config[r])
}
    }


function M() {
    function M() {
var r, n, i = e.CONFIG.handler;
      var r, n, i = e.CONFIG.handler;
if(!i || "none" === i || !t.adaptor) return null;
      if(!i || "none" === i || !t.adaptor) return null;
var s = t.constructors[i];
      var s = t.constructors[i];
if(!s) throw Error('Handler "' + i + '" is not defined (has it been loaded?)');
      if(!s) throw Error('Handler "' + i + '" is not defined (has it been loaded?)');
var a = new s(t.adaptor, 5);
      var a = new s(t.adaptor, 5);
try {
      try {
for(var l = o(u), c = l.next(); !c.done; c = l.next()) {
        for(var l = o(u), c = l.next(); !c.done; c = l.next()) {
a = c.value.item(a)
          a = c.value.item(a)
}
        }
} catch(t) {
      } catch(t) {
r = {
        r = {
error: t
          error: t
}
        }
} finally {
      } finally {
try {
        try {
c && !c.done && (n = l.return) && n.call(l)
          c && !c.done && (n = l.return) && n.call(l)
} finally {
        } finally {
if(r) throw r.error
          if(r) throw r.error
}
        }
}
      }
return a
      return a
}
    }


function O(r) {
    function O(r) {
return void 0 === r && (r = null), l.document(r || e.CONFIG.document, n(n({}, e.MathJax.config.options), {
      return void 0 === r && (r = null), l.document(r || e.CONFIG.document, n(n({}, e.MathJax.config.options), {
InputJax: t.input,
        InputJax: t.input,
OutputJax: t.output
        OutputJax: t.output
}))
      }))
}
    }
t.constructors = {}, t.input = [], t.output = null, t.handler = null, t.adaptor = null, t.elements = null, t.document = null, t.promise = new Promise((function(e, r) {
    t.constructors = {}, t.input = [], t.output = null, t.handler = null, t.adaptor = null, t.elements = null, t.document = null, t.promise = new Promise((function(e, r) {
t.promiseResolve = e, t.promiseReject = r
      t.promiseResolve = e, t.promiseReject = r
})), t.pagePromise = new Promise((function(t, e) {
    })), t.pagePromise = new Promise((function(t, e) {
var n = r.g.document;
      var n = r.g.document;
if(n && n.readyState && "complete" !== n.readyState && "interactive" !== n.readyState) {
      if(n && n.readyState && "complete" !== n.readyState && "interactive" !== n.readyState) {
var o = function() {
        var o = function() {
return t()
          return t()
};
        };
n.defaultView.addEventListener("load", o, !0), n.defaultView.addEventListener("DOMContentLoaded", o, !0)
        n.defaultView.addEventListener("load", o, !0), n.defaultView.addEventListener("DOMContentLoaded", o, !0)
} else t()
      } else t()
})), t.toMML = h, t.registerConstructor = function(e, r) {
    })), t.toMML = h, t.registerConstructor = function(e, r) {
t.constructors[e] = r
      t.constructors[e] = r
}, t.useHandler = function(t, r) {
    }, t.useHandler = function(t, r) {
void 0 === r && (r = !1), e.CONFIG.handler && !r || (e.CONFIG.handler = t)
      void 0 === r && (r = !1), e.CONFIG.handler && !r || (e.CONFIG.handler = t)
}, t.useAdaptor = function(t, r) {
    }, t.useAdaptor = function(t, r) {
void 0 === r && (r = !1), e.CONFIG.adaptor && !r || (e.CONFIG.adaptor = t)
      void 0 === r && (r = !1), e.CONFIG.adaptor && !r || (e.CONFIG.adaptor = t)
}, t.useInput = function(t, r) {
    }, t.useInput = function(t, r) {
void 0 === r && (r = !1), p && !r || e.CONFIG.input.push(t)
      void 0 === r && (r = !1), p && !r || e.CONFIG.input.push(t)
}, t.useOutput = function(t, r) {
    }, t.useOutput = function(t, r) {
void 0 === r && (r = !1), e.CONFIG.output && !r || (e.CONFIG.output = t)
      void 0 === r && (r = !1), e.CONFIG.output && !r || (e.CONFIG.output = t)
}, t.extendHandler = function(t, e) {
    }, t.extendHandler = function(t, e) {
void 0 === e && (e = 10), u.add(t, e)
      void 0 === e && (e = 10), u.add(t, e)
}, t.defaultReady = function() {
    }, t.defaultReady = function() {
f(), d(), t.pagePromise.then((function() {
      f(), d(), t.pagePromise.then((function() {
return e.CONFIG.pageReady()
        return e.CONFIG.pageReady()
})).then((function() {
      })).then((function() {
return t.promiseResolve()
        return t.promiseResolve()
})).catch((function(e) {
      })).catch((function(e) {
return t.promiseReject(e)
        return t.promiseReject(e)
}))
      }))
}, t.defaultPageReady = function() {
    }, t.defaultPageReady = function() {
return e.CONFIG.typeset && e.MathJax.typesetPromise ? e.MathJax.typesetPromise(e.CONFIG.elements) : Promise.resolve()
      return e.CONFIG.typeset && e.MathJax.typesetPromise ? e.MathJax.typesetPromise(e.CONFIG.elements) : Promise.resolve()
}, t.getComponents = f, t.makeMethods = d, t.makeTypesetMethods = m, t.makeOutputMethods = y, t.makeMmlMethods = g, t.makeResetMethod = b, t.getInputJax = v, t.getOutputJax = _, t.getAdaptor = S, t.getHandler = M, t.getDocument = O
    }, t.getComponents = f, t.makeMethods = d, t.makeTypesetMethods = m, t.makeOutputMethods = y, t.makeMmlMethods = g, t.makeResetMethod = b, t.getInputJax = v, t.getOutputJax = _, t.getAdaptor = S, t.getHandler = M, t.getDocument = O
}(a = e.Startup || (e.Startup = {})), e.MathJax = l.MathJax, void 0 === e.MathJax._.startup && ((0, l.combineDefaults)(e.MathJax.config, "startup", {
  }(a = e.Startup || (e.Startup = {})), e.MathJax = l.MathJax, void 0 === e.MathJax._.startup && ((0, l.combineDefaults)(e.MathJax.config, "startup", {
input: [],
    input: [],
output: "",
    output: "",
handler: null,
    handler: null,
adaptor: null,
    adaptor: null,
document: "undefined" == typeof document ? "" : document,
    document: "undefined" == typeof document ? "" : document,
elements: null,
    elements: null,
typeset: !0,
    typeset: !0,
ready: a.defaultReady.bind(a),
    ready: a.defaultReady.bind(a),
pageReady: a.defaultPageReady.bind(a)
    pageReady: a.defaultPageReady.bind(a)
}), (0, l.combineWithMathJax)({
  }), (0, l.combineWithMathJax)({
startup: a,
    startup: a,
options: {}
    options: {}
}), e.MathJax.config.startup.invalidOption && (u.OPTIONS.invalidOption = e.MathJax.config.startup.invalidOption), e.MathJax.config.startup.optionError && (u.OPTIONS.optionError = e.MathJax.config.startup.optionError)), e.CONFIG = e.MathJax.config.startup;
  }), e.MathJax.config.startup.invalidOption && (u.OPTIONS.invalidOption = e.MathJax.config.startup.invalidOption), e.MathJax.config.startup.optionError && (u.OPTIONS.optionError = e.MathJax.config.startup.optionError)), e.CONFIG = e.MathJax.config.startup;
var p = 0 !== e.CONFIG.input.length
  var p = 0 !== e.CONFIG.input.length
},
},
</syntaxhighlight>
</syntaxhighlight>



2022年12月1日 (木) 18:20時点における版

VScodeで簡易WebServerの元でデバッグに戻る。

概要

 MathJaxをデバッグしてJavaScriptの理解を深める ページ2の続きです。

[1] [2] [3] [4]

 

__webpack_modules__[2388].call(r.exports, r, r.exports, __webpack_require__)

2388: function(t, e, r) {
  var n = this && this.__assign || function() {
      return n = Object.assign || function(t) {
        for(var e, r = 1, n = arguments.length; r < n; r++)
          for(var o in e = arguments[r]) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
        return t
      }, n.apply(this, arguments)
    },
    o = this && this.__values || function(t) {
      var e = "function" == typeof Symbol && Symbol.iterator,
        r = e && t[e],
        n = 0;
      if(r) return r.call(t);
      if(t && "number" == typeof t.length) return {
        next: function() {
          return t && n >= t.length && (t = void 0), {
            value: t && t[n++],
            done: !t
          }
        }
      };
      throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.")
    },
    i = this && this.__read || function(t, e) {
      var r = "function" == typeof Symbol && t[Symbol.iterator];
      if(!r) return t;
      var n, o, i = r.call(t),
        s = [];
      try {
        for(;
          (void 0 === e || e-- > 0) && !(n = i.next()).done;) s.push(n.value)
      } catch(t) {
        o = {
          error: t
        }
      } finally {
        try {
          n && !n.done && (r = i.return) && r.call(i)
        } finally {
          if(o) throw o.error
        }
      }
      return s
    },
    s = this && this.__spreadArray || function(t, e, r) {
      if(r || 2 === arguments.length)
        for(var n, o = 0, i = e.length; o < i; o++) !n && o in e || (n || (n = Array.prototype.slice.call(e, 0, o)), n[o] = e[o]);
      return t.concat(n || Array.prototype.slice.call(e))
    };
  Object.defineProperty(e, "__esModule", {
    value: !0
  }), e.CONFIG = e.MathJax = e.Startup = void 0;
  var a, l = r(9515),
    c = r(8666),
    u = r(7233);
  ! function(t) {
    var a, l, u = new c.PrioritizedList;

    function h(e) {
      return a.visitTree(e, t.document)
    }

    function f() {
      a = new e.MathJax._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor, l = e.MathJax._.mathjax.mathjax, t.input = v(), t.output = _(), t.adaptor = S(), t.handler && l.handlers.unregister(t.handler), t.handler = M(), t.handler && (l.handlers.register(t.handler), t.document = O())
    }

    function d() {
      var e, r;
      t.input && t.output && m();
      var n = t.output ? t.output.name.toLowerCase() : "";
      try {
        for(var i = o(t.input), s = i.next(); !s.done; s = i.next()) {
          var a = s.value,
            l = a.name.toLowerCase();
          g(l, a), b(l, a), t.output && y(l, n, a)
        }
      } catch(t) {
        e = {
          error: t
        }
      } finally {
        try {
          s && !s.done && (r = i.return) && r.call(i)
        } finally {
          if(e) throw e.error
        }
      }
    }

    function m() {
      e.MathJax.typeset = function(e) {
        void 0 === e && (e = null), t.document.options.elements = e, t.document.reset(), t.document.render()
      }, e.MathJax.typesetPromise = function(e) {
        return void 0 === e && (e = null), t.document.options.elements = e, t.document.reset(), l.handleRetriesFor((function() {
          t.document.render()
        }))
      }, e.MathJax.typesetClear = function(e) {
        void 0 === e && (e = null), e ? t.document.clearMathItemsWithin(e) : t.document.clear()
      }
    }

    function y(r, n, o) {
      var i = r + "2" + n;
      e.MathJax[i] = function(e, r) {
        return void 0 === r && (r = {}), r.format = o.name, t.document.convert(e, r)
      }, e.MathJax[i + "Promise"] = function(e, r) {
        return void 0 === r && (r = {}), r.format = o.name, l.handleRetriesFor((function() {
          return t.document.convert(e, r)
        }))
      }, e.MathJax[n + "Stylesheet"] = function() {
        return t.output.styleSheet(t.document)
      }, "getMetricsFor" in t.output && (e.MathJax.getMetricsFor = function(e, r) {
        return t.output.getMetricsFor(e, r)
      })
    }

    function g(r, n) {
      var o = e.MathJax._.core.MathItem.STATE;
      e.MathJax[r + "2mml"] = function(e, r) {
        return void 0 === r && (r = {}), r.end = o.CONVERT, r.format = n.name, h(t.document.convert(e, r))
      }, e.MathJax[r + "2mmlPromise"] = function(e, r) {
        return void 0 === r && (r = {}), r.end = o.CONVERT, r.format = n.name, l.handleRetriesFor((function() {
          return h(t.document.convert(e, r))
        }))
      }
    }

    function b(t, r) {
      e.MathJax[t + "Reset"] = function() {
        for(var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
        return r.reset.apply(r, s([], i(t), !1))
      }
    }

    function v() {
      var r, n, i = [];
      try {
        for(var s = o(e.CONFIG.input), a = s.next(); !a.done; a = s.next()) {
          var l = a.value,
            c = t.constructors[l];
          if(!c) throw Error('Input Jax "' + l + '" is not defined (has it been loaded?)');
          i.push(new c(e.MathJax.config[l]))
        }
      } catch(t) {
        r = {
          error: t
        }
      } finally {
        try {
          a && !a.done && (n = s.return) && n.call(s)
        } finally {
          if(r) throw r.error
        }
      }
      return i
    }

    function _() {
      var r = e.CONFIG.output;
      if(!r) return null;
      var n = t.constructors[r];
      if(!n) throw Error('Output Jax "' + r + '" is not defined (has it been loaded?)');
      return new n(e.MathJax.config[r])
    }

    function S() {
      var r = e.CONFIG.adaptor;
      if(!r || "none" === r) return null;
      var n = t.constructors[r];
      if(!n) throw Error('DOMAdaptor "' + r + '" is not defined (has it been loaded?)');
      return n(e.MathJax.config[r])
    }

    function M() {
      var r, n, i = e.CONFIG.handler;
      if(!i || "none" === i || !t.adaptor) return null;
      var s = t.constructors[i];
      if(!s) throw Error('Handler "' + i + '" is not defined (has it been loaded?)');
      var a = new s(t.adaptor, 5);
      try {
        for(var l = o(u), c = l.next(); !c.done; c = l.next()) {
          a = c.value.item(a)
        }
      } catch(t) {
        r = {
          error: t
        }
      } finally {
        try {
          c && !c.done && (n = l.return) && n.call(l)
        } finally {
          if(r) throw r.error
        }
      }
      return a
    }

    function O(r) {
      return void 0 === r && (r = null), l.document(r || e.CONFIG.document, n(n({}, e.MathJax.config.options), {
        InputJax: t.input,
        OutputJax: t.output
      }))
    }
    t.constructors = {}, t.input = [], t.output = null, t.handler = null, t.adaptor = null, t.elements = null, t.document = null, t.promise = new Promise((function(e, r) {
      t.promiseResolve = e, t.promiseReject = r
    })), t.pagePromise = new Promise((function(t, e) {
      var n = r.g.document;
      if(n && n.readyState && "complete" !== n.readyState && "interactive" !== n.readyState) {
        var o = function() {
          return t()
        };
        n.defaultView.addEventListener("load", o, !0), n.defaultView.addEventListener("DOMContentLoaded", o, !0)
      } else t()
    })), t.toMML = h, t.registerConstructor = function(e, r) {
      t.constructors[e] = r
    }, t.useHandler = function(t, r) {
      void 0 === r && (r = !1), e.CONFIG.handler && !r || (e.CONFIG.handler = t)
    }, t.useAdaptor = function(t, r) {
      void 0 === r && (r = !1), e.CONFIG.adaptor && !r || (e.CONFIG.adaptor = t)
    }, t.useInput = function(t, r) {
      void 0 === r && (r = !1), p && !r || e.CONFIG.input.push(t)
    }, t.useOutput = function(t, r) {
      void 0 === r && (r = !1), e.CONFIG.output && !r || (e.CONFIG.output = t)
    }, t.extendHandler = function(t, e) {
      void 0 === e && (e = 10), u.add(t, e)
    }, t.defaultReady = function() {
      f(), d(), t.pagePromise.then((function() {
        return e.CONFIG.pageReady()
      })).then((function() {
        return t.promiseResolve()
      })).catch((function(e) {
        return t.promiseReject(e)
      }))
    }, t.defaultPageReady = function() {
      return e.CONFIG.typeset && e.MathJax.typesetPromise ? e.MathJax.typesetPromise(e.CONFIG.elements) : Promise.resolve()
    }, t.getComponents = f, t.makeMethods = d, t.makeTypesetMethods = m, t.makeOutputMethods = y, t.makeMmlMethods = g, t.makeResetMethod = b, t.getInputJax = v, t.getOutputJax = _, t.getAdaptor = S, t.getHandler = M, t.getDocument = O
  }(a = e.Startup || (e.Startup = {})), e.MathJax = l.MathJax, void 0 === e.MathJax._.startup && ((0, l.combineDefaults)(e.MathJax.config, "startup", {
    input: [],
    output: "",
    handler: null,
    adaptor: null,
    document: "undefined" == typeof document ? "" : document,
    elements: null,
    typeset: !0,
    ready: a.defaultReady.bind(a),
    pageReady: a.defaultPageReady.bind(a)
  }), (0, l.combineWithMathJax)({
    startup: a,
    options: {}
  }), e.MathJax.config.startup.invalidOption && (u.OPTIONS.invalidOption = e.MathJax.config.startup.invalidOption), e.MathJax.config.startup.optionError && (u.OPTIONS.optionError = e.MathJax.config.startup.optionError)), e.CONFIG = e.MathJax.config.startup;
  var p = 0 !== e.CONFIG.input.length
},

 

ページ

 

関連情報

 MathJax

 

VScodeで簡易WebServerの元でデバッグに戻る。