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

提供:yonewiki
8行目: 8行目:
=== __webpack_modules__[265].call(r.exports, r, r.exports, __webpack_require__) ===
=== __webpack_modules__[265].call(r.exports, r, r.exports, __webpack_require__) ===
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
265: function(t, e, r) {
2388:  
var n, o = this && this.__extends || (n = function(t, e) {
function(t, e, r) {
  return n = Object.setPrototypeOf || {
  var n = this && this.__assign ||  
  __proto__: []
    function() {
  }
      return n = Object.assign ||
  instanceof Array && function(t, e) {
      function(t) {
  t.__proto__ = e
        for(var e, r = 1, n = arguments.length; r < n; r++)
  } || function(t, e) {
          for(var o in e = arguments[r])
  for(var r in e) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r])
            Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
  }, n(t, e)
        return t
}, function(t, e) {
      },
  if("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
      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 r() {
    function h(e) {
  this.constructor = t
      return a.visitTree(e, t.document)
  }
    }
  n(t, e), t.prototype = null === e ? Object.create(e) : (r.prototype = e.prototype, new r)
 
}),
    function f() {
i = this && this.__values || function(t) {
      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())
  var e = "function" == typeof Symbol && Symbol.iterator,
    }
  r = e && t[e],
 
  n = 0;
    function d() {
  if(r) return r.call(t);
      var e, r;
  if(t && "number" == typeof t.length) return {
      t.input && t.output && m();
  next: function() {
      var n = t.output ? t.output.name.toLowerCase() : "";
  return t && n >= t.length && (t = void 0), {
      try {
    value: t && t[n++],
        for(var i = o(t.input), s = i.next(); !s.done; s = i.next()) {
    done: !t
          var a = s.value,
  }
            l = a.name.toLowerCase();
  }
          g(l, a), b(l, a), t.output && y(l, n, a)
  };
        }
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.")
      } catch(t) {
},
        e = {
s = this && this.__read || function(t, e) {
          error: t
  var r = "function" == typeof Symbol && t[Symbol.iterator];
        }
  if(!r) return t;
      } finally {
  var n, o, i = r.call(t),
        try {
  s = [];
          s && !s.done && (r = i.return) && r.call(i)
  try {
        } finally {
  for(;
          if(e) throw e.error
  (void 0 === e || e-- > 0) && !(n = i.next()).done;) s.push(n.value)
        }
  } catch(t) {
      }
  o = {
    }
  error: t
 
  }
    function m() {
  } finally {
      e.MathJax.typeset = function(e) {
  try {
        void 0 === e && (e = null), t.document.options.elements = e, t.document.reset(), t.document.render()
  n && !n.done && (r = i.return) && r.call(i)
      }, e.MathJax.typesetPromise = function(e) {
  } finally {
        return void 0 === e && (e = null), t.document.options.elements = e, t.document.reset(), l.handleRetriesFor((function() {
  if(o) throw o.error
          t.document.render()
  }
        }))
  }
      }, e.MathJax.typesetClear = function(e) {
  return s
        void 0 === e && (e = null), e ? t.document.clearMathItemsWithin(e) : t.document.clear()
},
      }
a = 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]);
    function y(r, n, o) {
  return t.concat(n || Array.prototype.slice.call(e))
      var i = r + "2" + n;
};
      e.MathJax[i] = function(e, r) {
Object.defineProperty(e, "__esModule", {
        return void 0 === r && (r = {}), r.format = o.name, t.document.convert(e, r)
value: !0
      }, e.MathJax[i + "Promise"] = function(e, r) {
}), e.Package = e.PackageError = void 0;
        return void 0 === r && (r = {}), r.format = o.name, l.handleRetriesFor((function() {
var l = r(235),
          return t.document.convert(e, r)
c = function(t) {
        }))
  function e(e, r) {
      }, e.MathJax[n + "Stylesheet"] = function() {
  var n = t.call(this, e) || this;
        return t.output.styleSheet(t.document)
  return n.package = r, n
      }, "getMetricsFor" in t.output && (e.MathJax.getMetricsFor = function(e, r) {
  }
        return t.output.getMetricsFor(e, r)
  return o(e, t), e
      })
}(Error);
    }
e.PackageError = c;
 
var u = function() {
    function g(r, n) {
function t(e, r) {
      var o = e.MathJax._.core.MathItem.STATE;
  void 0 === r && (r = !1), this.isLoaded = !1, this.isLoading = !1, this.hasFailed = !1, this.dependents = [], this.dependencies = [], this.dependencyCount = 0, this.provided = [], this.name = e, this.noLoad = r, t.packages.set(e, this), this.promise = this.makePromise(this.makeDependencies())
      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 Object.defineProperty(t.prototype, "canLoad", {
      }, e.MathJax[r + "2mmlPromise"] = function(e, r) {
  get: function() {
        return void 0 === r && (r = {}), r.end = o.CONVERT, r.format = n.name, l.handleRetriesFor((function() {
  return 0 === this.dependencyCount && !this.noLoad && !this.isLoading && !this.hasFailed
          return h(t.document.convert(e, r))
  },
        }))
  enumerable: !1,
      }
  configurable: !0
    }
}), t.resolvePath = function(t, e) {
 
  void 0 === e && (e = !0);
    function b(t, r) {
  var r = {
      e.MathJax[t + "Reset"] = function() {
  name: t,
        for(var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  original: t,
        return r.reset.apply(r, s([], i(t), !1))
  addExtension: e
      }
  };
    }
  return l.Loader.pathFilters.execute(r), r.name
 
}, t.loadAll = function() {
    function v() {
  var t, e;
      var r, n, i = [];
  try {
      try {
  for(var r = i(this.packages.values()), n = r.next(); !n.done; n = r.next()) {
        for(var s = o(e.CONFIG.input), a = s.next(); !a.done; a = s.next()) {
  var o = n.value;
          var l = a.value,
  o.canLoad && o.load()
            c = t.constructors[l];
  }
          if(!c) throw Error('Input Jax "' + l + '" is not defined (has it been loaded?)');
  } catch(e) {
          i.push(new c(e.MathJax.config[l]))
  t = {
        }
  error: e
      } catch(t) {
  }
        r = {
  } finally {
          error: t
  try {
        }
  n && !n.done && (e = r.return) && e.call(r)
      } finally {
  } finally {
        try {
  if(t) throw t.error
          a && !a.done && (n = s.return) && n.call(s)
  }
        } finally {
  }
          if(r) throw r.error
}, t.prototype.makeDependencies = function() {
        }
  var e, r, n = [],
      }
  o = t.packages,
      return i
  c = this.noLoad,
    }
  u = this.name,
 
  p = [];
    function _() {
  l.CONFIG.dependencies.hasOwnProperty(u) ? p.push.apply(p, a([], s(l.CONFIG.dependencies[u]), !1)) : "core" !== u && p.push("core");
      var r = e.CONFIG.output;
  try {
      if(!r) return null;
  for(var h = i(p), f = h.next(); !f.done; f = h.next()) {
      var n = t.constructors[r];
  var d = f.value,
      if(!n) throw Error('Output Jax "' + r + '" is not defined (has it been loaded?)');
     m = o.get(d) || new t(d, c);
      return new n(e.MathJax.config[r])
  this.dependencies.indexOf(m) < 0 && (m.addDependent(this, c), this.dependencies.push(m), m.isLoaded || (this.dependencyCount++, n.push(m.promise)))
    }
  }
 
  } catch(t) {
    function S() {
  e = {
      var r = e.CONFIG.adaptor;
  error: t
      if(!r || "none" === r) return null;
  }
      var n = t.constructors[r];
  } finally {
      if(!n) throw Error('DOMAdaptor "' + r + '" is not defined (has it been loaded?)');
  try {
      return n(e.MathJax.config[r])
  f && !f.done && (r = h.return) && r.call(h)
     }
  } finally {
 
  if(e) throw e.error
    function M() {
  }
      var r, n, i = e.CONFIG.handler;
  }
      if(!i || "none" === i || !t.adaptor) return null;
  return n
      var s = t.constructors[i];
}, t.prototype.makePromise = function(t) {
      if(!s) throw Error('Handler "' + i + '" is not defined (has it been loaded?)');
  var e = this,
      var a = new s(t.adaptor, 5);
  r = new Promise((function(t, r) {
      try {
  e.resolve = t, e.reject = r
        for(var l = o(u), c = l.next(); !c.done; c = l.next()) {
  })),
          a = c.value.item(a)
  n = l.CONFIG[this.name] || {};
        }
  return n.ready && (r = r.then((function(t) {
      } catch(t) {
  return n.ready(e.name)
        r = {
  }))), t.length && (t.push(r), r = Promise.all(t).then((function(t) {
          error: t
  return t.join(", ")
        }
  }))), n.failed && r.catch((function(t) {
      } finally {
  return n.failed(new c(t, e.name))
        try {
  })), r
          c && !c.done && (n = l.return) && n.call(l)
}, t.prototype.load = function() {
        } finally {
  if(!this.isLoaded && !this.isLoading && !this.noLoad) {
          if(r) throw r.error
  this.isLoading = !0;
        }
  var e = t.resolvePath(this.name);
      }
  l.CONFIG.require ? this.loadCustom(e) : this.loadScript(e)
      return a
  }
    }
}, t.prototype.loadCustom = function(t) {
 
  var e = this;
    function O(r) {
  try {
      return void 0 === r && (r = null), l.document(r || e.CONFIG.document, n(n({}, e.MathJax.config.options), {
  var r = l.CONFIG.require(t);
        InputJax: t.input,
  r instanceof Promise ? r.then((function() {
        OutputJax: t.output
  return e.checkLoad()
      }))
  })).catch((function(r) {
    }
  return e.failed("Can't load \"" + t + '"\n' + r.message.trim())
    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) {
  })) : this.checkLoad()
      t.promiseResolve = e, t.promiseReject = r
  } catch(t) {
    })), t.pagePromise = new Promise((function(t, e) {
  this.failed(t.message)
      var n = r.g.document;
  }
      if(n && n.readyState && "complete" !== n.readyState && "interactive" !== n.readyState) {
}, t.prototype.loadScript = function(t) {
        var o = function() {
  var e = this,
          return t()
  r = document.createElement("script");
        };
  r.src = t, r.charset = "UTF-8", r.onload = function(t) {
        n.defaultView.addEventListener("load", o, !0), n.defaultView.addEventListener("DOMContentLoaded", o, !0)
  return e.checkLoad()
      } else t()
  }, r.onerror = function(r) {
    })), t.toMML = h, t.registerConstructor = function(e, r) {
  return e.failed("Can't load \"" + t + '"')
      t.constructors[e] = r
  }, document.head.appendChild(r)
    }, t.useHandler = function(t, r) {
}, t.prototype.loaded = function() {
      void 0 === r && (r = !1), e.CONFIG.handler && !r || (e.CONFIG.handler = t)
  var t, e, r, n;
    }, t.useAdaptor = function(t, r) {
  this.isLoaded = !0, this.isLoading = !1;
      void 0 === r && (r = !1), e.CONFIG.adaptor && !r || (e.CONFIG.adaptor = t)
  try {
    }, t.useInput = function(t, r) {
  for(var o = i(this.dependents), s = o.next(); !s.done; s = o.next()) {
      void 0 === r && (r = !1), p && !r || e.CONFIG.input.push(t)
  s.value.requirementSatisfied()
    }, t.useOutput = function(t, r) {
  }
      void 0 === r && (r = !1), e.CONFIG.output && !r || (e.CONFIG.output = t)
  } catch(e) {
    }, t.extendHandler = function(t, e) {
  t = {
      void 0 === e && (e = 10), u.add(t, e)
  error: e
    }, t.defaultReady = function() {
  }
      f(), d(), t.pagePromise.then((function() {
  } finally {
        return e.CONFIG.pageReady()
  try {
      })).then((function() {
  s && !s.done && (e = o.return) && e.call(o)
        return t.promiseResolve()
  } finally {
      })).catch((function(e) {
  if(t) throw t.error
        return t.promiseReject(e)
  }
      }))
  }
    }, t.defaultPageReady = function() {
  try {
      return e.CONFIG.typeset && e.MathJax.typesetPromise ? e.MathJax.typesetPromise(e.CONFIG.elements) : Promise.resolve()
  for(var a = i(this.provided), l = a.next(); !l.done; l = a.next()) {
    }, 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
  l.value.loaded()
   }(a = e.Startup || (e.Startup = {})), e.MathJax = l.MathJax, void 0 === e.MathJax._.startup && ((0, l.combineDefaults)(e.MathJax.config, "startup", {
  }
    input: [],
  } catch(t) {
    output: "",
  r = {
    handler: null,
  error: t
    adaptor: null,
  }
    document: "undefined" == typeof document ? "" : document,
   } finally {
    elements: null,
  try {
    typeset: !0,
  l && !l.done && (n = a.return) && n.call(a)
    ready: a.defaultReady.bind(a),
  } finally {
    pageReady: a.defaultPageReady.bind(a)
  if(r) throw r.error
  }), (0, l.combineWithMathJax)({
  }
    startup: a,
  }
    options: {}
  this.resolve(this.name)
   }), 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;
}, t.prototype.failed = function(t) {
   var p = 0 !== e.CONFIG.input.length
  this.hasFailed = !0, this.isLoading = !1, this.reject(new c(t, this.name))
}, t.prototype.checkLoad = function() {
  var t = this;
  ((l.CONFIG[this.name] || {}).checkReady || function() {
  return Promise.resolve()
  })().then((function() {
  return t.loaded()
  })).catch((function(e) {
  return t.failed(e)
   }))
}, t.prototype.requirementSatisfied = function() {
  this.dependencyCount && (this.dependencyCount--, this.canLoad && this.load())
}, t.prototype.provides = function(e) {
   var r, n;
  void 0 === e && (e = []);
  try {
  for(var o = i(e), s = o.next(); !s.done; s = o.next()) {
  var a = s.value,
    c = t.packages.get(a);
  c || (l.CONFIG.dependencies[a] || (l.CONFIG.dependencies[a] = []), l.CONFIG.dependencies[a].push(a), (c = new t(a, !0)).isLoading = !0), this.provided.push(c)
  }
  } catch(t) {
  r = {
  error: t
  }
  } finally {
  try {
  s && !s.done && (n = o.return) && n.call(o)
  } finally {
  if(r) throw r.error
  }
  }
}, t.prototype.addDependent = function(t, e) {
  this.dependents.push(t), e || this.checkNoLoad()
}, t.prototype.checkNoLoad = function() {
  var t, e;
  if(this.noLoad) {
  this.noLoad = !1;
  try {
  for(var r = i(this.dependencies), n = r.next(); !n.done; n = r.next()) {
    n.value.checkNoLoad()
  }
  } catch(e) {
  t = {
    error: e
  }
  } finally {
  try {
    n && !n.done && (e = r.return) && e.call(r)
  } finally {
    if(t) throw t.error
  }
  }
  }
}, t.packages = new Map, t
}();
e.Package = u
},
},
</syntaxhighlight>
</syntaxhighlight>

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

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

概要

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

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


__webpack_modules__[265].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の元でデバッグに戻る。