@hyperdreamer/pi-webui 1.18.2 → 1.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/THIRD_PARTY_NOTICES.md +11 -19
  2. package/dist/client/assets/{CodeViewer-tfs15HW0.js → CodeViewer-CYojGDIc.js} +2 -2
  3. package/dist/client/assets/UnifiedDiffViewer-BI0F9560.js +39 -0
  4. package/dist/client/assets/index-BjFly-I4.js +7766 -0
  5. package/dist/client/assets/mathjaxEngine-BcmydUwn.js +19 -0
  6. package/dist/client/index.html +1 -1
  7. package/dist/client/mathjax/fonts/MathJax_AMS-Regular.woff +0 -0
  8. package/dist/client/mathjax/fonts/MathJax_Calligraphic-Bold.woff +0 -0
  9. package/dist/client/mathjax/fonts/MathJax_Calligraphic-Regular.woff +0 -0
  10. package/dist/client/mathjax/fonts/MathJax_Fraktur-Bold.woff +0 -0
  11. package/dist/client/mathjax/fonts/MathJax_Fraktur-Regular.woff +0 -0
  12. package/dist/client/mathjax/fonts/MathJax_Main-Bold.woff +0 -0
  13. package/dist/client/mathjax/fonts/MathJax_Main-Italic.woff +0 -0
  14. package/dist/client/mathjax/fonts/MathJax_Main-Regular.woff +0 -0
  15. package/dist/client/mathjax/fonts/MathJax_Math-BoldItalic.woff +0 -0
  16. package/dist/client/mathjax/fonts/MathJax_Math-Italic.woff +0 -0
  17. package/dist/client/mathjax/fonts/MathJax_Math-Regular.woff +0 -0
  18. package/dist/client/mathjax/fonts/MathJax_SansSerif-Bold.woff +0 -0
  19. package/dist/client/mathjax/fonts/MathJax_SansSerif-Italic.woff +0 -0
  20. package/dist/client/mathjax/fonts/MathJax_SansSerif-Regular.woff +0 -0
  21. package/dist/client/mathjax/fonts/MathJax_Script-Regular.woff +0 -0
  22. package/dist/client/mathjax/fonts/MathJax_Size1-Regular.woff +0 -0
  23. package/dist/client/mathjax/fonts/MathJax_Size2-Regular.woff +0 -0
  24. package/dist/client/mathjax/fonts/MathJax_Size3-Regular.woff +0 -0
  25. package/dist/client/mathjax/fonts/MathJax_Size4-Regular.woff +0 -0
  26. package/dist/client/mathjax/fonts/MathJax_Typewriter-Regular.woff +0 -0
  27. package/dist/client/mathjax/fonts/MathJax_Vector-Bold.woff +0 -0
  28. package/dist/client/mathjax/fonts/MathJax_Vector-Regular.woff +0 -0
  29. package/dist/client/mathjax/fonts/MathJax_Zero.woff +0 -0
  30. package/package.json +7 -5
  31. package/dist/client/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  32. package/dist/client/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  33. package/dist/client/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  34. package/dist/client/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  35. package/dist/client/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  36. package/dist/client/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  37. package/dist/client/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  38. package/dist/client/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  39. package/dist/client/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  40. package/dist/client/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  41. package/dist/client/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  42. package/dist/client/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  43. package/dist/client/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  44. package/dist/client/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  45. package/dist/client/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  46. package/dist/client/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  47. package/dist/client/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  48. package/dist/client/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  49. package/dist/client/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  50. package/dist/client/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  51. package/dist/client/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  52. package/dist/client/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  53. package/dist/client/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  54. package/dist/client/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  55. package/dist/client/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  56. package/dist/client/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  57. package/dist/client/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  58. package/dist/client/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  59. package/dist/client/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  60. package/dist/client/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  61. package/dist/client/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  62. package/dist/client/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  63. package/dist/client/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  64. package/dist/client/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  65. package/dist/client/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  66. package/dist/client/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  67. package/dist/client/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  68. package/dist/client/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  69. package/dist/client/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  70. package/dist/client/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  71. package/dist/client/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  72. package/dist/client/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  73. package/dist/client/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  74. package/dist/client/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  75. package/dist/client/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  76. package/dist/client/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  77. package/dist/client/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  78. package/dist/client/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  79. package/dist/client/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  80. package/dist/client/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  81. package/dist/client/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  82. package/dist/client/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  83. package/dist/client/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  84. package/dist/client/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  85. package/dist/client/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  86. package/dist/client/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  87. package/dist/client/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  88. package/dist/client/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  89. package/dist/client/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  90. package/dist/client/assets/UnifiedDiffViewer-DS0blQID.js +0 -39
  91. package/dist/client/assets/index-D_OsIibT.js +0 -8022
@@ -0,0 +1,19 @@
1
+ import{l as e,n as t}from"./index-BjFly-I4.js";var n=e((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteElement=void 0,e.LiteElement=function(){function e(e,a,o){var s,c;a===void 0&&(a={}),o===void 0&&(o=[]),this.kind=e,this.attributes=t({},a),this.children=r([],n(o),!1);try{for(var l=i(this.children),u=l.next();!u.done;u=l.next()){var d=u.value;d.parent=this}}catch(e){s={error:e}}finally{try{u&&!u.done&&(c=l.return)&&c.call(l)}finally{if(s)throw s.error}}this.styles=null}return e}()})),r=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractDOMAdaptor=void 0,e.AbstractDOMAdaptor=function(){function e(e){e===void 0&&(e=null),this.document=e}return e.prototype.node=function(e,n,r,i){var a,o;n===void 0&&(n={}),r===void 0&&(r=[]);var s=this.create(e,i);this.setAttributes(s,n);try{for(var c=t(r),l=c.next();!l.done;l=c.next()){var u=l.value;this.append(s,u)}}catch(e){a={error:e}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}return s},e.prototype.setAttributes=function(e,n){var r,i,a,o,s,c;if(n.style&&typeof n.style!=`string`)try{for(var l=t(Object.keys(n.style)),u=l.next();!u.done;u=l.next()){var d=u.value;this.setStyle(e,d.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}),n.style[d])}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}if(n.properties)try{for(var f=t(Object.keys(n.properties)),p=f.next();!p.done;p=f.next()){var d=p.value;e[d]=n.properties[d]}}catch(e){a={error:e}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}try{for(var m=t(Object.keys(n)),h=m.next();!h.done;h=m.next()){var d=h.value;(d!==`style`||typeof n.style==`string`)&&d!==`properties`&&this.setAttribute(e,d,n[d])}}catch(e){s={error:e}}finally{try{h&&!h.done&&(c=m.return)&&c.call(m)}finally{if(s)throw s.error}}},e.prototype.replace=function(e,t){return this.insert(e,t),this.remove(t),t},e.prototype.childNode=function(e,t){return this.childNodes(e)[t]},e.prototype.allClasses=function(e){var t=this.getAttribute(e,`class`);return t?t.replace(/ +/g,` `).replace(/^ /,``).replace(/ $/,``).split(/ /):[]},e}()})),i=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.lookup=e.separateOptions=e.selectOptionsFromKeys=e.selectOptions=e.userOptions=e.defaultOptions=e.insert=e.copy=e.keys=e.makeArray=e.expandable=e.Expandable=e.OPTIONS=e.REMOVE=e.APPEND=e.isObject=void 0;var i={}.constructor;function a(e){return typeof e==`object`&&!!e&&(e.constructor===i||e.constructor===o)}e.isObject=a,e.APPEND=`[+]`,e.REMOVE=`[-]`,e.OPTIONS={invalidOption:`warn`,optionError:function(t,n){if(e.OPTIONS.invalidOption===`fatal`)throw Error(t);console.warn(`MathJax: `+t)}};var o=function(){function e(){}return e}();e.Expandable=o;function s(e){return Object.assign(Object.create(o.prototype),e)}e.expandable=s;function c(e){return Array.isArray(e)?e:[e]}e.makeArray=c;function l(e){return e?Object.keys(e).concat(Object.getOwnPropertySymbols(e)):[]}e.keys=l;function u(e){var n,r,i={};try{for(var c=t(l(e)),f=c.next();!f.done;f=c.next()){var p=f.value,m=Object.getOwnPropertyDescriptor(e,p),h=m.value;Array.isArray(h)?m.value=d([],h,!1):a(h)&&(m.value=u(h)),m.enumerable&&(i[p]=m)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return Object.defineProperties(e.constructor===o?s({}):{},i)}e.copy=u;function d(i,s,c){var f,p;c===void 0&&(c=!0);var m=function(t){if(c&&i[t]===void 0&&i.constructor!==o)return typeof t==`symbol`&&(t=t.toString()),e.OPTIONS.optionError(`Invalid option "${t}" (no default value).`,t),`continue`;var f=s[t],p=i[t];if(a(f)&&p!==null&&(typeof p==`object`||typeof p==`function`)){var m=l(f);Array.isArray(p)&&(m.length===1&&(m[0]===e.APPEND||m[0]===e.REMOVE)&&Array.isArray(f[m[0]])||m.length===2&&m.sort().join(`,`)===e.APPEND+`,`+e.REMOVE&&Array.isArray(f[e.APPEND])&&Array.isArray(f[e.REMOVE]))?(f[e.REMOVE]&&(p=i[t]=p.filter(function(t){return f[e.REMOVE].indexOf(t)<0})),f[e.APPEND]&&(i[t]=r(r([],n(p),!1),n(f[e.APPEND]),!1))):d(p,f,c)}else Array.isArray(f)?(i[t]=[],d(i[t],f,!1)):a(f)?i[t]=u(f):i[t]=f};try{for(var h=t(l(s)),g=h.next();!g.done;g=h.next()){var _=g.value;m(_)}}catch(e){f={error:e}}finally{try{g&&!g.done&&(p=h.return)&&p.call(h)}finally{if(f)throw f.error}}return i}e.insert=d;function f(e){return[...arguments].slice(1).forEach(function(t){return d(e,t,!1)}),e}e.defaultOptions=f;function p(e){return[...arguments].slice(1).forEach(function(t){return d(e,t,!0)}),e}e.userOptions=p;function m(e){for(var n,r,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];var o={};try{for(var s=t(i),c=s.next();!c.done;c=s.next()){var l=c.value;e.hasOwnProperty(l)&&(o[l]=e[l])}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o}e.selectOptions=m;function h(e,t){return m.apply(void 0,r([e],n(Object.keys(t)),!1))}e.selectOptionsFromKeys=h;function g(e){for(var n,r,i,a,o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];var c=[];try{for(var l=t(o),u=l.next();!u.done;u=l.next()){var d=u.value,f={},p={};try{for(var m=(i=void 0,t(Object.keys(e||{}))),h=m.next();!h.done;h=m.next()){var g=h.value;(d[g]===void 0?p:f)[g]=e[g]}}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}c.push(f),e=p}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return c.unshift(e),c}e.separateOptions=g;function _(e,t,n){return n===void 0&&(n=null),t.hasOwnProperty(e)?t[e]:n}e.lookup=_})),a=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.NodeMixin=e.NodeMixinOptions=void 0;var r=i();e.NodeMixinOptions={badCSS:!0,badSizes:!0};function a(i,a){var o;return a===void 0&&(a={}),a=(0,r.userOptions)((0,r.defaultOptions)({},e.NodeMixinOptions),a),o=function(e){t(n,e);function n(){var t=[...arguments],n=e.call(this,t[0])||this,i=n.constructor;return n.options=(0,r.userOptions)((0,r.defaultOptions)({},i.OPTIONS),t[1]),n}return n.prototype.fontSize=function(t){return a.badCSS?this.options.fontSize:e.prototype.fontSize.call(this,t)},n.prototype.fontFamily=function(t){return a.badCSS?this.options.fontFamily:e.prototype.fontFamily.call(this,t)},n.prototype.nodeSize=function(t,r,i){if(r===void 0&&(r=1),i===void 0&&(i=null),!a.badSizes)return e.prototype.nodeSize.call(this,t,r,i);var o=this.textContent(t),s=Array.from(o.replace(n.cjkPattern,``)).length;return[(Array.from(o).length-s)*this.options.cjkCharWidth+s*this.options.unknownCharWidth,this.options.unknownCharHeight]},n.prototype.nodeBBox=function(t){return a.badSizes?{left:0,right:0,top:0,bottom:0}:e.prototype.nodeBBox.call(this,t)},n}(i),o.OPTIONS=n(n({},a.badCSS?{fontSize:16,fontFamily:`Times`}:{}),a.badSizes?{cjkCharWidth:1,unknownCharWidth:.6,unknownCharHeight:.8}:{}),o.cjkPattern=new RegExp([`[`,`ᄀ-ᅟ`,`〈〉`,`⺀-〾`,`぀-㉇`,`㉐-䶿`,`一-꓆`,`ꥠ-ꥼ`,`가-힣`,`豈-﫿`,`︐-︙`,`︰-﹫`,`!-⦆¢-₩`,`𛀀-𛀁`,`🈀-🉑`,`𠀀-𿿽`,`]`].join(``),`gu`),o}e.NodeMixin=a})),o=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LiteDocument=void 0;var t=n();e.LiteDocument=function(){function e(){this.root=new t.LiteElement(`html`,{},[this.head=new t.LiteElement(`head`),this.body=new t.LiteElement(`body`)]),this.type=``}return Object.defineProperty(e.prototype,"kind",{get:function(){return`#document`},enumerable:!1,configurable:!0}),e}()})),s=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.LiteComment=e.LiteText=void 0;var n=function(){function e(e){e===void 0&&(e=``),this.value=e}return Object.defineProperty(e.prototype,"kind",{get:function(){return`#text`},enumerable:!1,configurable:!0}),e}();e.LiteText=n,e.LiteComment=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`#comment`},enumerable:!1,configurable:!0}),n}(n)})),c=e((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteList=void 0,e.LiteList=function(){function e(e){this.nodes=[],this.nodes=n([],t(e),!1)}return e.prototype.append=function(e){this.nodes.push(e)},e.prototype[Symbol.iterator]=function(){var e=0;return{next:function(){return e===this.nodes.length?{value:null,done:!0}:{value:this.nodes[e++],done:!1}}}},e}()})),l=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfter=e.handleRetriesFor=void 0;function t(e){return new Promise(function t(n,r){try{n(e())}catch(e){e.retry&&e.retry instanceof Promise?e.retry.then(function(){return t(n,r)}).catch(function(e){return r(e)}):e.restart&&e.restart.isCallback?MathJax.Callback.After(function(){return t(n,r)},e.restart):r(e)}})}e.handleRetriesFor=t;function n(e){var t=Error(`MathJax retry`);throw t.retry=e,t}e.retryAfter=n})),u=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION=`3.2.2`})),d=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PrioritizedList=void 0,e.PrioritizedList=function(){function e(){this.items=[],this.items=[]}return e.prototype[Symbol.iterator]=function(){var e=0,t=this.items;return{next:function(){return{value:t[e++],done:e>t.length}}}},e.prototype.add=function(t,n){n===void 0&&(n=e.DEFAULTPRIORITY);var r=this.items.length;do r--;while(r>=0&&n<this.items[r].priority);return this.items.splice(r+1,0,{item:t,priority:n}),t},e.prototype.remove=function(e){var t=this.items.length;do t--;while(t>=0&&this.items[t].item!==e);t>=0&&this.items.splice(t,1)},e.DEFAULTPRIORITY=5,e}()})),f=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.HandlerList=void 0,e.HandlerList=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.register=function(e){return this.add(e,e.priority)},r.prototype.unregister=function(e){this.remove(e)},r.prototype.handlesDocument=function(e){var t,r;try{for(var i=n(this),a=i.next();!a.done;a=i.next()){var o=a.value.item;if(o.handlesDocument(e))return o}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}throw Error(`Can't find handler for document`)},r.prototype.document=function(e,t){return t===void 0&&(t=null),this.handlesDocument(e).create(e,t)},r}(d().PrioritizedList)})),p=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mathjax=void 0;var t=u(),n=f(),r=l();e.mathjax={version:t.VERSION,handlers:new n.HandlerList,document:function(t,n){return e.mathjax.handlers.document(t,n)},handleRetriesFor:r.handleRetriesFor,retryAfter:r.retryAfter,asyncLoad:null}})),m=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.asyncLoad=void 0;var t=p();function n(e){return t.mathjax.asyncLoad?new Promise(function(n,r){var i=t.mathjax.asyncLoad(e);i instanceof Promise?i.then(function(e){return n(e)}).catch(function(e){return r(e)}):n(i)}):Promise.reject(`Can't load '${e}': No asyncLoad method specified`)}e.asyncLoad=n})),h=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.numeric=e.translate=e.remove=e.add=e.entities=e.options=void 0;var t=l(),n=m();e.options={loadMissingEntities:!0},e.entities={ApplyFunction:`⁡`,Backslash:`∖`,Because:`∵`,Breve:`˘`,Cap:`⋒`,CenterDot:`·`,CircleDot:`⊙`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,Congruent:`≡`,ContourIntegral:`∮`,Coproduct:`∐`,Cross:`⨯`,Cup:`⋓`,CupCap:`≍`,Dagger:`‡`,Del:`∇`,Delta:`Δ`,Diamond:`⋄`,DifferentialD:`ⅆ`,DotEqual:`≐`,DoubleDot:`¨`,DoubleRightTee:`⊨`,DoubleVerticalBar:`∥`,DownArrow:`↓`,DownLeftVector:`↽`,DownRightVector:`⇁`,DownTee:`⊤`,Downarrow:`⇓`,Element:`∈`,EqualTilde:`≂`,Equilibrium:`⇌`,Exists:`∃`,ExponentialE:`ⅇ`,FilledVerySmallSquare:`▪`,ForAll:`∀`,Gamma:`Γ`,Gg:`⋙`,GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Hacek:`ˇ`,Hat:`^`,HumpDownHump:`≎`,HumpEqual:`≏`,Im:`ℑ`,ImaginaryI:`ⅈ`,Integral:`∫`,Intersection:`⋂`,InvisibleComma:`⁣`,InvisibleTimes:`⁢`,Lambda:`Λ`,Larr:`↞`,LeftAngleBracket:`⟨`,LeftArrow:`←`,LeftArrowRightArrow:`⇆`,LeftCeiling:`⌈`,LeftDownVector:`⇃`,LeftFloor:`⌊`,LeftRightArrow:`↔`,LeftTee:`⊣`,LeftTriangle:`⊲`,LeftTriangleEqual:`⊴`,LeftUpVector:`↿`,LeftVector:`↼`,Leftarrow:`⇐`,Leftrightarrow:`⇔`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,LessSlantEqual:`⩽`,LessTilde:`≲`,Ll:`⋘`,Lleftarrow:`⇚`,LongLeftArrow:`⟵`,LongLeftRightArrow:`⟷`,LongRightArrow:`⟶`,Longleftarrow:`⟸`,Longleftrightarrow:`⟺`,Longrightarrow:`⟹`,Lsh:`↰`,MinusPlus:`∓`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotLeftTriangle:`⋪`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotPrecedes:`⊀`,NotPrecedesSlantEqual:`⋠`,NotRightTriangle:`⋫`,NotRightTriangleEqual:`⋭`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsSlantEqual:`⋡`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotVerticalBar:`∤`,Omega:`Ω`,OverBar:`‾`,OverBrace:`⏞`,PartialD:`∂`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,Product:`∏`,Proportional:`∝`,Psi:`Ψ`,Rarr:`↠`,Re:`ℜ`,ReverseEquilibrium:`⇋`,RightAngleBracket:`⟩`,RightArrow:`→`,RightArrowLeftArrow:`⇄`,RightCeiling:`⌉`,RightDownVector:`⇂`,RightFloor:`⌋`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTriangle:`⊳`,RightTriangleEqual:`⊵`,RightUpVector:`↾`,RightVector:`⇀`,Rightarrow:`⇒`,Rrightarrow:`⇛`,Rsh:`↱`,Sigma:`Σ`,SmallCircle:`∘`,Sqrt:`√`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,Star:`⋆`,Subset:`⋐`,SubsetEqual:`⊆`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,SuchThat:`∋`,Sum:`∑`,Superset:`⊃`,SupersetEqual:`⊇`,Supset:`⋑`,Therefore:`∴`,Theta:`Θ`,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,UnderBar:`_`,UnderBrace:`⏟`,Union:`⋃`,UnionPlus:`⊎`,UpArrow:`↑`,UpDownArrow:`↕`,UpTee:`⊥`,Uparrow:`⇑`,Updownarrow:`⇕`,Upsilon:`Υ`,Vdash:`⊩`,Vee:`⋁`,VerticalBar:`∣`,VerticalTilde:`≀`,Vvdash:`⊪`,Wedge:`⋀`,Xi:`Ξ`,amp:`&`,acute:`´`,aleph:`ℵ`,alpha:`α`,amalg:`⨿`,and:`∧`,ang:`∠`,angmsd:`∡`,angsph:`∢`,ape:`≊`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,beta:`β`,beth:`ℶ`,between:`≬`,bigcirc:`◯`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,blacklozenge:`⧫`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,bowtie:`⋈`,boxdl:`┐`,boxdr:`┌`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxul:`┘`,boxur:`└`,bsol:`\\`,bull:`•`,cap:`∩`,check:`✓`,chi:`χ`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledR:`®`,circledS:`Ⓢ`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,clubs:`♣`,colon:`:`,comp:`∁`,ctdot:`⋯`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cup:`∪`,curarr:`↷`,curlyvee:`⋎`,curlywedge:`⋏`,dagger:`†`,daleth:`ℸ`,ddarr:`⇊`,deg:`°`,delta:`δ`,digamma:`ϝ`,div:`÷`,divideontimes:`⋇`,dot:`˙`,doteqdot:`≑`,dotplus:`∔`,dotsquare:`⊡`,dtdot:`⋱`,ecir:`≖`,efDot:`≒`,egs:`⪖`,ell:`ℓ`,els:`⪕`,empty:`∅`,epsi:`ε`,epsiv:`ϵ`,erDot:`≓`,eta:`η`,eth:`ð`,flat:`♭`,fork:`⋔`,frown:`⌢`,gEl:`⪌`,gamma:`γ`,gap:`⪆`,gimel:`ℷ`,gnE:`≩`,gnap:`⪊`,gne:`⪈`,gnsim:`⋧`,gt:`>`,gtdot:`⋗`,harrw:`↭`,hbar:`ℏ`,hellip:`…`,hookleftarrow:`↩`,hookrightarrow:`↪`,imath:`ı`,infin:`∞`,intcal:`⊺`,iota:`ι`,jmath:`ȷ`,kappa:`κ`,kappav:`ϰ`,lEg:`⪋`,lambda:`λ`,lap:`⪅`,larrlp:`↫`,larrtl:`↢`,lbrace:`{`,lbrack:`[`,le:`≤`,leftleftarrows:`⇇`,leftthreetimes:`⋋`,lessdot:`⋖`,lmoust:`⎰`,lnE:`≨`,lnap:`⪉`,lne:`⪇`,lnsim:`⋦`,longmapsto:`⟼`,looparrowright:`↬`,lowast:`∗`,loz:`◊`,lt:`<`,ltimes:`⋉`,ltri:`◃`,macr:`¯`,malt:`✠`,mho:`℧`,mu:`μ`,multimap:`⊸`,nLeftarrow:`⇍`,nLeftrightarrow:`⇎`,nRightarrow:`⇏`,nVDash:`⊯`,nVdash:`⊮`,natur:`♮`,nearr:`↗`,nharr:`↮`,nlarr:`↚`,not:`¬`,nrarr:`↛`,nu:`ν`,nvDash:`⊭`,nvdash:`⊬`,nwarr:`↖`,omega:`ω`,omicron:`ο`,or:`∨`,osol:`⊘`,period:`.`,phi:`φ`,phiv:`ϕ`,pi:`π`,piv:`ϖ`,prap:`⪷`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,prime:`′`,psi:`ψ`,quot:`"`,rarrtl:`↣`,rbrace:`}`,rbrack:`]`,rho:`ρ`,rhov:`ϱ`,rightrightarrows:`⇉`,rightthreetimes:`⋌`,ring:`˚`,rmoust:`⎱`,rtimes:`⋊`,rtri:`▹`,scap:`⪸`,scnE:`⪶`,scnap:`⪺`,scnsim:`⋩`,sdot:`⋅`,searr:`↘`,sect:`§`,sharp:`♯`,sigma:`σ`,sigmav:`ς`,simne:`≆`,smile:`⌣`,spades:`♠`,sub:`⊂`,subE:`⫅`,subnE:`⫋`,subne:`⊊`,supE:`⫆`,supnE:`⫌`,supne:`⊋`,swarr:`↙`,tau:`τ`,theta:`θ`,thetav:`ϑ`,tilde:`˜`,times:`×`,triangle:`▵`,triangleq:`≜`,upsi:`υ`,upuparrows:`⇈`,veebar:`⊻`,vellip:`⋮`,weierp:`℘`,xi:`ξ`,yen:`¥`,zeta:`ζ`,zigrarr:`⇝`,nbsp:`\xA0`,rsquo:`’`,lsquo:`‘`};var r={};function i(t,n){Object.assign(e.entities,t),r[n]=!0}e.add=i;function a(t){delete e.entities[t]}e.remove=a;function o(e){return e.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/gi,s)}e.translate=o;function s(i,a){if(a.charAt(0)===`#`)return c(a.slice(1));if(e.entities[a])return e.entities[a];if(e.options.loadMissingEntities){var o=a.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:a.charAt(0).toLowerCase();r[o]||(r[o]=!0,(0,t.retryAfter)((0,n.asyncLoad)(`./util/entities/`+o+`.js`)))}return i}function c(e){var t=e.charAt(0)===`x`?parseInt(e.slice(1),16):parseInt(e);return String.fromCodePoint(t)}e.numeric=c})),g=e((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(n,e,i);return r(n,e),n},a=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},o=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteParser=e.PATTERNS=void 0;var c=i(h()),l=n(),u=s(),d;(function(e){e.TAGNAME=`[a-z][^\\s\\n>]*`,e.ATTNAME=`[a-z][^\\s\\n>=]*`,e.VALUE=`(?:'[^']*'|"[^"]*"|[^\\s\\n]+)`,e.VALUESPLIT=`(?:'([^']*)'|"([^"]*)"|([^\\s\\n]+))`,e.SPACE=`(?:\\s|\\n)+`,e.OPTIONALSPACE=`(?:\\s|\\n)*`,e.ATTRIBUTE=e.ATTNAME+`(?:`+e.OPTIONALSPACE+`=`+e.OPTIONALSPACE+e.VALUE+`)?`,e.ATTRIBUTESPLIT=`(`+e.ATTNAME+`)(?:`+e.OPTIONALSPACE+`=`+e.OPTIONALSPACE+e.VALUESPLIT+`)?`,e.TAG=`(<(?:`+e.TAGNAME+`(?:`+e.SPACE+e.ATTRIBUTE+`)*`+e.OPTIONALSPACE+`/?|/`+e.TAGNAME+`|!--[^]*?--|![^]*?)(?:>|$))`,e.tag=new RegExp(e.TAG,`i`),e.attr=new RegExp(e.ATTRIBUTE,`i`),e.attrsplit=new RegExp(e.ATTRIBUTESPLIT,`i`)})(d=e.PATTERNS||={}),e.LiteParser=function(){function e(){}return e.prototype.parseFromString=function(e,t,n){t===void 0&&(t=`text/html`),n===void 0&&(n=null);for(var r=n.createDocument(),i=n.body(r),a=e.replace(/<\?.*?\?>/g,``).split(d.tag);a.length;){var o=a.shift(),s=a.shift();o&&this.addText(n,i,o),s&&s.charAt(s.length-1)===`>`&&(s.charAt(1)===`!`?this.addComment(n,i,s):i=s.charAt(1)===`/`?this.closeTag(n,i,s):this.openTag(n,i,s,a))}return this.checkDocument(n,r),r},e.prototype.addText=function(e,t,n){return n=c.translate(n),e.append(t,e.text(n))},e.prototype.addComment=function(e,t,n){return e.append(t,new u.LiteComment(n))},e.prototype.closeTag=function(e,t,n){for(var r=n.slice(2,n.length-1).toLowerCase();e.parent(t)&&e.kind(t)!==r;)t=e.parent(t);return e.parent(t)},e.prototype.openTag=function(e,t,n,r){var i=this.constructor.PCDATA,a=this.constructor.SELF_CLOSING,o=n.match(/<(.*?)[\s\n>\/]/)[1].toLowerCase(),s=e.node(o),c=n.replace(/^<.*?[\s\n>]/,``).split(d.attrsplit);return(c.pop().match(/>$/)||c.length<5)&&(this.addAttributes(e,s,c),e.append(t,s),!a[o]&&!n.match(/\/>$/)&&(i[o]?this.handlePCDATA(e,s,o,r):t=s)),t},e.prototype.addAttributes=function(e,t,n){for(var r=this.constructor.CDATA_ATTR;n.length;){var i=a(n.splice(0,5),5),o=i[1],s=i[2],l=i[3],u=i[4],d=s||l||u||``;r[o]||(d=c.translate(d)),e.setAttribute(t,o,d)}},e.prototype.handlePCDATA=function(e,t,n,r){for(var i=[],a=`</`+n+`>`,o=``;r.length&&o!==a;)i.push(o),i.push(r.shift()),o=r.shift();e.append(t,e.text(i.join(``)))},e.prototype.checkDocument=function(e,t){var n,r,i,a,s=this.getOnlyChild(e,e.body(t));if(s){try{for(var c=o(e.childNodes(e.body(t))),l=c.next();!l.done;l=c.next()){var d=l.value;if(d===s)break;d instanceof u.LiteComment&&d.value.match(/^<!DOCTYPE/)&&(t.type=d.value)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}switch(e.kind(s)){case`html`:try{for(var f=o(s.children),p=f.next();!p.done;p=f.next()){var d=p.value;switch(e.kind(d)){case`head`:t.head=d;break;case`body`:t.body=d;break}}}catch(e){i={error:e}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}t.root=s,e.remove(s),e.parent(t.body)!==s&&e.append(s,t.body),e.parent(t.head)!==s&&e.insert(t.head,t.body);break;case`head`:t.head=e.replace(s,t.head);break;case`body`:t.body=e.replace(s,t.body);break}}},e.prototype.getOnlyChild=function(e,t){var n,r,i=null;try{for(var a=o(e.childNodes(t)),s=a.next();!s.done;s=a.next()){var c=s.value;if(c instanceof l.LiteElement){if(i)return null;i=c}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},e.prototype.serialize=function(e,t,n){var r=this;n===void 0&&(n=!1);var i=this.constructor.SELF_CLOSING,a=this.constructor.CDATA_ATTR,o=e.kind(t),s=e.allAttributes(t).map(function(e){return e.name+`="`+(a[e.name]?e.value:r.protectAttribute(e.value))+`"`}).join(` `),c=this.serializeInner(e,t,n);return`<`+o+(s?` `+s:``)+((!n||c)&&!i[o]?`>${c}</${o}>`:n?`/>`:`>`)},e.prototype.serializeInner=function(e,t,n){var r=this;return n===void 0&&(n=!1),this.constructor.PCDATA.hasOwnProperty(t.kind)?e.childNodes(t).map(function(t){return e.value(t)}).join(``):e.childNodes(t).map(function(t){var i=e.kind(t);return i===`#text`?r.protectHTML(e.value(t)):i===`#comment`?t.value:r.serialize(e,t,n)}).join(``)},e.prototype.protectAttribute=function(e){return typeof e!=`string`&&(e=String(e)),e.replace(/"/g,`&quot;`)},e.prototype.protectHTML=function(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)},e.SELF_CLOSING={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},e.PCDATA={option:!0,textarea:!0,fieldset:!0,title:!0,style:!0,script:!0},e.CDATA_ATTR={style:!0,datafld:!0,datasrc:!0,href:!0,src:!0,longdesc:!0,usemap:!0,cite:!0,datetime:!0,action:!0,axis:!0,profile:!0,content:!0,scheme:!0},e}()})),_=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LiteWindow=void 0;var t=n(),r=o(),i=c(),a=g();e.LiteWindow=function(){function e(){this.DOMParser=a.LiteParser,this.NodeList=i.LiteList,this.HTMLCollection=i.LiteList,this.HTMLElement=t.LiteElement,this.DocumentFragment=i.LiteList,this.Document=r.LiteDocument,this.document=new r.LiteDocument}return e}()})),v=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.Styles=void 0;var i=[`top`,`right`,`bottom`,`left`],a=[`width`,`style`,`color`];function o(e){for(var t=e.split(/((?:'[^']*'|"[^"]*"|,[\s\n]|[^\s\n])*)/g),n=[];t.length>1;)t.shift(),n.push(t.shift());return n}function s(e){var n,r,i=o(this.styles[e]);i.length===0&&i.push(``),i.length===1&&i.push(i[0]),i.length===2&&i.push(i[0]),i.length===3&&i.push(i[1]);try{for(var a=t(v.connect[e].children),s=a.next();!s.done;s=a.next()){var c=s.value;this.setStyle(this.childName(e,c),i.shift())}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}function c(e){var n,r,i=v.connect[e].children,a=[];try{for(var o=t(i),s=o.next();!s.done;s=o.next()){var c=s.value,l=this.styles[e+`-`+c];if(!l){delete this.styles[e];return}a.push(l)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}a[3]===a[1]&&(a.pop(),a[2]===a[0]&&(a.pop(),a[1]===a[0]&&a.pop())),this.styles[e]=a.join(` `)}function l(e){var n,r;try{for(var i=t(v.connect[e].children),a=i.next();!a.done;a=i.next()){var o=a.value;this.setStyle(this.childName(e,o),this.styles[e])}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function u(e){var i,a,o=r([],n(v.connect[e].children),!1),s=this.styles[this.childName(e,o.shift())];try{for(var c=t(o),l=c.next();!l.done;l=c.next()){var u=l.value;if(this.styles[this.childName(e,u)]!==s){delete this.styles[e];return}}}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}this.styles[e]=s}var d={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 f(e){var n,r,i,a,s={width:``,style:``,color:``};try{for(var c=t(o(this.styles[e])),l=c.next();!l.done;l=c.next()){var u=l.value;u.match(d.width)&&s.width===``?s.width=u:u.match(d.style)&&s.style===``?s.style=u:s.color=u}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}try{for(var f=t(v.connect[e].children),p=f.next();!p.done;p=f.next()){var m=p.value;this.setStyle(this.childName(e,m),s[m])}}catch(e){i={error:e}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}}function p(e){var n,r,i=[];try{for(var a=t(v.connect[e].children),o=a.next();!o.done;o=a.next()){var s=o.value,c=this.styles[this.childName(e,s)];c&&i.push(c)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}i.length?this.styles[e]=i.join(` `):delete this.styles[e]}var m={style:/^(?:normal|italic|oblique|inherit|initial|unset)$/,variant: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:RegExp(`^(?:`+[`normal`,`(?:(?:ultra|extra|semi)-)?condensed`,`(?:(?:semi|extra|ulta)-)?expanded`,`inherit|initial|unset`].join(`|`)+`)$`),size: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 h(e){var r,i,a,s,c=o(this.styles[e]),l={style:``,variant:[],weight:``,stretch:``,size:``,family:``,"line-height":``};try{for(var u=t(c),d=u.next();!d.done;d=u.next()){var f=d.value;l.family=f;try{for(var p=(a=void 0,t(Object.keys(m))),h=p.next();!h.done;h=p.next()){var _=h.value;if((Array.isArray(l[_])||l[_]===``)&&f.match(m[_]))if(_===`size`){var v=n(f.split(/\//),2),y=v[0],b=v[1];l[_]=y,b&&(l[`line-height`]=b)}else l.size===``&&(Array.isArray(l[_])?l[_].push(f):l[_]=f)}}catch(e){a={error:e}}finally{try{h&&!h.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}g(e,l),delete this.styles[e]}function g(e,n){var r,i;try{for(var a=t(v.connect[e].children),o=a.next();!o.done;o=a.next()){var s=o.value,c=this.childName(e,s);if(Array.isArray(n[s])){var l=n[s];l.length&&(this.styles[c]=l.join(` `))}else n[s]!==``&&(this.styles[c]=n[s])}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}}function _(e){}var v=function(){function e(e){e===void 0&&(e=``),this.parse(e)}return Object.defineProperty(e.prototype,"cssText",{get:function(){var e,n,r=[];try{for(var i=t(Object.keys(this.styles)),a=i.next();!a.done;a=i.next()){var o=a.value,s=this.parentName(o);this.styles[s]||r.push(o+`: `+this.styles[o]+`;`)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r.join(` `)},enumerable:!1,configurable:!0}),e.prototype.set=function(t,n){for(t=this.normalizeName(t),this.setStyle(t,n),e.connect[t]&&!e.connect[t].combine&&(this.combineChildren(t),delete this.styles[t]);t.match(/-/)&&(t=this.parentName(t),e.connect[t]);)e.connect[t].combine.call(this,t)},e.prototype.get=function(e){return e=this.normalizeName(e),this.styles.hasOwnProperty(e)?this.styles[e]:``},e.prototype.setStyle=function(t,n){this.styles[t]=n,e.connect[t]&&e.connect[t].children&&e.connect[t].split.call(this,t),n===``&&delete this.styles[t]},e.prototype.combineChildren=function(n){var r,i,a=this.parentName(n);try{for(var o=t(e.connect[n].children),s=o.next();!s.done;s=o.next()){var c=s.value,l=this.childName(a,c);e.connect[l].combine.call(this,l)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}},e.prototype.parentName=function(e){var t=e.replace(/-[^-]*$/,``);return e===t?``:t},e.prototype.childName=function(t,n){return n.match(/-/)?n:(e.connect[t]&&!e.connect[t].combine&&(n+=t.replace(/.*-/,`-`),t=this.parentName(t)),t+`-`+n)},e.prototype.normalizeName=function(e){return e.replace(/[A-Z]/g,function(e){return`-`+e.toLowerCase()})},e.prototype.parse=function(e){e===void 0&&(e=``);var t=this.constructor.pattern;this.styles={};for(var r=e.replace(t.comment,``).split(t.style);r.length>1;){var i=n(r.splice(0,3),3),a=i[0],o=i[1],s=i[2];if(a.match(/[^\s\n]/))return;this.set(o,s)}},e.pattern={style:/([-a-z]+)[\s\n]*:[\s\n]*((?:'[^']*'|"[^"]*"|\n|.)*?)[\s\n]*(?:;|$)/g,comment:/\/\*[^]*?\*\//g},e.connect={padding:{children:i,split:s,combine:c},border:{children:i,split:l,combine:u},"border-top":{children:a,split:f,combine:p},"border-right":{children:a,split:f,combine:p},"border-bottom":{children:a,split:f,combine:p},"border-left":{children:a,split:f,combine:p},"border-width":{children:i,split:s,combine:null},"border-style":{children:i,split:s,combine:null},"border-color":{children:i,split:s,combine:null},font:{children:[`style`,`variant`,`weight`,`stretch`,`line-height`,`size`,`family`],split:h,combine:_}},e}();e.Styles=v})),y=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),i=e&&e.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},c=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},l=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},u=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.liteAdaptor=e.LiteAdaptor=e.LiteBase=void 0;var d=r(),f=a(),p=o(),m=n(),h=s(),y=_(),b=g(),x=v(),S=function(e){t(n,e);function n(){var t=e.call(this)||this;return t.parser=new b.LiteParser,t.window=new y.LiteWindow,t}return n.prototype.parse=function(e,t){return this.parser.parseFromString(e,t,this)},n.prototype.create=function(e,t){return t===void 0&&(t=null),new m.LiteElement(e)},n.prototype.text=function(e){return new h.LiteText(e)},n.prototype.comment=function(e){return new h.LiteComment(e)},n.prototype.createDocument=function(){return new p.LiteDocument},n.prototype.head=function(e){return e.head},n.prototype.body=function(e){return e.body},n.prototype.root=function(e){return e.root},n.prototype.doctype=function(e){return e.type},n.prototype.tags=function(e,t,n){n===void 0&&(n=null);var r=[],i=[];if(n)return i;for(var a=e;a;){var o=a.kind;o!==`#text`&&o!==`#comment`&&(a=a,o===t&&i.push(a),a.children.length&&(r=a.children.concat(r))),a=r.shift()}return i},n.prototype.elementById=function(e,t){for(var n=[],r=e;r;){if(r.kind!==`#text`&&r.kind!==`#comment`){if(r=r,r.attributes.id===t)return r;r.children.length&&(n=r.children.concat(n))}r=n.shift()}return null},n.prototype.elementsByClass=function(e,t){for(var n=[],r=[],i=e;i;)i.kind!==`#text`&&i.kind!==`#comment`&&(i=i,(i.attributes.class||``).trim().split(/ +/).includes(t)&&r.push(i),i.children.length&&(n=i.children.concat(n))),i=n.shift();return r},n.prototype.getElements=function(e,t){var n,r,i=[],a=this.body(t);try{for(var o=c(e),s=o.next();!s.done;s=o.next()){var l=s.value;if(typeof l==`string`)if(l.charAt(0)===`#`){var u=this.elementById(a,l.slice(1));u&&i.push(u)}else l.charAt(0)===`.`?i=i.concat(this.elementsByClass(a,l.slice(1))):l.match(/^[-a-z][-a-z0-9]*$/i)&&(i=i.concat(this.tags(a,l)));else Array.isArray(l)?i=i.concat(l):l instanceof this.window.NodeList||l instanceof this.window.HTMLCollection?i=i.concat(l.nodes):i.push(l)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},n.prototype.contains=function(e,t){for(;t&&t!==e;)t=this.parent(t);return!!t},n.prototype.parent=function(e){return e.parent},n.prototype.childIndex=function(e){return e.parent?e.parent.children.findIndex(function(t){return t===e}):-1},n.prototype.append=function(e,t){return t.parent&&this.remove(t),e.children.push(t),t.parent=e,t},n.prototype.insert=function(e,t){if(e.parent&&this.remove(e),t&&t.parent){var n=this.childIndex(t);t.parent.children.splice(n,0,e),e.parent=t.parent}},n.prototype.remove=function(e){var t=this.childIndex(e);return t>=0&&e.parent.children.splice(t,1),e.parent=null,e},n.prototype.replace=function(e,t){var n=this.childIndex(t);return n>=0&&(t.parent.children[n]=e,e.parent=t.parent,t.parent=null),t},n.prototype.clone=function(e){var t=this,n=new m.LiteElement(e.kind);return n.attributes=i({},e.attributes),n.children=e.children.map(function(e){if(e.kind===`#text`)return new h.LiteText(e.value);if(e.kind===`#comment`)return new h.LiteComment(e.value);var r=t.clone(e);return r.parent=n,r}),n},n.prototype.split=function(e,t){var n=new h.LiteText(e.value.slice(t));return e.value=e.value.slice(0,t),e.parent.children.splice(this.childIndex(e)+1,0,n),n.parent=e.parent,n},n.prototype.next=function(e){var t=e.parent;if(!t)return null;var n=this.childIndex(e)+1;return n>=0&&n<t.children.length?t.children[n]:null},n.prototype.previous=function(e){var t=e.parent;if(!t)return null;var n=this.childIndex(e)-1;return n>=0?t.children[n]:null},n.prototype.firstChild=function(e){return e.children[0]},n.prototype.lastChild=function(e){return e.children[e.children.length-1]},n.prototype.childNodes=function(e){return u([],l(e.children),!1)},n.prototype.childNode=function(e,t){return e.children[t]},n.prototype.kind=function(e){return e.kind},n.prototype.value=function(e){return e.kind===`#text`?e.value:e.kind===`#comment`?e.value.replace(/^<!(--)?((?:.|\n)*)\1>$/,`$2`):``},n.prototype.textContent=function(e){var t=this;return e.children.reduce(function(e,n){return e+(n.kind===`#text`?n.value:n.kind===`#comment`?``:t.textContent(n))},``)},n.prototype.innerHTML=function(e){return this.parser.serializeInner(this,e)},n.prototype.outerHTML=function(e){return this.parser.serialize(this,e)},n.prototype.serializeXML=function(e){return this.parser.serialize(this,e,!0)},n.prototype.setAttribute=function(e,t,n,r){r===void 0&&(r=null),typeof n!=`string`&&(n=String(n)),r&&(t=r.replace(/.*\//,``)+`:`+t.replace(/^.*:/,``)),e.attributes[t]=n,t===`style`&&(e.styles=null)},n.prototype.getAttribute=function(e,t){return e.attributes[t]},n.prototype.removeAttribute=function(e,t){delete e.attributes[t]},n.prototype.hasAttribute=function(e,t){return e.attributes.hasOwnProperty(t)},n.prototype.allAttributes=function(e){var t,n,r=e.attributes,i=[];try{for(var a=c(Object.keys(r)),o=a.next();!o.done;o=a.next()){var s=o.value;i.push({name:s,value:r[s]})}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},n.prototype.addClass=function(e,t){var n=(e.attributes.class||``).split(/ /);n.find(function(e){return e===t})||(n.push(t),e.attributes.class=n.join(` `))},n.prototype.removeClass=function(e,t){var n=(e.attributes.class||``).split(/ /),r=n.findIndex(function(e){return e===t});r>=0&&(n.splice(r,1),e.attributes.class=n.join(` `))},n.prototype.hasClass=function(e,t){return!!(e.attributes.class||``).split(/ /).find(function(e){return e===t})},n.prototype.setStyle=function(e,t,n){e.styles||=new x.Styles(this.getAttribute(e,`style`)),e.styles.set(t,n),e.attributes.style=e.styles.cssText},n.prototype.getStyle=function(e,t){if(!e.styles){var n=this.getAttribute(e,`style`);if(!n)return``;e.styles=new x.Styles(n)}return e.styles.get(t)},n.prototype.allStyles=function(e){return this.getAttribute(e,`style`)},n.prototype.insertRules=function(e,t){e.children=[this.text(t.join(`
2
+
3
+ `)+`
4
+
5
+ `+this.textContent(e))]},n.prototype.fontSize=function(e){return 0},n.prototype.fontFamily=function(e){return``},n.prototype.nodeSize=function(e,t,n){return t===void 0&&(t=1),n===void 0&&(n=null),[0,0]},n.prototype.nodeBBox=function(e){return{left:0,right:0,top:0,bottom:0}},n}(d.AbstractDOMAdaptor);e.LiteBase=S;var C=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}((0,f.NodeMixin)(S));e.LiteAdaptor=C;function w(e){return e===void 0&&(e=null),new C(null,e)}e.liteAdaptor=w})),b=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},r=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},i=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.FunctionList=void 0,e.FunctionList=function(e){t(a,e);function a(){return e!==null&&e.apply(this,arguments)||this}return a.prototype.execute=function(){for(var e,t,a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];try{for(var s=n(this),c=s.next();!c.done;c=s.next()){var l=c.value;if(l.item.apply(l,i([],r(a),!1))===!1)return!1}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return!0},a.prototype.asyncExecute=function(){var e=[...arguments],t=-1,n=this.items;return new Promise(function(a,o){(function s(){for(var c;++t<n.length;){var l=(c=n[t]).item.apply(c,i([],r(e),!1));if(l instanceof Promise){l.then(s).catch(function(e){return o(e)});return}if(l===!1){a(!1);return}}a(!0)})()})},a}(d().PrioritizedList)})),x=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractInputJax=void 0;var t=i(),n=b();e.AbstractInputJax=function(){function e(e){e===void 0&&(e={}),this.adaptor=null,this.mmlFactory=null;var r=this.constructor;this.options=(0,t.userOptions)((0,t.defaultOptions)({},r.OPTIONS),e),this.preFilters=new n.FunctionList,this.postFilters=new n.FunctionList}return Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),e.prototype.setAdaptor=function(e){this.adaptor=e},e.prototype.setMmlFactory=function(e){this.mmlFactory=e},e.prototype.initialize=function(){},e.prototype.reset=function(){},Object.defineProperty(e.prototype,"processStrings",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.findMath=function(e,t){return[]},e.prototype.executeFilters=function(e,t,n,r){var i={math:t,document:n,data:r};return e.execute(i),i.data},e.NAME=`generic`,e.OPTIONS={},e}()})),S=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractOutputJax=void 0;var t=i(),n=b();e.AbstractOutputJax=function(){function e(e){e===void 0&&(e={}),this.adaptor=null;var r=this.constructor;this.options=(0,t.userOptions)((0,t.defaultOptions)({},r.OPTIONS),e),this.postFilters=new n.FunctionList}return Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),e.prototype.setAdaptor=function(e){this.adaptor=e},e.prototype.initialize=function(){},e.prototype.reset=function(){},e.prototype.getMetrics=function(e){},e.prototype.styleSheet=function(e){return null},e.prototype.pageElements=function(e){return null},e.prototype.executeFilters=function(e,t,n,r){var i={math:t,document:n,data:r};return e.execute(i),i.data},e.NAME=`generic`,e.OPTIONS={},e}()})),C=e((e=>{var t=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=e.ListItem=e.END=void 0,e.END=Symbol();var a=function(){function e(e){e===void 0&&(e=null),this.next=null,this.prev=null,this.data=e}return e}();e.ListItem=a,e.LinkedList=function(){function o(){var t=[...arguments];this.list=new a(e.END),this.list.next=this.list.prev=this.list,this.push.apply(this,r([],n(t),!1))}return o.prototype.isBefore=function(e,t){return e<t},o.prototype.push=function(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{for(var o=i(n),s=o.next();!s.done;s=o.next()){var c=s.value,l=new a(c);l.next=this.list,l.prev=this.list.prev,this.list.prev=l,l.prev.next=l}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return this},o.prototype.pop=function(){var t=this.list.prev;return t.data===e.END?null:(this.list.prev=t.prev,t.prev.next=this.list,t.next=t.prev=null,t.data)},o.prototype.unshift=function(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{for(var o=i(n.slice(0).reverse()),s=o.next();!s.done;s=o.next()){var c=s.value,l=new a(c);l.next=this.list.next,l.prev=this.list,this.list.next=l,l.next.prev=l}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return this},o.prototype.shift=function(){var t=this.list.next;return t.data===e.END?null:(this.list.next=t.next,t.next.prev=this.list,t.next=t.prev=null,t.data)},o.prototype.remove=function(){for(var t,n,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var o=new Map;try{for(var s=i(r),c=s.next();!c.done;c=s.next()){var l=c.value;o.set(l,!0)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}for(var u=this.list.next;u.data!==e.END;){var d=u.next;o.has(u.data)&&(u.prev.next=u.next,u.next.prev=u.prev,u.next=u.prev=null),u=d}},o.prototype.clear=function(){return this.list.next.prev=this.list.prev.next=null,this.list.next=this.list.prev=this.list,this},o.prototype[Symbol.iterator]=function(){var n;return t(this,function(t){switch(t.label){case 0:n=this.list.next,t.label=1;case 1:return n.data===e.END?[3,3]:[4,n.data];case 2:return t.sent(),n=n.next,[3,1];case 3:return[2]}})},o.prototype.reversed=function(){var n;return t(this,function(t){switch(t.label){case 0:n=this.list.prev,t.label=1;case 1:return n.data===e.END?[3,3]:[4,n.data];case 2:return t.sent(),n=n.prev,[3,1];case 3:return[2]}})},o.prototype.insert=function(t,n){n===void 0&&(n=null),n===null&&(n=this.isBefore.bind(this));for(var r=new a(t),i=this.list.next;i.data!==e.END&&n(i.data,r.data);)i=i.next;return r.prev=i.prev,r.next=i,i.prev.next=i.prev=r,this},o.prototype.sort=function(e){var t,n;e===void 0&&(e=null),e===null&&(e=this.isBefore.bind(this));var r=[];try{for(var a=i(this),s=a.next();!s.done;s=a.next()){var c=s.value;r.push(new o(c))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}for(this.list.next=this.list.prev=this.list;r.length>1;){var l=r.shift(),u=r.shift();l.merge(u,e),r.push(l)}return r.length&&(this.list=r[0].list),this},o.prototype.merge=function(t,r){var i,a,o,s,c;r===void 0&&(r=null),r===null&&(r=this.isBefore.bind(this));for(var l=this.list.next,u=t.list.next;l.data!==e.END&&u.data!==e.END;)r(u.data,l.data)?(i=n([l,u],2),u.prev.next=i[0],l.prev.next=i[1],a=n([l.prev,u.prev],2),u.prev=a[0],l.prev=a[1],o=n([t.list,this.list],2),this.list.prev.next=o[0],t.list.prev.next=o[1],s=n([t.list.prev,this.list.prev],2),this.list.prev=s[0],t.list.prev=s[1],c=n([u.next,l],2),l=c[0],u=c[1]):l=l.next;return u.data!==e.END&&(this.list.prev.next=t.list.next,t.list.next.prev=this.list.prev,t.list.prev.next=this.list,this.list.prev=t.list.prev,t.list.next=t.list.prev=t.list),this},o}()})),w=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMathList=void 0,e.AbstractMathList=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.isBefore=function(e,t){return e.start.i<t.start.i||e.start.i===t.start.i&&e.start.n<t.start.n},n}(C().LinkedList)})),T=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.newState=e.STATE=e.AbstractMathItem=e.protoItem=void 0;function t(e,t,n,r,i,a,o){return o===void 0&&(o=null),{open:e,math:t,close:n,n:r,start:{n:i},end:{n:a},display:o}}e.protoItem=t,e.AbstractMathItem=function(){function t(t,n,r,i,a){r===void 0&&(r=!0),i===void 0&&(i={i:0,n:0,delim:``}),a===void 0&&(a={i:0,n:0,delim:``}),this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={},this._state=e.STATE.UNPROCESSED,this.math=t,this.inputJax=n,this.display=r,this.start=i,this.end=a,this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={}}return Object.defineProperty(t.prototype,"isEscaped",{get:function(){return this.display===null},enumerable:!1,configurable:!0}),t.prototype.render=function(e){e.renderActions.renderMath(this,e)},t.prototype.rerender=function(t,n){n===void 0&&(n=e.STATE.RERENDER),this.state()>=n&&this.state(n-1),t.renderActions.renderMath(this,t,n)},t.prototype.convert=function(t,n){n===void 0&&(n=e.STATE.LAST),t.renderActions.renderConvert(this,t,n)},t.prototype.compile=function(t){this.state()<e.STATE.COMPILED&&(this.root=this.inputJax.compile(this,t),this.state(e.STATE.COMPILED))},t.prototype.typeset=function(t){this.state()<e.STATE.TYPESET&&(this.typesetRoot=t.outputJax[this.isEscaped?`escaped`:`typeset`](this,t),this.state(e.STATE.TYPESET))},t.prototype.updateDocument=function(e){},t.prototype.removeFromDocument=function(e){e===void 0&&(e=!1)},t.prototype.setMetrics=function(e,t,n,r,i){this.metrics={em:e,ex:t,containerWidth:n,lineWidth:r,scale:i}},t.prototype.state=function(t,n){return t===void 0&&(t=null),n===void 0&&(n=!1),t!=null&&(t<e.STATE.INSERTED&&this._state>=e.STATE.INSERTED&&this.removeFromDocument(n),t<e.STATE.TYPESET&&this._state>=e.STATE.TYPESET&&(this.outputData={}),t<e.STATE.COMPILED&&this._state>=e.STATE.COMPILED&&(this.inputData={}),this._state=t),this._state},t.prototype.reset=function(t){t===void 0&&(t=!1),this.state(e.STATE.UNPROCESSED,t)},t}(),e.STATE={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4};function n(t,n){if(t in e.STATE)throw Error(`State `+t+` already exists`);e.STATE[t]=n}e.newState=n})),E=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractFactory=void 0,e.AbstractFactory=function(){function e(e){var n,r;e===void 0&&(e=null),this.defaultKind=`unknown`,this.nodeMap=new Map,this.node={},e===null&&(e=this.constructor.defaultNodes);try{for(var i=t(Object.keys(e)),a=i.next();!a.done;a=i.next()){var o=a.value;this.setNodeClass(o,e[o])}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}return e.prototype.create=function(e){var t=[...arguments].slice(1);return(this.node[e]||this.node[this.defaultKind]).apply(void 0,r([],n(t),!1))},e.prototype.setNodeClass=function(e,t){this.nodeMap.set(e,t);var i=this,a=this.nodeMap.get(e);this.node[e]=function(){var e=[...arguments];return new(a.bind.apply(a,r([void 0,i],n(e),!1)))}},e.prototype.getNodeClass=function(e){return this.nodeMap.get(e)},e.prototype.deleteNodeClass=function(e){this.nodeMap.delete(e),delete this.node[e]},e.prototype.nodeIsKind=function(e,t){return e instanceof this.getNodeClass(t)},e.prototype.getKinds=function(){return Array.from(this.nodeMap.keys())},e.defaultNodes={},e}()})),D=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractNodeFactory=void 0,e.AbstractNodeFactory=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.create=function(e,t,n){return t===void 0&&(t={}),n===void 0&&(n=[]),this.node[e](t,n)},n}(E().AbstractFactory)})),O=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.Attributes=e.INHERIT=void 0,e.INHERIT=`_inherit_`,e.Attributes=function(){function n(e,t){this.global=t,this.defaults=Object.create(t),this.inherited=Object.create(this.defaults),this.attributes=Object.create(this.inherited),Object.assign(this.defaults,e)}return n.prototype.set=function(e,t){this.attributes[e]=t},n.prototype.setList=function(e){Object.assign(this.attributes,e)},n.prototype.get=function(t){var n=this.attributes[t];return n===e.INHERIT&&(n=this.global[t]),n},n.prototype.getExplicit=function(e){if(this.attributes.hasOwnProperty(e))return this.attributes[e]},n.prototype.getList=function(){for(var e,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a={};try{for(var o=t(r),s=o.next();!s.done;s=o.next()){var c=s.value;a[c]=this.get(c)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return a},n.prototype.setInherited=function(e,t){this.inherited[e]=t},n.prototype.getInherited=function(e){return this.inherited[e]},n.prototype.getDefault=function(e){return this.defaults[e]},n.prototype.isSet=function(e){return this.attributes.hasOwnProperty(e)||this.inherited.hasOwnProperty(e)},n.prototype.hasDefault=function(e){return e in this.defaults},n.prototype.getExplicitNames=function(){return Object.keys(this.attributes)},n.prototype.getInheritedNames=function(){return Object.keys(this.inherited)},n.prototype.getDefaultNames=function(){return Object.keys(this.defaults)},n.prototype.getGlobalNames=function(){return Object.keys(this.global)},n.prototype.getAllAttributes=function(){return this.attributes},n.prototype.getAllInherited=function(){return this.inherited},n.prototype.getAllDefaults=function(){return this.defaults},n.prototype.getAllGlobals=function(){return this.global},n}()})),k=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractEmptyNode=e.AbstractNode=void 0;var i=function(){function e(e,t,n){var i,a;t===void 0&&(t={}),n===void 0&&(n=[]),this.factory=e,this.parent=null,this.properties={},this.childNodes=[];try{for(var o=r(Object.keys(t)),s=o.next();!s.done;s=o.next()){var c=s.value;this.setProperty(c,t[c])}}catch(e){i={error:e}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}n.length&&this.setChildren(n)}return Object.defineProperty(e.prototype,"kind",{get:function(){return`unknown`},enumerable:!1,configurable:!0}),e.prototype.setProperty=function(e,t){this.properties[e]=t},e.prototype.getProperty=function(e){return this.properties[e]},e.prototype.getPropertyNames=function(){return Object.keys(this.properties)},e.prototype.getAllProperties=function(){return this.properties},e.prototype.removeProperty=function(){for(var e,t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];try{for(var a=r(n),o=a.next();!o.done;o=a.next()){var s=o.value;delete this.properties[s]}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}},e.prototype.isKind=function(e){return this.factory.nodeIsKind(this,e)},e.prototype.setChildren=function(e){var t,n;this.childNodes=[];try{for(var i=r(e),a=i.next();!a.done;a=i.next()){var o=a.value;this.appendChild(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.appendChild=function(e){return this.childNodes.push(e),e.parent=this,e},e.prototype.replaceChild=function(e,t){var n=this.childIndex(t);return n!==null&&(this.childNodes[n]=e,e.parent=this,t.parent=null),e},e.prototype.removeChild=function(e){var t=this.childIndex(e);return t!==null&&(this.childNodes.splice(t,1),e.parent=null),e},e.prototype.childIndex=function(e){var t=this.childNodes.indexOf(e);return t===-1?null:t},e.prototype.copy=function(){var e,t,i=this.factory.create(this.kind);i.properties=n({},this.properties);try{for(var a=r(this.childNodes||[]),o=a.next();!o.done;o=a.next()){var s=o.value;s&&i.appendChild(s.copy())}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return i},e.prototype.findNodes=function(e){var t=[];return this.walkTree(function(n){n.isKind(e)&&t.push(n)}),t},e.prototype.walkTree=function(e,t){var n,i;e(this,t);try{for(var a=r(this.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value;s&&s.walkTree(e,t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return t},e.prototype.toString=function(){return this.kind+`(`+this.childNodes.join(`,`)+`)`},e}();e.AbstractNode=i,e.AbstractEmptyNode=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.setChildren=function(e){},n.prototype.appendChild=function(e){return e},n.prototype.replaceChild=function(e,t){return t},n.prototype.childIndex=function(e){return null},n.prototype.walkTree=function(e,t){return e(this,t),t},n.prototype.toString=function(){return this.kind},n}(i)})),A=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},i=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.XMLNode=e.TextNode=e.AbstractMmlEmptyNode=e.AbstractMmlBaseNode=e.AbstractMmlLayoutNode=e.AbstractMmlTokenNode=e.AbstractMmlNode=e.indentAttributes=e.TEXCLASSNAMES=e.TEXCLASS=void 0;var a=O(),o=k();e.TEXCLASS={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,NONE:-1},e.TEXCLASSNAMES=[`ORD`,`OP`,`BIN`,`REL`,`OPEN`,`CLOSE`,`PUNCT`,`INNER`,`VCENTER`];var s=[``,`thinmathspace`,`mediummathspace`,`thickmathspace`],c=[[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]];e.indentAttributes=[`indentalign`,`indentalignfirst`,`indentshift`,`indentshiftfirst`];var l=function(o){t(l,o);function l(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=o.call(this,e)||this;return r.prevClass=null,r.prevLevel=null,r.texclass=null,r.arity<0&&(r.childNodes=[e.create(`inferredMrow`)],r.childNodes[0].parent=r),r.setChildren(n),r.attributes=new a.Attributes(e.getNodeClass(r.kind).defaults,e.getNodeClass(`math`).defaults),r.attributes.setList(t),r}return l.prototype.copy=function(e){var t,i,a,o;e===void 0&&(e=!1);var s=this.factory.create(this.kind);if(s.properties=n({},this.properties),this.attributes){var c=this.attributes.getAllAttributes();try{for(var l=r(Object.keys(c)),u=l.next();!u.done;u=l.next()){var d=u.value;(d!==`id`||e)&&s.attributes.set(d,c[d])}}catch(e){t={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(t)throw t.error}}}if(this.childNodes&&this.childNodes.length){var f=this.childNodes;f.length===1&&f[0].isInferred&&(f=f[0].childNodes);try{for(var p=r(f),m=p.next();!m.done;m=p.next()){var h=m.value;h?s.appendChild(h.copy()):s.childNodes.push(null)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(a)throw a.error}}}return s},Object.defineProperty(l.prototype,"texClass",{get:function(){return this.texclass},set:function(e){this.texclass=e},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"arity",{get:function(){return 1/0},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"Parent",{get:function(){for(var e=this.parent;e&&e.notParent;)e=e.Parent;return e},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),l.prototype.setChildren=function(e){return this.arity<0?this.childNodes[0].setChildren(e):o.prototype.setChildren.call(this,e)},l.prototype.appendChild=function(e){var t,n,i=this;if(this.arity<0)return this.childNodes[0].appendChild(e),e;if(e.isInferred){if(this.arity===1/0)return e.childNodes.forEach(function(e){return o.prototype.appendChild.call(i,e)}),e;var a=e;e=this.factory.create(`mrow`),e.setChildren(a.childNodes),e.attributes=a.attributes;try{for(var s=r(a.getPropertyNames()),c=s.next();!c.done;c=s.next()){var l=c.value;e.setProperty(l,a.getProperty(l))}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}}return o.prototype.appendChild.call(this,e)},l.prototype.replaceChild=function(e,t){return this.arity<0?(this.childNodes[0].replaceChild(e,t),e):o.prototype.replaceChild.call(this,e,t)},l.prototype.core=function(){return this},l.prototype.coreMO=function(){return this},l.prototype.coreIndex=function(){return 0},l.prototype.childPosition=function(){for(var e,t,n=this,i=n.parent;i&&i.notParent;)n=i,i=i.parent;if(i){var a=0;try{for(var o=r(i.childNodes),s=o.next();!s.done;s=o.next()){if(s.value===n)return a;a++}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}return null},l.prototype.setTeXclass=function(e){return this.getPrevClass(e),this.texClass==null?e:this},l.prototype.updateTeXclass=function(e){e&&(this.prevClass=e.prevClass,this.prevLevel=e.prevLevel,e.prevClass=e.prevLevel=null,this.texClass=e.texClass)},l.prototype.getPrevClass=function(e){e&&(this.prevClass=e.texClass,this.prevLevel=e.attributes.get(`scriptlevel`))},l.prototype.texSpacing=function(){var t=this.prevClass==null?e.TEXCLASS.NONE:this.prevClass,n=this.texClass||e.TEXCLASS.ORD;if(t===e.TEXCLASS.NONE||n===e.TEXCLASS.NONE)return``;t===e.TEXCLASS.VCENTER&&(t=e.TEXCLASS.ORD),n===e.TEXCLASS.VCENTER&&(n=e.TEXCLASS.ORD);var r=c[t][n];return(this.prevLevel>0||this.attributes.get(`scriptlevel`)>0)&&r>=0?``:s[Math.abs(r)]},l.prototype.hasSpacingAttributes=function(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()},l.prototype.setInheritedAttributes=function(e,t,n,a){var o,s;e===void 0&&(e={}),t===void 0&&(t=!1),n===void 0&&(n=0),a===void 0&&(a=!1);var c=this.attributes.getAllDefaults();try{for(var u=r(Object.keys(e)),d=u.next();!d.done;d=u.next()){var f=d.value;if(c.hasOwnProperty(f)||l.alwaysInherit.hasOwnProperty(f)){var p=i(e[f],2),m=p[0],h=p[1];((l.noInherit[m]||{})[this.kind]||{})[f]||this.attributes.setInherited(f,h)}}}catch(e){o={error:e}}finally{try{d&&!d.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}this.attributes.getExplicit(`displaystyle`)===void 0&&this.attributes.setInherited(`displaystyle`,t),this.attributes.getExplicit(`scriptlevel`)===void 0&&this.attributes.setInherited(`scriptlevel`,n),a&&this.setProperty(`texprimestyle`,a);var g=this.arity;if(g>=0&&g!==1/0&&(g===1&&this.childNodes.length===0||g!==1&&this.childNodes.length!==g))if(g<this.childNodes.length)this.childNodes=this.childNodes.slice(0,g);else for(;this.childNodes.length<g;)this.appendChild(this.factory.create(`mrow`));this.setChildInheritedAttributes(e,t,n,a)},l.prototype.setChildInheritedAttributes=function(e,t,n,i){var a,o;try{for(var s=r(this.childNodes),c=s.next();!c.done;c=s.next())c.value.setInheritedAttributes(e,t,n,i)}catch(e){a={error:e}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}},l.prototype.addInheritedAttributes=function(e,t){var i,a,o=n({},e);try{for(var s=r(Object.keys(t)),c=s.next();!c.done;c=s.next()){var l=c.value;l!==`displaystyle`&&l!==`scriptlevel`&&l!==`style`&&(o[l]=[this.kind,t[l]])}}catch(e){i={error:e}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o},l.prototype.inheritAttributesFrom=function(e){var t=e.attributes,n=t.get(`displaystyle`),r=t.get(`scriptlevel`),i=t.isSet(`mathsize`)?{mathsize:[`math`,t.get(`mathsize`)]}:{},a=e.getProperty(`texprimestyle`)||!1;this.setInheritedAttributes(i,n,r,a)},l.prototype.verifyTree=function(e){if(e===void 0&&(e=null),e!==null){this.verifyAttributes(e);var t=this.arity;e.checkArity&&t>=0&&t!==1/0&&(t===1&&this.childNodes.length===0||t!==1&&this.childNodes.length!==t)&&this.mError(`Wrong number of children for "`+this.kind+`" node`,e,!0),this.verifyChildren(e)}},l.prototype.verifyAttributes=function(e){var t,n;if(e.checkAttributes){var i=this.attributes,a=[];try{for(var o=r(i.getExplicitNames()),s=o.next();!s.done;s=o.next()){var c=s.value;c.substr(0,5)!==`data-`&&i.getDefault(c)===void 0&&!c.match(/^(?:class|style|id|(?:xlink:)?href)$/)&&a.push(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}a.length&&this.mError(`Unknown attributes for `+this.kind+` node: `+a.join(`, `),e)}},l.prototype.verifyChildren=function(e){var t,n;try{for(var i=r(this.childNodes),a=i.next();!a.done;a=i.next())a.value.verifyTree(e)}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},l.prototype.mError=function(e,t,n){if(n===void 0&&(n=!1),this.parent&&this.parent.isKind(`merror`))return null;var r=this.factory.create(`merror`);if(r.attributes.set(`data-mjx-message`,e),t.fullErrors||n){var i=this.factory.create(`mtext`),a=this.factory.create(`text`);a.setText(t.fullErrors?e:this.kind),i.appendChild(a),r.appendChild(i),this.parent.replaceChild(r,this)}else this.parent.replaceChild(r,this),r.appendChild(this);return r},l.defaults={mathbackground:a.INHERIT,mathcolor:a.INHERIT,mathsize:a.INHERIT,dir:a.INHERIT},l.noInherit={mstyle:{mpadded:{width:!0,height:!0,depth:!0,lspace:!0,voffset:!0},mtable:{width:!0,height:!0,depth:!0,align:!0}},maligngroup:{mrow:{groupalign:!0},mtable:{groupalign:!0}}},l.alwaysInherit={scriptminsize:!0,scriptsizemultiplier:!0},l.verifyDefaults={checkArity:!0,checkAttributes:!1,fullErrors:!1,fixMmultiscripts:!0,fixMtables:!0},l}(o.AbstractNode);e.AbstractMmlNode=l,e.AbstractMmlTokenNode=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(i.prototype,"isToken",{get:function(){return!0},enumerable:!1,configurable:!0}),i.prototype.getText=function(){var e,t,n=``;try{for(var i=r(this.childNodes),a=i.next();!a.done;a=i.next()){var o=a.value;o instanceof d&&(n+=o.getText())}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n},i.prototype.setChildInheritedAttributes=function(e,t,n,i){var a,o;try{for(var s=r(this.childNodes),c=s.next();!c.done;c=s.next()){var u=c.value;u instanceof l&&u.setInheritedAttributes(e,t,n,i)}}catch(e){a={error:e}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(a)throw a.error}}},i.prototype.walkTree=function(e,t){var n,i;e(this,t);try{for(var a=r(this.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value;s instanceof l&&s.walkTree(e,t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return t},i.defaults=n(n({},l.defaults),{mathvariant:`normal`,mathsize:a.INHERIT}),i}(l),e.AbstractMmlLayoutNode=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"isSpacelike",{get:function(){return this.childNodes[0].isSpacelike},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),n.prototype.core=function(){return this.childNodes[0]},n.prototype.coreMO=function(){return this.childNodes[0].coreMO()},n.prototype.setTeXclass=function(e){return e=this.childNodes[0].setTeXclass(e),this.updateTeXclass(this.childNodes[0]),e},n.defaults=l.defaults,n}(l),e.AbstractMmlBaseNode=function(n){t(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(i.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),i.prototype.core=function(){return this.childNodes[0]},i.prototype.coreMO=function(){return this.childNodes[0].coreMO()},i.prototype.setTeXclass=function(t){var n,i;this.getPrevClass(t),this.texClass=e.TEXCLASS.ORD;var a=this.childNodes[0];a?this.isEmbellished||a.isKind(`mi`)?(t=a.setTeXclass(t),this.updateTeXclass(this.core())):(a.setTeXclass(null),t=this):t=this;try{for(var o=r(this.childNodes.slice(1)),s=o.next();!s.done;s=o.next()){var c=s.value;c&&c.setTeXclass(null)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return t},i.defaults=l.defaults,i}(l);var u=function(n){t(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Parent",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"texClass",{get:function(){return e.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"prevClass",{get:function(){return e.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"prevLevel",{get:function(){return 0},enumerable:!1,configurable:!0}),r.prototype.hasSpacingAttributes=function(){return!1},Object.defineProperty(r.prototype,"attributes",{get:function(){return null},enumerable:!1,configurable:!0}),r.prototype.core=function(){return this},r.prototype.coreMO=function(){return this},r.prototype.coreIndex=function(){return 0},r.prototype.childPosition=function(){return 0},r.prototype.setTeXclass=function(e){return e},r.prototype.texSpacing=function(){return``},r.prototype.setInheritedAttributes=function(e,t,n,r){},r.prototype.inheritAttributesFrom=function(e){},r.prototype.verifyTree=function(e){},r.prototype.mError=function(e,t,n){return n===void 0&&(n=!1),null},r}(o.AbstractEmptyNode);e.AbstractMmlEmptyNode=u;var d=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.text=``,t}return Object.defineProperty(n.prototype,"kind",{get:function(){return`text`},enumerable:!1,configurable:!0}),n.prototype.getText=function(){return this.text},n.prototype.setText=function(e){return this.text=e,this},n.prototype.copy=function(){return this.factory.create(this.kind).setText(this.getText())},n.prototype.toString=function(){return this.text},n}(u);e.TextNode=d,e.XMLNode=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.xml=null,t.adaptor=null,t}return Object.defineProperty(n.prototype,"kind",{get:function(){return`XML`},enumerable:!1,configurable:!0}),n.prototype.getXML=function(){return this.xml},n.prototype.setXML=function(e,t){return t===void 0&&(t=null),this.xml=e,this.adaptor=t,this},n.prototype.getSerializedXML=function(){return this.adaptor.serializeXML(this.xml)},n.prototype.copy=function(){return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml))},n.prototype.toString=function(){return`XML data`},n}(u)})),j=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMath=void 0;var r=A();e.MmlMath=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(i.prototype,"kind",{get:function(){return`math`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),i.prototype.setChildInheritedAttributes=function(t,n,r,i){this.attributes.get(`mode`)===`display`&&this.attributes.setInherited(`display`,`block`),t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),n=!!this.attributes.get(`displaystyle`)||!this.attributes.get(`displaystyle`)&&this.attributes.get(`display`)===`block`,this.attributes.setInherited(`displaystyle`,n),r=this.attributes.get(`scriptlevel`)||this.constructor.defaults.scriptlevel,e.prototype.setChildInheritedAttributes.call(this,t,n,r,i)},i.defaults=n(n({},r.AbstractMmlLayoutNode.defaults),{mathvariant:`normal`,mathsize:`normal`,mathcolor:``,mathbackground:`transparent`,dir:`ltr`,scriptlevel:0,displaystyle:!1,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:`⁢`,indentshift:`auto`,indentalign:`auto`,indenttarget:``,indentalignfirst:`indentalign`,indentshiftfirst:`indentshift`,indentalignlast:`indentalign`,indentshiftlast:`indentshift`}),i}(r.AbstractMmlLayoutNode)})),M=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMi=void 0;var r=A();e.MmlMi=function(e){t(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=r.TEXCLASS.ORD,t}return Object.defineProperty(i.prototype,"kind",{get:function(){return`mi`},enumerable:!1,configurable:!0}),i.prototype.setInheritedAttributes=function(t,n,r,a){t===void 0&&(t={}),n===void 0&&(n=!1),r===void 0&&(r=0),a===void 0&&(a=!1),e.prototype.setInheritedAttributes.call(this,t,n,r,a),this.getText().match(i.singleCharacter)&&!t.mathvariant&&this.attributes.setInherited(`mathvariant`,`italic`)},i.prototype.setTeXclass=function(e){this.getPrevClass(e);var t=this.getText();return t.length>1&&t.match(i.operatorName)&&this.attributes.get(`mathvariant`)===`normal`&&this.getProperty(`autoOP`)===void 0&&this.getProperty(`texClass`)===void 0&&(this.texClass=r.TEXCLASS.OP,this.setProperty(`autoOP`,!0)),this},i.defaults=n({},r.AbstractMmlTokenNode.defaults),i.operatorName=/^[a-z][a-z0-9]*$/i,i.singleCharacter=/^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/,i}(r.AbstractMmlTokenNode)})),ee=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMn=void 0;var r=A();e.MmlMn=function(e){t(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=r.TEXCLASS.ORD,t}return Object.defineProperty(i.prototype,"kind",{get:function(){return`mn`},enumerable:!1,configurable:!0}),i.defaults=n({},r.AbstractMmlTokenNode.defaults),i}(r.AbstractMmlTokenNode)})),N=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.OPTABLE=e.MMLSPACING=e.getRange=e.RANGES=e.MO=e.OPDEF=void 0;var n=A();function r(e,t,r,i){return r===void 0&&(r=n.TEXCLASS.BIN),i===void 0&&(i=null),[e,t,r,i]}e.OPDEF=r,e.MO={ORD:r(0,0,n.TEXCLASS.ORD),ORD11:r(1,1,n.TEXCLASS.ORD),ORD21:r(2,1,n.TEXCLASS.ORD),ORD02:r(0,2,n.TEXCLASS.ORD),ORD55:r(5,5,n.TEXCLASS.ORD),NONE:r(0,0,n.TEXCLASS.NONE),OP:r(1,2,n.TEXCLASS.OP,{largeop:!0,movablelimits:!0,symmetric:!0}),OPFIXED:r(1,2,n.TEXCLASS.OP,{largeop:!0,movablelimits:!0}),INTEGRAL:r(0,1,n.TEXCLASS.OP,{largeop:!0,symmetric:!0}),INTEGRAL2:r(1,2,n.TEXCLASS.OP,{largeop:!0,symmetric:!0}),BIN3:r(3,3,n.TEXCLASS.BIN),BIN4:r(4,4,n.TEXCLASS.BIN),BIN01:r(0,1,n.TEXCLASS.BIN),BIN5:r(5,5,n.TEXCLASS.BIN),TALLBIN:r(4,4,n.TEXCLASS.BIN,{stretchy:!0}),BINOP:r(4,4,n.TEXCLASS.BIN,{largeop:!0,movablelimits:!0}),REL:r(5,5,n.TEXCLASS.REL),REL1:r(1,1,n.TEXCLASS.REL,{stretchy:!0}),REL4:r(4,4,n.TEXCLASS.REL),RELSTRETCH:r(5,5,n.TEXCLASS.REL,{stretchy:!0}),RELACCENT:r(5,5,n.TEXCLASS.REL,{accent:!0}),WIDEREL:r(5,5,n.TEXCLASS.REL,{accent:!0,stretchy:!0}),OPEN:r(0,0,n.TEXCLASS.OPEN,{fence:!0,stretchy:!0,symmetric:!0}),CLOSE:r(0,0,n.TEXCLASS.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}),INNER:r(0,0,n.TEXCLASS.INNER),PUNCT:r(0,3,n.TEXCLASS.PUNCT),ACCENT:r(0,0,n.TEXCLASS.ORD,{accent:!0}),WIDEACCENT:r(0,0,n.TEXCLASS.ORD,{accent:!0,stretchy:!0})},e.RANGES=[[32,127,n.TEXCLASS.REL,`mo`],[160,191,n.TEXCLASS.ORD,`mo`],[192,591,n.TEXCLASS.ORD,`mi`],[688,879,n.TEXCLASS.ORD,`mo`],[880,6688,n.TEXCLASS.ORD,`mi`],[6832,6911,n.TEXCLASS.ORD,`mo`],[6912,7615,n.TEXCLASS.ORD,`mi`],[7616,7679,n.TEXCLASS.ORD,`mo`],[7680,8191,n.TEXCLASS.ORD,`mi`],[8192,8303,n.TEXCLASS.ORD,`mo`],[8304,8351,n.TEXCLASS.ORD,`mo`],[8448,8527,n.TEXCLASS.ORD,`mi`],[8528,8591,n.TEXCLASS.ORD,`mn`],[8592,8703,n.TEXCLASS.REL,`mo`],[8704,8959,n.TEXCLASS.BIN,`mo`],[8960,9215,n.TEXCLASS.ORD,`mo`],[9312,9471,n.TEXCLASS.ORD,`mn`],[9472,10223,n.TEXCLASS.ORD,`mo`],[10224,10239,n.TEXCLASS.REL,`mo`],[10240,10495,n.TEXCLASS.ORD,`mtext`],[10496,10623,n.TEXCLASS.REL,`mo`],[10624,10751,n.TEXCLASS.ORD,`mo`],[10752,11007,n.TEXCLASS.BIN,`mo`],[11008,11055,n.TEXCLASS.ORD,`mo`],[11056,11087,n.TEXCLASS.REL,`mo`],[11088,11263,n.TEXCLASS.ORD,`mo`],[11264,11744,n.TEXCLASS.ORD,`mi`],[11776,11903,n.TEXCLASS.ORD,`mo`],[11904,12255,n.TEXCLASS.ORD,`mi`,`normal`],[12272,12351,n.TEXCLASS.ORD,`mo`],[12352,42143,n.TEXCLASS.ORD,`mi`,`normal`],[42192,43055,n.TEXCLASS.ORD,`mi`],[43056,43071,n.TEXCLASS.ORD,`mn`],[43072,55295,n.TEXCLASS.ORD,`mi`],[63744,64255,n.TEXCLASS.ORD,`mi`,`normal`],[64256,65023,n.TEXCLASS.ORD,`mi`],[65024,65135,n.TEXCLASS.ORD,`mo`],[65136,65791,n.TEXCLASS.ORD,`mi`],[65792,65935,n.TEXCLASS.ORD,`mn`],[65936,74751,n.TEXCLASS.ORD,`mi`,`normal`],[74752,74879,n.TEXCLASS.ORD,`mn`],[74880,113823,n.TEXCLASS.ORD,`mi`,`normal`],[113824,119391,n.TEXCLASS.ORD,`mo`],[119648,119679,n.TEXCLASS.ORD,`mn`],[119808,120781,n.TEXCLASS.ORD,`mi`],[120782,120831,n.TEXCLASS.ORD,`mn`],[122624,129023,n.TEXCLASS.ORD,`mo`],[129024,129279,n.TEXCLASS.REL,`mo`],[129280,129535,n.TEXCLASS.ORD,`mo`],[131072,195103,n.TEXCLASS.ORD,`mi`,`normnal`]];function i(n){var r,i,a=n.codePointAt(0);try{for(var o=t(e.RANGES),s=o.next();!s.done;s=o.next()){var c=s.value;if(a<=c[1]){if(a>=c[0])return c;break}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return null}e.getRange=i,e.MMLSPACING=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3]],e.OPTABLE={prefix:{"(":e.MO.OPEN,"+":e.MO.BIN01,"-":e.MO.BIN01,"[":e.MO.OPEN,"{":e.MO.OPEN,"|":e.MO.OPEN,"||":[0,0,n.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¬":e.MO.ORD21,"±":e.MO.BIN01,"‖":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"‘":[0,0,n.TEXCLASS.OPEN,{fence:!0}],"“":[0,0,n.TEXCLASS.OPEN,{fence:!0}],ⅅ:e.MO.ORD21,ⅆ:r(2,0,n.TEXCLASS.ORD),"∀":e.MO.ORD21,"∂":e.MO.ORD21,"∃":e.MO.ORD21,"∄":e.MO.ORD21,"∇":e.MO.ORD21,"∏":e.MO.OP,"∐":e.MO.OP,"∑":e.MO.OP,"−":e.MO.BIN01,"∓":e.MO.BIN01,"√":[1,1,n.TEXCLASS.ORD,{stretchy:!0}],"∛":e.MO.ORD11,"∜":e.MO.ORD11,"∠":e.MO.ORD,"∡":e.MO.ORD,"∢":e.MO.ORD,"∫":e.MO.INTEGRAL,"∬":e.MO.INTEGRAL,"∭":e.MO.INTEGRAL,"∮":e.MO.INTEGRAL,"∯":e.MO.INTEGRAL,"∰":e.MO.INTEGRAL,"∱":e.MO.INTEGRAL,"∲":e.MO.INTEGRAL,"∳":e.MO.INTEGRAL,"⋀":e.MO.OP,"⋁":e.MO.OP,"⋂":e.MO.OP,"⋃":e.MO.OP,"⌈":e.MO.OPEN,"⌊":e.MO.OPEN,"〈":e.MO.OPEN,"❲":e.MO.OPEN,"⟦":e.MO.OPEN,"⟨":e.MO.OPEN,"⟪":e.MO.OPEN,"⟬":e.MO.OPEN,"⟮":e.MO.OPEN,"⦀":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦃":e.MO.OPEN,"⦅":e.MO.OPEN,"⦇":e.MO.OPEN,"⦉":e.MO.OPEN,"⦋":e.MO.OPEN,"⦍":e.MO.OPEN,"⦏":e.MO.OPEN,"⦑":e.MO.OPEN,"⦓":e.MO.OPEN,"⦕":e.MO.OPEN,"⦗":e.MO.OPEN,"⧼":e.MO.OPEN,"⨀":e.MO.OP,"⨁":e.MO.OP,"⨂":e.MO.OP,"⨃":e.MO.OP,"⨄":e.MO.OP,"⨅":e.MO.OP,"⨆":e.MO.OP,"⨇":e.MO.OP,"⨈":e.MO.OP,"⨉":e.MO.OP,"⨊":e.MO.OP,"⨋":e.MO.INTEGRAL2,"⨌":e.MO.INTEGRAL,"⨍":e.MO.INTEGRAL2,"⨎":e.MO.INTEGRAL2,"⨏":e.MO.INTEGRAL2,"⨐":e.MO.OP,"⨑":e.MO.OP,"⨒":e.MO.OP,"⨓":e.MO.OP,"⨔":e.MO.OP,"⨕":e.MO.INTEGRAL2,"⨖":e.MO.INTEGRAL2,"⨗":e.MO.INTEGRAL2,"⨘":e.MO.INTEGRAL2,"⨙":e.MO.INTEGRAL2,"⨚":e.MO.INTEGRAL2,"⨛":e.MO.INTEGRAL2,"⨜":e.MO.INTEGRAL2,"⫼":e.MO.OP,"⫿":e.MO.OP},postfix:{"!!":r(1,0),"!":[1,0,n.TEXCLASS.CLOSE,null],'"':e.MO.ACCENT,"&":e.MO.ORD,")":e.MO.CLOSE,"++":r(0,0),"--":r(0,0),"..":r(0,0),"...":e.MO.ORD,"'":e.MO.ACCENT,"]":e.MO.CLOSE,"^":e.MO.WIDEACCENT,_:e.MO.WIDEACCENT,"`":e.MO.ACCENT,"|":e.MO.CLOSE,"}":e.MO.CLOSE,"~":e.MO.WIDEACCENT,"||":[0,0,n.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¨":e.MO.ACCENT,ª:e.MO.ACCENT,"¯":e.MO.WIDEACCENT,"°":e.MO.ORD,"²":e.MO.ACCENT,"³":e.MO.ACCENT,"´":e.MO.ACCENT,"¸":e.MO.ACCENT,"¹":e.MO.ACCENT,º:e.MO.ACCENT,ˆ:e.MO.WIDEACCENT,ˇ:e.MO.WIDEACCENT,ˉ:e.MO.WIDEACCENT,ˊ:e.MO.ACCENT,ˋ:e.MO.ACCENT,ˍ:e.MO.WIDEACCENT,"˘":e.MO.ACCENT,"˙":e.MO.ACCENT,"˚":e.MO.ACCENT,"˜":e.MO.WIDEACCENT,"˝":e.MO.ACCENT,"˷":e.MO.WIDEACCENT,"̂":e.MO.WIDEACCENT,"̑":e.MO.ACCENT,"϶":e.MO.REL,"‖":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"’":[0,0,n.TEXCLASS.CLOSE,{fence:!0}],"‚":e.MO.ACCENT,"‛":e.MO.ACCENT,"”":[0,0,n.TEXCLASS.CLOSE,{fence:!0}],"„":e.MO.ACCENT,"‟":e.MO.ACCENT,"′":e.MO.ORD,"″":e.MO.ACCENT,"‴":e.MO.ACCENT,"‵":e.MO.ACCENT,"‶":e.MO.ACCENT,"‷":e.MO.ACCENT,"‾":e.MO.WIDEACCENT,"⁗":e.MO.ACCENT,"⃛":e.MO.ACCENT,"⃜":e.MO.ACCENT,"⌉":e.MO.CLOSE,"⌋":e.MO.CLOSE,"〉":e.MO.CLOSE,"⎴":e.MO.WIDEACCENT,"⎵":e.MO.WIDEACCENT,"⏜":e.MO.WIDEACCENT,"⏝":e.MO.WIDEACCENT,"⏞":e.MO.WIDEACCENT,"⏟":e.MO.WIDEACCENT,"⏠":e.MO.WIDEACCENT,"⏡":e.MO.WIDEACCENT,"■":e.MO.BIN3,"□":e.MO.BIN3,"▪":e.MO.BIN3,"▫":e.MO.BIN3,"▭":e.MO.BIN3,"▮":e.MO.BIN3,"▯":e.MO.BIN3,"▰":e.MO.BIN3,"▱":e.MO.BIN3,"▲":e.MO.BIN4,"▴":e.MO.BIN4,"▶":e.MO.BIN4,"▷":e.MO.BIN4,"▸":e.MO.BIN4,"▼":e.MO.BIN4,"▾":e.MO.BIN4,"◀":e.MO.BIN4,"◁":e.MO.BIN4,"◂":e.MO.BIN4,"◄":e.MO.BIN4,"◅":e.MO.BIN4,"◆":e.MO.BIN4,"◇":e.MO.BIN4,"◈":e.MO.BIN4,"◉":e.MO.BIN4,"◌":e.MO.BIN4,"◍":e.MO.BIN4,"◎":e.MO.BIN4,"●":e.MO.BIN4,"◖":e.MO.BIN4,"◗":e.MO.BIN4,"◦":e.MO.BIN4,"♭":e.MO.ORD02,"♮":e.MO.ORD02,"♯":e.MO.ORD02,"❳":e.MO.CLOSE,"⟧":e.MO.CLOSE,"⟩":e.MO.CLOSE,"⟫":e.MO.CLOSE,"⟭":e.MO.CLOSE,"⟯":e.MO.CLOSE,"⦀":[0,0,n.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦄":e.MO.CLOSE,"⦆":e.MO.CLOSE,"⦈":e.MO.CLOSE,"⦊":e.MO.CLOSE,"⦌":e.MO.CLOSE,"⦎":e.MO.CLOSE,"⦐":e.MO.CLOSE,"⦒":e.MO.CLOSE,"⦔":e.MO.CLOSE,"⦖":e.MO.CLOSE,"⦘":e.MO.CLOSE,"⧽":e.MO.CLOSE},infix:{"!=":e.MO.BIN4,"#":e.MO.ORD,$:e.MO.ORD,"%":[3,3,n.TEXCLASS.ORD,null],"&&":e.MO.BIN4,"":e.MO.ORD,"*":e.MO.BIN3,"**":r(1,1),"*=":e.MO.BIN4,"+":e.MO.BIN4,"+=":e.MO.BIN4,",":[0,3,n.TEXCLASS.PUNCT,{linebreakstyle:`after`,separator:!0}],"-":e.MO.BIN4,"-=":e.MO.BIN4,"->":e.MO.BIN5,".":[0,3,n.TEXCLASS.PUNCT,{separator:!0}],"/":e.MO.ORD11,"//":r(1,1),"/=":e.MO.BIN4,":":[1,2,n.TEXCLASS.REL,null],":=":e.MO.BIN4,";":[0,3,n.TEXCLASS.PUNCT,{linebreakstyle:`after`,separator:!0}],"<":e.MO.REL,"<=":e.MO.BIN5,"<>":r(1,1),"=":e.MO.REL,"==":e.MO.BIN4,">":e.MO.REL,">=":e.MO.BIN5,"?":[1,1,n.TEXCLASS.CLOSE,null],"@":e.MO.ORD11,"\\":e.MO.ORD,"^":e.MO.ORD11,_:e.MO.ORD11,"|":[2,2,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"||":[2,2,n.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[2,2,n.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"±":e.MO.BIN4,"·":e.MO.BIN4,"×":e.MO.BIN4,"÷":e.MO.BIN4,ʹ:e.MO.ORD,"̀":e.MO.ACCENT,"́":e.MO.ACCENT,"̃":e.MO.WIDEACCENT,"̄":e.MO.ACCENT,"̆":e.MO.ACCENT,"̇":e.MO.ACCENT,"̈":e.MO.ACCENT,"̌":e.MO.ACCENT,"̲":e.MO.WIDEACCENT,"̸":e.MO.REL4,"―":[0,0,n.TEXCLASS.ORD,{stretchy:!0}],"‗":[0,0,n.TEXCLASS.ORD,{stretchy:!0}],"†":e.MO.BIN3,"‡":e.MO.BIN3,"•":e.MO.BIN4,"…":e.MO.INNER,"⁃":e.MO.BIN4,"⁄":e.MO.TALLBIN,"⁡":e.MO.NONE,"⁢":e.MO.NONE,"⁣":[0,0,n.TEXCLASS.NONE,{linebreakstyle:`after`,separator:!0}],"⁤":e.MO.NONE,"⃗":e.MO.ACCENT,ℑ:e.MO.ORD,ℓ:e.MO.ORD,℘:e.MO.ORD,ℜ:e.MO.ORD,"←":e.MO.WIDEREL,"↑":e.MO.RELSTRETCH,"→":e.MO.WIDEREL,"↓":e.MO.RELSTRETCH,"↔":e.MO.WIDEREL,"↕":e.MO.RELSTRETCH,"↖":e.MO.RELSTRETCH,"↗":e.MO.RELSTRETCH,"↘":e.MO.RELSTRETCH,"↙":e.MO.RELSTRETCH,"↚":e.MO.RELACCENT,"↛":e.MO.RELACCENT,"↜":e.MO.WIDEREL,"↝":e.MO.WIDEREL,"↞":e.MO.WIDEREL,"↟":e.MO.WIDEREL,"↠":e.MO.WIDEREL,"↡":e.MO.RELSTRETCH,"↢":e.MO.WIDEREL,"↣":e.MO.WIDEREL,"↤":e.MO.WIDEREL,"↥":e.MO.RELSTRETCH,"↦":e.MO.WIDEREL,"↧":e.MO.RELSTRETCH,"↨":e.MO.RELSTRETCH,"↩":e.MO.WIDEREL,"↪":e.MO.WIDEREL,"↫":e.MO.WIDEREL,"↬":e.MO.WIDEREL,"↭":e.MO.WIDEREL,"↮":e.MO.RELACCENT,"↯":e.MO.RELSTRETCH,"↰":e.MO.RELSTRETCH,"↱":e.MO.RELSTRETCH,"↲":e.MO.RELSTRETCH,"↳":e.MO.RELSTRETCH,"↴":e.MO.RELSTRETCH,"↵":e.MO.RELSTRETCH,"↶":e.MO.RELACCENT,"↷":e.MO.RELACCENT,"↸":e.MO.REL,"↹":e.MO.WIDEREL,"↺":e.MO.REL,"↻":e.MO.REL,"↼":e.MO.WIDEREL,"↽":e.MO.WIDEREL,"↾":e.MO.RELSTRETCH,"↿":e.MO.RELSTRETCH,"⇀":e.MO.WIDEREL,"⇁":e.MO.WIDEREL,"⇂":e.MO.RELSTRETCH,"⇃":e.MO.RELSTRETCH,"⇄":e.MO.WIDEREL,"⇅":e.MO.RELSTRETCH,"⇆":e.MO.WIDEREL,"⇇":e.MO.WIDEREL,"⇈":e.MO.RELSTRETCH,"⇉":e.MO.WIDEREL,"⇊":e.MO.RELSTRETCH,"⇋":e.MO.WIDEREL,"⇌":e.MO.WIDEREL,"⇍":e.MO.RELACCENT,"⇎":e.MO.RELACCENT,"⇏":e.MO.RELACCENT,"⇐":e.MO.WIDEREL,"⇑":e.MO.RELSTRETCH,"⇒":e.MO.WIDEREL,"⇓":e.MO.RELSTRETCH,"⇔":e.MO.WIDEREL,"⇕":e.MO.RELSTRETCH,"⇖":e.MO.RELSTRETCH,"⇗":e.MO.RELSTRETCH,"⇘":e.MO.RELSTRETCH,"⇙":e.MO.RELSTRETCH,"⇚":e.MO.WIDEREL,"⇛":e.MO.WIDEREL,"⇜":e.MO.WIDEREL,"⇝":e.MO.WIDEREL,"⇞":e.MO.REL,"⇟":e.MO.REL,"⇠":e.MO.WIDEREL,"⇡":e.MO.RELSTRETCH,"⇢":e.MO.WIDEREL,"⇣":e.MO.RELSTRETCH,"⇤":e.MO.WIDEREL,"⇥":e.MO.WIDEREL,"⇦":e.MO.WIDEREL,"⇧":e.MO.RELSTRETCH,"⇨":e.MO.WIDEREL,"⇩":e.MO.RELSTRETCH,"⇪":e.MO.RELSTRETCH,"⇫":e.MO.RELSTRETCH,"⇬":e.MO.RELSTRETCH,"⇭":e.MO.RELSTRETCH,"⇮":e.MO.RELSTRETCH,"⇯":e.MO.RELSTRETCH,"⇰":e.MO.WIDEREL,"⇱":e.MO.REL,"⇲":e.MO.REL,"⇳":e.MO.RELSTRETCH,"⇴":e.MO.RELACCENT,"⇵":e.MO.RELSTRETCH,"⇶":e.MO.WIDEREL,"⇷":e.MO.RELACCENT,"⇸":e.MO.RELACCENT,"⇹":e.MO.RELACCENT,"⇺":e.MO.RELACCENT,"⇻":e.MO.RELACCENT,"⇼":e.MO.RELACCENT,"⇽":e.MO.WIDEREL,"⇾":e.MO.WIDEREL,"⇿":e.MO.WIDEREL,"∁":r(1,2,n.TEXCLASS.ORD),"∅":e.MO.ORD,"∆":e.MO.BIN3,"∈":e.MO.REL,"∉":e.MO.REL,"∊":e.MO.REL,"∋":e.MO.REL,"∌":e.MO.REL,"∍":e.MO.REL,"∎":e.MO.BIN3,"−":e.MO.BIN4,"∓":e.MO.BIN4,"∔":e.MO.BIN4,"∕":e.MO.TALLBIN,"∖":e.MO.BIN4,"∗":e.MO.BIN4,"∘":e.MO.BIN4,"∙":e.MO.BIN4,"∝":e.MO.REL,"∞":e.MO.ORD,"∟":e.MO.REL,"∣":e.MO.REL,"∤":e.MO.REL,"∥":e.MO.REL,"∦":e.MO.REL,"∧":e.MO.BIN4,"∨":e.MO.BIN4,"∩":e.MO.BIN4,"∪":e.MO.BIN4,"∴":e.MO.REL,"∵":e.MO.REL,"∶":e.MO.REL,"∷":e.MO.REL,"∸":e.MO.BIN4,"∹":e.MO.REL,"∺":e.MO.BIN4,"∻":e.MO.REL,"∼":e.MO.REL,"∽":e.MO.REL,"∽̱":e.MO.BIN3,"∾":e.MO.REL,"∿":e.MO.BIN3,"≀":e.MO.BIN4,"≁":e.MO.REL,"≂":e.MO.REL,"≂̸":e.MO.REL,"≃":e.MO.REL,"≄":e.MO.REL,"≅":e.MO.REL,"≆":e.MO.REL,"≇":e.MO.REL,"≈":e.MO.REL,"≉":e.MO.REL,"≊":e.MO.REL,"≋":e.MO.REL,"≌":e.MO.REL,"≍":e.MO.REL,"≎":e.MO.REL,"≎̸":e.MO.REL,"≏":e.MO.REL,"≏̸":e.MO.REL,"≐":e.MO.REL,"≑":e.MO.REL,"≒":e.MO.REL,"≓":e.MO.REL,"≔":e.MO.REL,"≕":e.MO.REL,"≖":e.MO.REL,"≗":e.MO.REL,"≘":e.MO.REL,"≙":e.MO.REL,"≚":e.MO.REL,"≛":e.MO.REL,"≜":e.MO.REL,"≝":e.MO.REL,"≞":e.MO.REL,"≟":e.MO.REL,"≠":e.MO.REL,"≡":e.MO.REL,"≢":e.MO.REL,"≣":e.MO.REL,"≤":e.MO.REL,"≥":e.MO.REL,"≦":e.MO.REL,"≦̸":e.MO.REL,"≧":e.MO.REL,"≨":e.MO.REL,"≩":e.MO.REL,"≪":e.MO.REL,"≪̸":e.MO.REL,"≫":e.MO.REL,"≫̸":e.MO.REL,"≬":e.MO.REL,"≭":e.MO.REL,"≮":e.MO.REL,"≯":e.MO.REL,"≰":e.MO.REL,"≱":e.MO.REL,"≲":e.MO.REL,"≳":e.MO.REL,"≴":e.MO.REL,"≵":e.MO.REL,"≶":e.MO.REL,"≷":e.MO.REL,"≸":e.MO.REL,"≹":e.MO.REL,"≺":e.MO.REL,"≻":e.MO.REL,"≼":e.MO.REL,"≽":e.MO.REL,"≾":e.MO.REL,"≿":e.MO.REL,"≿̸":e.MO.REL,"⊀":e.MO.REL,"⊁":e.MO.REL,"⊂":e.MO.REL,"⊂⃒":e.MO.REL,"⊃":e.MO.REL,"⊃⃒":e.MO.REL,"⊄":e.MO.REL,"⊅":e.MO.REL,"⊆":e.MO.REL,"⊇":e.MO.REL,"⊈":e.MO.REL,"⊉":e.MO.REL,"⊊":e.MO.REL,"⊋":e.MO.REL,"⊌":e.MO.BIN4,"⊍":e.MO.BIN4,"⊎":e.MO.BIN4,"⊏":e.MO.REL,"⊏̸":e.MO.REL,"⊐":e.MO.REL,"⊐̸":e.MO.REL,"⊑":e.MO.REL,"⊒":e.MO.REL,"⊓":e.MO.BIN4,"⊔":e.MO.BIN4,"⊕":e.MO.BIN4,"⊖":e.MO.BIN4,"⊗":e.MO.BIN4,"⊘":e.MO.BIN4,"⊙":e.MO.BIN4,"⊚":e.MO.BIN4,"⊛":e.MO.BIN4,"⊜":e.MO.BIN4,"⊝":e.MO.BIN4,"⊞":e.MO.BIN4,"⊟":e.MO.BIN4,"⊠":e.MO.BIN4,"⊡":e.MO.BIN4,"⊢":e.MO.REL,"⊣":e.MO.REL,"⊤":e.MO.ORD55,"⊥":e.MO.REL,"⊦":e.MO.REL,"⊧":e.MO.REL,"⊨":e.MO.REL,"⊩":e.MO.REL,"⊪":e.MO.REL,"⊫":e.MO.REL,"⊬":e.MO.REL,"⊭":e.MO.REL,"⊮":e.MO.REL,"⊯":e.MO.REL,"⊰":e.MO.REL,"⊱":e.MO.REL,"⊲":e.MO.REL,"⊳":e.MO.REL,"⊴":e.MO.REL,"⊵":e.MO.REL,"⊶":e.MO.REL,"⊷":e.MO.REL,"⊸":e.MO.REL,"⊹":e.MO.REL,"⊺":e.MO.BIN4,"⊻":e.MO.BIN4,"⊼":e.MO.BIN4,"⊽":e.MO.BIN4,"⊾":e.MO.BIN3,"⊿":e.MO.BIN3,"⋄":e.MO.BIN4,"⋅":e.MO.BIN4,"⋆":e.MO.BIN4,"⋇":e.MO.BIN4,"⋈":e.MO.REL,"⋉":e.MO.BIN4,"⋊":e.MO.BIN4,"⋋":e.MO.BIN4,"⋌":e.MO.BIN4,"⋍":e.MO.REL,"⋎":e.MO.BIN4,"⋏":e.MO.BIN4,"⋐":e.MO.REL,"⋑":e.MO.REL,"⋒":e.MO.BIN4,"⋓":e.MO.BIN4,"⋔":e.MO.REL,"⋕":e.MO.REL,"⋖":e.MO.REL,"⋗":e.MO.REL,"⋘":e.MO.REL,"⋙":e.MO.REL,"⋚":e.MO.REL,"⋛":e.MO.REL,"⋜":e.MO.REL,"⋝":e.MO.REL,"⋞":e.MO.REL,"⋟":e.MO.REL,"⋠":e.MO.REL,"⋡":e.MO.REL,"⋢":e.MO.REL,"⋣":e.MO.REL,"⋤":e.MO.REL,"⋥":e.MO.REL,"⋦":e.MO.REL,"⋧":e.MO.REL,"⋨":e.MO.REL,"⋩":e.MO.REL,"⋪":e.MO.REL,"⋫":e.MO.REL,"⋬":e.MO.REL,"⋭":e.MO.REL,"⋮":e.MO.ORD55,"⋯":e.MO.INNER,"⋰":e.MO.REL,"⋱":[5,5,n.TEXCLASS.INNER,null],"⋲":e.MO.REL,"⋳":e.MO.REL,"⋴":e.MO.REL,"⋵":e.MO.REL,"⋶":e.MO.REL,"⋷":e.MO.REL,"⋸":e.MO.REL,"⋹":e.MO.REL,"⋺":e.MO.REL,"⋻":e.MO.REL,"⋼":e.MO.REL,"⋽":e.MO.REL,"⋾":e.MO.REL,"⋿":e.MO.REL,"⌅":e.MO.BIN3,"⌆":e.MO.BIN3,"⌢":e.MO.REL4,"⌣":e.MO.REL4,"〈":e.MO.OPEN,"〉":e.MO.CLOSE,"⎪":e.MO.ORD,"⎯":[0,0,n.TEXCLASS.ORD,{stretchy:!0}],"⎰":e.MO.OPEN,"⎱":e.MO.CLOSE,"─":e.MO.ORD,"△":e.MO.BIN4,"▵":e.MO.BIN4,"▹":e.MO.BIN4,"▽":e.MO.BIN4,"▿":e.MO.BIN4,"◃":e.MO.BIN4,"◯":e.MO.BIN3,"♠":e.MO.ORD,"♡":e.MO.ORD,"♢":e.MO.ORD,"♣":e.MO.ORD,"❘":e.MO.REL,"⟰":e.MO.RELSTRETCH,"⟱":e.MO.RELSTRETCH,"⟵":e.MO.WIDEREL,"⟶":e.MO.WIDEREL,"⟷":e.MO.WIDEREL,"⟸":e.MO.WIDEREL,"⟹":e.MO.WIDEREL,"⟺":e.MO.WIDEREL,"⟻":e.MO.WIDEREL,"⟼":e.MO.WIDEREL,"⟽":e.MO.WIDEREL,"⟾":e.MO.WIDEREL,"⟿":e.MO.WIDEREL,"⤀":e.MO.RELACCENT,"⤁":e.MO.RELACCENT,"⤂":e.MO.RELACCENT,"⤃":e.MO.RELACCENT,"⤄":e.MO.RELACCENT,"⤅":e.MO.RELACCENT,"⤆":e.MO.RELACCENT,"⤇":e.MO.RELACCENT,"⤈":e.MO.REL,"⤉":e.MO.REL,"⤊":e.MO.RELSTRETCH,"⤋":e.MO.RELSTRETCH,"⤌":e.MO.WIDEREL,"⤍":e.MO.WIDEREL,"⤎":e.MO.WIDEREL,"⤏":e.MO.WIDEREL,"⤐":e.MO.WIDEREL,"⤑":e.MO.RELACCENT,"⤒":e.MO.RELSTRETCH,"⤓":e.MO.RELSTRETCH,"⤔":e.MO.RELACCENT,"⤕":e.MO.RELACCENT,"⤖":e.MO.RELACCENT,"⤗":e.MO.RELACCENT,"⤘":e.MO.RELACCENT,"⤙":e.MO.RELACCENT,"⤚":e.MO.RELACCENT,"⤛":e.MO.RELACCENT,"⤜":e.MO.RELACCENT,"⤝":e.MO.RELACCENT,"⤞":e.MO.RELACCENT,"⤟":e.MO.RELACCENT,"⤠":e.MO.RELACCENT,"⤡":e.MO.RELSTRETCH,"⤢":e.MO.RELSTRETCH,"⤣":e.MO.REL,"⤤":e.MO.REL,"⤥":e.MO.REL,"⤦":e.MO.REL,"⤧":e.MO.REL,"⤨":e.MO.REL,"⤩":e.MO.REL,"⤪":e.MO.REL,"⤫":e.MO.REL,"⤬":e.MO.REL,"⤭":e.MO.REL,"⤮":e.MO.REL,"⤯":e.MO.REL,"⤰":e.MO.REL,"⤱":e.MO.REL,"⤲":e.MO.REL,"⤳":e.MO.RELACCENT,"⤴":e.MO.REL,"⤵":e.MO.REL,"⤶":e.MO.REL,"⤷":e.MO.REL,"⤸":e.MO.REL,"⤹":e.MO.REL,"⤺":e.MO.RELACCENT,"⤻":e.MO.RELACCENT,"⤼":e.MO.RELACCENT,"⤽":e.MO.RELACCENT,"⤾":e.MO.REL,"⤿":e.MO.REL,"⥀":e.MO.REL,"⥁":e.MO.REL,"⥂":e.MO.RELACCENT,"⥃":e.MO.RELACCENT,"⥄":e.MO.RELACCENT,"⥅":e.MO.RELACCENT,"⥆":e.MO.RELACCENT,"⥇":e.MO.RELACCENT,"⥈":e.MO.RELACCENT,"⥉":e.MO.REL,"⥊":e.MO.RELACCENT,"⥋":e.MO.RELACCENT,"⥌":e.MO.REL,"⥍":e.MO.REL,"⥎":e.MO.WIDEREL,"⥏":e.MO.RELSTRETCH,"⥐":e.MO.WIDEREL,"⥑":e.MO.RELSTRETCH,"⥒":e.MO.WIDEREL,"⥓":e.MO.WIDEREL,"⥔":e.MO.RELSTRETCH,"⥕":e.MO.RELSTRETCH,"⥖":e.MO.RELSTRETCH,"⥗":e.MO.RELSTRETCH,"⥘":e.MO.RELSTRETCH,"⥙":e.MO.RELSTRETCH,"⥚":e.MO.WIDEREL,"⥛":e.MO.WIDEREL,"⥜":e.MO.RELSTRETCH,"⥝":e.MO.RELSTRETCH,"⥞":e.MO.WIDEREL,"⥟":e.MO.WIDEREL,"⥠":e.MO.RELSTRETCH,"⥡":e.MO.RELSTRETCH,"⥢":e.MO.RELACCENT,"⥣":e.MO.REL,"⥤":e.MO.RELACCENT,"⥥":e.MO.REL,"⥦":e.MO.RELACCENT,"⥧":e.MO.RELACCENT,"⥨":e.MO.RELACCENT,"⥩":e.MO.RELACCENT,"⥪":e.MO.RELACCENT,"⥫":e.MO.RELACCENT,"⥬":e.MO.RELACCENT,"⥭":e.MO.RELACCENT,"⥮":e.MO.RELSTRETCH,"⥯":e.MO.RELSTRETCH,"⥰":e.MO.RELACCENT,"⥱":e.MO.RELACCENT,"⥲":e.MO.RELACCENT,"⥳":e.MO.RELACCENT,"⥴":e.MO.RELACCENT,"⥵":e.MO.RELACCENT,"⥶":e.MO.RELACCENT,"⥷":e.MO.RELACCENT,"⥸":e.MO.RELACCENT,"⥹":e.MO.RELACCENT,"⥺":e.MO.RELACCENT,"⥻":e.MO.RELACCENT,"⥼":e.MO.RELACCENT,"⥽":e.MO.RELACCENT,"⥾":e.MO.REL,"⥿":e.MO.REL,"⦁":e.MO.BIN3,"⦂":e.MO.BIN3,"⦙":e.MO.BIN3,"⦚":e.MO.BIN3,"⦛":e.MO.BIN3,"⦜":e.MO.BIN3,"⦝":e.MO.BIN3,"⦞":e.MO.BIN3,"⦟":e.MO.BIN3,"⦠":e.MO.BIN3,"⦡":e.MO.BIN3,"⦢":e.MO.BIN3,"⦣":e.MO.BIN3,"⦤":e.MO.BIN3,"⦥":e.MO.BIN3,"⦦":e.MO.BIN3,"⦧":e.MO.BIN3,"⦨":e.MO.BIN3,"⦩":e.MO.BIN3,"⦪":e.MO.BIN3,"⦫":e.MO.BIN3,"⦬":e.MO.BIN3,"⦭":e.MO.BIN3,"⦮":e.MO.BIN3,"⦯":e.MO.BIN3,"⦰":e.MO.BIN3,"⦱":e.MO.BIN3,"⦲":e.MO.BIN3,"⦳":e.MO.BIN3,"⦴":e.MO.BIN3,"⦵":e.MO.BIN3,"⦶":e.MO.BIN4,"⦷":e.MO.BIN4,"⦸":e.MO.BIN4,"⦹":e.MO.BIN4,"⦺":e.MO.BIN4,"⦻":e.MO.BIN4,"⦼":e.MO.BIN4,"⦽":e.MO.BIN4,"⦾":e.MO.BIN4,"⦿":e.MO.BIN4,"⧀":e.MO.REL,"⧁":e.MO.REL,"⧂":e.MO.BIN3,"⧃":e.MO.BIN3,"⧄":e.MO.BIN4,"⧅":e.MO.BIN4,"⧆":e.MO.BIN4,"⧇":e.MO.BIN4,"⧈":e.MO.BIN4,"⧉":e.MO.BIN3,"⧊":e.MO.BIN3,"⧋":e.MO.BIN3,"⧌":e.MO.BIN3,"⧍":e.MO.BIN3,"⧎":e.MO.REL,"⧏":e.MO.REL,"⧏̸":e.MO.REL,"⧐":e.MO.REL,"⧐̸":e.MO.REL,"⧑":e.MO.REL,"⧒":e.MO.REL,"⧓":e.MO.REL,"⧔":e.MO.REL,"⧕":e.MO.REL,"⧖":e.MO.BIN4,"⧗":e.MO.BIN4,"⧘":e.MO.BIN3,"⧙":e.MO.BIN3,"⧛":e.MO.BIN3,"⧜":e.MO.BIN3,"⧝":e.MO.BIN3,"⧞":e.MO.REL,"⧟":e.MO.BIN3,"⧠":e.MO.BIN3,"⧡":e.MO.REL,"⧢":e.MO.BIN4,"⧣":e.MO.REL,"⧤":e.MO.REL,"⧥":e.MO.REL,"⧦":e.MO.REL,"⧧":e.MO.BIN3,"⧨":e.MO.BIN3,"⧩":e.MO.BIN3,"⧪":e.MO.BIN3,"⧫":e.MO.BIN3,"⧬":e.MO.BIN3,"⧭":e.MO.BIN3,"⧮":e.MO.BIN3,"⧯":e.MO.BIN3,"⧰":e.MO.BIN3,"⧱":e.MO.BIN3,"⧲":e.MO.BIN3,"⧳":e.MO.BIN3,"⧴":e.MO.REL,"⧵":e.MO.BIN4,"⧶":e.MO.BIN4,"⧷":e.MO.BIN4,"⧸":e.MO.BIN3,"⧹":e.MO.BIN3,"⧺":e.MO.BIN3,"⧻":e.MO.BIN3,"⧾":e.MO.BIN4,"⧿":e.MO.BIN4,"⨝":e.MO.BIN3,"⨞":e.MO.BIN3,"⨟":e.MO.BIN3,"⨠":e.MO.BIN3,"⨡":e.MO.BIN3,"⨢":e.MO.BIN4,"⨣":e.MO.BIN4,"⨤":e.MO.BIN4,"⨥":e.MO.BIN4,"⨦":e.MO.BIN4,"⨧":e.MO.BIN4,"⨨":e.MO.BIN4,"⨩":e.MO.BIN4,"⨪":e.MO.BIN4,"⨫":e.MO.BIN4,"⨬":e.MO.BIN4,"⨭":e.MO.BIN4,"⨮":e.MO.BIN4,"⨯":e.MO.BIN4,"⨰":e.MO.BIN4,"⨱":e.MO.BIN4,"⨲":e.MO.BIN4,"⨳":e.MO.BIN4,"⨴":e.MO.BIN4,"⨵":e.MO.BIN4,"⨶":e.MO.BIN4,"⨷":e.MO.BIN4,"⨸":e.MO.BIN4,"⨹":e.MO.BIN4,"⨺":e.MO.BIN4,"⨻":e.MO.BIN4,"⨼":e.MO.BIN4,"⨽":e.MO.BIN4,"⨾":e.MO.BIN4,"⨿":e.MO.BIN4,"⩀":e.MO.BIN4,"⩁":e.MO.BIN4,"⩂":e.MO.BIN4,"⩃":e.MO.BIN4,"⩄":e.MO.BIN4,"⩅":e.MO.BIN4,"⩆":e.MO.BIN4,"⩇":e.MO.BIN4,"⩈":e.MO.BIN4,"⩉":e.MO.BIN4,"⩊":e.MO.BIN4,"⩋":e.MO.BIN4,"⩌":e.MO.BIN4,"⩍":e.MO.BIN4,"⩎":e.MO.BIN4,"⩏":e.MO.BIN4,"⩐":e.MO.BIN4,"⩑":e.MO.BIN4,"⩒":e.MO.BIN4,"⩓":e.MO.BIN4,"⩔":e.MO.BIN4,"⩕":e.MO.BIN4,"⩖":e.MO.BIN4,"⩗":e.MO.BIN4,"⩘":e.MO.BIN4,"⩙":e.MO.REL,"⩚":e.MO.BIN4,"⩛":e.MO.BIN4,"⩜":e.MO.BIN4,"⩝":e.MO.BIN4,"⩞":e.MO.BIN4,"⩟":e.MO.BIN4,"⩠":e.MO.BIN4,"⩡":e.MO.BIN4,"⩢":e.MO.BIN4,"⩣":e.MO.BIN4,"⩤":e.MO.BIN4,"⩥":e.MO.BIN4,"⩦":e.MO.REL,"⩧":e.MO.REL,"⩨":e.MO.REL,"⩩":e.MO.REL,"⩪":e.MO.REL,"⩫":e.MO.REL,"⩬":e.MO.REL,"⩭":e.MO.REL,"⩮":e.MO.REL,"⩯":e.MO.REL,"⩰":e.MO.REL,"⩱":e.MO.BIN4,"⩲":e.MO.BIN4,"⩳":e.MO.REL,"⩴":e.MO.REL,"⩵":e.MO.REL,"⩶":e.MO.REL,"⩷":e.MO.REL,"⩸":e.MO.REL,"⩹":e.MO.REL,"⩺":e.MO.REL,"⩻":e.MO.REL,"⩼":e.MO.REL,"⩽":e.MO.REL,"⩽̸":e.MO.REL,"⩾":e.MO.REL,"⩾̸":e.MO.REL,"⩿":e.MO.REL,"⪀":e.MO.REL,"⪁":e.MO.REL,"⪂":e.MO.REL,"⪃":e.MO.REL,"⪄":e.MO.REL,"⪅":e.MO.REL,"⪆":e.MO.REL,"⪇":e.MO.REL,"⪈":e.MO.REL,"⪉":e.MO.REL,"⪊":e.MO.REL,"⪋":e.MO.REL,"⪌":e.MO.REL,"⪍":e.MO.REL,"⪎":e.MO.REL,"⪏":e.MO.REL,"⪐":e.MO.REL,"⪑":e.MO.REL,"⪒":e.MO.REL,"⪓":e.MO.REL,"⪔":e.MO.REL,"⪕":e.MO.REL,"⪖":e.MO.REL,"⪗":e.MO.REL,"⪘":e.MO.REL,"⪙":e.MO.REL,"⪚":e.MO.REL,"⪛":e.MO.REL,"⪜":e.MO.REL,"⪝":e.MO.REL,"⪞":e.MO.REL,"⪟":e.MO.REL,"⪠":e.MO.REL,"⪡":e.MO.REL,"⪡̸":e.MO.REL,"⪢":e.MO.REL,"⪢̸":e.MO.REL,"⪣":e.MO.REL,"⪤":e.MO.REL,"⪥":e.MO.REL,"⪦":e.MO.REL,"⪧":e.MO.REL,"⪨":e.MO.REL,"⪩":e.MO.REL,"⪪":e.MO.REL,"⪫":e.MO.REL,"⪬":e.MO.REL,"⪭":e.MO.REL,"⪮":e.MO.REL,"⪯":e.MO.REL,"⪯̸":e.MO.REL,"⪰":e.MO.REL,"⪰̸":e.MO.REL,"⪱":e.MO.REL,"⪲":e.MO.REL,"⪳":e.MO.REL,"⪴":e.MO.REL,"⪵":e.MO.REL,"⪶":e.MO.REL,"⪷":e.MO.REL,"⪸":e.MO.REL,"⪹":e.MO.REL,"⪺":e.MO.REL,"⪻":e.MO.REL,"⪼":e.MO.REL,"⪽":e.MO.REL,"⪾":e.MO.REL,"⪿":e.MO.REL,"⫀":e.MO.REL,"⫁":e.MO.REL,"⫂":e.MO.REL,"⫃":e.MO.REL,"⫄":e.MO.REL,"⫅":e.MO.REL,"⫆":e.MO.REL,"⫇":e.MO.REL,"⫈":e.MO.REL,"⫉":e.MO.REL,"⫊":e.MO.REL,"⫋":e.MO.REL,"⫌":e.MO.REL,"⫍":e.MO.REL,"⫎":e.MO.REL,"⫏":e.MO.REL,"⫐":e.MO.REL,"⫑":e.MO.REL,"⫒":e.MO.REL,"⫓":e.MO.REL,"⫔":e.MO.REL,"⫕":e.MO.REL,"⫖":e.MO.REL,"⫗":e.MO.REL,"⫘":e.MO.REL,"⫙":e.MO.REL,"⫚":e.MO.REL,"⫛":e.MO.REL,"⫝":e.MO.REL,"⫝̸":e.MO.REL,"⫞":e.MO.REL,"⫟":e.MO.REL,"⫠":e.MO.REL,"⫡":e.MO.REL,"⫢":e.MO.REL,"⫣":e.MO.REL,"⫤":e.MO.REL,"⫥":e.MO.REL,"⫦":e.MO.REL,"⫧":e.MO.REL,"⫨":e.MO.REL,"⫩":e.MO.REL,"⫪":e.MO.REL,"⫫":e.MO.REL,"⫬":e.MO.REL,"⫭":e.MO.REL,"⫮":e.MO.REL,"⫯":e.MO.REL,"⫰":e.MO.REL,"⫱":e.MO.REL,"⫲":e.MO.REL,"⫳":e.MO.REL,"⫴":e.MO.BIN4,"⫵":e.MO.BIN4,"⫶":e.MO.BIN4,"⫷":e.MO.REL,"⫸":e.MO.REL,"⫹":e.MO.REL,"⫺":e.MO.REL,"⫻":e.MO.BIN4,"⫽":e.MO.BIN4,"⫾":e.MO.BIN3,"⭅":e.MO.RELSTRETCH,"⭆":e.MO.RELSTRETCH,"〈":e.MO.OPEN,"〉":e.MO.CLOSE,"︷":e.MO.WIDEACCENT,"︸":e.MO.WIDEACCENT}},e.OPTABLE.infix[`^`]=e.MO.WIDEREL,e.OPTABLE.infix._=e.MO.WIDEREL,e.OPTABLE.infix[`⫝̸`]=e.MO.REL})),P=e((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.split=e.isPercent=e.unicodeString=e.unicodeChars=e.quotePattern=e.sortLength=void 0;function r(e,t){return e.length===t.length?e===t?0:e<t?-1:1:t.length-e.length}e.sortLength=r;function i(e){return e.replace(/([\^$(){}+*?\-|\[\]\:\\])/g,`\\$1`)}e.quotePattern=i;function a(e){return Array.from(e).map(function(e){return e.codePointAt(0)})}e.unicodeChars=a;function o(e){return String.fromCodePoint.apply(String,n([],t(e),!1))}e.unicodeString=o;function s(e){return!!e.match(/%\s*$/)}e.isPercent=s;function c(e){return e.trim().split(/\s+/)}e.split=c})),F=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMo=void 0;var a=A(),o=N(),s=P();e.MmlMo=function(e){t(c,e);function c(){var t=e!==null&&e.apply(this,arguments)||this;return t._texClass=null,t.lspace=5/18,t.rspace=5/18,t}return Object.defineProperty(c.prototype,"texClass",{get:function(){if(this._texClass===null){var e=this.getText(),t=r(this.handleExplicitForm(this.getForms()),3),n=t[0],i=t[1],o=t[2],s=this.constructor.OPTABLE,c=s[n][e]||s[i][e]||s[o][e];return c?c[2]:a.TEXCLASS.REL}return this._texClass},set:function(e){this._texClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"kind",{get:function(){return`mo`},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isEmbellished",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"hasNewLine",{get:function(){return this.attributes.get(`linebreak`)===`newline`},enumerable:!1,configurable:!0}),c.prototype.coreParent=function(){for(var e=this,t=this,n=this.factory.getNodeClass(`math`);t&&t.isEmbellished&&t.coreMO()===this&&!(t instanceof n);)e=t,t=t.parent;return e},c.prototype.coreText=function(e){if(!e)return``;if(e.isEmbellished)return e.coreMO().getText();for(;((e.isKind(`mrow`)||e.isKind(`TeXAtom`)&&e.texClass!==a.TEXCLASS.VCENTER||e.isKind(`mstyle`)||e.isKind(`mphantom`))&&e.childNodes.length===1||e.isKind(`munderover`))&&e.childNodes[0];)e=e.childNodes[0];return e.isToken?e.getText():``},c.prototype.hasSpacingAttributes=function(){return this.attributes.isSet(`lspace`)||this.attributes.isSet(`rspace`)},Object.defineProperty(c.prototype,"isAccent",{get:function(){var e=!1,t=this.coreParent().parent;if(t){var n=t.isKind(`mover`)?t.childNodes[t.over].coreMO()?`accent`:``:t.isKind(`munder`)?t.childNodes[t.under].coreMO()?`accentunder`:``:t.isKind(`munderover`)?this===t.childNodes[t.over].coreMO()?`accent`:this===t.childNodes[t.under].coreMO()?`accentunder`:``:``;n&&(e=t.attributes.getExplicit(n)===void 0?this.attributes.get(`accent`):e)}return e},enumerable:!1,configurable:!0}),c.prototype.setTeXclass=function(e){var t=this.attributes.getList(`form`,`fence`),n=t.form,r=t.fence;return this.getProperty(`texClass`)===void 0&&(this.attributes.isSet(`lspace`)||this.attributes.isSet(`rspace`))?null:(r&&this.texClass===a.TEXCLASS.REL&&(n===`prefix`&&(this.texClass=a.TEXCLASS.OPEN),n===`postfix`&&(this.texClass=a.TEXCLASS.CLOSE)),this.adjustTeXclass(e))},c.prototype.adjustTeXclass=function(e){var t=this.texClass,n=this.prevClass;if(t===a.TEXCLASS.NONE)return e;if(e?(e.getProperty(`autoOP`)&&(t===a.TEXCLASS.BIN||t===a.TEXCLASS.REL)&&(n=e.texClass=a.TEXCLASS.ORD),n=this.prevClass=e.texClass||a.TEXCLASS.ORD,this.prevLevel=this.attributes.getInherited(`scriptlevel`)):n=this.prevClass=a.TEXCLASS.NONE,t===a.TEXCLASS.BIN&&(n===a.TEXCLASS.NONE||n===a.TEXCLASS.BIN||n===a.TEXCLASS.OP||n===a.TEXCLASS.REL||n===a.TEXCLASS.OPEN||n===a.TEXCLASS.PUNCT))this.texClass=a.TEXCLASS.ORD;else if(n===a.TEXCLASS.BIN&&(t===a.TEXCLASS.REL||t===a.TEXCLASS.CLOSE||t===a.TEXCLASS.PUNCT))e.texClass=this.prevClass=a.TEXCLASS.ORD;else if(t===a.TEXCLASS.BIN){for(var r=this,i=this.parent;i&&i.parent&&i.isEmbellished&&(i.childNodes.length===1||!i.isKind(`mrow`)&&i.core()===r);)r=i,i=i.parent;i.childNodes[i.childNodes.length-1]===r&&(this.texClass=a.TEXCLASS.ORD)}return this},c.prototype.setInheritedAttributes=function(t,n,r,i){t===void 0&&(t={}),n===void 0&&(n=!1),r===void 0&&(r=0),i===void 0&&(i=!1),e.prototype.setInheritedAttributes.call(this,t,n,r,i);var a=this.getText();this.checkOperatorTable(a),this.checkPseudoScripts(a),this.checkPrimes(a),this.checkMathAccent(a)},c.prototype.checkOperatorTable=function(e){var t,n,a=r(this.handleExplicitForm(this.getForms()),3),s=a[0],c=a[1],l=a[2];this.attributes.setInherited(`form`,s);var u=this.constructor.OPTABLE,d=u[s][e]||u[c][e]||u[l][e];if(d){this.getProperty(`texClass`)===void 0&&(this.texClass=d[2]);try{for(var f=i(Object.keys(d[3]||{})),p=f.next();!p.done;p=f.next()){var m=p.value;this.attributes.setInherited(m,d[3][m])}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}this.lspace=(d[0]+1)/18,this.rspace=(d[1]+1)/18}else{var h=(0,o.getRange)(e);if(h){this.getProperty(`texClass`)===void 0&&(this.texClass=h[2]);var g=this.constructor.MMLSPACING[h[2]];this.lspace=(g[0]+1)/18,this.rspace=(g[1]+1)/18}}},c.prototype.getForms=function(){for(var e=this,t=this.parent,n=this.Parent;n&&n.isEmbellished;)e=t,t=n.parent,n=n.Parent;if(t&&t.isKind(`mrow`)&&t.nonSpaceLength()!==1){if(t.firstNonSpace()===e)return[`prefix`,`infix`,`postfix`];if(t.lastNonSpace()===e)return[`postfix`,`infix`,`prefix`]}return[`infix`,`prefix`,`postfix`]},c.prototype.handleExplicitForm=function(e){if(this.attributes.isSet(`form`)){var t=this.attributes.get(`form`);e=[t].concat(e.filter(function(e){return e!==t}))}return e},c.prototype.checkPseudoScripts=function(e){var t=this.constructor.pseudoScripts;if(e.match(t)){var n=this.coreParent().Parent,r=!n||!(n.isKind(`msubsup`)&&!n.isKind(`msub`));this.setProperty(`pseudoscript`,r),r&&(this.attributes.setInherited(`lspace`,0),this.attributes.setInherited(`rspace`,0))}},c.prototype.checkPrimes=function(e){var t=this.constructor.primes;if(e.match(t)){var n=this.constructor.remapPrimes,r=(0,s.unicodeString)((0,s.unicodeChars)(e).map(function(e){return n[e]}));this.setProperty(`primes`,r)}},c.prototype.checkMathAccent=function(e){var t=this.Parent;if(!(this.getProperty(`mathaccent`)!==void 0||!t||!t.isKind(`munderover`))){var n=t.childNodes[0];if(!(n.isEmbellished&&n.coreMO()===this)){var r=this.constructor.mathaccents;e.match(r)&&this.setProperty(`mathaccent`,!0)}}},c.defaults=n(n({},a.AbstractMmlTokenNode.defaults),{form:`infix`,fence:!1,separator:!1,lspace:`thickmathspace`,rspace:`thickmathspace`,stretchy:!1,symmetric:!1,maxsize:`infinity`,minsize:`0em`,largeop:!1,movablelimits:!1,accent:!1,linebreak:`auto`,lineleading:`1ex`,linebreakstyle:`before`,indentalign:`auto`,indentshift:`0`,indenttarget:``,indentalignfirst:`indentalign`,indentshiftfirst:`indentshift`,indentalignlast:`indentalign`,indentshiftlast:`indentshift`}),c.MMLSPACING=o.MMLSPACING,c.OPTABLE=o.OPTABLE,c.pseudoScripts=new RegExp([`^["'*\``,`ª`,`°`,`²-´`,`¹`,`º`,`‘-‟`,`′-‷⁗`,`⁰ⁱ`,`⁴-ⁿ`,`₀-₎`,`]+$`].join(``)),c.primes=new RegExp([`^["'\``,`‘-‟`,`]+$`].join(``)),c.remapPrimes={34:8243,39:8242,96:8245,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246},c.mathaccents=new RegExp([`^[`,`´́ˊ`,"`̀ˋ",`¨̈`,`~̃˜`,`¯̄ˉ`,`˘̆`,`ˇ̌`,`^̂ˆ`,`→⃗`,`˙̇`,`˚̊`,`⃛`,`⃜`,`]$`].join(``)),c}(a.AbstractMmlTokenNode)})),te=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtext=void 0;var r=A();e.MmlMtext=function(e){t(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=r.TEXCLASS.ORD,t}return Object.defineProperty(i.prototype,"kind",{get:function(){return`mtext`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),i.defaults=n({},r.AbstractMmlTokenNode.defaults),i}(r.AbstractMmlTokenNode)})),ne=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMspace=void 0;var r=A();e.MmlMspace=function(e){t(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=r.TEXCLASS.NONE,t}return i.prototype.setTeXclass=function(e){return e},Object.defineProperty(i.prototype,"kind",{get:function(){return`mspace`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasNewline",{get:function(){var e=this.attributes;return e.getExplicit(`width`)==null&&e.getExplicit(`height`)==null&&e.getExplicit(`depth`)==null&&e.get(`linebreak`)===`newline`},enumerable:!1,configurable:!0}),i.defaults=n(n({},r.AbstractMmlTokenNode.defaults),{width:`0em`,height:`0ex`,depth:`0ex`,linebreak:`auto`}),i}(r.AbstractMmlTokenNode)})),re=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMs=void 0;var r=A();e.MmlMs=function(e){t(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=r.TEXCLASS.ORD,t}return Object.defineProperty(i.prototype,"kind",{get:function(){return`ms`},enumerable:!1,configurable:!0}),i.defaults=n(n({},r.AbstractMmlTokenNode.defaults),{lquote:`"`,rquote:`"`}),i}(r.AbstractMmlTokenNode)})),ie=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlInferredMrow=e.MmlMrow=void 0;var i=A(),a=function(e){t(a,e);function a(){var t=e!==null&&e.apply(this,arguments)||this;return t._core=null,t}return Object.defineProperty(a.prototype,"kind",{get:function(){return`mrow`},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"isSpacelike",{get:function(){var e,t;try{for(var n=r(this.childNodes),i=n.next();!i.done;i=n.next())if(!i.value.isSpacelike)return!1}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return!0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"isEmbellished",{get:function(){var e,t,n=!1,i=0;try{for(var a=r(this.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value;if(s){if(s.isEmbellished){if(n)return!1;n=!0,this._core=i}else if(!s.isSpacelike)return!1}i++}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return n},enumerable:!1,configurable:!0}),a.prototype.core=function(){return!this.isEmbellished||this._core==null?this:this.childNodes[this._core]},a.prototype.coreMO=function(){return!this.isEmbellished||this._core==null?this:this.childNodes[this._core].coreMO()},a.prototype.nonSpaceLength=function(){var e,t,n=0;try{for(var i=r(this.childNodes),a=i.next();!a.done;a=i.next()){var o=a.value;o&&!o.isSpacelike&&n++}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n},a.prototype.firstNonSpace=function(){var e,t;try{for(var n=r(this.childNodes),i=n.next();!i.done;i=n.next()){var a=i.value;if(a&&!a.isSpacelike)return a}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return null},a.prototype.lastNonSpace=function(){for(var e=this.childNodes.length;--e>=0;){var t=this.childNodes[e];if(t&&!t.isSpacelike)return t}return null},a.prototype.setTeXclass=function(e){var t,n,a,o;if(this.getProperty(`open`)!=null||this.getProperty(`close`)!=null){this.getPrevClass(e),e=null;try{for(var s=r(this.childNodes),c=s.next();!c.done;c=s.next()){var l=c.value;e=l.setTeXclass(e)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}this.texClass??=i.TEXCLASS.INNER}else{try{for(var u=r(this.childNodes),d=u.next();!d.done;d=u.next()){var l=d.value;e=l.setTeXclass(e)}}catch(e){a={error:e}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}this.childNodes[0]&&this.updateTeXclass(this.childNodes[0])}return e},a.defaults=n({},i.AbstractMmlNode.defaults),a}(i.AbstractMmlNode);e.MmlMrow=a,e.MmlInferredMrow=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`inferredMrow`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isInferred",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.toString=function(){return`[`+this.childNodes.join(`,`)+`]`},n.defaults=a.defaults,n}(a)})),ae=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMfrac=void 0;var i=A();e.MmlMfrac=function(e){t(a,e);function a(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(a.prototype,"kind",{get:function(){return`mfrac`},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),a.prototype.setTeXclass=function(e){var t,n;this.getPrevClass(e);try{for(var i=r(this.childNodes),a=i.next();!a.done;a=i.next())a.value.setTeXclass(null)}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return this},a.prototype.setChildInheritedAttributes=function(e,t,n,r){(!t||n>0)&&n++,this.childNodes[0].setInheritedAttributes(e,!1,n,r),this.childNodes[1].setInheritedAttributes(e,!1,n,!0)},a.defaults=n(n({},i.AbstractMmlBaseNode.defaults),{linethickness:`medium`,numalign:`center`,denomalign:`center`,bevelled:!1}),a}(i.AbstractMmlBaseNode)})),oe=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMsqrt=void 0;var r=A();e.MmlMsqrt=function(e){t(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=r.TEXCLASS.ORD,t}return Object.defineProperty(i.prototype,"kind",{get:function(){return`msqrt`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),i.prototype.setTeXclass=function(e){return this.getPrevClass(e),this.childNodes[0].setTeXclass(null),this},i.prototype.setChildInheritedAttributes=function(e,t,n,r){this.childNodes[0].setInheritedAttributes(e,t,n,!0)},i.defaults=n({},r.AbstractMmlNode.defaults),i}(r.AbstractMmlNode)})),se=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMroot=void 0;var r=A();e.MmlMroot=function(e){t(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=r.TEXCLASS.ORD,t}return Object.defineProperty(i.prototype,"kind",{get:function(){return`mroot`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),i.prototype.setTeXclass=function(e){return this.getPrevClass(e),this.childNodes[0].setTeXclass(null),this.childNodes[1].setTeXclass(null),this},i.prototype.setChildInheritedAttributes=function(e,t,n,r){this.childNodes[0].setInheritedAttributes(e,t,n,!0),this.childNodes[1].setInheritedAttributes(e,!1,n+2,r)},i.defaults=n({},r.AbstractMmlNode.defaults),i}(r.AbstractMmlNode)})),ce=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMstyle=void 0;var r=A(),i=O();e.MmlMstyle=function(e){t(a,e);function a(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(a.prototype,"kind",{get:function(){return`mstyle`},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"notParent",{get:function(){return this.childNodes[0]&&this.childNodes[0].childNodes.length===1},enumerable:!1,configurable:!0}),a.prototype.setChildInheritedAttributes=function(e,t,n,r){var i=this.attributes.getExplicit(`scriptlevel`);i!=null&&(i=i.toString(),i.match(/^\s*[-+]/)?n+=parseInt(i):n=parseInt(i),r=!1);var a=this.attributes.getExplicit(`displaystyle`);a!=null&&(t=a===!0,r=!1);var o=this.attributes.getExplicit(`data-cramped`);o!=null&&(r=o),e=this.addInheritedAttributes(e,this.attributes.getAllAttributes()),this.childNodes[0].setInheritedAttributes(e,t,n,r)},a.defaults=n(n({},r.AbstractMmlLayoutNode.defaults),{scriptlevel:i.INHERIT,displaystyle:i.INHERIT,scriptsizemultiplier:1/Math.sqrt(2),scriptminsize:`8px`,mathbackground:i.INHERIT,mathcolor:i.INHERIT,dir:i.INHERIT,infixlinebreakstyle:`before`}),a}(r.AbstractMmlLayoutNode)})),le=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMerror=void 0;var r=A();e.MmlMerror=function(e){t(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=r.TEXCLASS.ORD,t}return Object.defineProperty(i.prototype,"kind",{get:function(){return`merror`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),i.defaults=n({},r.AbstractMmlNode.defaults),i}(r.AbstractMmlNode)})),ue=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMpadded=void 0;var r=A();e.MmlMpadded=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(i.prototype,"kind",{get:function(){return`mpadded`},enumerable:!1,configurable:!0}),i.defaults=n(n({},r.AbstractMmlLayoutNode.defaults),{width:``,height:``,depth:``,lspace:0,voffset:0}),i}(r.AbstractMmlLayoutNode)})),de=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMphantom=void 0;var r=A();e.MmlMphantom=function(e){t(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=r.TEXCLASS.ORD,t}return Object.defineProperty(i.prototype,"kind",{get:function(){return`mphantom`},enumerable:!1,configurable:!0}),i.defaults=n({},r.AbstractMmlLayoutNode.defaults),i}(r.AbstractMmlLayoutNode)})),fe=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMfenced=void 0;var i=A();e.MmlMfenced=function(e){t(a,e);function a(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.INNER,t.separators=[],t.open=null,t.close=null,t}return Object.defineProperty(a.prototype,"kind",{get:function(){return`mfenced`},enumerable:!1,configurable:!0}),a.prototype.setTeXclass=function(e){this.getPrevClass(e),this.open&&(e=this.open.setTeXclass(e)),this.childNodes[0]&&(e=this.childNodes[0].setTeXclass(e));for(var t=1,n=this.childNodes.length;t<n;t++)this.separators[t-1]&&(e=this.separators[t-1].setTeXclass(e)),this.childNodes[t]&&(e=this.childNodes[t].setTeXclass(e));return this.close&&(e=this.close.setTeXclass(e)),this.updateTeXclass(this.open),e},a.prototype.setChildInheritedAttributes=function(t,n,i,a){var o,s;this.addFakeNodes();try{for(var c=r([this.open,this.close].concat(this.separators)),l=c.next();!l.done;l=c.next()){var u=l.value;u&&u.setInheritedAttributes(t,n,i,a)}}catch(e){o={error:e}}finally{try{l&&!l.done&&(s=c.return)&&s.call(c)}finally{if(o)throw o.error}}e.prototype.setChildInheritedAttributes.call(this,t,n,i,a)},a.prototype.addFakeNodes=function(){var e,t,n=this.attributes.getList(`open`,`close`,`separators`),a=n.open,o=n.close,s=n.separators;if(a=a.replace(/[ \t\n\r]/g,``),o=o.replace(/[ \t\n\r]/g,``),s=s.replace(/[ \t\n\r]/g,``),a&&(this.open=this.fakeNode(a,{fence:!0,form:`prefix`},i.TEXCLASS.OPEN)),s){for(;s.length<this.childNodes.length-1;)s+=s.charAt(s.length-1);var c=0;try{for(var l=r(this.childNodes.slice(1)),u=l.next();!u.done;u=l.next())u.value&&this.separators.push(this.fakeNode(s.charAt(c++)))}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}}o&&(this.close=this.fakeNode(o,{fence:!0,form:`postfix`},i.TEXCLASS.CLOSE))},a.prototype.fakeNode=function(e,t,n){t===void 0&&(t={}),n===void 0&&(n=null);var r=this.factory.create(`text`).setText(e),i=this.factory.create(`mo`,t,[r]);return i.texClass=n,i.parent=this,i},a.defaults=n(n({},i.AbstractMmlNode.defaults),{open:`(`,close:`)`,separators:`,`}),a}(i.AbstractMmlNode)})),pe=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMenclose=void 0;var r=A();e.MmlMenclose=function(e){t(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=r.TEXCLASS.ORD,t}return Object.defineProperty(i.prototype,"kind",{get:function(){return`menclose`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"linebreakContininer",{get:function(){return!0},enumerable:!1,configurable:!0}),i.prototype.setTeXclass=function(e){return e=this.childNodes[0].setTeXclass(e),this.updateTeXclass(this.childNodes[0]),e},i.defaults=n(n({},r.AbstractMmlNode.defaults),{notation:`longdiv`}),i}(r.AbstractMmlNode)})),me=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMaction=void 0;var r=A();e.MmlMaction=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(i.prototype,"kind",{get:function(){return`maction`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selected",{get:function(){var e=this.attributes.get(`selection`),t=Math.max(1,Math.min(this.childNodes.length,e))-1;return this.childNodes[t]||this.factory.create(`mrow`)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isEmbellished",{get:function(){return this.selected.isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isSpacelike",{get:function(){return this.selected.isSpacelike},enumerable:!1,configurable:!0}),i.prototype.core=function(){return this.selected.core()},i.prototype.coreMO=function(){return this.selected.coreMO()},i.prototype.verifyAttributes=function(t){if(e.prototype.verifyAttributes.call(this,t),this.attributes.get(`actiontype`)!==`toggle`&&this.attributes.getExplicit(`selection`)!==void 0){var n=this.attributes.getAllAttributes();delete n.selection}},i.prototype.setTeXclass=function(e){this.attributes.get(`actiontype`)===`tooltip`&&this.childNodes[1]&&this.childNodes[1].setTeXclass(null);var t=this.selected;return e=t.setTeXclass(e),this.updateTeXclass(t),e},i.prototype.nextToggleSelection=function(){var e=Math.max(1,this.attributes.get(`selection`)+1);e>this.childNodes.length&&(e=1),this.attributes.set(`selection`,e)},i.defaults=n(n({},r.AbstractMmlNode.defaults),{actiontype:`toggle`,selection:1}),i}(r.AbstractMmlNode)})),he=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMsup=e.MmlMsub=e.MmlMsubsup=void 0;var r=A(),i=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(i.prototype,"kind",{get:function(){return`msubsup`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"arity",{get:function(){return 3},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"sub",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"sup",{get:function(){return 2},enumerable:!1,configurable:!0}),i.prototype.setChildInheritedAttributes=function(e,t,n,r){var i=this.childNodes;i[0].setInheritedAttributes(e,t,n,r),i[1].setInheritedAttributes(e,!1,n+1,r||this.sub===1),i[2]&&i[2].setInheritedAttributes(e,!1,n+1,r||this.sub===2)},i.defaults=n(n({},r.AbstractMmlBaseNode.defaults),{subscriptshift:``,superscriptshift:``}),i}(r.AbstractMmlBaseNode);e.MmlMsubsup=i,e.MmlMsub=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"kind",{get:function(){return`msub`},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),r.defaults=n({},i.defaults),r}(i),e.MmlMsup=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"kind",{get:function(){return`msup`},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sup",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sub",{get:function(){return 2},enumerable:!1,configurable:!0}),r.defaults=n({},i.defaults),r}(i)})),ge=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMover=e.MmlMunder=e.MmlMunderover=void 0;var r=A(),i=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(i.prototype,"kind",{get:function(){return`munderover`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"arity",{get:function(){return 3},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"under",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"over",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),i.prototype.setChildInheritedAttributes=function(e,t,n,r){var i=this.childNodes;i[0].setInheritedAttributes(e,t,n,r||!!i[this.over]);var a=!!(!t&&i[0].coreMO().attributes.get(`movablelimits`)),o=this.constructor.ACCENTS;i[1].setInheritedAttributes(e,!1,this.getScriptlevel(o[1],a,n),r||this.under===1),this.setInheritedAccent(1,o[1],t,n,r,a),i[2]&&(i[2].setInheritedAttributes(e,!1,this.getScriptlevel(o[2],a,n),r||this.under===2),this.setInheritedAccent(2,o[2],t,n,r,a))},i.prototype.getScriptlevel=function(e,t,n){return(t||!this.attributes.get(e))&&n++,n},i.prototype.setInheritedAccent=function(e,t,n,r,i,a){var o=this.childNodes[e];if(this.attributes.getExplicit(t)==null&&o.isEmbellished){var s=o.coreMO().attributes.get(`accent`);this.attributes.setInherited(t,s),s!==this.attributes.getDefault(t)&&o.setInheritedAttributes({},n,this.getScriptlevel(t,a,r),i)}},i.defaults=n(n({},r.AbstractMmlBaseNode.defaults),{accent:!1,accentunder:!1,align:`center`}),i.ACCENTS=[``,`accentunder`,`accent`],i}(r.AbstractMmlBaseNode);e.MmlMunderover=i,e.MmlMunder=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"kind",{get:function(){return`munder`},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),r.defaults=n({},i.defaults),r}(i),e.MmlMover=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"kind",{get:function(){return`mover`},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"over",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"under",{get:function(){return 2},enumerable:!1,configurable:!0}),r.defaults=n({},i.defaults),r.ACCENTS=[``,`accent`,`accentunder`],r}(i)})),_e=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlNone=e.MmlMprescripts=e.MmlMmultiscripts=void 0;var r=A(),i=he();e.MmlMmultiscripts=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"kind",{get:function(){return`mmultiscripts`},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),r.prototype.setChildInheritedAttributes=function(e,t,n,r){this.childNodes[0].setInheritedAttributes(e,t,n,r);for(var i=!1,a=1,o=0;a<this.childNodes.length;a++){var s=this.childNodes[a];if(s.isKind(`mprescripts`)){if(!i&&(i=!0,a%2==0)){var c=this.factory.create(`mrow`);this.childNodes.splice(a,0,c),c.parent=this,a++}}else{var l=r||o%2==0;s.setInheritedAttributes(e,!1,n+1,l),o++}}this.childNodes.length%2==+!!i&&(this.appendChild(this.factory.create(`mrow`)),this.childNodes[this.childNodes.length-1].setInheritedAttributes(e,!1,n+1,r))},r.prototype.verifyChildren=function(t){for(var n=!1,r=t.fixMmultiscripts,i=0;i<this.childNodes.length;i++){var a=this.childNodes[i];a.isKind(`mprescripts`)&&(n?a.mError(a.kind+` can only appear once in `+this.kind,t,!0):(n=!0,i%2==0&&!r&&this.mError(`There must be an equal number of prescripts of each type`,t)))}this.childNodes.length%2==+!!n&&!r&&this.mError(`There must be an equal number of scripts of each type`,t),e.prototype.verifyChildren.call(this,t)},r.defaults=n({},i.MmlMsubsup.defaults),r}(i.MmlMsubsup),e.MmlMprescripts=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(i.prototype,"kind",{get:function(){return`mprescripts`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),i.prototype.verifyTree=function(t){e.prototype.verifyTree.call(this,t),this.parent&&!this.parent.isKind(`mmultiscripts`)&&this.mError(this.kind+` must be a child of mmultiscripts`,t,!0)},i.defaults=n({},r.AbstractMmlNode.defaults),i}(r.AbstractMmlNode),e.MmlNone=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(i.prototype,"kind",{get:function(){return`none`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),i.prototype.verifyTree=function(t){e.prototype.verifyTree.call(this,t),this.parent&&!this.parent.isKind(`mmultiscripts`)&&this.mError(this.kind+` must be a child of mmultiscripts`,t,!0)},i.defaults=n({},r.AbstractMmlNode.defaults),i}(r.AbstractMmlNode)})),ve=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtable=void 0;var i=A(),a=P();e.MmlMtable=function(e){t(o,e);function o(){var t=e!==null&&e.apply(this,arguments)||this;return t.properties={useHeight:!0},t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(o.prototype,"kind",{get:function(){return`mtable`},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),o.prototype.setInheritedAttributes=function(t,n,a,o){var s,c;try{for(var l=r(i.indentAttributes),u=l.next();!u.done;u=l.next()){var d=u.value;t[d]&&this.attributes.setInherited(d,t[d][1]),this.attributes.getExplicit(d)!==void 0&&delete this.attributes.getAllAttributes()[d]}}catch(e){s={error:e}}finally{try{u&&!u.done&&(c=l.return)&&c.call(l)}finally{if(s)throw s.error}}e.prototype.setInheritedAttributes.call(this,t,n,a,o)},o.prototype.setChildInheritedAttributes=function(e,t,n,i){var o,s,c,l;try{for(var u=r(this.childNodes),d=u.next();!d.done;d=u.next()){var f=d.value;f.isKind(`mtr`)||this.replaceChild(this.factory.create(`mtr`),f).appendChild(f)}}catch(e){o={error:e}}finally{try{d&&!d.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}n=this.getProperty(`scriptlevel`)||n,t=!!(this.attributes.getExplicit(`displaystyle`)||this.attributes.getDefault(`displaystyle`)),e=this.addInheritedAttributes(e,{columnalign:this.attributes.get(`columnalign`),rowalign:`center`});var p=this.attributes.getExplicit(`data-cramped`),m=(0,a.split)(this.attributes.get(`rowalign`));try{for(var h=r(this.childNodes),g=h.next();!g.done;g=h.next()){var f=g.value;e.rowalign[1]=m.shift()||e.rowalign[1],f.setInheritedAttributes(e,t,n,!!p)}}catch(e){c={error:e}}finally{try{g&&!g.done&&(l=h.return)&&l.call(h)}finally{if(c)throw c.error}}},o.prototype.verifyChildren=function(t){for(var n=null,r=this.factory,i=0;i<this.childNodes.length;i++){var a=this.childNodes[i];if(a.isKind(`mtr`))n=null;else{var o=a.isKind(`mtd`);if(n?(this.removeChild(a),i--):n=this.replaceChild(r.create(`mtr`),a),n.appendChild(o?a:r.create(`mtd`,{},[a])),!t.fixMtables){a.parent.removeChild(a),a.parent=this,o&&n.appendChild(r.create(`mtd`));var s=a.mError(`Children of `+this.kind+` must be mtr or mlabeledtr`,t,o);n.childNodes[n.childNodes.length-1].appendChild(s)}}}e.prototype.verifyChildren.call(this,t)},o.prototype.setTeXclass=function(e){var t,n;this.getPrevClass(e);try{for(var i=r(this.childNodes),a=i.next();!a.done;a=i.next())a.value.setTeXclass(null)}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return this},o.defaults=n(n({},i.AbstractMmlNode.defaults),{align:`axis`,rowalign:`baseline`,columnalign:`center`,groupalign:`{left}`,alignmentscope:!0,columnwidth:`auto`,width:`auto`,rowspacing:`1ex`,columnspacing:`.8em`,rowlines:`none`,columnlines:`none`,frame:`none`,framespacing:`0.4em 0.5ex`,equalrows:!1,equalcolumns:!1,displaystyle:!1,side:`right`,minlabelspacing:`0.8em`}),o}(i.AbstractMmlNode)})),ye=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMlabeledtr=e.MmlMtr=void 0;var i=A(),a=O(),o=P(),s=function(e){t(s,e);function s(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(s.prototype,"kind",{get:function(){return`mtr`},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),s.prototype.setChildInheritedAttributes=function(e,t,n,i){var a,s,c,l;try{for(var u=r(this.childNodes),d=u.next();!d.done;d=u.next()){var f=d.value;f.isKind(`mtd`)||this.replaceChild(this.factory.create(`mtd`),f).appendChild(f)}}catch(e){a={error:e}}finally{try{d&&!d.done&&(s=u.return)&&s.call(u)}finally{if(a)throw a.error}}var p=(0,o.split)(this.attributes.get(`columnalign`));this.arity===1&&p.unshift(this.parent.attributes.get(`side`)),e=this.addInheritedAttributes(e,{rowalign:this.attributes.get(`rowalign`),columnalign:`center`});try{for(var m=r(this.childNodes),h=m.next();!h.done;h=m.next()){var f=h.value;e.columnalign[1]=p.shift()||e.columnalign[1],f.setInheritedAttributes(e,t,n,i)}}catch(e){c={error:e}}finally{try{h&&!h.done&&(l=m.return)&&l.call(m)}finally{if(c)throw c.error}}},s.prototype.verifyChildren=function(t){var n,i;if(this.parent&&!this.parent.isKind(`mtable`)){this.mError(this.kind+` can only be a child of an mtable`,t,!0);return}try{for(var a=r(this.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value;s.isKind(`mtd`)||(this.replaceChild(this.factory.create(`mtd`),s).appendChild(s),t.fixMtables||s.mError(`Children of `+this.kind+` must be mtd`,t))}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}e.prototype.verifyChildren.call(this,t)},s.prototype.setTeXclass=function(e){var t,n;this.getPrevClass(e);try{for(var i=r(this.childNodes),a=i.next();!a.done;a=i.next())a.value.setTeXclass(null)}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return this},s.defaults=n(n({},i.AbstractMmlNode.defaults),{rowalign:a.INHERIT,columnalign:a.INHERIT,groupalign:a.INHERIT}),s}(i.AbstractMmlNode);e.MmlMtr=s,e.MmlMlabeledtr=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`mlabeledtr`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),n}(s)})),be=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtd=void 0;var r=A(),i=O();e.MmlMtd=function(e){t(a,e);function a(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(a.prototype,"kind",{get:function(){return`mtd`},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),a.prototype.verifyChildren=function(t){if(this.parent&&!this.parent.isKind(`mtr`)){this.mError(this.kind+` can only be a child of an mtr or mlabeledtr`,t,!0);return}e.prototype.verifyChildren.call(this,t)},a.prototype.setTeXclass=function(e){return this.getPrevClass(e),this.childNodes[0].setTeXclass(null),this},a.defaults=n(n({},r.AbstractMmlBaseNode.defaults),{rowspan:1,columnspan:1,rowalign:i.INHERIT,columnalign:i.INHERIT,groupalign:i.INHERIT}),a}(r.AbstractMmlBaseNode)})),xe=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMaligngroup=void 0;var r=A(),i=O();e.MmlMaligngroup=function(e){t(a,e);function a(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(a.prototype,"kind",{get:function(){return`maligngroup`},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),a.prototype.setChildInheritedAttributes=function(t,n,r,i){t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),e.prototype.setChildInheritedAttributes.call(this,t,n,r,i)},a.defaults=n(n({},r.AbstractMmlLayoutNode.defaults),{groupalign:i.INHERIT}),a}(r.AbstractMmlLayoutNode)})),Se=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMalignmark=void 0;var r=A();e.MmlMalignmark=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(i.prototype,"kind",{get:function(){return`malignmark`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),i.defaults=n(n({},r.AbstractMmlNode.defaults),{edge:`left`}),i}(r.AbstractMmlNode)})),Ce=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMglyph=void 0;var r=A();e.MmlMglyph=function(e){t(i,e);function i(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=r.TEXCLASS.ORD,t}return Object.defineProperty(i.prototype,"kind",{get:function(){return`mglyph`},enumerable:!1,configurable:!0}),i.prototype.verifyAttributes=function(t){var n=this.attributes.getList(`src`,`fontfamily`,`index`),r=n.src,i=n.fontfamily,a=n.index;r===``&&(i===``||a===``)?this.mError(`mglyph must have either src or fontfamily and index attributes`,t,!0):e.prototype.verifyAttributes.call(this,t)},i.defaults=n(n({},r.AbstractMmlTokenNode.defaults),{alt:``,src:``,index:``,width:`auto`,height:`auto`,valign:`0em`}),i}(r.AbstractMmlTokenNode)})),we=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlAnnotation=e.MmlAnnotationXML=e.MmlSemantics=void 0;var r=A();e.MmlSemantics=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(i.prototype,"kind",{get:function(){return`semantics`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),i.defaults=n(n({},r.AbstractMmlBaseNode.defaults),{definitionUrl:null,encoding:null}),i}(r.AbstractMmlBaseNode);var i=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(i.prototype,"kind",{get:function(){return`annotation-xml`},enumerable:!1,configurable:!0}),i.prototype.setChildInheritedAttributes=function(){},i.defaults=n(n({},r.AbstractMmlNode.defaults),{definitionUrl:null,encoding:null,cd:`mathmlkeys`,name:``,src:null}),i}(r.AbstractMmlNode);e.MmlAnnotationXML=i,e.MmlAnnotation=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.properties={isChars:!0},t}return Object.defineProperty(r.prototype,"kind",{get:function(){return`annotation`},enumerable:!1,configurable:!0}),r.defaults=n({},i.defaults),r}(i)})),Te=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.TeXAtom=void 0;var r=A(),i=F(),a=function(e){t(i,e);function i(t,n,i){var a=e.call(this,t,n,i)||this;return a.texclass=r.TEXCLASS.ORD,a.setProperty(`texClass`,a.texClass),a}return Object.defineProperty(i.prototype,"kind",{get:function(){return`TeXAtom`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"notParent",{get:function(){return this.childNodes[0]&&this.childNodes[0].childNodes.length===1},enumerable:!1,configurable:!0}),i.prototype.setTeXclass=function(e){return this.childNodes[0].setTeXclass(null),this.adjustTeXclass(e)},i.prototype.adjustTeXclass=function(e){return e},i.defaults=n({},r.AbstractMmlBaseNode.defaults),i}(r.AbstractMmlBaseNode);e.TeXAtom=a,a.prototype.adjustTeXclass=i.MmlMo.prototype.adjustTeXclass})),Ee=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MathChoice=void 0;var r=A();e.MathChoice=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(i.prototype,"kind",{get:function(){return`MathChoice`},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"arity",{get:function(){return 4},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),i.prototype.setInheritedAttributes=function(e,t,n,r){var i=t?0:Math.max(0,Math.min(n,2))+1,a=this.childNodes[i]||this.factory.create(`mrow`);this.parent.replaceChild(a,this),a.setInheritedAttributes(e,t,n,r)},i.defaults=n({},r.AbstractMmlBaseNode.defaults),i}(r.AbstractMmlBaseNode)})),De=e((e=>{var t;Object.defineProperty(e,"__esModule",{value:!0}),e.MML=void 0;var n=A(),r=j(),i=M(),a=ee(),o=F(),s=te(),c=ne(),l=re(),u=ie(),d=ae(),f=oe(),p=se(),m=ce(),h=le(),g=ue(),_=de(),v=fe(),y=pe(),b=me(),x=he(),S=ge(),C=_e(),w=ve(),T=ye(),E=be(),D=xe(),O=Se(),k=Ce(),N=we(),P=Te(),De=Ee();e.MML=(t={},t[r.MmlMath.prototype.kind]=r.MmlMath,t[i.MmlMi.prototype.kind]=i.MmlMi,t[a.MmlMn.prototype.kind]=a.MmlMn,t[o.MmlMo.prototype.kind]=o.MmlMo,t[s.MmlMtext.prototype.kind]=s.MmlMtext,t[c.MmlMspace.prototype.kind]=c.MmlMspace,t[l.MmlMs.prototype.kind]=l.MmlMs,t[u.MmlMrow.prototype.kind]=u.MmlMrow,t[u.MmlInferredMrow.prototype.kind]=u.MmlInferredMrow,t[d.MmlMfrac.prototype.kind]=d.MmlMfrac,t[f.MmlMsqrt.prototype.kind]=f.MmlMsqrt,t[p.MmlMroot.prototype.kind]=p.MmlMroot,t[m.MmlMstyle.prototype.kind]=m.MmlMstyle,t[h.MmlMerror.prototype.kind]=h.MmlMerror,t[g.MmlMpadded.prototype.kind]=g.MmlMpadded,t[_.MmlMphantom.prototype.kind]=_.MmlMphantom,t[v.MmlMfenced.prototype.kind]=v.MmlMfenced,t[y.MmlMenclose.prototype.kind]=y.MmlMenclose,t[b.MmlMaction.prototype.kind]=b.MmlMaction,t[x.MmlMsub.prototype.kind]=x.MmlMsub,t[x.MmlMsup.prototype.kind]=x.MmlMsup,t[x.MmlMsubsup.prototype.kind]=x.MmlMsubsup,t[S.MmlMunder.prototype.kind]=S.MmlMunder,t[S.MmlMover.prototype.kind]=S.MmlMover,t[S.MmlMunderover.prototype.kind]=S.MmlMunderover,t[C.MmlMmultiscripts.prototype.kind]=C.MmlMmultiscripts,t[C.MmlMprescripts.prototype.kind]=C.MmlMprescripts,t[C.MmlNone.prototype.kind]=C.MmlNone,t[w.MmlMtable.prototype.kind]=w.MmlMtable,t[T.MmlMlabeledtr.prototype.kind]=T.MmlMlabeledtr,t[T.MmlMtr.prototype.kind]=T.MmlMtr,t[E.MmlMtd.prototype.kind]=E.MmlMtd,t[D.MmlMaligngroup.prototype.kind]=D.MmlMaligngroup,t[O.MmlMalignmark.prototype.kind]=O.MmlMalignmark,t[k.MmlMglyph.prototype.kind]=k.MmlMglyph,t[N.MmlSemantics.prototype.kind]=N.MmlSemantics,t[N.MmlAnnotation.prototype.kind]=N.MmlAnnotation,t[N.MmlAnnotationXML.prototype.kind]=N.MmlAnnotationXML,t[P.TeXAtom.prototype.kind]=P.TeXAtom,t[De.MathChoice.prototype.kind]=De.MathChoice,t[n.TextNode.prototype.kind]=n.TextNode,t[n.XMLNode.prototype.kind]=n.XMLNode,t)})),Oe=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.MmlFactory=void 0;var n=D(),r=De();e.MmlFactory=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"MML",{get:function(){return this.node},enumerable:!1,configurable:!0}),n.defaultNodes=r.MML,n}(n.AbstractNodeFactory)})),ke=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},r=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},i=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.BitFieldClass=e.BitField=void 0;var a=function(){function e(){this.bits=0}return e.allocate=function(){for(var t,r,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];try{for(var o=n(i),s=o.next();!s.done;s=o.next()){var c=s.value;if(this.has(c))throw Error(`Bit already allocated for `+c);if(this.next===e.MAXBIT)throw Error(`Maximum number of bits already allocated`);this.names.set(c,this.next),this.next<<=1}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},e.has=function(e){return this.names.has(e)},e.prototype.set=function(e){this.bits|=this.getBit(e)},e.prototype.clear=function(e){this.bits&=~this.getBit(e)},e.prototype.isSet=function(e){return!!(this.bits&this.getBit(e))},e.prototype.reset=function(){this.bits=0},e.prototype.getBit=function(e){var t=this.constructor.names.get(e);if(!t)throw Error(`Unknown bit-field name: `+e);return t},e.MAXBIT=1<<31,e.next=1,e.names=new Map,e}();e.BitField=a;function o(){var e=[...arguments],n=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(a);return n.allocate.apply(n,i([],r(e),!1)),n}e.BitFieldClass=o})),Ae=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},r=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMathDocument=e.resetAllOptions=e.resetOptions=e.RenderList=void 0;var o=i(),s=x(),c=S(),l=w(),u=T(),f=Oe(),p=ke(),m=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return i.create=function(e){var t,i,a=new this;try{for(var o=n(Object.keys(e)),s=o.next();!s.done;s=o.next()){var c=s.value,l=r(this.action(c,e[c]),2),u=l[0],d=l[1];d&&a.add(u,d)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return a},i.action=function(e,t){var n,i,a,o,s,c,l=!0,u=t[0];if(t.length===1||typeof t[1]==`boolean`)t.length===2&&(l=t[1]),n=r(this.methodActions(e),2),s=n[0],c=n[1];else if(typeof t[1]==`string`)if(typeof t[2]==`string`){t.length===4&&(l=t[3]);var d=r(t.slice(1),2),f=d[0],p=d[1];i=r(this.methodActions(f,p),2),s=i[0],c=i[1]}else t.length===3&&(l=t[2]),a=r(this.methodActions(t[1]),2),s=a[0],c=a[1];else t.length===4&&(l=t[3]),o=r(t.slice(1),2),s=o[0],c=o[1];return[{id:e,renderDoc:s,renderMath:c,convert:l},u]},i.methodActions=function(e,t){return t===void 0&&(t=e),[function(t){return e&&t[e](),!1},function(e,n){return t&&e[t](n),!1}]},i.prototype.renderDoc=function(e,t){var r,i;t===void 0&&(t=u.STATE.UNPROCESSED);try{for(var a=n(this.items),o=a.next();!o.done;o=a.next()){var s=o.value;if(s.priority>=t&&s.item.renderDoc(e))return}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},i.prototype.renderMath=function(e,t,r){var i,a;r===void 0&&(r=u.STATE.UNPROCESSED);try{for(var o=n(this.items),s=o.next();!s.done;s=o.next()){var c=s.value;if(c.priority>=r&&c.item.renderMath(e,t))return}}catch(e){i={error:e}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}},i.prototype.renderConvert=function(e,t,r){var i,a;r===void 0&&(r=u.STATE.LAST);try{for(var o=n(this.items),s=o.next();!s.done;s=o.next()){var c=s.value;if(c.priority>r||c.item.convert&&c.item.renderMath(e,t))return}}catch(e){i={error:e}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}},i.prototype.findID=function(e){var t,r;try{for(var i=n(this.items),a=i.next();!a.done;a=i.next()){var o=a.value;if(o.item.id===e)return o.item}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return null},i}(d().PrioritizedList);e.RenderList=m,e.resetOptions={all:!1,processed:!1,inputJax:null,outputJax:null},e.resetAllOptions={all:!0,processed:!0,inputJax:[],outputJax:[]};var h=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.compile=function(e){return null},n}(s.AbstractInputJax),g=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.typeset=function(e,t){return t===void 0&&(t=null),null},n.prototype.escaped=function(e,t){return null},n}(c.AbstractOutputJax),_=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(l.AbstractMathList),v=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(u.AbstractMathItem);e.AbstractMathDocument=function(){function t(e,n,r){var i=this,a=this.constructor;this.document=e,this.options=(0,o.userOptions)((0,o.defaultOptions)({},a.OPTIONS),r),this.math=new(this.options.MathList||_),this.renderActions=m.create(this.options.renderActions),this.processed=new t.ProcessBits,this.outputJax=this.options.OutputJax||new g;var s=this.options.InputJax||[new h];Array.isArray(s)||(s=[s]),this.inputJax=s,this.adaptor=n,this.outputJax.setAdaptor(n),this.inputJax.map(function(e){return e.setAdaptor(n)}),this.mmlFactory=this.options.MmlFactory||new f.MmlFactory,this.inputJax.map(function(e){return e.setMmlFactory(i.mmlFactory)}),this.outputJax.initialize(),this.inputJax.map(function(e){return e.initialize()})}return Object.defineProperty(t.prototype,"kind",{get:function(){return this.constructor.KIND},enumerable:!1,configurable:!0}),t.prototype.addRenderAction=function(e){var t=[...arguments].slice(1),n=r(m.action(e,t),2),i=n[0],a=n[1];this.renderActions.add(i,a)},t.prototype.removeRenderAction=function(e){var t=this.renderActions.findID(e);t&&this.renderActions.remove(t)},t.prototype.render=function(){return this.renderActions.renderDoc(this),this},t.prototype.rerender=function(e){return e===void 0&&(e=u.STATE.RERENDER),this.state(e-1),this.render(),this},t.prototype.convert=function(e,t){t===void 0&&(t={});var n=(0,o.userOptions)({format:this.inputJax[0].name,display:!0,end:u.STATE.LAST,em:16,ex:8,containerWidth:null,lineWidth:1e6,scale:1,family:``},t),r=n.format,i=n.display,a=n.end,s=n.ex,c=n.em,l=n.containerWidth,d=n.lineWidth,f=n.scale,p=n.family;l===null&&(l=80*s);var m=this.inputJax.reduce(function(e,t){return t.name===r?t:e},null),h=new this.options.MathItem(e,m,i);return h.start.node=this.adaptor.body(this.document),h.setMetrics(c,s,l,d,f),this.outputJax.options.mtextInheritFont&&(h.outputData.mtextFamily=p),this.outputJax.options.merrorInheritFont&&(h.outputData.merrorFamily=p),h.convert(this,a),h.typesetRoot||h.root},t.prototype.findMath=function(e){return e===void 0&&(e=null),this.processed.set(`findMath`),this},t.prototype.compile=function(){var e,t,r,i;if(!this.processed.isSet(`compile`)){var a=[];try{for(var o=n(this.math),s=o.next();!s.done;s=o.next()){var c=s.value;this.compileMath(c),c.inputData.recompile!==void 0&&a.push(c)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}try{for(var l=n(a),u=l.next();!u.done;u=l.next()){var c=u.value,d=c.inputData.recompile;c.state(d.state),c.inputData.recompile=d,this.compileMath(c)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}this.processed.set(`compile`)}return this},t.prototype.compileMath=function(e){try{e.compile(this)}catch(t){if(t.retry||t.restart)throw t;this.options.compileError(this,e,t),e.inputData.error=t}},t.prototype.compileError=function(e,t){e.root=this.mmlFactory.create(`math`,null,[this.mmlFactory.create(`merror`,{"data-mjx-error":t.message,title:t.message},[this.mmlFactory.create(`mtext`,null,[this.mmlFactory.create(`text`).setText(`Math input error`)])])]),e.display&&e.root.attributes.set(`display`,`block`),e.inputData.error=t.message},t.prototype.typeset=function(){var e,t;if(!this.processed.isSet(`typeset`)){try{for(var r=n(this.math),i=r.next();!i.done;i=r.next()){var a=i.value;try{a.typeset(this)}catch(e){if(e.retry||e.restart)throw e;this.options.typesetError(this,a,e),a.outputData.error=e}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}this.processed.set(`typeset`)}return this},t.prototype.typesetError=function(e,t){e.typesetRoot=this.adaptor.node(`mjx-container`,{class:`MathJax mjx-output-error`,jax:this.outputJax.name},[this.adaptor.node(`span`,{"data-mjx-error":t.message,title:t.message,style:{color:`red`,"background-color":`yellow`,"line-height":`normal`}},[this.adaptor.text(`Math output error`)])]),e.display&&this.adaptor.setAttributes(e.typesetRoot,{style:{display:`block`,margin:`1em 0`,"text-align":`center`}}),e.outputData.error=t.message},t.prototype.getMetrics=function(){return this.processed.isSet(`getMetrics`)||(this.outputJax.getMetrics(this),this.processed.set(`getMetrics`)),this},t.prototype.updateDocument=function(){var e,t;if(!this.processed.isSet(`updateDocument`)){try{for(var r=n(this.math.reversed()),i=r.next();!i.done;i=r.next())i.value.updateDocument(this)}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}this.processed.set(`updateDocument`)}return this},t.prototype.removeFromDocument=function(e){return e===void 0&&(e=!1),this},t.prototype.state=function(e,t){var r,i;t===void 0&&(t=!1);try{for(var a=n(this.math),o=a.next();!o.done;o=a.next())o.value.state(e,t)}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return e<u.STATE.INSERTED&&this.processed.clear(`updateDocument`),e<u.STATE.TYPESET&&(this.processed.clear(`typeset`),this.processed.clear(`getMetrics`)),e<u.STATE.COMPILED&&this.processed.clear(`compile`),this},t.prototype.reset=function(t){var n;return t===void 0&&(t={processed:!0}),t=(0,o.userOptions)(Object.assign({},e.resetOptions),t),t.all&&Object.assign(t,e.resetAllOptions),t.processed&&this.processed.reset(),t.inputJax&&this.inputJax.forEach(function(e){return e.reset.apply(e,a([],r(t.inputJax),!1))}),t.outputJax&&(n=this.outputJax).reset.apply(n,a([],r(t.outputJax),!1)),this},t.prototype.clear=function(){return this.reset(),this.math.clear(),this},t.prototype.concat=function(e){return this.math.merge(e),this},t.prototype.clearMathItemsWithin=function(e){var t,n=this.getMathItemsWithin(e);return(t=this.math).remove.apply(t,a([],r(n),!1)),n},t.prototype.getMathItemsWithin=function(e){var t,r,i,a;Array.isArray(e)||(e=[e]);var o=this.adaptor,s=[],c=o.getElements(e,this.document);try{ITEMS:for(var l=n(this.math),u=l.next();!u.done;u=l.next()){var d=u.value;try{for(var f=(i=void 0,n(c)),p=f.next();!p.done;p=f.next()){var m=p.value;if(d.start.node&&o.contains(m,d.start.node)){s.push(d);continue ITEMS}}}catch(e){i={error:e}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return s},t.KIND=`MathDocument`,t.OPTIONS={OutputJax:null,InputJax:null,MmlFactory:null,MathList:_,MathItem:v,compileError:function(e,t,n){e.compileError(t,n)},typesetError:function(e,t,n){e.typesetError(t,n)},renderActions:(0,o.expandable)({find:[u.STATE.FINDMATH,`findMath`,``,!1],compile:[u.STATE.COMPILED],metrics:[u.STATE.METRICS,`getMetrics`,``,!1],typeset:[u.STATE.TYPESET],update:[u.STATE.INSERTED,`updateDocument`,!1]})},t.ProcessBits=(0,p.BitFieldClass)(`findMath`,`compile`,`getMetrics`,`typeset`,`updateDocument`),t}()})),je=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractHandler=void 0;var n=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(Ae().AbstractMathDocument);e.AbstractHandler=function(){function e(e,t){t===void 0&&(t=5),this.documentClass=n,this.adaptor=e,this.priority=t}return Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),e.prototype.handlesDocument=function(e){return!1},e.prototype.create=function(e,t){return new this.documentClass(e,this.adaptor,t)},e.NAME=`generic`,e}()})),Me=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLMathItem=void 0;var n=T();e.HTMLMathItem=function(e){t(r,e);function r(t,n,r,i,a){return r===void 0&&(r=!0),i===void 0&&(i={node:null,n:0,delim:``}),a===void 0&&(a={node:null,n:0,delim:``}),e.call(this,t,n,r,i,a)||this}return Object.defineProperty(r.prototype,"adaptor",{get:function(){return this.inputJax.adaptor},enumerable:!1,configurable:!0}),r.prototype.updateDocument=function(e){if(this.state()<n.STATE.INSERTED){if(this.inputJax.processStrings){var t=this.start.node;if(t===this.end.node)this.end.n&&this.end.n<this.adaptor.value(this.end.node).length&&this.adaptor.split(this.end.node,this.end.n),this.start.n&&(t=this.adaptor.split(this.start.node,this.start.n)),this.adaptor.replace(this.typesetRoot,t);else{for(this.start.n&&(t=this.adaptor.split(t,this.start.n));t!==this.end.node;){var r=this.adaptor.next(t);this.adaptor.remove(t),t=r}this.adaptor.insert(this.typesetRoot,t),this.end.n<this.adaptor.value(t).length&&this.adaptor.split(t,this.end.n),this.adaptor.remove(t)}}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(n.STATE.INSERTED)}},r.prototype.updateStyleSheet=function(e){e.addStyleSheet()},r.prototype.removeFromDocument=function(e){if(e===void 0&&(e=!1),this.state()>=n.STATE.TYPESET){var t=this.adaptor,r=this.start.node,i=t.text(``);if(e){var a=this.start.delim+this.math+this.end.delim;if(this.inputJax.processStrings)i=t.text(a);else{var o=t.parse(a,`text/html`);i=t.firstChild(t.body(o))}}t.parent(r)&&t.replace(i,r),this.start.node=this.end.node=i,this.start.n=this.end.n=0}},r}(n.AbstractMathItem)})),Ne=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLMathList=void 0,e.HTMLMathList=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(w().AbstractMathList)})),Pe=e((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLDomStrings=void 0;var n=i();e.HTMLDomStrings=function(){function e(e){e===void 0&&(e=null);var t=this.constructor;this.options=(0,n.userOptions)((0,n.defaultOptions)({},t.OPTIONS),e),this.init(),this.getPatterns()}return e.prototype.init=function(){this.strings=[],this.string=``,this.snodes=[],this.nodes=[],this.stack=[]},e.prototype.getPatterns=function(){var e=(0,n.makeArray)(this.options.skipHtmlTags),t=(0,n.makeArray)(this.options.ignoreHtmlClass),r=(0,n.makeArray)(this.options.processHtmlClass);this.skipHtmlTags=RegExp(`^(?:`+e.join(`|`)+`)$`,`i`),this.ignoreHtmlClass=RegExp(`(?:^| )(?:`+t.join(`|`)+`)(?: |$)`),this.processHtmlClass=RegExp(`(?:^| )(?:`+r+`)(?: |$)`)},e.prototype.pushString=function(){this.string.match(/\S/)&&(this.strings.push(this.string),this.nodes.push(this.snodes)),this.string=``,this.snodes=[]},e.prototype.extendString=function(e,t){this.snodes.push([e,t.length]),this.string+=t},e.prototype.handleText=function(e,t){return t||this.extendString(e,this.adaptor.value(e)),this.adaptor.next(e)},e.prototype.handleTag=function(e,t){if(!t){var n=this.options.includeHtmlTags[this.adaptor.kind(e)];this.extendString(e,n)}return this.adaptor.next(e)},e.prototype.handleContainer=function(e,t){this.pushString();var n=this.adaptor.getAttribute(e,`class`)||``,r=this.adaptor.kind(e)||``,i=this.processHtmlClass.exec(n),a=e;return this.adaptor.firstChild(e)&&!this.adaptor.getAttribute(e,`data-MJX`)&&(i||!this.skipHtmlTags.exec(r))?(this.adaptor.next(e)&&this.stack.push([this.adaptor.next(e),t]),a=this.adaptor.firstChild(e),t=(t||this.ignoreHtmlClass.exec(n))&&!i):a=this.adaptor.next(e),[a,t]},e.prototype.handleOther=function(e,t){return this.pushString(),this.adaptor.next(e)},e.prototype.find=function(e){var n,r;this.init();for(var i=this.adaptor.next(e),a=!1,o=this.options.includeHtmlTags;e&&e!==i;){var s=this.adaptor.kind(e);s===`#text`?e=this.handleText(e,a):o.hasOwnProperty(s)?e=this.handleTag(e,a):s?(n=t(this.handleContainer(e,a),2),e=n[0],a=n[1]):e=this.handleOther(e,a),!e&&this.stack.length&&(this.pushString(),r=t(this.stack.pop(),2),e=r[0],a=r[1])}this.pushString();var c=[this.strings,this.nodes];return this.init(),c},e.OPTIONS={skipHtmlTags:[`script`,`noscript`,`style`,`textarea`,`pre`,`code`,`annotation`,`annotation-xml`],includeHtmlTags:{br:`
6
+ `,wbr:``,"#comment":``},ignoreHtmlClass:`mathjax_ignore`,processHtmlClass:`mathjax_process`},e}()})),Fe=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLDocument=void 0;var o=Ae(),s=i(),c=Me(),l=Ne(),u=Pe(),d=T();e.HTMLDocument=function(e){t(i,e);function i(t,n,i){var a=this,o=r((0,s.separateOptions)(i,u.HTMLDomStrings.OPTIONS),2),c=o[0],l=o[1];return a=e.call(this,t,n,c)||this,a.domStrings=a.options.DomStrings||new u.HTMLDomStrings(l),a.domStrings.adaptor=n,a.styles=[],a}return i.prototype.findPosition=function(e,t,n,i){var o,s,c=this.adaptor;try{for(var l=a(i[e]),u=l.next();!u.done;u=l.next()){var d=u.value,f=r(d,2),p=f[0],m=f[1];if(t<=m&&c.kind(p)===`#text`)return{node:p,n:Math.max(t,0),delim:n};t-=m}}catch(e){o={error:e}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return{node:null,n:0,delim:n}},i.prototype.mathItem=function(e,t,n){var r=e.math,i=this.findPosition(e.n,e.start.n,e.open,n),a=this.findPosition(e.n,e.end.n,e.close,n);return new this.options.MathItem(r,t,e.display,i,a)},i.prototype.findMath=function(e){var t,n,i,o,c,l,u,d,f;if(!this.processed.isSet(`findMath`)){this.adaptor.document=this.document,e=(0,s.userOptions)({elements:this.options.elements||[this.adaptor.body(this.document)]},e);try{for(var p=a(this.adaptor.getElements(e.elements,this.document)),m=p.next();!m.done;m=p.next()){var h=m.value,g=r([null,null],2),_=g[0],v=g[1];try{for(var y=(i=void 0,a(this.inputJax)),b=y.next();!b.done;b=y.next()){var x=b.value,S=new this.options.MathList;if(x.processStrings){_===null&&(c=r(this.domStrings.find(h),2),_=c[0],v=c[1]);try{for(var C=(l=void 0,a(x.findMath(_))),w=C.next();!w.done;w=C.next()){var T=w.value;S.push(this.mathItem(T,x,v))}}catch(e){l={error:e}}finally{try{w&&!w.done&&(u=C.return)&&u.call(C)}finally{if(l)throw l.error}}}else try{for(var E=(d=void 0,a(x.findMath(h))),D=E.next();!D.done;D=E.next()){var T=D.value,O=new this.options.MathItem(T.math,x,T.display,T.start,T.end);S.push(O)}}catch(e){d={error:e}}finally{try{D&&!D.done&&(f=E.return)&&f.call(E)}finally{if(d)throw d.error}}this.math.merge(S)}}catch(e){i={error:e}}finally{try{b&&!b.done&&(o=y.return)&&o.call(y)}finally{if(i)throw i.error}}}}catch(e){t={error:e}}finally{try{m&&!m.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}this.processed.set(`findMath`)}return this},i.prototype.updateDocument=function(){return this.processed.isSet(`updateDocument`)||(this.addPageElements(),this.addStyleSheet(),e.prototype.updateDocument.call(this),this.processed.set(`updateDocument`)),this},i.prototype.addPageElements=function(){var e=this.adaptor.body(this.document),t=this.documentPageElements();t&&this.adaptor.append(e,t)},i.prototype.addStyleSheet=function(){var e=this.documentStyleSheet(),t=this.adaptor;if(e&&!t.parent(e)){var n=t.head(this.document),r=this.findSheet(n,t.getAttribute(e,`id`));r?t.replace(e,r):t.append(n,e)}},i.prototype.findSheet=function(e,t){var n,r;if(t)try{for(var i=a(this.adaptor.tags(e,`style`)),o=i.next();!o.done;o=i.next()){var s=o.value;if(this.adaptor.getAttribute(s,`id`)===t)return s}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null},i.prototype.removeFromDocument=function(e){var t,n;if(e===void 0&&(e=!1),this.processed.isSet(`updateDocument`))try{for(var r=a(this.math),i=r.next();!i.done;i=r.next()){var o=i.value;o.state()>=d.STATE.INSERTED&&o.state(d.STATE.TYPESET,e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this.processed.clear(`updateDocument`),this},i.prototype.documentStyleSheet=function(){return this.outputJax.styleSheet(this)},i.prototype.documentPageElements=function(){return this.outputJax.pageElements(this)},i.prototype.addStyles=function(e){this.styles.push(e)},i.prototype.getStyles=function(){return this.styles},i.KIND=`HTML`,i.OPTIONS=n(n({},o.AbstractMathDocument.OPTIONS),{renderActions:(0,s.expandable)(n(n({},o.AbstractMathDocument.OPTIONS.renderActions),{styles:[d.STATE.INSERTED+1,``,`updateStyleSheet`,!1]})),MathList:l.HTMLMathList,MathItem:c.HTMLMathItem,DomStrings:null}),i}(o.AbstractMathDocument)})),Ie=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLHandler=void 0;var n=je(),r=Fe();e.HTMLHandler=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.documentClass=r.HTMLDocument,t}return n.prototype.handlesDocument=function(e){var t=this.adaptor;if(typeof e==`string`)try{e=t.parse(e,`text/html`)}catch{}return e instanceof t.window.Document||e instanceof t.window.HTMLElement||e instanceof t.window.DocumentFragment},n.prototype.create=function(t,n){var r=this.adaptor;if(typeof t==`string`)t=r.parse(t,`text/html`);else if(t instanceof r.window.HTMLElement||t instanceof r.window.DocumentFragment){var i=t;t=r.parse(``,`text/html`),r.append(r.body(t),i)}return e.prototype.create.call(this,t,n)},n}(n.AbstractHandler)})),Le=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RegisterHTMLHandler=void 0;var t=p(),n=Ie();function r(e){var r=new n.HTMLHandler(e);return t.mathjax.handlers.register(r),r}e.RegisterHTMLHandler=r})),Re=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractFindMath=void 0;var t=i();e.AbstractFindMath=function(){function e(e){var n=this.constructor;this.options=(0,t.userOptions)((0,t.defaultOptions)({},n.OPTIONS),e)}return e.OPTIONS={},e}()})),ze=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.FindTeX=void 0;var r=Re(),i=P(),a=T();e.FindTeX=function(e){t(r,e);function r(t){var n=e.call(this,t)||this;return n.getPatterns(),n}return r.prototype.getPatterns=function(){var e=this,t=this.options,n=[],r=[],a=[];this.end={},this.env=this.sub=0;var o=1;t.inlineMath.forEach(function(t){return e.addPattern(n,t,!1)}),t.displayMath.forEach(function(t){return e.addPattern(n,t,!0)}),n.length&&r.push(n.sort(i.sortLength).join(`|`)),t.processEnvironments&&(r.push(`\\\\begin\\s*\\{([^}]*)\\}`),this.env=o,o++),t.processEscapes&&a.push(`\\\\([\\\\$])`),t.processRefs&&a.push(`(\\\\(?:eq)?ref\\s*\\{[^}]*\\})`),a.length&&(r.push(`(`+a.join(`|`)+`)`),this.sub=o),this.start=new RegExp(r.join(`|`),`g`),this.hasPatterns=r.length>0},r.prototype.addPattern=function(e,t,r){var a=n(t,2),o=a[0],s=a[1];e.push((0,i.quotePattern)(o)),this.end[o]=[s,r,this.endPattern(s)]},r.prototype.endPattern=function(e,t){return RegExp((t||(0,i.quotePattern)(e))+`|\\\\(?:[a-zA-Z]|.)|[{}]`,`g`)},r.prototype.findEnd=function(e,t,r,i){for(var o=n(i,3),s=o[0],c=o[1],l=o[2],u=l.lastIndex=r.index+r[0].length,d,f=0;d=l.exec(e);)if((d[1]||d[0])===s&&f===0)return(0,a.protoItem)(r[0],e.substr(u,d.index-u),d[0],t,r.index,d.index+d[0].length,c);else d[0]===`{`?f++:d[0]===`}`&&f&&f--;return null},r.prototype.findMathInString=function(e,t,n){var r,o;for(this.start.lastIndex=0;r=this.start.exec(n);){if(r[this.env]!==void 0&&this.env){var s=`\\\\end\\s*(\\{`+(0,i.quotePattern)(r[this.env])+`\\})`;o=this.findEnd(n,t,r,[`{`+r[this.env]+`}`,!0,this.endPattern(null,s)]),o&&(o.math=o.open+o.math+o.close,o.open=o.close=``)}else if(r[this.sub]!==void 0&&this.sub){var c=r[this.sub],s=r.index+r[this.sub].length;o=c.length===2?(0,a.protoItem)(``,c.substr(1),``,t,r.index,s):(0,a.protoItem)(``,c,``,t,r.index,s,!1)}else o=this.findEnd(n,t,r,this.end[r[0]]);o&&(e.push(o),this.start.lastIndex=o.end.n)}},r.prototype.findMath=function(e){var t=[];if(this.hasPatterns)for(var n=0,r=e.length;n<r;n++)this.findMathInString(t,n,e[n]);return t},r.OPTIONS={inlineMath:[[`\\(`,`\\)`]],displayMath:[[`$$`,`$$`],[`\\[`,`\\]`]],processEscapes:!0,processEnvironments:!0,processRefs:!0},r}(r.AbstractFindMath)})),I=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0});var i=A(),a=F(),o;(function(e){var o=new Map([[`autoOP`,!0],[`fnOP`,!0],[`movesupsub`,!0],[`subsupOK`,!0],[`texprimestyle`,!0],[`useHeight`,!0],[`variantForm`,!0],[`withDelims`,!0],[`mathaccent`,!0],[`open`,!0],[`close`,!0]]);function s(e){return String.fromCodePoint(parseInt(e,16))}e.createEntity=s;function c(e){return e.childNodes}e.getChildren=c;function l(e){return e.getText()}e.getText=l;function u(e,n){var r,i;try{for(var a=t(n),o=a.next();!o.done;o=a.next()){var s=o.value;e.appendChild(s)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}}e.appendChildren=u;function d(e,t,n){e.attributes.set(t,n)}e.setAttribute=d;function f(e,t,n){e.setProperty(t,n)}e.setProperty=f;function p(e,n){var r,i;try{for(var a=t(Object.keys(n)),s=a.next();!s.done;s=a.next()){var c=s.value,l=n[c];c===`texClass`?(e.texClass=l,e.setProperty(c,l)):c===`movablelimits`?(e.setProperty(`movablelimits`,l),(e.isKind(`mo`)||e.isKind(`mstyle`))&&e.attributes.set(`movablelimits`,l)):c===`inferred`||(o.has(c)?e.setProperty(c,l):e.attributes.set(c,l))}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}}e.setProperties=p;function m(e,t){return e.getProperty(t)}e.getProperty=m;function h(e,t){return e.attributes.get(t)}e.getAttribute=h;function g(e){var t=[...arguments].slice(1);e.removeProperty.apply(e,r([],n(t),!1))}e.removeProperties=g;function _(e,t){return e.childNodes[t]}e.getChildAt=_;function v(e,t,n){var r=e.childNodes;r[t]=n,n&&(n.parent=e)}e.setChild=v;function y(e,t){for(var n=e.childNodes,r=0;r<n.length;r++)v(t,r,n[r])}e.copyChildren=y;function b(e,t){t.attributes=e.attributes,p(t,e.getAllProperties())}e.copyAttributes=b;function x(e,t){return e.isKind(t)}e.isType=x;function S(e){return e.isEmbellished}e.isEmbellished=S;function C(e){return e.texClass}e.getTexClass=C;function w(e){return e.coreMO()}e.getCoreMO=w;function T(e){return e instanceof i.AbstractMmlNode||e instanceof i.AbstractMmlEmptyNode}e.isNode=T;function E(e){return e.isInferred}e.isInferred=E;function D(e){var n,r;if(!x(e,`mo`))return null;var i=e,o=i.getForms();try{for(var s=t(o),c=s.next();!c.done;c=s.next()){var l=c.value,u=a.MmlMo.OPTABLE[l][i.getText()];if(u)return u}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return null}e.getForm=D})(o||={}),e.default=o})),Be=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var r=A(),i=n(I()),a;(function(e){e.cleanStretchy=function(e){var n,r,a=e.data;try{for(var o=t(a.getList(`fixStretchy`)),s=o.next();!s.done;s=o.next()){var c=s.value;if(i.default.getProperty(c,`fixStretchy`)){var l=i.default.getForm(c);l&&l[3]&&l[3].stretchy&&i.default.setAttribute(c,`stretchy`,!1);var u=c.parent;if(!i.default.getTexClass(c)&&(!l||!l[2])){var d=a.nodeFactory.create(`node`,`TeXAtom`,[c]);u.replaceChild(d,c),d.inheritAttributesFrom(c)}i.default.removeProperties(c,`fixStretchy`)}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.cleanAttributes=function(e){e.data.root.walkTree(function(e,n){var r,i,a=e.attributes;if(a){var o=new Set((a.get(`mjx-keep-attrs`)||``).split(/ /));delete a.getAllAttributes()[`mjx-keep-attrs`];try{for(var s=t(a.getExplicitNames()),c=s.next();!c.done;c=s.next()){var l=c.value;!o.has(l)&&a.attributes[l]===e.attributes.getInherited(l)&&delete a.attributes[l]}}catch(e){r={error:e}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}},{})},e.combineRelations=function(e){var o,s,c,l,u=[];try{for(var d=t(e.data.getList(`mo`)),f=d.next();!f.done;f=d.next()){var p=f.value;if(!(p.getProperty(`relationsCombined`)||!p.parent||p.parent&&!i.default.isType(p.parent,`mrow`)||i.default.getTexClass(p)!==r.TEXCLASS.REL)){for(var m=p.parent,h=void 0,g=m.childNodes,_=g.indexOf(p)+1,v=i.default.getProperty(p,`variantForm`);_<g.length&&(h=g[_])&&i.default.isType(h,`mo`)&&i.default.getTexClass(h)===r.TEXCLASS.REL;)if(v===i.default.getProperty(h,`variantForm`)&&a(p,h)){i.default.appendChildren(p,i.default.getChildren(h)),n([`stretchy`,`rspace`],p,h);try{for(var y=(c=void 0,t(h.getPropertyNames())),b=y.next();!b.done;b=y.next()){var x=b.value;p.setProperty(x,h.getProperty(x))}}catch(e){c={error:e}}finally{try{b&&!b.done&&(l=y.return)&&l.call(y)}finally{if(c)throw c.error}}g.splice(_,1),u.push(h),h.parent=null,h.setProperty(`relationsCombined`,!0)}else{p.attributes.getExplicit(`rspace`)??i.default.setAttribute(p,`rspace`,`0pt`),h.attributes.getExplicit(`lspace`)??i.default.setAttribute(h,`lspace`,`0pt`);break}p.attributes.setInherited(`form`,p.getForms()[0])}}}catch(e){o={error:e}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(o)throw o.error}}e.data.removeFromList(`mo`,u)};var n=function(e,t,n){var r=t.attributes,i=n.attributes;e.forEach(function(e){var t=i.getExplicit(e);t!=null&&r.set(e,t)})},a=function(e,n){var r,i,a=function(e,t){return e.getExplicitNames().filter(function(n){return n!==t&&(n!==`stretchy`||e.getExplicit(`stretchy`))})},o=e.attributes,s=n.attributes,c=a(o,`lspace`),l=a(s,`rspace`);if(c.length!==l.length)return!1;try{for(var u=t(c),d=u.next();!d.done;d=u.next()){var f=d.value;if(o.getExplicit(f)!==s.getExplicit(f))return!1}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return!0},o=function(e,n,r){var a,o,s=[];try{for(var c=t(e.getList(`m`+n+r)),l=c.next();!l.done;l=c.next()){var u=l.value,d=u.childNodes;if(!(d[u[n]]&&d[u[r]])){var f=u.parent,p=d[u[n]]?e.nodeFactory.create(`node`,`m`+n,[d[u.base],d[u[n]]]):e.nodeFactory.create(`node`,`m`+r,[d[u.base],d[u[r]]]);i.default.copyAttributes(u,p),f?f.replaceChild(p,u):e.root=p,s.push(u)}}}catch(e){a={error:e}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}e.removeFromList(`m`+n+r,s)};e.cleanSubSup=function(e){var t=e.data;t.error||(o(t,`sub`,`sup`),o(t,`under`,`over`))};var s=function(e,n,r){var a,o,s=[];try{for(var c=t(e.getList(n)),l=c.next();!l.done;l=c.next()){var u=l.value;if(!u.attributes.get(`displaystyle`)){var d=u.childNodes[u.base],f=d.coreMO();if(d.getProperty(`movablelimits`)&&!f.attributes.getExplicit(`movablelimits`)){var p=e.nodeFactory.create(`node`,r,u.childNodes);i.default.copyAttributes(u,p),u.parent?u.parent.replaceChild(p,u):e.root=p,s.push(u)}}}}catch(e){a={error:e}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}e.removeFromList(n,s)};e.moveLimits=function(e){var t=e.data;s(t,`munderover`,`msubsup`),s(t,`munder`,`msub`),s(t,`mover`,`msup`)},e.setInherited=function(e){e.data.root.setInheritedAttributes({},e.math.display,0,!1)}})(a||={}),e.default=a})),L=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function e(t,n){var r=[...arguments].slice(2);this.id=t,this.message=e.processString(n,r)}return e.processString=function(t,n){for(var r=t.split(e.pattern),i=1,a=r.length;i<a;i+=2){var o=r[i].charAt(0);o>=`0`&&o<=`9`?(r[i]=n[parseInt(r[i],10)-1],typeof r[i]==`number`&&(r[i]=r[i].toString())):o===`{`&&(o=r[i].substr(1),o>=`0`&&o<=`9`?(r[i]=n[parseInt(r[i].substr(1,r[i].length-2),10)-1],typeof r[i]==`number`&&(r[i]=r[i].toString())):r[i].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/)&&(r[i]=`%`+r[i])),r[i]??(r[i]=`???`)}return r.join(``)},e.pattern=/%(\d+|\{\d+\}|\{[a-z]+:\%\d+(?:\|(?:%\{\d+\}|%.|[^\}])*)+\}|.)/g,e}()})),R=e((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var i=A(),a=r(I()),o=r(z()),s=r(L()),c=h(),l;(function(e){var r=7.2,l={em:function(e){return e},ex:function(e){return e*.43},pt:function(e){return e/10},pc:function(e){return e*1.2},px:function(e){return e*r/72},in:function(e){return e*r},cm:function(e){return e*r/2.54},mm:function(e){return e*r/25.4},mu:function(e){return e/18}},u=`([-+]?([.,]\\d+|\\d+([.,]\\d*)?))`,d=`(pt|em|ex|mu|px|mm|cm|in|pc)`,f=RegExp(`^\\s*`+u+`\\s*`+d+`\\s*$`),p=RegExp(`^\\s*`+u+`\\s*`+d+` ?`);function m(e,t){t===void 0&&(t=!1);var n=e.match(t?p:f);return n?h([n[1].replace(/,/,`.`),n[4],n[0].length]):[null,null,0]}e.matchDimen=m;function h(e){var n=t(e,3),r=n[0],i=n[1],a=n[2];return i===`mu`?[_(l[i](parseFloat(r||`1`))).slice(0,-2),`em`,a]:[r,i,a]}function g(e){var n=t(m(e),2),r=n[0],i=n[1],a=parseFloat(r||`1`),o=l[i];return o?o(a):0}e.dimen2em=g;function _(e){return Math.abs(e)<6e-4?`0em`:e.toFixed(3).replace(/\.?0+$/,``)+`em`}e.Em=_;function v(){return[...arguments].map(function(e){return _(e)}).join(` `)}e.cols=v;function y(e,t,n,r,s,c){s===void 0&&(s=``),c===void 0&&(c=``);var l=e.nodeFactory,u=l.create(`node`,`mrow`,[],{open:t,close:r,texClass:i.TEXCLASS.INNER}),d;if(s)d=new o.default(`\\`+s+`l`+t,e.parser.stack.env,e).mml();else{var f=l.create(`text`,t);d=l.create(`node`,`mo`,[],{fence:!0,stretchy:!0,symmetric:!0,texClass:i.TEXCLASS.OPEN},f)}if(a.default.appendChildren(u,[d,n]),s)d=new o.default(`\\`+s+`r`+r,e.parser.stack.env,e).mml();else{var p=l.create(`text`,r);d=l.create(`node`,`mo`,[],{fence:!0,stretchy:!0,symmetric:!0,texClass:i.TEXCLASS.CLOSE},p)}return c&&d.attributes.set(`mathcolor`,c),a.default.appendChildren(u,[d]),u}e.fenced=y;function b(e,t,n,r){var o=e.nodeFactory.create(`node`,`mrow`,[],{open:t,close:r,texClass:i.TEXCLASS.ORD});return t&&a.default.appendChildren(o,[x(e,t,`l`)]),a.default.isType(n,`mrow`)?a.default.appendChildren(o,a.default.getChildren(n)):a.default.appendChildren(o,[n]),r&&a.default.appendChildren(o,[x(e,r,`r`)]),o}e.fixedFence=b;function x(e,t,n){(t===`{`||t===`}`)&&(t=`\\`+t);var r=`{\\bigg`+n+` `+t+`}`,i=`{\\big`+n+` `+t+`}`;return new o.default(`\\mathchoice`+r+i+i+i,{},e).mml()}e.mathPalette=x;function S(e,t){for(var n=0,r=t.length;n<r;n++){var o=t[n];if(o&&!a.default.isType(o,`mspace`)&&(!a.default.isType(o,`TeXAtom`)||a.default.getChildren(o)[0]&&a.default.getChildren(a.default.getChildren(o)[0]).length)){if(a.default.isEmbellished(o)||a.default.isType(o,`TeXAtom`)&&a.default.getTexClass(o)===i.TEXCLASS.REL){var s=e.nodeFactory.create(`node`,`mi`);t.unshift(s)}break}}}e.fixInitialMO=S;function C(e,t,n,r){if(e.configuration.options.internalMath)return e.configuration.options.internalMath(e,t,n,r);var i=r||e.stack.env.font,a=i?{mathvariant:i}:{},c=[],l=0,u=0,d,f,p=``,m=0;if(t.match(/\\?[${}\\]|\\\(|\\(eq)?ref\s*\{/)){for(;l<t.length;)if(d=t.charAt(l++),d===`$`)p===`$`&&m===0?(f=e.create(`node`,`TeXAtom`,[new o.default(t.slice(u,l-1),{},e.configuration).mml()]),c.push(f),p=``,u=l):p===``&&(u<l-1&&c.push(w(e,t.slice(u,l-1),a)),p=`$`,u=l);else if(d===`{`&&p!==``)m++;else if(d===`}`)if(p===`}`&&m===0){var h=new o.default(t.slice(u,l),{},e.configuration).mml();f=e.create(`node`,`TeXAtom`,[h],a),c.push(f),p=``,u=l}else p!==``&&m&&m--;else if(d===`\\`)if(p===``&&t.substr(l).match(/^(eq)?ref\s*\{/)){var g=RegExp[`$&`].length;u<l-1&&c.push(w(e,t.slice(u,l-1),a)),p=`}`,u=l-1,l+=g}else d=t.charAt(l++),d===`(`&&p===``?(u<l-2&&c.push(w(e,t.slice(u,l-2),a)),p=`)`,u=l):d===`)`&&p===`)`&&m===0?(f=e.create(`node`,`TeXAtom`,[new o.default(t.slice(u,l-2),{},e.configuration).mml()]),c.push(f),p=``,u=l):d.match(/[${}\\]/)&&p===``&&(l--,t=t.substr(0,l-1)+t.substr(l));if(p!==``)throw new s.default(`MathNotTerminated`,`Math not terminated in text box`)}return u<t.length&&c.push(w(e,t.slice(u),a)),n==null?c.length>1&&(c=[e.create(`node`,`mrow`,c)]):c=[e.create(`node`,`mstyle`,c,{displaystyle:!1,scriptlevel:n})],c}e.internalMath=C;function w(e,t,n){t=t.replace(/^\s+/,c.entities.nbsp).replace(/\s+$/,c.entities.nbsp);var r=e.create(`text`,t);return e.create(`node`,`mtext`,[],n,r)}e.internalText=w;function T(t,n,r,o,s){if(e.checkMovableLimits(n),a.default.isType(n,`munderover`)&&a.default.isEmbellished(n)){a.default.setProperties(a.default.getCoreMO(n),{lspace:0,rspace:0});var c=t.create(`node`,`mo`,[],{rspace:0});n=t.create(`node`,`mrow`,[c,n])}var l=t.create(`node`,`munderover`,[n]);a.default.setChild(l,o===`over`?l.over:l.under,r);var u=l;return s&&(u=t.create(`node`,`TeXAtom`,[l],{texClass:i.TEXCLASS.OP,movesupsub:!0})),a.default.setProperty(u,`subsupOK`,!0),u}e.underOver=T;function E(e){var t=a.default.isType(e,`mo`)?a.default.getForm(e):null;(a.default.getProperty(e,`movablelimits`)||t&&t[3]&&t[3].movablelimits)&&a.default.setProperties(e,{movablelimits:!1})}e.checkMovableLimits=E;function D(e){if(typeof e!=`string`)return e;var t=e.trim();return t.match(/\\$/)&&e.match(/ $/)&&(t+=` `),t}e.trimSpaces=D;function O(t,n){return n=e.trimSpaces(n||``),n===`t`?t.arraydef.align=`baseline 1`:n===`b`?t.arraydef.align=`baseline -1`:n===`c`?t.arraydef.align=`axis`:n&&(t.arraydef.align=n),t}e.setArrayAlign=O;function k(e,t,n){for(var r=``,i=``,a=0;a<n.length;){var o=n.charAt(a++);if(o===`\\`)r+=o+n.charAt(a++);else if(o===`#`)if(o=n.charAt(a++),o===`#`)r+=o;else{if(!o.match(/[1-9]/)||parseInt(o,10)>t.length)throw new s.default(`IllegalMacroParam`,`Illegal macro parameter reference`);i=A(e,A(e,i,r),t[parseInt(o,10)-1]),r=``}else r+=o}return A(e,i,r)}e.substituteArgs=k;function A(e,t,n){if(n.match(/^[a-z]/i)&&t.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i)&&(t+=` `),t.length+n.length>e.configuration.options.maxBuffer)throw new s.default(`MaxBufferSize`,`MathJax internal buffer size exceeded; is there a recursive macro call?`);return t+n}e.addArgs=A;function j(e,t){if(t===void 0&&(t=!0),!(++e.macroCount<=e.configuration.options.maxMacros))throw t?new s.default(`MaxMacroSub1`,`MathJax maximum macro substitution count exceeded; is here a recursive macro call?`):new s.default(`MaxMacroSub2`,`MathJax maximum substitution count exceeded; is there a recursive latex environment?`)}e.checkMaxMacros=j;function M(e){if(e.stack.global.eqnenv)throw new s.default(`ErroneousNestingEq`,`Erroneous nesting of equation structures`);e.stack.global.eqnenv=!0}e.checkEqnEnv=M;function ee(e,t){var r=e.copy(),i=t.configuration;return r.walkTree(function(e){var t,r;i.addNode(e.kind,e);var a=(e.getProperty(`in-lists`)||``).split(/,/);try{for(var o=n(a),s=o.next();!s.done;s=o.next()){var c=s.value;c&&i.addNode(c,e)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}),r}e.copyNode=ee;function N(e,t,n){return n}e.MmlFilterAttribute=N;function P(e){var t=e.stack.env.font;return t?{mathvariant:t}:{}}e.getFontDef=P;function F(e,t,r){var i,a;t===void 0&&(t=null),r===void 0&&(r=!1);var o=te(e);if(t)try{for(var c=n(Object.keys(o)),l=c.next();!l.done;l=c.next()){var u=l.value;if(!t.hasOwnProperty(u)){if(r)throw new s.default(`InvalidOption`,`Invalid option: %1`,u);delete o[u]}}}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return o}e.keyvalOptions=F;function te(e){for(var n,r,i={},a=e,o,s,c;a;)n=t(re(a,[`=`,`,`]),3),s=n[0],o=n[1],a=n[2],o===`=`?(r=t(re(a,[`,`]),3),c=r[0],o=r[1],a=r[2],c=c===`false`||c===`true`?JSON.parse(c):c,i[s]=c):s&&(i[s]=!0);return i}function ne(e,t){for(;t>0;)e=e.trim().slice(1,-1),t--;return e.trim()}function re(e,t){for(var n=e.length,r=0,i=``,a=0,o=0,c=!0,l=!1;a<n;){var u=e[a++];switch(u){case` `:break;case`{`:c?o++:(l=!1,o>r&&(o=r)),r++;break;case`}`:r&&r--,(c||l)&&(o--,l=!0),c=!1;break;default:if(!r&&t.indexOf(u)!==-1)return[l?`true`:ne(i,o),u,e.slice(a)];c=!1,l=!1}i+=u}if(r)throw new s.default(`ExtraOpenMissingClose`,`Extra open brace or missing close brace`);return[l?`true`:ne(i,o),``,e.slice(a)]}})(l||={}),e.default=l})),Ve=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var a=i(I());e.default=function(){function e(e,t,n){this._factory=e,this._env=t,this.global={},this.stack=[],this.global={isInner:n},this.stack=[this._factory.create(`start`,this.global)],t&&(this.stack[0].env=t),this.env=this.stack[0].env}return Object.defineProperty(e.prototype,"env",{get:function(){return this._env},set:function(e){this._env=e},enumerable:!1,configurable:!0}),e.prototype.Push=function(){for(var e,i,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];try{for(var c=t(o),l=c.next();!l.done;l=c.next()){var u=l.value;if(u){var d=a.default.isNode(u)?this._factory.create(`mml`,u):u;d.global=this.global;var f=n(this.stack.length?this.Top().checkItem(d):[null,!0],2),p=f[0];if(f[1]){if(p){this.Pop(),this.Push.apply(this,r([],n(p),!1));continue}this.stack.push(d),d.env?(d.copyEnv&&Object.assign(d.env,this.env),this.env=d.env):d.env=this.env}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(e)throw e.error}}},e.prototype.Pop=function(){var e=this.stack.pop();return e.isOpen||delete e.env,this.env=this.stack.length?this.Top().env:{},e},e.prototype.Top=function(e){return e===void 0&&(e=1),this.stack.length<e?null:this.stack[this.stack.length-e]},e.prototype.Prev=function(e){var t=this.Top();return e?t.First:t.Pop()},e.prototype.toString=function(){return`stack[
7
+ `+this.stack.join(`
8
+ `)+`
9
+ ]`},e}()})),z=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var a=i(R()),o=i(Ve()),s=i(L()),c=A();e.default=function(){function e(e,n,r){var i,a;this._string=e,this.configuration=r,this.macroCount=0,this.i=0,this.currentCS=``;var s=n.hasOwnProperty(`isInner`),c=n.isInner;delete n.isInner;var l;if(n){l={};try{for(var u=t(Object.keys(n)),d=u.next();!d.done;d=u.next()){var f=d.value;l[f]=n[f]}}catch(e){i={error:e}}finally{try{d&&!d.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}}this.configuration.pushParser(this),this.stack=new o.default(this.itemFactory,l,!s||c),this.Parse(),this.Push(this.itemFactory.create(`stop`))}return Object.defineProperty(e.prototype,"options",{get:function(){return this.configuration.options},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemFactory",{get:function(){return this.configuration.itemFactory},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tags",{get:function(){return this.configuration.tags},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"string",{get:function(){return this._string},set:function(e){this._string=e},enumerable:!1,configurable:!0}),e.prototype.parse=function(e,t){return this.configuration.handlers.get(e).parse(t)},e.prototype.lookup=function(e,t){return this.configuration.handlers.get(e).lookup(t)},e.prototype.contains=function(e,t){return this.configuration.handlers.get(e).contains(t)},e.prototype.toString=function(){var e,n,r=``;try{for(var i=t(Array.from(this.configuration.handlers.keys())),a=i.next();!a.done;a=i.next()){var o=a.value;r+=o+`: `+this.configuration.handlers.get(o)+`
10
+ `}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},e.prototype.Parse=function(){for(var e;this.i<this.string.length;)e=this.getCodePoint(),this.i+=e.length,this.parse(`character`,[this,e])},e.prototype.Push=function(e){e instanceof c.AbstractMmlNode&&e.isInferred?this.PushAll(e.childNodes):this.stack.Push(e)},e.prototype.PushAll=function(e){var n,r;try{for(var i=t(e),a=i.next();!a.done;a=i.next()){var o=a.value;this.stack.Push(o)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.mml=function(){if(!this.stack.Top().isKind(`mml`))return null;var e=this.stack.Top().First;return this.configuration.popParser(),e},e.prototype.convertDelimiter=function(e){var t=this.lookup(`delimiter`,e);return t?t.char:null},e.prototype.getCodePoint=function(){var e=this.string.codePointAt(this.i);return e===void 0?``:String.fromCodePoint(e)},e.prototype.nextIsSpace=function(){return!!this.string.charAt(this.i).match(/\s/)},e.prototype.GetNext=function(){for(;this.nextIsSpace();)this.i++;return this.getCodePoint()},e.prototype.GetCS=function(){var e=this.string.slice(this.i).match(/^(([a-z]+) ?|[\uD800-\uDBFF].|.)/i);return e?(this.i+=e[0].length,e[2]||e[1]):(this.i++,` `)},e.prototype.GetArgument=function(e,t){switch(this.GetNext()){case``:if(!t)throw new s.default(`MissingArgFor`,`Missing argument for %1`,this.currentCS);return null;case`}`:if(!t)throw new s.default(`ExtraCloseMissingOpen`,`Extra close brace or missing open brace`);return null;case`\\`:return this.i++,`\\`+this.GetCS();case`{`:for(var n=++this.i,r=1;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case`\\`:this.i++;break;case`{`:r++;break;case`}`:if(--r===0)return this.string.slice(n,this.i-1);break}throw new s.default(`MissingCloseBrace`,`Missing close brace`)}var i=this.getCodePoint();return this.i+=i.length,i},e.prototype.GetBrackets=function(e,t){if(this.GetNext()!==`[`)return t;for(var n=++this.i,r=0;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case`{`:r++;break;case`\\`:this.i++;break;case`}`:if(r--<=0)throw new s.default(`ExtraCloseLooking`,`Extra close brace while looking for %1`,`']'`);break;case`]`:if(r===0)return this.string.slice(n,this.i-1);break}throw new s.default(`MissingCloseBracket`,`Could not find closing ']' for argument to %1`,this.currentCS)},e.prototype.GetDelimiter=function(e,t){var n=this.GetNext();if(this.i+=n.length,this.i<=this.string.length&&(n===`\\`?n+=this.GetCS():n===`{`&&t&&(this.i--,n=this.GetArgument(e).trim()),this.contains(`delimiter`,n)))return this.convertDelimiter(n);throw new s.default(`MissingOrUnrecognizedDelim`,`Missing or unrecognized delimiter for %1`,this.currentCS)},e.prototype.GetDimen=function(e){if(this.GetNext()===`{`){var t=this.GetArgument(e),r=n(a.default.matchDimen(t),2),i=r[0],o=r[1];if(i)return i+o}else{var t=this.string.slice(this.i),c=n(a.default.matchDimen(t,!0),3),i=c[0],o=c[1],l=c[2];if(i)return this.i+=l,i+o}throw new s.default(`MissingDimOrUnits`,`Missing dimension or its units for %1`,this.currentCS)},e.prototype.GetUpTo=function(e,t){for(;this.nextIsSpace();)this.i++;for(var n=this.i,r=0;this.i<this.string.length;){var i=this.i,a=this.GetNext();switch(this.i+=a.length,a){case`\\`:a+=this.GetCS();break;case`{`:r++;break;case`}`:if(r===0)throw new s.default(`ExtraCloseLooking`,`Extra close brace while looking for %1`,t);r--;break}if(r===0&&a===t)return this.string.slice(n,i)}throw new s.default(`TokenNotFoundForCommand`,`Could not find %1 for %2`,t,this.currentCS)},e.prototype.ParseArg=function(t){return new e(this.GetArgument(t),this.stack.env,this.configuration).mml()},e.prototype.ParseUpTo=function(t,n){return new e(this.GetUpTo(t,n),this.stack.env,this.configuration).mml()},e.prototype.GetDelimiterArg=function(e){var t=a.default.trimSpaces(this.GetArgument(e));if(t===``)return null;if(this.contains(`delimiter`,t))return t;throw new s.default(`MissingOrUnrecognizedDelim`,`Missing or unrecognized delimiter for %1`,this.currentCS)},e.prototype.GetStar=function(){var e=this.GetNext()===`*`;return e&&this.i++,e},e.prototype.create=function(e){for(var t,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return(t=this.configuration.nodeFactory).create.apply(t,r([e],n(i),!1))},e}()})),B=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseItem=e.MmlStack=void 0;var o=a(L()),s=function(){function e(e){this._nodes=e}return Object.defineProperty(e.prototype,"nodes",{get:function(){return this._nodes},enumerable:!1,configurable:!0}),e.prototype.Push=function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];(e=this._nodes).push.apply(e,r([],n(t),!1))},e.prototype.Pop=function(){return this._nodes.pop()},Object.defineProperty(e.prototype,"First",{get:function(){return this._nodes[this.Size()-1]},set:function(e){this._nodes[this.Size()-1]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Last",{get:function(){return this._nodes[0]},set:function(e){this._nodes[0]=e},enumerable:!1,configurable:!0}),e.prototype.Peek=function(e){return e??=1,this._nodes.slice(this.Size()-e)},e.prototype.Size=function(){return this._nodes.length},e.prototype.Clear=function(){this._nodes=[]},e.prototype.toMml=function(e,t){return e===void 0&&(e=!0),this._nodes.length===1&&!t?this.First:this.create(`node`,e?`inferredMrow`:`mrow`,this._nodes,{})},e.prototype.create=function(e){for(var t,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return(t=this.factory.configuration.nodeFactory).create.apply(t,r([e],n(i),!1))},e}();e.MmlStack=s,e.BaseItem=function(e){t(r,e);function r(t){var n=[...arguments].slice(1),r=e.call(this,n)||this;return r.factory=t,r.global={},r._properties={},r.isOpen&&(r._env={}),r}return Object.defineProperty(r.prototype,"kind",{get:function(){return`base`},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"env",{get:function(){return this._env},set:function(e){this._env=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"copyEnv",{get:function(){return!0},enumerable:!1,configurable:!0}),r.prototype.getProperty=function(e){return this._properties[e]},r.prototype.setProperty=function(e,t){return this._properties[e]=t,this},Object.defineProperty(r.prototype,"isOpen",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isClose",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isFinal",{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.isKind=function(e){return e===this.kind},r.prototype.checkItem=function(e){if(e.isKind(`over`)&&this.isOpen&&(e.setProperty(`num`,this.toMml(!1)),this.Clear()),e.isKind(`cell`)&&this.isOpen){if(e.getProperty(`linebreak`))return r.fail;throw new o.default(`Misplaced`,`Misplaced %1`,e.getName())}if(e.isClose&&this.getErrors(e.kind)){var t=n(this.getErrors(e.kind),2),i=t[0],a=t[1];throw new o.default(i,a,e.getName())}return e.isFinal?(this.Push(e.First),r.fail):r.success},r.prototype.clearEnv=function(){var e,t;try{for(var n=i(Object.keys(this.env)),r=n.next();!r.done;r=n.next()){var a=r.value;delete this.env[a]}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},r.prototype.setProperties=function(e){return Object.assign(this._properties,e),this},r.prototype.getName=function(){return this.getProperty(`name`)},r.prototype.toString=function(){return this.kind+`[`+this.nodes.join(`; `)+`]`},r.prototype.getErrors=function(e){return(this.constructor.errors||{})[e]||r.errors[e]},r.fail=[null,!1],r.success=[null,!0],r.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`],middle:[`ExtraMiddle`,`Extra \\middle`]},r}(s)})),He=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n;Object.defineProperty(e,"__esModule",{value:!0});var r=B(),i=E(),a=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(r.BaseItem);e.default=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.defaultKind=`dummy`,t.configuration=null,t}return r.DefaultStackItems=(n={},n[a.prototype.kind]=a,n),r}(i.AbstractFactory)})),Ue=e((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.NodeFactory=void 0;var i=r(I());e.NodeFactory=function(){function e(){this.mmlFactory=null,this.factory={node:e.createNode,token:e.createToken,text:e.createText,error:e.createError}}return e.createNode=function(e,t,n,r,a){n===void 0&&(n=[]),r===void 0&&(r={});var o=e.mmlFactory.create(t);return o.setChildren(n),a&&o.appendChild(a),i.default.setProperties(o,r),o},e.createToken=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r=``);var i=e.create(`text`,r);return e.create(`node`,t,[],n,i)},e.createText=function(e,t){return t==null?null:e.mmlFactory.create(`text`).setText(t)},e.createError=function(e,t){var n=e.create(`text`,t),r=e.create(`node`,`mtext`,[],{},n);return e.create(`node`,`merror`,[r],{"data-mjx-error":t})},e.prototype.setMmlFactory=function(e){this.mmlFactory=e},e.prototype.set=function(e,t){this.factory[e]=t},e.prototype.setCreators=function(e){for(var t in e)this.set(t,e[t])},e.prototype.create=function(e){var r=[...arguments].slice(1),i=(this.factory[e]||this.factory.node).apply(void 0,n([this,r[0]],t(r.slice(1)),!1));return e===`node`&&this.configuration.addNode(r[0],i),i},e.prototype.get=function(e){return this.factory[e]},e}()})),We=e((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},r=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var o=a(He()),s=Ue(),c=a(I()),l=i();e.default=function(){function e(e,r){r===void 0&&(r=[]),this.options={},this.packageData=new Map,this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.handlers=e.handlers,this.nodeFactory=new s.NodeFactory,this.nodeFactory.configuration=this,this.nodeFactory.setCreators(e.nodes),this.itemFactory=new o.default(e.items),this.itemFactory.configuration=this,l.defaultOptions.apply(void 0,n([this.options],t(r),!1)),(0,l.defaultOptions)(this.options,e.options)}return e.prototype.pushParser=function(e){this.parsers.unshift(e)},e.prototype.popParser=function(){this.parsers.shift()},Object.defineProperty(e.prototype,"parser",{get:function(){return this.parsers[0]},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.tags.resetTag()},e.prototype.addNode=function(e,t){var n=this.nodeLists[e];if(n||=this.nodeLists[e]=[],n.push(t),t.kind!==e){var r=c.default.getProperty(t,`in-lists`)||``,i=(r?r.split(/,/):[]).concat(e).join(`,`);c.default.setProperty(t,`in-lists`,i)}},e.prototype.getList=function(e){var t,n,i=this.nodeLists[e]||[],a=[];try{for(var o=r(i),s=o.next();!s.done;s=o.next()){var c=s.value;this.inTree(c)&&a.push(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return this.nodeLists[e]=a,a},e.prototype.removeFromList=function(e,t){var n,i,a=this.nodeLists[e]||[];try{for(var o=r(t),s=o.next();!s.done;s=o.next()){var c=s.value,l=a.indexOf(c);l>=0&&a.splice(l,1)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype.inTree=function(e){for(;e&&e!==this.root;)e=e.parent;return!!e},e}()})),V=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.TagsFactory=e.AllTags=e.NoTags=e.AbstractTags=e.TagInfo=e.Label=void 0;var i=r(z()),a=function(){function e(e,t){e===void 0&&(e=`???`),t===void 0&&(t=``),this.tag=e,this.id=t}return e}();e.Label=a;var o=function(){function e(e,t,n,r,i,a,o,s){e===void 0&&(e=``),t===void 0&&(t=!1),n===void 0&&(n=!1),r===void 0&&(r=null),i===void 0&&(i=``),a===void 0&&(a=``),o===void 0&&(o=!1),s===void 0&&(s=``),this.env=e,this.taggable=t,this.defaultTags=n,this.tag=r,this.tagId=i,this.tagFormat=a,this.noTag=o,this.labelId=s}return e}();e.TagInfo=o;var s=function(){function e(){this.counter=0,this.allCounter=0,this.configuration=null,this.ids={},this.allIds={},this.labels={},this.allLabels={},this.redo=!1,this.refUpdate=!1,this.currentTag=new o,this.history=[],this.stack=[],this.enTag=function(e,t){var n=this.configuration.nodeFactory,r=n.create(`node`,`mtd`,[e]),i=n.create(`node`,`mlabeledtr`,[t,r]);return n.create(`node`,`mtable`,[i],{side:this.configuration.options.tagSide,minlabelspacing:this.configuration.options.tagIndent,displaystyle:!0})}}return e.prototype.start=function(e,t,n){this.currentTag&&this.stack.push(this.currentTag),this.currentTag=new o(e,t,n)},Object.defineProperty(e.prototype,"env",{get:function(){return this.currentTag.env},enumerable:!1,configurable:!0}),e.prototype.end=function(){this.history.push(this.currentTag),this.currentTag=this.stack.pop()},e.prototype.tag=function(e,t){this.currentTag.tag=e,this.currentTag.tagFormat=t?e:this.formatTag(e),this.currentTag.noTag=!1},e.prototype.notag=function(){this.tag(``,!0),this.currentTag.noTag=!0},Object.defineProperty(e.prototype,"noTag",{get:function(){return this.currentTag.noTag},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this.currentTag.labelId},set:function(e){this.currentTag.labelId=e},enumerable:!1,configurable:!0}),e.prototype.formatUrl=function(e,t){return t+`#`+encodeURIComponent(e)},e.prototype.formatTag=function(e){return`(`+e+`)`},e.prototype.formatId=function(e){return`mjx-eqn:`+e.replace(/\s/g,`_`)},e.prototype.formatNumber=function(e){return e.toString()},e.prototype.autoTag=function(){this.currentTag.tag??(this.counter++,this.tag(this.formatNumber(this.counter),!1))},e.prototype.clearTag=function(){this.label=``,this.tag(null,!0),this.currentTag.tagId=``},e.prototype.getTag=function(e){if(e===void 0&&(e=!1),e)return this.autoTag(),this.makeTag();var t=this.currentTag;return t.taggable&&!t.noTag&&(t.defaultTags&&this.autoTag(),t.tag)?this.makeTag():null},e.prototype.resetTag=function(){this.history=[],this.redo=!1,this.refUpdate=!1,this.clearTag()},e.prototype.reset=function(e){e===void 0&&(e=0),this.resetTag(),this.counter=this.allCounter=e,this.allLabels={},this.allIds={}},e.prototype.startEquation=function(e){this.history=[],this.stack=[],this.clearTag(),this.currentTag=new o(``,void 0,void 0),this.labels={},this.ids={},this.counter=this.allCounter,this.redo=!1;var t=e.inputData.recompile;t&&(this.refUpdate=!0,this.counter=t.counter)},e.prototype.finishEquation=function(e){this.redo&&(e.inputData.recompile={state:e.state(),counter:this.allCounter}),this.refUpdate||(this.allCounter=this.counter),Object.assign(this.allIds,this.ids),Object.assign(this.allLabels,this.labels)},e.prototype.finalize=function(e,t){if(!t.display||this.currentTag.env||this.currentTag.tag==null)return e;var n=this.makeTag();return this.enTag(e,n)},e.prototype.makeId=function(){this.currentTag.tagId=this.formatId(this.configuration.options.useLabelIds&&this.label||this.currentTag.tag)},e.prototype.makeTag=function(){this.makeId(),this.label&&(this.labels[this.label]=new a(this.currentTag.tag,this.currentTag.tagId));var e=new i.default(`\\text{`+this.currentTag.tagFormat+`}`,{},this.configuration).mml();return this.configuration.nodeFactory.create(`node`,`mtd`,[e],{id:this.currentTag.tagId})},e}();e.AbstractTags=s;var c=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.autoTag=function(){},n.prototype.getTag=function(){return this.currentTag.tag?e.prototype.getTag.call(this):null},n}(s);e.NoTags=c;var l=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.finalize=function(e,t){if(!t.display||this.history.find(function(e){return e.taggable}))return e;var n=this.getTag(!0);return this.enTag(e,n)},n}(s);e.AllTags=l,(function(e){var t=new Map([[`none`,c],[`all`,l]]),r=`none`;e.OPTIONS={tags:r,tagSide:`right`,tagIndent:`0.8em`,useLabelIds:!0,ignoreDuplicateLabels:!1},e.add=function(e,n){t.set(e,n)},e.addTags=function(t){var r,i;try{for(var a=n(Object.keys(t)),o=a.next();!o.done;o=a.next()){var s=o.value;e.add(s,t[s])}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},e.create=function(e){var n=t.get(e)||t.get(r);if(!n)throw Error(`Unknown tags class`);return new n},e.setDefault=function(e){r=e},e.getDefault=function(){return e.create(r)}})(e.TagsFactory||={})})),Ge=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.SubHandlers=e.SubHandler=e.MapHandler=void 0;var r=d(),i=b(),a;(function(e){var t=new Map;e.register=function(e){t.set(e.name,e)},e.getMap=function(e){return t.get(e)}})(a=e.MapHandler||={});var o=function(){function e(){this._configuration=new r.PrioritizedList,this._fallback=new i.FunctionList}return e.prototype.add=function(e,n,i){var o,s;i===void 0&&(i=r.PrioritizedList.DEFAULTPRIORITY);try{for(var c=t(e.slice().reverse()),l=c.next();!l.done;l=c.next()){var u=l.value,d=a.getMap(u);if(!d){this.warn(`Configuration `+u+` not found! Omitted.`);return}this._configuration.add(d,i)}}catch(e){o={error:e}}finally{try{l&&!l.done&&(s=c.return)&&s.call(c)}finally{if(o)throw o.error}}n&&this._fallback.add(n,i)},e.prototype.parse=function(e){var r,i;try{for(var a=t(this._configuration),o=a.next();!o.done;o=a.next()){var s=o.value.item.parse(e);if(s)return s}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}var c=n(e,2),l=c[0],u=c[1];Array.from(this._fallback)[0].item(l,u)},e.prototype.lookup=function(e){var t=this.applicable(e);return t?t.lookup(e):null},e.prototype.contains=function(e){return!!this.applicable(e)},e.prototype.toString=function(){var e,n,r=[];try{for(var i=t(this._configuration),a=i.next();!a.done;a=i.next()){var o=a.value.item;r.push(o.name)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r.join(`, `)},e.prototype.applicable=function(e){var n,r;try{for(var i=t(this._configuration),a=i.next();!a.done;a=i.next()){var o=a.value.item;if(o.contains(e))return o}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null},e.prototype.retrieve=function(e){var n,r;try{for(var i=t(this._configuration),a=i.next();!a.done;a=i.next()){var o=a.value.item;if(o.name===e)return o}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null},e.prototype.warn=function(e){console.log(`TexParser Warning: `+e)},e}();e.SubHandler=o,e.SubHandlers=function(){function e(){this.map=new Map}return e.prototype.add=function(e,n,i){var a,s;i===void 0&&(i=r.PrioritizedList.DEFAULTPRIORITY);try{for(var c=t(Object.keys(e)),l=c.next();!l.done;l=c.next()){var u=l.value,d=this.get(u);d||(d=new o,this.set(u,d)),d.add(e[u],n[u],i)}}catch(e){a={error:e}}finally{try{l&&!l.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}},e.prototype.set=function(e,t){this.map.set(e,t)},e.prototype.get=function(e){return this.map.get(e)},e.prototype.retrieve=function(e){var n,r;try{for(var i=t(this.map.values()),a=i.next();!a.done;a=i.next()){var o=a.value.retrieve(e);if(o)return o}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null},e.prototype.keys=function(){return this.map.keys()},e}()})),H=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserConfiguration=e.ConfigurationHandler=e.Configuration=void 0;var r=i(),a=Ge(),o=b(),s=d(),c=V();e.Configuration=function(){function e(e,t,n,r,i,a,o,s,c,l,u,d,f){t===void 0&&(t={}),n===void 0&&(n={}),r===void 0&&(r={}),i===void 0&&(i={}),a===void 0&&(a={}),o===void 0&&(o={}),s===void 0&&(s=[]),c===void 0&&(c=[]),l===void 0&&(l=null),u===void 0&&(u=null),this.name=e,this.handler=t,this.fallback=n,this.items=r,this.tags=i,this.options=a,this.nodes=o,this.preprocessors=s,this.postprocessors=c,this.initMethod=l,this.configMethod=u,this.priority=d,this.parser=f,this.handler=Object.assign({character:[],delimiter:[],macro:[],environment:[]},t)}return e.makeProcessor=function(e,t){return Array.isArray(e)?e:[e,t]},e._create=function(t,n){var r=this;n===void 0&&(n={});var i=n.priority||s.PrioritizedList.DEFAULTPRIORITY,a=n.init?this.makeProcessor(n.init,i):null,o=n.config?this.makeProcessor(n.config,i):null,c=(n.preprocessors||[]).map(function(e){return r.makeProcessor(e,i)}),l=(n.postprocessors||[]).map(function(e){return r.makeProcessor(e,i)}),u=n.parser||`tex`;return new e(t,n.handler||{},n.fallback||{},n.items||{},n.tags||{},n.options||{},n.nodes||{},c,l,a,o,i,u)},e.create=function(t,n){n===void 0&&(n={});var r=e._create(t,n);return l.set(t,r),r},e.local=function(t){return t===void 0&&(t={}),e._create(``,t)},Object.defineProperty(e.prototype,"init",{get:function(){return this.initMethod?this.initMethod[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"config",{get:function(){return this.configMethod?this.configMethod[0]:null},enumerable:!1,configurable:!0}),e}();var l;(function(e){var t=new Map;e.set=function(e,n){t.set(e,n)},e.get=function(e){return t.get(e)},e.keys=function(){return t.keys()}})(l=e.ConfigurationHandler||={}),e.ParserConfiguration=function(){function e(e,n){var r,i,c,l;n===void 0&&(n=[`tex`]),this.initMethod=new o.FunctionList,this.configMethod=new o.FunctionList,this.configurations=new s.PrioritizedList,this.parsers=[],this.handlers=new a.SubHandlers,this.items={},this.tags={},this.options={},this.nodes={},this.parsers=n;try{for(var u=t(e.slice().reverse()),d=u.next();!d.done;d=u.next()){var f=d.value;this.addPackage(f)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}try{for(var p=t(this.configurations),m=p.next();!m.done;m=p.next()){var h=m.value,g=h.item,_=h.priority;this.append(g,_)}}catch(e){c={error:e}}finally{try{m&&!m.done&&(l=p.return)&&l.call(p)}finally{if(c)throw c.error}}}return e.prototype.init=function(){this.initMethod.execute(this)},e.prototype.config=function(e){var n,r;this.configMethod.execute(this,e);try{for(var i=t(this.configurations),a=i.next();!a.done;a=i.next()){var o=a.value;this.addFilters(e,o.item)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.addPackage=function(e){var t=typeof e==`string`?e:e[0],n=this.getPackage(t);n&&this.configurations.add(n,typeof e==`string`?n.priority:e[1])},e.prototype.add=function(e,n,i){var a,o;i===void 0&&(i={});var s=this.getPackage(e);this.append(s),this.configurations.add(s,s.priority),this.init();var l=n.parseOptions;l.nodeFactory.setCreators(s.nodes);try{for(var u=t(Object.keys(s.items)),d=u.next();!d.done;d=u.next()){var f=d.value;l.itemFactory.setNodeClass(f,s.items[f])}}catch(e){a={error:e}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(a)throw a.error}}c.TagsFactory.addTags(s.tags),(0,r.defaultOptions)(l.options,s.options),(0,r.userOptions)(l.options,i),this.addFilters(n,s),s.config&&s.config(this,n)},e.prototype.getPackage=function(e){var t=l.get(e);if(t&&this.parsers.indexOf(t.parser)<0)throw Error(`Package ${e} doesn't target the proper parser`);return t},e.prototype.append=function(e,t){t||=e.priority,e.initMethod&&this.initMethod.add(e.initMethod[0],e.initMethod[1]),e.configMethod&&this.configMethod.add(e.configMethod[0],e.configMethod[1]),this.handlers.add(e.handler,e.fallback,t),Object.assign(this.items,e.items),Object.assign(this.tags,e.tags),(0,r.defaultOptions)(this.options,e.options),Object.assign(this.nodes,e.nodes)},e.prototype.addFilters=function(e,r){var i,a,o,s;try{for(var c=t(r.preprocessors),l=c.next();!l.done;l=c.next()){var u=n(l.value,2),d=u[0],f=u[1];e.preFilters.add(d,f)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}try{for(var p=t(r.postprocessors),m=p.next();!m.done;m=p.next()){var h=n(m.value,2),g=h[0],f=h[1];e.postFilters.add(g,f)}}catch(e){o={error:e}}finally{try{m&&!m.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}},e}()})),U=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Macro=e.Symbol=void 0,e.Symbol=function(){function e(e,t,n){this._symbol=e,this._char=t,this._attributes=n}return Object.defineProperty(e.prototype,"symbol",{get:function(){return this._symbol},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"char",{get:function(){return this._char},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){return this._attributes},enumerable:!1,configurable:!0}),e}(),e.Macro=function(){function e(e,t,n){n===void 0&&(n=[]),this._symbol=e,this._func=t,this._args=n}return Object.defineProperty(e.prototype,"symbol",{get:function(){return this._symbol},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"func",{get:function(){return this._func},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"args",{get:function(){return this._args},enumerable:!1,configurable:!0}),e}()})),W=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},i=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.EnvironmentMap=e.CommandMap=e.MacroMap=e.DelimiterMap=e.CharacterMap=e.AbstractParseMap=e.RegExpMap=e.AbstractSymbolMap=e.parseResult=void 0;var a=U(),o=Ge();function s(e){return e===void 0||e}e.parseResult=s;var c=function(){function e(e,t){this._name=e,this._parser=t,o.MapHandler.register(this)}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e.prototype.parserFor=function(e){return this.contains(e)?this.parser:null},e.prototype.parse=function(e){var t=n(e,2),r=t[0],i=t[1],a=this.parserFor(i),o=this.lookup(i);return a&&o?s(a(r,o)):null},Object.defineProperty(e.prototype,"parser",{get:function(){return this._parser},set:function(e){this._parser=e},enumerable:!1,configurable:!0}),e}();e.AbstractSymbolMap=c,e.RegExpMap=function(e){t(n,e);function n(t,n,r){var i=e.call(this,t,n)||this;return i._regExp=r,i}return n.prototype.contains=function(e){return this._regExp.test(e)},n.prototype.lookup=function(e){return this.contains(e)?e:null},n}(c);var l=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.map=new Map,t}return n.prototype.lookup=function(e){return this.map.get(e)},n.prototype.contains=function(e){return this.map.has(e)},n.prototype.add=function(e,t){this.map.set(e,t)},n.prototype.remove=function(e){this.map.delete(e)},n}(c);e.AbstractParseMap=l;var u=function(e){t(i,e);function i(t,i,o){var s,c,l=e.call(this,t,i)||this;try{for(var u=r(Object.keys(o)),d=u.next();!d.done;d=u.next()){var f=d.value,p=o[f],m=n(typeof p==`string`?[p,null]:p,2),h=m[0],g=m[1],_=new a.Symbol(f,h,g);l.add(f,_)}}catch(e){s={error:e}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(s)throw s.error}}return l}return i}(l);e.CharacterMap=u,e.DelimiterMap=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.parse=function(t){var r=n(t,2),i=r[0],a=r[1];return e.prototype.parse.call(this,[i,`\\`+a])},r}(u);var d=function(e){t(o,e);function o(t,i,o){var s,c,l=e.call(this,t,null)||this;try{for(var u=r(Object.keys(i)),d=u.next();!d.done;d=u.next()){var f=d.value,p=i[f],m=n(typeof p==`string`?[p]:p),h=m[0],g=m.slice(1),_=new a.Macro(f,o[h],g);l.add(f,_)}}catch(e){s={error:e}}finally{try{d&&!d.done&&(c=u.return)&&c.call(u)}finally{if(s)throw s.error}}return l}return o.prototype.parserFor=function(e){var t=this.lookup(e);return t?t.func:null},o.prototype.parse=function(e){var t=n(e,2),r=t[0],a=t[1],o=this.lookup(a),c=this.parserFor(a);return!o||!c?null:s(c.apply(void 0,i([r,o.symbol],n(o.args),!1)))},o}(l);e.MacroMap=d,e.CommandMap=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.parse=function(e){var t=n(e,2),r=t[0],a=t[1],o=this.lookup(a),c=this.parserFor(a);if(!o||!c)return null;var l=r.currentCS;r.currentCS=`\\`+a;var u=c.apply(void 0,i([r,`\\`+o.symbol],n(o.args),!1));return r.currentCS=l,s(u)},r}(d),e.EnvironmentMap=function(e){t(r,e);function r(t,n,r,i){var a=e.call(this,t,r,i)||this;return a.parser=n,a}return r.prototype.parse=function(e){var t=n(e,2),r=t[0],i=t[1],a=this.lookup(i),o=this.parserFor(i);return!a||!o?null:s(this.parser(r,a.symbol,o,a.args))},r}(d)})),G=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.EquationItem=e.EqnArrayItem=e.ArrayItem=e.DotsItem=e.NonscriptItem=e.NotItem=e.FnItem=e.MmlItem=e.CellItem=e.PositionItem=e.StyleItem=e.EndItem=e.BeginItem=e.RightItem=e.Middle=e.LeftItem=e.OverItem=e.SubsupItem=e.PrimeItem=e.CloseItem=e.OpenItem=e.StopItem=e.StartItem=void 0;var a=Ge(),o=h(),s=A(),c=i(L()),l=i(R()),u=i(I()),d=B();e.StartItem=function(e){t(n,e);function n(t,n){var r=e.call(this,t)||this;return r.global=n,r}return Object.defineProperty(n.prototype,"kind",{get:function(){return`start`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(t){if(t.isKind(`stop`)){var n=this.toMml();return this.global.isInner||(n=this.factory.configuration.tags.finalize(n,this.env)),[[this.factory.create(`mml`,n)],!0]}return e.prototype.checkItem.call(this,t)},n}(d.BaseItem),e.StopItem=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`stop`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),n}(d.BaseItem),e.OpenItem=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`open`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(t){if(t.isKind(`close`)){var n=this.toMml(),r=this.create(`node`,`TeXAtom`,[n]);return[[this.factory.create(`mml`,r)],!0]}return e.prototype.checkItem.call(this,t)},n.errors=Object.assign(Object.create(d.BaseItem.errors),{stop:[`ExtraOpenMissingClose`,`Extra open brace or missing close brace`]}),n}(d.BaseItem),e.CloseItem=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`close`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),n}(d.BaseItem),e.PrimeItem=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"kind",{get:function(){return`prime`},enumerable:!1,configurable:!0}),r.prototype.checkItem=function(e){var t=n(this.Peek(2),2),r=t[0],i=t[1];return!u.default.isType(r,`msubsup`)||u.default.isType(r,`msup`)?[[this.create(`node`,`msup`,[r,i]),e],!0]:(u.default.setChild(r,r.sup,i),[[r,e],!0])},r}(d.BaseItem),e.SubsupItem=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(i.prototype,"kind",{get:function(){return`subsup`},enumerable:!1,configurable:!0}),i.prototype.checkItem=function(t){if(t.isKind(`open`)||t.isKind(`left`))return d.BaseItem.success;var i=this.First,a=this.getProperty(`position`);if(t.isKind(`mml`))return this.getProperty(`primes`)&&(a===2?(u.default.setProperty(this.getProperty(`primes`),`variantForm`,!0),t.First=this.create(`node`,`mrow`,[this.getProperty(`primes`),t.First])):u.default.setChild(i,2,this.getProperty(`primes`))),u.default.setChild(i,a,t.First),this.getProperty(`movesupsub`)!=null&&u.default.setProperty(i,`movesupsub`,this.getProperty(`movesupsub`)),[[this.factory.create(`mml`,i)],!0];if(e.prototype.checkItem.call(this,t)[1]){var o=this.getErrors([``,`sub`,`sup`][a]);throw new(c.default.bind.apply(c.default,r([void 0,o[0],o[1]],n(o.splice(2)),!1)))}return null},i.errors=Object.assign(Object.create(d.BaseItem.errors),{stop:[`MissingScript`,`Missing superscript or subscript argument`],sup:[`MissingOpenForSup`,`Missing open brace for superscript`],sub:[`MissingOpenForSub`,`Missing open brace for subscript`]}),i}(d.BaseItem),e.OverItem=function(e){t(n,e);function n(t){var n=e.call(this,t)||this;return n.setProperty(`name`,`\\over`),n}return Object.defineProperty(n.prototype,"kind",{get:function(){return`over`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(t){if(t.isKind(`over`))throw new c.default(`AmbiguousUseOf`,`Ambiguous use of %1`,t.getName());if(t.isClose){var n=this.create(`node`,`mfrac`,[this.getProperty(`num`),this.toMml(!1)]);return this.getProperty(`thickness`)!=null&&u.default.setAttribute(n,`linethickness`,this.getProperty(`thickness`)),(this.getProperty(`open`)||this.getProperty(`close`))&&(u.default.setProperty(n,`withDelims`,!0),n=l.default.fixedFence(this.factory.configuration,this.getProperty(`open`),n,this.getProperty(`close`))),[[this.factory.create(`mml`,n),t],!0]}return e.prototype.checkItem.call(this,t)},n.prototype.toString=function(){return`over[`+this.getProperty(`num`)+` / `+this.nodes.join(`; `)+`]`},n}(d.BaseItem),e.LeftItem=function(e){t(n,e);function n(t,n){var r=e.call(this,t)||this;return r.setProperty(`delim`,n),r}return Object.defineProperty(n.prototype,"kind",{get:function(){return`left`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(t){if(t.isKind(`right`))return[[this.factory.create(`mml`,l.default.fenced(this.factory.configuration,this.getProperty(`delim`),this.toMml(),t.getProperty(`delim`),``,t.getProperty(`color`)))],!0];if(t.isKind(`middle`)){var n={stretchy:!0};return t.getProperty(`color`)&&(n.mathcolor=t.getProperty(`color`)),this.Push(this.create(`node`,`TeXAtom`,[],{texClass:s.TEXCLASS.CLOSE}),this.create(`token`,`mo`,n,t.getProperty(`delim`)),this.create(`node`,`TeXAtom`,[],{texClass:s.TEXCLASS.OPEN})),this.env={},[[this],!0]}return e.prototype.checkItem.call(this,t)},n.errors=Object.assign(Object.create(d.BaseItem.errors),{stop:[`ExtraLeftMissingRight`,`Extra \\left or missing \\right`]}),n}(d.BaseItem),e.Middle=function(e){t(n,e);function n(t,n,r){var i=e.call(this,t)||this;return i.setProperty(`delim`,n),r&&i.setProperty(`color`,r),i}return Object.defineProperty(n.prototype,"kind",{get:function(){return`middle`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),n}(d.BaseItem),e.RightItem=function(e){t(n,e);function n(t,n,r){var i=e.call(this,t)||this;return i.setProperty(`delim`,n),r&&i.setProperty(`color`,r),i}return Object.defineProperty(n.prototype,"kind",{get:function(){return`right`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),n}(d.BaseItem),e.BeginItem=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`begin`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(t){if(t.isKind(`end`)){if(t.getName()!==this.getName())throw new c.default(`EnvBadEnd`,`\\begin{%1} ended with \\end{%2}`,this.getName(),t.getName());return this.getProperty(`end`)?d.BaseItem.fail:[[this.factory.create(`mml`,this.toMml())],!0]}if(t.isKind(`stop`))throw new c.default(`EnvMissingEnd`,`Missing \\end{%1}`,this.getName());return e.prototype.checkItem.call(this,t)},n}(d.BaseItem),e.EndItem=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`end`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),n}(d.BaseItem),e.StyleItem=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`style`},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(t){if(!t.isClose)return e.prototype.checkItem.call(this,t);var n=this.create(`node`,`mstyle`,this.nodes,this.getProperty(`styles`));return[[this.factory.create(`mml`,n),t],!0]},n}(d.BaseItem),e.PositionItem=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`position`},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(t){if(t.isClose)throw new c.default(`MissingBoxFor`,`Missing box for %1`,this.getName());if(t.isFinal){var n=t.toMml();switch(this.getProperty(`move`)){case`vertical`:return n=this.create(`node`,`mpadded`,[n],{height:this.getProperty(`dh`),depth:this.getProperty(`dd`),voffset:this.getProperty(`dh`)}),[[this.factory.create(`mml`,n)],!0];case`horizontal`:return[[this.factory.create(`mml`,this.getProperty(`left`)),t,this.factory.create(`mml`,this.getProperty(`right`))],!0]}}return e.prototype.checkItem.call(this,t)},n}(d.BaseItem),e.CellItem=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`cell`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),n}(d.BaseItem),e.MmlItem=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"isFinal",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"kind",{get:function(){return`mml`},enumerable:!1,configurable:!0}),n}(d.BaseItem),e.FnItem=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`fn`},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(t){var n=this.First;if(n){if(t.isOpen)return d.BaseItem.success;if(!t.isKind(`fn`)){var r=t.First;if(!t.isKind(`mml`)||!r||u.default.isType(r,`mstyle`)&&r.childNodes.length&&u.default.isType(r.childNodes[0].childNodes[0],`mspace`)||u.default.isType(r,`mspace`))return[[n,t],!0];u.default.isEmbellished(r)&&(r=u.default.getCoreMO(r));var i=u.default.getForm(r);if(i!=null&&[0,0,1,1,0,1,1,0,0,0][i[2]])return[[n,t],!0]}return[[n,this.create(`token`,`mo`,{texClass:s.TEXCLASS.NONE},o.entities.ApplyFunction),t],!0]}return e.prototype.checkItem.apply(this,arguments)},n}(d.BaseItem),e.NotItem=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.remap=a.MapHandler.getMap(`not_remap`),t}return Object.defineProperty(n.prototype,"kind",{get:function(){return`not`},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(e){var t,n,r;if(e.isKind(`open`)||e.isKind(`left`))return d.BaseItem.success;if(e.isKind(`mml`)&&(u.default.isType(e.First,`mo`)||u.default.isType(e.First,`mi`)||u.default.isType(e.First,`mtext`))&&(t=e.First,n=u.default.getText(t),n.length===1&&!u.default.getProperty(t,`movesupsub`)&&u.default.getChildren(t).length===1))return this.remap.contains(n)?(r=this.create(`text`,this.remap.lookup(n).char),u.default.setChild(t,0,r)):(r=this.create(`text`,`̸`),u.default.appendChildren(t,[r])),[[e],!0];r=this.create(`text`,`⧸`);var i=this.create(`node`,`mtext`,[],{},r),a=this.create(`node`,`mpadded`,[i],{width:0});return t=this.create(`node`,`TeXAtom`,[a],{texClass:s.TEXCLASS.REL}),[[t,e],!0]},n}(d.BaseItem),e.NonscriptItem=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`nonscript`},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(e){if(e.isKind(`mml`)&&e.Size()===1){var t=e.First;if(t.isKind(`mstyle`)&&t.notParent&&(t=u.default.getChildren(u.default.getChildren(t)[0])[0]),t.isKind(`mspace`)){if(t!==e.First){var n=this.create(`node`,`mrow`,[e.Pop()]);e.Push(n)}this.factory.configuration.addNode(`nonscript`,e.First)}}return[[e],!0]},n}(d.BaseItem),e.DotsItem=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`dots`},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(e){if(e.isKind(`open`)||e.isKind(`left`))return d.BaseItem.success;var t=this.getProperty(`ldots`),n=e.First;if(e.isKind(`mml`)&&u.default.isEmbellished(n)){var r=u.default.getTexClass(u.default.getCoreMO(n));(r===s.TEXCLASS.BIN||r===s.TEXCLASS.REL)&&(t=this.getProperty(`cdots`))}return[[t,e],!0]},n}(d.BaseItem);var f=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.table=[],t.row=[],t.frame=[],t.hfill=[],t.arraydef={},t.dashed=!1,t}return Object.defineProperty(n.prototype,"kind",{get:function(){return`array`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"copyEnv",{get:function(){return!1},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(t){if(t.isClose&&!t.isKind(`over`)){if(t.getProperty(`isEntry`))return this.EndEntry(),this.clearEnv(),d.BaseItem.fail;if(t.getProperty(`isCR`))return this.EndEntry(),this.EndRow(),this.clearEnv(),d.BaseItem.fail;this.EndTable(),this.clearEnv();var n=this.factory.create(`mml`,this.createMml());if(this.getProperty(`requireClose`)){if(t.isKind(`close`))return[[n],!0];throw new c.default(`MissingCloseBrace`,`Missing close brace`)}return[[n,t],!0]}return e.prototype.checkItem.call(this,t)},n.prototype.createMml=function(){var e=this.arraydef.scriptlevel;delete this.arraydef.scriptlevel;var t=this.create(`node`,`mtable`,this.table,this.arraydef);return e&&t.setProperty(`scriptlevel`,e),this.frame.length===4?u.default.setAttribute(t,`frame`,this.dashed?`dashed`:`solid`):this.frame.length&&(this.arraydef.rowlines&&(this.arraydef.rowlines=this.arraydef.rowlines.replace(/none( none)+$/,`none`)),u.default.setAttribute(t,`frame`,``),t=this.create(`node`,`menclose`,[t],{notation:this.frame.join(` `)}),((this.arraydef.columnlines||`none`)!==`none`||(this.arraydef.rowlines||`none`)!==`none`)&&u.default.setAttribute(t,`data-padding`,0)),(this.getProperty(`open`)||this.getProperty(`close`))&&(t=l.default.fenced(this.factory.configuration,this.getProperty(`open`),t,this.getProperty(`close`))),t},n.prototype.EndEntry=function(){var e=this.create(`node`,`mtd`,this.nodes);this.hfill.length&&(this.hfill[0]===0&&u.default.setAttribute(e,`columnalign`,`right`),this.hfill[this.hfill.length-1]===this.Size()&&u.default.setAttribute(e,`columnalign`,u.default.getAttribute(e,`columnalign`)?`center`:`left`)),this.row.push(e),this.Clear(),this.hfill=[]},n.prototype.EndRow=function(){var e;this.getProperty(`isNumbered`)&&this.row.length===3?(this.row.unshift(this.row.pop()),e=this.create(`node`,`mlabeledtr`,this.row)):e=this.create(`node`,`mtr`,this.row),this.table.push(e),this.row=[]},n.prototype.EndTable=function(){(this.Size()||this.row.length)&&(this.EndEntry(),this.EndRow()),this.checkLines()},n.prototype.checkLines=function(){if(this.arraydef.rowlines){var e=this.arraydef.rowlines.split(/ /);e.length===this.table.length?(this.frame.push(`bottom`),e.pop(),this.arraydef.rowlines=e.join(` `)):e.length<this.table.length-1&&(this.arraydef.rowlines+=` none`)}if(this.getProperty(`rowspacing`)){for(var t=this.arraydef.rowspacing.split(/ /);t.length<this.table.length;)t.push(this.getProperty(`rowspacing`)+`em`);this.arraydef.rowspacing=t.join(` `)}},n.prototype.addRowSpacing=function(e){if(this.arraydef.rowspacing){var t=this.arraydef.rowspacing.split(/ /);if(!this.getProperty(`rowspacing`)){var n=l.default.dimen2em(t[0]);this.setProperty(`rowspacing`,n)}for(var r=this.getProperty(`rowspacing`);t.length<this.table.length;)t.push(l.default.Em(r));t[this.table.length-1]=l.default.Em(Math.max(0,r+l.default.dimen2em(e))),this.arraydef.rowspacing=t.join(` `)}},n}(d.BaseItem);e.ArrayItem=f,e.EqnArrayItem=function(e){t(i,e);function i(t){var n=[...arguments].slice(1),r=e.call(this,t)||this;return r.maxrow=0,r.factory.configuration.tags.start(n[0],n[2],n[1]),r}return Object.defineProperty(i.prototype,"kind",{get:function(){return`eqnarray`},enumerable:!1,configurable:!0}),i.prototype.EndEntry=function(){this.row.length&&l.default.fixInitialMO(this.factory.configuration,this.nodes);var e=this.create(`node`,`mtd`,this.nodes);this.row.push(e),this.Clear()},i.prototype.EndRow=function(){this.row.length>this.maxrow&&(this.maxrow=this.row.length);var e=`mtr`,t=this.factory.configuration.tags.getTag();t&&(this.row=[t].concat(this.row),e=`mlabeledtr`),this.factory.configuration.tags.clearTag();var n=this.create(`node`,e,this.row);this.table.push(n),this.row=[]},i.prototype.EndTable=function(){e.prototype.EndTable.call(this),this.factory.configuration.tags.end(),this.extendArray(`columnalign`,this.maxrow),this.extendArray(`columnwidth`,this.maxrow),this.extendArray(`columnspacing`,this.maxrow-1)},i.prototype.extendArray=function(e,t){if(this.arraydef[e]){var i=this.arraydef[e].split(/ /),a=r([],n(i),!1);if(a.length>1){for(;a.length<t;)a.push.apply(a,r([],n(i),!1));this.arraydef[e]=a.slice(0,t).join(` `)}}},i}(f),e.EquationItem=function(e){t(n,e);function n(t){var n=[...arguments].slice(1),r=e.call(this,t)||this;return r.factory.configuration.tags.start(`equation`,!0,n[0]),r}return Object.defineProperty(n.prototype,"kind",{get:function(){return`equation`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(t){if(t.isKind(`end`)){var n=this.toMml(),r=this.factory.configuration.tags.getTag();return this.factory.configuration.tags.end(),[[r?this.factory.configuration.tags.enTag(n,r):n,t],!0]}if(t.isKind(`stop`))throw new c.default(`EnvMissingEnd`,`Missing \\end{%1}`,this.getName());return e.prototype.checkItem.call(this,t)},n}(d.BaseItem)})),K=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TexConstant=void 0,(function(e){e.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`,BOLDCALLIGRAPHIC:`-tex-bold-calligraphic`,OLDSTYLE:`-tex-oldstyle`,BOLDOLDSTYLE:`-tex-bold-oldstyle`,MATHITALIC:`-tex-mathit`},e.Form={PREFIX:`prefix`,INFIX:`infix`,POSTFIX:`postfix`},e.LineBreak={AUTO:`auto`,NEWLINE:`newline`,NOBREAK:`nobreak`,GOODBREAK:`goodbreak`,BADBREAK:`badbreak`},e.LineBreakStyle={BEFORE:`before`,AFTER:`after`,DUPLICATE:`duplicate`,INFIXLINBREAKSTYLE:`infixlinebreakstyle`},e.IndentAlign={LEFT:`left`,CENTER:`center`,RIGHT:`right`,AUTO:`auto`,ID:`id`,INDENTALIGN:`indentalign`},e.IndentShift={INDENTSHIFT:`indentshift`},e.LineThickness={THIN:`thin`,MEDIUM:`medium`,THICK:`thick`},e.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`},e.Align={TOP:`top`,BOTTOM:`bottom`,CENTER:`center`,BASELINE:`baseline`,AXIS:`axis`,LEFT:`left`,RIGHT:`right`},e.Lines={NONE:`none`,SOLID:`solid`,DASHED:`dashed`},e.Side={LEFT:`left`,RIGHT:`right`,LEFTOVERLAP:`leftoverlap`,RIGHTOVERLAP:`rightoverlap`},e.Width={AUTO:`auto`,FIT:`fit`},e.Actiontype={TOGGLE:`toggle`,STATUSLINE:`statusline`,TOOLTIP:`tooltip`,INPUT:`input`},e.Overflow={LINBREAK:`linebreak`,SCROLL:`scroll`,ELIDE:`elide`,TRUNCATE:`truncate`,SCALE:`scale`},e.Unit={EM:`em`,EX:`ex`,PX:`px`,IN:`in`,CM:`cm`,MM:`mm`,PT:`pt`,PC:`pc`}})(e.TexConstant||={})})),q=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.px=e.emRounded=e.em=e.percent=e.length2em=e.MATHSPACE=e.RELUNITS=e.UNITS=e.BIGDIMEN=void 0,e.BIGDIMEN=1e6,e.UNITS={px:1,in:96,cm:96/2.54,mm:96/25.4},e.RELUNITS={em:1,ex:.431,pt:1/10,pc:12/10,mu:1/18},e.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:e.BIGDIMEN};function t(t,n,r,i){if(n===void 0&&(n=0),r===void 0&&(r=1),i===void 0&&(i=16),typeof t!=`string`&&(t=String(t)),t===``||t==null)return n;if(e.MATHSPACE[t])return e.MATHSPACE[t];var a=t.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!a)return n;var o=parseFloat(a[1]||`1`),s=a[2];return e.UNITS.hasOwnProperty(s)?o*e.UNITS[s]/i/r:e.RELUNITS.hasOwnProperty(s)?o*e.RELUNITS[s]:s===`%`?o/100*n:o*n}e.length2em=t;function n(e){return(100*e).toFixed(1).replace(/\.?0+$/,``)+`%`}e.percent=n;function r(e){return Math.abs(e)<.001?`0`:e.toFixed(3).replace(/\.?0+$/,``)+`em`}e.em=r;function i(e,t){return t===void 0&&(t=16),e=(Math.round(e*t)+.05)/t,Math.abs(e)<.001?`0em`:e.toFixed(3).replace(/\.?0+$/,``)+`em`}e.emRounded=i;function a(t,n,r){return n===void 0&&(n=-e.BIGDIMEN),r===void 0&&(r=16),t*=r,n&&t<n&&(t=n),Math.abs(t)<.1?`0`:t.toFixed(1).replace(/\.0$/,``)+`px`}e.px=a})),J=e((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},o=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},s=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var c=a(G()),l=s(I()),u=s(L()),d=s(z()),f=K(),p=s(R()),m=A(),g=V(),_=q(),v=h(),y=i(),b={},x=1.2/.85,S={fontfamily:1,fontsize:1,fontweight:1,fontstyle:1,color:1,background:1,id:1,class:1,href:1,style:1};b.Open=function(e,t){e.Push(e.itemFactory.create(`open`))},b.Close=function(e,t){e.Push(e.itemFactory.create(`close`))},b.Tilde=function(e,t){e.Push(e.create(`token`,`mtext`,{},v.entities.nbsp))},b.Space=function(e,t){},b.Superscript=function(e,t){var n;e.GetNext().match(/\d/)&&(e.string=e.string.substr(0,e.i+1)+` `+e.string.substr(e.i+1));var r,i,a=e.stack.Top();a.isKind(`prime`)?(n=o(a.Peek(2),2),i=n[0],r=n[1],e.stack.Pop()):(i=e.stack.Prev(),i||=e.create(`token`,`mi`,{},``));var s=l.default.getProperty(i,`movesupsub`),c=l.default.isType(i,`msubsup`)?i.sup:i.over;if(l.default.isType(i,`msubsup`)&&!l.default.isType(i,`msup`)&&l.default.getChildAt(i,i.sup)||l.default.isType(i,`munderover`)&&!l.default.isType(i,`mover`)&&l.default.getChildAt(i,i.over)&&!l.default.getProperty(i,`subsupOK`))throw new u.default(`DoubleExponent`,`Double exponent: use braces to clarify`);(!l.default.isType(i,`msubsup`)||l.default.isType(i,`msup`))&&(s?((!l.default.isType(i,`munderover`)||l.default.isType(i,`mover`)||l.default.getChildAt(i,i.over))&&(i=e.create(`node`,`munderover`,[i],{movesupsub:!0})),c=i.over):(i=e.create(`node`,`msubsup`,[i]),c=i.sup)),e.Push(e.itemFactory.create(`subsup`,i).setProperties({position:c,primes:r,movesupsub:s}))},b.Subscript=function(e,t){var n;e.GetNext().match(/\d/)&&(e.string=e.string.substr(0,e.i+1)+` `+e.string.substr(e.i+1));var r,i,a=e.stack.Top();a.isKind(`prime`)?(n=o(a.Peek(2),2),i=n[0],r=n[1],e.stack.Pop()):(i=e.stack.Prev(),i||=e.create(`token`,`mi`,{},``));var s=l.default.getProperty(i,`movesupsub`),c=l.default.isType(i,`msubsup`)?i.sub:i.under;if(l.default.isType(i,`msubsup`)&&!l.default.isType(i,`msup`)&&l.default.getChildAt(i,i.sub)||l.default.isType(i,`munderover`)&&!l.default.isType(i,`mover`)&&l.default.getChildAt(i,i.under)&&!l.default.getProperty(i,`subsupOK`))throw new u.default(`DoubleSubscripts`,`Double subscripts: use braces to clarify`);(!l.default.isType(i,`msubsup`)||l.default.isType(i,`msup`))&&(s?((!l.default.isType(i,`munderover`)||l.default.isType(i,`mover`)||l.default.getChildAt(i,i.under))&&(i=e.create(`node`,`munderover`,[i],{movesupsub:!0})),c=i.under):(i=e.create(`node`,`msubsup`,[i]),c=i.sub)),e.Push(e.itemFactory.create(`subsup`,i).setProperties({position:c,primes:r,movesupsub:s}))},b.Prime=function(e,t){var n=e.stack.Prev();if(n||=e.create(`node`,`mi`),l.default.isType(n,`msubsup`)&&!l.default.isType(n,`msup`)&&l.default.getChildAt(n,n.sup))throw new u.default(`DoubleExponentPrime`,`Prime causes double exponent: use braces to clarify`);var r=``;e.i--;do r+=v.entities.prime,e.i++,t=e.GetNext();while(t===`'`||t===v.entities.rsquo);r=[``,`′`,`″`,`‴`,`⁗`][r.length]||r;var i=e.create(`token`,`mo`,{variantForm:!0},r);e.Push(e.itemFactory.create(`prime`,n,i))},b.Comment=function(e,t){for(;e.i<e.string.length&&e.string.charAt(e.i)!==`
11
+ `;)e.i++},b.Hash=function(e,t){throw new u.default(`CantUseHash1`,`You can't use 'macro parameter character #' in math mode`)},b.MathFont=function(e,n,r){var i=e.GetArgument(n),a=new d.default(i,t(t({},e.stack.env),{font:r,multiLetterIdentifiers:/^[a-zA-Z]+/,noAutoOP:!0}),e.configuration).mml();e.Push(e.create(`node`,`TeXAtom`,[a]))},b.SetFont=function(e,t,n){e.stack.env.font=n},b.SetStyle=function(e,t,n,r,i){e.stack.env.style=n,e.stack.env.level=i,e.Push(e.itemFactory.create(`style`).setProperty(`styles`,{displaystyle:r,scriptlevel:i}))},b.SetSize=function(e,t,n){e.stack.env.size=n,e.Push(e.itemFactory.create(`style`).setProperty(`styles`,{mathsize:(0,_.em)(n)}))},b.Spacer=function(e,t,n){var r=e.create(`node`,`mspace`,[],{width:(0,_.em)(n)}),i=e.create(`node`,`mstyle`,[r],{scriptlevel:0});e.Push(i)},b.LeftRight=function(e,t){var n=t.substr(1);e.Push(e.itemFactory.create(n,e.GetDelimiter(t),e.stack.env.color))},b.NamedFn=function(e,t,n){n||=t.substr(1);var r=e.create(`token`,`mi`,{texClass:m.TEXCLASS.OP},n);e.Push(e.itemFactory.create(`fn`,r))},b.NamedOp=function(e,t,n){n||=t.substr(1),n=n.replace(/&thinsp;/,` `);var r=e.create(`token`,`mo`,{movablelimits:!0,movesupsub:!0,form:f.TexConstant.Form.PREFIX,texClass:m.TEXCLASS.OP},n);e.Push(r)},b.Limits=function(e,t,n){var r=e.stack.Prev(!0);if(!r||l.default.getTexClass(l.default.getCoreMO(r))!==m.TEXCLASS.OP&&l.default.getProperty(r,`movesupsub`)==null)throw new u.default(`MisplacedLimits`,`%1 is allowed only on operators`,e.currentCS);var i=e.stack.Top(),a;l.default.isType(r,`munderover`)&&!n?(a=e.create(`node`,`msubsup`),l.default.copyChildren(r,a),r=i.Last=a):l.default.isType(r,`msubsup`)&&n&&(a=e.create(`node`,`munderover`),l.default.copyChildren(r,a),r=i.Last=a),l.default.setProperty(r,`movesupsub`,!!n),l.default.setProperties(l.default.getCoreMO(r),{movablelimits:!1}),(l.default.getAttribute(r,`movablelimits`)||l.default.getProperty(r,`movablelimits`))&&l.default.setProperties(r,{movablelimits:!1})},b.Over=function(e,t,n,r){var i=e.itemFactory.create(`over`).setProperty(`name`,e.currentCS);n||r?(i.setProperty(`open`,n),i.setProperty(`close`,r)):t.match(/withdelims$/)&&(i.setProperty(`open`,e.GetDelimiter(t)),i.setProperty(`close`,e.GetDelimiter(t))),t.match(/^\\above/)?i.setProperty(`thickness`,e.GetDimen(t)):(t.match(/^\\atop/)||n||r)&&i.setProperty(`thickness`,0),e.Push(i)},b.Frac=function(e,t){var n=e.ParseArg(t),r=e.ParseArg(t),i=e.create(`node`,`mfrac`,[n,r]);e.Push(i)},b.Sqrt=function(e,t){var n=e.GetBrackets(t),r=e.GetArgument(t);r===`\\frac`&&(r+=`{`+e.GetArgument(r)+`}{`+e.GetArgument(r)+`}`);var i=new d.default(r,e.stack.env,e.configuration).mml();i=n?e.create(`node`,`mroot`,[i,C(e,n)]):e.create(`node`,`msqrt`,[i]),e.Push(i)};function C(e,t){var n=e.stack.env,r=n.inRoot;n.inRoot=!0;var i=new d.default(t,n,e.configuration),a=i.mml(),o=i.stack.global;if(o.leftRoot||o.upRoot){var s={};o.leftRoot&&(s.width=o.leftRoot),o.upRoot&&(s.voffset=o.upRoot,s.height=o.upRoot),a=e.create(`node`,`mpadded`,[a],s)}return n.inRoot=r,a}b.Root=function(e,t){var n=e.GetUpTo(t,`\\of`),r=e.ParseArg(t),i=e.create(`node`,`mroot`,[r,C(e,n)]);e.Push(i)},b.MoveRoot=function(e,t,n){if(!e.stack.env.inRoot)throw new u.default(`MisplacedMoveRoot`,`%1 can appear only within a root`,e.currentCS);if(e.stack.global[n])throw new u.default(`MultipleMoveRoot`,`Multiple use of %1`,e.currentCS);var r=e.GetArgument(t);if(!r.match(/-?[0-9]+/))throw new u.default(`IntegerArg`,`The argument to %1 must be an integer`,e.currentCS);r=parseInt(r,10)/15+`em`,r.substr(0,1)!==`-`&&(r=`+`+r),e.stack.global[n]=r},b.Accent=function(e,n,r,i){var a=e.ParseArg(n),o=t(t({},p.default.getFontDef(e)),{accent:!0,mathaccent:!0}),s=l.default.createEntity(r),c=e.create(`token`,`mo`,o,s);l.default.setAttribute(c,`stretchy`,!!i);var u=l.default.isEmbellished(a)?l.default.getCoreMO(a):a;(l.default.isType(u,`mo`)||l.default.getProperty(u,`movablelimits`))&&l.default.setProperties(u,{movablelimits:!1});var d=e.create(`node`,`munderover`);l.default.setChild(d,0,a),l.default.setChild(d,1,null),l.default.setChild(d,2,c);var f=e.create(`node`,`TeXAtom`,[d]);e.Push(f)},b.UnderOver=function(e,t,n,r){var i=l.default.createEntity(n),a=e.create(`token`,`mo`,{stretchy:!0,accent:!0},i),o=t.charAt(1)===`o`?`over`:`under`,s=e.ParseArg(t);e.Push(p.default.underOver(e,s,a,o,r))},b.Overset=function(e,t){var n=e.ParseArg(t),r=e.ParseArg(t);p.default.checkMovableLimits(r),n.isKind(`mo`)&&l.default.setAttribute(n,`accent`,!1);var i=e.create(`node`,`mover`,[r,n]);e.Push(i)},b.Underset=function(e,t){var n=e.ParseArg(t),r=e.ParseArg(t);p.default.checkMovableLimits(r),n.isKind(`mo`)&&l.default.setAttribute(n,`accent`,!1);var i=e.create(`node`,`munder`,[r,n],{accentunder:!1});e.Push(i)},b.Overunderset=function(e,t){var n=e.ParseArg(t),r=e.ParseArg(t),i=e.ParseArg(t);p.default.checkMovableLimits(i),n.isKind(`mo`)&&l.default.setAttribute(n,`accent`,!1),r.isKind(`mo`)&&l.default.setAttribute(r,`accent`,!1);var a=e.create(`node`,`munderover`,[i,r,n],{accent:!1,accentunder:!1});e.Push(a)},b.TeXAtom=function(e,t,n){var r={texClass:n},i,a,o;if(n===m.TEXCLASS.OP){r.movesupsub=r.movablelimits=!0;var s=e.GetArgument(t),c=s.match(/^\s*\\rm\s+([a-zA-Z0-9 ]+)$/);c?(r.mathvariant=f.TexConstant.Variant.NORMAL,a=e.create(`token`,`mi`,r,c[1])):(o=new d.default(s,e.stack.env,e.configuration).mml(),a=e.create(`node`,`TeXAtom`,[o],r)),i=e.itemFactory.create(`fn`,a)}else o=e.ParseArg(t),i=e.create(`node`,`TeXAtom`,[o],r);e.Push(i)},b.MmlToken=function(e,t){var n=e.GetArgument(t),r=e.GetBrackets(t,``).replace(/^\s+/,``),i=e.GetArgument(t),a={},o=[],s;try{s=e.create(`node`,n)}catch{s=null}if(!s||!s.isToken)throw new u.default(`NotMathMLToken`,`%1 is not a token element`,n);for(;r!==``;){var c=r.match(/^([a-z]+)\s*=\s*('[^']*'|"[^"]*"|[^ ,]*)\s*,?\s*/i);if(!c)throw new u.default(`InvalidMathMLAttr`,`Invalid MathML attribute: %1`,r);if(!s.attributes.hasDefault(c[1])&&!S[c[1]])throw new u.default(`UnknownAttrForElement`,`%1 is not a recognized attribute for %2`,c[1],n);var d=p.default.MmlFilterAttribute(e,c[1],c[2].replace(/^(['"])(.*)\1$/,`$2`));d&&(d.toLowerCase()===`true`?d=!0:d.toLowerCase()===`false`&&(d=!1),a[c[1]]=d,o.push(c[1])),r=r.substr(c[0].length)}o.length&&(a[`mjx-keep-attrs`]=o.join(` `));var f=e.create(`text`,i);s.appendChild(f),l.default.setProperties(s,a),e.Push(s)},b.Strut=function(e,t){var n=e.create(`node`,`mrow`),r=e.create(`node`,`mpadded`,[n],{height:`8.6pt`,depth:`3pt`,width:0});e.Push(r)},b.Phantom=function(e,t,n,r){var i=e.create(`node`,`mphantom`,[e.ParseArg(t)]);(n||r)&&(i=e.create(`node`,`mpadded`,[i]),r&&(l.default.setAttribute(i,`height`,0),l.default.setAttribute(i,`depth`,0)),n&&l.default.setAttribute(i,`width`,0));var a=e.create(`node`,`TeXAtom`,[i]);e.Push(a)},b.Smash=function(e,t){var n=p.default.trimSpaces(e.GetBrackets(t,``)),r=e.create(`node`,`mpadded`,[e.ParseArg(t)]);switch(n){case`b`:l.default.setAttribute(r,`depth`,0);break;case`t`:l.default.setAttribute(r,`height`,0);break;default:l.default.setAttribute(r,`height`,0),l.default.setAttribute(r,`depth`,0)}var i=e.create(`node`,`TeXAtom`,[r]);e.Push(i)},b.Lap=function(e,t){var n=e.create(`node`,`mpadded`,[e.ParseArg(t)],{width:0});t===`\\llap`&&l.default.setAttribute(n,`lspace`,`-1width`);var r=e.create(`node`,`TeXAtom`,[n]);e.Push(r)},b.RaiseLower=function(e,t){var n=e.GetDimen(t),r=e.itemFactory.create(`position`).setProperties({name:e.currentCS,move:`vertical`});n.charAt(0)===`-`&&(n=n.slice(1),t=t.substr(1)===`raise`?`\\lower`:`\\raise`),t===`\\lower`?(r.setProperty(`dh`,`-`+n),r.setProperty(`dd`,`+`+n)):(r.setProperty(`dh`,`+`+n),r.setProperty(`dd`,`-`+n)),e.Push(r)},b.MoveLeftRight=function(e,t){var n=e.GetDimen(t),r=n.charAt(0)===`-`?n.slice(1):`-`+n;if(t===`\\moveleft`){var i=n;n=r,r=i}e.Push(e.itemFactory.create(`position`).setProperties({name:e.currentCS,move:`horizontal`,left:e.create(`node`,`mspace`,[],{width:n}),right:e.create(`node`,`mspace`,[],{width:r})}))},b.Hskip=function(e,t){var n=e.create(`node`,`mspace`,[],{width:e.GetDimen(t)});e.Push(n)},b.Nonscript=function(e,t){e.Push(e.itemFactory.create(`nonscript`))},b.Rule=function(e,t,n){var r={width:e.GetDimen(t),height:e.GetDimen(t),depth:e.GetDimen(t)};n!==`blank`&&(r.mathbackground=e.stack.env.color||`black`);var i=e.create(`node`,`mspace`,[],r);e.Push(i)},b.rule=function(e,t){var n=e.GetBrackets(t),r=e.GetDimen(t),i=e.GetDimen(t),a=e.create(`node`,`mspace`,[],{width:r,height:i,mathbackground:e.stack.env.color||`black`});n&&(a=e.create(`node`,`mpadded`,[a],{voffset:n}),n.match(/^\-/)?(l.default.setAttribute(a,`height`,n),l.default.setAttribute(a,`depth`,`+`+n.substr(1))):l.default.setAttribute(a,`height`,`+`+n)),e.Push(a)},b.MakeBig=function(e,t,n,r){r*=x;var i=String(r).replace(/(\.\d\d\d).+/,`$1`)+`em`,a=e.GetDelimiter(t,!0),o=e.create(`token`,`mo`,{minsize:i,maxsize:i,fence:!0,stretchy:!0,symmetric:!0},a),s=e.create(`node`,`TeXAtom`,[o],{texClass:n});e.Push(s)},b.BuildRel=function(e,t){var n=e.ParseUpTo(t,`\\over`),r=e.ParseArg(t),i=e.create(`node`,`munderover`);l.default.setChild(i,0,r),l.default.setChild(i,1,null),l.default.setChild(i,2,n);var a=e.create(`node`,`TeXAtom`,[i],{texClass:m.TEXCLASS.REL});e.Push(a)},b.HBox=function(e,t,n,r){e.PushAll(p.default.internalMath(e,e.GetArgument(t),n,r))},b.FBox=function(e,t){var n=p.default.internalMath(e,e.GetArgument(t)),r=e.create(`node`,`menclose`,n,{notation:`box`});e.Push(r)},b.FrameBox=function(e,t){var n=e.GetBrackets(t),r=e.GetBrackets(t)||`c`,i=p.default.internalMath(e,e.GetArgument(t));n&&(i=[e.create(`node`,`mpadded`,i,{width:n,"data-align":(0,y.lookup)(r,{l:`left`,r:`right`},`center`)})]);var a=e.create(`node`,`TeXAtom`,[e.create(`node`,`menclose`,i,{notation:`box`})],{texClass:m.TEXCLASS.ORD});e.Push(a)},b.Not=function(e,t){e.Push(e.itemFactory.create(`not`))},b.Dots=function(e,t){var n=l.default.createEntity(`2026`),r=l.default.createEntity(`22EF`),i=e.create(`token`,`mo`,{stretchy:!1},n),a=e.create(`token`,`mo`,{stretchy:!1},r);e.Push(e.itemFactory.create(`dots`).setProperties({ldots:i,cdots:a}))},b.Matrix=function(e,t,n,r,i,a,o,s,c,l){var d=e.GetNext();if(d===``)throw new u.default(`MissingArgFor`,`Missing argument for %1`,e.currentCS);d===`{`?e.i++:(e.string=d+`}`+e.string.slice(e.i+1),e.i=0);var f=e.itemFactory.create(`array`).setProperty(`requireClose`,!0);f.arraydef={rowspacing:o||`4pt`,columnspacing:a||`1em`},c&&f.setProperty(`isCases`,!0),l&&(f.setProperty(`isNumbered`,!0),f.arraydef.side=l),(n||r)&&(f.setProperty(`open`,n),f.setProperty(`close`,r)),s===`D`&&(f.arraydef.displaystyle=!0),i!=null&&(f.arraydef.columnalign=i),e.Push(f)},b.Entry=function(e,t){e.Push(e.itemFactory.create(`cell`).setProperties({isEntry:!0,name:t}));var n=e.stack.Top(),r=n.getProperty(`casesEnv`);if(!(!n.getProperty(`isCases`)&&!r)){for(var i=e.string,a=0,o=-1,s=e.i,c=i.length,l=r?RegExp(`^\\\\end\\s*\\{${r.replace(/\*/,`\\*`)}\\}`):null;s<c;){var d=i.charAt(s);if(d===`{`)a++,s++;else if(d===`}`)a===0?c=0:(a--,a===0&&o<0&&(o=s-e.i),s++);else if(d===`&`&&a===0)throw new u.default(`ExtraAlignTab`,`Extra alignment tab in \\cases text`);else if(d===`\\`){var f=i.substr(s);f.match(/^((\\cr)[^a-zA-Z]|\\\\)/)||l&&f.match(l)?c=0:s+=2}else s++}var m=i.substr(e.i,s-e.i);if(!m.match(/^\s*\\text[^a-zA-Z]/)||o!==m.replace(/\s+$/,``).length-1){var h=p.default.internalMath(e,p.default.trimSpaces(m),0);e.PushAll(h),e.i=s}}},b.Cr=function(e,t){e.Push(e.itemFactory.create(`cell`).setProperties({isCR:!0,name:t}))},b.CrLaTeX=function(e,t,n){n===void 0&&(n=!1);var r;if(!n&&(e.string.charAt(e.i)===`*`&&e.i++,e.string.charAt(e.i)===`[`)){var i=e.GetBrackets(t,``),a=o(p.default.matchDimen(i),2),s=a[0],l=a[1];if(i&&!s)throw new u.default(`BracketMustBeDimension`,`Bracket argument to %1 must be a dimension`,e.currentCS);r=s+l}e.Push(e.itemFactory.create(`cell`).setProperties({isCR:!0,name:t,linebreak:!0}));var d=e.stack.Top(),m;d instanceof c.ArrayItem?r&&d.addRowSpacing(r):(r&&(m=e.create(`node`,`mspace`,[],{depth:r}),e.Push(m)),m=e.create(`node`,`mspace`,[],{linebreak:f.TexConstant.LineBreak.NEWLINE}),e.Push(m))},b.HLine=function(e,t,n){n??=`solid`;var r=e.stack.Top();if(!(r instanceof c.ArrayItem)||r.Size())throw new u.default(`Misplaced`,`Misplaced %1`,e.currentCS);if(!r.table.length)r.frame.push(`top`);else{for(var i=r.arraydef.rowlines?r.arraydef.rowlines.split(/ /):[];i.length<r.table.length;)i.push(`none`);i[r.table.length-1]=n,r.arraydef.rowlines=i.join(` `)}},b.HFill=function(e,t){var n=e.stack.Top();if(n instanceof c.ArrayItem)n.hfill.push(n.Size());else throw new u.default(`UnsupportedHFill`,`Unsupported use of %1`,e.currentCS)},b.BeginEnd=function(e,t){var n=e.GetArgument(t);if(n.match(/\\/i))throw new u.default(`InvalidEnv`,`Invalid environment name '%1'`,n);var r=e.configuration.handlers.get(`environment`).lookup(n);if(r&&t===`\\end`){if(!r.args[0]){var i=e.itemFactory.create(`end`).setProperty(`name`,n);e.Push(i);return}e.stack.env.closing=n}p.default.checkMaxMacros(e,!1),e.parse(`environment`,[e,n])},b.Array=function(e,t,n,r,i,a,o,s,c){i||=e.GetArgument(`\\begin{`+t.getName()+`}`);var l=(`c`+i).replace(/[^clr|:]/g,``).replace(/[^|:]([|:])+/g,`$1`);i=i.replace(/[^clr]/g,``).split(``).join(` `),i=i.replace(/l/g,`left`).replace(/r/g,`right`).replace(/c/g,`center`);var u=e.itemFactory.create(`array`);return u.arraydef={columnalign:i,columnspacing:a||`1em`,rowspacing:o||`4pt`},l.match(/[|:]/)&&(l.charAt(0).match(/[|:]/)&&(u.frame.push(`left`),u.dashed=l.charAt(0)===`:`),l.charAt(l.length-1).match(/[|:]/)&&u.frame.push(`right`),l=l.substr(1,l.length-2),u.arraydef.columnlines=l.split(``).join(` `).replace(/[^|: ]/g,`none`).replace(/\|/g,`solid`).replace(/:/g,`dashed`)),n&&u.setProperty(`open`,e.convertDelimiter(n)),r&&u.setProperty(`close`,e.convertDelimiter(r)),(s||``).charAt(1)===`'`&&(u.arraydef[`data-cramped`]=!0,s=s.charAt(0)),s===`D`?u.arraydef.displaystyle=!0:s&&(u.arraydef.displaystyle=!1),s===`S`&&(u.arraydef.scriptlevel=1),c&&(u.arraydef.useHeight=!1),e.Push(t),u},b.AlignedArray=function(e,t){var n=e.GetBrackets(`\\begin{`+t.getName()+`}`),r=b.Array(e,t);return p.default.setArrayAlign(r,n)},b.Equation=function(e,t,n){return e.Push(t),p.default.checkEqnEnv(e),e.itemFactory.create(`equation`,n).setProperty(`name`,t.getName())},b.EqnArray=function(e,t,n,r,i,a){e.Push(t),r&&p.default.checkEqnEnv(e),i=i.replace(/[^clr]/g,``).split(``).join(` `),i=i.replace(/l/g,`left`).replace(/r/g,`right`).replace(/c/g,`center`);var o=e.itemFactory.create(`eqnarray`,t.getName(),n,r,e.stack.global);return o.arraydef={displaystyle:!0,columnalign:i,columnspacing:a||`1em`,rowspacing:`3pt`,side:e.options.tagSide,minlabelspacing:e.options.tagIndent},o},b.HandleNoTag=function(e,t){e.tags.notag()},b.HandleLabel=function(e,t){var n=e.GetArgument(t);if(n!==``&&!e.tags.refUpdate){if(e.tags.label)throw new u.default(`MultipleCommand`,`Multiple %1`,e.currentCS);if(e.tags.label=n,(e.tags.allLabels[n]||e.tags.labels[n])&&!e.options.ignoreDuplicateLabels)throw new u.default(`MultipleLabel`,`Label '%1' multiply defined`,n);e.tags.labels[n]=new g.Label}},b.HandleRef=function(e,t,n){var r=e.GetArgument(t),i=e.tags.allLabels[r]||e.tags.labels[r];i||=(e.tags.refUpdate||(e.tags.redo=!0),new g.Label);var a=i.tag;n&&(a=e.tags.formatTag(a));var o=e.create(`node`,`mrow`,p.default.internalMath(e,a),{href:e.tags.formatUrl(i.id,e.options.baseURL),class:`MathJax_ref`});e.Push(o)},b.Macro=function(e,t,n,r,i){if(r){var a=[];if(i!=null){var o=e.GetBrackets(t);a.push(o??i)}for(var s=a.length;s<r;s++)a.push(e.GetArgument(t));n=p.default.substituteArgs(e,a,n)}e.string=p.default.addArgs(e,n,e.string.slice(e.i)),e.i=0,p.default.checkMaxMacros(e)},b.MathChoice=function(e,t){var n=e.ParseArg(t),r=e.ParseArg(t),i=e.ParseArg(t),a=e.ParseArg(t);e.Push(e.create(`node`,`MathChoice`,[n,r,i,a]))},e.default=b})),Y=e((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(I()),a=K(),o=r(R()),s;(function(e){function r(e,t){var n=o.default.getFontDef(e),r=e.stack.env;r.multiLetterIdentifiers&&r.font!==``&&(t=e.string.substr(e.i-1).match(r.multiLetterIdentifiers)[0],e.i+=t.length-1,n.mathvariant===a.TexConstant.Variant.NORMAL&&r.noAutoOP&&t.length>1&&(n.autoOP=!1));var i=e.create(`token`,`mi`,n,t);e.Push(i)}e.variable=r;function s(e,t){var n,r=e.configuration.options.digits,i=e.string.slice(e.i-1).match(r),a=o.default.getFontDef(e);i?(n=e.create(`token`,`mn`,a,i[0].replace(/[{}]/g,``)),e.i+=i[0].length-1):n=e.create(`token`,`mo`,a,t),e.Push(n)}e.digit=s;function c(e,t){var n=e.GetCS();e.parse(`macro`,[e,n])}e.controlSequence=c;function l(e,t){var n=t.attributes||{mathvariant:a.TexConstant.Variant.ITALIC},r=e.create(`token`,`mi`,n,t.char);e.Push(r)}e.mathchar0mi=l;function u(e,t){var n=t.attributes||{};n.stretchy=!1;var r=e.create(`token`,`mo`,n,t.char);i.default.setProperty(r,`fixStretchy`,!0),e.configuration.addNode(`fixStretchy`,r),e.Push(r)}e.mathchar0mo=u;function d(e,t){var n=t.attributes||{mathvariant:a.TexConstant.Variant.NORMAL};e.stack.env.font&&(n.mathvariant=e.stack.env.font);var r=e.create(`token`,`mi`,n,t.char);e.Push(r)}e.mathchar7=d;function f(e,t){var n=t.attributes||{};n=Object.assign({fence:!1,stretchy:!1},n);var r=e.create(`token`,`mo`,n,t.char);e.Push(r)}e.delimiter=f;function p(e,r,i,a){var o=a[0],s=e.itemFactory.create(`begin`).setProperties({name:r,end:o});s=i.apply(void 0,n([e,s],t(a.slice(1)),!1)),e.Push(s)}e.environment=p})(s||={}),e.default=s})),Ke=e((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var a=r(W()),o=K(),s=i(J()),c=i(Y()),l=i(R()),u=A(),d=q();new a.RegExpMap(`letter`,c.default.variable,/[a-z]/i),new a.RegExpMap(`digit`,c.default.digit,/[0-9.,]/),new a.RegExpMap(`command`,c.default.controlSequence,/^\\/),new a.MacroMap(`special`,{"{":`Open`,"}":`Close`,"~":`Tilde`,"^":`Superscript`,_:`Subscript`," ":`Space`," ":`Space`,"\r":`Space`,"\n":`Space`,"'":`Prime`,"%":`Comment`,"&":`Entry`,"#":`Hash`,"\xA0":`Space`,"’":`Prime`},s.default),new a.CharacterMap(`mathchar0mi`,c.default.mathchar0mi,{alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ϵ`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`ϕ`,chi:`χ`,psi:`ψ`,omega:`ω`,varepsilon:`ε`,vartheta:`ϑ`,varpi:`ϖ`,varrho:`ϱ`,varsigma:`ς`,varphi:`φ`,S:[`§`,{mathvariant:o.TexConstant.Variant.NORMAL}],aleph:[`ℵ`,{mathvariant:o.TexConstant.Variant.NORMAL}],hbar:[`ℏ`,{variantForm:!0}],imath:`ı`,jmath:`ȷ`,ell:`ℓ`,wp:[`℘`,{mathvariant:o.TexConstant.Variant.NORMAL}],Re:[`ℜ`,{mathvariant:o.TexConstant.Variant.NORMAL}],Im:[`ℑ`,{mathvariant:o.TexConstant.Variant.NORMAL}],partial:[`∂`,{mathvariant:o.TexConstant.Variant.ITALIC}],infty:[`∞`,{mathvariant:o.TexConstant.Variant.NORMAL}],prime:[`′`,{variantForm:!0}],emptyset:[`∅`,{mathvariant:o.TexConstant.Variant.NORMAL}],nabla:[`∇`,{mathvariant:o.TexConstant.Variant.NORMAL}],top:[`⊤`,{mathvariant:o.TexConstant.Variant.NORMAL}],bot:[`⊥`,{mathvariant:o.TexConstant.Variant.NORMAL}],angle:[`∠`,{mathvariant:o.TexConstant.Variant.NORMAL}],triangle:[`△`,{mathvariant:o.TexConstant.Variant.NORMAL}],backslash:[`∖`,{mathvariant:o.TexConstant.Variant.NORMAL}],forall:[`∀`,{mathvariant:o.TexConstant.Variant.NORMAL}],exists:[`∃`,{mathvariant:o.TexConstant.Variant.NORMAL}],neg:[`¬`,{mathvariant:o.TexConstant.Variant.NORMAL}],lnot:[`¬`,{mathvariant:o.TexConstant.Variant.NORMAL}],flat:[`♭`,{mathvariant:o.TexConstant.Variant.NORMAL}],natural:[`♮`,{mathvariant:o.TexConstant.Variant.NORMAL}],sharp:[`♯`,{mathvariant:o.TexConstant.Variant.NORMAL}],clubsuit:[`♣`,{mathvariant:o.TexConstant.Variant.NORMAL}],diamondsuit:[`♢`,{mathvariant:o.TexConstant.Variant.NORMAL}],heartsuit:[`♡`,{mathvariant:o.TexConstant.Variant.NORMAL}],spadesuit:[`♠`,{mathvariant:o.TexConstant.Variant.NORMAL}]}),new a.CharacterMap(`mathchar0mo`,c.default.mathchar0mo,{surd:`√`,coprod:[`∐`,{texClass:u.TEXCLASS.OP,movesupsub:!0}],bigvee:[`⋁`,{texClass:u.TEXCLASS.OP,movesupsub:!0}],bigwedge:[`⋀`,{texClass:u.TEXCLASS.OP,movesupsub:!0}],biguplus:[`⨄`,{texClass:u.TEXCLASS.OP,movesupsub:!0}],bigcap:[`⋂`,{texClass:u.TEXCLASS.OP,movesupsub:!0}],bigcup:[`⋃`,{texClass:u.TEXCLASS.OP,movesupsub:!0}],int:[`∫`,{texClass:u.TEXCLASS.OP}],intop:[`∫`,{texClass:u.TEXCLASS.OP,movesupsub:!0,movablelimits:!0}],iint:[`∬`,{texClass:u.TEXCLASS.OP}],iiint:[`∭`,{texClass:u.TEXCLASS.OP}],prod:[`∏`,{texClass:u.TEXCLASS.OP,movesupsub:!0}],sum:[`∑`,{texClass:u.TEXCLASS.OP,movesupsub:!0}],bigotimes:[`⨂`,{texClass:u.TEXCLASS.OP,movesupsub:!0}],bigoplus:[`⨁`,{texClass:u.TEXCLASS.OP,movesupsub:!0}],bigodot:[`⨀`,{texClass:u.TEXCLASS.OP,movesupsub:!0}],oint:[`∮`,{texClass:u.TEXCLASS.OP}],bigsqcup:[`⨆`,{texClass:u.TEXCLASS.OP,movesupsub:!0}],smallint:[`∫`,{largeop:!1}],triangleleft:`◃`,triangleright:`▹`,bigtriangleup:`△`,bigtriangledown:`▽`,wedge:`∧`,land:`∧`,vee:`∨`,lor:`∨`,cap:`∩`,cup:`∪`,ddagger:`‡`,dagger:`†`,sqcap:`⊓`,sqcup:`⊔`,uplus:`⊎`,amalg:`⨿`,diamond:`⋄`,bullet:`∙`,wr:`≀`,div:`÷`,divsymbol:`÷`,odot:[`⊙`,{largeop:!1}],oslash:[`⊘`,{largeop:!1}],otimes:[`⊗`,{largeop:!1}],ominus:[`⊖`,{largeop:!1}],oplus:[`⊕`,{largeop:!1}],mp:`∓`,pm:`±`,circ:`∘`,bigcirc:`◯`,setminus:`∖`,cdot:`⋅`,ast:`∗`,times:`×`,star:`⋆`,propto:`∝`,sqsubseteq:`⊑`,sqsupseteq:`⊒`,parallel:`∥`,mid:`∣`,dashv:`⊣`,vdash:`⊢`,leq:`≤`,le:`≤`,geq:`≥`,ge:`≥`,lt:`<`,gt:`>`,succ:`≻`,prec:`≺`,approx:`≈`,succeq:`⪰`,preceq:`⪯`,supset:`⊃`,subset:`⊂`,supseteq:`⊇`,subseteq:`⊆`,in:`∈`,ni:`∋`,notin:`∉`,owns:`∋`,gg:`≫`,ll:`≪`,sim:`∼`,simeq:`≃`,perp:`⊥`,equiv:`≡`,asymp:`≍`,smile:`⌣`,frown:`⌢`,ne:`≠`,neq:`≠`,cong:`≅`,doteq:`≐`,bowtie:`⋈`,models:`⊨`,notChar:`⧸`,Leftrightarrow:`⇔`,Leftarrow:`⇐`,Rightarrow:`⇒`,leftrightarrow:`↔`,leftarrow:`←`,gets:`←`,rightarrow:`→`,to:[`→`,{accent:!1}],mapsto:`↦`,leftharpoonup:`↼`,leftharpoondown:`↽`,rightharpoonup:`⇀`,rightharpoondown:`⇁`,nearrow:`↗`,searrow:`↘`,nwarrow:`↖`,swarrow:`↙`,rightleftharpoons:`⇌`,hookrightarrow:`↪`,hookleftarrow:`↩`,longleftarrow:`⟵`,Longleftarrow:`⟸`,longrightarrow:`⟶`,Longrightarrow:`⟹`,Longleftrightarrow:`⟺`,longleftrightarrow:`⟷`,longmapsto:`⟼`,ldots:`…`,cdots:`⋯`,vdots:`⋮`,ddots:`⋱`,dotsc:`…`,dotsb:`⋯`,dotsm:`⋯`,dotsi:`⋯`,dotso:`…`,ldotp:[`.`,{texClass:u.TEXCLASS.PUNCT}],cdotp:[`⋅`,{texClass:u.TEXCLASS.PUNCT}],colon:[`:`,{texClass:u.TEXCLASS.PUNCT}]}),new a.CharacterMap(`mathchar7`,c.default.mathchar7,{Gamma:`Γ`,Delta:`Δ`,Theta:`Θ`,Lambda:`Λ`,Xi:`Ξ`,Pi:`Π`,Sigma:`Σ`,Upsilon:`Υ`,Phi:`Φ`,Psi:`Ψ`,Omega:`Ω`,_:`_`,"#":`#`,$:`$`,"%":`%`,"&":`&`,And:`&`}),new a.DelimiterMap(`delimiter`,c.default.delimiter,{"(":`(`,")":`)`,"[":`[`,"]":`]`,"<":`⟨`,">":`⟩`,"\\lt":`⟨`,"\\gt":`⟩`,"/":`/`,"|":[`|`,{texClass:u.TEXCLASS.ORD}],".":``,"\\\\":`\\`,"\\lmoustache":`⎰`,"\\rmoustache":`⎱`,"\\lgroup":`⟮`,"\\rgroup":`⟯`,"\\arrowvert":`⏐`,"\\Arrowvert":`‖`,"\\bracevert":`⎪`,"\\Vert":[`‖`,{texClass:u.TEXCLASS.ORD}],"\\|":[`‖`,{texClass:u.TEXCLASS.ORD}],"\\vert":[`|`,{texClass:u.TEXCLASS.ORD}],"\\uparrow":`↑`,"\\downarrow":`↓`,"\\updownarrow":`↕`,"\\Uparrow":`⇑`,"\\Downarrow":`⇓`,"\\Updownarrow":`⇕`,"\\backslash":`\\`,"\\rangle":`⟩`,"\\langle":`⟨`,"\\rbrace":`}`,"\\lbrace":`{`,"\\}":`}`,"\\{":`{`,"\\rceil":`⌉`,"\\lceil":`⌈`,"\\rfloor":`⌋`,"\\lfloor":`⌊`,"\\lbrack":`[`,"\\rbrack":`]`}),new a.CommandMap(`macros`,{displaystyle:[`SetStyle`,`D`,!0,0],textstyle:[`SetStyle`,`T`,!1,0],scriptstyle:[`SetStyle`,`S`,!1,1],scriptscriptstyle:[`SetStyle`,`SS`,!1,2],rm:[`SetFont`,o.TexConstant.Variant.NORMAL],mit:[`SetFont`,o.TexConstant.Variant.ITALIC],oldstyle:[`SetFont`,o.TexConstant.Variant.OLDSTYLE],cal:[`SetFont`,o.TexConstant.Variant.CALLIGRAPHIC],it:[`SetFont`,o.TexConstant.Variant.MATHITALIC],bf:[`SetFont`,o.TexConstant.Variant.BOLD],bbFont:[`SetFont`,o.TexConstant.Variant.DOUBLESTRUCK],scr:[`SetFont`,o.TexConstant.Variant.SCRIPT],frak:[`SetFont`,o.TexConstant.Variant.FRAKTUR],sf:[`SetFont`,o.TexConstant.Variant.SANSSERIF],tt:[`SetFont`,o.TexConstant.Variant.MONOSPACE],mathrm:[`MathFont`,o.TexConstant.Variant.NORMAL],mathup:[`MathFont`,o.TexConstant.Variant.NORMAL],mathnormal:[`MathFont`,``],mathbf:[`MathFont`,o.TexConstant.Variant.BOLD],mathbfup:[`MathFont`,o.TexConstant.Variant.BOLD],mathit:[`MathFont`,o.TexConstant.Variant.MATHITALIC],mathbfit:[`MathFont`,o.TexConstant.Variant.BOLDITALIC],mathbb:[`MathFont`,o.TexConstant.Variant.DOUBLESTRUCK],Bbb:[`MathFont`,o.TexConstant.Variant.DOUBLESTRUCK],mathfrak:[`MathFont`,o.TexConstant.Variant.FRAKTUR],mathbffrak:[`MathFont`,o.TexConstant.Variant.BOLDFRAKTUR],mathscr:[`MathFont`,o.TexConstant.Variant.SCRIPT],mathbfscr:[`MathFont`,o.TexConstant.Variant.BOLDSCRIPT],mathsf:[`MathFont`,o.TexConstant.Variant.SANSSERIF],mathsfup:[`MathFont`,o.TexConstant.Variant.SANSSERIF],mathbfsf:[`MathFont`,o.TexConstant.Variant.BOLDSANSSERIF],mathbfsfup:[`MathFont`,o.TexConstant.Variant.BOLDSANSSERIF],mathsfit:[`MathFont`,o.TexConstant.Variant.SANSSERIFITALIC],mathbfsfit:[`MathFont`,o.TexConstant.Variant.SANSSERIFBOLDITALIC],mathtt:[`MathFont`,o.TexConstant.Variant.MONOSPACE],mathcal:[`MathFont`,o.TexConstant.Variant.CALLIGRAPHIC],mathbfcal:[`MathFont`,o.TexConstant.Variant.BOLDCALLIGRAPHIC],symrm:[`MathFont`,o.TexConstant.Variant.NORMAL],symup:[`MathFont`,o.TexConstant.Variant.NORMAL],symnormal:[`MathFont`,``],symbf:[`MathFont`,o.TexConstant.Variant.BOLD],symbfup:[`MathFont`,o.TexConstant.Variant.BOLD],symit:[`MathFont`,o.TexConstant.Variant.ITALIC],symbfit:[`MathFont`,o.TexConstant.Variant.BOLDITALIC],symbb:[`MathFont`,o.TexConstant.Variant.DOUBLESTRUCK],symfrak:[`MathFont`,o.TexConstant.Variant.FRAKTUR],symbffrak:[`MathFont`,o.TexConstant.Variant.BOLDFRAKTUR],symscr:[`MathFont`,o.TexConstant.Variant.SCRIPT],symbfscr:[`MathFont`,o.TexConstant.Variant.BOLDSCRIPT],symsf:[`MathFont`,o.TexConstant.Variant.SANSSERIF],symsfup:[`MathFont`,o.TexConstant.Variant.SANSSERIF],symbfsf:[`MathFont`,o.TexConstant.Variant.BOLDSANSSERIF],symbfsfup:[`MathFont`,o.TexConstant.Variant.BOLDSANSSERIF],symsfit:[`MathFont`,o.TexConstant.Variant.SANSSERIFITALIC],symbfsfit:[`MathFont`,o.TexConstant.Variant.SANSSERIFBOLDITALIC],symtt:[`MathFont`,o.TexConstant.Variant.MONOSPACE],symcal:[`MathFont`,o.TexConstant.Variant.CALLIGRAPHIC],symbfcal:[`MathFont`,o.TexConstant.Variant.BOLDCALLIGRAPHIC],textrm:[`HBox`,null,o.TexConstant.Variant.NORMAL],textup:[`HBox`,null,o.TexConstant.Variant.NORMAL],textnormal:[`HBox`],textit:[`HBox`,null,o.TexConstant.Variant.ITALIC],textbf:[`HBox`,null,o.TexConstant.Variant.BOLD],textsf:[`HBox`,null,o.TexConstant.Variant.SANSSERIF],texttt:[`HBox`,null,o.TexConstant.Variant.MONOSPACE],tiny:[`SetSize`,.5],Tiny:[`SetSize`,.6],scriptsize:[`SetSize`,.7],small:[`SetSize`,.85],normalsize:[`SetSize`,1],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&thinsp;inf`],limsup:[`NamedOp`,`lim&thinsp;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`,`2015`],underline:[`UnderOver`,`2015`],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`,overunderset:`Overunderset`,stackrel:[`Macro`,`\\mathrel{\\mathop{#2}\\limits^{#1}}`,2],stackbin:[`Macro`,`\\mathbin{\\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:`LeftRight`,llap:`Lap`,rlap:`Lap`,raise:`RaiseLower`,lower:`RaiseLower`,moveleft:`MoveLeftRight`,moveright:`MoveLeftRight`,",":[`Spacer`,d.MATHSPACE.thinmathspace],":":[`Spacer`,d.MATHSPACE.mediummathspace],">":[`Spacer`,d.MATHSPACE.mediummathspace],";":[`Spacer`,d.MATHSPACE.thickmathspace],"!":[`Spacer`,d.MATHSPACE.negativethinmathspace],enspace:[`Spacer`,.5],quad:[`Spacer`,1],qquad:[`Spacer`,2],thinspace:[`Spacer`,d.MATHSPACE.thinmathspace],negthinspace:[`Spacer`,d.MATHSPACE.negativethinmathspace],hskip:`Hskip`,hspace:`Hskip`,kern:`Hskip`,mskip:`Hskip`,mspace:`Hskip`,mkern:`Hskip`,rule:`rule`,Rule:[`Rule`],Space:[`Rule`,`blank`],nonscript:`Nonscript`,big:[`MakeBig`,u.TEXCLASS.ORD,.85],Big:[`MakeBig`,u.TEXCLASS.ORD,1.15],bigg:[`MakeBig`,u.TEXCLASS.ORD,1.45],Bigg:[`MakeBig`,u.TEXCLASS.ORD,1.75],bigl:[`MakeBig`,u.TEXCLASS.OPEN,.85],Bigl:[`MakeBig`,u.TEXCLASS.OPEN,1.15],biggl:[`MakeBig`,u.TEXCLASS.OPEN,1.45],Biggl:[`MakeBig`,u.TEXCLASS.OPEN,1.75],bigr:[`MakeBig`,u.TEXCLASS.CLOSE,.85],Bigr:[`MakeBig`,u.TEXCLASS.CLOSE,1.15],biggr:[`MakeBig`,u.TEXCLASS.CLOSE,1.45],Biggr:[`MakeBig`,u.TEXCLASS.CLOSE,1.75],bigm:[`MakeBig`,u.TEXCLASS.REL,.85],Bigm:[`MakeBig`,u.TEXCLASS.REL,1.15],biggm:[`MakeBig`,u.TEXCLASS.REL,1.45],Biggm:[`MakeBig`,u.TEXCLASS.REL,1.75],mathord:[`TeXAtom`,u.TEXCLASS.ORD],mathop:[`TeXAtom`,u.TEXCLASS.OP],mathopen:[`TeXAtom`,u.TEXCLASS.OPEN],mathclose:[`TeXAtom`,u.TEXCLASS.CLOSE],mathbin:[`TeXAtom`,u.TEXCLASS.BIN],mathrel:[`TeXAtom`,u.TEXCLASS.REL],mathpunct:[`TeXAtom`,u.TEXCLASS.PUNCT],mathinner:[`TeXAtom`,u.TEXCLASS.INNER],vcenter:[`TeXAtom`,u.TEXCLASS.VCENTER],buildrel:`BuildRel`,hbox:[`HBox`,0],text:`HBox`,mbox:[`HBox`,0],fbox:`FBox`,boxed:[`Macro`,`\\fbox{$\\displaystyle{#1}$}`,1],framebox:`FrameBox`,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,!0],eqalign:[`Matrix`,null,null,`right left`,(0,d.em)(d.MATHSPACE.thickmathspace),`.5em`,`D`],displaylines:[`Matrix`,null,null,`center`,null,`.5em`,`D`],cr:`Cr`,"\\":`CrLaTeX`,newline:[`CrLaTeX`,!0],hline:[`HLine`,`solid`],hdashline:[`HLine`,`dashed`],eqalignno:[`Matrix`,null,null,`right left`,(0,d.em)(d.MATHSPACE.thickmathspace),`.5em`,`D`,null,`right`],leqalignno:[`Matrix`,null,null,`right left`,(0,d.em)(d.MATHSPACE.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],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`,"\xA0":`Tilde`,begin:`BeginEnd`,end:`BeginEnd`,label:`HandleLabel`,ref:`HandleRef`,nonumber:`HandleNoTag`,mathchoice:`MathChoice`,mmlToken:`MmlToken`},s.default),new a.EnvironmentMap(`environment`,c.default.environment,{array:[`AlignedArray`],equation:[`Equation`,null,!0],eqnarray:[`EqnArray`,null,!0,!0,`rcl`,l.default.cols(0,d.MATHSPACE.thickmathspace),`.5em`]},s.default),new a.CharacterMap(`not_remap`,null,{"←":`↚`,"→":`↛`,"↔":`↮`,"⇐":`⇍`,"⇒":`⇏`,"⇔":`⇎`,"∈":`∉`,"∋":`∌`,"∣":`∤`,"∥":`∦`,"∼":`≁`,"~":`≁`,"≃":`≄`,"≅":`≇`,"≈":`≉`,"≍":`≭`,"=":`≠`,"≡":`≢`,"<":`≮`,">":`≯`,"≤":`≰`,"≥":`≱`,"≲":`≴`,"≳":`≵`,"≶":`≸`,"≷":`≹`,"≺":`⊀`,"≻":`⊁`,"⊂":`⊄`,"⊃":`⊅`,"⊆":`⊈`,"⊇":`⊉`,"⊢":`⊬`,"⊨":`⊭`,"⊩":`⊮`,"⊫":`⊯`,"≼":`⋠`,"≽":`⋡`,"⊑":`⋢`,"⊒":`⋣`,"⊲":`⋪`,"⊳":`⋫`,"⊴":`⋬`,"⊵":`⋭`,"∃":`∄`})})),qe=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},a=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},o=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s;Object.defineProperty(e,"__esModule",{value:!0}),e.BaseConfiguration=e.BaseTags=e.Other=void 0;var c=H(),l=Ge(),u=o(L()),d=o(I()),f=W(),p=i(G()),m=V();Ke();var h=N();new f.CharacterMap(`remap`,null,{"-":`−`,"*":`∗`,"`":`‘`});function g(e,t){var n=e.stack.env.font?{mathvariant:e.stack.env.font}:{},r=l.MapHandler.getMap(`remap`).lookup(t),i=(0,h.getRange)(t),a=i?i[3]:`mo`,o=e.create(`token`,a,n,r?r.char:t);i[4]&&o.attributes.set(`mathvariant`,i[4]),a===`mo`&&(d.default.setProperty(o,`fixStretchy`,!0),e.configuration.addNode(`fixStretchy`,o)),e.Push(o)}e.Other=g;function _(e,t){throw new u.default(`UndefinedControlSequence`,`Undefined control sequence %1`,`\\`+t)}function v(e,t){throw new u.default(`UnknownEnv`,`Unknown environment '%1'`,t)}function y(e){var t,n,r=e.data;try{for(var i=a(r.getList(`nonscript`)),o=i.next();!o.done;o=i.next()){var s=o.value;if(s.attributes.get(`scriptlevel`)>0){var c=s.parent;if(c.childNodes.splice(c.childIndex(s),1),r.removeFromList(s.kind,[s]),s.isKind(`mrow`)){var l=s.childNodes[0];r.removeFromList(`mstyle`,[l]),r.removeFromList(`mspace`,l.childNodes[0].childNodes)}}else s.isKind(`mrow`)&&(s.parent.replaceChild(s.childNodes[0],s),r.removeFromList(`mrow`,[s]))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}var b=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(m.AbstractTags);e.BaseTags=b,e.BaseConfiguration=c.Configuration.create(`base`,{handler:{character:[`command`,`special`,`letter`,`digit`],delimiter:[`delimiter`],macro:[`delimiter`,`macros`,`mathchar0mi`,`mathchar0mo`,`mathchar7`],environment:[`environment`]},fallback:{character:g,macro:_,environment:v},items:(s={},s[p.StartItem.prototype.kind]=p.StartItem,s[p.StopItem.prototype.kind]=p.StopItem,s[p.OpenItem.prototype.kind]=p.OpenItem,s[p.CloseItem.prototype.kind]=p.CloseItem,s[p.PrimeItem.prototype.kind]=p.PrimeItem,s[p.SubsupItem.prototype.kind]=p.SubsupItem,s[p.OverItem.prototype.kind]=p.OverItem,s[p.LeftItem.prototype.kind]=p.LeftItem,s[p.Middle.prototype.kind]=p.Middle,s[p.RightItem.prototype.kind]=p.RightItem,s[p.BeginItem.prototype.kind]=p.BeginItem,s[p.EndItem.prototype.kind]=p.EndItem,s[p.StyleItem.prototype.kind]=p.StyleItem,s[p.PositionItem.prototype.kind]=p.PositionItem,s[p.CellItem.prototype.kind]=p.CellItem,s[p.MmlItem.prototype.kind]=p.MmlItem,s[p.FnItem.prototype.kind]=p.FnItem,s[p.NotItem.prototype.kind]=p.NotItem,s[p.NonscriptItem.prototype.kind]=p.NonscriptItem,s[p.DotsItem.prototype.kind]=p.DotsItem,s[p.ArrayItem.prototype.kind]=p.ArrayItem,s[p.EqnArrayItem.prototype.kind]=p.EqnArrayItem,s[p.EquationItem.prototype.kind]=p.EquationItem,s),options:{maxMacros:1e3,baseURL:typeof document>`u`||document.getElementsByTagName(`base`).length===0?``:String(document.location).replace(/#.*$/,``)},tags:{base:b},postprocessors:[[y,-4]]})})),Je=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.TeX=void 0;var o=x(),s=i(),c=ze(),l=a(Be()),u=a(I()),d=a(z()),f=a(L()),p=a(We()),m=V(),h=H();qe(),e.TeX=function(e){t(i,e);function i(t){t===void 0&&(t={});var n=this,a=r((0,s.separateOptions)(t,i.OPTIONS,c.FindTeX.OPTIONS),3),o=a[0],u=a[1],d=a[2];n=e.call(this,u)||this,n.findTeX=n.options.FindTeX||new c.FindTeX(d);var f=n.options.packages,h=n.configuration=i.configure(f),g=n._parseOptions=new p.default(h,[n.options,m.TagsFactory.OPTIONS]);return(0,s.userOptions)(g.options,o),h.config(n),i.tags(g,h),n.postFilters.add(l.default.cleanSubSup,-6),n.postFilters.add(l.default.setInherited,-5),n.postFilters.add(l.default.moveLimits,-4),n.postFilters.add(l.default.cleanStretchy,-3),n.postFilters.add(l.default.cleanAttributes,-2),n.postFilters.add(l.default.combineRelations,-1),n}return i.configure=function(e){var t=new h.ParserConfiguration(e,[`tex`]);return t.init(),t},i.tags=function(e,t){m.TagsFactory.addTags(t.tags),m.TagsFactory.setDefault(e.options.tags),e.tags=m.TagsFactory.getDefault(),e.tags.configuration=e},i.prototype.setMmlFactory=function(t){e.prototype.setMmlFactory.call(this,t),this._parseOptions.nodeFactory.setMmlFactory(t)},Object.defineProperty(i.prototype,"parseOptions",{get:function(){return this._parseOptions},enumerable:!1,configurable:!0}),i.prototype.reset=function(e){e===void 0&&(e=0),this.parseOptions.tags.reset(e)},i.prototype.compile=function(e,t){this.parseOptions.clear(),this.executeFilters(this.preFilters,e,t,this.parseOptions);var n=e.display;this.latex=e.math;var r;this.parseOptions.tags.startEquation(e);var i;try{var a=new d.default(this.latex,{display:n,isInner:!1},this.parseOptions);r=a.mml(),i=a.stack.global}catch(e){if(!(e instanceof f.default))throw e;this.parseOptions.error=!0,r=this.options.formatError(this,e)}return r=this.parseOptions.nodeFactory.create(`node`,`math`,[r]),i?.indentalign&&u.default.setAttribute(r,`indentalign`,i.indentalign),n&&u.default.setAttribute(r,`display`,`block`),this.parseOptions.tags.finishEquation(e),this.parseOptions.root=r,this.executeFilters(this.postFilters,e,t,this.parseOptions),this.mathNode=this.parseOptions.root,this.mathNode},i.prototype.findMath=function(e){return this.findTeX.findMath(e)},i.prototype.formatError=function(e){var t=e.message.replace(/\n.*/,``);return this.parseOptions.nodeFactory.create(`error`,t,e.id,this.latex)},i.NAME=`TeX`,i.OPTIONS=n(n({},o.AbstractInputJax.OPTIONS),{FindTeX:null,packages:[`base`],digits:/^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)?|\.[0-9]+)/,maxBuffer:5*1024,formatError:function(e,t){return e.formatError(t)}}),i}(o.AbstractInputJax)})),Ye=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ActionConfiguration=e.ActionMethods=void 0;var n=H(),r=t(z()),i=W(),a=t(J());e.ActionMethods={},e.ActionMethods.Macro=a.default.Macro,e.ActionMethods.Toggle=function(e,t){for(var n=[],i;(i=e.GetArgument(t))!==`\\endtoggle`;)n.push(new r.default(i,e.stack.env,e.configuration).mml());e.Push(e.create(`node`,`maction`,n,{actiontype:`toggle`}))},e.ActionMethods.Mathtip=function(e,t){var n=e.ParseArg(t),r=e.ParseArg(t);e.Push(e.create(`node`,`maction`,[n,r],{actiontype:`tooltip`}))},new i.CommandMap(`action-macros`,{toggle:`Toggle`,mathtip:`Mathtip`,texttip:[`Macro`,`\\mathtip{#1}{\\text{#2}}`,2]},e.ActionMethods),e.ActionConfiguration=n.Configuration.create(`action`,{handler:{macro:[`action-macros`]}})})),Xe=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.FlalignItem=e.MultlineItem=void 0;var i=G(),a=r(R()),o=r(I()),s=r(L()),c=K();e.MultlineItem=function(e){t(n,e);function n(t){var n=[...arguments].slice(1),r=e.call(this,t)||this;return r.factory.configuration.tags.start(`multline`,!0,n[0]),r}return Object.defineProperty(n.prototype,"kind",{get:function(){return`multline`},enumerable:!1,configurable:!0}),n.prototype.EndEntry=function(){this.table.length&&a.default.fixInitialMO(this.factory.configuration,this.nodes);var e=this.getProperty(`shove`),t=this.create(`node`,`mtd`,this.nodes,e?{columnalign:e}:{});this.setProperty(`shove`,null),this.row.push(t),this.Clear()},n.prototype.EndRow=function(){if(this.row.length!==1)throw new s.default(`MultlineRowsOneCol`,`The rows within the %1 environment must have exactly one column`,`multline`);var e=this.create(`node`,`mtr`,this.row);this.table.push(e),this.row=[]},n.prototype.EndTable=function(){if(e.prototype.EndTable.call(this),this.table.length){var t=this.table.length-1,n=-1;o.default.getAttribute(o.default.getChildren(this.table[0])[0],`columnalign`)||o.default.setAttribute(o.default.getChildren(this.table[0])[0],`columnalign`,c.TexConstant.Align.LEFT),o.default.getAttribute(o.default.getChildren(this.table[t])[0],`columnalign`)||o.default.setAttribute(o.default.getChildren(this.table[t])[0],`columnalign`,c.TexConstant.Align.RIGHT);var r=this.factory.configuration.tags.getTag();if(r){n=this.arraydef.side===c.TexConstant.Align.LEFT?0:this.table.length-1;var i=this.table[n],a=this.create(`node`,`mlabeledtr`,[r].concat(o.default.getChildren(i)));o.default.copyAttributes(i,a),this.table[n]=a}}this.factory.configuration.tags.end()},n}(i.ArrayItem),e.FlalignItem=function(e){t(r,e);function r(t,n,r,i,a){var o=e.call(this,t)||this;return o.name=n,o.numbered=r,o.padded=i,o.center=a,o.factory.configuration.tags.start(n,r,r),o}return Object.defineProperty(r.prototype,"kind",{get:function(){return`flalign`},enumerable:!1,configurable:!0}),r.prototype.EndEntry=function(){e.prototype.EndEntry.call(this);var t=this.getProperty(`xalignat`);if(t&&this.row.length>t)throw new s.default(`XalignOverflow`,`Extra %1 in row of %2`,`&`,this.name)},r.prototype.EndRow=function(){for(var t,r=this.row,i=this.getProperty(`xalignat`);r.length<i;)r.push(this.create(`node`,`mtd`));for(this.row=[],this.padded&&this.row.push(this.create(`node`,`mtd`));t=r.shift();)this.row.push(t),t=r.shift(),t&&this.row.push(t),(r.length||this.padded)&&this.row.push(this.create(`node`,`mtd`));this.row.length>this.maxrow&&(this.maxrow=this.row.length),e.prototype.EndRow.call(this);var a=this.table[this.table.length-1];if(this.getProperty(`zeroWidthLabel`)&&a.isKind(`mlabeledtr`)){var s=o.default.getChildren(a)[0],c=this.factory.configuration.options.tagSide,l=n({width:0},c===`right`?{lspace:`-1width`}:{}),u=this.create(`node`,`mpadded`,o.default.getChildren(s),l);s.setChildren([u])}},r.prototype.EndTable=function(){if(e.prototype.EndTable.call(this),this.center&&this.maxrow<=2){var t=this.arraydef;delete t.width,delete this.global.indentalign}},r}(i.EqnArrayItem)})),X=e((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.NEW_OPS=e.AmsMethods=void 0;var i=r(R()),a=r(Y()),o=r(I()),s=K(),c=r(z()),l=r(L()),u=U(),d=r(J()),f=A();e.AmsMethods={},e.AmsMethods.AmsEqnArray=function(e,t,n,r,a,o,s){var c=e.GetBrackets(`\\begin{`+t.getName()+`}`),l=d.default.EqnArray(e,t,n,r,a,o,s);return i.default.setArrayAlign(l,c)},e.AmsMethods.AlignAt=function(t,n,r,a){var o=n.getName(),s,c,u=``,d=[];if(a||(c=t.GetBrackets(`\\begin{`+o+`}`)),s=t.GetArgument(`\\begin{`+o+`}`),s.match(/[^0-9]/))throw new l.default(`PositiveIntegerArg`,`Argument to %1 must me a positive integer`,`\\begin{`+o+`}`);for(var f=parseInt(s,10);f>0;)u+=`rl`,d.push(`0em 0em`),f--;var p=d.join(` `);if(a)return e.AmsMethods.EqnArray(t,n,r,a,u,p);var m=e.AmsMethods.EqnArray(t,n,r,a,u,p);return i.default.setArrayAlign(m,c)},e.AmsMethods.Multline=function(e,t,n){e.Push(t),i.default.checkEqnEnv(e);var r=e.itemFactory.create(`multline`,n,e.stack);return r.arraydef={displaystyle:!0,rowspacing:`.5em`,columnspacing:`100%`,width:e.options.ams.multlineWidth,side:e.options.tagSide,minlabelspacing:e.options.tagIndent,framespacing:e.options.ams.multlineIndent+` 0`,frame:``,"data-width-includes-label":!0},r},e.AmsMethods.XalignAt=function(t,n,r,i){var a=t.GetArgument(`\\begin{`+n.getName()+`}`);if(a.match(/[^0-9]/))throw new l.default(`PositiveIntegerArg`,`Argument to %1 must me a positive integer`,`\\begin{`+n.getName()+`}`);var o=i?`crl`:`rlc`,s=i?`fit auto auto`:`auto auto fit`,c=e.AmsMethods.FlalignArray(t,n,r,i,!1,o,s,!0);return c.setProperty(`xalignat`,2*parseInt(a)),c},e.AmsMethods.FlalignArray=function(e,t,n,r,a,o,s,c){c===void 0&&(c=!1),e.Push(t),i.default.checkEqnEnv(e),o=o.split(``).join(` `).replace(/r/g,`right`).replace(/l/g,`left`).replace(/c/g,`center`);var l=e.itemFactory.create(`flalign`,t.getName(),n,r,a,e.stack);return l.arraydef={width:`100%`,displaystyle:!0,columnalign:o,columnspacing:`0em`,columnwidth:s,rowspacing:`3pt`,side:e.options.tagSide,minlabelspacing:c?`0`:e.options.tagIndent,"data-width-includes-label":!0},l.setProperty(`zeroWidthLabel`,c),l},e.NEW_OPS=`ams-declare-ops`,e.AmsMethods.HandleDeclareOp=function(t,n){var r=t.GetStar()?`*`:``,a=i.default.trimSpaces(t.GetArgument(n));a.charAt(0)===`\\`&&(a=a.substr(1));var o=t.GetArgument(n);t.configuration.handlers.retrieve(e.NEW_OPS).add(a,new u.Macro(a,e.AmsMethods.Macro,[`\\operatorname${r}{${o}}`]))},e.AmsMethods.HandleOperatorName=function(e,n){var r=e.GetStar(),a=i.default.trimSpaces(e.GetArgument(n)),l=new c.default(a,t(t({},e.stack.env),{font:s.TexConstant.Variant.NORMAL,multiLetterIdentifiers:/^[-*a-z]+/i,operatorLetters:!0}),e.configuration).mml();if(l.isKind(`mi`)||(l=e.create(`node`,`TeXAtom`,[l])),o.default.setProperties(l,{movesupsub:r,movablelimits:!0,texClass:f.TEXCLASS.OP}),!r){var u=e.GetNext(),d=e.i;u===`\\`&&++e.i&&e.GetCS()!==`limits`&&(e.i=d)}e.Push(l)},e.AmsMethods.SideSet=function(e,t){var r=n(p(e.ParseArg(t)),2),a=r[0],s=r[1],c=n(p(e.ParseArg(t)),2),l=c[0],u=c[1],d=e.ParseArg(t),m=d;a&&(s?a.replaceChild(e.create(`node`,`mphantom`,[e.create(`node`,`mpadded`,[i.default.copyNode(d,e)],{width:0})]),o.default.getChildAt(a,0)):(m=e.create(`node`,`mmultiscripts`,[d]),l&&o.default.appendChildren(m,[o.default.getChildAt(l,1)||e.create(`node`,`none`),o.default.getChildAt(l,2)||e.create(`node`,`none`)]),o.default.setProperty(m,`scriptalign`,`left`),o.default.appendChildren(m,[e.create(`node`,`mprescripts`),o.default.getChildAt(a,1)||e.create(`node`,`none`),o.default.getChildAt(a,2)||e.create(`node`,`none`)]))),l&&m===d&&(l.replaceChild(d,o.default.getChildAt(l,0)),m=l);var h=e.create(`node`,`TeXAtom`,[],{texClass:f.TEXCLASS.OP,movesupsub:!0,movablelimits:!0});s&&(a&&h.appendChild(a),h.appendChild(s)),h.appendChild(m),u&&h.appendChild(u),e.Push(h)};function p(e){if(!e||e.isInferred&&e.childNodes.length===0)return[null,null];if(e.isKind(`msubsup`)&&m(e))return[e,null];var t=o.default.getChildAt(e,0);return e.isInferred&&t&&m(t)?(e.childNodes.splice(0,1),[t,e]):[null,e]}function m(e){var t=e.childNodes[0];return t&&t.isKind(`mi`)&&t.getText()===``}e.AmsMethods.operatorLetter=function(e,t){return e.stack.env.operatorLetters?a.default.variable(e,t):!1},e.AmsMethods.MultiIntegral=function(e,t,n){var r=e.GetNext();if(r===`\\`){var i=e.i;r=e.GetArgument(t),e.i=i,r===`\\limits`&&(n=t===`\\idotsint`?`\\!\\!\\mathop{\\,\\,`+n+`}`:`\\!\\!\\!\\mathop{\\,\\,\\,`+n+`}`)}e.string=n+` `+e.string.slice(e.i),e.i=0},e.AmsMethods.xArrow=function(e,t,n,r,a){var s={width:`+`+i.default.Em((r+a)/18),lspace:i.default.Em(r/18)},l=e.GetBrackets(t),u=e.ParseArg(t),d=e.create(`node`,`mspace`,[],{depth:`.25em`}),p=e.create(`token`,`mo`,{stretchy:!0,texClass:f.TEXCLASS.REL},String.fromCodePoint(n));p=e.create(`node`,`mstyle`,[p],{scriptlevel:0});var m=e.create(`node`,`munderover`,[p]),h=e.create(`node`,`mpadded`,[u,d],s);if(o.default.setAttribute(h,`voffset`,`-.2em`),o.default.setAttribute(h,`height`,`-.2em`),o.default.setChild(m,m.over,h),l){var g=new c.default(l,e.stack.env,e.configuration).mml(),_=e.create(`node`,`mspace`,[],{height:`.75em`});h=e.create(`node`,`mpadded`,[g,_],s),o.default.setAttribute(h,`voffset`,`.15em`),o.default.setAttribute(h,`depth`,`-.15em`),o.default.setChild(m,m.under,h)}o.default.setProperty(m,`subsupOK`,!0),e.Push(m)},e.AmsMethods.HandleShove=function(e,t,n){var r=e.stack.Top();if(r.kind!==`multline`)throw new l.default(`CommandOnlyAllowedInEnv`,`%1 only allowed in %2 environment`,e.currentCS,`multline`);if(r.Size())throw new l.default(`CommandAtTheBeginingOfLine`,`%1 must come at the beginning of the line`,e.currentCS);r.setProperty(`shove`,n)},e.AmsMethods.CFrac=function(e,t){var n=i.default.trimSpaces(e.GetBrackets(t,``)),r=e.GetArgument(t),a=e.GetArgument(t),u={l:s.TexConstant.Align.LEFT,r:s.TexConstant.Align.RIGHT,"":``},d=new c.default(`\\strut\\textstyle{`+r+`}`,e.stack.env,e.configuration).mml(),f=new c.default(`\\strut\\textstyle{`+a+`}`,e.stack.env,e.configuration).mml(),p=e.create(`node`,`mfrac`,[d,f]);if(n=u[n],n==null)throw new l.default(`IllegalAlign`,`Illegal alignment specified in %1`,e.currentCS);n&&o.default.setProperties(p,{numalign:n,denomalign:n}),e.Push(p)},e.AmsMethods.Genfrac=function(e,t,n,r,a,s){n??=e.GetDelimiterArg(t),r??=e.GetDelimiterArg(t),a??=e.GetArgument(t),s??=i.default.trimSpaces(e.GetArgument(t));var c=e.ParseArg(t),u=e.ParseArg(t),d=e.create(`node`,`mfrac`,[c,u]);if(a!==``&&o.default.setAttribute(d,`linethickness`,a),(n||r)&&(o.default.setProperty(d,`withDelims`,!0),d=i.default.fixedFence(e.configuration,n,d,r)),s!==``){var f=parseInt(s,10),p=[`D`,`T`,`S`,`SS`][f];if(p==null)throw new l.default(`BadMathStyleFor`,`Bad math style for %1`,e.currentCS);d=e.create(`node`,`mstyle`,[d]),p===`D`?o.default.setProperties(d,{displaystyle:!0,scriptlevel:0}):o.default.setProperties(d,{displaystyle:!1,scriptlevel:f-1})}e.Push(d)},e.AmsMethods.HandleTag=function(e,t){if(!e.tags.currentTag.taggable&&e.tags.env)throw new l.default(`CommandNotAllowedInEnv`,`%1 not allowed in %2 environment`,e.currentCS,e.tags.env);if(e.tags.currentTag.tag)throw new l.default(`MultipleCommand`,`Multiple %1`,e.currentCS);var n=e.GetStar(),r=i.default.trimSpaces(e.GetArgument(t));e.tags.tag(r,n)},e.AmsMethods.HandleNoTag=d.default.HandleNoTag,e.AmsMethods.HandleRef=d.default.HandleRef,e.AmsMethods.Macro=d.default.Macro,e.AmsMethods.Accent=d.default.Accent,e.AmsMethods.Tilde=d.default.Tilde,e.AmsMethods.Array=d.default.Array,e.AmsMethods.Spacer=d.default.Spacer,e.AmsMethods.NamedOp=d.default.NamedOp,e.AmsMethods.EqnArray=d.default.EqnArray,e.AmsMethods.Equation=d.default.Equation})),Ze=e((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var a=X(),o=r(W()),s=K(),c=i(Y()),l=i(R()),u=A(),d=q();new o.CharacterMap(`AMSmath-mathchar0mo`,c.default.mathchar0mo,{iiiint:[`⨌`,{texClass:u.TEXCLASS.OP}]}),new o.RegExpMap(`AMSmath-operatorLetter`,a.AmsMethods.operatorLetter,/[-*]/i),new o.CommandMap(`AMSmath-macros`,{mathring:[`Accent`,`02DA`],nobreakspace:`Tilde`,negmedspace:[`Spacer`,d.MATHSPACE.negativemediummathspace],negthickspace:[`Spacer`,d.MATHSPACE.negativethickmathspace],idotsint:[`MultiIntegral`,`\\int\\cdots\\int`],dddot:[`Accent`,`20DB`],ddddot:[`Accent`,`20DC`],sideset:`SideSet`,boxed:[`Macro`,`\\fbox{$\\displaystyle{#1}$}`,1],tag:`HandleTag`,notag:`HandleNoTag`,eqref:[`HandleRef`,!0],substack:[`Macro`,`\\begin{subarray}{c}#1\\end{subarray}`,1],injlim:[`NamedOp`,`inj&thinsp;lim`],projlim:[`NamedOp`,`proj&thinsp;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`,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`,s.TexConstant.Align.LEFT],shoveright:[`HandleShove`,s.TexConstant.Align.RIGHT],xrightarrow:[`xArrow`,8594,5,10],xleftarrow:[`xArrow`,8592,10,5]},a.AmsMethods),new o.EnvironmentMap(`AMSmath-environment`,c.default.environment,{"equation*":[`Equation`,null,!1],"eqnarray*":[`EqnArray`,null,!1,!0,`rcl`,l.default.cols(0,d.MATHSPACE.thickmathspace),`.5em`],align:[`EqnArray`,null,!0,!0,`rl`,l.default.cols(0,2)],"align*":[`EqnArray`,null,!1,!0,`rl`,l.default.cols(0,2)],multline:[`Multline`,null,!0],"multline*":[`Multline`,null,!1],split:[`EqnArray`,null,!1,!1,`rl`,l.default.cols(0)],gather:[`EqnArray`,null,!0,!0,`c`],"gather*":[`EqnArray`,null,!1,!0,`c`],alignat:[`AlignAt`,null,!0,!0],"alignat*":[`AlignAt`,null,!1,!0],alignedat:[`AlignAt`,null,!1,!1],aligned:[`AmsEqnArray`,null,null,null,`rl`,l.default.cols(0,2),`.5em`,`D`],gathered:[`AmsEqnArray`,null,null,null,`c`,null,`.5em`,`D`],xalignat:[`XalignAt`,null,!0,!0],"xalignat*":[`XalignAt`,null,!1,!0],xxalignat:[`XalignAt`,null,!1,!1],flalign:[`FlalignArray`,null,!0,!1,!0,`rlc`,`auto auto fit`],"flalign*":[`FlalignArray`,null,!1,!1,!0,`rlc`,`auto auto fit`],subarray:[`Array`,null,null,null,null,l.default.cols(0),`0.1em`,`S`,1],smallmatrix:[`Array`,null,null,null,`c`,l.default.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`]},a.AmsMethods),new o.DelimiterMap(`AMSmath-delimiter`,c.default.delimiter,{"\\lvert":[`|`,{texClass:u.TEXCLASS.OPEN}],"\\rvert":[`|`,{texClass:u.TEXCLASS.CLOSE}],"\\lVert":[`‖`,{texClass:u.TEXCLASS.OPEN}],"\\rVert":[`‖`,{texClass:u.TEXCLASS.CLOSE}]}),new o.CharacterMap(`AMSsymbols-mathchar0mi`,c.default.mathchar0mi,{digamma:`ϝ`,varkappa:`ϰ`,varGamma:[`Γ`,{mathvariant:s.TexConstant.Variant.ITALIC}],varDelta:[`Δ`,{mathvariant:s.TexConstant.Variant.ITALIC}],varTheta:[`Θ`,{mathvariant:s.TexConstant.Variant.ITALIC}],varLambda:[`Λ`,{mathvariant:s.TexConstant.Variant.ITALIC}],varXi:[`Ξ`,{mathvariant:s.TexConstant.Variant.ITALIC}],varPi:[`Π`,{mathvariant:s.TexConstant.Variant.ITALIC}],varSigma:[`Σ`,{mathvariant:s.TexConstant.Variant.ITALIC}],varUpsilon:[`Υ`,{mathvariant:s.TexConstant.Variant.ITALIC}],varPhi:[`Φ`,{mathvariant:s.TexConstant.Variant.ITALIC}],varPsi:[`Ψ`,{mathvariant:s.TexConstant.Variant.ITALIC}],varOmega:[`Ω`,{mathvariant:s.TexConstant.Variant.ITALIC}],beth:`ℶ`,gimel:`ℷ`,daleth:`ℸ`,backprime:[`‵`,{variantForm:!0}],hslash:`ℏ`,varnothing:[`∅`,{variantForm:!0}],blacktriangle:`▴`,triangledown:[`▽`,{variantForm:!0}],blacktriangledown:`▾`,square:`◻`,Box:`◻`,blacksquare:`◼`,lozenge:`◊`,Diamond:`◊`,blacklozenge:`⧫`,circledS:[`Ⓢ`,{mathvariant:s.TexConstant.Variant.NORMAL}],bigstar:`★`,sphericalangle:`∢`,measuredangle:`∡`,nexists:`∄`,complement:`∁`,mho:`℧`,eth:[`ð`,{mathvariant:s.TexConstant.Variant.NORMAL}],Finv:`Ⅎ`,diagup:`╱`,Game:`⅁`,diagdown:`╲`,Bbbk:[`k`,{mathvariant:s.TexConstant.Variant.DOUBLESTRUCK}],yen:`¥`,circledR:`®`,checkmark:`✓`,maltese:`✠`}),new o.CharacterMap(`AMSsymbols-mathchar0mo`,c.default.mathchar0mo,{dotplus:`∔`,ltimes:`⋉`,smallsetminus:[`∖`,{variantForm:!0}],rtimes:`⋊`,Cap:`⋒`,doublecap:`⋒`,leftthreetimes:`⋋`,Cup:`⋓`,doublecup:`⋓`,rightthreetimes:`⋌`,barwedge:`⊼`,curlywedge:`⋏`,veebar:`⊻`,curlyvee:`⋎`,doublebarwedge:`⩞`,boxminus:`⊟`,circleddash:`⊝`,boxtimes:`⊠`,circledast:`⊛`,boxdot:`⊡`,circledcirc:`⊚`,boxplus:`⊞`,centerdot:[`⋅`,{variantForm:!0}],divideontimes:`⋇`,intercal:`⊺`,leqq:`≦`,geqq:`≧`,leqslant:`⩽`,geqslant:`⩾`,eqslantless:`⪕`,eqslantgtr:`⪖`,lesssim:`≲`,gtrsim:`≳`,lessapprox:`⪅`,gtrapprox:`⪆`,approxeq:`≊`,lessdot:`⋖`,gtrdot:`⋗`,lll:`⋘`,llless:`⋘`,ggg:`⋙`,gggtr:`⋙`,lessgtr:`≶`,gtrless:`≷`,lesseqgtr:`⋚`,gtreqless:`⋛`,lesseqqgtr:`⪋`,gtreqqless:`⪌`,doteqdot:`≑`,Doteq:`≑`,eqcirc:`≖`,risingdotseq:`≓`,circeq:`≗`,fallingdotseq:`≒`,triangleq:`≜`,backsim:`∽`,thicksim:[`∼`,{variantForm:!0}],backsimeq:`⋍`,thickapprox:[`≈`,{variantForm:!0}],subseteqq:`⫅`,supseteqq:`⫆`,Subset:`⋐`,Supset:`⋑`,sqsubset:`⊏`,sqsupset:`⊐`,preccurlyeq:`≼`,succcurlyeq:`≽`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,precsim:`≾`,succsim:`≿`,precapprox:`⪷`,succapprox:`⪸`,vartriangleleft:`⊲`,lhd:`⊲`,vartriangleright:`⊳`,rhd:`⊳`,trianglelefteq:`⊴`,unlhd:`⊴`,trianglerighteq:`⊵`,unrhd:`⊵`,vDash:[`⊨`,{variantForm:!0}],Vdash:`⊩`,Vvdash:`⊪`,smallsmile:[`⌣`,{variantForm:!0}],shortmid:[`∣`,{variantForm:!0}],smallfrown:[`⌢`,{variantForm:!0}],shortparallel:[`∥`,{variantForm:!0}],bumpeq:`≏`,between:`≬`,Bumpeq:`≎`,pitchfork:`⋔`,varpropto:[`∝`,{variantForm:!0}],backepsilon:`∍`,blacktriangleleft:`◂`,blacktriangleright:`▸`,therefore:`∴`,because:`∵`,eqsim:`≂`,vartriangle:[`△`,{variantForm:!0}],Join:`⋈`,nless:`≮`,ngtr:`≯`,nleq:`≰`,ngeq:`≱`,nleqslant:[`⪇`,{variantForm:!0}],ngeqslant:[`⪈`,{variantForm:!0}],nleqq:[`≰`,{variantForm:!0}],ngeqq:[`≱`,{variantForm:!0}],lneq:`⪇`,gneq:`⪈`,lneqq:`≨`,gneqq:`≩`,lvertneqq:[`≨`,{variantForm:!0}],gvertneqq:[`≩`,{variantForm:!0}],lnsim:`⋦`,gnsim:`⋧`,lnapprox:`⪉`,gnapprox:`⪊`,nprec:`⊀`,nsucc:`⊁`,npreceq:[`⋠`,{variantForm:!0}],nsucceq:[`⋡`,{variantForm:!0}],precneqq:`⪵`,succneqq:`⪶`,precnsim:`⋨`,succnsim:`⋩`,precnapprox:`⪹`,succnapprox:`⪺`,nsim:`≁`,ncong:`≇`,nshortmid:[`∤`,{variantForm:!0}],nshortparallel:[`∦`,{variantForm:!0}],nmid:`∤`,nparallel:`∦`,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`,ntriangleleft:`⋪`,ntriangleright:`⋫`,ntrianglelefteq:`⋬`,ntrianglerighteq:`⋭`,nsubseteq:`⊈`,nsupseteq:`⊉`,nsubseteqq:[`⊈`,{variantForm:!0}],nsupseteqq:[`⊉`,{variantForm:!0}],subsetneq:`⊊`,supsetneq:`⊋`,varsubsetneq:[`⊊`,{variantForm:!0}],varsupsetneq:[`⊋`,{variantForm:!0}],subsetneqq:`⫋`,supsetneqq:`⫌`,varsubsetneqq:[`⫋`,{variantForm:!0}],varsupsetneqq:[`⫌`,{variantForm:!0}],leftleftarrows:`⇇`,rightrightarrows:`⇉`,leftrightarrows:`⇆`,rightleftarrows:`⇄`,Lleftarrow:`⇚`,Rrightarrow:`⇛`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,leftarrowtail:`↢`,rightarrowtail:`↣`,looparrowleft:`↫`,looparrowright:`↬`,leftrightharpoons:`⇋`,rightleftharpoons:[`⇌`,{variantForm:!0}],curvearrowleft:`↶`,curvearrowright:`↷`,circlearrowleft:`↺`,circlearrowright:`↻`,Lsh:`↰`,Rsh:`↱`,upuparrows:`⇈`,downdownarrows:`⇊`,upharpoonleft:`↿`,upharpoonright:`↾`,downharpoonleft:`⇃`,restriction:`↾`,multimap:`⊸`,downharpoonright:`⇂`,leftrightsquigarrow:`↭`,rightsquigarrow:`⇝`,leadsto:`⇝`,dashrightarrow:`⇢`,dashleftarrow:`⇠`,nleftarrow:`↚`,nrightarrow:`↛`,nLeftarrow:`⇍`,nRightarrow:`⇏`,nleftrightarrow:`↮`,nLeftrightarrow:`⇎`}),new o.DelimiterMap(`AMSsymbols-delimiter`,c.default.delimiter,{"\\ulcorner":`⌜`,"\\urcorner":`⌝`,"\\llcorner":`⌞`,"\\lrcorner":`⌟`}),new o.CommandMap(`AMSsymbols-macros`,{implies:[`Macro`,`\\;\\Longrightarrow\\;`],impliedby:[`Macro`,`\\;\\Longleftarrow\\;`]},a.AmsMethods)})),Qe=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n;Object.defineProperty(e,"__esModule",{value:!0}),e.AmsConfiguration=e.AmsTags=void 0;var r=H(),i=Xe(),a=V(),o=X();Ze();var s=W(),c=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(a.AbstractTags);e.AmsTags=c;var l=function(e){new s.CommandMap(o.NEW_OPS,{},{}),e.append(r.Configuration.local({handler:{macro:[o.NEW_OPS]},priority:-1}))};e.AmsConfiguration=r.Configuration.create(`ams`,{handler:{character:[`AMSmath-operatorLetter`],delimiter:[`AMSsymbols-delimiter`,`AMSmath-delimiter`],macro:[`AMSsymbols-mathchar0mi`,`AMSsymbols-mathchar0mo`,`AMSsymbols-delimiter`,`AMSsymbols-macros`,`AMSmath-mathchar0mo`,`AMSmath-macros`,`AMSmath-delimiter`],environment:[`AMSmath-environment`]},items:(n={},n[i.MultlineItem.prototype.kind]=i.MultlineItem,n[i.FlalignItem.prototype.kind]=i.FlalignItem,n),tags:{ams:c},init:l,config:function(e,t){t.parseOptions.options.multlineWidth&&(t.parseOptions.options.ams.multlineWidth=t.parseOptions.options.multlineWidth),delete t.parseOptions.options.multlineWidth},options:{multlineWidth:``,ams:{multlineWidth:`100%`,multlineIndent:`1em`}}})})),$e=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(z()),r=qe(),i=A(),a=t(I()),o={};o.CD=function(e,t){e.Push(t);var n=e.itemFactory.create(`array`),r=e.configuration.options.amscd;return n.setProperties({minw:e.stack.env.CD_minw||r.harrowsize,minh:e.stack.env.CD_minh||r.varrowsize}),n.arraydef={columnalign:`center`,columnspacing:r.colspace,rowspacing:r.rowspace,displaystyle:!0},n},o.arrow=function(e,t){var s=e.string.charAt(e.i);if(s.match(/[><VA.|=]/))e.i++;else return(0,r.Other)(e,t);var c=e.stack.Top();(!c.isKind(`array`)||c.Size())&&(o.cell(e,t),c=e.stack.Top());for(var l=c,u=l.table.length%2==1,d=(l.row.length+ +!u)%2;d;)o.cell(e,t),d--;var f,p={minsize:l.getProperty(`minw`),stretchy:!0},m={minsize:l.getProperty(`minh`),stretchy:!0,symmetric:!0,lspace:0,rspace:0};if(s!==`.`)if(s===`|`)f=e.create(`token`,`mo`,m,`∥`);else if(s===`=`)f=e.create(`token`,`mo`,p,`=`);else{var h={">":`→`,"<":`←`,V:`↓`,A:`↑`}[s],g=e.GetUpTo(t+s,s),_=e.GetUpTo(t+s,s);if(s===`>`||s===`<`){if(f=e.create(`token`,`mo`,p,h),g||=`\\kern `+l.getProperty(`minw`),g||_){var v={width:`+.67em`,lspace:`.33em`};if(f=e.create(`node`,`munderover`,[f]),g){var y=new n.default(g,e.stack.env,e.configuration).mml(),b=e.create(`node`,`mpadded`,[y],v);a.default.setAttribute(b,`voffset`,`.1em`),a.default.setChild(f,f.over,b)}if(_){var x=new n.default(_,e.stack.env,e.configuration).mml();a.default.setChild(f,f.under,e.create(`node`,`mpadded`,[x],v))}e.configuration.options.amscd.hideHorizontalLabels&&(f=e.create(`node`,`mpadded`,f,{depth:0,height:`.67em`}))}}else{var S=e.create(`token`,`mo`,m,h);f=S,(g||_)&&(f=e.create(`node`,`mrow`),g&&a.default.appendChildren(f,[new n.default(`\\scriptstyle\\llap{`+g+`}`,e.stack.env,e.configuration).mml()]),S.texClass=i.TEXCLASS.ORD,a.default.appendChildren(f,[S]),_&&a.default.appendChildren(f,[new n.default(`\\scriptstyle\\rlap{`+_+`}`,e.stack.env,e.configuration).mml()]))}}f&&e.Push(f),o.cell(e,t)},o.cell=function(e,t){var n=e.stack.Top();(n.table||[]).length%2==0&&(n.row||[]).length===0&&e.Push(e.create(`node`,`mpadded`,[],{height:`8.5pt`,depth:`2pt`})),e.Push(e.itemFactory.create(`cell`).setProperties({isEntry:!0,name:t}))},o.minCDarrowwidth=function(e,t){e.stack.env.CD_minw=e.GetDimen(t)},o.minCDarrowheight=function(e,t){e.stack.env.CD_minh=e.GetDimen(t)},e.default=o})),et=e((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var a=r(W()),o=i(Y()),s=i($e());new a.EnvironmentMap(`amscd_environment`,o.default.environment,{CD:`CD`},s.default),new a.CommandMap(`amscd_macros`,{minCDarrowwidth:`minCDarrowwidth`,minCDarrowheight:`minCDarrowheight`},s.default),new a.MacroMap(`amscd_special`,{"@":`arrow`},s.default)})),tt=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AmsCdConfiguration=void 0;var t=H();et(),e.AmsCdConfiguration=t.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:!1}}})})),nt=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.BboxConfiguration=e.BboxMethods=void 0;var n=H(),r=W(),i=t(L());e.BboxMethods={},e.BboxMethods.BBox=function(e,t){for(var n=e.GetBrackets(t,``),r=e.ParseArg(t),s=n.split(/,/),c,l,u,d=0,f=s.length;d<f;d++){var p=s[d].trim(),m=p.match(/^(\.\d+|\d+(\.\d*)?)(pt|em|ex|mu|px|in|cm|mm)$/);if(m){if(c)throw new i.default(`MultipleBBoxProperty`,`%1 specified twice in %2`,`Padding`,t);var h=o(m[1]+m[3]);h&&(c={height:`+`+h,depth:`+`+h,lspace:h,width:`+`+2*parseInt(m[1],10)+m[3]})}else if(p.match(/^([a-z0-9]+|\#[0-9a-f]{6}|\#[0-9a-f]{3})$/i)){if(l)throw new i.default(`MultipleBBoxProperty`,`%1 specified twice in %2`,`Background`,t);l=p}else if(p.match(/^[-a-z]+:/i)){if(u)throw new i.default(`MultipleBBoxProperty`,`%1 specified twice in %2`,`Style`,t);u=a(p)}else if(p!==``)throw new i.default(`InvalidBBoxProperty`,`"%1" doesn't look like a color, a padding dimension, or a style`,p)}c&&(r=e.create(`node`,`mpadded`,[r],c)),(l||u)&&(c={},l&&Object.assign(c,{mathbackground:l}),u&&Object.assign(c,{style:u}),r=e.create(`node`,`mstyle`,[r],c)),e.Push(r)};var a=function(e){return e},o=function(e){return e};new r.CommandMap(`bbox`,{bbox:`BBox`},e.BboxMethods),e.BboxConfiguration=n.Configuration.create(`bbox`,{handler:{macro:[`bbox`]}})})),rt=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.BoldsymbolConfiguration=e.rewriteBoldTokens=e.createBoldToken=e.BoldsymbolMethods=void 0;var r=H(),i=n(I()),a=K(),o=W(),s=Ue(),c={};c[a.TexConstant.Variant.NORMAL]=a.TexConstant.Variant.BOLD,c[a.TexConstant.Variant.ITALIC]=a.TexConstant.Variant.BOLDITALIC,c[a.TexConstant.Variant.FRAKTUR]=a.TexConstant.Variant.BOLDFRAKTUR,c[a.TexConstant.Variant.SCRIPT]=a.TexConstant.Variant.BOLDSCRIPT,c[a.TexConstant.Variant.SANSSERIF]=a.TexConstant.Variant.BOLDSANSSERIF,c[`-tex-calligraphic`]=`-tex-bold-calligraphic`,c[`-tex-oldstyle`]=`-tex-bold-oldstyle`,c[`-tex-mathit`]=a.TexConstant.Variant.BOLDITALIC,e.BoldsymbolMethods={},e.BoldsymbolMethods.Boldsymbol=function(e,t){var n=e.stack.env.boldsymbol;e.stack.env.boldsymbol=!0;var r=e.ParseArg(t);e.stack.env.boldsymbol=n,e.Push(r)},new o.CommandMap(`boldsymbol`,{boldsymbol:`Boldsymbol`},e.BoldsymbolMethods);function l(e,t,n,r){var a=s.NodeFactory.createToken(e,t,n,r);return t!==`mtext`&&e.configuration.parser.stack.env.boldsymbol&&(i.default.setProperty(a,`fixBold`,!0),e.configuration.addNode(`fixBold`,a)),a}e.createBoldToken=l;function u(e){var n,r;try{for(var o=t(e.data.getList(`fixBold`)),s=o.next();!s.done;s=o.next()){var l=s.value;if(i.default.getProperty(l,`fixBold`)){var u=i.default.getAttribute(l,`mathvariant`);u==null?i.default.setAttribute(l,`mathvariant`,a.TexConstant.Variant.BOLD):i.default.setAttribute(l,`mathvariant`,c[u]||u),i.default.removeProperties(l,`fixBold`)}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}e.rewriteBoldTokens=u,e.BoldsymbolConfiguration=r.Configuration.create(`boldsymbol`,{handler:{macro:[`boldsymbol`]},nodes:{token:l},postprocessors:[u]})})),it=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.BraketItem=void 0;var r=B(),i=A(),a=n(R());e.BraketItem=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`braket`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(t){return t.isKind(`close`)?[[this.factory.create(`mml`,this.toMml())],!0]:t.isKind(`mml`)?(this.Push(t.toMml()),this.getProperty(`single`)?[[this.toMml()],!0]:r.BaseItem.fail):e.prototype.checkItem.call(this,t)},n.prototype.toMml=function(){var t=e.prototype.toMml.call(this),n=this.getProperty(`open`),r=this.getProperty(`close`);if(this.getProperty(`stretchy`))return a.default.fenced(this.factory.configuration,n,t,r);var o={fence:!0,stretchy:!1,symmetric:!0,texClass:i.TEXCLASS.OPEN},s=this.create(`token`,`mo`,o,n);o.texClass=i.TEXCLASS.CLOSE;var c=this.create(`token`,`mo`,o,r);return this.create(`node`,`mrow`,[s,t,c],{open:n,close:r,texClass:i.TEXCLASS.INNER})},n}(r.BaseItem)})),at=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(J()),r=A(),i=t(L()),a={};a.Macro=n.default.Macro,a.Braket=function(e,t,n,r,a,o){var s=e.GetNext();if(s===``)throw new i.default(`MissingArgFor`,`Missing argument for %1`,e.currentCS);var c=!0;s===`{`&&(e.i++,c=!1),e.Push(e.itemFactory.create(`braket`).setProperties({barmax:o,barcount:0,open:n,close:r,stretchy:a,single:c}))},a.Bar=function(e,t){var n=t===`|`?`|`:`∥`,i=e.stack.Top();if(i.kind!==`braket`||i.getProperty(`barcount`)>=i.getProperty(`barmax`)){var a=e.create(`token`,`mo`,{texClass:r.TEXCLASS.ORD,stretchy:!1},n);e.Push(a);return}if(n===`|`&&e.GetNext()===`|`&&(e.i++,n=`∥`),!i.getProperty(`stretchy`)){var o=e.create(`token`,`mo`,{stretchy:!1,braketbar:!0},n);e.Push(o);return}var s=e.create(`node`,`TeXAtom`,[],{texClass:r.TEXCLASS.CLOSE});e.Push(s),i.setProperty(`barcount`,i.getProperty(`barcount`)+1),s=e.create(`token`,`mo`,{stretchy:!0,braketbar:!0},n),e.Push(s),s=e.create(`node`,`TeXAtom`,[],{texClass:r.TEXCLASS.OPEN}),e.Push(s)},e.default=a})),ot=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=W(),r=t(at());new n.CommandMap(`Braket-macros`,{bra:[`Macro`,`{\\langle {#1} \\vert}`,1],ket:[`Macro`,`{\\vert {#1} \\rangle}`,1],braket:[`Braket`,`⟨`,`⟩`,!1,1/0],set:[`Braket`,`{`,`}`,!1,1],Bra:[`Macro`,`{\\left\\langle {#1} \\right\\vert}`,1],Ket:[`Macro`,`{\\left\\vert {#1} \\right\\rangle}`,1],Braket:[`Braket`,`⟨`,`⟩`,!0,1/0],Set:[`Braket`,`{`,`}`,!0,1],ketbra:[`Macro`,`{\\vert {#1} \\rangle\\langle {#2} \\vert}`,2],Ketbra:[`Macro`,`{\\left\\vert {#1} \\right\\rangle\\left\\langle {#2} \\right\\vert}`,2],"|":`Bar`},r.default),new n.MacroMap(`Braket-characters`,{"|":`Bar`},r.default)})),st=e((e=>{var t;Object.defineProperty(e,"__esModule",{value:!0}),e.BraketConfiguration=void 0;var n=H(),r=it();ot(),e.BraketConfiguration=n.Configuration.create(`braket`,{handler:{character:[`Braket-characters`],macro:[`Braket-macros`]},items:(t={},t[r.BraketItem.prototype.kind]=r.BraketItem,t)})})),ct=e((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i;Object.defineProperty(e,"__esModule",{value:!0}),e.clearDocument=e.saveDocument=e.makeBsprAttributes=e.removeProperty=e.getProperty=e.setProperty=e.balanceRules=void 0;var a=r(I()),o=r(R()),s=null,c=null,l=function(e){return c.root=e,s.outputJax.getBBox(c,s).w},u=function(e){for(var t=0;e&&!a.default.isType(e,`mtable`);){if(a.default.isType(e,`text`))return null;if(a.default.isType(e,`mrow`)){e=e.childNodes[0],t=0;continue}e=e.parent.childNodes[t],t++}return e},d=function(e,t){return e.childNodes[+(t===`up`)].childNodes[0].childNodes[0].childNodes[0].childNodes[0]},f=function(e,t){return e.childNodes[t].childNodes[0].childNodes[0]},p=function(e){return f(e,0)},m=function(e){return f(e,e.childNodes.length-1)},h=function(e,t){return e.childNodes[t===`up`?0:1].childNodes[0].childNodes[0].childNodes[0]},g=function(e){for(;e&&!a.default.isType(e,`mtd`);)e=e.parent;return e},_=function(e){return e.parent.childNodes[e.parent.childNodes.indexOf(e)+1]},v=function(t){for(;t&&(0,e.getProperty)(t,`inference`)==null;)t=t.parent;return t},y=function(e,t,n){n===void 0&&(n=!1);var r=0;if(e===t)return r;if(e!==t.parent){var i=e.childNodes,o=n?i.length-1:0;a.default.isType(i[o],`mspace`)&&(r+=l(i[o])),e=t.parent}if(e===t)return r;var s=e.childNodes,c=n?s.length-1:0;return s[c]!==t&&(r+=l(s[c])),r},b=function(t,n){n===void 0&&(n=!1);var r=u(t),i=h(r,(0,e.getProperty)(r,`inferenceRule`));return y(t,r,n)+(l(r)-l(i))/2},x=function(t,n,r,i){if(i===void 0&&(i=!1),(0,e.getProperty)(n,`inferenceRule`)||(0,e.getProperty)(n,`labelledRule`)){var s=t.nodeFactory.create(`node`,`mrow`);n.parent.replaceChild(s,n),s.setChildren([n]),S(n,s),n=s}var c=i?n.childNodes.length-1:0,l=n.childNodes[c];if(a.default.isType(l,`mspace`)){a.default.setAttribute(l,`width`,o.default.Em(o.default.dimen2em(a.default.getAttribute(l,`width`))+r));return}if(l=t.nodeFactory.create(`node`,`mspace`,[],{width:o.default.Em(r)}),i){n.appendChild(l);return}l.parent=n,n.childNodes.unshift(l)},S=function(t,n){[`inference`,`proof`,`maxAdjust`,`labelledRule`].forEach(function(r){var i=(0,e.getProperty)(t,r);i!=null&&((0,e.setProperty)(n,r,i),(0,e.removeProperty)(t,r))})},C=function(t){var n=t.nodeLists.sequent;if(n)for(var r=n.length-1,i=void 0;i=n[r];r--){if((0,e.getProperty)(i,`sequentProcessed`)){(0,e.removeProperty)(i,`sequentProcessed`);continue}var a=[],o=v(i);if((0,e.getProperty)(o,`inference`)===1){for(a.push(i);(0,e.getProperty)(o,`inference`)===1;){o=u(o);var s=p(d(o,(0,e.getProperty)(o,`inferenceRule`))),c=(0,e.getProperty)(s,`inferenceRule`)?h(s,(0,e.getProperty)(s,`inferenceRule`)):s;(0,e.getProperty)(c,`sequent`)&&(i=c.childNodes[0],a.push(i),(0,e.setProperty)(i,`sequentProcessed`,!0)),o=s}T(t,a)}}},w=function(t,n,r,i,a){var s=t.nodeFactory.create(`node`,`mspace`,[],{width:o.default.Em(a)});if(i===`left`){var c=n.childNodes[r].childNodes[0];s.parent=c,c.childNodes.unshift(s)}else n.childNodes[r].appendChild(s);(0,e.setProperty)(n.parent,`sequentAdjust_`+i,a)},T=function(n,r){for(var i=r.pop();r.length;){var a=r.pop(),o=t(E(i,a),2),s=o[0],c=o[1];(0,e.getProperty)(i.parent,`axiom`)&&(w(n,s<0?i:a,0,`left`,Math.abs(s)),w(n,c<0?i:a,2,`right`,Math.abs(c))),i=a}},E=function(e,t){var n=l(e.childNodes[2]),r=l(t.childNodes[2]);return[l(e.childNodes[0])-l(t.childNodes[0]),n-r]};e.balanceRules=function(t){var r,i;c=new t.document.options.MathItem(``,null,t.math.display);var a=t.data;C(a);var o=a.nodeLists.inference||[];try{for(var s=n(o),l=s.next();!l.done;l=s.next()){var f=l.value,h=(0,e.getProperty)(f,`proof`),S=u(f),w=d(S,(0,e.getProperty)(S,`inferenceRule`)),T=p(w);if((0,e.getProperty)(T,`inference`)){var E=b(T);E&&(x(a,T,-E),x(a,f,E-y(f,S,!1)))}var D=m(w);if((0,e.getProperty)(D,`inference`)!=null){var O=b(D,!0);x(a,D,-O,!0);var k=y(f,S,!0),A=(0,e.getProperty)(f,`maxAdjust`);A!=null&&(O=Math.max(O,A));var j=void 0;if(h||!(j=g(f))){x(a,(0,e.getProperty)(f,`proof`)?f:f.parent,O-k,!0);continue}var M=_(j);if(M){var ee=a.nodeFactory.create(`node`,`mspace`,[],{width:O-k+`em`});M.appendChild(ee),f.removeProperty(`maxAdjust`);continue}var N=v(j);N&&(O=(0,e.getProperty)(N,`maxAdjust`)?Math.max((0,e.getProperty)(N,`maxAdjust`),O):O,(0,e.setProperty)(N,`maxAdjust`,O))}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}};var D=`bspr_`,O=(i={},i[D+`maxAdjust`]=!0,i);e.setProperty=function(e,t,n){a.default.setProperty(e,D+t,n)},e.getProperty=function(e,t){return a.default.getProperty(e,D+t)},e.removeProperty=function(e,t){e.removeProperty(D+t)},e.makeBsprAttributes=function(e){e.data.root.walkTree(function(e,t){var n=[];e.getPropertyNames().forEach(function(t){!O[t]&&t.match(RegExp(`^`+D))&&n.push(t+`:`+e.getProperty(t))}),n.length&&a.default.setAttribute(e,`semantics`,n.join(`;`))})},e.saveDocument=function(e){if(s=e.document,!(`getBBox`in s.outputJax))throw Error(`The bussproofs extension requires an output jax with a getBBox() method`)},e.clearDocument=function(e){s=null}})),lt=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProofTreeItem=void 0;var o=a(L()),s=B(),c=a(Ve()),l=i(ct());e.ProofTreeItem=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.leftLabel=null,t.rigthLabel=null,t.innerStack=new c.default(t.factory,{},!0),t}return Object.defineProperty(n.prototype,"kind",{get:function(){return`proofTree`},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(e){if(e.isKind(`end`)&&e.getName()===`prooftree`){var t=this.toMml();return l.setProperty(t,`proof`,!0),[[this.factory.create(`mml`,t),e],!0]}if(e.isKind(`stop`))throw new o.default(`EnvMissingEnd`,`Missing \\end{%1}`,this.getName());return this.innerStack.Push(e),s.BaseItem.fail},n.prototype.toMml=function(){var t=e.prototype.toMml.call(this),n=this.innerStack.Top();if(n.isKind(`start`)&&!n.Size())return t;this.innerStack.Push(this.factory.create(`stop`));var r=this.innerStack.Top().toMml();return this.create(`node`,`mrow`,[r,t],{})},n}(s.BaseItem)})),ut=e((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},o=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var s=o(L()),c=o(z()),l=o(R()),u=r(ct()),d={};d.Prooftree=function(e,t){return e.Push(t),e.itemFactory.create(`proofTree`).setProperties({name:t.getName(),line:`solid`,currentLine:`solid`,rootAtTop:!1})},d.Axiom=function(e,t){var n=e.stack.Top();if(n.kind!==`proofTree`)throw new s.default(`IllegalProofCommand`,`Proof commands only allowed in prooftree environment.`);var r=f(e,e.GetArgument(t));u.setProperty(r,`axiom`,!0),n.Push(r)};var f=function(e,t){var n=l.default.internalMath(e,l.default.trimSpaces(t),0);if(!n[0].childNodes[0].childNodes.length)return e.create(`node`,`mrow`,[]);var r=e.create(`node`,`mspace`,[],{width:`.5ex`}),o=e.create(`node`,`mspace`,[],{width:`.5ex`});return e.create(`node`,`mrow`,a(a([r],i(n),!1),[o],!1))};d.Inference=function(e,t,n){var r=e.stack.Top();if(r.kind!==`proofTree`)throw new s.default(`IllegalProofCommand`,`Proof commands only allowed in prooftree environment.`);if(r.Size()<n)throw new s.default(`BadProofTree`,`Proof tree badly specified.`);var i=r.getProperty(`rootAtTop`),a=n===1&&!r.Peek()[0].childNodes.length?0:n,o=[];do o.length&&o.unshift(e.create(`node`,`mtd`,[],{})),o.unshift(e.create(`node`,`mtd`,[r.Pop()],{rowalign:i?`top`:`bottom`})),n--;while(n>0);var c=e.create(`node`,`mtr`,o,{}),l=e.create(`node`,`mtable`,[c],{framespacing:`0 0`}),d=f(e,e.GetArgument(t)),m=r.getProperty(`currentLine`);m!==r.getProperty(`line`)&&r.setProperty(`currentLine`,r.getProperty(`line`));var h=p(e,l,[d],r.getProperty(`left`),r.getProperty(`right`),m,i);r.setProperty(`left`,null),r.setProperty(`right`,null),u.setProperty(h,`inference`,a),e.configuration.addNode(`inference`,h),r.Push(h)};function p(e,t,n,r,i,a,o){var s=e.create(`node`,`mtr`,[e.create(`node`,`mtd`,[t],{})],{}),c=e.create(`node`,`mtr`,[e.create(`node`,`mtd`,n,{})],{}),l=e.create(`node`,`mtable`,o?[c,s]:[s,c],{align:`top 2`,rowlines:a,framespacing:`0 0`});u.setProperty(l,`inferenceRule`,o?`up`:`down`);var d,f;r&&(d=e.create(`node`,`mpadded`,[r],{height:`+.5em`,width:`+.5em`,voffset:`-.15em`}),u.setProperty(d,`prooflabel`,`left`)),i&&(f=e.create(`node`,`mpadded`,[i],{height:`+.5em`,width:`+.5em`,voffset:`-.15em`}),u.setProperty(f,`prooflabel`,`right`));var p,m;if(r&&i)p=[d,l,f],m=`both`;else if(r)p=[d,l],m=`left`;else if(i)p=[l,f],m=`right`;else return l;return l=e.create(`node`,`mrow`,p),u.setProperty(l,`labelledRule`,m),l}d.Label=function(e,t,n){var r=e.stack.Top();if(r.kind!==`proofTree`)throw new s.default(`IllegalProofCommand`,`Proof commands only allowed in prooftree environment.`);var i=l.default.internalMath(e,e.GetArgument(t),0),a=i.length>1?e.create(`node`,`mrow`,i,{}):i[0];r.setProperty(n,a)},d.SetLine=function(e,t,n,r){var i=e.stack.Top();if(i.kind!==`proofTree`)throw new s.default(`IllegalProofCommand`,`Proof commands only allowed in prooftree environment.`);i.setProperty(`currentLine`,n),r&&i.setProperty(`line`,n)},d.RootAtTop=function(e,t,n){var r=e.stack.Top();if(r.kind!==`proofTree`)throw new s.default(`IllegalProofCommand`,`Proof commands only allowed in prooftree environment.`);r.setProperty(`rootAtTop`,n)},d.AxiomF=function(e,t){var n=e.stack.Top();if(n.kind!==`proofTree`)throw new s.default(`IllegalProofCommand`,`Proof commands only allowed in prooftree environment.`);var r=m(e,t);u.setProperty(r,`axiom`,!0),n.Push(r)};function m(e,t){if(e.GetNext()!==`$`)throw new s.default(`IllegalUseOfCommand`,`Use of %1 does not match it's definition.`,t);e.i++;var n=e.GetUpTo(t,`$`);if(n.indexOf(`\\fCenter`)===-1)throw new s.default(`IllegalUseOfCommand`,`Missing \\fCenter in %1.`,t);var r=i(n.split(`\\fCenter`),2),a=r[0],o=r[1],l=new c.default(a,e.stack.env,e.configuration).mml(),d=new c.default(o,e.stack.env,e.configuration).mml(),f=new c.default(`\\fCenter`,e.stack.env,e.configuration).mml(),p=e.create(`node`,`mtd`,[l],{}),m=e.create(`node`,`mtd`,[f],{}),h=e.create(`node`,`mtd`,[d],{}),g=e.create(`node`,`mtr`,[p,m,h],{}),_=e.create(`node`,`mtable`,[g],{columnspacing:`.5ex`,columnalign:`center 2`});return u.setProperty(_,`sequent`,!0),e.configuration.addNode(`sequent`,g),_}d.FCenter=function(e,t){},d.InferenceF=function(e,t,n){var r=e.stack.Top();if(r.kind!==`proofTree`)throw new s.default(`IllegalProofCommand`,`Proof commands only allowed in prooftree environment.`);if(r.Size()<n)throw new s.default(`BadProofTree`,`Proof tree badly specified.`);var i=r.getProperty(`rootAtTop`),a=n===1&&!r.Peek()[0].childNodes.length?0:n,o=[];do o.length&&o.unshift(e.create(`node`,`mtd`,[],{})),o.unshift(e.create(`node`,`mtd`,[r.Pop()],{rowalign:i?`top`:`bottom`})),n--;while(n>0);var c=e.create(`node`,`mtr`,o,{}),l=e.create(`node`,`mtable`,[c],{framespacing:`0 0`}),d=m(e,t),f=r.getProperty(`currentLine`);f!==r.getProperty(`line`)&&r.setProperty(`currentLine`,r.getProperty(`line`));var h=p(e,l,[d],r.getProperty(`left`),r.getProperty(`right`),f,i);r.setProperty(`left`,null),r.setProperty(`right`,null),u.setProperty(h,`inference`,a),e.configuration.addNode(`inference`,h),r.Push(h)},e.default=d})),dt=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(ut()),r=t(Y()),i=W();new i.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`,!1],singleLine:[`SetLine`,`solid`,!1],solidLine:[`SetLine`,`solid`,!1],dashedLine:[`SetLine`,`dashed`,!1],alwaysNoLine:[`SetLine`,`none`,!0],alwaysSingleLine:[`SetLine`,`solid`,!0],alwaysSolidLine:[`SetLine`,`solid`,!0],alwaysDashedLine:[`SetLine`,`dashed`,!0],rootAtTop:[`RootAtTop`,!0],alwaysRootAtTop:[`RootAtTop`,!0],rootAtBottom:[`RootAtTop`,!1],alwaysRootAtBottom:[`RootAtTop`,!1],fCenter:`FCenter`,Axiom:`AxiomF`,UnaryInf:[`InferenceF`,1],BinaryInf:[`InferenceF`,2],TrinaryInf:[`InferenceF`,3],QuaternaryInf:[`InferenceF`,4],QuinaryInf:[`InferenceF`,5]},n.default),new i.EnvironmentMap(`Bussproofs-environments`,r.default.environment,{prooftree:[`Prooftree`,null,!1]},n.default)})),ft=e((e=>{var t;Object.defineProperty(e,"__esModule",{value:!0}),e.BussproofsConfiguration=void 0;var n=H(),r=lt(),i=ct();dt(),e.BussproofsConfiguration=n.Configuration.create(`bussproofs`,{handler:{macro:[`Bussproofs-macros`],environment:[`Bussproofs-environments`]},items:(t={},t[r.ProofTreeItem.prototype.kind]=r.ProofTreeItem,t),preprocessors:[[i.saveDocument,1]],postprocessors:[[i.clearDocument,3],[i.makeBsprAttributes,2],[i.balanceRules,1]]})})),pt=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.EncloseConfiguration=e.EncloseMethods=e.ENCLOSE_OPTIONS=void 0;var n=H(),r=W(),i=t(R());e.ENCLOSE_OPTIONS={"data-arrowhead":1,color:1,mathcolor:1,background:1,mathbackground:1,"data-padding":1,"data-thickness":1},e.EncloseMethods={},e.EncloseMethods.Enclose=function(t,n){var r=t.GetArgument(n).replace(/,/g,` `),a=t.GetBrackets(n,``),o=t.ParseArg(n),s=i.default.keyvalOptions(a,e.ENCLOSE_OPTIONS);s.notation=r,t.Push(t.create(`node`,`menclose`,[o],s))},new r.CommandMap(`enclose`,{enclose:`Enclose`},e.EncloseMethods),e.EncloseConfiguration=n.Configuration.create(`enclose`,{handler:{macro:[`enclose`]}})})),mt=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.CancelConfiguration=e.CancelMethods=void 0;var n=H(),r=K(),i=W(),a=t(R()),o=pt();e.CancelMethods={},e.CancelMethods.Cancel=function(e,t,n){var r=e.GetBrackets(t,``),i=e.ParseArg(t),s=a.default.keyvalOptions(r,o.ENCLOSE_OPTIONS);s.notation=n,e.Push(e.create(`node`,`menclose`,[i],s))},e.CancelMethods.CancelTo=function(e,t){var n=e.GetBrackets(t,``),i=e.ParseArg(t),s=e.ParseArg(t),c=a.default.keyvalOptions(n,o.ENCLOSE_OPTIONS);c.notation=[r.TexConstant.Notation.UPDIAGONALSTRIKE,r.TexConstant.Notation.UPDIAGONALARROW,r.TexConstant.Notation.NORTHEASTARROW].join(` `),i=e.create(`node`,`mpadded`,[i],{depth:`-.1em`,height:`+.1em`,voffset:`.1em`}),e.Push(e.create(`node`,`msup`,[e.create(`node`,`menclose`,[s],c),i]))},new i.CommandMap(`cancel`,{cancel:[`Cancel`,r.TexConstant.Notation.UPDIAGONALSTRIKE],bcancel:[`Cancel`,r.TexConstant.Notation.DOWNDIAGONALSTRIKE],xcancel:[`Cancel`,r.TexConstant.Notation.UPDIAGONALSTRIKE+` `+r.TexConstant.Notation.DOWNDIAGONALSTRIKE],cancelto:`CancelTo`},e.CancelMethods),e.CancelConfiguration=n.Configuration.create(`cancel`,{handler:{macro:[`cancel`]}})})),ht=e((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},r=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.EmpheqUtil=void 0;var a=i(R()),o=i(z());e.EmpheqUtil={environment:function(e,r,i,a){var o=a[0],s=e.itemFactory.create(o+`-begin`).setProperties({name:r,end:o});e.Push(i.apply(void 0,n([e,s],t(a.slice(1)),!1)))},splitOptions:function(e,t){return t===void 0&&(t=null),a.default.keyvalOptions(e,t,!0)},columnCount:function(e){var t,n,i=0;try{for(var a=r(e.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value,c=s.childNodes.length-+!!s.isKind(`mlabeledtr`);c>i&&(i=c)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},cellBlock:function(e,t,n,i){var a,s,c=n.create(`node`,`mpadded`,[],{height:0,depth:0,voffset:`-1height`}),l=new o.default(e,n.stack.env,n.configuration),u=l.mml();i&&l.configuration.tags.label&&(l.configuration.tags.currentTag.env=i,l.configuration.tags.getTag(!0));try{for(var d=r(u.isInferred?u.childNodes:[u]),f=d.next();!f.done;f=d.next()){var p=f.value;c.appendChild(p)}}catch(e){a={error:e}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}return c.appendChild(n.create(`node`,`mphantom`,[n.create(`node`,`mpadded`,[t],{width:0})])),c},topRowTable:function(e,t){var n=a.default.copyNode(e,t);return n.setChildren(n.childNodes.slice(0,1)),n.attributes.set(`align`,`baseline 1`),e.factory.create(`mphantom`,{},[t.create(`node`,`mpadded`,[n],{width:0})])},rowspanCell:function(e,t,n,r,i){e.appendChild(r.create(`node`,`mpadded`,[this.cellBlock(t,a.default.copyNode(n,r),r,i),this.topRowTable(n,r)],{height:0,depth:0,voffset:`height`}))},left:function(e,t,n,i,a){var o,s;a===void 0&&(a=``),e.attributes.set(`columnalign`,`right `+(e.attributes.get(`columnalign`)||``)),e.attributes.set(`columnspacing`,`0em `+(e.attributes.get(`columnspacing`)||``));var c;try{for(var l=r(e.childNodes.slice(0).reverse()),u=l.next();!u.done;u=l.next()){var d=u.value;c=i.create(`node`,`mtd`),d.childNodes.unshift(c),c.parent=d,d.isKind(`mlabeledtr`)&&(d.childNodes[0]=d.childNodes[1],d.childNodes[1]=c)}}catch(e){o={error:e}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}this.rowspanCell(c,n,t,i,a)},right:function(t,n,r,i,a){a===void 0&&(a=``),t.childNodes.length===0&&t.appendChild(i.create(`node`,`mtr`));for(var o=e.EmpheqUtil.columnCount(t),s=t.childNodes[0];s.childNodes.length<o;)s.appendChild(i.create(`node`,`mtd`));var c=s.appendChild(i.create(`node`,`mtd`));e.EmpheqUtil.rowspanCell(c,r,n,i,a),t.attributes.set(`columnalign`,(t.attributes.get(`columnalign`)||``).split(/ /).slice(0,o).join(` `)+` left`),t.attributes.set(`columnspacing`,(t.attributes.get(`columnspacing`)||``).split(/ /).slice(0,o-1).join(` `)+` 0em`)},adjustTable:function(e,t){var n=e.getProperty(`left`),r=e.getProperty(`right`);if(n||r){var i=e.Last,o=a.default.copyNode(i,t);n&&this.left(i,o,n,t),r&&this.right(i,o,r,t)}},allowEnv:{equation:!0,align:!0,gather:!0,flalign:!0,alignat:!0,multline:!0},checkEnv:function(e){return this.allowEnv.hasOwnProperty(e.replace(/\*$/,``))||!1}}})),gt=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},r;Object.defineProperty(e,"__esModule",{value:!0}),e.CasesConfiguration=e.CasesMethods=e.CasesTags=e.CasesBeginItem=void 0;var i=H(),a=W(),o=n(R()),s=n(J()),c=n(L()),l=G(),u=Qe(),d=ht(),f=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`cases-begin`},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(t){return t.isKind(`end`)&&t.getName()===this.getName()&&this.getProperty(`end`)?(this.setProperty(`end`,!1),[[],!0]):e.prototype.checkItem.call(this,t)},n}(l.BeginItem);e.CasesBeginItem=f;var p=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.subcounter=0,t}return n.prototype.start=function(t,n,r){this.subcounter=0,e.prototype.start.call(this,t,n,r)},n.prototype.autoTag=function(){this.currentTag.tag??(this.currentTag.env===`subnumcases`?(this.subcounter===0&&this.counter++,this.subcounter++,this.tag(this.formatNumber(this.counter,this.subcounter),!1)):((this.subcounter===0||this.currentTag.env!==`numcases-left`)&&this.counter++,this.tag(this.formatNumber(this.counter),!1)))},n.prototype.formatNumber=function(e,t){return t===void 0&&(t=null),e.toString()+(t===null?``:String.fromCharCode(96+t))},n}(u.AmsTags);e.CasesTags=p,e.CasesMethods={NumCases:function(e,t){if(e.stack.env.closing===t.getName()){delete e.stack.env.closing,e.Push(e.itemFactory.create(`end`).setProperty(`name`,t.getName()));var n=e.stack.Top(),r=n.Last,i=o.default.copyNode(r,e),a=n.getProperty(`left`);return d.EmpheqUtil.left(r,i,a+`\\empheqlbrace\\,`,e,`numcases-left`),e.Push(e.itemFactory.create(`end`).setProperty(`name`,t.getName())),null}else{var a=e.GetArgument(`\\begin{`+t.getName()+`}`);t.setProperty(`left`,a);var c=s.default.EqnArray(e,t,!0,!0,`ll`);return c.arraydef.displaystyle=!1,c.arraydef.rowspacing=`.2em`,c.setProperty(`numCases`,!0),e.Push(t),c}},Entry:function(e,t){if(!e.stack.Top().getProperty(`numCases`))return s.default.Entry(e,t);e.Push(e.itemFactory.create(`cell`).setProperties({isEntry:!0,name:t}));for(var n=e.string,r=0,i=e.i,a=n.length;i<a;){var l=n.charAt(i);if(l===`{`)r++,i++;else if(l===`}`){if(r===0)break;r--,i++}else if(l===`&`&&r===0)throw new c.default(`ExtraCasesAlignTab`,`Extra alignment tab in text for numcase environment`);else if(l===`\\`&&r===0){var u=(n.slice(i+1).match(/^[a-z]+|./i)||[])[0];if(u===`\\`||u===`cr`||u===`end`||u===`label`)break;i+=u.length}else i++}var d=n.substr(e.i,i-e.i).replace(/^\s*/,``);e.PushAll(o.default.internalMath(e,d,0)),e.i=i}},new a.EnvironmentMap(`cases-env`,d.EmpheqUtil.environment,{numcases:[`NumCases`,`cases`],subnumcases:[`NumCases`,`cases`]},e.CasesMethods),new a.MacroMap(`cases-macros`,{"&":`Entry`},e.CasesMethods),e.CasesConfiguration=i.Configuration.create(`cases`,{handler:{environment:[`cases-env`],character:[`cases-macros`]},items:(r={},r[f.prototype.kind]=f,r),tags:{cases:p}})})),_t=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.CenternotConfiguration=e.filterCenterOver=void 0;var r=H(),i=n(z()),a=n(I()),o=W(),s=n(J());new o.CommandMap(`centernot`,{centerOver:`CenterOver`,centernot:[`Macro`,`\\centerOver{#1}{{⧸}}`,1]},{CenterOver:function(e,t){var n=`{`+e.GetArgument(t)+`}`,r=e.ParseArg(t),a=new i.default(n,e.stack.env,e.configuration).mml(),o=e.create(`node`,`TeXAtom`,[new i.default(n,e.stack.env,e.configuration).mml(),e.create(`node`,`mpadded`,[e.create(`node`,`mpadded`,[r],{width:0,lspace:`-.5width`}),e.create(`node`,`mphantom`,[a])],{width:0,lspace:`-.5width`})]);e.configuration.addNode(`centerOver`,a),e.Push(o)},Macro:s.default.Macro});function c(e){var n,r,i=e.data;try{for(var o=t(i.getList(`centerOver`)),s=o.next();!s.done;s=o.next()){var c=s.value,l=a.default.getTexClass(c.childNodes[0].childNodes[0]);l!==null&&a.default.setProperties(c.parent.parent.parent.parent.parent.parent,{texClass:l})}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}e.filterCenterOver=c,e.CenternotConfiguration=r.Configuration.create(`centernot`,{handler:{macro:[`centernot`]},postprocessors:[c]})})),vt=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ColorMethods=void 0;var n=t(I()),r=t(R());function i(e){var t=`+${e}`,n=e.replace(/^.*?([a-z]*)$/,`$1`);return{width:`+${2*parseFloat(t)}${n}`,height:t,depth:t,lspace:e}}e.ColorMethods={},e.ColorMethods.Color=function(e,t){var n=e.GetBrackets(t,``),r=e.GetArgument(t),i=e.configuration.packageData.get(`color`).model.getColor(n,r),a=e.itemFactory.create(`style`).setProperties({styles:{mathcolor:i}});e.stack.env.color=i,e.Push(a)},e.ColorMethods.TextColor=function(e,t){var n=e.GetBrackets(t,``),r=e.GetArgument(t),i=e.configuration.packageData.get(`color`).model.getColor(n,r),a=e.stack.env.color;e.stack.env.color=i;var o=e.ParseArg(t);a?e.stack.env.color=a:delete e.stack.env.color;var s=e.create(`node`,`mstyle`,[o],{mathcolor:i});e.Push(s)},e.ColorMethods.DefineColor=function(e,t){var n=e.GetArgument(t),r=e.GetArgument(t),i=e.GetArgument(t);e.configuration.packageData.get(`color`).model.defineColor(r,n,i)},e.ColorMethods.ColorBox=function(e,t){var a=e.GetArgument(t),o=r.default.internalMath(e,e.GetArgument(t)),s=e.configuration.packageData.get(`color`).model,c=e.create(`node`,`mpadded`,o,{mathbackground:s.getColor(`named`,a)});n.default.setProperties(c,i(e.options.color.padding)),e.Push(c)},e.ColorMethods.FColorBox=function(e,t){var a=e.GetArgument(t),o=e.GetArgument(t),s=r.default.internalMath(e,e.GetArgument(t)),c=e.options.color,l=e.configuration.packageData.get(`color`).model,u=e.create(`node`,`mpadded`,s,{mathbackground:l.getColor(`named`,o),style:`border: ${c.borderWidth} solid ${l.getColor(`named`,a)}`});n.default.setProperties(u,i(c.padding)),e.Push(u)}})),yt=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.COLORS=void 0,e.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`]])})),bt=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ColorModel=void 0;var r=n(L()),i=yt(),a=new Map;e.ColorModel=function(){function e(){this.userColors=new Map}return e.prototype.normalizeColor=function(e,t){if(!e||e===`named`)return t;if(a.has(e))return a.get(e)(t);throw new r.default(`UndefinedColorModel`,`Color model '%1' not defined`,e)},e.prototype.getColor=function(e,t){return!e||e===`named`?this.getColorByName(t):this.normalizeColor(e,t)},e.prototype.getColorByName=function(e){return this.userColors.has(e)?this.userColors.get(e):i.COLORS.has(e)?i.COLORS.get(e):e},e.prototype.defineColor=function(e,t,n){var r=this.normalizeColor(e,n);this.userColors.set(t,r)},e}(),a.set(`rgb`,function(e){var n,i,a=e.trim().split(/\s*,\s*/),o=`#`;if(a.length!==3)throw new r.default(`ModelArg1`,`Color values for the %1 model require 3 numbers`,`rgb`);try{for(var s=t(a),c=s.next();!c.done;c=s.next()){var l=c.value;if(!l.match(/^(\d+(\.\d*)?|\.\d+)$/))throw new r.default(`InvalidDecimalNumber`,`Invalid decimal number`);var u=parseFloat(l);if(u<0||u>1)throw new r.default(`ModelArg2`,`Color values for the %1 model must be between %2 and %3`,`rgb`,`0`,`1`);var d=Math.floor(u*255).toString(16);d.length<2&&(d=`0`+d),o+=d}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o}),a.set(`RGB`,function(e){var n,i,a=e.trim().split(/\s*,\s*/),o=`#`;if(a.length!==3)throw new r.default(`ModelArg1`,`Color values for the %1 model require 3 numbers`,`RGB`);try{for(var s=t(a),c=s.next();!c.done;c=s.next()){var l=c.value;if(!l.match(/^\d+$/))throw new r.default(`InvalidNumber`,`Invalid number`);var u=parseInt(l);if(u>255)throw new r.default(`ModelArg2`,`Color values for the %1 model must be between %2 and %3`,`RGB`,`0`,`255`);var d=u.toString(16);d.length<2&&(d=`0`+d),o+=d}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o}),a.set(`gray`,function(e){if(!e.match(/^\s*(\d+(\.\d*)?|\.\d+)\s*$/))throw new r.default(`InvalidDecimalNumber`,`Invalid decimal number`);var t=parseFloat(e);if(t<0||t>1)throw new r.default(`ModelArg2`,`Color values for the %1 model must be between %2 and %3`,`gray`,`0`,`1`);var n=Math.floor(t*255).toString(16);return n.length<2&&(n=`0`+n),`#${n}${n}${n}`})})),xt=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ColorConfiguration=void 0;var t=W(),n=H(),r=vt(),i=bt();new t.CommandMap(`color`,{color:`Color`,textcolor:`TextColor`,definecolor:`DefineColor`,colorbox:`ColorBox`,fcolorbox:`FColorBox`},r.ColorMethods),e.ColorConfiguration=n.Configuration.create(`color`,{handler:{macro:[`color`]},options:{color:{padding:`5px`,borderWidth:`2px`}},config:function(e,t){t.parseOptions.packageData.set(`color`,{model:new i.ColorModel})}})})),St=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ColorConfiguration=e.ColorV2Methods=void 0;var t=W(),n=H();e.ColorV2Methods={Color:function(e,t){var n=e.GetArgument(t),r=e.stack.env.color;e.stack.env.color=n;var i=e.ParseArg(t);r?e.stack.env.color=r:delete e.stack.env.color;var a=e.create(`node`,`mstyle`,[i],{mathcolor:n});e.Push(a)}},new t.CommandMap(`colorv2`,{color:`Color`},e.ColorV2Methods),e.ColorConfiguration=n.Configuration.create(`colorv2`,{handler:{macro:[`colorv2`]}})})),Ct=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ColortblConfiguration=e.ColorArrayItem=void 0;var r=G(),i=H(),a=W(),o=n(L()),s=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.color={cell:``,row:``,col:[]},t.hasColor=!1,t}return n.prototype.EndEntry=function(){e.prototype.EndEntry.call(this);var t=this.row[this.row.length-1],n=this.color.cell||this.color.row||this.color.col[this.row.length-1];n&&(t.attributes.set(`mathbackground`,n),this.color.cell=``,this.hasColor=!0)},n.prototype.EndRow=function(){e.prototype.EndRow.call(this),this.color.row=``},n.prototype.createMml=function(){var t=e.prototype.createMml.call(this),n=t.isKind(`mrow`)?t.childNodes[1]:t;return n.isKind(`menclose`)&&(n=n.childNodes[0].childNodes[0]),this.hasColor&&n.attributes.get(`frame`)===`none`&&n.attributes.set(`frame`,``),t},n}(r.ArrayItem);e.ColorArrayItem=s,new a.CommandMap(`colortbl`,{cellcolor:[`TableColor`,`cell`],rowcolor:[`TableColor`,`row`],columncolor:[`TableColor`,`col`]},{TableColor:function(e,t,n){var r=e.configuration.packageData.get(`color`).model,i=e.GetBrackets(t,``),a=r.getColor(i,e.GetArgument(t)),c=e.stack.Top();if(!(c instanceof s))throw new o.default(`UnsupportedTableColor`,`Unsupported use of %1`,e.currentCS);if(n===`col`){if(c.table.length)throw new o.default(`ColumnColorNotTop`,`%1 must be in the top row`,t);c.color.col[c.row.length]=a,e.GetBrackets(t,``)&&e.GetBrackets(t,``)}else if(c.color[n]=a,n===`row`&&(c.Size()||c.row.length))throw new o.default(`RowColorNotFirst`,`%1 must be at the beginning of a row`,t)}}),e.ColortblConfiguration=i.Configuration.create(`colortbl`,{handler:{macro:[`colortbl`]},items:{array:s},priority:10,config:[function(e,t){t.parseOptions.packageData.has(`color`)||i.ConfigurationHandler.get(`color`).config(e,t)},10]})})),wt=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(R()),r=t(L()),i=U(),a;(function(e){function t(e,t){var n=[e,t.char];if(t.attributes)for(var r in t.attributes)n.push(r),n.push(t.attributes[r]);return n}e.disassembleSymbol=t;function a(e){for(var t=e[0],n=e[1],r={},a=2;a<e.length;a+=2)r[e[a]]=e[a+1];return new i.Symbol(t,n,r)}e.assembleSymbol=a;function o(e,t){if(e.GetNext()!==`\\`)throw new r.default(`MissingCS`,`%1 must be followed by a control sequence`,t);return n.default.trimSpaces(e.GetArgument(t)).substr(1)}e.GetCSname=o;function s(e,t){var i=n.default.trimSpaces(e.GetArgument(t));if(i.charAt(0)===`\\`&&(i=i.substr(1)),!i.match(/^(.|[a-z]+)$/i))throw new r.default(`IllegalControlSequenceName`,`Illegal control sequence name for %1`,t);return i}e.GetCsNameArgument=s;function c(e,t){var i=e.GetBrackets(t);if(i&&(i=n.default.trimSpaces(i),!i.match(/^[0-9]+$/)))throw new r.default(`IllegalParamNumber`,`Illegal number of parameters specified in %1`,t);return i}e.GetArgCount=c;function l(e,t,n){for(var i=e.GetNext(),a=[],o=0,s=e.i;e.i<e.string.length;){if(i=e.GetNext(),i===`#`){if(s!==e.i&&(a[o]=e.string.substr(s,e.i-s)),i=e.string.charAt(++e.i),!i.match(/^[1-9]$/))throw new r.default(`CantUseHash2`,`Illegal use of # in template for %1`,n);if(parseInt(i)!==++o)throw new r.default(`SequentialParam`,`Parameters for %1 must be numbered sequentially`,n);s=e.i+1}else if(i===`{`)return s!==e.i&&(a[o]=e.string.substr(s,e.i-s)),a.length>0?[o.toString()].concat(a):o;e.i++}throw new r.default(`MissingReplacementString`,`Missing replacement string for definition of %1`,t)}e.GetTemplate=l;function u(e,t,n){if(n==null)return e.GetArgument(t);for(var i=e.i,a=0,o=0;e.i<e.string.length;){var s=e.string.charAt(e.i);if(s===`{`)e.i===i&&(o=1),e.GetArgument(t),a=e.i-i;else if(d(e,n))return o&&(i++,a-=2),e.string.substr(i,a);else if(s===`\\`){e.i++,a++,o=0;var c=e.string.substr(e.i).match(/[a-z]+|./i);c&&(e.i+=c[0].length,a=e.i-i)}else e.i++,a++,o=0}throw new r.default(`RunawayArgument`,`Runaway argument for %1?`,t)}e.GetParameter=u;function d(e,t){return e.string.substr(e.i,t.length)!==t||t.match(/\\[a-z]+$/i)&&e.string.charAt(e.i+t.length).match(/[a-z]/i)?0:(e.i+=t.length,1)}e.MatchParam=d;function f(t,n,r,a){t.configuration.handlers.retrieve(e.NEW_DELIMITER).add(n,new i.Symbol(n,r,a))}e.addDelimiter=f;function p(t,n,r,a,o){o===void 0&&(o=``),t.configuration.handlers.retrieve(e.NEW_COMMAND).add(n,new i.Macro(o||n,r,a))}e.addMacro=p;function m(t,n,r,a){t.configuration.handlers.retrieve(e.NEW_ENVIRONMENT).add(n,new i.Macro(n,r,a))}e.addEnvironment=m,e.NEW_DELIMITER=`new-Delimiter`,e.NEW_COMMAND=`new-Command`,e.NEW_ENVIRONMENT=`new-Environment`})(a||={}),e.default=a})),Tt=e((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var a=i(L()),o=r(W()),s=i(J()),c=i(R()),l=i(wt()),u={};u.NewCommand=function(e,t){var n=l.default.GetCsNameArgument(e,t),r=l.default.GetArgCount(e,t),i=e.GetBrackets(t),a=e.GetArgument(t);l.default.addMacro(e,n,u.Macro,[a,r,i])},u.NewEnvironment=function(e,t){var n=c.default.trimSpaces(e.GetArgument(t)),r=l.default.GetArgCount(e,t),i=e.GetBrackets(t),a=e.GetArgument(t),o=e.GetArgument(t);l.default.addEnvironment(e,n,u.BeginEnv,[!0,a,o,r,i])},u.MacroDef=function(e,t){var n=l.default.GetCSname(e,t),r=l.default.GetTemplate(e,t,`\\`+n),i=e.GetArgument(t);r instanceof Array?l.default.addMacro(e,n,u.MacroWithTemplate,[i].concat(r)):l.default.addMacro(e,n,u.Macro,[i,r])},u.Let=function(e,t){var n=l.default.GetCSname(e,t),r=e.GetNext();r===`=`&&(e.i++,r=e.GetNext());var i=e.configuration.handlers;if(r===`\\`){t=l.default.GetCSname(e,t);var a=i.get(`delimiter`).lookup(`\\`+t);if(a){l.default.addDelimiter(e,`\\`+n,a.char,a.attributes);return}var s=i.get(`macro`).applicable(t);if(!s)return;if(s instanceof o.MacroMap){var c=s.lookup(t);l.default.addMacro(e,n,c.func,c.args,c.symbol);return}a=s.lookup(t);var d=l.default.disassembleSymbol(n,a);l.default.addMacro(e,n,function(e,t){var n=[...arguments].slice(2),r=l.default.assembleSymbol(n);return s.parser(e,r)},d);return}e.i++;var f=i.get(`delimiter`).lookup(r);if(f){l.default.addDelimiter(e,`\\`+n,f.char,f.attributes);return}l.default.addMacro(e,n,u.Macro,[r])},u.MacroWithTemplate=function(e,t,n,r){var i=[...arguments].slice(4),o=parseInt(r,10);if(o){var s=[];if(e.GetNext(),i[0]&&!l.default.MatchParam(e,i[0]))throw new a.default(`MismatchUseDef`,`Use of %1 doesn't match its definition`,t);for(var u=0;u<o;u++)s.push(l.default.GetParameter(e,t,i[u+1]));n=c.default.substituteArgs(e,s,n)}e.string=c.default.addArgs(e,n,e.string.slice(e.i)),e.i=0,c.default.checkMaxMacros(e)},u.BeginEnv=function(e,t,n,r,i,a){if(t.getProperty(`end`)&&e.stack.env.closing===t.getName()){delete e.stack.env.closing;var o=e.string.slice(e.i);return e.string=r,e.i=0,e.Parse(),e.string=o,e.i=0,e.itemFactory.create(`end`).setProperty(`name`,t.getName())}if(i){var s=[];if(a!=null){var l=e.GetBrackets(`\\begin{`+t.getName()+`}`);s.push(l??a)}for(var u=s.length;u<i;u++)s.push(e.GetArgument(`\\begin{`+t.getName()+`}`));n=c.default.substituteArgs(e,s,n),r=c.default.substituteArgs(e,[],r)}return e.string=c.default.addArgs(e,n,e.string.slice(e.i)),e.i=0,e.itemFactory.create(`beginEnv`).setProperty(`name`,t.getName())},u.Macro=s.default.Macro,e.default=u})),Et=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.BeginEnvItem=void 0;var r=n(L());e.BeginEnvItem=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`beginEnv`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(t){if(t.isKind(`end`)){if(t.getName()!==this.getName())throw new r.default(`EnvBadEnd`,`\\begin{%1} ended with \\end{%2}`,this.getName(),t.getName());return[[this.factory.create(`mml`,this.toMml())],!0]}if(t.isKind(`stop`))throw new r.default(`EnvMissingEnd`,`Missing \\end{%1}`,this.getName());return e.prototype.checkItem.call(this,t)},n}(B().BaseItem)})),Dt=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},r;Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigMacrosConfiguration=void 0;var a=H(),o=i(),s=W(),c=n(Y()),l=U(),u=n(Tt()),d=Et(),f=`configmacros-map`,p=`configmacros-env-map`;function m(e){new s.CommandMap(f,{},{}),new s.EnvironmentMap(p,c.default.environment,{},{}),e.append(a.Configuration.local({handler:{macro:[f],environment:[p]},priority:3}))}function h(e,t){g(t),_(t)}function g(e){var n,r,i=e.parseOptions.handlers.retrieve(f),a=e.parseOptions.options.macros;try{for(var o=t(Object.keys(a)),s=o.next();!s.done;s=o.next()){var c=s.value,d=typeof a[c]==`string`?[a[c]]:a[c],p=Array.isArray(d[2])?new l.Macro(c,u.default.MacroWithTemplate,d.slice(0,2).concat(d[2])):new l.Macro(c,u.default.Macro,d);i.add(c,p)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function _(e){var n,r,i=e.parseOptions.handlers.retrieve(p),a=e.parseOptions.options.environments;try{for(var o=t(Object.keys(a)),s=o.next();!s.done;s=o.next()){var c=s.value;i.add(c,new l.Macro(c,u.default.BeginEnv,[!0].concat(a[c])))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}e.ConfigMacrosConfiguration=a.Configuration.create(`configmacros`,{init:m,config:h,items:(r={},r[d.BeginEnvItem.prototype.kind]=d.BeginEnvItem,r),options:{macros:(0,o.expandable)({}),environments:(0,o.expandable)({})}})})),Ot=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i;Object.defineProperty(e,"__esModule",{value:!0}),e.EmpheqConfiguration=e.EmpheqMethods=e.EmpheqBeginItem=void 0;var a=H(),o=W(),s=r(R()),c=r(L()),l=G(),u=ht(),d=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`empheq-begin`},enumerable:!1,configurable:!0}),n.prototype.checkItem=function(t){return t.isKind(`end`)&&t.getName()===this.getName()&&this.setProperty(`end`,!1),e.prototype.checkItem.call(this,t)},n}(l.BeginItem);e.EmpheqBeginItem=d,e.EmpheqMethods={Empheq:function(e,t){if(e.stack.env.closing===t.getName()){delete e.stack.env.closing,e.Push(e.itemFactory.create(`end`).setProperty(`name`,e.stack.global.empheq)),e.stack.global.empheq=``;var r=e.stack.Top();u.EmpheqUtil.adjustTable(r,e),e.Push(e.itemFactory.create(`end`).setProperty(`name`,`empheq`))}else{s.default.checkEqnEnv(e),delete e.stack.global.eqnenv;var i=e.GetBrackets(`\\begin{`+t.getName()+`}`)||``,a=n((e.GetArgument(`\\begin{`+t.getName()+`}`)||``).split(/=/),2),o=a[0],l=a[1];if(!u.EmpheqUtil.checkEnv(o))throw new c.default(`UnknownEnv`,`Unknown environment "%1"`,o);i&&t.setProperties(u.EmpheqUtil.splitOptions(i,{left:1,right:1})),e.stack.global.empheq=o,e.string=`\\begin{`+o+`}`+(l?`{`+l+`}`:``)+e.string.slice(e.i),e.i=0,e.Push(t)}},EmpheqMO:function(e,t,n){e.Push(e.create(`token`,`mo`,{},n))},EmpheqDelim:function(e,t){var n=e.GetDelimiter(t);e.Push(e.create(`token`,`mo`,{stretchy:!0,symmetric:!0},n))}},new o.EnvironmentMap(`empheq-env`,u.EmpheqUtil.environment,{empheq:[`Empheq`,`empheq`]},e.EmpheqMethods),new o.CommandMap(`empheq-macros`,{empheqlbrace:[`EmpheqMO`,`{`],empheqrbrace:[`EmpheqMO`,`}`],empheqlbrack:[`EmpheqMO`,`[`],empheqrbrack:[`EmpheqMO`,`]`],empheqlangle:[`EmpheqMO`,`⟨`],empheqrangle:[`EmpheqMO`,`⟩`],empheqlparen:[`EmpheqMO`,`(`],empheqrparen:[`EmpheqMO`,`)`],empheqlvert:[`EmpheqMO`,`|`],empheqrvert:[`EmpheqMO`,`|`],empheqlVert:[`EmpheqMO`,`‖`],empheqrVert:[`EmpheqMO`,`‖`],empheqlfloor:[`EmpheqMO`,`⌊`],empheqrfloor:[`EmpheqMO`,`⌋`],empheqlceil:[`EmpheqMO`,`⌈`],empheqrceil:[`EmpheqMO`,`⌉`],empheqbiglbrace:[`EmpheqMO`,`{`],empheqbigrbrace:[`EmpheqMO`,`}`],empheqbiglbrack:[`EmpheqMO`,`[`],empheqbigrbrack:[`EmpheqMO`,`]`],empheqbiglangle:[`EmpheqMO`,`⟨`],empheqbigrangle:[`EmpheqMO`,`⟩`],empheqbiglparen:[`EmpheqMO`,`(`],empheqbigrparen:[`EmpheqMO`,`)`],empheqbiglvert:[`EmpheqMO`,`|`],empheqbigrvert:[`EmpheqMO`,`|`],empheqbiglVert:[`EmpheqMO`,`‖`],empheqbigrVert:[`EmpheqMO`,`‖`],empheqbiglfloor:[`EmpheqMO`,`⌊`],empheqbigrfloor:[`EmpheqMO`,`⌋`],empheqbiglceil:[`EmpheqMO`,`⌈`],empheqbigrceil:[`EmpheqMO`,`⌉`],empheql:`EmpheqDelim`,empheqr:`EmpheqDelim`,empheqbigl:`EmpheqDelim`,empheqbigr:`EmpheqDelim`},e.EmpheqMethods),e.EmpheqConfiguration=a.Configuration.create(`empheq`,{handler:{macro:[`empheq-macros`],environment:[`empheq-env`]},items:(i={},i[d.prototype.kind]=d,i)})})),kt=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(Tt());new(W()).CommandMap(`Newcommand-macros`,{newcommand:`NewCommand`,renewcommand:`NewCommand`,newenvironment:`NewEnvironment`,renewenvironment:`NewEnvironment`,def:`MacroDef`,let:`Let`},n.default)})),At=e((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a;Object.defineProperty(e,"__esModule",{value:!0}),e.NewcommandConfiguration=void 0;var o=H(),s=Et(),c=i(wt());kt();var l=i(Y()),u=r(W()),d=function(e){new u.DelimiterMap(c.default.NEW_DELIMITER,l.default.delimiter,{}),new u.CommandMap(c.default.NEW_COMMAND,{},{}),new u.EnvironmentMap(c.default.NEW_ENVIRONMENT,l.default.environment,{},{}),e.append(o.Configuration.local({handler:{character:[],delimiter:[c.default.NEW_DELIMITER],macro:[c.default.NEW_DELIMITER,c.default.NEW_COMMAND],environment:[c.default.NEW_ENVIRONMENT]},priority:-1}))};e.NewcommandConfiguration=o.Configuration.create(`newcommand`,{handler:{macro:[`Newcommand-macros`]},items:(a={},a[s.BeginEnvItem.prototype.kind]=s.BeginEnvItem,a),options:{maxMacros:1e3},init:d})})),jt=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ExtpfeilConfiguration=e.ExtpfeilMethods=void 0;var n=H(),r=W(),i=X(),a=t(wt()),o=At(),s=t(L());e.ExtpfeilMethods={},e.ExtpfeilMethods.xArrow=i.AmsMethods.xArrow,e.ExtpfeilMethods.NewExtArrow=function(t,n){var r=t.GetArgument(n),i=t.GetArgument(n),o=t.GetArgument(n);if(!r.match(/^\\([a-z]+|.)$/i))throw new s.default(`NewextarrowArg1`,`First argument to %1 must be a control sequence name`,n);if(!i.match(/^(\d+),(\d+)$/))throw new s.default(`NewextarrowArg2`,`Second argument to %1 must be two integers separated by a comma`,n);if(!o.match(/^(\d+|0x[0-9A-F]+)$/i))throw new s.default(`NewextarrowArg3`,`Third argument to %1 must be a unicode character number`,n);r=r.substr(1);var c=i.split(`,`);a.default.addMacro(t,r,e.ExtpfeilMethods.xArrow,[parseInt(o),parseInt(c[0]),parseInt(c[1])])},new r.CommandMap(`extpfeil`,{xtwoheadrightarrow:[`xArrow`,8608,12,16],xtwoheadleftarrow:[`xArrow`,8606,17,13],xmapsto:[`xArrow`,8614,6,7],xlongequal:[`xArrow`,61,7,7],xtofrom:[`xArrow`,8644,12,12],Newextarrow:`NewExtArrow`},e.ExtpfeilMethods),e.ExtpfeilConfiguration=n.Configuration.create(`extpfeil`,{handler:{macro:[`extpfeil`]},init:function(e){o.NewcommandConfiguration.init(e)}})})),Mt=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GensymbConfiguration=void 0;var t=H(),n=K(),r=W();function i(e,t){var r=t.attributes||{};r.mathvariant=n.TexConstant.Variant.NORMAL,r.class=`MathML-Unit`;var i=e.create(`token`,`mi`,r,t.char);e.Push(i)}new r.CharacterMap(`gensymb-symbols`,i,{ohm:`Ω`,degree:`°`,celsius:`℃`,perthousand:`‰`,micro:`µ`}),e.GensymbConfiguration=t.Configuration.create(`gensymb`,{handler:{macro:[`gensymb-symbols`]}})})),Nt=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(I()),r={};r.Href=function(e,t){var r=e.GetArgument(t),a=i(e,t);n.default.setAttribute(a,`href`,r),e.Push(a)},r.Class=function(e,t){var r=e.GetArgument(t),a=i(e,t),o=n.default.getAttribute(a,`class`);o&&(r=o+` `+r),n.default.setAttribute(a,`class`,r),e.Push(a)},r.Style=function(e,t){var r=e.GetArgument(t),a=i(e,t),o=n.default.getAttribute(a,`style`);o&&(r.charAt(r.length-1)!==`;`&&(r+=`;`),r=o+` `+r),n.default.setAttribute(a,`style`,r),e.Push(a)},r.Id=function(e,t){var r=e.GetArgument(t),a=i(e,t);n.default.setAttribute(a,`id`,r),e.Push(a)};var i=function(e,t){var r=e.ParseArg(t);if(!n.default.isInferred(r))return r;var i=n.default.getChildren(r);if(i.length===1)return i[0];var a=e.create(`node`,`mrow`);return n.default.copyChildren(r,a),n.default.copyAttributes(r,a),a};e.default=r})),Pt=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.HtmlConfiguration=void 0;var n=H(),r=W(),i=t(Nt());new r.CommandMap(`html_macros`,{href:`Href`,class:`Class`,style:`Style`,cssId:`Id`},i.default),e.HtmlConfiguration=n.Configuration.create(`html`,{handler:{macro:[`html_macros`]}})})),Ft=e((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.MathtoolsUtil=void 0;var r=G(),a=n(R()),o=n(z()),s=n(L()),c=U(),l=i(),u=It(),d=Bt();e.MathtoolsUtil={setDisplayLevel:function(e,n){if(n){var r=t((0,l.lookup)(n,{"\\displaystyle":[!0,0],"\\textstyle":[!1,0],"\\scriptstyle":[!1,1],"\\scriptscriptstyle":[!1,2]},[null,null]),2),i=r[0],a=r[1];i!==null&&(e.attributes.set(`displaystyle`,i),e.attributes.set(`scriptlevel`,a))}},checkAlignment:function(e,t){var n=e.stack.Top();if(n.kind!==r.EqnArrayItem.prototype.kind)throw new s.default(`NotInAlignment`,`%1 can only be used in aligment environments`,t);return n},addPairedDelims:function(e,t,n){e.handlers.retrieve(d.PAIREDDELIMS).add(t,new c.Macro(t,u.MathtoolsMethods.PairedDelimiters,n))},spreadLines:function(e,t){if(e.isKind(`mtable`)){var n=e.attributes.get(`rowspacing`);if(n){var r=a.default.dimen2em(t);n=n.split(/ /).map(function(e){return a.default.Em(Math.max(0,a.default.dimen2em(e)+r))}).join(` `)}else n=t;e.attributes.set(`rowspacing`,n)}},plusOrMinus:function(e,t){if(t=t.trim(),!t.match(/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)$/))throw new s.default(`NotANumber`,`Argument to %1 is not a number`,e);return t.match(/^[-+]/)?t:`+`+t},getScript:function(e,t,n){var r=a.default.trimSpaces(e.GetArgument(t));if(r===``)return e.create(`node`,`none`);var i=e.options.mathtools[`prescript-${n}-format`];return i&&(r=`${i}{${r}}`),new o.default(r,e.stack.env,e.configuration).mml()}}})),It=e((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.MathtoolsMethods=void 0;var o=a(R()),s=X(),c=a(J()),l=a(z()),u=a(L()),d=a(I()),f=A(),p=q(),m=i(),h=a(wt()),g=a(Tt()),_=Ft();e.MathtoolsMethods={MtMatrix:function(t,n,r,i){var a=t.GetBrackets(`\\begin{${n.getName()}}`,`c`);return e.MathtoolsMethods.Array(t,n,r,i,a)},MtSmallMatrix:function(t,n,r,i,a){return a||=t.GetBrackets(`\\begin{${n.getName()}}`,t.options.mathtools[`smallmatrix-align`]),e.MathtoolsMethods.Array(t,n,r,i,a,o.default.Em(1/3),`.2em`,`S`,1)},MtMultlined:function(e,t){var r,i=`\\begin{${t.getName()}}`,a=e.GetBrackets(i,e.options.mathtools[`multlined-pos`]||`c`),s=a?e.GetBrackets(i,``):``;a&&!a.match(/^[cbt]$/)&&(r=n([a,s],2),s=r[0],a=r[1]),e.Push(t);var c=e.itemFactory.create(`multlined`,e,t);return c.arraydef={displaystyle:!0,rowspacing:`.5em`,width:s||`auto`,columnwidth:`100%`},o.default.setArrayAlign(c,a||`c`)},HandleShove:function(e,t,n){var r=e.stack.Top();if(r.kind!==`multline`&&r.kind!==`multlined`)throw new u.default(`CommandInMultlined`,`%1 can only appear within the multline or multlined environments`,t);if(r.Size())throw new u.default(`CommandAtTheBeginingOfLine`,`%1 must come at the beginning of the line`,t);r.setProperty(`shove`,n);var i=e.GetBrackets(t),a=e.ParseArg(t);if(i){var o=e.create(`node`,`mrow`,[]),s=e.create(`node`,`mspace`,[],{width:i});n===`left`?(o.appendChild(s),o.appendChild(a)):(o.appendChild(a),o.appendChild(s)),a=o}e.Push(a)},SpreadLines:function(e,t){var n,i;if(e.stack.env.closing===t.getName()){delete e.stack.env.closing;var a=e.stack.Pop(),o=a.toMml(),s=a.getProperty(`spread`);if(o.isInferred)try{for(var c=r(d.default.getChildren(o)),l=c.next();!l.done;l=c.next()){var u=l.value;_.MathtoolsUtil.spreadLines(u,s)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}else _.MathtoolsUtil.spreadLines(o,s);e.Push(o)}else{var s=e.GetDimen(`\\begin{${t.getName()}}`);t.setProperty(`spread`,s),e.Push(t)}},Cases:function(e,t,n,r,i){var a=e.itemFactory.create(`array`).setProperty(`casesEnv`,t.getName());return a.arraydef={rowspacing:`.2em`,columnspacing:`1em`,columnalign:`left`},i===`D`&&(a.arraydef.displaystyle=!0),a.setProperties({open:n,close:r}),e.Push(t),a},MathLap:function(e,n,r,i){var a=e.GetBrackets(n,``).trim(),o=e.create(`node`,`mstyle`,[e.create(`node`,`mpadded`,[e.ParseArg(n)],t({width:0},r===`r`?{}:{lspace:r===`l`?`-1width`:`-.5width`}))],{"data-cramped":i});_.MathtoolsUtil.setDisplayLevel(o,a),e.Push(e.create(`node`,`TeXAtom`,[o]))},Cramped:function(e,t){var n=e.GetBrackets(t,``).trim(),r=e.ParseArg(t),i=e.create(`node`,`mstyle`,[r],{"data-cramped":!0});_.MathtoolsUtil.setDisplayLevel(i,n),e.Push(i)},MtLap:function(e,t,n){var r=o.default.internalMath(e,e.GetArgument(t),0),i=e.create(`node`,`mpadded`,r,{width:0});n!==`r`&&d.default.setAttribute(i,`lspace`,n===`l`?`-1width`:`-.5width`),e.Push(i)},MathMakeBox:function(e,t){var n=e.GetBrackets(t),r=e.GetBrackets(t,`c`),i=e.create(`node`,`mpadded`,[e.ParseArg(t)]);n&&d.default.setAttribute(i,`width`,n);var a=(0,m.lookup)(r,{c:`center`,r:`right`},``);a&&d.default.setAttribute(i,`data-align`,a),e.Push(i)},MathMBox:function(e,t){e.Push(e.create(`node`,`mrow`,[e.ParseArg(t)]))},UnderOverBracket:function(e,t){var r=(0,p.length2em)(e.GetBrackets(t,`.1em`),.1),i=e.GetBrackets(t,`.2em`),a=e.GetArgument(t),s=n(t.charAt(1)===`o`?[`over`,`accent`,`bottom`]:[`under`,`accentunder`,`top`],3),c=s[0],u=s[1],f=s[2],m=(0,p.em)(r),h=new l.default(a,e.stack.env,e.configuration).mml(),g=new l.default(a,e.stack.env,e.configuration).mml(),_=e.create(`node`,`mpadded`,[e.create(`node`,`mphantom`,[g])],{style:`border: ${m} solid; border-${f}: none`,height:i,depth:0}),v=o.default.underOver(e,h,_,c,!0),y=d.default.getChildAt(d.default.getChildAt(v,0),0);d.default.setAttribute(y,u,!0),e.Push(v)},Aboxed:function(e,t){var n=_.MathtoolsUtil.checkAlignment(e,t);n.row.length%2==1&&n.row.push(e.create(`node`,`mtd`,[]));var r=e.GetArgument(t),i=e.string.substr(e.i);e.string=r+`&&\\endAboxed`,e.i=0;var a=e.GetUpTo(t,`&`),s=e.GetUpTo(t,`&`);e.GetUpTo(t,`\\endAboxed`),e.string=o.default.substituteArgs(e,[a,s],`\\rlap{\\boxed{#1{}#2}}\\kern.267em\\phantom{#1}&\\phantom{{}#2}\\kern.267em`)+i,e.i=0},ArrowBetweenLines:function(e,t){var n=_.MathtoolsUtil.checkAlignment(e,t);if(n.Size()||n.row.length)throw new u.default(`BetweenLines`,`%1 must be on a row by itself`,t);var r=e.GetStar(),i=e.GetBrackets(t,`\\Updownarrow`);r&&(n.EndEntry(),n.EndEntry());var a=r?`\\quad`+i:i+`\\quad`,o=new l.default(a,e.stack.env,e.configuration).mml();e.Push(o),n.EndEntry(),n.EndRow()},VDotsWithin:function(e,n){var r=e.stack.Top(),i=r.getProperty(`flushspaceabove`)===r.table.length,a=`\\mmlToken{mi}{}`+e.GetArgument(n)+`\\mmlToken{mi}{}`,o=new l.default(a,e.stack.env,e.configuration).mml(),s=e.create(`node`,`mpadded`,[e.create(`node`,`mpadded`,[e.create(`node`,`mo`,[e.create(`text`,`⋮`)])],t({width:0,lspace:`-.5width`},i?{height:`-.6em`,voffset:`-.18em`}:{})),e.create(`node`,`mphantom`,[o])],{lspace:`.5width`});e.Push(s)},ShortVDotsWithin:function(t,n){var r=t.stack.Top(),i=t.GetStar();e.MathtoolsMethods.FlushSpaceAbove(t,`\\MTFlushSpaceAbove`),!i&&r.EndEntry(),e.MathtoolsMethods.VDotsWithin(t,`\\vdotswithin`),i&&r.EndEntry(),e.MathtoolsMethods.FlushSpaceBelow(t,`\\MTFlushSpaceBelow`)},FlushSpaceAbove:function(e,t){var n=_.MathtoolsUtil.checkAlignment(e,t);n.setProperty(`flushspaceabove`,n.table.length),n.addRowSpacing(`-`+e.options.mathtools.shortvdotsadjustabove)},FlushSpaceBelow:function(e,t){var n=_.MathtoolsUtil.checkAlignment(e,t);n.Size()&&n.EndEntry(),n.EndRow(),n.addRowSpacing(`-`+e.options.mathtools.shortvdotsadjustbelow)},PairedDelimiters:function(e,t,r,i,a,s,c,l){a===void 0&&(a=`#1`),s===void 0&&(s=1),c===void 0&&(c=``),l===void 0&&(l=``);var u=e.GetStar(),d=u?``:e.GetBrackets(t),f=n(u?[`\\left`,`\\right`]:d?[d+`l`,d+`r`]:[``,``],2),p=f[0],m=f[1],h=u?`\\middle`:d||``;if(s){for(var g=[],_=g.length;_<s;_++)g.push(e.GetArgument(t));c=o.default.substituteArgs(e,g,c),a=o.default.substituteArgs(e,g,a),l=o.default.substituteArgs(e,g,l)}a=a.replace(/\\delimsize/g,h),e.string=[c,p,r,a,m,i,l,e.string.substr(e.i)].reduce(function(t,n){return o.default.addArgs(e,t,n)},``),e.i=0,o.default.checkMaxMacros(e)},DeclarePairedDelimiter:function(e,t){var n=h.default.GetCsNameArgument(e,t),r=e.GetArgument(t),i=e.GetArgument(t);_.MathtoolsUtil.addPairedDelims(e.configuration,n,[r,i])},DeclarePairedDelimiterX:function(e,t){var n=h.default.GetCsNameArgument(e,t),r=h.default.GetArgCount(e,t),i=e.GetArgument(t),a=e.GetArgument(t),o=e.GetArgument(t);_.MathtoolsUtil.addPairedDelims(e.configuration,n,[i,a,o,r])},DeclarePairedDelimiterXPP:function(e,t){var n=h.default.GetCsNameArgument(e,t),r=h.default.GetArgCount(e,t),i=e.GetArgument(t),a=e.GetArgument(t),o=e.GetArgument(t),s=e.GetArgument(t),c=e.GetArgument(t);_.MathtoolsUtil.addPairedDelims(e.configuration,n,[a,o,c,r,i,s])},CenterColon:function(e,n,r,i,a){i===void 0&&(i=!1),a===void 0&&(a=!1);var o=e.options.mathtools,s=e.create(`token`,`mo`,{},`:`);if(r&&(o.centercolon||i)){var c=o[`centercolon-offset`];s=e.create(`node`,`mpadded`,[s],t({voffset:c,height:`+${c}`,depth:`-${c}`},a?{width:o[`thincolon-dw`],lspace:o[`thincolon-dx`]}:{}))}e.Push(s)},Relation:function(e,t,n,r){e.options.mathtools[`use-unicode`]&&r?e.Push(e.create(`token`,`mo`,{texClass:f.TEXCLASS.REL},r)):(n=`\\mathrel{`+n.replace(/:/g,`\\MTThinColon`).replace(/-/g,`\\mathrel{-}`)+`}`,e.string=o.default.addArgs(e,n,e.string.substr(e.i)),e.i=0)},NArrow:function(e,t,n,r){e.Push(e.create(`node`,`TeXAtom`,[e.create(`token`,`mtext`,{},n),e.create(`node`,`mpadded`,[e.create(`node`,`mpadded`,[e.create(`node`,`menclose`,[e.create(`node`,`mspace`,[],{height:`.2em`,depth:0,width:`.4em`})],{notation:`updiagonalstrike`,"data-thickness":`.05em`,"data-padding":0})],{width:0,lspace:`-.5width`,voffset:r}),e.create(`node`,`mphantom`,[e.create(`token`,`mtext`,{},n)])],{width:0,lspace:`-.5width`})],{texClass:f.TEXCLASS.REL}))},SplitFrac:function(e,t,n){var r=e.ParseArg(t),i=e.ParseArg(t);e.Push(e.create(`node`,`mstyle`,[e.create(`node`,`mfrac`,[e.create(`node`,`mstyle`,[r,e.create(`token`,`mi`),e.create(`token`,`mspace`,{width:`1em`})],{scriptlevel:0}),e.create(`node`,`mstyle`,[e.create(`token`,`mspace`,{width:`1em`}),e.create(`token`,`mi`),i],{scriptlevel:0})],{linethickness:0,numalign:`left`,denomalign:`right`})],{displaystyle:n,scriptlevel:0}))},XMathStrut:function(e,t){var n=e.GetBrackets(t),r=e.GetArgument(t);r=_.MathtoolsUtil.plusOrMinus(t,r),n=_.MathtoolsUtil.plusOrMinus(t,n||r),e.Push(e.create(`node`,`TeXAtom`,[e.create(`node`,`mpadded`,[e.create(`node`,`mphantom`,[e.create(`token`,`mo`,{stretchy:!1},`(`)])],{width:0,height:r+`height`,depth:n+`depth`})],{texClass:f.TEXCLASS.ORD}))},Prescript:function(e,t){var n=_.MathtoolsUtil.getScript(e,t,`sup`),r=_.MathtoolsUtil.getScript(e,t,`sub`),i=_.MathtoolsUtil.getScript(e,t,`arg`);if(d.default.isType(n,`none`)&&d.default.isType(r,`none`)){e.Push(i);return}var a=e.create(`node`,`mmultiscripts`,[i]);d.default.getChildren(a).push(null,null),d.default.appendChildren(a,[e.create(`node`,`mprescripts`),r,n]),a.setProperty(`fixPrescript`,!0),e.Push(a)},NewTagForm:function(e,t,n){n===void 0&&(n=!1);var r=e.tags;if(!(`mtFormats`in r))throw new u.default(`TagsNotMT`,`%1 can only be used with ams or mathtools tags`,t);var i=e.GetArgument(t).trim();if(!i)throw new u.default(`InvalidTagFormID`,`Tag form name can't be empty`);var a=e.GetBrackets(t,``),o=e.GetArgument(t),s=e.GetArgument(t);if(!n&&r.mtFormats.has(i))throw new u.default(`DuplicateTagForm`,`Duplicate tag form: %1`,i);r.mtFormats.set(i,[o,s,a])},UseTagForm:function(e,t){var n=e.tags;if(!(`mtFormats`in n))throw new u.default(`TagsNotMT`,`%1 can only be used with ams or mathtools tags`,t);var r=e.GetArgument(t).trim();if(!r){n.mtCurrent=null;return}if(!n.mtFormats.has(r))throw new u.default(`UndefinedTagForm`,`Undefined tag form: %1`,r);n.mtCurrent=n.mtFormats.get(r)},SetOptions:function(e,t){var n,i,a=e.options.mathtools;if(!a[`allow-mathtoolsset`])throw new u.default(`ForbiddenMathtoolsSet`,`%1 is disabled`,t);var s={};Object.keys(a).forEach(function(e){e!==`pariedDelimiters`&&e!==`tagforms`&&e!==`allow-mathtoolsset`&&(s[e]=1)});var c=e.GetArgument(t),l=o.default.keyvalOptions(c,s,!0);try{for(var d=r(Object.keys(l)),f=d.next();!f.done;f=d.next()){var p=f.value;a[p]=l[p]}}catch(e){n={error:e}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}},Array:c.default.Array,Macro:c.default.Macro,xArrow:s.AmsMethods.xArrow,HandleRef:s.AmsMethods.HandleRef,AmsEqnArray:s.AmsMethods.AmsEqnArray,MacroWithTemplate:g.default.MacroWithTemplate}})),Lt=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(Y()),r=W(),i=K(),a=It();new r.CommandMap(`mathtools-macros`,{shoveleft:[`HandleShove`,i.TexConstant.Align.LEFT],shoveright:[`HandleShove`,i.TexConstant.Align.RIGHT],xleftrightarrow:[`xArrow`,8596,10,10],xLeftarrow:[`xArrow`,8656,12,7],xRightarrow:[`xArrow`,8658,7,12],xLeftrightarrow:[`xArrow`,8660,12,12],xhookleftarrow:[`xArrow`,8617,10,5],xhookrightarrow:[`xArrow`,8618,5,10],xmapsto:[`xArrow`,8614,10,10],xrightharpoondown:[`xArrow`,8641,5,10],xleftharpoondown:[`xArrow`,8637,10,5],xrightleftharpoons:[`xArrow`,8652,10,10],xrightharpoonup:[`xArrow`,8640,5,10],xleftharpoonup:[`xArrow`,8636,10,5],xleftrightharpoons:[`xArrow`,8651,10,10],mathllap:[`MathLap`,`l`,!1],mathrlap:[`MathLap`,`r`,!1],mathclap:[`MathLap`,`c`,!1],clap:[`MtLap`,`c`],textllap:[`MtLap`,`l`],textrlap:[`MtLap`,`r`],textclap:[`MtLap`,`c`],cramped:`Cramped`,crampedllap:[`MathLap`,`l`,!0],crampedrlap:[`MathLap`,`r`,!0],crampedclap:[`MathLap`,`c`,!0],crampedsubstack:[`Macro`,`\\begin{crampedsubarray}{c}#1\\end{crampedsubarray}`,1],mathmbox:`MathMBox`,mathmakebox:`MathMakeBox`,overbracket:`UnderOverBracket`,underbracket:`UnderOverBracket`,refeq:`HandleRef`,MoveEqLeft:[`Macro`,`\\hspace{#1em}&\\hspace{-#1em}`,1,`2`],Aboxed:`Aboxed`,ArrowBetweenLines:`ArrowBetweenLines`,vdotswithin:`VDotsWithin`,shortvdotswithin:`ShortVDotsWithin`,MTFlushSpaceAbove:`FlushSpaceAbove`,MTFlushSpaceBelow:`FlushSpaceBelow`,DeclarePairedDelimiter:`DeclarePairedDelimiter`,DeclarePairedDelimiterX:`DeclarePairedDelimiterX`,DeclarePairedDelimiterXPP:`DeclarePairedDelimiterXPP`,DeclarePairedDelimiters:`DeclarePairedDelimiter`,DeclarePairedDelimitersX:`DeclarePairedDelimiterX`,DeclarePairedDelimitersXPP:`DeclarePairedDelimiterXPP`,centercolon:[`CenterColon`,!0,!0],ordinarycolon:[`CenterColon`,!1],MTThinColon:[`CenterColon`,!0,!0,!0],coloneqq:[`Relation`,`:=`,`≔`],Coloneqq:[`Relation`,`::=`,`⩴`],coloneq:[`Relation`,`:-`],Coloneq:[`Relation`,`::-`],eqqcolon:[`Relation`,`=:`,`≕`],Eqqcolon:[`Relation`,`=::`],eqcolon:[`Relation`,`-:`,`∹`],Eqcolon:[`Relation`,`-::`],colonapprox:[`Relation`,`:\\approx`],Colonapprox:[`Relation`,`::\\approx`],colonsim:[`Relation`,`:\\sim`],Colonsim:[`Relation`,`::\\sim`],dblcolon:[`Relation`,`::`,`∷`],nuparrow:[`NArrow`,`↑`,`.06em`],ndownarrow:[`NArrow`,`↓`,`.25em`],bigtimes:[`Macro`,`\\mathop{\\Large\\kern-.1em\\boldsymbol{\\times}\\kern-.1em}`],splitfrac:[`SplitFrac`,!1],splitdfrac:[`SplitFrac`,!0],xmathstrut:`XMathStrut`,prescript:`Prescript`,newtagform:[`NewTagForm`,!1],renewtagform:[`NewTagForm`,!0],usetagform:`UseTagForm`,adjustlimits:[`MacroWithTemplate`,`\\mathop{{#1}\\vphantom{{#3}}}_{{#2}\\vphantom{{#4}}}\\mathop{{#3}\\vphantom{{#1}}}_{{#4}\\vphantom{{#2}}}`,4,,`_`,,`_`],mathtoolsset:`SetOptions`},a.MathtoolsMethods),new r.EnvironmentMap(`mathtools-environments`,n.default.environment,{dcases:[`Array`,null,`\\{`,``,`ll`,null,`.2em`,`D`],rcases:[`Array`,null,``,`\\}`,`ll`,null,`.2em`],drcases:[`Array`,null,``,`\\}`,`ll`,null,`.2em`,`D`],"dcases*":[`Cases`,null,`{`,``,`D`],"rcases*":[`Cases`,null,``,`}`],"drcases*":[`Cases`,null,``,`}`,`D`],"cases*":[`Cases`,null,`{`,``],"matrix*":[`MtMatrix`,null,null,null],"pmatrix*":[`MtMatrix`,null,`(`,`)`],"bmatrix*":[`MtMatrix`,null,`[`,`]`],"Bmatrix*":[`MtMatrix`,null,`\\{`,`\\}`],"vmatrix*":[`MtMatrix`,null,`\\vert`,`\\vert`],"Vmatrix*":[`MtMatrix`,null,`\\Vert`,`\\Vert`],"smallmatrix*":[`MtSmallMatrix`,null,null,null],psmallmatrix:[`MtSmallMatrix`,null,`(`,`)`,`c`],"psmallmatrix*":[`MtSmallMatrix`,null,`(`,`)`],bsmallmatrix:[`MtSmallMatrix`,null,`[`,`]`,`c`],"bsmallmatrix*":[`MtSmallMatrix`,null,`[`,`]`],Bsmallmatrix:[`MtSmallMatrix`,null,`\\{`,`\\}`,`c`],"Bsmallmatrix*":[`MtSmallMatrix`,null,`\\{`,`\\}`],vsmallmatrix:[`MtSmallMatrix`,null,`\\vert`,`\\vert`,`c`],"vsmallmatrix*":[`MtSmallMatrix`,null,`\\vert`,`\\vert`],Vsmallmatrix:[`MtSmallMatrix`,null,`\\Vert`,`\\Vert`,`c`],"Vsmallmatrix*":[`MtSmallMatrix`,null,`\\Vert`,`\\Vert`],crampedsubarray:[`Array`,null,null,null,null,`0em`,`0.1em`,`S'`,1],multlined:`MtMultlined`,spreadlines:[`SpreadLines`,!0],lgathered:[`AmsEqnArray`,null,null,null,`l`,null,`.5em`,`D`],rgathered:[`AmsEqnArray`,null,null,null,`r`,null,`.5em`,`D`]},a.MathtoolsMethods),new r.DelimiterMap(`mathtools-delimiters`,n.default.delimiter,{"\\lparen":`(`,"\\rparen":`)`}),new r.CommandMap(`mathtools-characters`,{":":[`CenterColon`,!0]},a.MathtoolsMethods)})),Rt=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},r=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.MathtoolsTagFormat=void 0;var a=i(L()),o=V(),s=0;function c(e,i){var c=i.parseOptions.options.tags;c!==`base`&&e.tags.hasOwnProperty(c)&&o.TagsFactory.add(c,e.tags[c]);var l=function(e){t(o,e);function o(){var t,r,o=e.call(this)||this;o.mtFormats=new Map,o.mtCurrent=null;var s=i.parseOptions.options.mathtools.tagforms;try{for(var c=n(Object.keys(s)),l=c.next();!l.done;l=c.next()){var u=l.value;if(!Array.isArray(s[u])||s[u].length!==3)throw new a.default(`InvalidTagFormDef`,`The tag form definition for "%1" should be an array fo three strings`,u);o.mtFormats.set(u,s[u])}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}return o}return o.prototype.formatTag=function(t){if(this.mtCurrent){var n=r(this.mtCurrent,3),i=n[0],a=n[1],o=n[2];return o?`${i}${o}{${t}}${a}`:`${i}${t}${a}`}return e.prototype.formatTag.call(this,t)},o}(o.TagsFactory.create(i.parseOptions.options.tags).constructor);s++;var u=`MathtoolsTags-`+s;o.TagsFactory.add(u,l),i.parseOptions.options.tags=u}e.MathtoolsTagFormat=c})),zt=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.MultlinedItem=void 0;var r=Xe(),i=n(I()),a=K();e.MultlinedItem=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`multlined`},enumerable:!1,configurable:!0}),n.prototype.EndTable=function(){if((this.Size()||this.row.length)&&(this.EndEntry(),this.EndRow()),this.table.length>1){var t=this.factory.configuration.options.mathtools,n=t.multlinegap,r=t[`firstline-afterskip`]||n,o=t[`lastline-preskip`]||n,s=i.default.getChildren(this.table[0])[0];i.default.getAttribute(s,`columnalign`)!==a.TexConstant.Align.RIGHT&&s.appendChild(this.create(`node`,`mspace`,[],{width:r}));var c=i.default.getChildren(this.table[this.table.length-1])[0];if(i.default.getAttribute(c,`columnalign`)!==a.TexConstant.Align.LEFT){var l=i.default.getChildren(c)[0];l.childNodes.unshift(null);var u=this.create(`node`,`mspace`,[],{width:o});i.default.setChild(l,0,u)}}e.prototype.EndTable.call(this)},n}(r.MultlineItem)})),Bt=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},r;Object.defineProperty(e,"__esModule",{value:!0}),e.MathtoolsConfiguration=e.fixPrescripts=e.PAIREDDELIMS=void 0;var a=H(),o=W(),s=n(I()),c=i();Lt();var l=Ft(),u=Rt(),d=zt();e.PAIREDDELIMS=`mathtools-paired-delims`;function f(t){new o.CommandMap(e.PAIREDDELIMS,{},{}),t.append(a.Configuration.local({handler:{macro:[e.PAIREDDELIMS]},priority:-5}))}function p(e,n){var r,i,a=n.parseOptions,o=a.options.mathtools.pairedDelimiters;try{for(var s=t(Object.keys(o)),c=s.next();!c.done;c=s.next()){var d=c.value;l.MathtoolsUtil.addPairedDelims(a,d,o[d])}}catch(e){r={error:e}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}(0,u.MathtoolsTagFormat)(e,n)}function m(e){var n,r,i,a,o,c,l=e.data;try{for(var u=t(l.getList(`mmultiscripts`)),d=u.next();!d.done;d=u.next()){var f=d.value;if(f.getProperty(`fixPrescript`)){var p=s.default.getChildren(f),m=0;try{for(var h=(i=void 0,t([1,2])),g=h.next();!g.done;g=h.next()){var _=g.value;p[_]||(s.default.setChild(f,_,l.nodeFactory.create(`node`,`none`)),m++)}}catch(e){i={error:e}}finally{try{g&&!g.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}try{for(var v=(o=void 0,t([4,5])),y=v.next();!y.done;y=v.next()){var _=y.value;s.default.isType(p[_],`mrow`)&&s.default.getChildren(p[_]).length===0&&s.default.setChild(f,_,l.nodeFactory.create(`node`,`none`))}}catch(e){o={error:e}}finally{try{y&&!y.done&&(c=v.return)&&c.call(v)}finally{if(o)throw o.error}}m===2&&p.splice(1,2)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}e.fixPrescripts=m,e.MathtoolsConfiguration=a.Configuration.create(`mathtools`,{handler:{macro:[`mathtools-macros`,`mathtools-delimiters`],environment:[`mathtools-environments`],delimiter:[`mathtools-delimiters`],character:[`mathtools-characters`]},items:(r={},r[d.MultlinedItem.prototype.kind]=d.MultlinedItem,r),init:f,config:p,postprocessors:[[m,-6]],options:{mathtools:{multlinegap:`1em`,"multlined-pos":`c`,"firstline-afterskip":``,"lastline-preskip":``,"smallmatrix-align":`c`,shortvdotsadjustabove:`.2em`,shortvdotsadjustbelow:`.2em`,centercolon:!1,"centercolon-offset":`.04em`,"thincolon-dx":`-.04em`,"thincolon-dw":`-.08em`,"use-unicode":!1,"prescript-sub-format":``,"prescript-sup-format":``,"prescript-arg-format":``,"allow-mathtoolsset":!0,pairedDelimiters:(0,c.expandable)({}),tagforms:(0,c.expandable)({})}}})})),Vt=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mhchemParser=void 0,e.mhchemParser=function(){function e(){}return e.toTex=function(e,t){return r.go(n.go(e,t),t!==`tex`)},e}();function t(e){var t,n,r={};for(t in e)for(n in e[t]){var i=n.split(`|`);e[t][n].stateArray=i;for(var a=0;a<i.length;a++)r[i[a]]=[]}for(t in e)for(n in e[t])for(var i=e[t][n].stateArray||[],a=0;a<i.length;a++){var o=e[t][n];o.action_=[].concat(o.action_);for(var s=0;s<o.action_.length;s++)typeof o.action_[s]==`string`&&(o.action_[s]={type_:o.action_[s]});for(var c=t.split(`|`),l=0;l<c.length;l++)if(i[a]===`*`){var u=void 0;for(u in r)r[u].push({pattern:c[l],task:o})}else r[i[a]].push({pattern:c[l],task:o})}return r}var n={go:function(e,t){if(!e)return[];t===void 0&&(t=`ce`);var r=`0`,i={};i.parenthesisLevel=0,e=e.replace(/\n/g,` `),e=e.replace(/[\u2212\u2013\u2014\u2010]/g,`-`),e=e.replace(/[\u2026]/g,`...`);for(var a,o=10,s=[];;){a===e?o--:(o=10,a=e);var c=n.stateMachines[t],l=c.transitions[r]||c.transitions[`*`];iterateTransitions:for(var u=0;u<l.length;u++){var d=n.patterns.match_(l[u].pattern,e);if(d){for(var f=l[u].task,p=0;p<f.action_.length;p++){var m=void 0;if(c.actions[f.action_[p].type_])m=c.actions[f.action_[p].type_](i,d.match_,f.action_[p].option);else if(n.actions[f.action_[p].type_])m=n.actions[f.action_[p].type_](i,d.match_,f.action_[p].option);else throw[`MhchemBugA`,`mhchem bug A. Please report. (`+f.action_[p].type_+`)`];n.concatArray(s,m)}if(r=f.nextState||r,e.length>0){if(f.revisit||(e=d.remainder),!f.toContinue)break iterateTransitions}else return s}}if(o<=0)throw[`MhchemBugU`,`mhchem bug U. Please report.`]}},concatArray:function(e,t){if(t)if(Array.isArray(t))for(var n=0;n<t.length;n++)e.push(t[n]);else e.push(t)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return t&&t[0]?{match_:t.slice(1),remainder:e.substr(t[0].length)}:null},"(-)(9)^(-9)":/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/,"state of aggregation $":function(e){var t=n.patterns.findObserveGroups(e,``,/^\([a-z]{1,3}(?=[\),])/,`)`,``);if(t&&t.remainder.match(/^($|[\s,;\)\]\}])/))return t;var r=e.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return r?{match_:r[0],remainder:e.substr(r[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". __* ":/^([.\u22C5\u00B7\u2022]|[*])\s*/,"...":/^\.\.\.(?=$|[^.])/,"^{(...)}":function(e){return n.patterns.findObserveGroups(e,`^{`,``,``,`}`)},"^($...$)":function(e){return n.patterns.findObserveGroups(e,`^`,`$`,`$`,``)},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(e){return n.patterns.findObserveGroups(e,`^`,/^\\[a-zA-Z]+\{/,`}`,``,``,`{`,`}`,``,!0)},"^\\x{}":function(e){return n.patterns.findObserveGroups(e,`^`,/^\\[a-zA-Z]+\{/,`}`,``)},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(e){return n.patterns.findObserveGroups(e,`_{`,``,``,`}`)},"_($...$)":function(e){return n.patterns.findObserveGroups(e,`_`,`$`,`$`,``)},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(e){return n.patterns.findObserveGroups(e,`_`,/^\\[a-zA-Z]+\{/,`}`,``,``,`{`,`}`,``,!0)},"_\\x{}":function(e){return n.patterns.findObserveGroups(e,`_`,/^\\[a-zA-Z]+\{/,`}`,``)},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}^":/^\{\}(?=\^)/,"{}":/^\{\}/,"{...}":function(e){return n.patterns.findObserveGroups(e,``,`{`,`}`,``)},"{(...)}":function(e){return n.patterns.findObserveGroups(e,`{`,``,``,`}`)},"$...$":function(e){return n.patterns.findObserveGroups(e,``,`$`,`$`,``)},"${(...)}$__$(...)$":function(e){return n.patterns.findObserveGroups(e,"${",``,``,`}$`)||n.patterns.findObserveGroups(e,`$`,``,``,`$`)},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return n.patterns.findObserveGroups(e,`\\bond{`,``,``,`}`)},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return n.patterns.findObserveGroups(e,`[`,``,``,`]`)},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return n.patterns.findObserveGroups(e,``,/^\\[a-zA-Z]+\{/,`}`,``,``,`{`,`}`,``,!0)},"\\x{}":function(e){return n.patterns.findObserveGroups(e,``,/^\\[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])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return n.patterns.findObserveGroups(e,`\\frac{`,``,``,`}`,`{`,``,``,`}`)},"\\overset{(...)}":function(e){return n.patterns.findObserveGroups(e,`\\overset{`,``,``,`}`,`{`,``,``,`}`)},"\\underset{(...)}":function(e){return n.patterns.findObserveGroups(e,`\\underset{`,``,``,`}`,`{`,``,``,`}`)},"\\underbrace{(...)}":function(e){return n.patterns.findObserveGroups(e,`\\underbrace{`,``,``,`}_`,`{`,``,``,`}`)},"\\color{(...)}":function(e){return n.patterns.findObserveGroups(e,`\\color{`,``,``,`}`)},"\\color{(...)}{(...)}":function(e){return n.patterns.findObserveGroups(e,`\\color{`,``,``,`}`,`{`,``,``,`}`)||n.patterns.findObserveGroups(e,`\\color`,`\\`,``,/^(?=\{)/,`{`,``,``,`}`)},"\\ce{(...)}":function(e){return n.patterns.findObserveGroups(e,`\\ce{`,``,``,`}`)},"\\pu{(...)}":function(e){return n.patterns.findObserveGroups(e,`\\pu{`,``,``,`}`)},oxidation$:/^(?:[+-][IVX]+|(?:\\pm|\$\\pm\$|\+-|\+\/-)\s*0)$/,"d-oxidation$":/^(?:[+-]?[IVX]+|(?:\\pm|\$\\pm\$|\+-|\+\/-)\s*0)$/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t=e.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(t)return{match_:t[0],remainder:e.substr(t[0].length)};var r=n.patterns.findObserveGroups(e,``,`$`,`$`,``);return r&&(t=r.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),t)?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,n,r,i,a,o,s,c,l){var u=function(e,t){if(typeof t==`string`)return e.indexOf(t)===0?t:null;var n=e.match(t);return n?n[0]:null},d=function(e,t,n){for(var r=0;t<e.length;){var i=e.charAt(t),a=u(e.substr(t),n);if(a!==null&&r===0)return{endMatchBegin:t,endMatchEnd:t+a.length};if(i===`{`)r++;else if(i===`}`){if(r===0)throw[`ExtraCloseMissingOpen`,`Extra close brace or missing open brace`];r--}t++}return null},f=u(e,t);if(f===null||(e=e.substr(f.length),f=u(e,n),f===null))return null;var p=d(e,f.length,r||i);if(p===null)return null;var m=e.substring(0,r?p.endMatchEnd:p.endMatchBegin);if(a||o){var h=this.findObserveGroups(e.substr(p.endMatchEnd),a,o,s,c);if(h===null)return null;var g=[m,h.match_];return{match_:l?g.join(``):g,remainder:h.remainder}}else return{match_:m,remainder:e.substr(p.endMatchEnd)}},match_:function(e,t){var r=n.patterns.patterns[e];if(r===void 0)throw[`MhchemBugP`,`mhchem bug P. Please report. (`+e+`)`];if(typeof r==`function`)return n.patterns.patterns[e](t);var i=t.match(r);return i?i.length>2?{match_:i.slice(1),remainder:t.substr(i[0].length)}:{match_:i[1]||i[0],remainder:t.substr(i[0].length)}:null}},actions:{"a=":function(e,t){e.a=(e.a||``)+t},"b=":function(e,t){e.b=(e.b||``)+t},"p=":function(e,t){e.p=(e.p||``)+t},"o=":function(e,t){e.o=(e.o||``)+t},"o=+p1":function(e,t,n){e.o=(e.o||``)+n},"q=":function(e,t){e.q=(e.q||``)+t},"d=":function(e,t){e.d=(e.d||``)+t},"rm=":function(e,t){e.rm=(e.rm||``)+t},"text=":function(e,t){e.text_=(e.text_||``)+t},insert:function(e,t,n){return{type_:n}},"insert+p1":function(e,t,n){return{type_:n,p1:t}},"insert+p1+p2":function(e,t,n){return{type_:n,p1:t[0],p2:t[1]}},copy:function(e,t){return t},write:function(e,t,n){return n},rm:function(e,t){return{type_:`rm`,p1:t}},text:function(e,t){return n.go(t,`text`)},"tex-math":function(e,t){return n.go(t,`tex-math`)},"tex-math tight":function(e,t){return n.go(t,`tex-math tight`)},bond:function(e,t,n){return{type_:`bond`,kind_:n||t}},"color0-output":function(e,t){return{type_:`color0`,color:t}},ce:function(e,t){return n.go(t,`ce`)},pu:function(e,t){return n.go(t,`pu`)},"1/2":function(e,t){var n=[];t.match(/^[+\-]/)&&(n.push(t.substr(0,1)),t=t.substr(1));var r=t.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return r[1]=r[1].replace(/\$/g,``),n.push({type_:`frac`,p1:r[1],p2:r[2]}),r[3]&&(r[3]=r[3].replace(/\$/g,``),n.push({type_:`tex-math`,p1:r[3]})),n},"9,9":function(e,t){return n.go(t,`9,9`)}},stateMachines:{tex:{transitions:t({empty:{0:{action_:`copy`}},"\\ce{(...)}":{0:{action_:[{type_:`write`,option:`{`},`ce`,{type_:`write`,option:`}`}]}},"\\pu{(...)}":{0:{action_:[{type_:`write`,option:`{`},`pu`,{type_:`write`,option:`}`}]}},else:{0:{action_:`copy`}}}),actions:{}},ce:{transitions:t({empty:{"*":{action_:`output`}},else:{"0|1|2":{action_:`beginsWithBond=false`,revisit:!0,toContinue:!0}},oxidation$:{0:{action_:`oxidation-output`}},CMT:{r:{action_:`rdt=`,nextState:`rt`},rd:{action_:`rqt=`,nextState:`rdt`}},arrowUpDown:{"0|1|2|as":{action_:[`sb=false`,`output`,`operator`],nextState:`1`}},uprightEntities:{"0|1|2":{action_:[`o=`,`output`],nextState:`1`}},orbital:{"0|1|2|3":{action_:`o=`,nextState:`o`}},"->":{"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:!1},nextState:`2`},q:{action_:{type_:`- after o/d`,option:!1},nextState:`2`},"d|qd|dq":{action_:{type_:`- after o/d`,option:!0},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":{action_:[]}},space:{a:{action_:[],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`}},"^_":{"*":{action_:[]}},"^{(...)}|^($...$)":{"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},{type_:`insert`,option:`tinySkip`}],nextState:`1`}},"{}":{"*":{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=`},"0|1|2|3|as|b|p|bp|o":{action_:`o=`,nextState:`o`},"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{(...)}{(...)}":{"*":{action_:[{type_:`output`,option:2},`color-output`],nextState:`3`}},"\\color{(...)}":{"*":{action_:[{type_:`output`,option:2},`color0-output`]}},"\\ce{(...)}":{"*":{action_:[{type_:`output`,option:2},`ce`],nextState:`3`}},"\\,":{"*":{action_:[{type_:`output`,option:1},`copy`],nextState:`1`}},"\\pu{(...)}":{"*":{action_:[`output`,{type_:`write`,option:`{`},`pu`,{type_:`write`,option:`}`}],nextState:`3`}},"\\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:!0},as:{action_:[`output`,`sb=true`],nextState:`1`,revisit:!0},"r|rt|rd|rdt|rdq":{action_:[`output`],nextState:`0`,revisit:!0},"*":{action_:[`output`,`copy`],nextState:`3`}}}),actions:{"o after d":function(e,t){var r;if((e.d||``).match(/^[1-9][0-9]*$/)){var i=e.d;e.d=void 0,r=this.output(e),r.push({type_:`tinySkip`}),e.b=i}else r=this.output(e);return n.actions[`o=`](e,t),r},"d= kv":function(e,t){e.d=t,e.dType=`kv`},"charge or bond":function(e,t){if(e.beginsWithBond){var r=[];return n.concatArray(r,this.output(e)),n.concatArray(r,n.actions.bond(e,t,`-`)),r}else{e.d=t;return}},"- after o/d":function(e,t,r){var i=n.patterns.match_(`orbital`,e.o||``),a=n.patterns.match_(`one lowercase greek letter $`,e.o||``),o=n.patterns.match_(`one lowercase latin letter $`,e.o||``),s=n.patterns.match_(`$one lowercase latin letter$ $`,e.o||``),c=t===`-`&&(i&&i.remainder===``||a||o||s);c&&!e.a&&!e.b&&!e.p&&!e.d&&!e.q&&!i&&o&&(e.o=`$`+e.o+`$`);var l=[];return c?(n.concatArray(l,this.output(e)),l.push({type_:`hyphen`})):(i=n.patterns.match_(`digits`,e.d||``),r&&i&&i.remainder===``?(n.concatArray(l,n.actions[`d=`](e,t)),n.concatArray(l,this.output(e))):(n.concatArray(l,this.output(e)),n.concatArray(l,n.actions.bond(e,t,`-`)))),l},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:`state of aggregation`,p1:n.go(t,`o`)}},comma:function(e,t){var n=t.replace(/\s*$/,``);return n!==t&&e.parenthesisLevel===0?{type_:`comma enumeration L`,p1:n}:{type_:`comma enumeration M`,p1:n}},output:function(e,t,r){var i;if(!e.r)i=[],!e.a&&!e.b&&!e.p&&!e.o&&!e.q&&!e.d&&!r||(e.sb&&i.push({type_:`entitySkip`}),!e.o&&!e.q&&!e.d&&!e.b&&!e.p&&r!==2?(e.o=e.a,e.a=void 0):!e.o&&!e.q&&!e.d&&(e.b||e.p)?(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):e.o&&e.dType===`kv`&&n.patterns.match_(`d-oxidation$`,e.d||``)?e.dType=`oxidation`:e.o&&e.dType===`kv`&&!e.q&&(e.dType=void 0),i.push({type_:`chemfive`,a:n.go(e.a,`a`),b:n.go(e.b,`bd`),p:n.go(e.p,`pq`),o:n.go(e.o,`o`),q:n.go(e.q,`pq`),d:n.go(e.d,e.dType===`oxidation`?`oxidation`:`bd`),dType:e.dType}));else{var a=void 0;a=e.rdt===`M`?n.go(e.rd,`tex-math`):e.rdt===`T`?[{type_:`text`,p1:e.rd||``}]:n.go(e.rd,`ce`);var o=void 0;o=e.rqt===`M`?n.go(e.rq,`tex-math`):e.rqt===`T`?[{type_:`text`,p1:e.rq||``}]:n.go(e.rq,`ce`),i={type_:`arrow`,r:e.r,rd:a,rq:o}}for(var s in e)s!==`parenthesisLevel`&&s!==`beginsWithBond`&&delete e[s];return i},"oxidation-output":function(e,t){var r=[`{`];return n.concatArray(r,n.go(t,`oxidation`)),r.push(`}`),r},"frac-output":function(e,t){return{type_:`frac-ce`,p1:n.go(t[0],`ce`),p2:n.go(t[1],`ce`)}},"overset-output":function(e,t){return{type_:`overset`,p1:n.go(t[0],`ce`),p2:n.go(t[1],`ce`)}},"underset-output":function(e,t){return{type_:`underset`,p1:n.go(t[0],`ce`),p2:n.go(t[1],`ce`)}},"underbrace-output":function(e,t){return{type_:`underbrace`,p1:n.go(t[0],`ce`),p2:n.go(t[1],`ce`)}},"color-output":function(e,t){return{type_:`color`,color1:t[0],color2:n.go(t[1],`ce`)}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,n){return{type_:`operator`,kind_:n||t}}}},a:{transitions:t({empty:{"*":{action_:[]}},"1/2$":{0:{action_:`1/2`}},else:{0:{action_:[],nextState:`1`,revisit:!0}},"${(...)}$__$(...)$":{"*":{action_:`tex-math tight`,nextState:`1`}},",":{"*":{action_:{type_:`insert`,option:`commaDecimal`}}},else2:{"*":{action_:`copy`}}}),actions:{}},o:{transitions:t({empty:{"*":{action_:[]}},"1/2$":{0:{action_:`1/2`}},else:{0:{action_:[],nextState:`1`,revisit:!0}},letters:{"*":{action_:`rm`}},"\\ca":{"*":{action_:{type_:`insert`,option:`circa`}}},"\\pu{(...)}":{"*":{action_:[{type_:`write`,option:`{`},`pu`,{type_:`write`,option:`}`}]}},"\\x{}{}|\\x{}|\\x":{"*":{action_:`copy`}},"${(...)}$__$(...)$":{"*":{action_:`tex-math`}},"{(...)}":{"*":{action_:[{type_:`write`,option:`{`},`text`,{type_:`write`,option:`}`}]}},else2:{"*":{action_:`copy`}}}),actions:{}},text:{transitions:t({empty:{"*":{action_:`output`}},"{...}":{"*":{action_:`text=`}},"${(...)}$__$(...)$":{"*":{action_:`tex-math`}},"\\greek":{"*":{action_:[`output`,`rm`]}},"\\pu{(...)}":{"*":{action_:[`output`,{type_:`write`,option:`{`},`pu`,{type_:`write`,option:`}`}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:[`output`,`copy`]}},else:{"*":{action_:`text=`}}}),actions:{output:function(e){if(e.text_){var t={type_:`text`,p1:e.text_};for(var n in e)delete e[n];return t}}}},pq:{transitions:t({empty:{"*":{action_:[]}},"state of aggregation $":{"*":{action_:`state of aggregation`}},i$:{0:{action_:[],nextState:`!f`,revisit:!0}},"(KV letters),":{0:{action_:`rm`,nextState:`0`}},formula$:{0:{action_:[],nextState:`f`,revisit:!0}},"1/2$":{0:{action_:`1/2`}},else:{0:{action_:[],nextState:`!f`,revisit:!0}},"${(...)}$__$(...)$":{"*":{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{(...)}{(...)}":{"*":{action_:`color-output`}},"\\color{(...)}":{"*":{action_:`color0-output`}},"\\ce{(...)}":{"*":{action_:`ce`}},"\\pu{(...)}":{"*":{action_:[{type_:`write`,option:`{`},`pu`,{type_:`write`,option:`}`}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:`copy`}},else2:{"*":{action_:`copy`}}}),actions:{"state of aggregation":function(e,t){return{type_:`state of aggregation subscript`,p1:n.go(t,`o`)}},"color-output":function(e,t){return{type_:`color`,color1:t[0],color2:n.go(t[1],`pq`)}}}},bd:{transitions:t({empty:{"*":{action_:[]}},x$:{0:{action_:[],nextState:`!f`,revisit:!0}},formula$:{0:{action_:[],nextState:`f`,revisit:!0}},else:{0:{action_:[],nextState:`!f`,revisit:!0}},"-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{(...)}{(...)}":{"*":{action_:`color-output`}},"\\color{(...)}":{"*":{action_:`color0-output`}},"\\ce{(...)}":{"*":{action_:`ce`}},"\\pu{(...)}":{"*":{action_:[{type_:`write`,option:`{`},`pu`,{type_:`write`,option:`}`}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:`copy`}},else2:{"*":{action_:`copy`}}}),actions:{"color-output":function(e,t){return{type_:`color`,color1:t[0],color2:n.go(t[1],`bd`)}}}},oxidation:{transitions:t({empty:{"*":{action_:`roman-numeral`}},"pm-operator":{"*":{action_:{type_:`o=+p1`,option:`\\pm`}}},else:{"*":{action_:`o=`}}}),actions:{"roman-numeral":function(e){return{type_:`roman numeral`,p1:e.o||``}}}},"tex-math":{transitions:t({empty:{"*":{action_:`output`}},"\\ce{(...)}":{"*":{action_:[`output`,`ce`]}},"\\pu{(...)}":{"*":{action_:[`output`,{type_:`write`,option:`{`},`pu`,{type_:`write`,option:`}`}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:`o=`}},else:{"*":{action_:`o=`}}}),actions:{output:function(e){if(e.o){var t={type_:`tex-math`,p1:e.o};for(var n in e)delete e[n];return t}}}},"tex-math tight":{transitions:t({empty:{"*":{action_:`output`}},"\\ce{(...)}":{"*":{action_:[`output`,`ce`]}},"\\pu{(...)}":{"*":{action_:[`output`,{type_:`write`,option:`{`},`pu`,{type_:`write`,option:`}`}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:`o=`}},"-|+":{"*":{action_:`tight operator`}},else:{"*":{action_:`o=`}}}),actions:{"tight operator":function(e,t){e.o=(e.o||``)+`{`+t+`}`},output:function(e){if(e.o){var t={type_:`tex-math`,p1:e.o};for(var n in e)delete e[n];return t}}}},"9,9":{transitions:t({empty:{"*":{action_:[]}},",":{"*":{action_:`comma`}},else:{"*":{action_:`copy`}}}),actions:{comma:function(){return{type_:`commaDecimal`}}}},pu:{transitions:t({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":{action_:[]}},"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(e,t){var r=[];return t[0]===`+-`||t[0]===`+/-`?r.push(`\\pm `):t[0]&&r.push(t[0]),t[1]&&(n.concatArray(r,n.go(t[1],`pu-9,9`)),t[2]&&(t[2].match(/[,.]/)?n.concatArray(r,n.go(t[2],`pu-9,9`)):r.push(t[2])),(t[3]||t[4])&&(t[3]===`e`||t[4]===`*`?r.push({type_:`cdot`}):r.push({type_:`times`}))),t[5]&&r.push(`10^{`+t[5]+`}`),r},"number^":function(e,t){var r=[];return t[0]===`+-`||t[0]===`+/-`?r.push(`\\pm `):t[0]&&r.push(t[0]),n.concatArray(r,n.go(t[1],`pu-9,9`)),r.push(`^{`+t[2]+`}`),r},operator:function(e,t,n){return{type_:`operator`,kind_:n||t}},space:function(){return{type_:`pu-space-1`}},output:function(e){var t,r=n.patterns.match_(`{(...)}`,e.d||``);r&&r.remainder===``&&(e.d=r.match_);var i=n.patterns.match_(`{(...)}`,e.q||``);if(i&&i.remainder===``&&(e.q=i.match_),e.d&&=(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,`{}^{\\circ}C`),e.d.replace(/\u00B0F|\^oF|\^{o}F/g,`{}^{\\circ}F`)),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,`{}^{\\circ}C`),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,`{}^{\\circ}F`);var a={d:n.go(e.d,`pu`),q:n.go(e.q,`pu`)};e.o===`//`?t={type_:`pu-frac`,p1:a.d,p2:a.q}:(t=a.d,a.d.length>1||a.q.length>1?t.push({type_:` / `}):t.push({type_:`/`}),n.concatArray(t,a.q))}else t=n.go(e.d,`pu-2`);for(var o in e)delete e[o];return t}}},"pu-2":{transitions:t({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(e,t){e.rm+=`^{`+t+`}`},space:function(){return{type_:`pu-space-2`}},output:function(e){var t=[];if(e.rm){var r=n.patterns.match_(`{(...)}`,e.rm||``);t=r&&r.remainder===``?n.go(r.match_,`pu`):{type_:`rm`,p1:e.rm}}for(var i in e)delete e[i];return t}}},"pu-9,9":{transitions:t({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(e){var t=[];if(e.text_=e.text_||``,e.text_.length>4){var n=e.text_.length%3;n===0&&(n=3);for(var r=e.text_.length-3;r>0;r-=3)t.push(e.text_.substr(r,3)),t.push({type_:`1000 separator`});t.push(e.text_.substr(0,n)),t.reverse()}else t.push(e.text_);for(var i in e)delete e[i];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||``,e.text_.length>4){var n=e.text_.length-3,r=void 0;for(r=0;r<n;r+=3)t.push(e.text_.substr(r,3)),t.push({type_:`1000 separator`});t.push(e.text_.substr(r))}else t.push(e.text_);for(var i in e)delete e[i];return t}}}}},r={go:function(e,t){if(!e)return``;for(var n=``,i=!1,a=0;a<e.length;a++){var o=e[a];typeof o==`string`?n+=o:(n+=r._go2(o),o.type_===`1st-level escape`&&(i=!0))}return t&&!i&&n&&(n=`{`+n+`}`),n},_goInner:function(e){return r.go(e,!1)},_go2:function(e){var t;switch(e.type_){case`chemfive`:t=``;var n={a:r._goInner(e.a),b:r._goInner(e.b),p:r._goInner(e.p),o:r._goInner(e.o),q:r._goInner(e.q),d:r._goInner(e.d)};n.a&&(n.a.match(/^[+\-]/)&&(n.a=`{`+n.a+`}`),t+=n.a+`\\,`),(n.b||n.p)&&(t+=`{\\vphantom{A}}`,t+=`^{\\hphantom{`+(n.b||``)+`}}_{\\hphantom{`+(n.p||``)+`}}`,t+=`\\mkern-1.5mu`,t+=`{\\vphantom{A}}`,t+=`^{\\smash[t]{\\vphantom{2}}\\llap{`+(n.b||``)+`}}`,t+=`_{\\vphantom{2}\\llap{\\smash[t]{`+(n.p||``)+`}}}`),n.o&&(n.o.match(/^[+\-]/)&&(n.o=`{`+n.o+`}`),t+=n.o),e.dType===`kv`?((n.d||n.q)&&(t+=`{\\vphantom{A}}`),n.d&&(t+=`^{`+n.d+`}`),n.q&&(t+=`_{\\smash[t]{`+n.q+`}}`)):e.dType===`oxidation`?(n.d&&(t+=`{\\vphantom{A}}`,t+=`^{`+n.d+`}`),n.q&&(t+=`{\\vphantom{A}}`,t+=`_{\\smash[t]{`+n.q+`}}`)):(n.q&&(t+=`{\\vphantom{A}}`,t+=`_{\\smash[t]{`+n.q+`}}`),n.d&&(t+=`{\\vphantom{A}}`,t+=`^{`+n.d+`}`));break;case`rm`:t=`\\mathrm{`+e.p1+`}`;break;case`text`:e.p1.match(/[\^_]/)?(e.p1=e.p1.replace(` `,`~`).replace(`-`,`\\text{-}`),t=`\\mathrm{`+e.p1+`}`):t=`\\text{`+e.p1+`}`;break;case`roman numeral`:t=`\\mathrm{`+e.p1+`}`;break;case`state of aggregation`:t=`\\mskip2mu `+r._goInner(e.p1);break;case`state of aggregation subscript`:t=`\\mskip1mu `+r._goInner(e.p1);break;case`bond`:if(t=r._getBond(e.kind_),!t)throw[`MhchemErrorBond`,`mhchem Error. Unknown bond type (`+e.kind_+`)`];break;case`frac`:var i=`\\frac{`+e.p1+`}{`+e.p2+`}`;t=`\\mathchoice{\\textstyle`+i+`}{`+i+`}{`+i+`}{`+i+`}`;break;case`pu-frac`:var a=`\\frac{`+r._goInner(e.p1)+`}{`+r._goInner(e.p2)+`}`;t=`\\mathchoice{\\textstyle`+a+`}{`+a+`}{`+a+`}{`+a+`}`;break;case`tex-math`:t=e.p1+` `;break;case`frac-ce`:t=`\\frac{`+r._goInner(e.p1)+`}{`+r._goInner(e.p2)+`}`;break;case`overset`:t=`\\overset{`+r._goInner(e.p1)+`}{`+r._goInner(e.p2)+`}`;break;case`underset`:t=`\\underset{`+r._goInner(e.p1)+`}{`+r._goInner(e.p2)+`}`;break;case`underbrace`:t=`\\underbrace{`+r._goInner(e.p1)+`}_{`+r._goInner(e.p2)+`}`;break;case`color`:t=`{\\color{`+e.color1+`}{`+r._goInner(e.color2)+`}}`;break;case`color0`:t=`\\color{`+e.color+`}`;break;case`arrow`:var o={rd:r._goInner(e.rd),rq:r._goInner(e.rq)},s=r._getArrow(e.r);o.rd||o.rq?e.r===`<=>`||e.r===`<=>>`||e.r===`<<=>`||e.r===`<-->`?(s=`\\long`+s,o.rd&&(s=`\\overset{`+o.rd+`}{`+s+`}`),o.rq&&(s=e.r===`<-->`?`\\underset{\\lower2mu{`+o.rq+`}}{`+s+`}`:`\\underset{\\lower6mu{`+o.rq+`}}{`+s+`}`),s=` {}\\mathrel{`+s+`}{} `):(o.rq&&(s+=`[{`+o.rq+`}]`),s+=`{`+o.rd+`}`,s=` {}\\mathrel{\\x`+s+`}{} `):s=` {}\\mathrel{\\long`+s+`}{} `,t=s;break;case`operator`:t=r._getOperator(e.kind_);break;case`1st-level escape`:t=e.p1+` `;break;case`space`:t=` `;break;case`tinySkip`:t=`\\mkern2mu`;break;case`entitySkip`:t=`~`;break;case`pu-space-1`:t=`~`;break;case`pu-space-2`:t=`\\mkern3mu `;break;case`1000 separator`:t=`\\mkern2mu `;break;case`commaDecimal`:t=`{,}`;break;case`comma enumeration L`:t=`{`+e.p1+`}\\mkern6mu `;break;case`comma enumeration M`:t=`{`+e.p1+`}\\mkern3mu `;break;case`comma enumeration S`:t=`{`+e.p1+`}\\mkern1mu `;break;case`hyphen`:t=`\\text{-}`;break;case`addition compound`:t=`\\,{\\cdot}\\,`;break;case`electron dot`:t=`\\mkern1mu \\bullet\\mkern1mu `;break;case`KV x`:t=`{\\times}`;break;case`prime`:t=`\\prime `;break;case`cdot`:t=`\\cdot `;break;case`tight cdot`:t=`\\mkern1mu{\\cdot}\\mkern1mu `;break;case`times`:t=`\\times `;break;case`circa`:t=`{\\sim}`;break;case`^`:t=`uparrow`;break;case`v`:t=`downarrow`;break;case`ellipsis`:t=`\\ldots `;break;case`/`:t=`/`;break;case` / `:t=`\\,/\\,`;break;default:throw[`MhchemBugT`,`mhchem bug T. Please report.`]}return t},_getArrow:function(e){switch(e){case`->`:return`rightarrow`;case`→`:return`rightarrow`;case`⟶`:return`rightarrow`;case`<-`:return`leftarrow`;case`<->`:return`leftrightarrow`;case`<-->`:return`leftrightarrows`;case`<=>`:return`rightleftharpoons`;case`⇌`:return`rightleftharpoons`;case`<=>>`:return`Rightleftharpoons`;case`<<=>`:return`Leftrightharpoons`;default:throw[`MhchemBugT`,`mhchem bug T. Please report.`]}},_getBond:function(e){switch(e){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:throw[`MhchemBugT`,`mhchem bug T. Please report.`]}},_getOperator:function(e){switch(e){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:throw[`MhchemBugT`,`mhchem bug T. Please report.`]}}}})),Ht=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.MhchemConfiguration=void 0;var n=H(),r=W(),i=t(L()),a=t(J()),o=X(),s=Vt(),c={};c.Macro=a.default.Macro,c.xArrow=o.AmsMethods.xArrow,c.Machine=function(e,t,n){var r=e.GetArgument(t),a;try{a=s.mhchemParser.toTex(r,n)}catch(e){throw new i.default(e[0],e[1])}e.string=a+e.string.substr(e.i),e.i=0},new r.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}`],xleftrightarrow:[`xArrow`,8596,6,6],xrightleftharpoons:[`xArrow`,8652,5,7],xRightleftharpoons:[`xArrow`,8652,5,7],xLeftrightharpoons:[`xArrow`,8652,5,7]},c),e.MhchemConfiguration=n.Configuration.create(`mhchem`,{handler:{macro:[`mhchem`]}})})),Ut=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NoErrorsConfiguration=void 0;var t=H();function n(e,t,n,r){var i=e.create(`token`,`mtext`,{},r.replace(/\n/g,` `));return e.create(`node`,`merror`,[i],{"data-mjx-error":t,title:t})}e.NoErrorsConfiguration=t.Configuration.create(`noerrors`,{nodes:{error:n}})})),Wt=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.NoUndefinedConfiguration=void 0;var n=H();function r(e,n){var r,i,a=e.create(`text`,`\\`+n),o=e.options.noundefined||{},s={};try{for(var c=t([`color`,`background`,`size`]),l=c.next();!l.done;l=c.next()){var u=l.value;o[u]&&(s[`math`+u]=o[u])}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}e.Push(e.create(`node`,`mtext`,[],s,a))}e.NoUndefinedConfiguration=n.Configuration.create(`noundefined`,{fallback:{macro:r},options:{noundefined:{color:`red`,background:``,size:``}},priority:3})})),Gt=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.AutoOpen=void 0;var r=B(),i=n(R()),a=n(I()),o=n(z());e.AutoOpen=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.openCount=0,t}return Object.defineProperty(n.prototype,"kind",{get:function(){return`auto open`},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),n.prototype.toMml=function(){var t=this.factory.configuration.parser,n=this.getProperty(`right`);if(this.getProperty(`smash`)){var r=e.prototype.toMml.call(this),s=t.create(`node`,`mpadded`,[r],{height:0,depth:0});this.Clear(),this.Push(t.create(`node`,`TeXAtom`,[s]))}n&&this.Push(new o.default(n,t.stack.env,t.configuration).mml());var c=i.default.fenced(this.factory.configuration,this.getProperty(`open`),e.prototype.toMml.call(this),this.getProperty(`close`),this.getProperty(`big`));return a.default.removeProperties(c,`open`,`close`,`texClass`),c},n.prototype.checkItem=function(t){if(t.isKind(`mml`)&&t.Size()===1){var n=t.toMml();n.isKind(`mo`)&&n.getText()===this.getProperty(`open`)&&this.openCount++}var r=t.getProperty(`autoclose`);return r&&r===this.getProperty(`close`)&&!this.openCount--?this.getProperty(`ignore`)?(this.Clear(),[[],!0]):[[this.toMml()],!0]:e.prototype.checkItem.call(this,t)},n.errors=Object.assign(Object.create(r.BaseItem.errors),{stop:[`ExtraOrMissingDelims`,`Extra open or missing close delimiter`]}),n}(r.BaseItem)})),Kt=e((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var r=n(J()),i=n(z()),a=n(L()),o=A(),s=n(R()),c=n(I()),l=Ue(),u={},d={"(":`)`,"[":`]`,"{":`}`,"|":`|`},f=/^(b|B)i(g{1,2})$/;u.Quantity=function(e,t,n,r,l,u,p){n===void 0&&(n=`(`),r===void 0&&(r=`)`),l===void 0&&(l=!1),u===void 0&&(u=``),p===void 0&&(p=``);var m=l?e.GetStar():!1,h=e.GetNext(),g=e.i,_=null;if(h===`\\`){if(e.i++,_=e.GetCS(),!_.match(f)){var v=e.create(`node`,`mrow`);e.Push(s.default.fenced(e.configuration,n,v,r)),e.i=g;return}h=e.GetNext()}var y=d[h];if(l&&h!==`{`)throw new a.default(`MissingArgFor`,`Missing argument for %1`,e.currentCS);if(!y){var v=e.create(`node`,`mrow`);e.Push(s.default.fenced(e.configuration,n,v,r)),e.i=g;return}if(u){var b=e.create(`token`,`mi`,{texClass:o.TEXCLASS.OP},u);p&&c.default.setAttribute(b,`mathvariant`,p),e.Push(e.itemFactory.create(`fn`,b))}if(h===`{`){var x=e.GetArgument(t);h=l?n:`\\{`,y=l?r:`\\}`,x=m?h+` `+x+` `+y:_?`\\`+_+`l`+h+` `+x+` \\`+_+`r`+y:`\\left`+h+` `+x+` \\right`+y,e.Push(new i.default(x,e.stack.env,e.configuration).mml());return}l&&(h=n,y=r),e.i++,e.Push(e.itemFactory.create(`auto open`).setProperties({open:h,close:y,big:_}))},u.Eval=function(e,t){var n=e.GetStar(),r=e.GetNext();if(r===`{`){var i=e.GetArgument(t),o=`\\left. `+(n?`\\smash{`+i+`}`:i)+` \\vphantom{\\int}\\right|`;e.string=e.string.slice(0,e.i)+o+e.string.slice(e.i);return}if(r===`(`||r===`[`){e.i++,e.Push(e.itemFactory.create(`auto open`).setProperties({open:r,close:`|`,smash:n,right:`\\vphantom{\\int}`}));return}throw new a.default(`MissingArgFor`,`Missing argument for %1`,e.currentCS)},u.Commutator=function(e,t,n,r){n===void 0&&(n=`[`),r===void 0&&(r=`]`);var o=e.GetStar(),s=e.GetNext(),c=null;if(s===`\\`){if(e.i++,c=e.GetCS(),!c.match(f))throw new a.default(`MissingArgFor`,`Missing argument for %1`,e.currentCS);s=e.GetNext()}if(s!==`{`)throw new a.default(`MissingArgFor`,`Missing argument for %1`,e.currentCS);var l=e.GetArgument(t),u=e.GetArgument(t),d=l+`,`+u;d=o?n+` `+d+` `+r:c?`\\`+c+`l`+n+` `+d+` \\`+c+`r`+r:`\\left`+n+` `+d+` \\right`+r,e.Push(new i.default(d,e.stack.env,e.configuration).mml())};var p=[65,90],m=[97,122],h=[913,937],g=[945,969],_=[48,57];function v(e,t){return e>=t[0]&&e<=t[1]}function y(e,t,n,r){var i=e.configuration.parser,a=l.NodeFactory.createToken(e,t,n,r),o=r.codePointAt(0);return r.length===1&&!i.stack.env.font&&i.stack.env.vectorFont&&(v(o,p)||v(o,m)||v(o,h)||v(o,_)||v(o,g)&&i.stack.env.vectorStar||c.default.getAttribute(a,`accent`))&&c.default.setAttribute(a,`mathvariant`,i.stack.env.vectorFont),a}u.VectorBold=function(e,t){var n=e.GetStar(),r=e.GetArgument(t),a=e.configuration.nodeFactory.get(`token`),o=e.stack.env.font;delete e.stack.env.font,e.configuration.nodeFactory.set(`token`,y),e.stack.env.vectorFont=n?`bold-italic`:`bold`,e.stack.env.vectorStar=n;var s=new i.default(r,e.stack.env,e.configuration).mml();o&&(e.stack.env.font=o),delete e.stack.env.vectorFont,delete e.stack.env.vectorStar,e.configuration.nodeFactory.set(`token`,a),e.Push(s)},u.StarMacro=function(e,t,n){var r=[...arguments].slice(3),i=e.GetStar(),a=[];if(n)for(var o=a.length;o<n;o++)a.push(e.GetArgument(t));var c=r.join(i?`*`:``);c=s.default.substituteArgs(e,a,c),e.string=s.default.addArgs(e,c,e.string.slice(e.i)),e.i=0,s.default.checkMaxMacros(e)};var b=function(e,t,n,r,a){var o=new i.default(r,e.stack.env,e.configuration).mml();e.Push(e.itemFactory.create(t,o));var s=e.GetNext(),c=d[s];if(c){var l=``,u=``,f=``,p=a.indexOf(s)!==-1;if(s===`{`){f=e.GetArgument(n),l=p?`\\left\\{`:``,u=p?`\\right\\}`:``,e.string=l+` `+f+` `+u+e.string.slice(e.i),e.i=0;return}p&&(e.i++,e.Push(e.itemFactory.create(`auto open`).setProperties({open:s,close:c})))}};u.OperatorApplication=function(e,t,n){b(e,`fn`,t,n,[...arguments].slice(3))},u.VectorOperator=function(e,t,n){b(e,`mml`,t,n,[...arguments].slice(3))},u.Expression=function(e,t,n,r){n===void 0&&(n=!0),r===void 0&&(r=``),r||=t.slice(1);var a=n?e.GetBrackets(t):null,s=e.create(`token`,`mi`,{texClass:o.TEXCLASS.OP},r);if(a){var c=new i.default(a,e.stack.env,e.configuration).mml();s=e.create(`node`,`msup`,[s,c])}e.Push(e.itemFactory.create(`fn`,s)),e.GetNext()===`(`&&(e.i++,e.Push(e.itemFactory.create(`auto open`).setProperties({open:`(`,close:`)`})))},u.Qqtext=function(e,t,n){var r=e.GetStar(),i=n||e.GetArgument(t),a=(r?``:`\\quad`)+`\\text{`+i+`}\\quad `;e.string=e.string.slice(0,e.i)+a+e.string.slice(e.i)},u.Differential=function(e,t,n){var r=e.GetBrackets(t),a=r==null?` `:`^{`+r+`}`,s=e.GetNext()===`(`,c=e.GetNext()===`{`,l=n+a;if(!(s||c)){l+=e.GetArgument(t,!0)||``;var u=new i.default(l,e.stack.env,e.configuration).mml();e.Push(u);return}if(c){l+=e.GetArgument(t);var u=new i.default(l,e.stack.env,e.configuration).mml();e.Push(e.create(`node`,`TeXAtom`,[u],{texClass:o.TEXCLASS.OP}));return}e.Push(new i.default(l,e.stack.env,e.configuration).mml()),e.i++,e.Push(e.itemFactory.create(`auto open`).setProperties({open:`(`,close:`)`}))},u.Derivative=function(e,t,n,r){var a=e.GetStar(),o=e.GetBrackets(t),s=1,c=[];for(c.push(e.GetArgument(t));e.GetNext()===`{`&&s<n;)c.push(e.GetArgument(t)),s++;var l=!1,u=` `,d=` `;n>2&&c.length>2?(u=`^{`+(c.length-1)+`}`,l=!0):o!=null&&(n>2&&c.length>1&&(l=!0),u=`^{`+o+`}`,d=u);for(var f=a?`\\flatfrac`:`\\frac`,p=c.length>1?c[0]:``,m=c.length>1?c[1]:c[0],h=``,g=2,_=void 0;_=c[g];g++)h+=r+` `+_;var v=f+`{`+r+u+p+`}{`+r+` `+m+d+` `+h+`}`;e.Push(new i.default(v,e.stack.env,e.configuration).mml()),e.GetNext()===`(`&&(e.i++,e.Push(e.itemFactory.create(`auto open`).setProperties({open:`(`,close:`)`,ignore:l})))},u.Bra=function(e,t){var n=e.GetStar(),r=e.GetArgument(t),a=``,o=!1,s=!1;if(e.GetNext()===`\\`){var c=e.i;e.i++;var l=e.GetCS(),u=e.lookup(`macro`,l);u&&u.symbol===`ket`?(o=!0,c=e.i,s=e.GetStar(),e.GetNext()===`{`?a=e.GetArgument(l,!0):(e.i=c,s=!1)):e.i=c}var d=``;d=o?n||s?`\\langle{${r}}\\vert{${a}}\\rangle`:`\\left\\langle{${r}}\\middle\\vert{${a}}\\right\\rangle`:n||s?`\\langle{${r}}\\vert`:`\\left\\langle{${r}}\\right\\vert{${a}}`,e.Push(new i.default(d,e.stack.env,e.configuration).mml())},u.Ket=function(e,t){var n=e.GetStar(),r=e.GetArgument(t),a=n?`\\vert{${r}}\\rangle`:`\\left\\vert{${r}}\\right\\rangle`;e.Push(new i.default(a,e.stack.env,e.configuration).mml())},u.BraKet=function(e,t){var n=e.GetStar(),r=e.GetArgument(t),a=null;e.GetNext()===`{`&&(a=e.GetArgument(t,!0));var o=``;o=a==null?n?`\\langle{${r}}\\vert{${r}}\\rangle`:`\\left\\langle{${r}}\\middle\\vert{${r}}\\right\\rangle`:n?`\\langle{${r}}\\vert{${a}}\\rangle`:`\\left\\langle{${r}}\\middle\\vert{${a}}\\right\\rangle`,e.Push(new i.default(o,e.stack.env,e.configuration).mml())},u.KetBra=function(e,t){var n=e.GetStar(),r=e.GetArgument(t),a=null;e.GetNext()===`{`&&(a=e.GetArgument(t,!0));var o=``;o=a==null?n?`\\vert{${r}}\\rangle\\!\\langle{${r}}\\vert`:`\\left\\vert{${r}}\\middle\\rangle\\!\\middle\\langle{${r}}\\right\\vert`:n?`\\vert{${r}}\\rangle\\!\\langle{${a}}\\vert`:`\\left\\vert{${r}}\\middle\\rangle\\!\\middle\\langle{${a}}\\right\\vert`,e.Push(new i.default(o,e.stack.env,e.configuration).mml())};function x(e,n,r){var i=t(e,3),a=i[0],o=i[1],s=i[2];return n&&r?`\\left\\langle{${a}}\\middle\\vert{${o}}\\middle\\vert{${s}}\\right\\rangle`:n?`\\langle{${a}}\\vert{${o}}\\vert{${s}}\\rangle`:`\\left\\langle{${a}}\\right\\vert{${o}}\\left\\vert{${s}}\\right\\rangle`}u.Expectation=function(e,t){var n=e.GetStar(),r=n&&e.GetStar(),a=e.GetArgument(t),o=null;e.GetNext()===`{`&&(o=e.GetArgument(t,!0));var s=a&&o?x([o,a,o],n,r):n?`\\langle {${a}} \\rangle`:`\\left\\langle {${a}} \\right\\rangle`;e.Push(new i.default(s,e.stack.env,e.configuration).mml())},u.MatrixElement=function(e,t){var n=e.GetStar(),r=n&&e.GetStar(),a=x([e.GetArgument(t),e.GetArgument(t),e.GetArgument(t)],n,r);e.Push(new i.default(a,e.stack.env,e.configuration).mml())},u.MatrixQuantity=function(e,t,n){var r=e.GetStar(),a=e.GetNext(),o=n?`smallmatrix`:`array`,s=``,c=``,l=``;switch(a){case`{`:s=e.GetArgument(t);break;case`(`:e.i++,c=r?`\\lgroup`:`(`,l=r?`\\rgroup`:`)`,s=e.GetUpTo(t,`)`);break;case`[`:e.i++,c=`[`,l=`]`,s=e.GetUpTo(t,`]`);break;case`|`:e.i++,c=`|`,l=`|`,s=e.GetUpTo(t,`|`);break;default:c=`(`,l=`)`;break}var u=(c?`\\left`:``)+c+`\\begin{`+o+`}{} `+s+`\\end{`+o+`}`+(c?`\\right`:``)+l;e.Push(new i.default(u,e.stack.env,e.configuration).mml())},u.IdentityMatrix=function(e,t){var n=e.GetArgument(t),r=parseInt(n,10);if(isNaN(r))throw new a.default(`InvalidNumber`,`Invalid number`);if(r<=1){e.string=`1`+e.string.slice(e.i),e.i=0;return}for(var i=Array(r).fill(`0`),o=[],s=0;s<r;s++){var c=i.slice();c[s]=`1`,o.push(c.join(` & `))}e.string=o.join(`\\\\ `)+e.string.slice(e.i),e.i=0},u.XMatrix=function(e,t){var n=e.GetStar(),r=e.GetArgument(t),i=e.GetArgument(t),o=e.GetArgument(t),s=parseInt(i,10),c=parseInt(o,10);if(isNaN(s)||isNaN(c)||c.toString()!==o||s.toString()!==i)throw new a.default(`InvalidNumber`,`Invalid number`);if(s=s<1?1:s,c=c<1?1:c,!n){var l=Array(c).fill(r).join(` & `);e.string=Array(s).fill(l).join(`\\\\ `)+e.string.slice(e.i),e.i=0;return}var u=``;if(s===1&&c===1)u=r;else if(s===1){for(var l=[],d=1;d<=c;d++)l.push(`${r}_{${d}}`);u=l.join(` & `)}else if(c===1){for(var l=[],d=1;d<=s;d++)l.push(`${r}_{${d}}`);u=l.join(`\\\\ `)}else{for(var f=[],d=1;d<=s;d++){for(var l=[],p=1;p<=c;p++)l.push(`${r}_{{${d}}{${p}}}`);f.push(l.join(` & `))}u=f.join(`\\\\ `)}e.string=u+e.string.slice(e.i),e.i=0},u.PauliMatrix=function(e,t){var n=e.GetArgument(t),r=n.slice(1);switch(n[0]){case`0`:r+=` 1 & 0\\\\ 0 & 1`;break;case`1`:case`x`:r+=` 0 & 1\\\\ 1 & 0`;break;case`2`:case`y`:r+=` 0 & -i\\\\ i & 0`;break;case`3`:case`z`:r+=` 1 & 0\\\\ 0 & -1`;break;default:}e.string=r+e.string.slice(e.i),e.i=0},u.DiagonalMatrix=function(e,t,n){if(e.GetNext()===`{`){var r=e.i;e.GetArgument(t);var i=e.i;e.i=r+1;for(var a=[],o=``,s=e.i;s<i;){try{o=e.GetUpTo(t,`,`)}catch{e.i=i,a.push(e.string.slice(s,i-1));break}if(e.i>=i){a.push(e.string.slice(s,i));break}s=e.i,a.push(o)}e.string=S(a,n)+e.string.slice(i),e.i=0}};function S(e,t){for(var n=e.length,r=[],i=0;i<n;i++)r.push(Array(t?n-i:i+1).join(`&`)+`\\mqty{`+e[i]+`}`);return r.join(`\\\\ `)}u.AutoClose=function(e,t,n){var r=e.create(`token`,`mo`,{stretchy:!1},t),i=e.itemFactory.create(`mml`,r).setProperties({autoclose:t});e.Push(i)},u.Vnabla=function(e,t){var n=e.options.physics.arrowdel?`\\vec{\\gradientnabla}`:`{\\gradientnabla}`;return e.Push(new i.default(n,e.stack.env,e.configuration).mml())},u.DiffD=function(e,t){var n=e.options.physics.italicdiff?`d`:`{\\rm d}`;return e.Push(new i.default(n,e.stack.env,e.configuration).mml())},u.Macro=r.default.Macro,u.NamedFn=r.default.NamedFn,u.Array=r.default.Array,e.default=u})),qt=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=W(),r=t(Kt()),i=K(),a=t(Y()),o=A();new n.CommandMap(`Physics-automatic-bracing-macros`,{quantity:`Quantity`,qty:`Quantity`,pqty:[`Quantity`,`(`,`)`,!0],bqty:[`Quantity`,`[`,`]`,!0],vqty:[`Quantity`,`|`,`|`,!0],Bqty:[`Quantity`,`\\{`,`\\}`,!0],absolutevalue:[`Quantity`,`|`,`|`,!0],abs:[`Quantity`,`|`,`|`,!0],norm:[`Quantity`,`\\|`,`\\|`,!0],evaluated:`Eval`,eval:`Eval`,order:[`Quantity`,`(`,`)`,!0,`O`,i.TexConstant.Variant.CALLIGRAPHIC],commutator:`Commutator`,comm:`Commutator`,anticommutator:[`Commutator`,`\\{`,`\\}`],acomm:[`Commutator`,`\\{`,`\\}`],poissonbracket:[`Commutator`,`\\{`,`\\}`],pb:[`Commutator`,`\\{`,`\\}`]},r.default),new n.CharacterMap(`Physics-vector-mo`,a.default.mathchar0mo,{dotproduct:[`⋅`,{mathvariant:i.TexConstant.Variant.BOLD}],vdot:[`⋅`,{mathvariant:i.TexConstant.Variant.BOLD}],crossproduct:`×`,cross:`×`,cp:`×`,gradientnabla:[`∇`,{mathvariant:i.TexConstant.Variant.BOLD}]}),new n.CharacterMap(`Physics-vector-mi`,a.default.mathchar0mi,{real:[`ℜ`,{mathvariant:i.TexConstant.Variant.NORMAL}],imaginary:[`ℑ`,{mathvariant:i.TexConstant.Variant.NORMAL}]}),new n.CommandMap(`Physics-vector-macros`,{vnabla:`Vnabla`,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`,`\\vnabla`,`(`,`[`],grad:[`OperatorApplication`,`\\vnabla`,`(`,`[`],divergence:[`VectorOperator`,`\\vnabla\\vdot`,`(`,`[`],div:[`VectorOperator`,`\\vnabla\\vdot`,`(`,`[`],curl:[`VectorOperator`,`\\vnabla\\crossproduct`,`(`,`[`],laplacian:[`OperatorApplication`,`\\nabla^2`,`(`,`[`]},r.default),new n.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`,!1],log:`Expression`,ln:`Expression`,det:[`Expression`,!1],Pr:[`Expression`,!1],tr:[`Expression`,!1],trace:[`Expression`,!1,`tr`],Tr:[`Expression`,!1],Trace:[`Expression`,!1,`Tr`],rank:`NamedFn`,erf:[`Expression`,!1],Residue:[`Macro`,`\\mathrm{Res}`],Res:[`OperatorApplication`,`\\Residue`,`(`,`[`,`{`],principalvalue:[`OperatorApplication`,`{\\cal P}`],pv:[`OperatorApplication`,`{\\cal P}`],PV:[`OperatorApplication`,`{\\rm P.V.}`],Re:[`OperatorApplication`,`\\mathrm{Re}`,`{`],Im:[`OperatorApplication`,`\\mathrm{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`]},r.default),new n.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`]},r.default),new n.CommandMap(`Physics-derivative-macros`,{diffd:`DiffD`,flatfrac:[`Macro`,`\\left.#1\\middle/#2\\right.`,2],differential:[`Differential`,`\\diffd`],dd:[`Differential`,`\\diffd`],variation:[`Differential`,`\\delta`],var:[`Differential`,`\\delta`],derivative:[`Derivative`,2,`\\diffd`],dv:[`Derivative`,2,`\\diffd`],partialderivative:[`Derivative`,3,`\\partial`],pderivative:[`Derivative`,3,`\\partial`],pdv:[`Derivative`,3,`\\partial`],functionalderivative:[`Derivative`,2,`\\delta`],fderivative:[`Derivative`,2,`\\delta`],fdv:[`Derivative`,2,`\\delta`]},r.default),new n.CommandMap(`Physics-bra-ket-macros`,{bra:`Bra`,ket:`Ket`,innerproduct:`BraKet`,ip:`BraKet`,braket:`BraKet`,outerproduct:`KetBra`,dyad:`KetBra`,ketbra:`KetBra`,op:`KetBra`,expectationvalue:`Expectation`,expval:`Expectation`,ev:`Expectation`,matrixelement:`MatrixElement`,matrixel:`MatrixElement`,mel:`MatrixElement`},r.default),new n.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`,!0],smqty:[`MatrixQuantity`,!0],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`,!0],admat:[`DiagonalMatrix`,!0]},r.default),new n.EnvironmentMap(`Physics-aux-envs`,a.default.environment,{smallmatrix:[`Array`,null,null,null,`c`,`0.333em`,`.2em`,`S`,1]},r.default),new n.MacroMap(`Physics-characters`,{"|":[`AutoClose`,o.TEXCLASS.ORD],")":`AutoClose`,"]":`AutoClose`},r.default)})),Jt=e((e=>{var t;Object.defineProperty(e,"__esModule",{value:!0}),e.PhysicsConfiguration=void 0;var n=H(),r=Gt();qt(),e.PhysicsConfiguration=n.Configuration.create(`physics`,{handler:{macro:[`Physics-automatic-bracing-macros`,`Physics-vector-macros`,`Physics-vector-mo`,`Physics-vector-mi`,`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:(t={},t[r.AutoOpen.prototype.kind]=r.AutoOpen,t),options:{physics:{italicdiff:!1,arrowdel:!1}}})})),Yt=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.SetOptionsConfiguration=e.SetOptionsUtil=void 0;var r=H(),a=W(),o=n(L()),s=n(R()),c=U(),l=n(J()),u=i();e.SetOptionsUtil={filterPackage:function(e,t){if(t!==`tex`&&!r.ConfigurationHandler.get(t))throw new o.default(`NotAPackage`,`Not a defined package: %1`,t);var n=e.options.setoptions,i=n.allowOptions[t];if(i===void 0&&!n.allowPackageDefault||i===!1)throw new o.default(`PackageNotSettable`,`Options can't be set for package "%1"`,t);return!0},filterOption:function(e,t,n){var r=e.options.setoptions,i=r.allowOptions[t]||{},a=i.hasOwnProperty(n)&&!(0,u.isObject)(i[n])?i[n]:null;if(a===!1||a===null&&!r.allowOptionsDefault)throw new o.default(`OptionNotSettable`,`Option "%1" is not allowed to be set`,n);if(!(t===`tex`?e.options:e.options[t])?.hasOwnProperty(n))throw t===`tex`?new o.default(`InvalidTexOption`,`Invalid TeX option "%1"`,n):new o.default(`InvalidOptionKey`,`Invalid option "%1" for package "%2"`,n,t);return!0},filterValue:function(e,t,n,r){return r}};var d=new a.CommandMap(`setoptions`,{setOptions:`SetOptions`},{SetOptions:function(e,n){var r,i,a=e.GetBrackets(n)||`tex`,o=s.default.keyvalOptions(e.GetArgument(n)),c=e.options.setoptions;if(c.filterPackage(e,a))try{for(var l=t(Object.keys(o)),u=l.next();!u.done;u=l.next()){var d=u.value;c.filterOption(e,a,d)&&((a===`tex`?e.options:e.options[a])[d]=c.filterValue(e,a,d,o[d]))}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}});function f(e,t){var n=t.parseOptions.handlers.get(`macro`).lookup(`require`);n&&(d.add(`Require`,new c.Macro(`Require`,n._func)),d.add(`require`,new c.Macro(`require`,l.default.Macro,[`\\Require{#2}\\setOptions[#2]{#1}`,2,``])))}e.SetOptionsConfiguration=r.Configuration.create(`setoptions`,{handler:{macro:[`setoptions`]},config:f,priority:3,options:{setoptions:{filterPackage:e.SetOptionsUtil.filterPackage,filterOption:e.SetOptionsUtil.filterOption,filterValue:e.SetOptionsUtil.filterValue,allowPackageDefault:!0,allowOptionsDefault:!0,allowOptions:(0,u.expandable)({tex:{FindTeX:!1,formatError:!1,package:!1,baseURL:!1,tags:!1,maxBuffer:!1,maxMaxros:!1,macros:!1,environments:!1},setoptions:!1,autoload:!1,require:!1,configmacros:!1,tagformat:!1})}}})})),Xt=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.TagFormatConfiguration=e.tagformatConfig=void 0;var n=H(),r=V(),i=0;function a(e,n){var a=n.parseOptions.options.tags;a!==`base`&&e.tags.hasOwnProperty(a)&&r.TagsFactory.add(a,e.tags[a]);var o=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.formatNumber=function(e){return n.parseOptions.options.tagformat.number(e)},r.prototype.formatTag=function(e){return n.parseOptions.options.tagformat.tag(e)},r.prototype.formatId=function(e){return n.parseOptions.options.tagformat.id(e)},r.prototype.formatUrl=function(e,t){return n.parseOptions.options.tagformat.url(e,t)},r}(r.TagsFactory.create(n.parseOptions.options.tags).constructor);i++;var s=`configTags-`+i;r.TagsFactory.add(s,o),n.parseOptions.options.tags=s}e.tagformatConfig=a,e.TagFormatConfiguration=n.Configuration.create(`tagformat`,{config:[a,10],options:{tagformat:{number:function(e){return e.toString()},tag:function(e){return`(`+e+`)`},id:function(e){return`mjx-eqn:`+e.replace(/\s/g,`_`)},url:function(e,t){return t+`#`+encodeURIComponent(e)}}}})})),Zt=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.TextMacrosMethods=void 0;var n=t(z()),r=l(),i=t(J());e.TextMacrosMethods={Comment:function(e,t){for(;e.i<e.string.length&&e.string.charAt(e.i)!==`
12
+ `;)e.i++;e.i++},Math:function(e,t){e.saveText();for(var r=e.i,i,a,o=0;a=e.GetNext();)switch(i=e.i++,a){case`\\`:e.GetCS()===`)`&&(a=`\\(`);case`$`:if(o===0&&t===a){var s=e.texParser.configuration,c=new n.default(e.string.substr(r,i-r),e.stack.env,s).mml();e.PushMath(c);return}break;case`{`:o++;break;case`}`:o===0&&e.Error(`ExtraCloseMissingOpen`,`Extra close brace or missing open brace`),o--;break}e.Error(`MathNotTerminated`,`Math-mode is not properly terminated`)},MathModeOnly:function(e,t){e.Error(`MathModeOnly`,`'%1' allowed only in math mode`,t)},Misplaced:function(e,t){e.Error(`Misplaced`,`'%1' can not be used here`,t)},OpenBrace:function(e,t){var n=e.stack.env;e.envStack.push(n),e.stack.env=Object.assign({},n)},CloseBrace:function(e,t){e.envStack.length?(e.saveText(),e.stack.env=e.envStack.pop()):e.Error(`ExtraCloseMissingOpen`,`Extra close brace or missing open brace`)},OpenQuote:function(e,t){e.string.charAt(e.i)===t?(e.text+=`“`,e.i++):e.text+=`‘`},CloseQuote:function(e,t){e.string.charAt(e.i)===t?(e.text+=`”`,e.i++):e.text+=`’`},Tilde:function(e,t){e.text+=`\xA0`},Space:function(e,t){for(e.text+=` `;e.GetNext().match(/\s/);)e.i++},SelfQuote:function(e,t){e.text+=t.substr(1)},Insert:function(e,t,n){e.text+=n},Accent:function(e,t,n){var r=e.ParseArg(t),i=e.create(`token`,`mo`,{},n);e.addAttributes(i),e.Push(e.create(`node`,`mover`,[r,i]))},Emph:function(e,t){var n=e.stack.env.mathvariant===`-tex-mathit`?`normal`:`-tex-mathit`;e.Push(e.ParseTextArg(t,{mathvariant:n}))},SetFont:function(e,t,n){e.saveText(),e.stack.env.mathvariant=n},SetSize:function(e,t,n){e.saveText(),e.stack.env.mathsize=n},CheckAutoload:function(e,t){var n=e.configuration.packageData.get(`autoload`),i=e.texParser;t=t.slice(1);var a=i.lookup(`macro`,t);if(!a||n&&a._func===n.Autoload){if(i.parse(`macro`,[i,t]),!a)return;(0,r.retryAfter)(Promise.resolve())}i.parse(`macro`,[e,t])},Macro:i.default.Macro,Spacer:i.default.Spacer,Hskip:i.default.Hskip,rule:i.default.rule,Rule:i.default.Rule,HandleRef:i.default.HandleRef}})),Qt=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},r=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},i=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},a=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.TextParser=void 0;var o=a(z()),s=a(L()),c=a(R()),l=A(),u=a(I()),d=G();e.TextParser=function(e){t(a,e);function a(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.level=i,a}return Object.defineProperty(a.prototype,"texParser",{get:function(){return this.configuration.packageData.get(`textmacros`).texParser},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"tags",{get:function(){return this.texParser.tags},enumerable:!1,configurable:!0}),a.prototype.mml=function(){return this.level==null?this.nodes.length===1?this.nodes[0]:this.create(`node`,`mrow`,this.nodes):this.create(`node`,`mstyle`,this.nodes,{displaystyle:!1,scriptlevel:this.level})},a.prototype.Parse=function(){this.text=``,this.nodes=[],this.envStack=[],e.prototype.Parse.call(this)},a.prototype.saveText=function(){if(this.text){var e=this.stack.env.mathvariant,t=c.default.internalText(this,this.text,e?{mathvariant:e}:{});this.text=``,this.Push(t)}},a.prototype.Push=function(t){if(this.text&&this.saveText(),t instanceof d.StopItem)return e.prototype.Push.call(this,t);if(t instanceof d.StyleItem){this.stack.env.mathcolor=this.stack.env.color;return}t instanceof l.AbstractMmlNode&&(this.addAttributes(t),this.nodes.push(t))},a.prototype.PushMath=function(e){var t,r,i=this.stack.env;e.isKind(`TeXAtom`)||(e=this.create(`node`,`TeXAtom`,[e]));try{for(var a=n([`mathsize`,`mathcolor`]),o=a.next();!o.done;o=a.next()){var s=o.value;i[s]&&!e.attributes.getExplicit(s)&&(!e.isToken&&!e.isKind(`mstyle`)&&(e=this.create(`node`,`mstyle`,[e])),u.default.setAttribute(e,s,i[s]))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}e.isInferred&&(e=this.create(`node`,`mrow`,e.childNodes)),this.nodes.push(e)},a.prototype.addAttributes=function(e){var t,r,i=this.stack.env;if(e.isToken)try{for(var a=n([`mathsize`,`mathcolor`,`mathvariant`]),o=a.next();!o.done;o=a.next()){var s=o.value;i[s]&&!e.attributes.getExplicit(s)&&u.default.setAttribute(e,s,i[s])}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}},a.prototype.ParseTextArg=function(e,t){var n=this.GetArgument(e);return t=Object.assign(Object.assign({},this.stack.env),t),new a(n,t,this.configuration).mml()},a.prototype.ParseArg=function(e){return new a(this.GetArgument(e),this.stack.env,this.configuration).mml()},a.prototype.Error=function(e,t){var n=[...arguments].slice(2);throw new(s.default.bind.apply(s.default,i([void 0,e,t],r(n),!1)))},a}(o.default)})),$t=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=W(),r=K(),i=Zt(),a=t(R()),o=Qt();new n.CommandMap(`textcomp-macros`,{textasciicircum:[`Insert`,`^`],textasciitilde:[`Insert`,`~`],textasteriskcentered:[`Insert`,`*`],textbackslash:[`Insert`,`\\`],textbar:[`Insert`,`|`],textbraceleft:[`Insert`,`{`],textbraceright:[`Insert`,`}`],textbullet:[`Insert`,`•`],textdagger:[`Insert`,`†`],textdaggerdbl:[`Insert`,`‡`],textellipsis:[`Insert`,`…`],textemdash:[`Insert`,`—`],textendash:[`Insert`,`–`],textexclamdown:[`Insert`,`¡`],textgreater:[`Insert`,`>`],textless:[`Insert`,`<`],textordfeminine:[`Insert`,`ª`],textordmasculine:[`Insert`,`º`],textparagraph:[`Insert`,`¶`],textperiodcentered:[`Insert`,`·`],textquestiondown:[`Insert`,`¿`],textquotedblleft:[`Insert`,`“`],textquotedblright:[`Insert`,`”`],textquoteleft:[`Insert`,`‘`],textquoteright:[`Insert`,`’`],textsection:[`Insert`,`§`],textunderscore:[`Insert`,`_`],textvisiblespace:[`Insert`,`␣`],textacutedbl:[`Insert`,`˝`],textasciiacute:[`Insert`,`´`],textasciibreve:[`Insert`,`˘`],textasciicaron:[`Insert`,`ˇ`],textasciidieresis:[`Insert`,`¨`],textasciimacron:[`Insert`,`¯`],textgravedbl:[`Insert`,`˵`],texttildelow:[`Insert`,`˷`],textbaht:[`Insert`,`฿`],textcent:[`Insert`,`¢`],textcolonmonetary:[`Insert`,`₡`],textcurrency:[`Insert`,`¤`],textdollar:[`Insert`,`$`],textdong:[`Insert`,`₫`],texteuro:[`Insert`,`€`],textflorin:[`Insert`,`ƒ`],textguarani:[`Insert`,`₲`],textlira:[`Insert`,`₤`],textnaira:[`Insert`,`₦`],textpeso:[`Insert`,`₱`],textsterling:[`Insert`,`£`],textwon:[`Insert`,`₩`],textyen:[`Insert`,`¥`],textcircledP:[`Insert`,`℗`],textcompwordmark:[`Insert`,`‌`],textcopyleft:[`Insert`,`🄯`],textcopyright:[`Insert`,`©`],textregistered:[`Insert`,`®`],textservicemark:[`Insert`,`℠`],texttrademark:[`Insert`,`™`],textbardbl:[`Insert`,`‖`],textbigcircle:[`Insert`,`◯`],textblank:[`Insert`,`␢`],textbrokenbar:[`Insert`,`¦`],textdiscount:[`Insert`,`⁒`],textestimated:[`Insert`,`℮`],textinterrobang:[`Insert`,`‽`],textinterrobangdown:[`Insert`,`⸘`],textmusicalnote:[`Insert`,`♪`],textnumero:[`Insert`,`№`],textopenbullet:[`Insert`,`◦`],textpertenthousand:[`Insert`,`‱`],textperthousand:[`Insert`,`‰`],textrecipe:[`Insert`,`℞`],textreferencemark:[`Insert`,`※`],textlangle:[`Insert`,`〈`],textrangle:[`Insert`,`〉`],textlbrackdbl:[`Insert`,`⟦`],textrbrackdbl:[`Insert`,`⟧`],textlquill:[`Insert`,`⁅`],textrquill:[`Insert`,`⁆`],textcelsius:[`Insert`,`℃`],textdegree:[`Insert`,`°`],textdiv:[`Insert`,`÷`],textdownarrow:[`Insert`,`↓`],textfractionsolidus:[`Insert`,`⁄`],textleftarrow:[`Insert`,`←`],textlnot:[`Insert`,`¬`],textmho:[`Insert`,`℧`],textminus:[`Insert`,`−`],textmu:[`Insert`,`µ`],textohm:[`Insert`,`Ω`],textonehalf:[`Insert`,`½`],textonequarter:[`Insert`,`¼`],textonesuperior:[`Insert`,`¹`],textpm:[`Insert`,`±`],textrightarrow:[`Insert`,`→`],textsurd:[`Insert`,`√`],textthreequarters:[`Insert`,`¾`],textthreesuperior:[`Insert`,`³`],texttimes:[`Insert`,`×`],texttwosuperior:[`Insert`,`²`],textuparrow:[`Insert`,`↑`],textborn:[`Insert`,`*`],textdied:[`Insert`,`†`],textdivorced:[`Insert`,`⚮`],textmarried:[`Insert`,`⚭`],textcentoldstyle:[`Insert`,`¢`,r.TexConstant.Variant.OLDSTYLE],textdollaroldstyle:[`Insert`,`$`,r.TexConstant.Variant.OLDSTYLE],textzerooldstyle:[`Insert`,`0`,r.TexConstant.Variant.OLDSTYLE],textoneoldstyle:[`Insert`,`1`,r.TexConstant.Variant.OLDSTYLE],texttwooldstyle:[`Insert`,`2`,r.TexConstant.Variant.OLDSTYLE],textthreeoldstyle:[`Insert`,`3`,r.TexConstant.Variant.OLDSTYLE],textfouroldstyle:[`Insert`,`4`,r.TexConstant.Variant.OLDSTYLE],textfiveoldstyle:[`Insert`,`5`,r.TexConstant.Variant.OLDSTYLE],textsixoldstyle:[`Insert`,`6`,r.TexConstant.Variant.OLDSTYLE],textsevenoldstyle:[`Insert`,`7`,r.TexConstant.Variant.OLDSTYLE],texteightoldstyle:[`Insert`,`8`,r.TexConstant.Variant.OLDSTYLE],textnineoldstyle:[`Insert`,`9`,r.TexConstant.Variant.OLDSTYLE]},{Insert:function(e,t,n,r){if(e instanceof o.TextParser){if(!r){i.TextMacrosMethods.Insert(e,t,n);return}e.saveText()}e.Push(a.default.internalText(e,n,r?{mathvariant:r}:{}))}})})),en=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TextcompConfiguration=void 0;var t=H();$t(),e.TextcompConfiguration=t.Configuration.create(`textcomp`,{handler:{macro:[`textcomp-macros`]}})})),tn=e((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=W(),n=K(),r=Zt(),i=q();new t.MacroMap(`text-special`,{$:`Math`,"%":`Comment`,"^":`MathModeOnly`,_:`MathModeOnly`,"&":`Misplaced`,"#":`Misplaced`,"~":`Tilde`," ":`Space`," ":`Space`,"\r":`Space`,"\n":`Space`,"\xA0":`Tilde`,"{":`OpenBrace`,"}":`CloseBrace`,"`":`OpenQuote`,"'":`CloseQuote`},r.TextMacrosMethods),new t.CommandMap(`text-macros`,{"(":`Math`,$:`SelfQuote`,_:`SelfQuote`,"%":`SelfQuote`,"{":`SelfQuote`,"}":`SelfQuote`," ":`SelfQuote`,"&":`SelfQuote`,"#":`SelfQuote`,"\\":`SelfQuote`,"'":[`Accent`,`´`],"’":[`Accent`,`´`],"`":[`Accent`,"`"],"‘":[`Accent`,"`"],"^":[`Accent`,`^`],'"':[`Accent`,`¨`],"~":[`Accent`,`~`],"=":[`Accent`,`¯`],".":[`Accent`,`˙`],u:[`Accent`,`˘`],v:[`Accent`,`ˇ`],emph:`Emph`,rm:[`SetFont`,n.TexConstant.Variant.NORMAL],mit:[`SetFont`,n.TexConstant.Variant.ITALIC],oldstyle:[`SetFont`,n.TexConstant.Variant.OLDSTYLE],cal:[`SetFont`,n.TexConstant.Variant.CALLIGRAPHIC],it:[`SetFont`,`-tex-mathit`],bf:[`SetFont`,n.TexConstant.Variant.BOLD],bbFont:[`SetFont`,n.TexConstant.Variant.DOUBLESTRUCK],scr:[`SetFont`,n.TexConstant.Variant.SCRIPT],frak:[`SetFont`,n.TexConstant.Variant.FRAKTUR],sf:[`SetFont`,n.TexConstant.Variant.SANSSERIF],tt:[`SetFont`,n.TexConstant.Variant.MONOSPACE],tiny:[`SetSize`,.5],Tiny:[`SetSize`,.6],scriptsize:[`SetSize`,.7],small:[`SetSize`,.85],normalsize:[`SetSize`,1],large:[`SetSize`,1.2],Large:[`SetSize`,1.44],LARGE:[`SetSize`,1.73],huge:[`SetSize`,2.07],Huge:[`SetSize`,2.49],Bbb:[`Macro`,`{\\bbFont #1}`,1],textnormal:[`Macro`,`{\\rm #1}`,1],textup:[`Macro`,`{\\rm #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`,`†`],ddagger:[`Insert`,`‡`],S:[`Insert`,`§`],",":[`Spacer`,i.MATHSPACE.thinmathspace],":":[`Spacer`,i.MATHSPACE.mediummathspace],">":[`Spacer`,i.MATHSPACE.mediummathspace],";":[`Spacer`,i.MATHSPACE.thickmathspace],"!":[`Spacer`,i.MATHSPACE.negativethinmathspace],enspace:[`Spacer`,.5],quad:[`Spacer`,1],qquad:[`Spacer`,2],thinspace:[`Spacer`,i.MATHSPACE.thinmathspace],negthinspace:[`Spacer`,i.MATHSPACE.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`,!1],eqref:[`HandleRef`,!0]},r.TextMacrosMethods)})),nn=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},n;Object.defineProperty(e,"__esModule",{value:!0}),e.TextMacrosConfiguration=e.TextBaseConfiguration=void 0;var r=H(),i=t(We()),a=V(),o=G(),s=Qt(),c=Zt();tn(),e.TextBaseConfiguration=r.Configuration.create(`text-base`,{parser:`text`,handler:{character:[`command`,`text-special`],macro:[`text-macros`]},fallback:{character:function(e,t){e.text+=t},macro:function(e,t){var n=e.texParser,r=n.lookup(`macro`,t);r&&r._func!==c.TextMacrosMethods.Macro&&e.Error(`MathMacro`,`%1 is only supported in math mode`,`\\`+t),n.parse(`macro`,[e,t])}},items:(n={},n[o.StartItem.prototype.kind]=o.StartItem,n[o.StopItem.prototype.kind]=o.StopItem,n[o.MmlItem.prototype.kind]=o.MmlItem,n[o.StyleItem.prototype.kind]=o.StyleItem,n)});function l(e,t,n,r){var i=e.configuration.packageData.get(`textmacros`);return e instanceof s.TextParser||(i.texParser=e),[new s.TextParser(t,r?{mathvariant:r}:{},i.parseOptions,n).mml()]}e.TextMacrosConfiguration=r.Configuration.create(`textmacros`,{config:function(e,t){var n=new r.ParserConfiguration(t.parseOptions.options.textmacros.packages,[`tex`,`text`]);n.init();var o=new i.default(n,[]);o.options=t.parseOptions.options,n.config(t),a.TagsFactory.addTags(n.tags),o.tags=a.TagsFactory.getDefault(),o.tags.configuration=o,o.packageData=t.parseOptions.packageData,o.packageData.set(`textmacros`,{parseOptions:o,jax:t,texParser:null}),o.options.internalMath=l},preprocessors:[function(e){var t=e.data.packageData.get(`textmacros`);t.parseOptions.nodeFactory.setMmlFactory(t.jax.mmlFactory)}],options:{textmacros:{packages:[`text-base`]}}})})),rn=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UpgreekConfiguration=void 0;var t=H(),n=W(),r=K();function i(e,t){var n=t.attributes||{};n.mathvariant=r.TexConstant.Variant.NORMAL;var i=e.create(`token`,`mi`,n,t.char);e.Push(i)}new n.CharacterMap(`upgreek`,i,{upalpha:`α`,upbeta:`β`,upgamma:`γ`,updelta:`δ`,upepsilon:`ϵ`,upzeta:`ζ`,upeta:`η`,uptheta:`θ`,upiota:`ι`,upkappa:`κ`,uplambda:`λ`,upmu:`μ`,upnu:`ν`,upxi:`ξ`,upomicron:`ο`,uppi:`π`,uprho:`ρ`,upsigma:`σ`,uptau:`τ`,upupsilon:`υ`,upphi:`ϕ`,upchi:`χ`,uppsi:`ψ`,upomega:`ω`,upvarepsilon:`ε`,upvartheta:`ϑ`,upvarpi:`ϖ`,upvarrho:`ϱ`,upvarsigma:`ς`,upvarphi:`φ`,Upgamma:`Γ`,Updelta:`Δ`,Uptheta:`Θ`,Uplambda:`Λ`,Upxi:`Ξ`,Uppi:`Π`,Upsigma:`Σ`,Upupsilon:`Υ`,Upphi:`Φ`,Uppsi:`Ψ`,Upomega:`Ω`}),e.UpgreekConfiguration=t.Configuration.create(`upgreek`,{handler:{macro:[`upgreek`]}})})),an=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.UnicodeConfiguration=e.UnicodeMethods=void 0;var n=H(),r=t(L()),i=W(),a=t(R()),o=t(I()),s=h();e.UnicodeMethods={};var c={};e.UnicodeMethods.Unicode=function(e,t){var n=e.GetBrackets(t),i=null,l=null;n&&(n.replace(/ /g,``).match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)?(i=n.replace(/ /g,``).split(/,/),l=e.GetBrackets(t)):l=n);var u=a.default.trimSpaces(e.GetArgument(t)).replace(/^0x/,`x`);if(!u.match(/^(x[0-9A-Fa-f]+|[0-9]+)$/))throw new r.default(`BadUnicode`,`Argument to \\unicode must be a number`);var d=parseInt(u.match(/^x/)?`0`+u:u);c[d]?l||=c[d][2]:c[d]=[800,200,l,d],i&&(c[d][0]=Math.floor(parseFloat(i[0])*1e3),c[d][1]=Math.floor(parseFloat(i[1])*1e3));var f=e.stack.env.font,p={};l?(c[d][2]=p.fontfamily=l.replace(/'/g,`'`),f&&(f.match(/bold/)&&(p.fontweight=`bold`),f.match(/italic|-mathit/)&&(p.fontstyle=`italic`))):f&&(p.mathvariant=f);var m=e.create(`token`,`mtext`,p,(0,s.numeric)(u));o.default.setProperty(m,`unicode`,!0),e.Push(m)},new i.CommandMap(`unicode`,{unicode:`Unicode`},e.UnicodeMethods),e.UnicodeConfiguration=n.Configuration.create(`unicode`,{handler:{macro:[`unicode`]}})})),on=e((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.VerbConfiguration=e.VerbMethods=void 0;var n=H(),r=K(),i=W(),a=t(L());e.VerbMethods={},e.VerbMethods.Verb=function(e,t){var n=e.GetNext(),i=++e.i;if(n===``)throw new a.default(`MissingArgFor`,`Missing argument for %1`,t);for(;e.i<e.string.length&&e.string.charAt(e.i)!==n;)e.i++;if(e.i===e.string.length)throw new a.default(`NoClosingDelim`,`Can't find closing delimiter for %1`,e.currentCS);var o=e.string.slice(i,e.i).replace(/ /g,`\xA0`);e.i++,e.Push(e.create(`token`,`mtext`,{mathvariant:r.TexConstant.Variant.MONOSPACE},o))},new i.CommandMap(`verb`,{verb:`Verb`},e.VerbMethods),e.VerbConfiguration=n.Configuration.create(`verb`,{handler:{macro:[`verb`]}})})),sn=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AllPackages=void 0,qe(),Ye(),Qe(),tt(),nt(),rt(),st(),ft(),mt(),gt(),_t(),xt(),St(),Ct(),Dt(),Ot(),pt(),jt(),Mt(),Pt(),Bt(),Ht(),At(),Ut(),Wt(),Jt(),Yt(),Xt(),en(),nn(),rn(),an(),on(),typeof MathJax<`u`&&MathJax.loader&&MathJax.loader.preLoad(`[tex]/action`,`[tex]/ams`,`[tex]/amscd`,`[tex]/bbox`,`[tex]/boldsymbol`,`[tex]/braket`,`[tex]/bussproofs`,`[tex]/cancel`,`[tex]/cases`,`[tex]/centernot`,`[tex]/color`,`[tex]/colorv2`,`[tex]/colortbl`,`[tex]/empheq`,`[tex]/enclose`,`[tex]/extpfeil`,`[tex]/gensymb`,`[tex]/html`,`[tex]/mathtools`,`[tex]/mhchem`,`[tex]/newcommand`,`[tex]/noerrors`,`[tex]/noundefined`,`[tex]/physics`,`[tex]/upgreek`,`[tex]/unicode`,`[tex]/verb`,`[tex]/configmacros`,`[tex]/tagformat`,`[tex]/textcomp`,`[tex]/textmacros`,`[tex]/setoptions`),e.AllPackages=`base.action.ams.amscd.bbox.boldsymbol.braket.bussproofs.cancel.cases.centernot.color.colortbl.empheq.enclose.extpfeil.gensymb.html.mathtools.mhchem.newcommand.noerrors.noundefined.upgreek.unicode.verb.configmacros.tagformat.textcomp.textmacros`.split(`.`)})),cn=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.CssStyles=void 0,e.CssStyles=function(){function e(e){e===void 0&&(e=null),this.styles={},this.addStyles(e)}return Object.defineProperty(e.prototype,"cssText",{get:function(){return this.getStyleString()},enumerable:!1,configurable:!0}),e.prototype.addStyles=function(e){var n,r;if(e)try{for(var i=t(Object.keys(e)),a=i.next();!a.done;a=i.next()){var o=a.value;this.styles[o]||(this.styles[o]={}),Object.assign(this.styles[o],e[o])}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.removeStyles=function(){for(var e,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];try{for(var a=t(r),o=a.next();!o.done;o=a.next()){var s=o.value;delete this.styles[s]}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}},e.prototype.clear=function(){this.styles={}},e.prototype.getStyleString=function(){return this.getStyleRules().join(`
13
+
14
+ `)},e.prototype.getStyleRules=function(){var e,n,r=Object.keys(this.styles),i=Array(r.length),a=0;try{for(var o=t(r),s=o.next();!s.done;s=o.next()){var c=s.value;i[a++]=c+` {
15
+ `+this.getStyleDefString(this.styles[c])+`
16
+ }`}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i},e.prototype.getStyleDefString=function(e){var n,r,i=Object.keys(e),a=Array(i.length),o=0;try{for(var s=t(i),c=s.next();!c.done;c=s.next()){var l=c.value;a[o++]=` `+l+`: `+e[l]+`;`}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a.join(`
17
+ `)},e}()})),ln=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonOutputJax=void 0;var o=S(),s=T(),c=i(),l=q(),u=v(),d=cn();e.CommonOutputJax=function(e){t(i,e);function i(t,n,i){t===void 0&&(t=null),n===void 0&&(n=null),i===void 0&&(i=null);var a=this,o=r((0,c.separateOptions)(t,i.OPTIONS),2),s=o[0],l=o[1];return a=e.call(this,s)||this,a.factory=a.options.wrapperFactory||new n,a.factory.jax=a,a.cssStyles=a.options.cssStyles||new d.CssStyles,a.font=a.options.font||new i(l),a.unknownCache=new Map,a}return i.prototype.typeset=function(e,t){this.setDocument(t);var n=this.createNode();return this.toDOM(e,n,t),n},i.prototype.createNode=function(){var e=this.constructor.NAME;return this.html(`mjx-container`,{class:`MathJax`,jax:e})},i.prototype.setScale=function(e){var t=this.math.metrics.scale*this.options.scale;t!==1&&this.adaptor.setStyle(e,`fontSize`,(0,l.percent)(t))},i.prototype.toDOM=function(e,t,n){n===void 0&&(n=null),this.setDocument(n),this.math=e,this.pxPerEm=e.metrics.ex/this.font.params.x_height,e.root.setTeXclass(null),this.setScale(t),this.nodeMap=new Map,this.container=t,this.processMath(e.root,t),this.nodeMap=null,this.executeFilters(this.postFilters,e,n,t)},i.prototype.getBBox=function(e,t){this.setDocument(t),this.math=e,e.root.setTeXclass(null),this.nodeMap=new Map;var n=this.factory.wrap(e.root).getOuterBBox();return this.nodeMap=null,n},i.prototype.getMetrics=function(e){var t,n;this.setDocument(e);var r=this.adaptor,i=this.getMetricMaps(e);try{for(var o=a(e.math),c=o.next();!c.done;c=o.next()){var l=c.value,u=r.parent(l.start.node);if(l.state()<s.STATE.METRICS&&u){var d=i[+!!l.display].get(u),f=d.em,p=d.ex,m=d.containerWidth,h=d.lineWidth,g=d.scale,_=d.family;l.setMetrics(f,p,m,h,g),this.options.mtextInheritFont&&(l.outputData.mtextFamily=_),this.options.merrorInheritFont&&(l.outputData.merrorFamily=_),l.state(s.STATE.METRICS)}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},i.prototype.getMetricsFor=function(e,t){var n=this.options.mtextInheritFont||this.options.merrorInheritFont,r=this.getTestElement(e,t),i=this.measureMetrics(r,n);return this.adaptor.remove(r),i},i.prototype.getMetricMaps=function(e){var t,n,r,i,o,c,l,u,d,f,p=this.adaptor,m=[new Map,new Map];try{for(var h=a(e.math),g=h.next();!g.done;g=h.next()){var _=g.value,v=p.parent(_.start.node);if(v&&_.state()<s.STATE.METRICS){var y=m[+!!_.display];y.has(v)||y.set(v,this.getTestElement(v,_.display))}}}catch(e){t={error:e}}finally{try{g&&!g.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}var b=this.options.mtextInheritFont||this.options.merrorInheritFont,x=[new Map,new Map];try{for(var S=a(x.keys()),C=S.next();!C.done;C=S.next()){var w=C.value;try{for(var T=(o=void 0,a(m[w].keys())),E=T.next();!E.done;E=T.next()){var v=E.value;x[w].set(v,this.measureMetrics(m[w].get(v),b))}}catch(e){o={error:e}}finally{try{E&&!E.done&&(c=T.return)&&c.call(T)}finally{if(o)throw o.error}}}}catch(e){r={error:e}}finally{try{C&&!C.done&&(i=S.return)&&i.call(S)}finally{if(r)throw r.error}}try{for(var D=a(x.keys()),O=D.next();!O.done;O=D.next()){var w=O.value;try{for(var k=(d=void 0,a(m[w].values())),A=k.next();!A.done;A=k.next()){var v=A.value;p.remove(v)}}catch(e){d={error:e}}finally{try{A&&!A.done&&(f=k.return)&&f.call(k)}finally{if(d)throw d.error}}}}catch(e){l={error:e}}finally{try{O&&!O.done&&(u=D.return)&&u.call(D)}finally{if(l)throw l.error}}return x},i.prototype.getTestElement=function(e,t){var n=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=n.clone(this.testInline),n.setStyle(this.testDisplay,`display`,`table`),n.setStyle(this.testDisplay,`margin-right`,``),n.setStyle(n.firstChild(this.testDisplay),`display`,`none`);var r=n.lastChild(this.testDisplay);n.setStyle(r,`display`,`table-cell`),n.setStyle(r,`width`,`10000em`),n.setStyle(r,`float`,``)}return n.append(e,n.clone(t?this.testDisplay:this.testInline))},i.prototype.measureMetrics=function(e,t){var n=this.adaptor,i=t?n.fontFamily(e):``,a=n.fontSize(e),o=r(n.nodeSize(n.childNode(e,1)),2),s=o[0],c=o[1],l=s?c/60:a*this.options.exFactor;return{em:a,ex:l,containerWidth:s?n.getStyle(e,`display`)===`table`?n.nodeSize(n.lastChild(e))[0]-1:n.nodeBBox(n.lastChild(e)).left-n.nodeBBox(n.firstChild(e)).left-2:1e6,lineWidth:1e6,scale:Math.max(this.options.minScale,this.options.matchFontHeight?l/this.font.params.x_height/a:1),family:i}},i.prototype.styleSheet=function(e){var t,n;if(this.setDocument(e),this.cssStyles.clear(),this.cssStyles.addStyles(this.constructor.commonStyles),`getStyles`in e)try{for(var r=a(e.getStyles()),i=r.next();!i.done;i=r.next()){var o=i.value;this.cssStyles.addStyles(o)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this.addWrapperStyles(this.cssStyles),this.addFontStyles(this.cssStyles),this.html(`style`,{id:`MJX-styles`},[this.text(`
18
+ `+this.cssStyles.cssText+`
19
+ `)])},i.prototype.addFontStyles=function(e){e.addStyles(this.font.styles)},i.prototype.addWrapperStyles=function(e){var t,n;try{for(var r=a(this.factory.getKinds()),i=r.next();!i.done;i=r.next()){var o=i.value;this.addClassStyles(this.factory.getNodeClass(o),e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},i.prototype.addClassStyles=function(e,t){t.addStyles(e.styles)},i.prototype.setDocument=function(e){e&&(this.document=e,this.adaptor.document=e.document)},i.prototype.html=function(e,t,n,r){return t===void 0&&(t={}),n===void 0&&(n=[]),this.adaptor.node(e,t,n,r)},i.prototype.text=function(e){return this.adaptor.text(e)},i.prototype.fixed=function(e,t){return t===void 0&&(t=3),Math.abs(e)<6e-4?`0`:e.toFixed(t).replace(/\.?0+$/,``)},i.prototype.measureText=function(e,t,n){n===void 0&&(n=[``,!1,!1]);var r=this.unknownText(e,t);if(t===`-explicitFont`){var i=this.cssFontStyles(n);this.adaptor.setAttributes(r,{style:i})}return this.measureTextNodeWithCache(r,e,t,n)},i.prototype.measureTextNodeWithCache=function(e,t,n,r){r===void 0&&(r=[``,!1,!1]),n===`-explicitFont`&&(n=[r[0],r[1]?`T`:`F`,r[2]?`T`:`F`,``].join(`-`)),this.unknownCache.has(n)||this.unknownCache.set(n,new Map);var i=this.unknownCache.get(n),a=i.get(t);if(a)return a;var o=this.measureTextNode(e);return i.set(t,o),o},i.prototype.measureXMLnode=function(e){var t=this.adaptor,n=this.html(`mjx-xml-block`,{style:{display:`inline-block`}},[t.clone(e)]),r=this.html(`mjx-baseline`,{style:{display:`inline-block`,width:0,height:0}}),i=this.html(`mjx-measure-xml`,{style:{position:`absolute`,display:`inline-block`,"font-family":`initial`,"line-height":`normal`}},[r,n]);t.append(t.parent(this.math.start.node),this.container),t.append(this.container,i);var a=this.math.metrics.em*this.math.metrics.scale,o=t.nodeBBox(n),s=o.left,c=o.right,l=o.bottom,u=o.top,d=(c-s)/a,f=(t.nodeBBox(r).top-u)/a,p=(l-u)/a-f;return t.remove(this.container),t.remove(i),{w:d,h:f,d:p}},i.prototype.cssFontStyles=function(e,t){t===void 0&&(t={});var n=r(e,3),i=n[0],a=n[1],o=n[2];return t[`font-family`]=this.font.getFamily(i),a&&(t[`font-style`]=`italic`),o&&(t[`font-weight`]=`bold`),t},i.prototype.getFontData=function(e){return e||=new u.Styles,[this.font.getFamily(e.get(`font-family`)),e.get(`font-style`)===`italic`,e.get(`font-weight`)===`bold`]},i.NAME=`Common`,i.OPTIONS=n(n({},o.AbstractOutputJax.OPTIONS),{scale:1,minScale:.5,mtextInheritFont:!1,merrorInheritFont:!1,mtextFont:``,merrorFont:`serif`,mathmlSpacing:!1,skipAttributes:{},exFactor:.5,displayAlign:`center`,displayIndent:`0`,wrapperFactory:null,font:null,cssStyles:null}),i.commonStyles={},i}(o.AbstractOutputJax)})),un=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractWrapperFactory=void 0,e.AbstractWrapperFactory=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return i.prototype.wrap=function(e){var t=[...arguments].slice(1);return this.create.apply(this,r([e.kind,e],n(t),!1))},i}(E().AbstractFactory)})),dn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CommonWrapperFactory=void 0,e.CommonWrapperFactory=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.jax=null,t}return Object.defineProperty(n.prototype,"Wrappers",{get:function(){return this.node},enumerable:!1,configurable:!0}),n.defaultNodes={},n}(un().AbstractWrapperFactory)})),fn=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractWrapper=void 0,e.AbstractWrapper=function(){function e(e,t){this.factory=e,this.node=t}return Object.defineProperty(e.prototype,"kind",{get:function(){return this.node.kind},enumerable:!1,configurable:!0}),e.prototype.wrap=function(e){return this.factory.wrap(e)},e}()})),Z=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BBox=void 0;var t=q();e.BBox=function(){function e(e){e===void 0&&(e={w:0,h:-t.BIGDIMEN,d:-t.BIGDIMEN}),this.w=e.w||0,this.h=`h`in e?e.h:-t.BIGDIMEN,this.d=`d`in e?e.d:-t.BIGDIMEN,this.L=this.R=this.ic=this.sk=this.dx=0,this.scale=this.rscale=1,this.pwidth=``}return e.zero=function(){return new e({h:0,d:0,w:0})},e.empty=function(){return new e},e.prototype.empty=function(){return this.w=0,this.h=this.d=-t.BIGDIMEN,this},e.prototype.clean=function(){this.w===-t.BIGDIMEN&&(this.w=0),this.h===-t.BIGDIMEN&&(this.h=0),this.d===-t.BIGDIMEN&&(this.d=0)},e.prototype.rescale=function(e){this.w*=e,this.h*=e,this.d*=e},e.prototype.combine=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=0);var r=e.rscale,i=t+r*(e.w+e.L+e.R),a=n+r*e.h,o=r*e.d-n;i>this.w&&(this.w=i),a>this.h&&(this.h=a),o>this.d&&(this.d=o)},e.prototype.append=function(e){var t=e.rscale;this.w+=t*(e.w+e.L+e.R),t*e.h>this.h&&(this.h=t*e.h),t*e.d>this.d&&(this.d=t*e.d)},e.prototype.updateFrom=function(e){this.h=e.h,this.d=e.d,this.w=e.w,e.pwidth&&(this.pwidth=e.pwidth)},e.fullWidth=`100%`,e.StyleAdjust=[[`borderTopWidth`,`h`],[`borderRightWidth`,`w`],[`borderBottomWidth`,`d`],[`borderLeftWidth`,`w`,0],[`paddingTop`,`h`],[`paddingRight`,`w`],[`paddingBottom`,`d`],[`paddingLeft`,`w`,0]],e}()})),pn=e((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},a=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.FontData=e.NOSTRETCH=e.H=e.V=void 0;var o=i();e.V=1,e.H=2,e.NOSTRETCH={dir:0},e.FontData=function(){function e(e){var i,s,c,l;e===void 0&&(e=null),this.variant={},this.delimiters={},this.cssFontMap={},this.remapChars={},this.skewIcFactor=.75;var u=this.constructor;this.options=(0,o.userOptions)((0,o.defaultOptions)({},u.OPTIONS),e),this.params=t({},u.defaultParams),this.sizeVariants=r([],n(u.defaultSizeVariants),!1),this.stretchVariants=r([],n(u.defaultStretchVariants),!1),this.cssFontMap=t({},u.defaultCssFonts);try{for(var d=a(Object.keys(this.cssFontMap)),f=d.next();!f.done;f=d.next()){var p=f.value;this.cssFontMap[p][0]===`unknown`&&(this.cssFontMap[p][0]=this.options.unknownFamily)}}catch(e){i={error:e}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}this.cssFamilyPrefix=u.defaultCssFamilyPrefix,this.createVariants(u.defaultVariants),this.defineDelimiters(u.defaultDelimiters);try{for(var m=a(Object.keys(u.defaultChars)),h=m.next();!h.done;h=m.next()){var g=h.value;this.defineChars(g,u.defaultChars[g])}}catch(e){c={error:e}}finally{try{h&&!h.done&&(l=m.return)&&l.call(m)}finally{if(c)throw c.error}}this.defineRemap(`accent`,u.defaultAccentMap),this.defineRemap(`mo`,u.defaultMoMap),this.defineRemap(`mn`,u.defaultMnMap)}return e.charOptions=function(e,t){var n=e[t];return n.length===3&&(n[3]={}),n[3]},Object.defineProperty(e.prototype,"styles",{get:function(){return this._styles},set:function(e){this._styles=e},enumerable:!1,configurable:!0}),e.prototype.createVariant=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null);var r={linked:[],chars:t?Object.create(this.variant[t].chars):{}};n&&this.variant[n]&&(Object.assign(r.chars,this.variant[n].chars),this.variant[n].linked.push(r.chars),r.chars=Object.create(r.chars)),this.remapSmpChars(r.chars,e),this.variant[e]=r},e.prototype.remapSmpChars=function(e,t){var r,i,o,s,c=this.constructor;if(c.VariantSmp[t]){var l=c.SmpRemap,u=[null,null,c.SmpRemapGreekU,c.SmpRemapGreekL];try{for(var d=a(c.SmpRanges),f=d.next();!f.done;f=d.next()){var p=n(f.value,3),m=p[0],h=p[1],g=p[2],_=c.VariantSmp[t][m];if(_){for(var v=h;v<=g;v++)if(v!==930){var y=_+v-h;e[v]=this.smpChar(l[y]||y)}if(u[m])try{for(var b=(o=void 0,a(Object.keys(u[m]).map(function(e){return parseInt(e)}))),x=b.next();!x.done;x=b.next()){var v=x.value;e[v]=this.smpChar(_+u[m][v])}}catch(e){o={error:e}}finally{try{x&&!x.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}}}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}t===`bold`&&(e[988]=this.smpChar(120778),e[989]=this.smpChar(120779))},e.prototype.smpChar=function(e){return[,,,{smp:e}]},e.prototype.createVariants=function(e){var t,n;try{for(var r=a(e),i=r.next();!i.done;i=r.next()){var o=i.value;this.createVariant(o[0],o[1],o[2])}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.defineChars=function(e,t){var n,r,i=this.variant[e];Object.assign(i.chars,t);try{for(var o=a(i.linked),s=o.next();!s.done;s=o.next()){var c=s.value;Object.assign(c,t)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.defineDelimiters=function(e){Object.assign(this.delimiters,e)},e.prototype.defineRemap=function(e,t){this.remapChars.hasOwnProperty(e)||(this.remapChars[e]={}),Object.assign(this.remapChars[e],t)},e.prototype.getDelimiter=function(e){return this.delimiters[e]},e.prototype.getSizeVariant=function(e,t){return this.delimiters[e].variants&&(t=this.delimiters[e].variants[t]),this.sizeVariants[t]},e.prototype.getStretchVariant=function(e,t){return this.stretchVariants[this.delimiters[e].stretchv?this.delimiters[e].stretchv[t]:0]},e.prototype.getChar=function(e,t){return this.variant[e].chars[t]},e.prototype.getVariant=function(e){return this.variant[e]},e.prototype.getCssFont=function(e){return this.cssFontMap[e]||[`serif`,!1,!1]},e.prototype.getFamily=function(e){return this.cssFamilyPrefix?this.cssFamilyPrefix+`, `+e:e},e.prototype.getRemappedChar=function(e,t){return(this.remapChars[e]||{})[t]},e.OPTIONS={unknownFamily:`serif`},e.JAX=`common`,e.NAME=``,e.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`]],e.defaultCssFonts={normal:[`unknown`,!1,!1],bold:[`unknown`,!1,!0],italic:[`unknown`,!0,!1],"bold-italic":[`unknown`,!0,!0],"double-struck":[`unknown`,!1,!0],fraktur:[`unknown`,!1,!1],"bold-fraktur":[`unknown`,!1,!0],script:[`cursive`,!1,!1],"bold-script":[`cursive`,!1,!0],"sans-serif":[`sans-serif`,!1,!1],"bold-sans-serif":[`sans-serif`,!1,!0],"sans-serif-italic":[`sans-serif`,!0,!1],"sans-serif-bold-italic":[`sans-serif`,!0,!0],monospace:[`monospace`,!1,!1]},e.defaultCssFamilyPrefix=``,e.VariantSmp={bold:[119808,119834,120488,120514,120782],italic:[119860,119886,120546,120572],"bold-italic":[119912,119938,120604,120630],script:[119964,119990],"bold-script":[120016,120042],fraktur:[120068,120094],"double-struck":[120120,120146,,,120792],"bold-fraktur":[120172,120198],"sans-serif":[120224,120250,,,120802],"bold-sans-serif":[120276,120302,120662,120688,120812],"sans-serif-italic":[120328,120354],"sans-serif-bold-italic":[120380,120406,120720,120746],monospace:[120432,120458,,,120822]},e.SmpRanges=[[0,65,90],[1,97,122],[2,913,937],[3,945,969],[4,48,57]],e.SmpRemap={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},e.SmpRemapGreekU={8711:25,1012:17},e.SmpRemapGreekL={977:27,981:29,982:31,1008:28,1009:30,1013:26,8706:25},e.defaultAccentMap={768:`ˋ`,769:`ˊ`,770:`ˆ`,771:`˜`,772:`ˉ`,774:`˘`,775:`˙`,776:`¨`,778:`˚`,780:`ˇ`,8594:`⃗`,8242:`'`,8243:`''`,8244:`'''`,8245:"`",8246:"``",8247:"```",8279:`''''`,8400:`↼`,8401:`⇀`,8406:`←`,8417:`↔`,8432:`*`,8411:`...`,8412:`....`,8428:`⇁`,8429:`↽`,8430:`←`,8431:`→`},e.defaultMoMap={45:`−`},e.defaultMnMap={45:`−`},e.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,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,separation_factor:1.75,extra_ic:.033},e.defaultDelimiters={},e.defaultChars={},e.defaultSizeVariants=[],e.defaultStretchVariants=[],e}()})),mn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},a=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},o=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},s=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonWrapper=void 0;var c=fn(),l=A(),u=P(),d=i(q()),f=v(),p=Z(),m=pn(),h=2/18;function g(e,t){return e?t<h?0:h:t}e.CommonWrapper=function(e){t(n,e);function n(t,n,r){r===void 0&&(r=null);var i=e.call(this,t,n)||this;return i.parent=null,i.removedStyles=null,i.styles=null,i.variant=``,i.bboxComputed=!1,i.stretch=m.NOSTRETCH,i.font=null,i.parent=r,i.font=t.jax.font,i.bbox=p.BBox.zero(),i.getStyles(),i.getVariant(),i.getScale(),i.getSpace(),i.childNodes=n.childNodes.map(function(e){var t=i.wrap(e);return t.bbox.pwidth&&(n.notParent||n.isKind(`math`))&&(i.bbox.pwidth=p.BBox.fullWidth),t}),i}return Object.defineProperty(n.prototype,"jax",{get:function(){return this.factory.jax},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"adaptor",{get:function(){return this.factory.jax.adaptor},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"metrics",{get:function(){return this.factory.jax.math.metrics},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"fixesPWidth",{get:function(){return!this.node.notParent&&!this.node.isToken},enumerable:!1,configurable:!0}),n.prototype.wrap=function(e,t){t===void 0&&(t=null);var n=this.factory.wrap(e,t||this);return t&&t.childNodes.push(n),this.jax.nodeMap.set(e,n),n},n.prototype.getBBox=function(e){if(e===void 0&&(e=!0),this.bboxComputed)return this.bbox;var t=e?this.bbox:p.BBox.zero();return this.computeBBox(t),this.bboxComputed=e,t},n.prototype.getOuterBBox=function(e){var t,n;e===void 0&&(e=!0);var r=this.getBBox(e);if(!this.styles)return r;var i=new p.BBox;Object.assign(i,r);try{for(var s=a(p.BBox.StyleAdjust),c=s.next();!c.done;c=s.next()){var l=o(c.value,2),u=l[0],d=l[1],f=this.styles.get(u);f&&(i[d]+=this.length2em(f,1,i.rscale))}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return i},n.prototype.computeBBox=function(e,t){var n,r;t===void 0&&(t=!1),e.empty();try{for(var i=a(this.childNodes),o=i.next();!o.done;o=i.next()){var s=o.value;e.append(s.getOuterBBox())}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.clean(),this.fixesPWidth&&this.setChildPWidths(t)&&this.computeBBox(e,!0)},n.prototype.setChildPWidths=function(e,t,n){var r,i;if(t===void 0&&(t=null),n===void 0&&(n=!0),e)return!1;n&&(this.bbox.pwidth=``);var o=!1;try{for(var s=a(this.childNodes),c=s.next();!c.done;c=s.next()){var l=c.value,u=l.getOuterBBox();u.pwidth&&l.setChildPWidths(e,t===null?u.w:t,n)&&(o=!0)}}catch(e){r={error:e}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o},n.prototype.invalidateBBox=function(){this.bboxComputed&&(this.bboxComputed=!1,this.parent&&this.parent.invalidateBBox())},n.prototype.copySkewIC=function(e){var t=this.childNodes[0];t?.bbox.sk&&(e.sk=t.bbox.sk),t?.bbox.dx&&(e.dx=t.bbox.dx);var n=this.childNodes[this.childNodes.length-1];n?.bbox.ic&&(e.ic=n.bbox.ic,e.w+=e.ic)},n.prototype.getStyles=function(){var e=this.node.attributes.getExplicit(`style`);if(e)for(var t=this.styles=new f.Styles(e),r=0,i=n.removeStyles.length;r<i;r++){var a=n.removeStyles[r];t.get(a)&&(this.removedStyles||={},this.removedStyles[a]=t.get(a),t.set(a,``))}},n.prototype.getVariant=function(){if(this.node.isToken){var e=this.node.attributes,t=e.get(`mathvariant`);if(!e.getExplicit(`mathvariant`)){var r=e.getList(`fontfamily`,`fontweight`,`fontstyle`);if(this.removedStyles){var i=this.removedStyles;i.fontFamily&&(r.family=i.fontFamily),i.fontWeight&&(r.weight=i.fontWeight),i.fontStyle&&(r.style=i.fontStyle)}r.fontfamily&&(r.family=r.fontfamily),r.fontweight&&(r.weight=r.fontweight),r.fontstyle&&(r.style=r.fontstyle),r.weight&&r.weight.match(/^\d+$/)&&(r.weight=parseInt(r.weight)>600?`bold`:`normal`),r.family?t=this.explicitVariant(r.family,r.weight,r.style):(this.node.getProperty(`variantForm`)&&(t=`-tex-variant`),t=(n.BOLDVARIANTS[r.weight]||{})[t]||t,t=(n.ITALICVARIANTS[r.style]||{})[t]||t)}this.variant=t}},n.prototype.explicitVariant=function(e,t,n){var r=this.styles;return r||=this.styles=new f.Styles,r.set(`fontFamily`,e),t&&r.set(`fontWeight`,t),n&&r.set(`fontStyle`,n),`-explicitFont`},n.prototype.getScale=function(){var e=1,t=this.parent,n=t?t.bbox.scale:1,r=this.node.attributes,i=Math.min(r.get(`scriptlevel`),2),a=r.get(`fontsize`),o=this.node.isToken||this.node.isKind(`mstyle`)?r.get(`mathsize`):r.getInherited(`mathsize`);if(i!==0){e=r.get(`scriptsizemultiplier`)**+i;var s=this.length2em(r.get(`scriptminsize`),.8,1);e<s&&(e=s)}this.removedStyles&&this.removedStyles.fontSize&&!a&&(a=this.removedStyles.fontSize),a&&!r.getExplicit(`mathsize`)&&(o=a),o!==`1`&&(e*=this.length2em(o,1,1)),this.bbox.scale=e,this.bbox.rscale=e/n},n.prototype.getSpace=function(){var e=this.isTopEmbellished(),t=this.node.hasSpacingAttributes();this.jax.options.mathmlSpacing||t?e&&this.getMathMLSpacing():this.getTeXSpacing(e,t)},n.prototype.getMathMLSpacing=function(){var e=this.node.coreMO(),t=e.coreParent(),n=t.parent;if(!(!n||!n.isKind(`mrow`)||n.childNodes.length===1)){var r=e.attributes,i=r.get(`scriptlevel`)>0;this.bbox.L=r.isSet(`lspace`)?Math.max(0,this.length2em(r.get(`lspace`))):g(i,e.lspace),this.bbox.R=r.isSet(`rspace`)?Math.max(0,this.length2em(r.get(`rspace`))):g(i,e.rspace);var a=n.childIndex(t);if(a!==0){var o=n.childNodes[a-1];if(o.isEmbellished){var s=this.jax.nodeMap.get(o).getBBox();s.R&&(this.bbox.L=Math.max(0,this.bbox.L-s.R))}}}},n.prototype.getTeXSpacing=function(e,t){if(!t){var n=this.node.texSpacing();n&&(this.bbox.L=this.length2em(n))}if(e||t){var r=this.node.coreMO().attributes;r.isSet(`lspace`)&&(this.bbox.L=Math.max(0,this.length2em(r.get(`lspace`)))),r.isSet(`rspace`)&&(this.bbox.R=Math.max(0,this.length2em(r.get(`rspace`))))}},n.prototype.isTopEmbellished=function(){return this.node.isEmbellished&&!(this.node.parent&&this.node.parent.isEmbellished)},n.prototype.core=function(){return this.jax.nodeMap.get(this.node.core())},n.prototype.coreMO=function(){return this.jax.nodeMap.get(this.node.coreMO())},n.prototype.getText=function(){var e,t,n=``;if(this.node.isToken)try{for(var r=a(this.node.childNodes),i=r.next();!i.done;i=r.next()){var o=i.value;o instanceof l.TextNode&&(n+=o.getText())}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},n.prototype.canStretch=function(e){if(this.stretch=m.NOSTRETCH,this.node.isEmbellished){var t=this.core();t&&t.node!==this.node&&t.canStretch(e)&&(this.stretch=t.stretch)}return this.stretch.dir!==0},n.prototype.getAlignShift=function(){var e,t=(e=this.node.attributes).getList.apply(e,s([],o(l.indentAttributes),!1)),n=t.indentalign,r=t.indentshift,i=t.indentalignfirst,a=t.indentshiftfirst;i!==`indentalign`&&(n=i),n===`auto`&&(n=this.jax.options.displayAlign),a!==`indentshift`&&(r=a),r===`auto`&&(r=this.jax.options.displayIndent,n===`right`&&!r.match(/^\s*0[a-z]*\s*$/)&&(r=(`-`+r.trim()).replace(/^--/,``)));var c=this.length2em(r,this.metrics.containerWidth);return[n,c]},n.prototype.getAlignX=function(e,t,n){return n===`right`?e-(t.w+t.R)*t.rscale:n===`left`?t.L*t.rscale:(e-t.w*t.rscale)/2},n.prototype.getAlignY=function(e,t,n,r,i){return i===`top`?e-n:i===`bottom`?r-t:i===`center`?(e-n-(t-r))/2:0},n.prototype.getWrapWidth=function(e){return this.childNodes[e].getBBox().w},n.prototype.getChildAlign=function(e){return`left`},n.prototype.percent=function(e){return d.percent(e)},n.prototype.em=function(e){return d.em(e)},n.prototype.px=function(e,t){return t===void 0&&(t=-d.BIGDIMEN),d.px(e,t,this.metrics.em)},n.prototype.length2em=function(e,t,n){return t===void 0&&(t=1),n===void 0&&(n=null),n===null&&(n=this.bbox.scale),d.length2em(e,t,n,this.jax.pxPerEm)},n.prototype.unicodeChars=function(e,t){t===void 0&&(t=this.variant);var n=(0,u.unicodeChars)(e),r=this.font.getVariant(t);if(r&&r.chars){var i=r.chars;n=n.map(function(e){return((i[e]||[])[3]||{}).smp||e})}return n},n.prototype.remapChars=function(e){return e},n.prototype.mmlText=function(e){return this.node.factory.create(`text`).setText(e)},n.prototype.mmlNode=function(e,t,n){return t===void 0&&(t={}),n===void 0&&(n=[]),this.node.factory.create(e,t,n)},n.prototype.createMo=function(e){var t=this.node.factory,n=t.create(`text`).setText(e),r=t.create(`mo`,{stretchy:!0},[n]);r.inheritAttributesFrom(this.node);var i=this.wrap(r);return i.parent=this,i},n.prototype.getVariantChar=function(e,t){var n=this.font.getChar(e,t)||[0,0,0,{unknown:!0}];return n.length===3&&(n[3]={}),n},n.kind=`unknown`,n.styles={},n.removeStyles=[`fontSize`,`fontFamily`,`fontWeight`,`fontStyle`,`fontVariant`,`font`],n.skipAttributes={fontfamily:!0,fontsize:!0,fontweight:!0,fontstyle:!0,color:!0,background:!0,class:!0,href:!0,style:!0,xmlns:!0},n.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`}},n.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`}},n}(c.AbstractWrapper)})),Q=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},a=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},o=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},s;Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLWrapper=e.SPACE=e.FONTSIZE=void 0;var c=i(q()),l=mn(),u=Z();e.FONTSIZE={"70.7%":`s`,"70%":`s`,"50%":`ss`,"60%":`Tn`,"85%":`sm`,"120%":`lg`,"144%":`Lg`,"173%":`LG`,"207%":`hg`,"249%":`HG`},e.SPACE=(s={},s[c.em(2/18)]=`1`,s[c.em(3/18)]=`2`,s[c.em(4/18)]=`3`,s[c.em(5/18)]=`4`,s[c.em(6/18)]=`5`,s),e.CHTMLWrapper=function(n){t(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.chtml=null,e}return r.prototype.toCHTML=function(e){var t,n,r=this.standardCHTMLnode(e);try{for(var i=a(this.childNodes),o=i.next();!o.done;o=i.next())o.value.toCHTML(r)}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},r.prototype.standardCHTMLnode=function(e){this.markUsed();var t=this.createCHTMLnode(e);return this.handleStyles(),this.handleVariant(),this.handleScale(),this.handleColor(),this.handleSpace(),this.handleAttributes(),this.handlePWidth(),t},r.prototype.markUsed=function(){this.jax.wrapperUsage.add(this.kind)},r.prototype.createCHTMLnode=function(e){var t=this.node.attributes.get(`href`);return t&&(e=this.adaptor.append(e,this.html(`a`,{href:t}))),this.chtml=this.adaptor.append(e,this.html(`mjx-`+this.node.kind)),this.chtml},r.prototype.handleStyles=function(){if(this.styles){var e=this.styles.cssText;if(e){this.adaptor.setAttribute(this.chtml,`style`,e);var t=this.styles.get(`font-family`);t&&this.adaptor.setStyle(this.chtml,`font-family`,`MJXZERO, `+t)}}},r.prototype.handleVariant=function(){this.node.isToken&&this.variant!==`-explicitFont`&&this.adaptor.setAttribute(this.chtml,`class`,(this.font.getVariant(this.variant)||this.font.getVariant(`normal`)).classes)},r.prototype.handleScale=function(){this.setScale(this.chtml,this.bbox.rscale)},r.prototype.setScale=function(t,n){var r=Math.abs(n-1)<.001?1:n;if(t&&r!==1){var i=this.percent(r);e.FONTSIZE[i]?this.adaptor.setAttribute(t,`size`,e.FONTSIZE[i]):this.adaptor.setStyle(t,`fontSize`,i)}return t},r.prototype.handleSpace=function(){var t,n;try{for(var r=a([[this.bbox.L,`space`,`marginLeft`],[this.bbox.R,`rspace`,`marginRight`]]),i=r.next();!i.done;i=r.next()){var s=i.value,c=o(s,3),l=c[0],u=c[1],d=c[2];if(l){var f=this.em(l);e.SPACE[f]?this.adaptor.setAttribute(this.chtml,u,e.SPACE[f]):this.adaptor.setStyle(this.chtml,d,f)}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},r.prototype.handleColor=function(){var e=this.node.attributes,t=e.getExplicit(`mathcolor`),n=e.getExplicit(`color`),r=e.getExplicit(`mathbackground`),i=e.getExplicit(`background`);(t||n)&&this.adaptor.setStyle(this.chtml,`color`,t||n),(r||i)&&this.adaptor.setStyle(this.chtml,`backgroundColor`,r||i)},r.prototype.handleAttributes=function(){var e,t,n,i,o=this.node.attributes,s=o.getAllDefaults(),c=r.skipAttributes;try{for(var l=a(o.getExplicitNames()),u=l.next();!u.done;u=l.next()){var d=u.value;(c[d]===!1||!(d in s)&&!c[d]&&!this.adaptor.hasAttribute(this.chtml,d))&&this.adaptor.setAttribute(this.chtml,d,o.getExplicit(d))}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}if(o.get(`class`)){var f=o.get(`class`).trim().split(/ +/);try{for(var p=a(f),m=p.next();!m.done;m=p.next()){var h=m.value;this.adaptor.addClass(this.chtml,h)}}catch(e){n={error:e}}finally{try{m&&!m.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}}},r.prototype.handlePWidth=function(){this.bbox.pwidth&&(this.bbox.pwidth===u.BBox.fullWidth?this.adaptor.setAttribute(this.chtml,`width`,`full`):this.adaptor.setStyle(this.chtml,`width`,this.bbox.pwidth))},r.prototype.setIndent=function(e,t,n){var r=this.adaptor;if(t===`center`||t===`left`){var i=this.getBBox().L;r.setStyle(e,`margin-left`,this.em(n+i))}if(t===`center`||t===`right`){var a=this.getBBox().R;r.setStyle(e,`margin-right`,this.em(-n+a))}},r.prototype.drawBBox=function(){var e=this.getBBox(),t=e.w,n=e.h,r=e.d,i=e.R,a=this.html(`mjx-box`,{style:{opacity:.25,"margin-left":this.em(-t-i)}},[this.html(`mjx-box`,{style:{height:this.em(n),width:this.em(t),"background-color":`red`}}),this.html(`mjx-box`,{style:{height:this.em(r),width:this.em(t),"margin-left":this.em(-t),"vertical-align":this.em(-r),"background-color":`green`}})]),o=this.chtml||this.parent.chtml,s=this.adaptor.getAttribute(o,`size`);s&&this.adaptor.setAttribute(a,`size`,s);var c=this.adaptor.getStyle(o,`fontSize`);c&&this.adaptor.setStyle(a,`fontSize`,c),this.adaptor.append(this.adaptor.parent(o),a),this.adaptor.setStyle(o,`backgroundColor`,`#FFEE00`)},r.prototype.html=function(e,t,n){return t===void 0&&(t={}),n===void 0&&(n=[]),this.jax.html(e,t,n)},r.prototype.text=function(e){return this.jax.text(e)},r.prototype.char=function(e){return this.font.charSelector(e).substr(1)},r.kind=`unknown`,r.autoStyle=!0,r}(l.CommonWrapper)})),hn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMathMixin=void 0;function n(e){return function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.getWrapWidth=function(e){return this.parent?this.getBBox().w:this.metrics.containerWidth/this.jax.pxPerEm},n}(e)}e.CommonMathMixin=n})),gn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmath=void 0;var r=Q(),i=hn(),a=j(),o=Z();e.CHTMLmath=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.toCHTML=function(t){e.prototype.toCHTML.call(this,t);var n=this.chtml,r=this.adaptor;this.node.attributes.get(`display`)===`block`?(r.setAttribute(n,`display`,`true`),r.setAttribute(t,`display`,`true`),this.handleDisplay(t)):this.handleInline(t),r.addClass(n,`MJX-TEX`)},r.prototype.handleDisplay=function(e){var t=this.adaptor,r=n(this.getAlignShift(),2),i=r[0],a=r[1];if(i!==`center`&&t.setAttribute(e,`justify`,i),this.bbox.pwidth===o.BBox.fullWidth){if(t.setAttribute(e,`width`,`full`),this.jax.table){var s=this.jax.table.getOuterBBox(),c=s.L,l=s.w,u=s.R;i===`right`?u=Math.max(u||-a,-a):i===`left`?c=Math.max(c||a,a):i===`center`&&(l+=2*Math.abs(a));var d=this.em(Math.max(0,c+l+u));t.setStyle(e,`min-width`,d),t.setStyle(this.jax.table.chtml,`min-width`,d)}}else this.setIndent(this.chtml,i,a)},r.prototype.handleInline=function(e){var t=this.adaptor,n=t.getStyle(this.chtml,`margin-right`);n&&(t.setStyle(this.chtml,`margin-right`,``),t.setStyle(e,`margin-right`,n),t.setStyle(e,`width`,`0`))},r.prototype.setChildPWidths=function(t,n,r){return n===void 0&&(n=null),r===void 0&&(r=!0),this.parent?e.prototype.setChildPWidths.call(this,t,n,r):!1},r.kind=a.MmlMath.prototype.kind,r.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`,"border-collapse":`collapse`,"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`}},r}((0,i.CommonMathMixin)(r.CHTMLWrapper))})),_n=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMiMixin=void 0;function n(e){return function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.computeBBox=function(t,n){n===void 0&&(n=!1),e.prototype.computeBBox.call(this,t),this.copySkewIC(t)},n}(e)}e.CommonMiMixin=n})),vn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmi=void 0;var n=Q(),r=_n(),i=M();e.CHTMLmi=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.kind=i.MmlMi.prototype.kind,n}((0,r.CommonMiMixin)(n.CHTMLWrapper))})),yn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},i=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},a=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},o;Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMoMixin=e.DirectionVH=void 0;var s=Z(),c=P(),l=pn();e.DirectionVH=(o={},o[1]=`v`,o[2]=`h`,o);function u(e){return function(e){t(o,e);function o(){var t=[...arguments],n=e.apply(this,i([],r(t),!1))||this;return n.size=null,n.isAccent=n.node.isAccent,n}return o.prototype.computeBBox=function(e,t){if(t===void 0&&(t=!1),this.protoBBox(e),this.node.attributes.get(`symmetric`)&&this.stretch.dir!==2){var n=this.getCenterOffset(e);e.h+=n,e.d-=n}this.node.getProperty(`mathaccent`)&&(this.stretch.dir===0||this.size>=0)&&(e.w=0)},o.prototype.protoBBox=function(t){var n=this.stretch.dir!==0;n&&this.size===null&&this.getStretchedVariant([0]),!(n&&this.size<0)&&(e.prototype.computeBBox.call(this,t),this.copySkewIC(t))},o.prototype.getAccentOffset=function(){var e=s.BBox.empty();return this.protoBBox(e),-e.w/2},o.prototype.getCenterOffset=function(t){return t===void 0&&(t=null),t||(t=s.BBox.empty(),e.prototype.computeBBox.call(this,t)),(t.h+t.d)/2+this.font.params.axis_height-t.h},o.prototype.getVariant=function(){if(this.node.attributes.get(`largeop`)){this.variant=this.node.attributes.get(`displaystyle`)?`-largeop`:`-smallop`;return}if(!this.node.attributes.getExplicit(`mathvariant`)&&this.node.getProperty(`pseudoscript`)===!1){this.variant=`-tex-variant`;return}e.prototype.getVariant.call(this)},o.prototype.canStretch=function(e){if(this.stretch.dir!==0)return this.stretch.dir===e;if(!this.node.attributes.get(`stretchy`))return!1;var t=this.getText();if(Array.from(t).length!==1)return!1;var n=this.font.getDelimiter(t.codePointAt(0));return this.stretch=n&&n.dir===e?n:l.NOSTRETCH,this.stretch.dir!==0},o.prototype.getStretchedVariant=function(e,t){var r,i;if(t===void 0&&(t=!1),this.stretch.dir!==0){var o=this.getWH(e),s=this.getSize(`minsize`,0),c=this.getSize(`maxsize`,1/0),l=this.node.getProperty(`mathaccent`);o=Math.max(s,Math.min(c,o));var u=this.font.params.delimiterfactor/1e3,d=this.font.params.delimitershortfall,f=s||t?o:l?Math.min(o/u,o+d):Math.max(o*u,o-d),p=this.stretch,m=p.c||this.getText().codePointAt(0),h=0;if(p.sizes)try{for(var g=a(p.sizes),_=g.next();!_.done;_=g.next()){if(_.value>=f){l&&h&&h--,this.variant=this.font.getSizeVariant(m,h),this.size=h,p.schar&&p.schar[h]&&(this.stretch=n(n({},this.stretch),{c:p.schar[h]}));return}h++}}catch(e){r={error:e}}finally{try{_&&!_.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}p.stretch?(this.size=-1,this.invalidateBBox(),this.getStretchBBox(e,this.checkExtendedHeight(o,p),p)):(this.variant=this.font.getSizeVariant(m,h-1),this.size=h-1)}},o.prototype.getSize=function(e,t){var n=this.node.attributes;return n.isSet(e)&&(t=this.length2em(n.get(e),1,1)),t},o.prototype.getWH=function(e){if(e.length===0)return 0;if(e.length===1)return e[0];var t=r(e,2),n=t[0],i=t[1],a=this.font.params.axis_height;return this.node.attributes.get(`symmetric`)?2*Math.max(n-a,i+a):n+i},o.prototype.getStretchBBox=function(e,t,n){var i;n.hasOwnProperty(`min`)&&n.min>t&&(t=n.min);var a=r(n.HDW,3),o=a[0],s=a[1],c=a[2];this.stretch.dir===1?(i=r(this.getBaseline(e,t,n),2),o=i[0],s=i[1]):c=t,this.bbox.h=o,this.bbox.d=s,this.bbox.w=c},o.prototype.getBaseline=function(e,t,n){var i=e.length===2&&e[0]+e[1]===t,a=this.node.attributes.get(`symmetric`),o=r(i?e:[t,0],2),s=o[0],c=o[1],l=r([s+c,0],2),u=l[0],d=l[1];if(a){var f=this.font.params.axis_height;i&&(u=2*Math.max(s-f,c+f)),d=u/2-f}else if(i)d=c;else{var p=r(n.HDW||[.75,.25],2),m=p[0],h=p[1];d=h*(u/(m+h))}return[u-d,d]},o.prototype.checkExtendedHeight=function(e,t){if(t.fullExt){var n=r(t.fullExt,2),i=n[0],a=n[1];e=a+Math.ceil(Math.max(0,e-a)/i)*i}return e},o.prototype.remapChars=function(e){var t=this.node.getProperty(`primes`);if(t)return(0,c.unicodeChars)(t);if(e.length===1){var n=this.node.coreParent().parent,r=this.isAccent&&!n.isKind(`mrow`)?`accent`:`mo`,i=this.font.getRemappedChar(r,e[0]);i&&(e=this.unicodeChars(i,this.variant))}return e},o}(e)}e.CommonMoMixin=u})),bn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmo=void 0;var r=Q(),i=yn(),a=F();e.CHTMLmo=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.toCHTML=function(e){var t,r,i=this.node.attributes,a=i.get(`symmetric`)&&this.stretch.dir!==2,o=this.stretch.dir!==0;o&&this.size===null&&this.getStretchedVariant([]);var s=this.standardCHTMLnode(e);if(o&&this.size<0)this.stretchHTML(s);else{if(a||i.get(`largeop`)){var c=this.em(this.getCenterOffset());c!==`0`&&this.adaptor.setStyle(s,`verticalAlign`,c)}this.node.getProperty(`mathaccent`)&&(this.adaptor.setStyle(s,`width`,`0`),this.adaptor.setStyle(s,`margin-left`,this.em(this.getAccentOffset())));try{for(var l=n(this.childNodes),u=l.next();!u.done;u=l.next())u.value.toCHTML(s)}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}}},r.prototype.stretchHTML=function(e){var t=this.getText().codePointAt(0);this.font.delimUsage.add(t),this.childNodes[0].markUsed();var n=this.stretch,r=n.stretch,a=[];r[0]&&a.push(this.html(`mjx-beg`,{},[this.html(`mjx-c`)])),a.push(this.html(`mjx-ext`,{},[this.html(`mjx-c`)])),r.length===4&&a.push(this.html(`mjx-mid`,{},[this.html(`mjx-c`)]),this.html(`mjx-ext`,{},[this.html(`mjx-c`)])),r[2]&&a.push(this.html(`mjx-end`,{},[this.html(`mjx-c`)]));var o={},s=this.bbox,c=s.h,l=s.d,u=s.w;n.dir===1?(a.push(this.html(`mjx-mark`)),o.height=this.em(c+l),o.verticalAlign=this.em(-l)):o.width=this.em(u);var d=i.DirectionVH[n.dir],f={class:this.char(n.c||t),style:o},p=this.html(`mjx-stretchy-`+d,f,a);this.adaptor.append(e,p)},r.kind=a.MmlMo.prototype.kind,r.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`,width:`initial`},"mjx-stretchy-h > mjx-ext":{"/* IE */ overflow":`hidden`,"/* others */ overflow":`clip visible`,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`,"/* IE */ overflow":`hidden`,"/* others */ overflow":`visible clip`},"mjx-stretchy-v > mjx-ext > mjx-c::before":{width:`initial`,"box-sizing":`border-box`},"mjx-stretchy-v > mjx-ext > mjx-c":{transform:`scaleY(500) translateY(.075em)`,overflow:`visible`},"mjx-mark":{display:`inline-block`,height:`0px`}},r}((0,i.CommonMoMixin)(r.CHTMLWrapper))})),xn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMnMixin=void 0;function n(e){return function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.remapChars=function(e){if(e.length){var t=this.font.getRemappedChar(`mn`,e[0]);if(t){var n=this.unicodeChars(t,this.variant);n.length===1?e[0]=n[0]:e=n.concat(e.slice(1))}}return e},n}(e)}e.CommonMnMixin=n})),Sn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmn=void 0;var n=Q(),r=xn(),i=ee();e.CHTMLmn=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.kind=i.MmlMn.prototype.kind,n}((0,r.CommonMnMixin)(n.CHTMLWrapper))})),Cn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMsMixin=void 0;function i(e){return function(e){t(i,e);function i(){var t=[...arguments],i=e.apply(this,r([],n(t),!1))||this,a=i.node.attributes,o=a.getList(`lquote`,`rquote`);return i.variant!==`monospace`&&(!a.isSet(`lquote`)&&o.lquote===`"`&&(o.lquote=`“`),!a.isSet(`rquote`)&&o.rquote===`"`&&(o.rquote=`”`)),i.childNodes.unshift(i.createText(o.lquote)),i.childNodes.push(i.createText(o.rquote)),i}return i.prototype.createText=function(e){var t=this.wrap(this.mmlText(e));return t.parent=this,t},i}(e)}e.CommonMsMixin=i})),wn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLms=void 0;var n=Q(),r=Cn(),i=re();e.CHTMLms=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.kind=i.MmlMs.prototype.kind,n}((0,r.CommonMsMixin)(n.CHTMLWrapper))})),Tn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMtextMixin=void 0;function n(e){var n;return n=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.getVariant=function(){var t=this.jax.options,n=this.jax.math.outputData,r=(!!n.merrorFamily||!!t.merrorFont)&&this.node.Parent.isKind(`merror`);if(n.mtextFamily||t.mtextFont||r){var i=this.node.attributes.get(`mathvariant`),a=this.constructor.INHERITFONTS[i]||this.jax.font.getCssFont(i),o=a[0]||(r?n.merrorFamily||t.merrorFont:n.mtextFamily||t.mtextFont);this.variant=this.explicitVariant(o,a[2]?`bold`:``,a[1]?`italic`:``);return}e.prototype.getVariant.call(this)},n}(e),n.INHERITFONTS={normal:[``,!1,!1],bold:[``,!1,!0],italic:[``,!0,!1],"bold-italic":[``,!0,!0]},n}e.CommonMtextMixin=n})),En=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmtext=void 0;var n=Q(),r=Tn(),i=te();e.CHTMLmtext=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.kind=i.MmlMtext.prototype.kind,n}((0,r.CommonMtextMixin)(n.CHTMLWrapper))})),Dn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMspaceMixin=void 0;function n(e){return function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.computeBBox=function(e,t){t===void 0&&(t=!1);var n=this.node.attributes;e.w=this.length2em(n.get(`width`),0),e.h=this.length2em(n.get(`height`),0),e.d=this.length2em(n.get(`depth`),0)},n.prototype.handleVariant=function(){},n}(e)}e.CommonMspaceMixin=n})),On=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmspace=void 0;var n=Q(),r=Dn(),i=ne();e.CHTMLmspace=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.toCHTML=function(e){var t=this.standardCHTMLnode(e),n=this.getBBox(),r=n.w,i=n.h,a=n.d;r<0&&(this.adaptor.setStyle(t,`marginRight`,this.em(r)),r=0),r&&this.adaptor.setStyle(t,`width`,this.em(r)),i=Math.max(0,i+a),i&&this.adaptor.setStyle(t,`height`,this.em(Math.max(0,i))),a&&this.adaptor.setStyle(t,`verticalAlign`,this.em(-a))},n.kind=i.MmlMspace.prototype.kind,n}((0,r.CommonMspaceMixin)(n.CHTMLWrapper))})),kn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMpaddedMixin=void 0;function r(e){return function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDimens=function(){var e=this.node.attributes.getList(`width`,`height`,`depth`,`lspace`,`voffset`),t=this.childNodes[0].getBBox(),n=t.w,r=t.h,i=t.d,a=n,o=r,s=i,c=0,l=0,u=0;e.width!==``&&(n=this.dimen(e.width,t,`w`,0)),e.height!==``&&(r=this.dimen(e.height,t,`h`,0)),e.depth!==``&&(i=this.dimen(e.depth,t,`d`,0)),e.voffset!==``&&(l=this.dimen(e.voffset,t)),e.lspace!==``&&(c=this.dimen(e.lspace,t));var d=this.node.attributes.get(`data-align`);return d&&(u=this.getAlignX(n,t,d)),[o,s,a,r-o,i-s,n-a,c,l,u]},r.prototype.dimen=function(e,t,n,r){n===void 0&&(n=``),r===void 0&&(r=null),e=String(e);var i=e.match(/width|height|depth/),a=i?t[i[0].charAt(0)]:n?t[n]:0,o=this.length2em(e,a)||0;return e.match(/^[-+]/)&&n&&(o+=a),r!=null&&(o=Math.max(r,o)),o},r.prototype.computeBBox=function(e,t){t===void 0&&(t=!1);var r=n(this.getDimens(),6),i=r[0],a=r[1],o=r[2],s=r[3],c=r[4];e.w=o+r[5],e.h=i+s,e.d=a+c,this.setChildPWidths(t,e.w)},r.prototype.getWrapWidth=function(e){return this.getBBox().w},r.prototype.getChildAlign=function(e){return this.node.attributes.get(`data-align`)||`left`},r}(e)}e.CommonMpaddedMixin=r})),An=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmpadded=void 0;var i=Q(),a=kn(),o=ue();e.CHTMLmpadded=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return i.prototype.toCHTML=function(e){var t,i,a=this.standardCHTMLnode(e),o=[],s={},c=n(this.getDimens(),9),l=c[2],u=c[3],d=c[4],f=c[5],p=c[6],m=c[7],h=c[8];if(f&&(s.width=this.em(l+f)),(u||d)&&(s.margin=this.em(u)+` 0 `+this.em(d)),p+h||m){s.position=`relative`;var g=this.html(`mjx-rbox`,{style:{left:this.em(p+h),top:this.em(-m),"max-width":s.width}});p+h&&this.childNodes[0].getBBox().pwidth&&(this.adaptor.setAttribute(g,`width`,`full`),this.adaptor.setStyle(g,`left`,this.em(p))),o.push(g)}a=this.adaptor.append(a,this.html(`mjx-block`,{style:s},o));try{for(var _=r(this.childNodes),v=_.next();!v.done;v=_.next())v.value.toCHTML(o[0]||a)}catch(e){t={error:e}}finally{try{v&&!v.done&&(i=_.return)&&i.call(_)}finally{if(t)throw t.error}}},i.kind=o.MmlMpadded.prototype.kind,i.styles={"mjx-mpadded":{display:`inline-block`},"mjx-rbox":{display:`inline-block`,position:`relative`}},i}((0,a.CommonMpaddedMixin)(i.CHTMLWrapper))})),jn=e((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonArrow=e.CommonDiagonalArrow=e.CommonDiagonalStrike=e.CommonBorder2=e.CommonBorder=e.arrowBBox=e.diagonalArrowDef=e.arrowDef=e.arrowBBoxW=e.arrowBBoxHD=e.arrowHead=e.fullBorder=e.fullPadding=e.fullBBox=e.sideNames=e.sideIndex=e.SOLID=e.PADDING=e.THICKNESS=e.ARROWY=e.ARROWDX=e.ARROWX=void 0,e.ARROWX=4,e.ARROWDX=1,e.ARROWY=2,e.THICKNESS=.067,e.PADDING=.2,e.SOLID=e.THICKNESS+`em solid`,e.sideIndex={top:0,right:1,bottom:2,left:3},e.sideNames=Object.keys(e.sideIndex),e.fullBBox=(function(e){return[,,,,].fill(e.thickness+e.padding)}),e.fullPadding=(function(e){return[,,,,].fill(e.padding)}),e.fullBorder=(function(e){return[,,,,].fill(e.thickness)}),e.arrowHead=function(e){return Math.max(e.padding,e.thickness*(e.arrowhead.x+e.arrowhead.dx+1))},e.arrowBBoxHD=function(e,t){if(e.childNodes[0]){var n=e.childNodes[0].getBBox(),r=n.h,i=n.d;t[0]=t[2]=Math.max(0,e.thickness*e.arrowhead.y-(r+i)/2)}return t},e.arrowBBoxW=function(e,t){if(e.childNodes[0]){var n=e.childNodes[0].getBBox().w;t[1]=t[3]=Math.max(0,e.thickness*e.arrowhead.y-n/2)}return t},e.arrowDef={up:[-Math.PI/2,!1,!0,`verticalstrike`],down:[Math.PI/2,!1,!0,`verticakstrike`],right:[0,!1,!1,`horizontalstrike`],left:[Math.PI,!1,!1,`horizontalstrike`],updown:[Math.PI/2,!0,!0,`verticalstrike uparrow downarrow`],leftright:[0,!0,!1,`horizontalstrike leftarrow rightarrow`]},e.diagonalArrowDef={updiagonal:[-1,0,!1,`updiagonalstrike northeastarrow`],northeast:[-1,0,!1,`updiagonalstrike updiagonalarrow`],southeast:[1,0,!1,`downdiagonalstrike`],northwest:[1,Math.PI,!1,`downdiagonalstrike`],southwest:[-1,Math.PI,!1,`updiagonalstrike`],northeastsouthwest:[-1,0,!0,`updiagonalstrike northeastarrow updiagonalarrow southwestarrow`],northwestsoutheast:[1,0,!0,`downdiagonalstrike northwestarrow southeastarrow`]},e.arrowBBox={up:function(t){return(0,e.arrowBBoxW)(t,[(0,e.arrowHead)(t),0,t.padding,0])},down:function(t){return(0,e.arrowBBoxW)(t,[t.padding,0,(0,e.arrowHead)(t),0])},right:function(t){return(0,e.arrowBBoxHD)(t,[0,(0,e.arrowHead)(t),0,t.padding])},left:function(t){return(0,e.arrowBBoxHD)(t,[0,t.padding,0,(0,e.arrowHead)(t)])},updown:function(t){return(0,e.arrowBBoxW)(t,[(0,e.arrowHead)(t),0,(0,e.arrowHead)(t),0])},leftright:function(t){return(0,e.arrowBBoxHD)(t,[0,(0,e.arrowHead)(t),0,(0,e.arrowHead)(t)])}},e.CommonBorder=function(t){return function(n){var r=e.sideIndex[n];return[n,{renderer:t,bbox:function(e){var t=[0,0,0,0];return t[r]=e.thickness+e.padding,t},border:function(e){var t=[0,0,0,0];return t[r]=e.thickness,t}}]}},e.CommonBorder2=function(t){return function(n,r,i){var a=e.sideIndex[r],o=e.sideIndex[i];return[n,{renderer:t,bbox:function(e){var t=e.thickness+e.padding,n=[0,0,0,0];return n[a]=n[o]=t,n},border:function(e){var t=[0,0,0,0];return t[a]=t[o]=e.thickness,t},remove:r+` `+i}]}},e.CommonDiagonalStrike=function(t){return function(n){var r=`mjx-`+n.charAt(0)+`strike`;return[n+`diagonalstrike`,{renderer:t(r),bbox:e.fullBBox}]}},e.CommonDiagonalArrow=function(n){return function(r){var i=t(e.diagonalArrowDef[r],4),a=i[0],o=i[1],s=i[2],c=i[3];return[r+`arrow`,{renderer:function(e,r){var i=t(e.arrowAW(),2),c=i[0],l=i[1];n(e,e.arrow(l,a*(c-o),s))},bbox:function(e){var n=e.arrowData(),r=n.a,i=n.x,a=n.y,o=t([e.arrowhead.x,e.arrowhead.y,e.arrowhead.dx],3),s=o[0],c=o[1],l=o[2],u=t(e.getArgMod(s+l,c),2),d=u[0],f=u[1],p=a+(d>r?e.thickness*f*Math.sin(d-r):0),m=i+(d>Math.PI/2-r?e.thickness*f*Math.sin(d+r-Math.PI/2):0);return[p,m,p,m]},remove:c}]}},e.CommonArrow=function(n){return function(r){var i=t(e.arrowDef[r],4),a=i[0],o=i[1],s=i[2],c=i[3];return[r+`arrow`,{renderer:function(e,r){var i=e.getBBox(),c=i.w,l=i.h,u=i.d,d=t(s?[l+u,`X`]:[c,`Y`],2),f=d[0],p=d[1],m=e.getOffset(p);n(e,e.arrow(f,a,o,p,m))},bbox:e.arrowBBox[r],remove:c}]}}})),Mn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},a=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},o=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},s=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMencloseMixin=void 0;var c=i(jn()),l=P();function u(e){return function(e){t(n,e);function n(){var t=[...arguments],n=e.apply(this,o([],a(t),!1))||this;return n.notations={},n.renderChild=null,n.msqrt=null,n.padding=c.PADDING,n.thickness=c.THICKNESS,n.arrowhead={x:c.ARROWX,y:c.ARROWY,dx:c.ARROWDX},n.TRBL=[0,0,0,0],n.getParameters(),n.getNotations(),n.removeRedundantNotations(),n.initializeNotations(),n.TRBL=n.getBBoxExtenders(),n}return n.prototype.getParameters=function(){var e=this.node.attributes,t=e.get(`data-padding`);t!==void 0&&(this.padding=this.length2em(t,c.PADDING));var n=e.get(`data-thickness`);n!==void 0&&(this.thickness=this.length2em(n,c.THICKNESS));var r=e.get(`data-arrowhead`);if(r!==void 0){var i=a((0,l.split)(r),3),o=i[0],s=i[1],u=i[2];this.arrowhead={x:o?parseFloat(o):c.ARROWX,y:s?parseFloat(s):c.ARROWY,dx:u?parseFloat(u):c.ARROWDX}}},n.prototype.getNotations=function(){var e,t,n=this.constructor.notations;try{for(var r=s((0,l.split)(this.node.attributes.get(`notation`))),i=r.next();!i.done;i=r.next()){var a=i.value,o=n.get(a);o&&(this.notations[a]=o,o.renderChild&&(this.renderChild=o.renderer))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},n.prototype.removeRedundantNotations=function(){var e,t,n,r;try{for(var i=s(Object.keys(this.notations)),a=i.next();!a.done;a=i.next()){var o=a.value;if(this.notations[o]){var c=this.notations[o].remove||``;try{for(var l=(n=void 0,s(c.split(/ /))),u=l.next();!u.done;u=l.next()){var d=u.value;delete this.notations[d]}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},n.prototype.initializeNotations=function(){var e,t;try{for(var n=s(Object.keys(this.notations)),r=n.next();!r.done;r=n.next()){var i=r.value,a=this.notations[i].init;a&&a(this)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},n.prototype.computeBBox=function(e,t){t===void 0&&(t=!1);var n=a(this.TRBL,4),r=n[0],i=n[1],o=n[2],s=n[3],c=this.childNodes[0].getBBox();e.combine(c,s,0),e.h+=r,e.d+=o,e.w+=i,this.setChildPWidths(t)},n.prototype.getBBoxExtenders=function(){var e,t,n=[0,0,0,0];try{for(var r=s(Object.keys(this.notations)),i=r.next();!i.done;i=r.next()){var a=i.value;this.maximizeEntries(n,this.notations[a].bbox(this))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},n.prototype.getPadding=function(){var e,t,n=this,r=[0,0,0,0];try{for(var i=s(Object.keys(this.notations)),a=i.next();!a.done;a=i.next()){var o=a.value,c=this.notations[o].border;c&&this.maximizeEntries(r,c(this))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return[0,1,2,3].map(function(e){return n.TRBL[e]-r[e]})},n.prototype.maximizeEntries=function(e,t){for(var n=0;n<e.length;n++)e[n]<t[n]&&(e[n]=t[n])},n.prototype.getOffset=function(e){var t=a(this.TRBL,4),n=t[0],r=t[1],i=t[2],o=t[3],s=(e===`X`?r-o:i-n)/2;return Math.abs(s)>.001?s:0},n.prototype.getArgMod=function(e,t){return[Math.atan2(t,e),Math.sqrt(e*e+t*t)]},n.prototype.arrow=function(e,t,n,r,i){return r===void 0&&(r=``),i===void 0&&(i=0),null},n.prototype.arrowData=function(){var e=a([this.padding,this.thickness],2),t=e[0],n=e[1]*(this.arrowhead.x+Math.max(1,this.arrowhead.dx)),r=this.childNodes[0].getBBox(),i=r.h,o=r.d,s=r.w,c=i+o,l=Math.sqrt(c*c+s*s),u=Math.max(t,n*s/l),d=Math.max(t,n*c/l),f=a(this.getArgMod(s+2*u,c+2*d),2);return{a:f[0],W:f[1],x:u,y:d}},n.prototype.arrowAW=function(){var e=this.childNodes[0].getBBox(),t=e.h,n=e.d,r=e.w,i=a(this.TRBL,4),o=i[0],s=i[1],c=i[2],l=i[3];return this.getArgMod(l+r+s,o+t+n+c)},n.prototype.createMsqrt=function(e){var t=this.node.factory.create(`msqrt`);t.inheritAttributesFrom(this.node),t.childNodes[0]=e.node;var n=this.wrap(t);return n.parent=this,n},n.prototype.sqrtTRBL=function(){var e=this.msqrt.getBBox(),t=this.msqrt.childNodes[0].getBBox();return[e.h-t.h,0,e.d-t.d,e.w-t.w]},n}(e)}e.CommonMencloseMixin=u})),Nn=e((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)},a=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.Arrow=e.DiagonalArrow=e.DiagonalStrike=e.Border2=e.Border=e.RenderElement=void 0;var o=r(jn());i(jn(),e),e.RenderElement=function(e,t){return t===void 0&&(t=``),(function(n,r){var i=n.adjustBorder(n.html(`mjx-`+e));if(t){var a=n.getOffset(t);if(n.thickness!==o.THICKNESS||a){var s=`translate${t}(${n.em(n.thickness/2-a)})`;n.adaptor.setStyle(i,`transform`,s)}}n.adaptor.append(n.chtml,i)})},e.Border=function(e){return o.CommonBorder(function(t,n){t.adaptor.setStyle(n,`border-`+e,t.em(t.thickness)+` solid`)})(e)},e.Border2=function(e,t,n){return o.CommonBorder2(function(e,r){var i=e.em(e.thickness)+` solid`;e.adaptor.setStyle(r,`border-`+t,i),e.adaptor.setStyle(r,`border-`+n,i)})(e,t,n)},e.DiagonalStrike=function(e,t){return o.CommonDiagonalStrike(function(e){return function(n,r){var i=n.getBBox(),o=i.w,s=i.h,c=i.d,l=a(n.getArgMod(o,s+c),2),u=l[0],d=l[1],f=t*n.thickness/2,p=n.adjustBorder(n.html(e,{style:{width:n.em(d),transform:`rotate(`+n.fixed(-t*u)+`rad) translateY(`+f+`em)`}}));n.adaptor.append(n.chtml,p)}})(e)},e.DiagonalArrow=function(e){return o.CommonDiagonalArrow(function(e,t){e.adaptor.append(e.chtml,t)})(e)},e.Arrow=function(e){return o.CommonArrow(function(e,t){e.adaptor.append(e.chtml,t)})(e)}})),Pn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return r(t,e),t},a=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},o=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmenclose=void 0;var s=Q(),c=Mn(),l=i(Nn()),u=pe(),d=q();function f(e,t){return Math.atan2(e,t).toFixed(3).replace(/\.?0+$/,``)}var p=f(l.ARROWDX,l.ARROWY);e.CHTMLmenclose=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.toCHTML=function(e){var t,n,r,i,o=this.adaptor,s=this.standardCHTMLnode(e),c=o.append(s,this.html(`mjx-box`));this.renderChild?this.renderChild(this,c):this.childNodes[0].toCHTML(c);try{for(var u=a(Object.keys(this.notations)),d=u.next();!d.done;d=u.next()){var f=d.value,p=this.notations[f];!p.renderChild&&p.renderer(this,c)}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var m=this.getPadding();try{for(var h=a(l.sideNames),g=h.next();!g.done;g=h.next()){var _=g.value,v=l.sideIndex[_];m[v]>0&&o.setStyle(c,`padding-`+_,this.em(m[v]))}}catch(e){r={error:e}}finally{try{g&&!g.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}},n.prototype.arrow=function(e,t,n,r,i){r===void 0&&(r=``),i===void 0&&(i=0);var a=this.getBBox().w,o={width:this.em(e)};a!==e&&(o.left=this.em((a-e)/2)),t&&(o.transform=`rotate(`+this.fixed(t)+`rad)`);var s=this.html(`mjx-arrow`,{style:o},[this.html(`mjx-aline`),this.html(`mjx-rthead`),this.html(`mjx-rbhead`)]);return n&&(this.adaptor.append(s,this.html(`mjx-lthead`)),this.adaptor.append(s,this.html(`mjx-lbhead`)),this.adaptor.setAttribute(s,`double`,`true`)),this.adjustArrow(s,n),this.moveArrow(s,r,i),s},n.prototype.adjustArrow=function(e,t){var n=this,r=this.thickness,i=this.arrowhead;if(!(i.x===l.ARROWX&&i.y===l.ARROWY&&i.dx===l.ARROWDX&&r===l.THICKNESS)){var a=o([r*i.x,r*i.y].map(function(e){return n.em(e)}),2),s=a[0],c=a[1],u=f(i.dx,i.y),d=o(this.adaptor.childNodes(e),5),p=d[0],m=d[1],h=d[2],g=d[3],_=d[4];this.adjustHead(m,[c,`0`,`1px`,s],u),this.adjustHead(h,[`1px`,`0`,c,s],`-`+u),this.adjustHead(g,[c,s,`1px`,`0`],`-`+u),this.adjustHead(_,[`1px`,s,c,`0`],u),this.adjustLine(p,r,i.x,t)}},n.prototype.adjustHead=function(e,t,n){e&&(this.adaptor.setStyle(e,`border-width`,t.join(` `)),this.adaptor.setStyle(e,`transform`,`skewX(`+n+`rad)`))},n.prototype.adjustLine=function(e,t,n,r){this.adaptor.setStyle(e,`borderTop`,this.em(t)+` solid`),this.adaptor.setStyle(e,`top`,this.em(-t/2)),this.adaptor.setStyle(e,`right`,this.em(t*(n-1))),r&&this.adaptor.setStyle(e,`left`,this.em(t*(n-1)))},n.prototype.moveArrow=function(e,t,n){if(n){var r=this.adaptor.getStyle(e,`transform`);this.adaptor.setStyle(e,`transform`,`translate${t}(${this.em(-n)})${r?` `+r:``}`)}},n.prototype.adjustBorder=function(e){return this.thickness!==l.THICKNESS&&this.adaptor.setStyle(e,`borderWidth`,this.em(this.thickness)),e},n.prototype.adjustThickness=function(e){return this.thickness!==l.THICKNESS&&this.adaptor.setStyle(e,`strokeWidth`,this.fixed(this.thickness)),e},n.prototype.fixed=function(e,t){return t===void 0&&(t=3),Math.abs(e)<6e-4?`0`:e.toFixed(t).replace(/\.?0+$/,``)},n.prototype.em=function(t){return e.prototype.em.call(this,t)},n.kind=u.MmlMenclose.prototype.kind,n.styles={"mjx-menclose":{position:`relative`},"mjx-menclose > mjx-dstrike":{display:`inline-block`,left:0,top:0,position:`absolute`,"border-top":l.SOLID,"transform-origin":`top left`},"mjx-menclose > mjx-ustrike":{display:`inline-block`,left:0,bottom:0,position:`absolute`,"border-top":l.SOLID,"transform-origin":`bottom left`},"mjx-menclose > mjx-hstrike":{"border-top":l.SOLID,position:`absolute`,left:0,right:0,bottom:`50%`,transform:`translateY(`+(0,d.em)(l.THICKNESS/2)+`)`},"mjx-menclose > mjx-vstrike":{"border-left":l.SOLID,position:`absolute`,top:0,bottom:0,right:`50%`,transform:`translateX(`+(0,d.em)(l.THICKNESS/2)+`)`},"mjx-menclose > mjx-rbox":{position:`absolute`,top:0,bottom:0,right:0,left:0,border:l.SOLID,"border-radius":(0,d.em)(l.THICKNESS+l.PADDING)},"mjx-menclose > mjx-cbox":{position:`absolute`,top:0,bottom:0,right:0,left:0,border:l.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":(0,d.em)(l.THICKNESS*l.ARROWX)+` solid`,"border-right":0,"box-sizing":`border-box`},"mjx-menclose > mjx-arrow > mjx-aline":{left:0,top:(0,d.em)(-l.THICKNESS/2),right:(0,d.em)(l.THICKNESS*(l.ARROWX-1)),height:0,"border-top":(0,d.em)(l.THICKNESS)+` solid`,"border-left":0},"mjx-menclose > mjx-arrow[double] > mjx-aline":{left:(0,d.em)(l.THICKNESS*(l.ARROWX-1)),height:0},"mjx-menclose > mjx-arrow > mjx-rthead":{transform:`skewX(`+p+`rad)`,right:0,bottom:`-1px`,"border-bottom":`1px solid transparent`,"border-top":(0,d.em)(l.THICKNESS*l.ARROWY)+` solid transparent`},"mjx-menclose > mjx-arrow > mjx-rbhead":{transform:`skewX(-`+p+`rad)`,"transform-origin":`top`,right:0,top:`-1px`,"border-top":`1px solid transparent`,"border-bottom":(0,d.em)(l.THICKNESS*l.ARROWY)+` solid transparent`},"mjx-menclose > mjx-arrow > mjx-lthead":{transform:`skewX(-`+p+`rad)`,left:0,bottom:`-1px`,"border-left":0,"border-right":(0,d.em)(l.THICKNESS*l.ARROWX)+` solid`,"border-bottom":`1px solid transparent`,"border-top":(0,d.em)(l.THICKNESS*l.ARROWY)+` solid transparent`},"mjx-menclose > mjx-arrow > mjx-lbhead":{transform:`skewX(`+p+`rad)`,"transform-origin":`top`,left:0,top:`-1px`,"border-left":0,"border-right":(0,d.em)(l.THICKNESS*l.ARROWX)+` solid`,"border-top":`1px solid transparent`,"border-bottom":(0,d.em)(l.THICKNESS*l.ARROWY)+` solid transparent`},"mjx-menclose > dbox":{position:`absolute`,top:0,bottom:0,left:(0,d.em)(-1.5*l.PADDING),width:(0,d.em)(3*l.PADDING),border:(0,d.em)(l.THICKNESS)+` solid`,"border-radius":`50%`,"clip-path":`inset(0 0 0 `+(0,d.em)(1.5*l.PADDING)+`)`,"box-sizing":`border-box`}},n.notations=new Map([l.Border(`top`),l.Border(`right`),l.Border(`bottom`),l.Border(`left`),l.Border2(`actuarial`,`top`,`right`),l.Border2(`madruwb`,`bottom`,`right`),l.DiagonalStrike(`up`,1),l.DiagonalStrike(`down`,-1),[`horizontalstrike`,{renderer:l.RenderElement(`hstrike`,`Y`),bbox:function(e){return[0,e.padding,0,e.padding]}}],[`verticalstrike`,{renderer:l.RenderElement(`vstrike`,`X`),bbox:function(e){return[e.padding,0,e.padding,0]}}],[`box`,{renderer:function(e,t){e.adaptor.setStyle(t,`border`,e.em(e.thickness)+` solid`)},bbox:l.fullBBox,border:l.fullBorder,remove:`left right top bottom`}],[`roundedbox`,{renderer:l.RenderElement(`rbox`),bbox:l.fullBBox}],[`circle`,{renderer:l.RenderElement(`cbox`),bbox:l.fullBBox}],[`phasorangle`,{renderer:function(e,t){var n=e.getBBox(),r=n.h,i=n.d,a=o(e.getArgMod(1.75*e.padding,r+i),2),s=a[0],c=a[1],l=e.thickness*Math.sin(s)*.9;e.adaptor.setStyle(t,`border-bottom`,e.em(e.thickness)+` solid`);var u=e.adjustBorder(e.html(`mjx-ustrike`,{style:{width:e.em(c),transform:`translateX(`+e.em(l)+`) rotate(`+e.fixed(-s)+`rad)`}}));e.adaptor.append(e.chtml,u)},bbox:function(e){var t=e.padding/2,n=e.thickness;return[2*t,t,t+n,3*t+n]},border:function(e){return[0,0,e.thickness,0]},remove:`bottom`}],l.Arrow(`up`),l.Arrow(`down`),l.Arrow(`left`),l.Arrow(`right`),l.Arrow(`updown`),l.Arrow(`leftright`),l.DiagonalArrow(`updiagonal`),l.DiagonalArrow(`northeast`),l.DiagonalArrow(`southeast`),l.DiagonalArrow(`northwest`),l.DiagonalArrow(`southwest`),l.DiagonalArrow(`northeastsouthwest`),l.DiagonalArrow(`northwestsoutheast`),[`longdiv`,{renderer:function(e,t){var n=e.adaptor;n.setStyle(t,`border-top`,e.em(e.thickness)+` solid`);var r=n.append(e.chtml,e.html(`dbox`)),i=e.thickness,a=e.padding;i!==l.THICKNESS&&n.setStyle(r,`border-width`,e.em(i)),a!==l.PADDING&&(n.setStyle(r,`left`,e.em(-1.5*a)),n.setStyle(r,`width`,e.em(3*a)),n.setStyle(r,`clip-path`,`inset(0 0 0 `+e.em(1.5*a)+`)`))},bbox:function(e){var t=e.padding,n=e.thickness;return[t+n,t,t,2*t+n/2]}}],[`radical`,{renderer:function(e,t){e.msqrt.toCHTML(t);var n=e.sqrtTRBL();e.adaptor.setStyle(e.msqrt.chtml,`margin`,n.map(function(t){return e.em(-t)}).join(` `))},init:function(e){e.msqrt=e.createMsqrt(e.childNodes[0])},bbox:function(e){return e.sqrtTRBL()},renderChild:!0}]]),n}((0,c.CommonMencloseMixin)(s.CHTMLWrapper))})),Fn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonInferredMrowMixin=e.CommonMrowMixin=void 0;var a=Z();function o(e){return function(e){t(o,e);function o(){for(var t,o,s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];var l=e.apply(this,r([],n(s),!1))||this;l.stretchChildren();try{for(var u=i(l.childNodes),d=u.next();!d.done;d=u.next())if(d.value.bbox.pwidth){l.bbox.pwidth=a.BBox.fullWidth;break}}catch(e){t={error:e}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(t)throw t.error}}return l}return Object.defineProperty(o.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!1,configurable:!0}),o.prototype.stretchChildren=function(){var e,t,n,r,a,o,s=[];try{for(var c=i(this.childNodes),l=c.next();!l.done;l=c.next()){var u=l.value;u.canStretch(1)&&s.push(u)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}var d=s.length,f=this.childNodes.length;if(d&&f>1){var p=0,m=0,h=d>1&&d===f;try{for(var g=i(this.childNodes),_=g.next();!_.done;_=g.next()){var u=_.value,v=u.stretch.dir===0;if(h||v){var y=u.getOuterBBox(v),b=y.h,x=y.d,S=y.rscale;b*=S,x*=S,b>p&&(p=b),x>m&&(m=x)}}}catch(e){n={error:e}}finally{try{_&&!_.done&&(r=g.return)&&r.call(g)}finally{if(n)throw n.error}}try{for(var C=i(s),w=C.next();!w.done;w=C.next()){var u=w.value;u.coreMO().getStretchedVariant([p,m])}}catch(e){a={error:e}}finally{try{w&&!w.done&&(o=C.return)&&o.call(C)}finally{if(a)throw a.error}}}},o}(e)}e.CommonMrowMixin=o;function s(e){return function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.getScale=function(){this.bbox.scale=this.parent.bbox.scale,this.bbox.rscale=1},n}(e)}e.CommonInferredMrowMixin=s})),In=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLinferredMrow=e.CHTMLmrow=void 0;var r=Q(),i=Fn(),a=Fn(),o=ie(),s=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.toCHTML=function(e){var t,r,i=this.node.isInferred?this.chtml=e:this.standardCHTMLnode(e),a=!1;try{for(var o=n(this.childNodes),s=o.next();!s.done;s=o.next()){var c=s.value;c.toCHTML(i),c.bbox.w<0&&(a=!0)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}if(a){var l=this.getBBox().w;l&&(this.adaptor.setStyle(i,`width`,this.em(Math.max(0,l))),l<0&&this.adaptor.setStyle(i,`marginRight`,this.em(l)))}},r.kind=o.MmlMrow.prototype.kind,r}((0,i.CommonMrowMixin)(r.CHTMLWrapper));e.CHTMLmrow=s,e.CHTMLinferredMrow=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.kind=o.MmlInferredMrow.prototype.kind,n}((0,a.CommonInferredMrowMixin)(s))})),Ln=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMfencedMixin=void 0;function a(e){return function(e){t(a,e);function a(){var t=[...arguments],i=e.apply(this,r([],n(t),!1))||this;return i.mrow=null,i.createMrow(),i.addMrowChildren(),i}return a.prototype.createMrow=function(){var e=this.node.factory.create(`inferredMrow`);e.inheritAttributesFrom(this.node),this.mrow=this.wrap(e),this.mrow.parent=this},a.prototype.addMrowChildren=function(){var e,t,n=this.node,r=this.mrow;this.addMo(n.open),this.childNodes.length&&r.childNodes.push(this.childNodes[0]);var a=0;try{for(var o=i(this.childNodes.slice(1)),s=o.next();!s.done;s=o.next()){var c=s.value;this.addMo(n.separators[a++]),r.childNodes.push(c)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this.addMo(n.close),r.stretchChildren()},a.prototype.addMo=function(e){if(e){var t=this.wrap(e);this.mrow.childNodes.push(t),t.parent=this.mrow}},a.prototype.computeBBox=function(e,t){t===void 0&&(t=!1),e.updateFrom(this.mrow.getOuterBBox()),this.setChildPWidths(t)},a}(e)}e.CommonMfencedMixin=a})),Rn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmfenced=void 0;var n=Q(),r=Ln(),i=fe();e.CHTMLmfenced=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.toCHTML=function(e){var t=this.standardCHTMLnode(e);this.mrow.toCHTML(t)},n.kind=i.MmlMfenced.prototype.kind,n}((0,r.CommonMfencedMixin)(n.CHTMLWrapper))})),zn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMfracMixin=void 0;function i(e){return function(e){t(i,e);function i(){var t=[...arguments],i=e.apply(this,r([],n(t),!1))||this;if(i.bevel=null,i.pad=i.node.getProperty(`withDelims`)?0:i.font.params.nulldelimiterspace,i.node.attributes.get(`bevelled`)){var a=i.getBevelData(i.isDisplay()).H,o=i.bevel=i.createMo(`/`);o.node.attributes.set(`symmetric`,!0),o.canStretch(1),o.getStretchedVariant([a],!0)}return i}return i.prototype.computeBBox=function(e,t){t===void 0&&(t=!1),e.empty();var n=this.node.attributes.getList(`linethickness`,`bevelled`),r=n.linethickness,i=n.bevelled,a=this.isDisplay(),o=null;if(i)this.getBevelledBBox(e,a);else{var s=this.length2em(String(r),.06);o=-2*this.pad,s===0?this.getAtopBBox(e,a):(this.getFractionBBox(e,a,s),o-=.2),o+=e.w}e.clean(),this.setChildPWidths(t,o)},i.prototype.getFractionBBox=function(e,t,n){var r=this.childNodes[0].getOuterBBox(),i=this.childNodes[1].getOuterBBox(),a=this.font.params.axis_height,o=this.getTUV(t,n),s=o.T,c=o.u,l=o.v;e.combine(r,0,a+s+Math.max(r.d*r.rscale,c)),e.combine(i,0,a-s-Math.max(i.h*i.rscale,l)),e.w+=2*this.pad+.2},i.prototype.getTUV=function(e,t){var n=this.font.params,r=n.axis_height,i=(e?3.5:1.5)*t;return{T:(e?3.5:1.5)*t,u:(e?n.num1:n.num2)-r-i,v:(e?n.denom1:n.denom2)+r-i}},i.prototype.getAtopBBox=function(e,t){var n=this.getUVQ(t),r=n.u,i=n.v,a=n.nbox,o=n.dbox;e.combine(a,0,r),e.combine(o,0,-i),e.w+=2*this.pad},i.prototype.getUVQ=function(e){var t=this.childNodes[0].getOuterBBox(),r=this.childNodes[1].getOuterBBox(),i=this.font.params,a=n(e?[i.num1,i.denom1]:[i.num3,i.denom2],2),o=a[0],s=a[1],c=(e?7:3)*i.rule_thickness,l=o-t.d*t.scale-(r.h*r.scale-s);return l<c&&(o+=(c-l)/2,s+=(c-l)/2,l=c),{u:o,v:s,q:l,nbox:t,dbox:r}},i.prototype.getBevelledBBox=function(e,t){var n=this.getBevelData(t),r=n.u,i=n.v,a=n.delta,o=n.nbox,s=n.dbox,c=this.bevel.getOuterBBox();e.combine(o,0,r),e.combine(c,e.w-a/2,0),e.combine(s,e.w-a/2,i)},i.prototype.getBevelData=function(e){var t=this.childNodes[0].getOuterBBox(),n=this.childNodes[1].getOuterBBox(),r=e?.4:.15,i=Math.max(t.scale*(t.h+t.d),n.scale*(n.h+n.d))+2*r,a=this.font.params.axis_height;return{H:i,delta:r,u:t.scale*(t.d-t.h)/2+a+r,v:n.scale*(n.d-n.h)/2+a-r,nbox:t,dbox:n}},i.prototype.canStretch=function(e){return!1},i.prototype.isDisplay=function(){var e=this.node.attributes.getList(`displaystyle`,`scriptlevel`),t=e.displaystyle,n=e.scriptlevel;return t&&n===0},i.prototype.getWrapWidth=function(e){var t=this.node.attributes;return t.get(`bevelled`)?this.childNodes[e].getOuterBBox().w:this.getBBox().w-(this.length2em(t.get(`linethickness`))?.2:0)-2*this.pad},i.prototype.getChildAlign=function(e){var t=this.node.attributes;return t.get(`bevelled`)?`left`:t.get([`numalign`,`denomalign`][e])},i}(e)}e.CommonMfracMixin=i})),Bn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmfrac=void 0;var r=Q(),i=zn(),a=ae();e.CHTMLmfrac=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.toCHTML=function(e){this.standardCHTMLnode(e);var t=this.node.attributes.getList(`linethickness`,`bevelled`),n=t.linethickness,r=t.bevelled,i=this.isDisplay();if(r)this.makeBevelled(i);else{var a=this.length2em(String(n),.06);a===0?this.makeAtop(i):this.makeFraction(i,a)}},r.prototype.makeFraction=function(e,t){var r=this.node.attributes.getList(`numalign`,`denomalign`),i=r.numalign,a=r.denomalign,o=this.node.getProperty(`withDelims`),s=e?{type:`d`}:{},c=o?n(n({},s),{delims:`true`}):n({},s),l=i===`center`?{}:{align:i},u=a===`center`?{}:{align:a},d=n({},s),f=n({},s),p=this.font.params;if(t!==.06){var m=p.axis_height,h=this.em(t),g=this.getTUV(e,t),_=g.T,v=g.u,y=g.v,b=(e?this.em(3*t):h)+` -.1em`;s.style={height:h,"border-top":h+` solid`,margin:b};var x=this.em(Math.max(0,v));f.style={height:x,"vertical-align":`-`+x},d.style={height:this.em(Math.max(0,y))},c.style={"vertical-align":this.em(m-_)}}var S,C;this.adaptor.append(this.chtml,this.html(`mjx-frac`,c,[S=this.html(`mjx-num`,l,[this.html(`mjx-nstrut`,f)]),this.html(`mjx-dbox`,{},[this.html(`mjx-dtable`,{},[this.html(`mjx-line`,s),this.html(`mjx-row`,{},[C=this.html(`mjx-den`,u,[this.html(`mjx-dstrut`,d)])])])])])),this.childNodes[0].toCHTML(S),this.childNodes[1].toCHTML(C)},r.prototype.makeAtop=function(e){var t=this.node.attributes.getList(`numalign`,`denomalign`),r=t.numalign,i=t.denomalign,a=this.node.getProperty(`withDelims`),o=e?{type:`d`,atop:!0}:{atop:!0},s=a?n(n({},o),{delims:!0}):n({},o),c=r===`center`?{}:{align:r},l=i===`center`?{}:{align:i},u=this.getUVQ(e),d=u.v,f=u.q;c.style={"padding-bottom":this.em(f)},s.style={"vertical-align":this.em(-d)};var p,m;this.adaptor.append(this.chtml,this.html(`mjx-frac`,s,[p=this.html(`mjx-num`,c),m=this.html(`mjx-den`,l)])),this.childNodes[0].toCHTML(p),this.childNodes[1].toCHTML(m)},r.prototype.makeBevelled=function(e){var t=this.adaptor;t.setAttribute(this.chtml,`bevelled`,`ture`);var n=t.append(this.chtml,this.html(`mjx-num`));this.childNodes[0].toCHTML(n),this.bevel.toCHTML(this.chtml);var r=t.append(this.chtml,this.html(`mjx-den`));this.childNodes[1].toCHTML(r);var i=this.getBevelData(e),a=i.u,o=i.v,s=i.delta,c=i.nbox,l=i.dbox;a&&t.setStyle(n,`verticalAlign`,this.em(a/c.scale)),o&&t.setStyle(r,`verticalAlign`,this.em(o/l.scale));var u=this.em(-s/2);t.setStyle(this.bevel.chtml,`marginLeft`,u),t.setStyle(this.bevel.chtml,`marginRight`,u)},r.kind=a.MmlMfrac.prototype.kind,r.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`}},r}((0,i.CommonMfracMixin)(r.CHTMLWrapper))})),Vn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMsqrtMixin=void 0;var i=Z();function a(e){return function(e){t(a,e);function a(){var t=[...arguments],i=e.apply(this,r([],n(t),!1))||this,a=i.createMo(`√`);a.canStretch(1);var o=i.childNodes[i.base].getOuterBBox(),s=o.h,c=o.d,l=i.font.params.rule_thickness,u=i.node.attributes.get(`displaystyle`)?i.font.params.x_height:l;return i.surdH=s+c+2*l+u/4,a.getStretchedVariant([i.surdH-c,c],!0),i}return Object.defineProperty(a.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"surd",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"root",{get:function(){return null},enumerable:!1,configurable:!0}),a.prototype.createMo=function(t){var n=e.prototype.createMo.call(this,t);return this.childNodes.push(n),n},a.prototype.computeBBox=function(e,t){t===void 0&&(t=!1);var r=this.childNodes[this.surd].getBBox(),a=new i.BBox(this.childNodes[this.base].getOuterBBox()),o=this.getPQ(r)[1],s=this.font.params.rule_thickness,c=a.h+o+s,l=n(this.getRootDimens(r,c),1)[0];e.h=c+s,this.combineRootBBox(e,r,c),e.combine(r,l,c-r.h),e.combine(a,l+r.w,0),e.clean(),this.setChildPWidths(t)},a.prototype.combineRootBBox=function(e,t,n){},a.prototype.getPQ=function(e){var t=this.font.params.rule_thickness,n=this.node.attributes.get(`displaystyle`)?this.font.params.x_height:t;return[n,e.h+e.d>this.surdH?(e.h+e.d-(this.surdH-2*t-n/2))/2:t+n/4]},a.prototype.getRootDimens=function(e,t){return[0,0,0,0]},a}(e)}e.CommonMsqrtMixin=a})),Hn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmsqrt=void 0;var r=Q(),i=Vn(),a=oe();e.CHTMLmsqrt=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.toCHTML=function(e){var t=this.childNodes[this.surd],r=this.childNodes[this.base],i=t.getBBox(),a=r.getOuterBBox(),o=n(this.getPQ(i),2)[1],s=this.font.params.rule_thickness,c=a.h+o+s,l=this.standardCHTMLnode(e),u,d,f,p;this.root!=null&&(f=this.adaptor.append(l,this.html(`mjx-root`)),p=this.childNodes[this.root]);var m=this.adaptor.append(l,this.html(`mjx-sqrt`,{},[u=this.html(`mjx-surd`),d=this.html(`mjx-box`,{style:{paddingTop:this.em(o)}})]));this.addRoot(f,p,i,c),t.toCHTML(u),r.toCHTML(d),t.size<0&&this.adaptor.addClass(m,`mjx-tall`)},r.prototype.addRoot=function(e,t,n,r){},r.kind=a.MmlMsqrt.prototype.kind,r.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`}},r}((0,i.CommonMsqrtMixin)(r.CHTMLWrapper))})),Un=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMrootMixin=void 0;function n(e){return function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"surd",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"root",{get:function(){return 1},enumerable:!1,configurable:!0}),n.prototype.combineRootBBox=function(e,t,n){var r=this.childNodes[this.root].getOuterBBox(),i=this.getRootDimens(t,n)[1];e.combine(r,0,i)},n.prototype.getRootDimens=function(e,t){var n=this.childNodes[this.surd],r=this.childNodes[this.root].getOuterBBox(),i=(n.size<0?.5:.6)*e.w,a=r.w,o=r.rscale,s=Math.max(a,i/o),c=Math.max(0,s-a),l=this.rootHeight(r,e,n.size,t);return[s*o-i,l,c]},n.prototype.rootHeight=function(e,t,n,r){var i=t.h+t.d;return(n<0?1.9:.55*i)-(i-r)+Math.max(0,e.d*e.rscale)},n}(e)}e.CommonMrootMixin=n})),Wn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmroot=void 0;var r=Hn(),i=Un(),a=se();e.CHTMLmroot=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.addRoot=function(e,t,r,i){t.toCHTML(e);var a=n(this.getRootDimens(r,i),3),o=a[0],s=a[1],c=a[2];this.adaptor.setStyle(e,`verticalAlign`,this.em(s)),this.adaptor.setStyle(e,`width`,this.em(o)),c&&this.adaptor.setStyle(this.adaptor.firstChild(e),`paddingLeft`,this.em(c))},r.kind=a.MmlMroot.prototype.kind,r}((0,i.CommonMrootMixin)(r.CHTMLmsqrt))})),Gn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonScriptbaseMixin=void 0;var a=A();function o(e){var o;return o=function(e){t(o,e);function o(){var t=[...arguments],i=e.apply(this,r([],n(t),!1))||this;i.baseScale=1,i.baseIc=0,i.baseRemoveIc=!1,i.baseIsChar=!1,i.baseHasAccentOver=null,i.baseHasAccentUnder=null,i.isLineAbove=!1,i.isLineBelow=!1,i.isMathAccent=!1;var a=i.baseCore=i.getBaseCore();return a?(i.setBaseAccentsFor(a),i.baseScale=i.getBaseScale(),i.baseIc=i.getBaseIc(),i.baseIsChar=i.isCharBase(),i.isMathAccent=i.baseIsChar&&i.scriptChild&&!!i.scriptChild.coreMO().node.getProperty(`mathaccent`),i.checkLineAccents(),i.baseRemoveIc=!i.isLineAbove&&!i.isLineBelow&&(!i.constructor.useIC||i.isMathAccent),i):i}return Object.defineProperty(o.prototype,"baseChild",{get:function(){return this.childNodes[this.node.base]},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"scriptChild",{get:function(){return this.childNodes[1]},enumerable:!1,configurable:!0}),o.prototype.getBaseCore=function(){for(var e=this.getSemanticBase()||this.childNodes[0];e&&(e.childNodes.length===1&&(e.node.isKind(`mrow`)||e.node.isKind(`TeXAtom`)&&e.node.texClass!==a.TEXCLASS.VCENTER||e.node.isKind(`mstyle`)||e.node.isKind(`mpadded`)||e.node.isKind(`mphantom`)||e.node.isKind(`semantics`))||e.node.isKind(`munderover`)&&e.isMathAccent);)this.setBaseAccentsFor(e),e=e.childNodes[0];return e||(this.baseHasAccentOver=this.baseHasAccentUnder=!1),e||this.childNodes[0]},o.prototype.setBaseAccentsFor=function(e){e.node.isKind(`munderover`)&&(this.baseHasAccentOver===null&&(this.baseHasAccentOver=!!e.node.attributes.get(`accent`)),this.baseHasAccentUnder===null&&(this.baseHasAccentUnder=!!e.node.attributes.get(`accentunder`)))},o.prototype.getSemanticBase=function(){var e=this.node.attributes.getExplicit(`data-semantic-fencepointer`);return this.getBaseFence(this.baseChild,e)},o.prototype.getBaseFence=function(e,t){var n,r;if(!e||!e.node.attributes||!t)return null;if(e.node.attributes.getExplicit(`data-semantic-id`)===t)return e;try{for(var a=i(e.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value,c=this.getBaseFence(s,t);if(c)return c}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return null},o.prototype.getBaseScale=function(){for(var e=this.baseCore,t=1;e&&e!==this;){var n=e.getOuterBBox();t*=n.rscale,e=e.parent}return t},o.prototype.getBaseIc=function(){return this.baseCore.getOuterBBox().ic*this.baseScale},o.prototype.getAdjustedIc=function(){var e=this.baseCore.getOuterBBox();return(e.ic?1.05*e.ic+.05:0)*this.baseScale},o.prototype.isCharBase=function(){var e=this.baseCore;return(e.node.isKind(`mo`)&&e.size===null||e.node.isKind(`mi`)||e.node.isKind(`mn`))&&e.bbox.rscale===1&&Array.from(e.getText()).length===1},o.prototype.checkLineAccents=function(){if(this.node.isKind(`munderover`))if(this.node.isKind(`mover`))this.isLineAbove=this.isLineAccent(this.scriptChild);else if(this.node.isKind(`munder`))this.isLineBelow=this.isLineAccent(this.scriptChild);else{var e=this;this.isLineAbove=this.isLineAccent(e.overChild),this.isLineBelow=this.isLineAccent(e.underChild)}},o.prototype.isLineAccent=function(e){var t=e.coreMO().node;return t.isToken&&t.getText()===`―`},o.prototype.getBaseWidth=function(){var e=this.baseChild.getOuterBBox();return e.w*e.rscale-(this.baseRemoveIc?this.baseIc:0)+this.font.params.extra_ic},o.prototype.computeBBox=function(e,t){t===void 0&&(t=!1);var r=this.getBaseWidth(),i=n(this.getOffset(),2),a=i[0],o=i[1];e.append(this.baseChild.getOuterBBox()),e.combine(this.scriptChild.getOuterBBox(),r+a,o),e.w+=this.font.params.scriptspace,e.clean(),this.setChildPWidths(t)},o.prototype.getOffset=function(){return[0,0]},o.prototype.baseCharZero=function(e){var t=!!this.baseCore.node.attributes.get(`largeop`),n=this.baseScale;return this.baseIsChar&&!t&&n===1?0:e},o.prototype.getV=function(){var e=this.baseCore.getOuterBBox(),t=this.scriptChild.getOuterBBox(),n=this.font.params,r=this.length2em(this.node.attributes.get(`subscriptshift`),n.sub1);return Math.max(this.baseCharZero(e.d*this.baseScale+n.sub_drop*t.rscale),r,t.h*t.rscale-4/5*n.x_height)},o.prototype.getU=function(){var e=this.baseCore.getOuterBBox(),t=this.scriptChild.getOuterBBox(),n=this.font.params,r=this.node.attributes.getList(`displaystyle`,`superscriptshift`),i=this.node.getProperty(`texprimestyle`)?n.sup3:r.displaystyle?n.sup1:n.sup2,a=this.length2em(r.superscriptshift,i);return Math.max(this.baseCharZero(e.h*this.baseScale-n.sup_drop*t.rscale),a,t.d*t.rscale+1/4*n.x_height)},o.prototype.hasMovableLimits=function(){var e=this.node.attributes.get(`displaystyle`),t=this.baseChild.coreMO().node;return!e&&!!t.attributes.get(`movablelimits`)},o.prototype.getOverKU=function(e,t){var n=this.node.attributes.get(`accent`),r=this.font.params,i=t.d*t.rscale,a=r.rule_thickness*r.separation_factor,o=this.baseHasAccentOver?a:0,s=this.isLineAbove?3*r.rule_thickness:a,c=(n?s:Math.max(r.big_op_spacing1,r.big_op_spacing3-Math.max(0,i)))-o;return[c,e.h*e.rscale+c+i]},o.prototype.getUnderKV=function(e,t){var n=this.node.attributes.get(`accentunder`),r=this.font.params,i=t.h*t.rscale,a=r.rule_thickness*r.separation_factor,o=this.baseHasAccentUnder?a:0,s=this.isLineBelow?3*r.rule_thickness:a,c=(n?s:Math.max(r.big_op_spacing2,r.big_op_spacing4-i))-o;return[c,-(e.d*e.rscale+c+i)]},o.prototype.getDeltaW=function(e,t){var a,o,s,c;t===void 0&&(t=[0,0,0]);var l=this.node.attributes.get(`align`),u=e.map(function(e){return e.w*e.rscale});u[0]-=this.baseRemoveIc&&!this.baseCore.node.attributes.get(`largeop`)?this.baseIc:0;var d=Math.max.apply(Math,r([],n(u),!1)),f=[],p=0;try{for(var m=i(u.keys()),h=m.next();!h.done;h=m.next()){var g=h.value;f[g]=(l===`center`?(d-u[g])/2:l===`right`?d-u[g]:0)+t[g],f[g]<p&&(p=-f[g])}}catch(e){a={error:e}}finally{try{h&&!h.done&&(o=m.return)&&o.call(m)}finally{if(a)throw a.error}}if(p)try{for(var _=i(f.keys()),v=_.next();!v.done;v=_.next()){var g=v.value;f[g]+=p}}catch(e){s={error:e}}finally{try{v&&!v.done&&(c=_.return)&&c.call(_)}finally{if(s)throw s.error}}return[1,2].map(function(t){return f[t]+=e[t]?e[t].dx*e[0].scale:0}),f},o.prototype.getDelta=function(e){e===void 0&&(e=!1);var t=this.node.attributes.get(`accent`),n=this.baseCore.getOuterBBox(),r=n.sk,i=n.ic;return((t&&!e?r:0)+this.font.skewIcFactor*i)*this.baseScale},o.prototype.stretchChildren=function(){var e,t,n,r,a,o,s=[];try{for(var c=i(this.childNodes),l=c.next();!l.done;l=c.next()){var u=l.value;u.canStretch(2)&&s.push(u)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}var d=s.length,f=this.childNodes.length;if(d&&f>1){var p=0,m=d>1&&d===f;try{for(var h=i(this.childNodes),g=h.next();!g.done;g=h.next()){var u=g.value,_=u.stretch.dir===0;if(m||_){var v=u.getOuterBBox(_),y=v.w,b=v.rscale;y*b>p&&(p=y*b)}}}catch(e){n={error:e}}finally{try{g&&!g.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var x=i(s),S=x.next();!S.done;S=x.next()){var u=S.value;u.coreMO().getStretchedVariant([p/u.bbox.rscale])}}catch(e){a={error:e}}finally{try{S&&!S.done&&(o=x.return)&&o.call(x)}finally{if(a)throw a.error}}}},o}(e),o.useIC=!0,o}e.CommonScriptbaseMixin=o})),Kn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLscriptbase=void 0;var i=Q();e.CHTMLscriptbase=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return i.prototype.toCHTML=function(e){this.chtml=this.standardCHTMLnode(e);var t=n(this.getOffset(),2),r=t[0],i=t[1],a=r-(this.baseRemoveIc?this.baseIc:0),o={"vertical-align":this.em(i)};a&&(o[`margin-left`]=this.em(a)),this.baseChild.toCHTML(this.chtml),this.scriptChild.toCHTML(this.adaptor.append(this.chtml,this.html(`mjx-script`,{style:o})))},i.prototype.setDeltaW=function(e,t){for(var n=0;n<t.length;n++)t[n]&&this.adaptor.setStyle(e[n],`paddingLeft`,this.em(t[n]))},i.prototype.adjustOverDepth=function(e,t){t.d>=0||this.adaptor.setStyle(e,`marginBottom`,this.em(t.d*t.rscale))},i.prototype.adjustUnderDepth=function(e,t){var n,i;if(!(t.d>=0)){var a=this.adaptor,o=this.em(t.d),s=this.html(`mjx-box`,{style:{"margin-bottom":o,"vertical-align":o}});try{for(var c=r(a.childNodes(a.firstChild(e))),l=c.next();!l.done;l=c.next()){var u=l.value;a.append(s,u)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}a.append(a.firstChild(e),s)}},i.prototype.adjustBaseHeight=function(e,t){if(this.node.attributes.get(`accent`)){var n=this.font.params.x_height*t.scale;t.h<n&&(this.adaptor.setStyle(e,`paddingTop`,this.em(n-t.h)),t.h=n)}},i.kind=`scriptbase`,i}((0,Gn().CommonScriptbaseMixin)(i.CHTMLWrapper))})),qn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMsubsupMixin=e.CommonMsupMixin=e.CommonMsubMixin=void 0;function r(e){var n;return n=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.sub]},enumerable:!1,configurable:!0}),n.prototype.getOffset=function(){return[0,-this.getV()]},n}(e),n.useIC=!1,n}e.CommonMsubMixin=r;function i(e){return function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.sup]},enumerable:!1,configurable:!0}),n.prototype.getOffset=function(){return[this.getAdjustedIc()-(this.baseRemoveIc?0:this.baseIc),this.getU()]},n}(e)}e.CommonMsupMixin=i;function a(e){var r;return r=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.UVQ=null,t}return Object.defineProperty(r.prototype,"subChild",{get:function(){return this.childNodes[this.node.sub]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"supChild",{get:function(){return this.childNodes[this.node.sup]},enumerable:!1,configurable:!0}),r.prototype.computeBBox=function(e,t){t===void 0&&(t=!1);var r=this.baseChild.getOuterBBox(),i=n([this.subChild.getOuterBBox(),this.supChild.getOuterBBox()],2),a=i[0],o=i[1];e.empty(),e.append(r);var s=this.getBaseWidth(),c=this.getAdjustedIc(),l=n(this.getUVQ(),2),u=l[0],d=l[1];e.combine(a,s,d),e.combine(o,s+c,u),e.w+=this.font.params.scriptspace,e.clean(),this.setChildPWidths(t)},r.prototype.getUVQ=function(e,t){e===void 0&&(e=this.subChild.getOuterBBox()),t===void 0&&(t=this.supChild.getOuterBBox());var r=this.baseCore.getOuterBBox();if(this.UVQ)return this.UVQ;var i=this.font.params,a=3*i.rule_thickness,o=this.length2em(this.node.attributes.get(`subscriptshift`),i.sub2),s=this.baseCharZero(r.d*this.baseScale+i.sub_drop*e.rscale),c=n([this.getU(),Math.max(s,o)],2),l=c[0],u=c[1],d=l-t.d*t.rscale-(e.h*e.rscale-u);if(d<a){u+=a-d;var f=4/5*i.x_height-(l-t.d*t.rscale);f>0&&(l+=f,u-=f)}return l=Math.max(this.length2em(this.node.attributes.get(`superscriptshift`),l),l),u=Math.max(this.length2em(this.node.attributes.get(`subscriptshift`),u),u),d=l-t.d*t.rscale-(e.h*e.rscale-u),this.UVQ=[l,-u,d],this.UVQ},r}(e),r.useIC=!1,r}e.CommonMsubsupMixin=a})),Jn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmsubsup=e.CHTMLmsup=e.CHTMLmsub=void 0;var r=Kn(),i=qn(),a=qn(),o=qn(),s=he();e.CHTMLmsub=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.kind=s.MmlMsub.prototype.kind,n}((0,i.CommonMsubMixin)(r.CHTMLscriptbase)),e.CHTMLmsup=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.kind=s.MmlMsup.prototype.kind,n}((0,a.CommonMsupMixin)(r.CHTMLscriptbase)),e.CHTMLmsubsup=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.toCHTML=function(e){var t=this.adaptor,r=this.standardCHTMLnode(e),i=n([this.baseChild,this.supChild,this.subChild],3),a=i[0],o=i[1],s=i[2],c=n(this.getUVQ(),3),l=c[1],u=c[2],d={"vertical-align":this.em(l)};a.toCHTML(r);var f=t.append(r,this.html(`mjx-script`,{style:d}));o.toCHTML(f),t.append(f,this.html(`mjx-spacer`,{style:{"margin-top":this.em(u)}})),s.toCHTML(f);var p=this.getAdjustedIc();p&&t.setStyle(o.chtml,`marginLeft`,this.em(p/o.bbox.rscale)),this.baseRemoveIc&&t.setStyle(f,`marginLeft`,this.em(-this.baseIc))},r.kind=s.MmlMsubsup.prototype.kind,r.styles={"mjx-script":{display:`inline-block`,"padding-right":`.05em`,"padding-left":`.033em`},"mjx-script > mjx-spacer":{display:`block`}},r}((0,o.CommonMsubsupMixin)(r.CHTMLscriptbase))})),Yn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMunderoverMixin=e.CommonMoverMixin=e.CommonMunderMixin=void 0;function i(e){return function(e){t(i,e);function i(){var t=[...arguments],i=e.apply(this,r([],n(t),!1))||this;return i.stretchChildren(),i}return Object.defineProperty(i.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.under]},enumerable:!1,configurable:!0}),i.prototype.computeBBox=function(t,r){if(r===void 0&&(r=!1),this.hasMovableLimits()){e.prototype.computeBBox.call(this,t,r);return}t.empty();var i=this.baseChild.getOuterBBox(),a=this.scriptChild.getOuterBBox(),o=this.getUnderKV(i,a)[1],s=this.isLineBelow?0:this.getDelta(!0),c=n(this.getDeltaW([i,a],[0,-s]),2),l=c[0],u=c[1];t.combine(i,l,0),t.combine(a,u,o),t.d+=this.font.params.big_op_spacing5,t.clean(),this.setChildPWidths(r)},i}(e)}e.CommonMunderMixin=i;function a(e){return function(e){t(i,e);function i(){var t=[...arguments],i=e.apply(this,r([],n(t),!1))||this;return i.stretchChildren(),i}return Object.defineProperty(i.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.over]},enumerable:!1,configurable:!0}),i.prototype.computeBBox=function(t){if(this.hasMovableLimits()){e.prototype.computeBBox.call(this,t);return}t.empty();var r=this.baseChild.getOuterBBox(),i=this.scriptChild.getOuterBBox();this.node.attributes.get(`accent`)&&(r.h=Math.max(r.h,this.font.params.x_height*r.scale));var a=this.getOverKU(r,i)[1],o=this.isLineAbove?0:this.getDelta(),s=n(this.getDeltaW([r,i],[0,o]),2),c=s[0],l=s[1];t.combine(r,c,0),t.combine(i,l,a),t.h+=this.font.params.big_op_spacing5,t.clean()},i}(e)}e.CommonMoverMixin=a;function o(e){return function(e){t(i,e);function i(){var t=[...arguments],i=e.apply(this,r([],n(t),!1))||this;return i.stretchChildren(),i}return Object.defineProperty(i.prototype,"underChild",{get:function(){return this.childNodes[this.node.under]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"overChild",{get:function(){return this.childNodes[this.node.over]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"subChild",{get:function(){return this.underChild},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"supChild",{get:function(){return this.overChild},enumerable:!1,configurable:!0}),i.prototype.computeBBox=function(t){if(this.hasMovableLimits()){e.prototype.computeBBox.call(this,t);return}t.empty();var r=this.overChild.getOuterBBox(),i=this.baseChild.getOuterBBox(),a=this.underChild.getOuterBBox();this.node.attributes.get(`accent`)&&(i.h=Math.max(i.h,this.font.params.x_height*i.scale));var o=this.getOverKU(i,r)[1],s=this.getUnderKV(i,a)[1],c=this.getDelta(),l=n(this.getDeltaW([i,a,r],[0,this.isLineBelow?0:-c,this.isLineAbove?0:c]),3),u=l[0],d=l[1],f=l[2];t.combine(i,u,0),t.combine(r,f,o),t.combine(a,d,s);var p=this.font.params.big_op_spacing5;t.h+=p,t.d+=p,t.clean()},i}(e)}e.CommonMunderoverMixin=o})),Xn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmunderover=e.CHTMLmover=e.CHTMLmunder=void 0;var n=Jn(),r=Yn(),i=Yn(),a=Yn(),o=ge();e.CHTMLmunder=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.toCHTML=function(t){if(this.hasMovableLimits()){e.prototype.toCHTML.call(this,t),this.adaptor.setAttribute(this.chtml,`limits`,`false`);return}this.chtml=this.standardCHTMLnode(t);var n=this.adaptor.append(this.adaptor.append(this.chtml,this.html(`mjx-row`)),this.html(`mjx-base`)),r=this.adaptor.append(this.adaptor.append(this.chtml,this.html(`mjx-row`)),this.html(`mjx-under`));this.baseChild.toCHTML(n),this.scriptChild.toCHTML(r);var i=this.baseChild.getOuterBBox(),a=this.scriptChild.getOuterBBox(),o=this.getUnderKV(i,a)[0],s=this.isLineBelow?0:this.getDelta(!0);this.adaptor.setStyle(r,`paddingTop`,this.em(o)),this.setDeltaW([n,r],this.getDeltaW([i,a],[0,-s])),this.adjustUnderDepth(r,a)},n.kind=o.MmlMunder.prototype.kind,n.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`}},n}((0,r.CommonMunderMixin)(n.CHTMLmsub)),e.CHTMLmover=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.toCHTML=function(t){if(this.hasMovableLimits()){e.prototype.toCHTML.call(this,t),this.adaptor.setAttribute(this.chtml,`limits`,`false`);return}this.chtml=this.standardCHTMLnode(t);var n=this.adaptor.append(this.chtml,this.html(`mjx-over`)),r=this.adaptor.append(this.chtml,this.html(`mjx-base`));this.scriptChild.toCHTML(n),this.baseChild.toCHTML(r);var i=this.scriptChild.getOuterBBox(),a=this.baseChild.getOuterBBox();this.adjustBaseHeight(r,a);var o=this.getOverKU(a,i)[0],s=this.isLineAbove?0:this.getDelta();this.adaptor.setStyle(n,`paddingBottom`,this.em(o)),this.setDeltaW([r,n],this.getDeltaW([a,i],[0,s])),this.adjustOverDepth(n,i)},n.kind=o.MmlMover.prototype.kind,n.styles={'mjx-mover:not([limits="false"])':{"padding-top":`.1em`},'mjx-mover:not([limits="false"]) > *':{display:`block`,"text-align":`left`}},n}((0,i.CommonMoverMixin)(n.CHTMLmsup)),e.CHTMLmunderover=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.toCHTML=function(t){if(this.hasMovableLimits()){e.prototype.toCHTML.call(this,t),this.adaptor.setAttribute(this.chtml,`limits`,`false`);return}this.chtml=this.standardCHTMLnode(t);var n=this.adaptor.append(this.chtml,this.html(`mjx-over`)),r=this.adaptor.append(this.adaptor.append(this.chtml,this.html(`mjx-box`)),this.html(`mjx-munder`)),i=this.adaptor.append(this.adaptor.append(r,this.html(`mjx-row`)),this.html(`mjx-base`)),a=this.adaptor.append(this.adaptor.append(r,this.html(`mjx-row`)),this.html(`mjx-under`));this.overChild.toCHTML(n),this.baseChild.toCHTML(i),this.underChild.toCHTML(a);var o=this.overChild.getOuterBBox(),s=this.baseChild.getOuterBBox(),c=this.underChild.getOuterBBox();this.adjustBaseHeight(i,s);var l=this.getOverKU(s,o)[0],u=this.getUnderKV(s,c)[0],d=this.getDelta();this.adaptor.setStyle(n,`paddingBottom`,this.em(l)),this.adaptor.setStyle(a,`paddingTop`,this.em(u)),this.setDeltaW([i,a,n],this.getDeltaW([s,c,o],[0,this.isLineBelow?0:-d,this.isLineAbove?0:d])),this.adjustOverDepth(n,o),this.adjustUnderDepth(a,c)},r.prototype.markUsed=function(){e.prototype.markUsed.call(this),this.jax.wrapperUsage.add(n.CHTMLmsubsup.kind)},r.kind=o.MmlMunderover.prototype.kind,r.styles={'mjx-munderover:not([limits="false"])':{"padding-top":`.1em`},'mjx-munderover:not([limits="false"]) > *':{display:`block`}},r}((0,a.CommonMunderoverMixin)(n.CHTMLmsubsup))})),Zn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMmultiscriptsMixin=e.ScriptNames=e.NextScript=void 0;var a=Z();e.NextScript={base:`subList`,subList:`supList`,supList:`subList`,psubList:`psupList`,psupList:`psubList`},e.ScriptNames=[`sup`,`sup`,`psup`,`psub`];function o(o){return function(o){t(s,o);function s(){var e=[...arguments],t=o.apply(this,r([],n(e),!1))||this;return t.scriptData=null,t.firstPrescript=0,t.getScriptData(),t}return s.prototype.combinePrePost=function(e,t){var n=new a.BBox(e);return n.combine(t,0,0),n},s.prototype.computeBBox=function(e,t){t===void 0&&(t=!1);var r=this.font.params.scriptspace,i=this.scriptData,a=this.combinePrePost(i.sub,i.psub),o=this.combinePrePost(i.sup,i.psup),s=n(this.getUVQ(a,o),2),c=s[0],l=s[1];if(e.empty(),i.numPrescripts&&(e.combine(i.psup,r,c),e.combine(i.psub,r,l)),e.append(i.base),i.numScripts){var u=e.w;e.combine(i.sup,u,c),e.combine(i.sub,u,l),e.w+=r}e.clean(),this.setChildPWidths(t)},s.prototype.getScriptData=function(){var e=this.scriptData={base:null,sub:a.BBox.empty(),sup:a.BBox.empty(),psub:a.BBox.empty(),psup:a.BBox.empty(),numPrescripts:0,numScripts:0},t=this.getScriptBBoxLists();this.combineBBoxLists(e.sub,e.sup,t.subList,t.supList),this.combineBBoxLists(e.psub,e.psup,t.psubList,t.psupList),e.base=t.base[0],e.numPrescripts=t.psubList.length,e.numScripts=t.subList.length},s.prototype.getScriptBBoxLists=function(){var t,n,r={base:[],subList:[],supList:[],psubList:[],psupList:[]},a=`base`;try{for(var o=i(this.childNodes),s=o.next();!s.done;s=o.next()){var c=s.value;c.node.isKind(`mprescripts`)?a=`psubList`:(r[a].push(c.getOuterBBox()),a=e.NextScript[a])}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return this.firstPrescript=r.subList.length+r.supList.length+2,this.padLists(r.subList,r.supList),this.padLists(r.psubList,r.psupList),r},s.prototype.padLists=function(e,t){e.length>t.length&&t.push(a.BBox.empty())},s.prototype.combineBBoxLists=function(e,t,r,i){for(var a=0;a<r.length;a++){var o=n(this.getScaledWHD(r[a]),3),s=o[0],c=o[1],l=o[2],u=n(this.getScaledWHD(i[a]),3),d=u[0],f=u[1],p=u[2],m=Math.max(s,d);e.w+=m,t.w+=m,c>e.h&&(e.h=c),l>e.d&&(e.d=l),f>t.h&&(t.h=f),p>t.d&&(t.d=p)}},s.prototype.getScaledWHD=function(e){var t=e.w,n=e.h,r=e.d,i=e.rscale;return[t*i,n*i,r*i]},s.prototype.getUVQ=function(e,t){var r;if(!this.UVQ){var i=n([0,0,0],3),a=i[0],s=i[1],c=i[2];e.h===0&&e.d===0?a=this.getU():t.h===0&&t.d===0?a=-this.getV():(r=n(o.prototype.getUVQ.call(this,e,t),3),a=r[0],s=r[1],c=r[2]),this.UVQ=[a,s,c]}return this.UVQ},s}(o)}e.CommonMmultiscriptsMixin=o})),Qn=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmmultiscripts=void 0;var r=Jn(),i=Zn(),a=_e(),o=P();e.CHTMLmmultiscripts=function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.toCHTML=function(e){var t=this.standardCHTMLnode(e),r=this.scriptData,i=this.node.getProperty(`scriptalign`)||`right left`,a=n((0,o.split)(i+` `+i),2),s=a[0],c=a[1],l=this.combinePrePost(r.sub,r.psub),u=this.combinePrePost(r.sup,r.psup),d=n(this.getUVQ(l,u),2),f=d[0],p=d[1];if(r.numPrescripts){var m=this.addScripts(f,-p,!0,r.psub,r.psup,this.firstPrescript,r.numPrescripts);s!==`right`&&this.adaptor.setAttribute(m,`script-align`,s)}if(this.childNodes[0].toCHTML(t),r.numScripts){var m=this.addScripts(f,-p,!1,r.sub,r.sup,1,r.numScripts);c!==`left`&&this.adaptor.setAttribute(m,`script-align`,c)}},r.prototype.addScripts=function(e,t,n,r,i,a,o){for(var s=this.adaptor,c=e-i.d+(t-r.h),l=e<0&&t===0?r.h+e:e,u=c>0?{style:{height:this.em(c)}}:{},d=l?{style:{"vertical-align":this.em(l)}}:{},f=this.html(`mjx-row`),p=this.html(`mjx-row`,u),m=this.html(`mjx-row`),h=`mjx-`+(n?`pre`:``)+`scripts`,g=a+2*o;a<g;)this.childNodes[a++].toCHTML(s.append(m,this.html(`mjx-cell`))),this.childNodes[a++].toCHTML(s.append(f,this.html(`mjx-cell`)));return s.append(this.chtml,this.html(h,d,[f,p,m]))},r.kind=a.MmlMmultiscripts.prototype.kind,r.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`},'[script-align="left"] > mjx-row > mjx-cell':{"text-align":`left`},'[script-align="center"] > mjx-row > mjx-cell':{"text-align":`center`},'[script-align="right"] > mjx-row > mjx-cell':{"text-align":`right`}},r}((0,i.CommonMmultiscriptsMixin)(r.CHTMLmsubsup))})),$n=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.max=e.sum=void 0;function t(e){return e.reduce(function(e,t){return e+t},0)}e.sum=t;function n(e){return e.reduce(function(e,t){return Math.max(e,t)},0)}e.max=n})),er=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMtableMixin=void 0;var a=Z(),o=P(),s=$n();function c(e){return function(e){t(c,e);function c(){var t=[...arguments],i=e.apply(this,r([],n(t),!1))||this;i.numCols=0,i.numRows=0,i.data=null,i.pwidthCells=[],i.pWidth=0,i.numCols=(0,s.max)(i.tableRows.map(function(e){return e.numCells})),i.numRows=i.childNodes.length,i.hasLabels=i.childNodes.reduce(function(e,t){return e||t.node.isKind(`mlabeledtr`)},!1),i.findContainer(),i.isTop=!i.container||i.container.node.isKind(`math`)&&!i.container.parent,i.isTop&&(i.jax.table=i),i.getPercentageWidth();var a=i.node.attributes;return i.frame=a.get(`frame`)!==`none`,i.fLine=i.frame&&a.get(`frame`)?.07:0,i.fSpace=i.frame?i.convertLengths(i.getAttributeArray(`framespacing`)):[0,0],i.cSpace=i.convertLengths(i.getColumnAttributes(`columnspacing`)),i.rSpace=i.convertLengths(i.getRowAttributes(`rowspacing`)),i.cLines=i.getColumnAttributes(`columnlines`).map(function(e){return e===`none`?0:.07}),i.rLines=i.getRowAttributes(`rowlines`).map(function(e){return e===`none`?0:.07}),i.cWidths=i.getColumnWidths(),i.stretchRows(),i.stretchColumns(),i}return Object.defineProperty(c.prototype,"tableRows",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),c.prototype.findContainer=function(){for(var e=this,t=e.parent;t&&(t.node.notParent||t.node.isKind(`mrow`));)e=t,t=t.parent;this.container=t,this.containerI=e.node.childPosition()},c.prototype.getPercentageWidth=function(){if(this.hasLabels)this.bbox.pwidth=a.BBox.fullWidth;else{var e=this.node.attributes.get(`width`);(0,o.isPercent)(e)&&(this.bbox.pwidth=e)}},c.prototype.stretchRows=function(){for(var e=this.node.attributes.get(`equalrows`),t=e?this.getEqualRowHeight():0,n=e?this.getTableData():{H:[0],D:[0]},r=n.H,i=n.D,a=this.tableRows,o=0;o<this.numRows;o++){var s=e?[(t+r[o]-i[o])/2,(t-r[o]+i[o])/2]:null;a[o].stretchChildren(s)}},c.prototype.stretchColumns=function(){for(var e=0;e<this.numCols;e++){var t=typeof this.cWidths[e]==`number`?this.cWidths[e]:null;this.stretchColumn(e,t)}},c.prototype.stretchColumn=function(e,t){var n,r,a,o,s,c,l=[];try{for(var u=i(this.tableRows),d=u.next();!d.done;d=u.next()){var f=d.value,p=f.getChild(e);if(p){var m=p.childNodes[0];m.stretch.dir===0&&m.canStretch(2)&&l.push(m)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}var h=l.length,g=this.childNodes.length;if(h&&g>1){if(t===null){t=0;var _=h>1&&h===g;try{for(var v=i(this.tableRows),y=v.next();!y.done;y=v.next()){var f=y.value,p=f.getChild(e);if(p){var m=p.childNodes[0],b=m.stretch.dir===0;if(_||b){var x=m.getBBox(b).w;x>t&&(t=x)}}}}catch(e){a={error:e}}finally{try{y&&!y.done&&(o=v.return)&&o.call(v)}finally{if(a)throw a.error}}}try{for(var S=i(l),C=S.next();!C.done;C=S.next()){var m=C.value;m.coreMO().getStretchedVariant([t])}}catch(e){s={error:e}}finally{try{C&&!C.done&&(c=S.return)&&c.call(S)}finally{if(s)throw s.error}}}},c.prototype.getTableData=function(){if(this.data)return this.data;for(var e=Array(this.numRows).fill(0),t=Array(this.numRows).fill(0),n=Array(this.numCols).fill(0),r=Array(this.numRows),i=Array(this.numRows),a=[0],o=this.tableRows,s=0;s<o.length;s++){for(var c=0,l=o[s],u=l.node.attributes.get(`rowalign`),d=0;d<l.numCells;d++){var f=l.getChild(d);c=this.updateHDW(f,d,s,u,e,t,n,c),this.recordPWidthCell(f,d)}r[s]=e[s],i[s]=t[s],l.labeled&&(c=this.updateHDW(l.childNodes[0],0,s,u,e,t,a,c)),this.extendHD(s,e,t,c),this.extendHD(s,r,i,c)}var p=a[0];return this.data={H:e,D:t,W:n,NH:r,ND:i,L:p},this.data},c.prototype.updateHDW=function(e,t,n,r,i,a,o,s){var c=e.getBBox(),l=c.h,u=c.d,d=c.w,f=e.parent.bbox.rscale;e.parent.bbox.rscale!==1&&(l*=f,u*=f,d*=f),this.node.getProperty(`useHeight`)&&(l<.75&&(l=.75),u<.25&&(u=.25));var p=0;return r=e.node.attributes.get(`rowalign`)||r,r!==`baseline`&&r!==`axis`&&(p=l+u,l=u=0),l>i[n]&&(i[n]=l),u>a[n]&&(a[n]=u),p>s&&(s=p),o&&d>o[t]&&(o[t]=d),s},c.prototype.extendHD=function(e,t,n,r){var i=(r-(t[e]+n[e]))/2;i<1e-5||(t[e]+=i,n[e]+=i)},c.prototype.recordPWidthCell=function(e,t){e.childNodes[0]&&e.childNodes[0].getBBox().pwidth&&this.pwidthCells.push([e,t])},c.prototype.computeBBox=function(e,t){t===void 0&&(t=!1);var r=this.getTableData(),i=r.H,a=r.D,c,l;if(this.node.attributes.get(`equalrows`)){var u=this.getEqualRowHeight();c=(0,s.sum)([].concat(this.rLines,this.rSpace))+u*this.numRows}else c=(0,s.sum)(i.concat(a,this.rLines,this.rSpace));c+=2*(this.fLine+this.fSpace[1]);var d=this.getComputedWidths();l=(0,s.sum)(d.concat(this.cLines,this.cSpace))+2*(this.fLine+this.fSpace[0]);var f=this.node.attributes.get(`width`);f!==`auto`&&(l=Math.max(this.length2em(f,0)+2*this.fLine,l));var p=n(this.getBBoxHD(c),2),m=p[0],h=p[1];e.h=m,e.d=h,e.w=l;var g=n(this.getBBoxLR(),2),_=g[0],v=g[1];e.L=_,e.R=v,(0,o.isPercent)(f)||this.setColumnPWidths()},c.prototype.setChildPWidths=function(e,t,n){var r=this.node.attributes.get(`width`);if(!(0,o.isPercent)(r))return!1;this.hasLabels||(this.bbox.pwidth=``,this.container.bbox.pwidth=``);var i=this.bbox,a=i.w,c=i.L,l=i.R,u=this.node.attributes.get(`data-width-includes-label`),d=Math.max(a,this.length2em(r,Math.max(t,c+a+l)))-(u?c+l:0),f=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(f,d);var p=this.getComputedWidths();return this.pWidth=(0,s.sum)(p.concat(this.cLines,this.cSpace))+2*(this.fLine+this.fSpace[0]),this.isTop&&(this.bbox.w=this.pWidth),this.setColumnPWidths(),this.pWidth!==a&&this.parent.invalidateBBox(),this.pWidth!==a},c.prototype.setColumnPWidths=function(){var e,t,r=this.cWidths;try{for(var a=i(this.pwidthCells),o=a.next();!o.done;o=a.next()){var s=n(o.value,2),c=s[0],l=s[1];c.setChildPWidths(!1,r[l])&&(c.invalidateBBox(),c.getBBox())}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}},c.prototype.getBBoxHD=function(e){var t=n(this.getAlignmentRow(),2),r=t[0],i=t[1];if(i===null){var a=this.font.params.axis_height,o=e/2;return{top:[0,e],center:[o,o],bottom:[e,0],baseline:[o,o],axis:[o+a,o-a]}[r]||[o,o]}else{var s=this.getVerticalPosition(i,r);return[s,e-s]}},c.prototype.getBBoxLR=function(){if(this.hasLabels){var e=this.node.attributes,t=e.get(`side`),r=n(this.getPadAlignShift(t),2),i=r[0],a=r[1],o=this.hasLabels&&!!e.get(`data-width-includes-label`);return o&&this.frame&&this.fSpace[0]&&(i-=this.fSpace[0]),a===`center`&&!o?[i,i]:t===`left`?[i,0]:[0,i]}return[0,0]},c.prototype.getPadAlignShift=function(e){var t=this.getTableData().L+this.length2em(this.node.attributes.get(`minlabelspacing`)),r=n(this.styles==null?[``,``]:[this.styles.get(`padding-left`),this.styles.get(`padding-right`)],2),i=r[0],a=r[1];(i||a)&&(t=Math.max(t,this.length2em(i||`0`),this.length2em(a||`0`)));var o=n(this.getAlignShift(),2),s=o[0],c=o[1];return s===e&&(c=e===`left`?Math.max(t,c)-t:Math.min(-t,c)+t),[t,s,c]},c.prototype.getAlignShift=function(){return this.isTop?e.prototype.getAlignShift.call(this):[this.container.getChildAlign(this.containerI),0]},c.prototype.getWidth=function(){return this.pWidth||this.getBBox().w},c.prototype.getEqualRowHeight=function(){var e=this.getTableData(),t=e.H,n=e.D,r=Array.from(t.keys()).map(function(e){return t[e]+n[e]});return Math.max.apply(Math,r)},c.prototype.getComputedWidths=function(){var e=this,t=this.getTableData().W,n=Array.from(t.keys()).map(function(n){return typeof e.cWidths[n]==`number`?e.cWidths[n]:t[n]});return this.node.attributes.get(`equalcolumns`)&&(n=Array(n.length).fill((0,s.max)(n))),n},c.prototype.getColumnWidths=function(){var e=this.node.attributes.get(`width`);if(this.node.attributes.get(`equalcolumns`))return this.getEqualColumns(e);var t=this.getColumnAttributes(`columnwidth`,0);return e===`auto`?this.getColumnWidthsAuto(t):(0,o.isPercent)(e)?this.getColumnWidthsPercent(t):this.getColumnWidthsFixed(t,this.length2em(e))},c.prototype.getEqualColumns=function(e){var t=Math.max(1,this.numCols),n;if(e===`auto`){var r=this.getTableData().W;n=(0,s.max)(r)}else if((0,o.isPercent)(e))n=this.percent(1/t);else{var i=(0,s.sum)([].concat(this.cLines,this.cSpace))+2*this.fSpace[0];n=Math.max(0,this.length2em(e)-i)/t}return Array(this.numCols).fill(n)},c.prototype.getColumnWidthsAuto=function(e){var t=this;return e.map(function(e){return e===`auto`||e===`fit`?null:(0,o.isPercent)(e)?e:t.length2em(e)})},c.prototype.getColumnWidthsPercent=function(e){var t=this,n=e.indexOf(`fit`)>=0,r=(n?this.getTableData():{W:null}).W;return Array.from(e.keys()).map(function(i){var a=e[i];return a===`fit`?null:a===`auto`?n?r[i]:null:(0,o.isPercent)(a)?a:t.length2em(a)})},c.prototype.getColumnWidthsFixed=function(e,t){var n=this,r=Array.from(e.keys()),i=r.filter(function(t){return e[t]===`fit`}),a=r.filter(function(t){return e[t]===`auto`}),o=i.length||a.length,c=(o?this.getTableData():{W:null}).W,l=t-(0,s.sum)([].concat(this.cLines,this.cSpace))-2*this.fSpace[0],u=l;r.forEach(function(t){var r=e[t];u-=r===`fit`||r===`auto`?c[t]:n.length2em(r,l)});var d=o&&u>0?u/o:0;return r.map(function(t){var r=e[t];return r===`fit`?c[t]+d:r===`auto`?c[t]+(i.length===0?d:0):n.length2em(r,l)})},c.prototype.getVerticalPosition=function(e,t){for(var r=this.node.attributes.get(`equalrows`),i=this.getTableData(),a=i.H,o=i.D,s=r?this.getEqualRowHeight():0,c=this.getRowHalfSpacing(),l=this.fLine,u=0;u<e;u++)l+=c[u]+(r?s:a[u]+o[u])+c[u+1]+this.rLines[u];var d=n(r?[(s+a[e]-o[e])/2,(s-a[e]+o[e])/2]:[a[e],o[e]],2),f=d[0],p=d[1],m={top:0,center:c[e]+(f+p)/2,bottom:c[e]+f+p+c[e+1],baseline:c[e]+f,axis:c[e]+f-.25};return l+=m[t]||0,l},c.prototype.getEmHalfSpacing=function(e,t,n){n===void 0&&(n=1);var r=this.em(e*n),i=this.addEm(t,2/n);return i.unshift(r),i.push(r),i},c.prototype.getRowHalfSpacing=function(){var e=this.rSpace.map(function(e){return e/2});return e.unshift(this.fSpace[1]),e.push(this.fSpace[1]),e},c.prototype.getColumnHalfSpacing=function(){var e=this.cSpace.map(function(e){return e/2});return e.unshift(this.fSpace[0]),e.push(this.fSpace[0]),e},c.prototype.getAlignmentRow=function(){var e=n((0,o.split)(this.node.attributes.get(`align`)),2),t=e[0],r=e[1];if(r==null)return[t,null];var i=parseInt(r);return i<0&&(i+=this.numRows+1),[t,i<1||i>this.numRows?null:i-1]},c.prototype.getColumnAttributes=function(e,t){t===void 0&&(t=1);var n=this.numCols-t,r=this.getAttributeArray(e);if(r.length===0)return null;for(;r.length<n;)r.push(r[r.length-1]);return r.length>n&&r.splice(n),r},c.prototype.getRowAttributes=function(e,t){t===void 0&&(t=1);var n=this.numRows-t,r=this.getAttributeArray(e);if(r.length===0)return null;for(;r.length<n;)r.push(r[r.length-1]);return r.length>n&&r.splice(n),r},c.prototype.getAttributeArray=function(e){var t=this.node.attributes.get(e);return t?(0,o.split)(t):[this.node.attributes.getDefault(e)]},c.prototype.addEm=function(e,t){var n=this;return t===void 0&&(t=1),e?e.map(function(e){return n.em(e/t)}):null},c.prototype.convertLengths=function(e){var t=this;return e?e.map(function(e){return t.length2em(e)}):null},c}(e)}e.CommonMtableMixin=c})),tr=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},r=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmtable=void 0;var i=Q(),a=er(),o=ve(),s=P();e.CHTMLmtable=function(e){t(i,e);function i(t,n,r){r===void 0&&(r=null);var i=e.call(this,t,n,r)||this;return i.itable=i.html(`mjx-itable`),i.labels=i.html(`mjx-itable`),i}return i.prototype.getAlignShift=function(){var t=e.prototype.getAlignShift.call(this);return this.isTop||(t[1]=0),t},i.prototype.toCHTML=function(e){var t,r,i=this.standardCHTMLnode(e);this.adaptor.append(i,this.html(`mjx-table`,{},[this.itable]));try{for(var a=n(this.childNodes),o=a.next();!o.done;o=a.next())o.value.toCHTML(this.itable)}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}this.padRows(),this.handleColumnSpacing(),this.handleColumnLines(),this.handleColumnWidths(),this.handleRowSpacing(),this.handleRowLines(),this.handleRowHeights(),this.handleFrame(),this.handleWidth(),this.handleLabels(),this.handleAlign(),this.handleJustify(),this.shiftColor()},i.prototype.shiftColor=function(){var e=this.adaptor,t=e.getStyle(this.chtml,`backgroundColor`);t&&(e.setStyle(this.chtml,`backgroundColor`,``),e.setStyle(this.itable,`backgroundColor`,t))},i.prototype.padRows=function(){var e,t,r=this.adaptor;try{for(var i=n(r.childNodes(this.itable)),a=i.next();!a.done;a=i.next())for(var o=a.value;r.childNodes(o).length<this.numCols;)r.append(o,this.html(`mjx-mtd`,{extra:!0}))}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},i.prototype.handleColumnSpacing=function(){var e,t,r,i,a=this.childNodes[0]?1/this.childNodes[0].getBBox().rscale:1,o=this.getEmHalfSpacing(this.fSpace[0],this.cSpace,a),s=this.frame;try{for(var c=n(this.tableRows),l=c.next();!l.done;l=c.next()){var u=l.value,d=0;try{for(var f=(r=void 0,n(u.tableCells)),p=f.next();!p.done;p=f.next()){var m=p.value,h=o[d++],g=o[d],_=m?m.chtml:this.adaptor.childNodes(u.chtml)[d];(d>1&&h!==`0.4em`||s&&d===1)&&this.adaptor.setStyle(_,`paddingLeft`,h),(d<this.numCols&&g!==`0.4em`||s&&d===this.numCols)&&this.adaptor.setStyle(_,`paddingRight`,g)}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}},i.prototype.handleColumnLines=function(){var e,t,r,i;if(this.node.attributes.get(`columnlines`)!==`none`){var a=this.getColumnAttributes(`columnlines`);try{for(var o=n(this.childNodes),s=o.next();!s.done;s=o.next()){var c=s.value,l=0;try{for(var u=(r=void 0,n(this.adaptor.childNodes(c.chtml).slice(1))),d=u.next();!d.done;d=u.next()){var f=d.value,p=a[l++];p!==`none`&&this.adaptor.setStyle(f,`borderLeft`,`.07em `+p)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}},i.prototype.handleColumnWidths=function(){var e,t,r,i;try{for(var a=n(this.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value,c=0;try{for(var l=(r=void 0,n(this.adaptor.childNodes(s.chtml))),u=l.next();!u.done;u=l.next()){var d=u.value,f=this.cWidths[c++];if(f!==null){var p=typeof f==`number`?this.em(f):f;this.adaptor.setStyle(d,`width`,p),this.adaptor.setStyle(d,`maxWidth`,p),this.adaptor.setStyle(d,`minWidth`,p)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}},i.prototype.handleRowSpacing=function(){var e,t,r,i,a=this.childNodes[0]?1/this.childNodes[0].getBBox().rscale:1,o=this.getEmHalfSpacing(this.fSpace[1],this.rSpace,a),s=this.frame,c=0;try{for(var l=n(this.childNodes),u=l.next();!u.done;u=l.next()){var d=u.value,f=o[c++],p=o[c];try{for(var m=(r=void 0,n(d.childNodes)),h=m.next();!h.done;h=m.next()){var g=h.value;(c>1&&f!==`0.215em`||s&&c===1)&&this.adaptor.setStyle(g.chtml,`paddingTop`,f),(c<this.numRows&&p!==`0.215em`||s&&c===this.numRows)&&this.adaptor.setStyle(g.chtml,`paddingBottom`,p)}}catch(e){r={error:e}}finally{try{h&&!h.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}},i.prototype.handleRowLines=function(){var e,t,r,i;if(this.node.attributes.get(`rowlines`)!==`none`){var a=this.getRowAttributes(`rowlines`),o=0;try{for(var s=n(this.childNodes.slice(1)),c=s.next();!c.done;c=s.next()){var l=c.value,u=a[o++];if(u!==`none`)try{for(var d=(r=void 0,n(this.adaptor.childNodes(l.chtml))),f=d.next();!f.done;f=d.next()){var p=f.value;this.adaptor.setStyle(p,`borderTop`,`.07em `+u)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}}},i.prototype.handleRowHeights=function(){this.node.attributes.get(`equalrows`)&&this.handleEqualRows()},i.prototype.handleEqualRows=function(){for(var e=this.getRowHalfSpacing(),t=this.getTableData(),n=t.H,r=t.D,i=t.NH,a=t.ND,o=this.getEqualRowHeight(),s=0;s<this.numRows;s++){var c=this.childNodes[s];this.setRowHeight(c,o+e[s]+e[s+1]+this.rLines[s]),o!==i[s]+a[s]&&this.setRowBaseline(c,o,(o-n[s]+r[s])/2)}},i.prototype.setRowHeight=function(e,t){this.adaptor.setStyle(e.chtml,`height`,this.em(t))},i.prototype.setRowBaseline=function(e,t,r){var i,a,o=e.node.attributes.get(`rowalign`);try{for(var s=n(e.childNodes),c=s.next();!c.done;c=s.next()){var l=c.value;if(this.setCellBaseline(l,o,t,r))break}}catch(e){i={error:e}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}},i.prototype.setCellBaseline=function(e,t,n,r){var i=e.node.attributes.get(`rowalign`);if(i===`baseline`||i===`axis`){var a=this.adaptor,o=a.lastChild(e.chtml);a.setStyle(o,`height`,this.em(n)),a.setStyle(o,`verticalAlign`,this.em(-r));var s=e.parent;if((!s.node.isKind(`mlabeledtr`)||e!==s.childNodes[0])&&(t===`baseline`||t===`axis`))return!0}return!1},i.prototype.handleFrame=function(){this.frame&&this.fLine&&this.adaptor.setStyle(this.itable,`border`,`.07em `+this.node.attributes.get(`frame`))},i.prototype.handleWidth=function(){var e=this.adaptor,t=this.getBBox(),n=t.w,r=t.L,i=t.R;e.setStyle(this.chtml,`minWidth`,this.em(r+n+i));var a=this.node.attributes.get(`width`);if((0,s.isPercent)(a))e.setStyle(this.chtml,`width`,``),e.setAttribute(this.chtml,`width`,`full`);else if(!this.hasLabels){if(a===`auto`)return;a=this.em(this.length2em(a)+2*this.fLine)}var o=e.firstChild(this.chtml);if(e.setStyle(o,`width`,a),e.setStyle(o,`minWidth`,this.em(n)),r||i){e.setStyle(this.chtml,`margin`,``);var c=this.node.attributes.get(`data-width-includes-label`)?`padding`:`margin`;r===i?e.setStyle(o,c,`0 `+this.em(i)):e.setStyle(o,c,`0 `+this.em(i)+` 0 `+this.em(r))}e.setAttribute(this.itable,`width`,`full`)},i.prototype.handleAlign=function(){var e=r(this.getAlignmentRow(),2),t=e[0],n=e[1];if(n===null)t!==`axis`&&this.adaptor.setAttribute(this.chtml,`align`,t);else{var i=this.getVerticalPosition(n,t);this.adaptor.setAttribute(this.chtml,`align`,`top`),this.adaptor.setStyle(this.chtml,`verticalAlign`,this.em(i))}},i.prototype.handleJustify=function(){var e=this.getAlignShift()[0];e!==`center`&&this.adaptor.setAttribute(this.chtml,`justify`,e)},i.prototype.handleLabels=function(){if(this.hasLabels){var e=this.labels,t=this.node.attributes,n=this.adaptor,i=t.get(`side`);n.setAttribute(this.chtml,`side`,i),n.setAttribute(e,`align`,i),n.setStyle(e,i,`0`);var a=r(this.addLabelPadding(i),2),o=a[0],s=a[1];if(s){var c=n.firstChild(this.chtml);this.setIndent(c,o,s)}this.updateRowHeights(),this.addLabelSpacing()}},i.prototype.addLabelPadding=function(e){var t=r(this.getPadAlignShift(e),3),n=t[1],i=t[2],a={};if(e===`right`&&!this.node.attributes.get(`data-width-includes-label`)){var o=this.node.attributes.get(`width`),c=this.getBBox(),l=c.w,u=c.L,d=c.R;a.style={width:(0,s.isPercent)(o)?`calc(`+o+` + `+this.em(u+d)+`)`:this.em(u+l+d)}}return this.adaptor.append(this.chtml,this.html(`mjx-labels`,a,[this.labels])),[n,i]},i.prototype.updateRowHeights=function(){for(var e=this.getTableData(),t=e.H,n=e.D,r=e.NH,i=e.ND,a=this.getRowHalfSpacing(),o=0;o<this.numRows;o++){var s=this.childNodes[o];this.setRowHeight(s,t[o]+n[o]+a[o]+a[o+1]+this.rLines[o]),t[o]!==r[o]||n[o]!==i[o]?this.setRowBaseline(s,t[o]+n[o],n[o]):s.node.isKind(`mlabeledtr`)&&this.setCellBaseline(s.childNodes[0],``,t[o]+n[o],n[o])}},i.prototype.addLabelSpacing=function(){for(var e=this.adaptor,t=this.node.attributes.get(`equalrows`),n=this.getTableData(),r=n.H,i=n.D,a=t?this.getEqualRowHeight():0,o=this.getRowHalfSpacing(),s=this.fLine,c=e.firstChild(this.labels),l=0;l<this.numRows;l++)this.childNodes[l].node.isKind(`mlabeledtr`)?(s&&e.insert(this.html(`mjx-mtr`,{style:{height:this.em(s)}}),c),e.setStyle(c,`height`,this.em((t?a:r[l]+i[l])+o[l]+o[l+1])),c=e.next(c),s=this.rLines[l]):s+=o[l]+(t?a:r[l]+i[l])+o[l+1]+this.rLines[l]},i.kind=o.MmlMtable.prototype.kind,i.styles={"mjx-mtable":{"vertical-align":`.25em`,"text-align":`center`,position:`relative`,"box-sizing":`border-box`,"border-spacing":0,"border-collapse":`collapse`},'mjx-mstyle[size="s"] mjx-mtable':{"vertical-align":`.354em`},"mjx-labels":{position:`absolute`,left:0,top:0},"mjx-table":{display:`inline-block`,"vertical-align":`-.5ex`,"box-sizing":`border-box`},"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%`}},i}((0,a.CommonMtableMixin)(i.CHTMLWrapper))})),nr=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMlabeledtrMixin=e.CommonMtrMixin=void 0;function r(e){return function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"numCells",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"labeled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tableCells",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),r.prototype.getChild=function(e){return this.childNodes[e]},r.prototype.getChildBBoxes=function(){return this.childNodes.map(function(e){return e.getBBox()})},r.prototype.stretchChildren=function(e){var t,r,i,a,o,s;e===void 0&&(e=null);var c=[],l=this.labeled?this.childNodes.slice(1):this.childNodes;try{for(var u=n(l),d=u.next();!d.done;d=u.next()){var f=d.value,p=f.childNodes[0];p.canStretch(1)&&c.push(p)}}catch(e){t={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}var m=c.length,h=this.childNodes.length;if(m&&h>1){if(e===null){var g=0,_=0,v=m>1&&m===h;try{for(var y=n(l),b=y.next();!b.done;b=y.next()){var f=b.value,p=f.childNodes[0],x=p.stretch.dir===0;if(v||x){var S=p.getBBox(x),C=S.h,w=S.d;C>g&&(g=C),w>_&&(_=w)}}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}e=[g,_]}try{for(var T=n(c),E=T.next();!E.done;E=T.next()){var p=E.value;p.coreMO().getStretchedVariant(e)}}catch(e){o={error:e}}finally{try{E&&!E.done&&(s=T.return)&&s.call(T)}finally{if(o)throw o.error}}}},r}(e)}e.CommonMtrMixin=r;function i(e){return function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"numCells",{get:function(){return Math.max(0,this.childNodes.length-1)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"labeled",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tableCells",{get:function(){return this.childNodes.slice(1)},enumerable:!1,configurable:!0}),n.prototype.getChild=function(e){return this.childNodes[e+1]},n.prototype.getChildBBoxes=function(){return this.childNodes.slice(1).map(function(e){return e.getBBox()})},n}(e)}e.CommonMlabeledtrMixin=i})),rr=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmlabeledtr=e.CHTMLmtr=void 0;var n=Q(),r=nr(),i=nr(),a=ye(),o=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.toCHTML=function(t){e.prototype.toCHTML.call(this,t);var n=this.node.attributes.get(`rowalign`);n!==`baseline`&&this.adaptor.setAttribute(this.chtml,`rowalign`,n)},n.kind=a.MmlMtr.prototype.kind,n.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`}},n}((0,r.CommonMtrMixin)(n.CHTMLWrapper));e.CHTMLmtr=o,e.CHTMLmlabeledtr=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.toCHTML=function(t){e.prototype.toCHTML.call(this,t);var n=this.adaptor.firstChild(this.chtml);if(n){this.adaptor.remove(n);var r=this.node.attributes.get(`rowalign`),i=r!==`baseline`&&r!==`axis`?{rowalign:r}:{},a=this.html(`mjx-mtr`,i,[n]);this.adaptor.append(this.parent.labels,a)}},n.prototype.markUsed=function(){e.prototype.markUsed.call(this),this.jax.wrapperUsage.add(o.kind)},n.kind=a.MmlMlabeledtr.prototype.kind,n.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`}},n}((0,i.CommonMlabeledtrMixin)(o))})),ir=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMtdMixin=void 0;function n(e){return function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!1,configurable:!0}),n.prototype.invalidateBBox=function(){this.bboxComputed=!1},n.prototype.getWrapWidth=function(e){var t=this.parent.parent,n=this.parent,r=this.node.childPosition()-+!!n.labeled;return typeof t.cWidths[r]==`number`?t.cWidths[r]:t.getTableData().W[r]},n.prototype.getChildAlign=function(e){return this.node.attributes.get(`columnalign`)},n}(e)}e.CommonMtdMixin=n})),ar=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmtd=void 0;var n=Q(),r=ir(),i=be();e.CHTMLmtd=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.toCHTML=function(t){e.prototype.toCHTML.call(this,t);var n=this.node.attributes.get(`rowalign`),r=this.node.attributes.get(`columnalign`);n!==this.parent.node.attributes.get(`rowalign`)&&this.adaptor.setAttribute(this.chtml,`rowalign`,n),r!==`center`&&(this.parent.kind!==`mlabeledtr`||this!==this.parent.childNodes[0]||r!==this.parent.parent.node.attributes.get(`side`))&&this.adaptor.setStyle(this.chtml,`textAlign`,r),this.parent.parent.node.getProperty(`useHeight`)&&this.adaptor.append(this.chtml,this.html(`mjx-tstrut`))},n.kind=i.MmlMtd.prototype.kind,n.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-mtd[extra]":{padding:0},'mjx-mtd[rowalign="top"]':{"vertical-align":`top`},'mjx-mtd[rowalign="center"]':{"vertical-align":`middle`},'mjx-mtd[rowalign="bottom"]':{"vertical-align":`bottom`},'mjx-mtd[rowalign="baseline"]':{"vertical-align":`baseline`},'mjx-mtd[rowalign="axis"]':{"vertical-align":`.25em`}},n}((0,r.CommonMtdMixin)(n.CHTMLWrapper))})),or=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMactionMixin=e.TooltipData=void 0;var i=P();e.TooltipData={dx:`.2em`,dy:`.1em`,postDelay:600,clearDelay:100,hoverTimer:new Map,clearTimer:new Map,stopTimers:function(e,t){t.clearTimer.has(e)&&(clearTimeout(t.clearTimer.get(e)),t.clearTimer.delete(e)),t.hoverTimer.has(e)&&(clearTimeout(t.hoverTimer.get(e)),t.hoverTimer.delete(e))}};function a(a){return function(a){t(o,a);function o(){var e=[...arguments],t=a.apply(this,r([],n(e),!1))||this,i=t.constructor.actions,o=t.node.attributes.get(`actiontype`),s=n(i.get(o)||[(function(e,t){}),{}],2),c=s[0],l=s[1];return t.action=c,t.data=l,t.getParameters(),t}return Object.defineProperty(o.prototype,"selected",{get:function(){var e=this.node.attributes.get(`selection`),t=Math.max(1,Math.min(this.childNodes.length,e))-1;return this.childNodes[t]||this.wrap(this.node.selected)},enumerable:!1,configurable:!0}),o.prototype.getParameters=function(){var t=this.node.attributes.get(`data-offsets`),r=n((0,i.split)(t||``),2),a=r[0],o=r[1];this.dx=this.length2em(a||e.TooltipData.dx),this.dy=this.length2em(o||e.TooltipData.dy)},o.prototype.computeBBox=function(e,t){t===void 0&&(t=!1),e.updateFrom(this.selected.getOuterBBox()),this.selected.setChildPWidths(t)},o}(a)}e.CommonMactionMixin=a})),sr=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmaction=void 0;var n=Q(),r=or(),i=or(),a=me();e.CHTMLmaction=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.toCHTML=function(e){var t=this.standardCHTMLnode(e);this.selected.toCHTML(t),this.action(this,this.data)},n.prototype.setEventHandler=function(e,t){this.chtml.addEventListener(e,t)},n.kind=a.MmlMaction.prototype.kind,n.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`}},n.actions=new Map([[`toggle`,[function(e,t){e.adaptor.setAttribute(e.chtml,`toggle`,e.node.attributes.get(`selection`));var n=e.factory.jax.math,r=e.factory.jax.document,i=e.node;e.setEventHandler(`click`,function(e){n.end.node||(n.start.node=n.end.node=n.typesetRoot,n.start.n=n.end.n=0),i.nextToggleSelection(),n.rerender(r),e.stopPropagation()})},{}]],[`tooltip`,[function(e,t){var n=e.childNodes[1];if(n)if(n.node.isKind(`mtext`)){var r=n.node.getText();e.adaptor.setAttribute(e.chtml,`title`,r)}else{var i=e.adaptor,a=i.append(e.chtml,e.html(`mjx-tool`,{style:{bottom:e.em(-e.dy),right:e.em(-e.dx)}},[e.html(`mjx-tip`)]));n.toCHTML(i.firstChild(a)),e.setEventHandler(`mouseover`,function(n){t.stopTimers(e,t);var r=setTimeout(function(){return i.setStyle(a,`display`,`block`)},t.postDelay);t.hoverTimer.set(e,r),n.stopPropagation()}),e.setEventHandler(`mouseout`,function(n){t.stopTimers(e,t);var r=setTimeout(function(){return i.setStyle(a,`display`,``)},t.clearDelay);t.clearTimer.set(e,r),n.stopPropagation()})}},i.TooltipData]],[`statusline`,[function(e,t){var n=e.childNodes[1];if(n&&n.node.isKind(`mtext`)){var r=e.adaptor,i=n.node.getText();r.setAttribute(e.chtml,`statusline`,i),e.setEventHandler(`mouseover`,function(n){if(t.status===null){var a=r.body(r.document);t.status=r.append(a,e.html(`mjx-status`,{},[e.text(i)]))}n.stopPropagation()}),e.setEventHandler(`mouseout`,function(e){t.status&&=(r.remove(t.status),null),e.stopPropagation()})}},{status:null}]]]),n}((0,r.CommonMactionMixin)(n.CHTMLWrapper))})),cr=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMglyphMixin=void 0;function i(e){return function(e){t(i,e);function i(){var t=[...arguments],i=e.apply(this,r([],n(t),!1))||this;return i.getParameters(),i}return i.prototype.getParameters=function(){var e=this.node.attributes.getList(`width`,`height`,`valign`,`src`,`index`),t=e.width,n=e.height,r=e.valign,i=e.src,a=e.index;if(i)this.width=t===`auto`?1:this.length2em(t),this.height=n===`auto`?1:this.length2em(n),this.valign=this.length2em(r||`0`);else{var o=String.fromCodePoint(parseInt(a)),s=this.node.factory;this.charWrapper=this.wrap(s.create(`text`).setText(o)),this.charWrapper.parent=this}},i.prototype.computeBBox=function(e,t){t===void 0&&(t=!1),this.charWrapper?e.updateFrom(this.charWrapper.getBBox()):(e.w=this.width,e.h=this.height+this.valign,e.d=-this.valign)},i}(e)}e.CommonMglyphMixin=i})),lr=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmglyph=void 0;var n=Q(),r=cr(),i=Ce();e.CHTMLmglyph=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.toCHTML=function(e){var t=this.standardCHTMLnode(e);if(this.charWrapper){this.charWrapper.toCHTML(t);return}var n=this.node.attributes.getList(`src`,`alt`),r=n.src,i=n.alt,a={width:this.em(this.width),height:this.em(this.height)};this.valign&&(a.verticalAlign=this.em(this.valign));var o=this.html(`img`,{src:r,style:a,alt:i,title:i});this.adaptor.append(t,o)},n.kind=i.MmlMglyph.prototype.kind,n.styles={"mjx-mglyph > img":{display:`inline-block`,border:0,padding:0}},n}((0,r.CommonMglyphMixin)(n.CHTMLWrapper))})),ur=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CommonSemanticsMixin=void 0;function n(e){return function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.computeBBox=function(e,t){if(t===void 0&&(t=!1),this.childNodes.length){var n=this.childNodes[0].getBBox(),r=n.w,i=n.h,a=n.d;e.w=r,e.h=i,e.d=a}},n}(e)}e.CommonSemanticsMixin=n})),dr=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLxml=e.CHTMLannotationXML=e.CHTMLannotation=e.CHTMLsemantics=void 0;var n=Q(),r=ur(),i=we(),a=A();e.CHTMLsemantics=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.toCHTML=function(e){var t=this.standardCHTMLnode(e);this.childNodes.length&&this.childNodes[0].toCHTML(t)},n.kind=i.MmlSemantics.prototype.kind,n}((0,r.CommonSemanticsMixin)(n.CHTMLWrapper)),e.CHTMLannotation=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.toCHTML=function(t){e.prototype.toCHTML.call(this,t)},n.prototype.computeBBox=function(){return this.bbox},n.kind=i.MmlAnnotation.prototype.kind,n}(n.CHTMLWrapper),e.CHTMLannotationXML=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.kind=i.MmlAnnotationXML.prototype.kind,n.styles={"mjx-annotation-xml":{"font-family":`initial`,"line-height":`normal`}},n}(n.CHTMLWrapper),e.CHTMLxml=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.toCHTML=function(e){this.chtml=this.adaptor.append(e,this.adaptor.clone(this.node.getXML()))},n.prototype.computeBBox=function(e,t){t===void 0&&(t=!1);var n=this.jax.measureXMLnode(this.node.getXML()),r=n.w,i=n.h,a=n.d;e.w=r,e.h=i,e.d=a},n.prototype.getStyles=function(){},n.prototype.getScale=function(){},n.prototype.getVariant=function(){},n.kind=a.XMLNode.prototype.kind,n.autoStyle=!1,n}(n.CHTMLWrapper)})),fr=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTeXAtomMixin=void 0;var n=A();function r(e){return function(e){t(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.computeBBox=function(t,r){if(r===void 0&&(r=!1),e.prototype.computeBBox.call(this,t,r),this.childNodes[0]&&this.childNodes[0].bbox.ic&&(t.ic=this.childNodes[0].bbox.ic),this.node.texClass===n.TEXCLASS.VCENTER){var i=t.h,a=t.d,o=this.font.params.axis_height,s=(i+a)/2+o-i;t.h+=s,t.d-=s}},r}(e)}e.CommonTeXAtomMixin=r})),pr=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLTeXAtom=void 0;var n=Q(),r=fr(),i=Te(),a=A();e.CHTMLTeXAtom=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.toCHTML=function(t){if(e.prototype.toCHTML.call(this,t),this.adaptor.setAttribute(this.chtml,`texclass`,a.TEXCLASSNAMES[this.node.texClass]),this.node.texClass===a.TEXCLASS.VCENTER){var n=this.childNodes[0].getBBox(),r=n.h,i=n.d,o=this.font.params.axis_height,s=(r+i)/2+o-r;this.adaptor.setStyle(this.chtml,`verticalAlign`,this.em(s))}},n.kind=i.TeXAtom.prototype.kind,n}((0,r.CommonTeXAtomMixin)(n.CHTMLWrapper))})),mr=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},r=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTextNodeMixin=void 0;function i(e){return function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return i.prototype.computeBBox=function(e,t){var i,a;t===void 0&&(t=!1);var o=this.parent.variant,s=this.node.getText();if(o===`-explicitFont`){var c=this.jax.getFontData(this.parent.styles),l=this.jax.measureText(s,o,c),u=l.w,d=l.h,f=l.d;e.h=d,e.d=f,e.w=u}else{var p=this.remappedText(s,o);e.empty();try{for(var m=n(p),h=m.next();!h.done;h=m.next()){var g=h.value,_=r(this.getVariantChar(o,g),4),d=_[0],f=_[1],u=_[2],v=_[3];if(v.unknown){var y=this.jax.measureText(String.fromCodePoint(g),o);u=y.w,d=y.h,f=y.d}e.w+=u,d>e.h&&(e.h=d),f>e.d&&(e.d=f),e.ic=v.ic||0,e.sk=v.sk||0,e.dx=v.dx||0}}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}p.length>1&&(e.sk=0),e.clean()}},i.prototype.remappedText=function(e,t){var n=this.parent.stretch.c;return n?[n]:this.parent.remapChars(this.unicodeChars(e,t))},i.prototype.getStyles=function(){},i.prototype.getVariant=function(){},i.prototype.getScale=function(){},i.prototype.getSpace=function(){},i}(e)}e.CommonTextNodeMixin=i})),hr=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLTextNode=void 0;var r=A(),i=Q();e.CHTMLTextNode=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return i.prototype.toCHTML=function(e){var t,r;this.markUsed();var i=this.adaptor,a=this.parent.variant,o=this.node.getText();if(o.length!==0)if(a===`-explicitFont`)i.append(e,this.jax.unknownText(o,a,this.getBBox().w));else{var s=this.remappedText(o,a);try{for(var c=n(s),l=c.next();!l.done;l=c.next()){var u=l.value,d=this.getVariantChar(a,u)[3],f=d.f?` TEX-`+d.f:``,p=d.unknown?this.jax.unknownText(String.fromCodePoint(u),a):this.html(`mjx-c`,{class:this.char(u)+f});i.append(e,p),!d.unknown&&this.font.charUsage.add([a,u])}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}}},i.kind=r.TextNode.prototype.kind,i.autoStyle=!1,i.styles={"mjx-c":{display:`inline-block`},"mjx-utext":{display:`inline-block`,padding:`.75em 0 .2em 0`}},i}((0,mr().CommonTextNodeMixin)(i.CHTMLWrapper))})),gr=e((e=>{var t;Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLWrappers=void 0;var n=Q(),r=gn(),i=vn(),a=bn(),o=Sn(),s=wn(),c=En(),l=On(),u=An(),d=Pn(),f=In(),p=Rn(),m=Bn(),h=Hn(),g=Wn(),_=Jn(),v=Xn(),y=Qn(),b=tr(),x=rr(),S=ar(),C=sr(),w=lr(),T=dr(),E=pr(),D=hr();e.CHTMLWrappers=(t={},t[r.CHTMLmath.kind]=r.CHTMLmath,t[f.CHTMLmrow.kind]=f.CHTMLmrow,t[f.CHTMLinferredMrow.kind]=f.CHTMLinferredMrow,t[i.CHTMLmi.kind]=i.CHTMLmi,t[a.CHTMLmo.kind]=a.CHTMLmo,t[o.CHTMLmn.kind]=o.CHTMLmn,t[s.CHTMLms.kind]=s.CHTMLms,t[c.CHTMLmtext.kind]=c.CHTMLmtext,t[l.CHTMLmspace.kind]=l.CHTMLmspace,t[u.CHTMLmpadded.kind]=u.CHTMLmpadded,t[d.CHTMLmenclose.kind]=d.CHTMLmenclose,t[m.CHTMLmfrac.kind]=m.CHTMLmfrac,t[h.CHTMLmsqrt.kind]=h.CHTMLmsqrt,t[g.CHTMLmroot.kind]=g.CHTMLmroot,t[_.CHTMLmsub.kind]=_.CHTMLmsub,t[_.CHTMLmsup.kind]=_.CHTMLmsup,t[_.CHTMLmsubsup.kind]=_.CHTMLmsubsup,t[v.CHTMLmunder.kind]=v.CHTMLmunder,t[v.CHTMLmover.kind]=v.CHTMLmover,t[v.CHTMLmunderover.kind]=v.CHTMLmunderover,t[y.CHTMLmmultiscripts.kind]=y.CHTMLmmultiscripts,t[p.CHTMLmfenced.kind]=p.CHTMLmfenced,t[b.CHTMLmtable.kind]=b.CHTMLmtable,t[x.CHTMLmtr.kind]=x.CHTMLmtr,t[x.CHTMLmlabeledtr.kind]=x.CHTMLmlabeledtr,t[S.CHTMLmtd.kind]=S.CHTMLmtd,t[C.CHTMLmaction.kind]=C.CHTMLmaction,t[w.CHTMLmglyph.kind]=w.CHTMLmglyph,t[T.CHTMLsemantics.kind]=T.CHTMLsemantics,t[T.CHTMLannotation.kind]=T.CHTMLannotation,t[T.CHTMLannotationXML.kind]=T.CHTMLannotationXML,t[T.CHTMLxml.kind]=T.CHTMLxml,t[E.CHTMLTeXAtom.kind]=E.CHTMLTeXAtom,t[D.CHTMLTextNode.kind]=D.CHTMLTextNode,t[n.CHTMLWrapper.kind]=n.CHTMLWrapper,t)})),_r=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLWrapperFactory=void 0;var n=dn(),r=gr();e.CHTMLWrapperFactory=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.defaultNodes=r.CHTMLWrappers,n}(n.CommonWrapperFactory)})),vr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Usage=void 0,e.Usage=function(){function e(){this.used=new Set,this.needsUpdate=[]}return e.prototype.add=function(e){var t=JSON.stringify(e);this.used.has(t)||this.needsUpdate.push(e),this.used.add(t)},e.prototype.has=function(e){return this.used.has(JSON.stringify(e))},e.prototype.clear=function(){this.used.clear(),this.needsUpdate=[]},e.prototype.update=function(){var e=this.needsUpdate;return this.needsUpdate=[],e},e}()})),$=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=e&&e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)},a=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},o=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.AddCSS=e.CHTMLFontData=void 0;var s=pn(),c=vr(),l=q();i(pn(),e),e.CHTMLFontData=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.charUsage=new c.Usage,t.delimUsage=new c.Usage,t}return r.charOptions=function(t,n){return e.charOptions.call(this,t,n)},r.prototype.adaptiveCSS=function(e){this.options.adaptiveCSS=e},r.prototype.clearCache=function(){this.options.adaptiveCSS&&(this.charUsage.clear(),this.delimUsage.clear())},r.prototype.createVariant=function(t,n,r){n===void 0&&(n=null),r===void 0&&(r=null),e.prototype.createVariant.call(this,t,n,r);var i=this.constructor;this.variant[t].classes=i.defaultVariantClasses[t],this.variant[t].letter=i.defaultVariantLetters[t]},r.prototype.defineChars=function(t,n){var i,o;e.prototype.defineChars.call(this,t,n);var s=this.variant[t].letter;try{for(var c=a(Object.keys(n)),l=c.next();!l.done;l=c.next()){var u=l.value,d=r.charOptions(n,parseInt(u));d.f===void 0&&(d.f=s)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}},Object.defineProperty(r.prototype,"styles",{get:function(){var e=this.constructor,t=n({},e.defaultStyles);return this.addFontURLs(t,e.defaultFonts,this.options.fontURL),this.options.adaptiveCSS?this.updateStyles(t):this.allStyles(t),t},enumerable:!1,configurable:!0}),r.prototype.updateStyles=function(e){var t,n,r,i;try{for(var s=a(this.delimUsage.update()),c=s.next();!c.done;c=s.next()){var l=c.value;this.addDelimiterStyles(e,l,this.delimiters[l])}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}try{for(var u=a(this.charUsage.update()),d=u.next();!d.done;d=u.next()){var f=o(d.value,2),p=f[0],l=f[1],m=this.variant[p];this.addCharStyles(e,m.letter,l,m.chars[l])}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return e},r.prototype.allStyles=function(e){var t,n,r,i,o,s;try{for(var c=a(Object.keys(this.delimiters)),l=c.next();!l.done;l=c.next()){var u=l.value,d=parseInt(u);this.addDelimiterStyles(e,d,this.delimiters[d])}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}try{for(var f=a(Object.keys(this.variant)),p=f.next();!p.done;p=f.next()){var m=p.value,h=this.variant[m],g=h.letter;try{for(var _=(o=void 0,a(Object.keys(h.chars))),v=_.next();!v.done;v=_.next()){var u=v.value,d=parseInt(u),y=h.chars[d];(y[3]||{}).smp||(y.length<4&&(y[3]={}),this.addCharStyles(e,g,d,y))}}catch(e){o={error:e}}finally{try{v&&!v.done&&(s=_.return)&&s.call(_)}finally{if(o)throw o.error}}}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}},r.prototype.addFontURLs=function(e,t,r){var i,o;try{for(var s=a(Object.keys(t)),c=s.next();!c.done;c=s.next()){var l=c.value,u=n({},t[l]);u.src=u.src.replace(/%%URL%%/,r),e[l]=u}}catch(e){i={error:e}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}},r.prototype.addDelimiterStyles=function(e,t,n){var r=this.charSelector(t);n.c&&n.c!==t&&(r=this.charSelector(n.c),e[`.mjx-stretched mjx-c`+r+`::before`]={content:this.charContent(n.c)}),n.stretch&&(n.dir===1?this.addDelimiterVStyles(e,r,n):this.addDelimiterHStyles(e,r,n))},r.prototype.addDelimiterVStyles=function(e,t,n){var r=n.HDW,i=o(n.stretch,4),a=i[0],s=i[1],c=i[2],l=i[3],u=this.addDelimiterVPart(e,t,`beg`,a,r);this.addDelimiterVPart(e,t,`ext`,s,r);var d=this.addDelimiterVPart(e,t,`end`,c,r),f={};if(l){var p=this.addDelimiterVPart(e,t,`mid`,l,r);f.height=`50%`,e[`mjx-stretchy-v`+t+` > mjx-mid`]={"margin-top":this.em(-p/2),"margin-bottom":this.em(-p/2)}}u&&(f[`border-top-width`]=this.em0(u-.03)),d&&(f[`border-bottom-width`]=this.em0(d-.03),e[`mjx-stretchy-v`+t+` > mjx-end`]={"margin-top":this.em(-d)}),Object.keys(f).length&&(e[`mjx-stretchy-v`+t+` > mjx-ext`]=f)},r.prototype.addDelimiterVPart=function(e,t,n,r,i){if(!r)return 0;var a=this.getDelimiterData(r),o=(i[2]-a[2])/2,s={content:this.charContent(r)};return n===`ext`?(s.width=this.em0(i[2]),o&&(s[`padding-left`]=this.em0(o))):s.padding=this.padding(a,o),e[`mjx-stretchy-v`+t+` mjx-`+n+` mjx-c::before`]=s,a[0]+a[1]},r.prototype.addDelimiterHStyles=function(e,t,n){var r=o(n.stretch,4),i=r[0],a=r[1],s=r[2],c=r[3],l=n.HDW;this.addDelimiterHPart(e,t,`beg`,i,l),this.addDelimiterHPart(e,t,`ext`,a,l),this.addDelimiterHPart(e,t,`end`,s,l),c&&(this.addDelimiterHPart(e,t,`mid`,c,l),e[`mjx-stretchy-h`+t+` > mjx-ext`]={width:`50%`})},r.prototype.addDelimiterHPart=function(e,t,n,r,i){if(r){var a=this.getDelimiterData(r)[3],o={content:a&&a.c?`"`+a.c+`"`:this.charContent(r)};o.padding=this.padding(i,0,-i[2]),e[`mjx-stretchy-h`+t+` mjx-`+n+` mjx-c::before`]=o}},r.prototype.addCharStyles=function(e,t,n,r){var i=r[3],a=i.f===void 0?t:i.f,o=`mjx-c`+this.charSelector(n)+(a?`.TEX-`+a:``);e[o+`::before`]={padding:this.padding(r,0,i.ic||0),content:i.c==null?this.charContent(n):`"`+i.c+`"`}},r.prototype.getDelimiterData=function(e){return this.getChar(`-smallop`,e)},r.prototype.em=function(e){return(0,l.em)(e)},r.prototype.em0=function(e){return(0,l.em)(Math.max(0,e))},r.prototype.padding=function(e,t,n){var r=o(e,3),i=r[0],a=r[1],s=r[2];return t===void 0&&(t=0),n===void 0&&(n=0),[i,s+n,a,t].map(this.em0).join(` `)},r.prototype.charContent=function(e){return`"`+(e>=32&&e<=126&&e!==34&&e!==39&&e!==92?String.fromCharCode(e):`\\`+e.toString(16).toUpperCase())+`"`},r.prototype.charSelector=function(e){return`.mjx-c`+e.toString(16).toUpperCase()},r.OPTIONS=n(n({},s.FontData.OPTIONS),{fontURL:`js/output/chtml/fonts/tex-woff-v2`}),r.JAX=`CHTML`,r.defaultVariantClasses={},r.defaultVariantLetters={},r.defaultStyles={"mjx-c::before":{display:`block`,width:0}},r.defaultFonts={"@font-face /* 0 */":{"font-family":`MJXZERO`,src:`url("%%URL%%/MathJax_Zero.woff") format("woff")`}},r}(s.FontData);function u(e,t){var n,r;try{for(var i=a(Object.keys(t)),o=i.next();!o.done;o=i.next()){var c=o.value,l=parseInt(c);Object.assign(s.FontData.charOptions(e,l),t[l])}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e}e.AddCSS=u})),yr=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},i=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTeXFontMixin=void 0;function a(e){var a;return a=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.getDelimiterData=function(e){return this.getChar(`-smallop`,e)||this.getChar(`-size4`,e)},n}(e),a.NAME=`TeX`,a.defaultVariants=i(i([],r(e.defaultVariants),!1),[[`-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`]],!1),a.defaultCssFonts=n(n({},e.defaultCssFonts),{"-smallop":[`serif`,!1,!1],"-largeop":[`serif`,!1,!1],"-size3":[`serif`,!1,!1],"-size4":[`serif`,!1,!1],"-tex-calligraphic":[`cursive`,!0,!1],"-tex-bold-calligraphic":[`cursive`,!0,!0],"-tex-oldstyle":[`serif`,!1,!1],"-tex-bold-oldstyle":[`serif`,!1,!0],"-tex-mathit":[`serif`,!0,!1]}),a.defaultSizeVariants=[`normal`,`-smallop`,`-largeop`,`-size3`,`-size4`,`-tex-variant`],a.defaultStretchVariants=[`-size4`],a}e.CommonTeXFontMixin=a})),br=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.boldItalic=void 0,e.boldItalic={47:[.711,.21,.894],305:[.452,.008,.394,{sk:.0319}],567:[.451,.201,.439,{sk:.0958}],8260:[.711,.21,.894],8710:[.711,0,.958,{sk:.192}],10744:[.711,.21,.894]}})),xr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.boldItalic=void 0;var t=$(),n=br();e.boldItalic=(0,t.AddCSS)(n.boldItalic,{305:{f:`B`},567:{f:`B`},8260:{c:`/`},8710:{c:`\\394`},10744:{c:`/`}})})),Sr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.bold=void 0,e.bold={33:[.705,0,.35],34:[.694,-.329,.603],35:[.694,.193,.958],36:[.75,.056,.575],37:[.75,.056,.958],38:[.705,.011,.894],39:[.694,-.329,.319],40:[.75,.249,.447],41:[.75,.249,.447],42:[.75,-.306,.575],43:[.633,.131,.894],44:[.171,.194,.319],45:[.278,-.166,.383],46:[.171,0,.319],47:[.75,.25,.575],58:[.444,0,.319],59:[.444,.194,.319],60:[.587,.085,.894],61:[.393,-.109,.894],62:[.587,.085,.894],63:[.7,0,.543],64:[.699,.006,.894],91:[.75,.25,.319],92:[.75,.25,.575],93:[.75,.25,.319],94:[.694,-.52,.575],95:[-.01,.061,.575],96:[.706,-.503,.575],123:[.75,.25,.575],124:[.75,.249,.319],125:[.75,.25,.575],126:[.344,-.202,.575],168:[.695,-.535,.575],172:[.371,-.061,.767],175:[.607,-.54,.575],176:[.702,-.536,.575],177:[.728,.035,.894],180:[.706,-.503,.575],183:[.336,-.166,.319],215:[.53,.028,.894],247:[.597,.096,.894],305:[.442,0,.278,{sk:.0278}],567:[.442,.205,.306,{sk:.0833}],697:[.563,-.033,.344],710:[.694,-.52,.575],711:[.66,-.515,.575],713:[.607,-.54,.575],714:[.706,-.503,.575],715:[.706,-.503,.575],728:[.694,-.5,.575],729:[.695,-.525,.575],730:[.702,-.536,.575],732:[.694,-.552,.575],768:[.706,-.503,0],769:[.706,-.503,0],770:[.694,-.52,0],771:[.694,-.552,0],772:[.607,-.54,0],774:[.694,-.5,0],775:[.695,-.525,0],776:[.695,-.535,0],778:[.702,-.536,0],779:[.714,-.511,0],780:[.66,-.515,0],824:[.711,.21,0],8194:[0,0,.5],8195:[0,0,.999],8196:[0,0,.333],8197:[0,0,.25],8198:[0,0,.167],8201:[0,0,.167],8202:[0,0,.083],8211:[.3,-.249,.575],8212:[.3,-.249,1.15],8213:[.3,-.249,1.15],8214:[.75,.248,.575],8215:[-.01,.061,.575],8216:[.694,-.329,.319],8217:[.694,-.329,.319],8220:[.694,-.329,.603],8221:[.694,-.329,.603],8224:[.702,.211,.511],8225:[.702,.202,.511],8226:[.474,-.028,.575],8230:[.171,0,1.295],8242:[.563,-.033,.344],8243:[.563,0,.688],8244:[.563,0,1.032],8254:[.607,-.54,.575],8260:[.75,.25,.575],8279:[.563,0,1.376],8407:[.723,-.513,.575],8463:[.694,.008,.668,{sk:-.0319}],8467:[.702,.019,.474,{sk:.128}],8472:[.461,.21,.74],8501:[.694,0,.703],8592:[.518,.017,1.15],8593:[.694,.193,.575],8594:[.518,.017,1.15],8595:[.694,.194,.575],8596:[.518,.017,1.15],8597:[.767,.267,.575],8598:[.724,.194,1.15],8599:[.724,.193,1.15],8600:[.694,.224,1.15],8601:[.694,.224,1.15],8602:[.711,.21,1.15],8603:[.711,.21,1.15],8614:[.518,.017,1.15],8617:[.518,.017,1.282],8618:[.518,.017,1.282],8622:[.711,.21,1.15],8636:[.518,-.22,1.15],8637:[.281,.017,1.15],8640:[.518,-.22,1.15],8641:[.281,.017,1.15],8652:[.718,.017,1.15],8653:[.711,.21,1.15],8654:[.711,.21,1.15],8655:[.711,.21,1.15],8656:[.547,.046,1.15],8657:[.694,.193,.703],8658:[.547,.046,1.15],8659:[.694,.194,.703],8660:[.547,.046,1.15],8661:[.767,.267,.703],8704:[.694,.016,.639],8707:[.694,0,.639],8708:[.711,.21,.639],8709:[.767,.073,.575],8710:[.698,0,.958],8712:[.587,.086,.767],8713:[.711,.21,.767],8715:[.587,.086,.767],8716:[.711,.21,.767],8722:[.281,-.221,.894],8723:[.537,.227,.894],8725:[.75,.25,.575],8726:[.75,.25,.575],8727:[.472,-.028,.575],8728:[.474,-.028,.575],8729:[.474,-.028,.575],8730:[.82,.18,.958,{ic:.03}],8733:[.451,.008,.894],8734:[.452,.008,1.15],8736:[.714,0,.722],8739:[.75,.249,.319],8740:[.75,.249,.319],8741:[.75,.248,.575],8742:[.75,.248,.575],8743:[.604,.017,.767],8744:[.604,.016,.767],8745:[.603,.016,.767],8746:[.604,.016,.767],8747:[.711,.211,.569,{ic:.063}],8764:[.391,-.109,.894],8768:[.583,.082,.319],8769:[.711,.21,.894],8771:[.502,0,.894],8772:[.711,.21,.894],8773:[.638,.027,.894],8775:[.711,.21,.894],8776:[.524,-.032,.894],8777:[.711,.21,.894],8781:[.533,.032,.894],8784:[.721,-.109,.894],8800:[.711,.21,.894],8801:[.505,0,.894],8802:[.711,.21,.894],8804:[.697,.199,.894],8805:[.697,.199,.894],8810:[.617,.116,1.15],8811:[.618,.116,1.15],8813:[.711,.21,.894],8814:[.711,.21,.894],8815:[.711,.21,.894],8816:[.711,.21,.894],8817:[.711,.21,.894],8826:[.585,.086,.894],8827:[.586,.086,.894],8832:[.711,.21,.894],8833:[.711,.21,.894],8834:[.587,.085,.894],8835:[.587,.086,.894],8836:[.711,.21,.894],8837:[.711,.21,.894],8838:[.697,.199,.894],8839:[.697,.199,.894],8840:[.711,.21,.894],8841:[.711,.21,.894],8846:[.604,.016,.767],8849:[.697,.199,.894],8850:[.697,.199,.894],8851:[.604,0,.767],8852:[.604,0,.767],8853:[.632,.132,.894],8854:[.632,.132,.894],8855:[.632,.132,.894],8856:[.632,.132,.894],8857:[.632,.132,.894],8866:[.693,0,.703],8867:[.693,0,.703],8868:[.694,0,.894],8869:[.693,0,.894],8872:[.75,.249,.974],8876:[.711,.21,.703],8877:[.75,.249,.974],8900:[.523,.021,.575],8901:[.336,-.166,.319],8902:[.502,0,.575],8904:[.54,.039,1],8930:[.711,.21,.894],8931:[.711,.21,.894],8942:[.951,.029,.319],8943:[.336,-.166,1.295],8945:[.871,-.101,1.323],8968:[.75,.248,.511],8969:[.75,.248,.511],8970:[.749,.248,.511],8971:[.749,.248,.511],8994:[.405,-.108,1.15],8995:[.392,-.126,1.15],9001:[.75,.249,.447],9002:[.75,.249,.447],9651:[.711,0,1.022],9653:[.711,0,1.022],9657:[.54,.039,.575],9661:[.5,.21,1.022],9663:[.5,.21,1.022],9667:[.539,.038,.575],9711:[.711,.211,1.15],9824:[.719,.129,.894],9825:[.711,.024,.894],9826:[.719,.154,.894],9827:[.719,.129,.894],9837:[.75,.017,.447],9838:[.741,.223,.447],9839:[.724,.224,.447],10072:[.75,.249,.319],10216:[.75,.249,.447],10217:[.75,.249,.447],10229:[.518,.017,1.805],10230:[.518,.017,1.833],10231:[.518,.017,2.126],10232:[.547,.046,1.868],10233:[.547,.046,1.87],10234:[.547,.046,2.126],10236:[.518,.017,1.833],10744:[.711,.21,.894],10799:[.53,.028,.894],10815:[.686,0,.9],10927:[.696,.199,.894],10928:[.697,.199,.894],12296:[.75,.249,.447],12297:[.75,.249,.447]}})),Cr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.bold=void 0;var t=$(),n=Sr();e.bold=(0,t.AddCSS)(n.bold,{183:{c:`\\22C5`},305:{f:``},567:{f:``},697:{c:`\\2032`},8194:{c:``},8195:{c:``},8196:{c:``},8197:{c:``},8198:{c:``},8201:{c:``},8202:{c:``},8213:{c:`\\2014`},8214:{c:`\\2225`},8215:{c:`_`},8226:{c:`\\2219`},8243:{c:`\\2032\\2032`},8244:{c:`\\2032\\2032\\2032`},8254:{c:`\\2C9`},8260:{c:`/`},8279:{c:`\\2032\\2032\\2032\\2032`},8407:{c:`\\2192`,f:`VB`},8602:{c:`\\2190\\338`},8603:{c:`\\2192\\338`},8622:{c:`\\2194\\338`},8653:{c:`\\21D0\\338`},8654:{c:`\\21D4\\338`},8655:{c:`\\21D2\\338`},8708:{c:`\\2203\\338`},8710:{c:`\\394`},8716:{c:`\\220B\\338`},8740:{c:`\\2223\\338`},8742:{c:`\\2225\\338`},8769:{c:`\\223C\\338`},8772:{c:`\\2243\\338`},8775:{c:`\\2245\\338`},8777:{c:`\\2248\\338`},8802:{c:`\\2261\\338`},8813:{c:`\\224D\\338`},8814:{c:`<\\338`},8815:{c:`>\\338`},8816:{c:`\\2264\\338`},8817:{c:`\\2265\\338`},8832:{c:`\\227A\\338`},8833:{c:`\\227B\\338`},8836:{c:`\\2282\\338`},8837:{c:`\\2283\\338`},8840:{c:`\\2286\\338`},8841:{c:`\\2287\\338`},8876:{c:`\\22A2\\338`},8877:{c:`\\22A8\\338`},8930:{c:`\\2291\\338`},8931:{c:`\\2292\\338`},9001:{c:`\\27E8`},9002:{c:`\\27E9`},9653:{c:`\\25B3`},9663:{c:`\\25BD`},10072:{c:`\\2223`},10744:{c:`/`,f:`BI`},10799:{c:`\\D7`},12296:{c:`\\27E8`},12297:{c:`\\27E9`}})})),wr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.doubleStruck=void 0,e.doubleStruck={}})),Tr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.doubleStruck=void 0;var t=wr();Object.defineProperty(e,"doubleStruck",{enumerable:!0,get:function(){return t.doubleStruck}})})),Er=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.frakturBold=void 0,e.frakturBold={33:[.689,.012,.349],34:[.695,-.432,.254],38:[.696,.016,.871],39:[.695,-.436,.25],40:[.737,.186,.459],41:[.735,.187,.459],42:[.692,-.449,.328],43:[.598,.082,.893],44:[.107,.191,.328],45:[.275,-.236,.893],46:[.102,.015,.328],47:[.721,.182,.593],48:[.501,.012,.593],49:[.489,0,.593],50:[.491,0,.593],51:[.487,.193,.593],52:[.495,.196,.593],53:[.481,.19,.593],54:[.704,.012,.593],55:[.479,.197,.593],56:[.714,.005,.593],57:[.487,.195,.593],58:[.457,.012,.255],59:[.458,.19,.255],61:[.343,-.168,.582],63:[.697,.014,.428],91:[.74,.13,.257],93:[.738,.132,.257],94:[.734,-.452,.59],8216:[.708,-.411,.254],8217:[.692,-.394,.254],8260:[.721,.182,.593],58113:[.63,.027,.587],58114:[.693,.212,.394,{ic:.014}],58115:[.681,.219,.387],58116:[.473,.212,.593],58117:[.684,.027,.393],58120:[.679,.22,.981],58121:[.717,.137,.727]}})),Dr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.frakturBold=void 0;var t=$(),n=Er();e.frakturBold=(0,t.AddCSS)(n.frakturBold,{8260:{c:`/`}})})),Or=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fraktur=void 0,e.fraktur={33:[.689,.012,.296],34:[.695,-.432,.215],38:[.698,.011,.738],39:[.695,-.436,.212],40:[.737,.186,.389],41:[.735,.187,.389],42:[.692,-.449,.278],43:[.598,.082,.756],44:[.107,.191,.278],45:[.275,-.236,.756],46:[.102,.015,.278],47:[.721,.182,.502],48:[.492,.013,.502],49:[.468,0,.502],50:[.474,0,.502],51:[.473,.182,.502],52:[.476,.191,.502],53:[.458,.184,.502],54:[.7,.013,.502],55:[.468,.181,.502],56:[.705,.01,.502],57:[.469,.182,.502],58:[.457,.012,.216],59:[.458,.189,.216],61:[.368,-.132,.756],63:[.693,.011,.362],91:[.74,.13,.278],93:[.738,.131,.278],94:[.734,-.452,.5],8216:[.708,-.41,.215],8217:[.692,-.395,.215],8260:[.721,.182,.502],58112:[.683,.032,.497],58113:[.616,.03,.498],58114:[.68,.215,.333],58115:[.679,.224,.329],58116:[.471,.214,.503],58117:[.686,.02,.333],58118:[.577,.021,.334,{ic:.013}],58119:[.475,.022,.501,{ic:.013}]}})),kr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fraktur=void 0;var t=$(),n=Or();e.fraktur=(0,t.AddCSS)(n.fraktur,{8260:{c:`/`}})})),Ar=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.italic=void 0,e.italic={33:[.716,0,.307,{ic:.073}],34:[.694,-.379,.514,{ic:.024}],35:[.694,.194,.818,{ic:.01}],37:[.75,.056,.818,{ic:.029}],38:[.716,.022,.767,{ic:.035}],39:[.694,-.379,.307,{ic:.07}],40:[.75,.25,.409,{ic:.108}],41:[.75,.25,.409],42:[.75,-.32,.511,{ic:.073}],43:[.557,.057,.767],44:[.121,.194,.307],45:[.251,-.18,.358],46:[.121,0,.307],47:[.716,.215,.778],48:[.665,.021,.511,{ic:.051}],49:[.666,0,.511],50:[.666,.022,.511,{ic:.04}],51:[.666,.022,.511,{ic:.051}],52:[.666,.194,.511],53:[.666,.022,.511,{ic:.056}],54:[.665,.022,.511,{ic:.054}],55:[.666,.022,.511,{ic:.123}],56:[.666,.021,.511,{ic:.042}],57:[.666,.022,.511,{ic:.042}],58:[.431,0,.307],59:[.431,.194,.307],61:[.367,-.133,.767],63:[.716,0,.511,{ic:.04}],64:[.705,.011,.767,{ic:.022}],91:[.75,.25,.307,{ic:.139}],93:[.75,.25,.307,{ic:.052}],94:[.694,-.527,.511,{ic:.017}],95:[-.025,.062,.511,{ic:.043}],126:[.318,-.208,.511,{ic:.06}],305:[.441,.01,.307,{ic:.033}],567:[.442,.204,.332],768:[.697,-.5,0],769:[.697,-.5,0,{ic:.039}],770:[.694,-.527,0,{ic:.017}],771:[.668,-.558,0,{ic:.06}],772:[.589,-.544,0,{ic:.054}],774:[.694,-.515,0,{ic:.062}],775:[.669,-.548,0],776:[.669,-.554,0,{ic:.045}],778:[.716,-.542,0],779:[.697,-.503,0,{ic:.065}],780:[.638,-.502,0,{ic:.029}],989:[.605,.085,.778],8211:[.285,-.248,.511,{ic:.043}],8212:[.285,-.248,1.022,{ic:.016}],8213:[.285,-.248,1.022,{ic:.016}],8215:[-.025,.062,.511,{ic:.043}],8216:[.694,-.379,.307,{ic:.055}],8217:[.694,-.379,.307,{ic:.07}],8220:[.694,-.379,.514,{ic:.092}],8221:[.694,-.379,.514,{ic:.024}],8260:[.716,.215,.778],8463:[.695,.013,.54,{ic:.022}],8710:[.716,0,.833,{sk:.167}],10744:[.716,.215,.778]}})),jr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.italic=void 0;var t=$(),n=Ar();e.italic=(0,t.AddCSS)(n.italic,{47:{f:`I`},989:{c:`\\E008`,f:`A`},8213:{c:`\\2014`},8215:{c:`_`},8260:{c:`/`,f:`I`},8710:{c:`\\394`,f:`I`},10744:{c:`/`,f:`I`}})})),Mr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.largeop=void 0,e.largeop={40:[1.15,.649,.597],41:[1.15,.649,.597],47:[1.15,.649,.811],91:[1.15,.649,.472],92:[1.15,.649,.811],93:[1.15,.649,.472],123:[1.15,.649,.667],125:[1.15,.649,.667],710:[.772,-.565,1],732:[.75,-.611,1],770:[.772,-.565,0],771:[.75,-.611,0],8214:[.602,0,.778],8260:[1.15,.649,.811],8593:[.6,0,.667],8595:[.6,0,.667],8657:[.599,0,.778],8659:[.6,0,.778],8719:[.95,.45,1.278],8720:[.95,.45,1.278],8721:[.95,.45,1.444],8730:[1.15,.65,1,{ic:.02}],8739:[.627,.015,.333],8741:[.627,.015,.556],8747:[1.36,.862,.556,{ic:.388}],8748:[1.36,.862,1.084,{ic:.388}],8749:[1.36,.862,1.592,{ic:.388}],8750:[1.36,.862,.556,{ic:.388}],8896:[.95,.45,1.111],8897:[.95,.45,1.111],8898:[.949,.45,1.111],8899:[.95,.449,1.111],8968:[1.15,.649,.528],8969:[1.15,.649,.528],8970:[1.15,.649,.528],8971:[1.15,.649,.528],9001:[1.15,.649,.611],9002:[1.15,.649,.611],9168:[.602,0,.667],10072:[.627,.015,.333],10216:[1.15,.649,.611],10217:[1.15,.649,.611],10752:[.949,.449,1.511],10753:[.949,.449,1.511],10754:[.949,.449,1.511],10756:[.95,.449,1.111],10758:[.95,.45,1.111],10764:[1.36,.862,2.168,{ic:.388}],12296:[1.15,.649,.611],12297:[1.15,.649,.611]}})),Nr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.largeop=void 0;var t=$(),n=Mr();e.largeop=(0,t.AddCSS)(n.largeop,{8214:{f:`S1`},8260:{c:`/`},8593:{f:`S1`},8595:{f:`S1`},8657:{f:`S1`},8659:{f:`S1`},8739:{f:`S1`},8741:{f:`S1`},9001:{c:`\\27E8`},9002:{c:`\\27E9`},9168:{f:`S1`},10072:{c:`\\2223`,f:`S1`},10764:{c:`\\222C\\222C`},12296:{c:`\\27E8`},12297:{c:`\\27E9`}})})),Pr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.monospace=void 0,e.monospace={32:[0,0,.525],33:[.622,0,.525],34:[.623,-.333,.525],35:[.611,0,.525],36:[.694,.082,.525],37:[.694,.083,.525],38:[.622,.011,.525],39:[.611,-.287,.525],40:[.694,.082,.525],41:[.694,.082,.525],42:[.52,-.09,.525],43:[.531,-.081,.525],44:[.14,.139,.525],45:[.341,-.271,.525],46:[.14,0,.525],47:[.694,.083,.525],58:[.431,0,.525],59:[.431,.139,.525],60:[.557,-.055,.525],61:[.417,-.195,.525],62:[.557,-.055,.525],63:[.617,0,.525],64:[.617,.006,.525],91:[.694,.082,.525],92:[.694,.083,.525],93:[.694,.082,.525],94:[.611,-.46,.525],95:[-.025,.095,.525],96:[.681,-.357,.525],123:[.694,.083,.525],124:[.694,.082,.525],125:[.694,.083,.525],126:[.611,-.466,.525],127:[.612,-.519,.525],160:[0,0,.525],305:[.431,0,.525],567:[.431,.228,.525],697:[.623,-.334,.525],768:[.611,-.485,0],769:[.611,-.485,0],770:[.611,-.46,0],771:[.611,-.466,0],772:[.577,-.5,0],774:[.611,-.504,0],776:[.612,-.519,0],778:[.619,-.499,0],780:[.577,-.449,0],913:[.623,0,.525],914:[.611,0,.525],915:[.611,0,.525],916:[.623,0,.525],917:[.611,0,.525],918:[.611,0,.525],919:[.611,0,.525],920:[.621,.01,.525],921:[.611,0,.525],922:[.611,0,.525],923:[.623,0,.525],924:[.611,0,.525],925:[.611,0,.525],926:[.611,0,.525],927:[.621,.01,.525],928:[.611,0,.525],929:[.611,0,.525],931:[.611,0,.525],932:[.611,0,.525],933:[.622,0,.525],934:[.611,0,.525],935:[.611,0,.525],936:[.611,0,.525],937:[.622,0,.525],8215:[-.025,.095,.525],8242:[.623,-.334,.525],8243:[.623,0,1.05],8244:[.623,0,1.575],8260:[.694,.083,.525],8279:[.623,0,2.1],8710:[.623,0,.525]}})),Fr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.monospace=void 0;var t=$(),n=Pr();e.monospace=(0,t.AddCSS)(n.monospace,{697:{c:`\\2032`},913:{c:`A`},914:{c:`B`},917:{c:`E`},918:{c:`Z`},919:{c:`H`},921:{c:`I`},922:{c:`K`},924:{c:`M`},925:{c:`N`},927:{c:`O`},929:{c:`P`},932:{c:`T`},935:{c:`X`},8215:{c:`_`},8243:{c:`\\2032\\2032`},8244:{c:`\\2032\\2032\\2032`},8260:{c:`/`},8279:{c:`\\2032\\2032\\2032\\2032`},8710:{c:`\\394`}})})),Ir=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.normal=void 0,e.normal={32:[0,0,.25],33:[.716,0,.278],34:[.694,-.379,.5],35:[.694,.194,.833],36:[.75,.056,.5],37:[.75,.056,.833],38:[.716,.022,.778],39:[.694,-.379,.278],40:[.75,.25,.389],41:[.75,.25,.389],42:[.75,-.32,.5],43:[.583,.082,.778],44:[.121,.194,.278],45:[.252,-.179,.333],46:[.12,0,.278],47:[.75,.25,.5],48:[.666,.022,.5],49:[.666,0,.5],50:[.666,0,.5],51:[.665,.022,.5],52:[.677,0,.5],53:[.666,.022,.5],54:[.666,.022,.5],55:[.676,.022,.5],56:[.666,.022,.5],57:[.666,.022,.5],58:[.43,0,.278],59:[.43,.194,.278],60:[.54,.04,.778],61:[.583,.082,.778],62:[.54,.04,.778],63:[.705,0,.472],64:[.705,.011,.778],65:[.716,0,.75],66:[.683,0,.708],67:[.705,.021,.722],68:[.683,0,.764],69:[.68,0,.681],70:[.68,0,.653],71:[.705,.022,.785],72:[.683,0,.75],73:[.683,0,.361],74:[.683,.022,.514],75:[.683,0,.778],76:[.683,0,.625],77:[.683,0,.917],78:[.683,0,.75],79:[.705,.022,.778],80:[.683,0,.681],81:[.705,.193,.778],82:[.683,.022,.736],83:[.705,.022,.556],84:[.677,0,.722],85:[.683,.022,.75],86:[.683,.022,.75],87:[.683,.022,1.028],88:[.683,0,.75],89:[.683,0,.75],90:[.683,0,.611],91:[.75,.25,.278],92:[.75,.25,.5],93:[.75,.25,.278],94:[.694,-.531,.5],95:[-.025,.062,.5],96:[.699,-.505,.5],97:[.448,.011,.5],98:[.694,.011,.556],99:[.448,.011,.444],100:[.694,.011,.556],101:[.448,.011,.444],102:[.705,0,.306,{ic:.066}],103:[.453,.206,.5],104:[.694,0,.556],105:[.669,0,.278],106:[.669,.205,.306],107:[.694,0,.528],108:[.694,0,.278],109:[.442,0,.833],110:[.442,0,.556],111:[.448,.01,.5],112:[.442,.194,.556],113:[.442,.194,.528],114:[.442,0,.392],115:[.448,.011,.394],116:[.615,.01,.389],117:[.442,.011,.556],118:[.431,.011,.528],119:[.431,.011,.722],120:[.431,0,.528],121:[.431,.204,.528],122:[.431,0,.444],123:[.75,.25,.5],124:[.75,.249,.278],125:[.75,.25,.5],126:[.318,-.215,.5],160:[0,0,.25],163:[.714,.011,.769],165:[.683,0,.75],168:[.669,-.554,.5],172:[.356,-.089,.667],174:[.709,.175,.947],175:[.59,-.544,.5],176:[.715,-.542,.5],177:[.666,0,.778],180:[.699,-.505,.5],183:[.31,-.19,.278],215:[.491,-.009,.778],240:[.749,.021,.556],247:[.537,.036,.778],305:[.442,0,.278,{sk:.0278}],567:[.442,.205,.306,{sk:.0833}],697:[.56,-.043,.275],710:[.694,-.531,.5],711:[.644,-.513,.5],713:[.59,-.544,.5],714:[.699,-.505,.5],715:[.699,-.505,.5],728:[.694,-.515,.5],729:[.669,-.549,.5],730:[.715,-.542,.5],732:[.668,-.565,.5],768:[.699,-.505,0],769:[.699,-.505,0],770:[.694,-.531,0],771:[.668,-.565,0],772:[.59,-.544,0],774:[.694,-.515,0],775:[.669,-.549,0],776:[.669,-.554,0],778:[.715,-.542,0],779:[.701,-.51,0],780:[.644,-.513,0],824:[.716,.215,0],913:[.716,0,.75],914:[.683,0,.708],915:[.68,0,.625],916:[.716,0,.833],917:[.68,0,.681],918:[.683,0,.611],919:[.683,0,.75],920:[.705,.022,.778],921:[.683,0,.361],922:[.683,0,.778],923:[.716,0,.694],924:[.683,0,.917],925:[.683,0,.75],926:[.677,0,.667],927:[.705,.022,.778],928:[.68,0,.75],929:[.683,0,.681],931:[.683,0,.722],932:[.677,0,.722],933:[.705,0,.778],934:[.683,0,.722],935:[.683,0,.75],936:[.683,0,.778],937:[.704,0,.722],8192:[0,0,.5],8193:[0,0,1],8194:[0,0,.5],8195:[0,0,1],8196:[0,0,.333],8197:[0,0,.25],8198:[0,0,.167],8201:[0,0,.167],8202:[0,0,.1],8203:[0,0,0],8204:[0,0,0],8211:[.285,-.248,.5],8212:[.285,-.248,1],8213:[.285,-.248,1],8214:[.75,.25,.5],8215:[-.025,.062,.5],8216:[.694,-.379,.278],8217:[.694,-.379,.278],8220:[.694,-.379,.5],8221:[.694,-.379,.5],8224:[.705,.216,.444],8225:[.705,.205,.444],8226:[.444,-.055,.5],8230:[.12,0,1.172],8242:[.56,-.043,.275],8243:[.56,0,.55],8244:[.56,0,.825],8245:[.56,-.043,.275],8246:[.56,0,.55],8247:[.56,0,.825],8254:[.59,-.544,.5],8260:[.75,.25,.5],8279:[.56,0,1.1],8288:[0,0,0],8289:[0,0,0],8290:[0,0,0],8291:[0,0,0],8292:[0,0,0],8407:[.714,-.516,.5],8450:[.702,.019,.722],8459:[.717,.036,.969,{ic:.272,sk:.333}],8460:[.666,.133,.72],8461:[.683,0,.778],8462:[.694,.011,.576,{sk:-.0278}],8463:[.695,.013,.54,{ic:.022}],8464:[.717,.017,.809,{ic:.137,sk:.333}],8465:[.686,.026,.554],8466:[.717,.017,.874,{ic:.161,sk:.306}],8467:[.705,.02,.417,{sk:.111}],8469:[.683,.02,.722],8472:[.453,.216,.636,{sk:.111}],8473:[.683,0,.611],8474:[.701,.181,.778],8475:[.717,.017,.85,{ic:.037,sk:.194}],8476:[.686,.026,.828],8477:[.683,0,.722],8484:[.683,0,.667],8486:[.704,0,.722],8487:[.684,.022,.722],8488:[.729,.139,.602],8492:[.708,.028,.908,{ic:.02,sk:.194}],8493:[.685,.024,.613],8496:[.707,.008,.562,{ic:.156,sk:.139}],8497:[.735,.036,.895,{ic:.095,sk:.222}],8498:[.695,0,.556],8499:[.721,.05,1.08,{ic:.136,sk:.444}],8501:[.694,0,.611],8502:[.763,.021,.667,{ic:.02}],8503:[.764,.043,.444],8504:[.764,.043,.667],8513:[.705,.023,.639],8592:[.511,.011,1],8593:[.694,.193,.5],8594:[.511,.011,1],8595:[.694,.194,.5],8596:[.511,.011,1],8597:[.772,.272,.5],8598:[.72,.195,1],8599:[.72,.195,1],8600:[.695,.22,1],8601:[.695,.22,1],8602:[.437,-.06,1],8603:[.437,-.06,1],8606:[.417,-.083,1],8608:[.417,-.083,1],8610:[.417,-.083,1.111],8611:[.417,-.083,1.111],8614:[.511,.011,1],8617:[.511,.011,1.126],8618:[.511,.011,1.126],8619:[.575,.041,1],8620:[.575,.041,1],8621:[.417,-.083,1.389],8622:[.437,-.06,1],8624:[.722,0,.5],8625:[.722,0,.5],8630:[.461,0,1],8631:[.46,0,1],8634:[.65,.083,.778],8635:[.65,.083,.778],8636:[.511,-.23,1],8637:[.27,.011,1],8638:[.694,.194,.417],8639:[.694,.194,.417],8640:[.511,-.23,1],8641:[.27,.011,1],8642:[.694,.194,.417],8643:[.694,.194,.417],8644:[.667,0,1],8646:[.667,0,1],8647:[.583,.083,1],8648:[.694,.193,.833],8649:[.583,.083,1],8650:[.694,.194,.833],8651:[.514,.014,1],8652:[.671,.011,1],8653:[.534,.035,1],8654:[.534,.037,1],8655:[.534,.035,1],8656:[.525,.024,1],8657:[.694,.194,.611],8658:[.525,.024,1],8659:[.694,.194,.611],8660:[.526,.025,1],8661:[.772,.272,.611],8666:[.611,.111,1],8667:[.611,.111,1],8669:[.417,-.083,1],8672:[.437,-.064,1.334],8674:[.437,-.064,1.334],8704:[.694,.022,.556],8705:[.846,.021,.5],8706:[.715,.022,.531,{ic:.035,sk:.0833}],8707:[.694,0,.556],8708:[.716,.215,.556],8709:[.772,.078,.5],8710:[.716,0,.833],8711:[.683,.033,.833],8712:[.54,.04,.667],8713:[.716,.215,.667],8715:[.54,.04,.667],8716:[.716,.215,.667],8717:[.44,0,.429,{ic:.027}],8719:[.75,.25,.944],8720:[.75,.25,.944],8721:[.75,.25,1.056],8722:[.583,.082,.778],8723:[.5,.166,.778],8724:[.766,.093,.778],8725:[.75,.25,.5],8726:[.75,.25,.5],8727:[.465,-.035,.5],8728:[.444,-.055,.5],8729:[.444,-.055,.5],8730:[.8,.2,.833,{ic:.02}],8733:[.442,.011,.778],8734:[.442,.011,1],8736:[.694,0,.722],8737:[.714,.02,.722],8738:[.551,.051,.722],8739:[.75,.249,.278],8740:[.75,.252,.278,{ic:.019}],8741:[.75,.25,.5],8742:[.75,.25,.5,{ic:.018}],8743:[.598,.022,.667],8744:[.598,.022,.667],8745:[.598,.022,.667],8746:[.598,.022,.667],8747:[.716,.216,.417,{ic:.055}],8748:[.805,.306,.819,{ic:.138}],8749:[.805,.306,1.166,{ic:.138}],8750:[.805,.306,.472,{ic:.138}],8756:[.471,.082,.667],8757:[.471,.082,.667],8764:[.367,-.133,.778],8765:[.367,-.133,.778],8768:[.583,.083,.278],8769:[.467,-.032,.778],8770:[.463,-.034,.778],8771:[.464,-.036,.778],8772:[.716,.215,.778],8773:[.589,-.022,.778],8775:[.652,.155,.778],8776:[.483,-.055,.778],8777:[.716,.215,.778],8778:[.579,.039,.778],8781:[.484,-.016,.778],8782:[.492,-.008,.778],8783:[.492,-.133,.778],8784:[.67,-.133,.778],8785:[.609,.108,.778],8786:[.601,.101,.778],8787:[.601,.102,.778],8790:[.367,-.133,.778],8791:[.721,-.133,.778],8796:[.859,-.133,.778],8800:[.716,.215,.778],8801:[.464,-.036,.778],8802:[.716,.215,.778],8804:[.636,.138,.778],8805:[.636,.138,.778],8806:[.753,.175,.778],8807:[.753,.175,.778],8808:[.752,.286,.778],8809:[.752,.286,.778],8810:[.568,.067,1],8811:[.567,.067,1],8812:[.75,.25,.5],8813:[.716,.215,.778],8814:[.708,.209,.778],8815:[.708,.209,.778],8816:[.801,.303,.778],8817:[.801,.303,.778],8818:[.732,.228,.778],8819:[.732,.228,.778],8820:[.732,.228,.778],8821:[.732,.228,.778],8822:[.681,.253,.778],8823:[.681,.253,.778],8824:[.716,.253,.778],8825:[.716,.253,.778],8826:[.539,.041,.778],8827:[.539,.041,.778],8828:[.58,.153,.778],8829:[.58,.154,.778],8830:[.732,.228,.778],8831:[.732,.228,.778],8832:[.705,.208,.778],8833:[.705,.208,.778],8834:[.54,.04,.778],8835:[.54,.04,.778],8836:[.716,.215,.778],8837:[.716,.215,.778],8838:[.636,.138,.778],8839:[.636,.138,.778],8840:[.801,.303,.778],8841:[.801,.303,.778],8842:[.635,.241,.778],8843:[.635,.241,.778],8846:[.598,.022,.667],8847:[.539,.041,.778],8848:[.539,.041,.778],8849:[.636,.138,.778],8850:[.636,.138,.778],8851:[.598,0,.667],8852:[.598,0,.667],8853:[.583,.083,.778],8854:[.583,.083,.778],8855:[.583,.083,.778],8856:[.583,.083,.778],8857:[.583,.083,.778],8858:[.582,.082,.778],8859:[.582,.082,.778],8861:[.582,.082,.778],8862:[.689,0,.778],8863:[.689,0,.778],8864:[.689,0,.778],8865:[.689,0,.778],8866:[.694,0,.611],8867:[.694,0,.611],8868:[.668,0,.778],8869:[.668,0,.778],8872:[.75,.249,.867],8873:[.694,0,.722],8874:[.694,0,.889],8876:[.695,0,.611],8877:[.695,0,.611],8878:[.695,0,.722],8879:[.695,0,.722],8882:[.539,.041,.778],8883:[.539,.041,.778],8884:[.636,.138,.778],8885:[.636,.138,.778],8888:[.408,-.092,1.111],8890:[.431,.212,.556],8891:[.716,0,.611],8892:[.716,0,.611],8896:[.75,.249,.833],8897:[.75,.249,.833],8898:[.75,.249,.833],8899:[.75,.249,.833],8900:[.488,-.012,.5],8901:[.31,-.19,.278],8902:[.486,-.016,.5],8903:[.545,.044,.778],8904:[.505,.005,.9],8905:[.492,-.008,.778],8906:[.492,-.008,.778],8907:[.694,.022,.778],8908:[.694,.022,.778],8909:[.464,-.036,.778],8910:[.578,.021,.76],8911:[.578,.022,.76],8912:[.54,.04,.778],8913:[.54,.04,.778],8914:[.598,.022,.667],8915:[.598,.022,.667],8916:[.736,.022,.667],8918:[.541,.041,.778],8919:[.541,.041,.778],8920:[.568,.067,1.333],8921:[.568,.067,1.333],8922:[.886,.386,.778],8923:[.886,.386,.778],8926:[.734,0,.778],8927:[.734,0,.778],8928:[.801,.303,.778],8929:[.801,.303,.778],8930:[.716,.215,.778],8931:[.716,.215,.778],8934:[.73,.359,.778],8935:[.73,.359,.778],8936:[.73,.359,.778],8937:[.73,.359,.778],8938:[.706,.208,.778],8939:[.706,.208,.778],8940:[.802,.303,.778],8941:[.801,.303,.778],8942:[1.3,.03,.278],8943:[.31,-.19,1.172],8945:[1.52,-.1,1.282],8965:[.716,0,.611],8966:[.813,.097,.611],8968:[.75,.25,.444],8969:[.75,.25,.444],8970:[.75,.25,.444],8971:[.75,.25,.444],8988:[.694,-.306,.5],8989:[.694,-.306,.5],8990:[.366,.022,.5],8991:[.366,.022,.5],8994:[.388,-.122,1],8995:[.378,-.134,1],9001:[.75,.25,.389],9002:[.75,.25,.389],9136:[.744,.244,.412],9137:[.744,.244,.412],9168:[.602,0,.667],9416:[.709,.175,.902],9484:[.694,-.306,.5],9488:[.694,-.306,.5],9492:[.366,.022,.5],9496:[.366,.022,.5],9585:[.694,.195,.889],9586:[.694,.195,.889],9632:[.689,0,.778],9633:[.689,0,.778],9642:[.689,0,.778],9650:[.575,.02,.722],9651:[.716,0,.889],9652:[.575,.02,.722],9653:[.716,0,.889],9654:[.539,.041,.778],9656:[.539,.041,.778],9657:[.505,.005,.5],9660:[.576,.019,.722],9661:[.5,.215,.889],9662:[.576,.019,.722],9663:[.5,.215,.889],9664:[.539,.041,.778],9666:[.539,.041,.778],9667:[.505,.005,.5],9674:[.716,.132,.667],9711:[.715,.215,1],9723:[.689,0,.778],9724:[.689,0,.778],9733:[.694,.111,.944],9824:[.727,.13,.778],9825:[.716,.033,.778],9826:[.727,.162,.778],9827:[.726,.13,.778],9837:[.75,.022,.389],9838:[.734,.223,.389],9839:[.723,.223,.389],10003:[.706,.034,.833],10016:[.716,.022,.833],10072:[.75,.249,.278],10216:[.75,.25,.389],10217:[.75,.25,.389],10222:[.744,.244,.412],10223:[.744,.244,.412],10229:[.511,.011,1.609],10230:[.511,.011,1.638],10231:[.511,.011,1.859],10232:[.525,.024,1.609],10233:[.525,.024,1.638],10234:[.525,.024,1.858],10236:[.511,.011,1.638],10731:[.716,.132,.667],10744:[.716,.215,.778],10752:[.75,.25,1.111],10753:[.75,.25,1.111],10754:[.75,.25,1.111],10756:[.75,.249,.833],10758:[.75,.249,.833],10764:[.805,.306,1.638,{ic:.138}],10799:[.491,-.009,.778],10815:[.683,0,.75],10846:[.813,.097,.611],10877:[.636,.138,.778],10878:[.636,.138,.778],10885:[.762,.29,.778],10886:[.762,.29,.778],10887:[.635,.241,.778],10888:[.635,.241,.778],10889:[.761,.387,.778],10890:[.761,.387,.778],10891:[1.003,.463,.778],10892:[1.003,.463,.778],10901:[.636,.138,.778],10902:[.636,.138,.778],10927:[.636,.138,.778],10928:[.636,.138,.778],10933:[.752,.286,.778],10934:[.752,.286,.778],10935:[.761,.294,.778],10936:[.761,.294,.778],10937:[.761,.337,.778],10938:[.761,.337,.778],10949:[.753,.215,.778],10950:[.753,.215,.778],10955:[.783,.385,.778],10956:[.783,.385,.778],12296:[.75,.25,.389],12297:[.75,.25,.389],57350:[.43,.023,.222,{ic:.018}],57351:[.431,.024,.389,{ic:.018}],57352:[.605,.085,.778],57353:[.434,.006,.667,{ic:.067}],57356:[.752,.284,.778],57357:[.752,.284,.778],57358:[.919,.421,.778],57359:[.801,.303,.778],57360:[.801,.303,.778],57361:[.919,.421,.778],57366:[.828,.33,.778],57367:[.752,.332,.778],57368:[.828,.33,.778],57369:[.752,.333,.778],57370:[.634,.255,.778],57371:[.634,.254,.778],119808:[.698,0,.869],119809:[.686,0,.818],119810:[.697,.011,.831],119811:[.686,0,.882],119812:[.68,0,.756],119813:[.68,0,.724],119814:[.697,.01,.904],119815:[.686,0,.9],119816:[.686,0,.436],119817:[.686,.011,.594],119818:[.686,0,.901],119819:[.686,0,.692],119820:[.686,0,1.092],119821:[.686,0,.9],119822:[.696,.01,.864],119823:[.686,0,.786],119824:[.696,.193,.864],119825:[.686,.011,.862],119826:[.697,.011,.639],119827:[.675,0,.8],119828:[.686,.011,.885],119829:[.686,.007,.869],119830:[.686,.007,1.189],119831:[.686,0,.869],119832:[.686,0,.869],119833:[.686,0,.703],119834:[.453,.006,.559],119835:[.694,.006,.639],119836:[.453,.006,.511],119837:[.694,.006,.639],119838:[.452,.006,.527],119839:[.7,0,.351,{ic:.101}],119840:[.455,.201,.575],119841:[.694,0,.639],119842:[.695,0,.319],119843:[.695,.2,.351],119844:[.694,0,.607],119845:[.694,0,.319],119846:[.45,0,.958],119847:[.45,0,.639],119848:[.452,.005,.575],119849:[.45,.194,.639],119850:[.45,.194,.607],119851:[.45,0,.474],119852:[.453,.006,.454],119853:[.635,.005,.447],119854:[.45,.006,.639],119855:[.444,0,.607],119856:[.444,0,.831],119857:[.444,0,.607],119858:[.444,.2,.607],119859:[.444,0,.511],119860:[.716,0,.75,{sk:.139}],119861:[.683,0,.759,{sk:.0833}],119862:[.705,.022,.715,{ic:.045,sk:.0833}],119863:[.683,0,.828,{sk:.0556}],119864:[.68,0,.738,{ic:.026,sk:.0833}],119865:[.68,0,.643,{ic:.106,sk:.0833}],119866:[.705,.022,.786,{sk:.0833}],119867:[.683,0,.831,{ic:.057,sk:.0556}],119868:[.683,0,.44,{ic:.064,sk:.111}],119869:[.683,.022,.555,{ic:.078,sk:.167}],119870:[.683,0,.849,{ic:.04,sk:.0556}],119871:[.683,0,.681,{sk:.0278}],119872:[.683,0,.97,{ic:.081,sk:.0833}],119873:[.683,0,.803,{ic:.085,sk:.0833}],119874:[.704,.022,.763,{sk:.0833}],119875:[.683,0,.642,{ic:.109,sk:.0833}],119876:[.704,.194,.791,{sk:.0833}],119877:[.683,.021,.759,{sk:.0833}],119878:[.705,.022,.613,{ic:.032,sk:.0833}],119879:[.677,0,.584,{ic:.12,sk:.0833}],119880:[.683,.022,.683,{ic:.084,sk:.0278}],119881:[.683,.022,.583,{ic:.186}],119882:[.683,.022,.944,{ic:.104}],119883:[.683,0,.828,{ic:.024,sk:.0833}],119884:[.683,0,.581,{ic:.182}],119885:[.683,0,.683,{ic:.04,sk:.0833}],119886:[.441,.01,.529],119887:[.694,.011,.429],119888:[.442,.011,.433,{sk:.0556}],119889:[.694,.01,.52,{sk:.167}],119890:[.442,.011,.466,{sk:.0556}],119891:[.705,.205,.49,{ic:.06,sk:.167}],119892:[.442,.205,.477,{sk:.0278}],119894:[.661,.011,.345],119895:[.661,.204,.412],119896:[.694,.011,.521],119897:[.694,.011,.298,{sk:.0833}],119898:[.442,.011,.878],119899:[.442,.011,.6],119900:[.441,.011,.485,{sk:.0556}],119901:[.442,.194,.503,{sk:.0833}],119902:[.442,.194,.446,{ic:.014,sk:.0833}],119903:[.442,.011,.451,{sk:.0556}],119904:[.442,.01,.469,{sk:.0556}],119905:[.626,.011,.361,{sk:.0833}],119906:[.442,.011,.572,{sk:.0278}],119907:[.443,.011,.485,{sk:.0278}],119908:[.443,.011,.716,{sk:.0833}],119909:[.442,.011,.572,{sk:.0278}],119910:[.442,.205,.49,{sk:.0556}],119911:[.442,.011,.465,{sk:.0556}],119912:[.711,0,.869,{sk:.16}],119913:[.686,0,.866,{sk:.0958}],119914:[.703,.017,.817,{ic:.038,sk:.0958}],119915:[.686,0,.938,{sk:.0639}],119916:[.68,0,.81,{ic:.015,sk:.0958}],119917:[.68,0,.689,{ic:.12,sk:.0958}],119918:[.703,.016,.887,{sk:.0958}],119919:[.686,0,.982,{ic:.045,sk:.0639}],119920:[.686,0,.511,{ic:.062,sk:.128}],119921:[.686,.017,.631,{ic:.063,sk:.192}],119922:[.686,0,.971,{ic:.032,sk:.0639}],119923:[.686,0,.756,{sk:.0319}],119924:[.686,0,1.142,{ic:.077,sk:.0958}],119925:[.686,0,.95,{ic:.077,sk:.0958}],119926:[.703,.017,.837,{sk:.0958}],119927:[.686,0,.723,{ic:.124,sk:.0958}],119928:[.703,.194,.869,{sk:.0958}],119929:[.686,.017,.872,{sk:.0958}],119930:[.703,.017,.693,{ic:.021,sk:.0958}],119931:[.675,0,.637,{ic:.135,sk:.0958}],119932:[.686,.016,.8,{ic:.077,sk:.0319}],119933:[.686,.016,.678,{ic:.208}],119934:[.686,.017,1.093,{ic:.114}],119935:[.686,0,.947,{sk:.0958}],119936:[.686,0,.675,{ic:.201}],119937:[.686,0,.773,{ic:.032,sk:.0958}],119938:[.452,.008,.633],119939:[.694,.008,.521],119940:[.451,.008,.513,{sk:.0639}],119941:[.694,.008,.61,{sk:.192}],119942:[.452,.008,.554,{sk:.0639}],119943:[.701,.201,.568,{ic:.056,sk:.192}],119944:[.452,.202,.545,{sk:.0319}],119945:[.694,.008,.668,{sk:-.0319}],119946:[.694,.008,.405],119947:[.694,.202,.471],119948:[.694,.008,.604],119949:[.694,.008,.348,{sk:.0958}],119950:[.452,.008,1.032],119951:[.452,.008,.713],119952:[.452,.008,.585,{sk:.0639}],119953:[.452,.194,.601,{sk:.0958}],119954:[.452,.194,.542,{sk:.0958}],119955:[.452,.008,.529,{sk:.0639}],119956:[.451,.008,.531,{sk:.0639}],119957:[.643,.007,.415,{sk:.0958}],119958:[.452,.008,.681,{sk:.0319}],119959:[.453,.008,.567,{sk:.0319}],119960:[.453,.008,.831,{sk:.0958}],119961:[.452,.008,.659,{sk:.0319}],119962:[.452,.202,.59,{sk:.0639}],119963:[.452,.008,.555,{sk:.0639}],119964:[.717,.008,.803,{ic:.213,sk:.389}],119966:[.728,.026,.666,{ic:.153,sk:.278}],119967:[.708,.031,.774,{ic:.081,sk:.111}],119970:[.717,.037,.61,{ic:.128,sk:.25}],119973:[.717,.314,1.052,{ic:.081,sk:.417}],119974:[.717,.037,.914,{ic:.29,sk:.361}],119977:[.726,.036,.902,{ic:.306,sk:.389}],119978:[.707,.008,.738,{ic:.067,sk:.167}],119979:[.716,.037,1.013,{ic:.018,sk:.222}],119980:[.717,.017,.883,{sk:.278}],119982:[.708,.036,.868,{ic:.148,sk:.333}],119983:[.735,.037,.747,{ic:.249,sk:.222}],119984:[.717,.017,.8,{ic:.16,sk:.25}],119985:[.717,.017,.622,{ic:.228,sk:.222}],119986:[.717,.017,.805,{ic:.221,sk:.25}],119987:[.717,.017,.944,{ic:.187,sk:.278}],119988:[.716,.017,.71,{ic:.249,sk:.194}],119989:[.717,.016,.821,{ic:.211,sk:.306}],120068:[.696,.026,.718],120069:[.691,.027,.884],120071:[.685,.027,.832],120072:[.685,.024,.663],120073:[.686,.153,.611],120074:[.69,.026,.785],120077:[.686,.139,.552],120078:[.68,.027,.668,{ic:.014}],120079:[.686,.026,.666],120080:[.692,.027,1.05],120081:[.686,.025,.832],120082:[.729,.027,.827],120083:[.692,.218,.828],120084:[.729,.069,.827],120086:[.692,.027,.829],120087:[.701,.027,.669],120088:[.697,.027,.646,{ic:.019}],120089:[.686,.026,.831],120090:[.686,.027,1.046],120091:[.688,.027,.719],120092:[.686,.218,.833],120094:[.47,.035,.5],120095:[.685,.031,.513],120096:[.466,.029,.389],120097:[.609,.033,.499],120098:[.467,.03,.401],120099:[.681,.221,.326],120100:[.47,.209,.504],120101:[.688,.205,.521],120102:[.673,.02,.279],120103:[.672,.208,.281],120104:[.689,.025,.389],120105:[.685,.02,.28],120106:[.475,.026,.767],120107:[.475,.022,.527],120108:[.48,.028,.489],120109:[.541,.212,.5],120110:[.479,.219,.489],120111:[.474,.021,.389],120112:[.478,.029,.443],120113:[.64,.02,.333,{ic:.015}],120114:[.474,.023,.517],120115:[.53,.028,.512],120116:[.532,.028,.774],120117:[.472,.188,.389],120118:[.528,.218,.499],120119:[.471,.214,.391],120120:[.701,0,.722],120121:[.683,0,.667],120123:[.683,0,.722],120124:[.683,0,.667],120125:[.683,0,.611],120126:[.702,.019,.778],120128:[.683,0,.389],120129:[.683,.077,.5],120130:[.683,0,.778],120131:[.683,0,.667],120132:[.683,0,.944],120134:[.701,.019,.778],120138:[.702,.012,.556],120139:[.683,0,.667],120140:[.683,.019,.722],120141:[.683,.02,.722],120142:[.683,.019,1],120143:[.683,0,.722],120144:[.683,0,.722],120172:[.686,.031,.847],120173:[.684,.031,1.044],120174:[.676,.032,.723],120175:[.683,.029,.982],120176:[.686,.029,.783],120177:[.684,.146,.722],120178:[.687,.029,.927],120179:[.683,.126,.851],120180:[.681,.025,.655],120181:[.68,.141,.652],120182:[.681,.026,.789,{ic:.017}],120183:[.683,.028,.786],120184:[.683,.032,1.239],120185:[.679,.03,.983],120186:[.726,.03,.976],120187:[.688,.223,.977],120188:[.726,.083,.976],120189:[.688,.028,.978],120190:[.685,.031,.978],120191:[.686,.03,.79,{ic:.012}],120192:[.688,.039,.851,{ic:.02}],120193:[.685,.029,.982],120194:[.683,.03,1.235],120195:[.681,.035,.849],120196:[.688,.214,.984],120197:[.677,.148,.711],120198:[.472,.032,.603],120199:[.69,.032,.59],120200:[.473,.026,.464],120201:[.632,.028,.589],120202:[.471,.027,.472],120203:[.687,.222,.388],120204:[.472,.208,.595],120205:[.687,.207,.615],120206:[.686,.025,.331],120207:[.682,.203,.332],120208:[.682,.025,.464],120209:[.681,.024,.337],120210:[.476,.031,.921],120211:[.473,.028,.654],120212:[.482,.034,.609],120213:[.557,.207,.604],120214:[.485,.211,.596],120215:[.472,.026,.46],120216:[.479,.034,.523],120217:[.648,.027,.393,{ic:.014}],120218:[.472,.032,.589,{ic:.014}],120219:[.546,.027,.604],120220:[.549,.032,.918],120221:[.471,.188,.459],120222:[.557,.221,.589],120223:[.471,.214,.461],120224:[.694,0,.667],120225:[.694,0,.667],120226:[.705,.011,.639],120227:[.694,0,.722],120228:[.691,0,.597],120229:[.691,0,.569],120230:[.704,.011,.667],120231:[.694,0,.708],120232:[.694,0,.278],120233:[.694,.022,.472],120234:[.694,0,.694],120235:[.694,0,.542],120236:[.694,0,.875],120237:[.694,0,.708],120238:[.715,.022,.736],120239:[.694,0,.639],120240:[.715,.125,.736],120241:[.694,0,.646],120242:[.716,.022,.556],120243:[.688,0,.681],120244:[.694,.022,.688],120245:[.694,0,.667],120246:[.694,0,.944],120247:[.694,0,.667],120248:[.694,0,.667],120249:[.694,0,.611],120250:[.46,.01,.481],120251:[.694,.011,.517],120252:[.46,.01,.444],120253:[.694,.01,.517],120254:[.461,.01,.444],120255:[.705,0,.306,{ic:.041}],120256:[.455,.206,.5],120257:[.694,0,.517],120258:[.68,0,.239],120259:[.68,.205,.267],120260:[.694,0,.489],120261:[.694,0,.239],120262:[.455,0,.794],120263:[.455,0,.517],120264:[.46,.01,.5],120265:[.455,.194,.517],120266:[.455,.194,.517],120267:[.455,0,.342],120268:[.46,.01,.383],120269:[.571,.01,.361],120270:[.444,.01,.517],120271:[.444,0,.461],120272:[.444,0,.683],120273:[.444,0,.461],120274:[.444,.204,.461],120275:[.444,0,.435],120276:[.694,0,.733],120277:[.694,0,.733],120278:[.704,.011,.703],120279:[.694,0,.794],120280:[.691,0,.642],120281:[.691,0,.611],120282:[.705,.011,.733],120283:[.694,0,.794],120284:[.694,0,.331],120285:[.694,.022,.519],120286:[.694,0,.764],120287:[.694,0,.581],120288:[.694,0,.978],120289:[.694,0,.794],120290:[.716,.022,.794],120291:[.694,0,.703],120292:[.716,.106,.794],120293:[.694,0,.703],120294:[.716,.022,.611],120295:[.688,0,.733],120296:[.694,.022,.764],120297:[.694,0,.733],120298:[.694,0,1.039],120299:[.694,0,.733],120300:[.694,0,.733],120301:[.694,0,.672],120302:[.475,.011,.525],120303:[.694,.01,.561],120304:[.475,.011,.489],120305:[.694,.011,.561],120306:[.474,.01,.511],120307:[.705,0,.336,{ic:.045}],120308:[.469,.206,.55],120309:[.694,0,.561],120310:[.695,0,.256],120311:[.695,.205,.286],120312:[.694,0,.531],120313:[.694,0,.256],120314:[.469,0,.867],120315:[.468,0,.561],120316:[.474,.011,.55],120317:[.469,.194,.561],120318:[.469,.194,.561],120319:[.469,0,.372],120320:[.474,.01,.422],120321:[.589,.01,.404],120322:[.458,.011,.561],120323:[.458,0,.5],120324:[.458,0,.744],120325:[.458,0,.5],120326:[.458,.205,.5],120327:[.458,0,.476],120328:[.694,0,.667],120329:[.694,0,.667,{ic:.029}],120330:[.705,.01,.639,{ic:.08}],120331:[.694,0,.722,{ic:.025}],120332:[.691,0,.597,{ic:.091}],120333:[.691,0,.569,{ic:.104}],120334:[.705,.011,.667,{ic:.063}],120335:[.694,0,.708,{ic:.06}],120336:[.694,0,.278,{ic:.06}],120337:[.694,.022,.472,{ic:.063}],120338:[.694,0,.694,{ic:.091}],120339:[.694,0,.542],120340:[.694,0,.875,{ic:.054}],120341:[.694,0,.708,{ic:.058}],120342:[.716,.022,.736,{ic:.027}],120343:[.694,0,.639,{ic:.051}],120344:[.716,.125,.736,{ic:.027}],120345:[.694,0,.646,{ic:.052}],120346:[.716,.022,.556,{ic:.053}],120347:[.688,0,.681,{ic:.109}],120348:[.694,.022,.688,{ic:.059}],120349:[.694,0,.667,{ic:.132}],120350:[.694,0,.944,{ic:.132}],120351:[.694,0,.667,{ic:.091}],120352:[.694,0,.667,{ic:.143}],120353:[.694,0,.611,{ic:.091}],120354:[.461,.01,.481],120355:[.694,.011,.517,{ic:.022}],120356:[.46,.011,.444,{ic:.055}],120357:[.694,.01,.517,{ic:.071}],120358:[.46,.011,.444,{ic:.028}],120359:[.705,0,.306,{ic:.188}],120360:[.455,.206,.5,{ic:.068}],120361:[.694,0,.517],120362:[.68,0,.239,{ic:.076}],120363:[.68,.204,.267,{ic:.069}],120364:[.694,0,.489,{ic:.054}],120365:[.694,0,.239,{ic:.072}],120366:[.455,0,.794],120367:[.454,0,.517],120368:[.461,.011,.5,{ic:.023}],120369:[.455,.194,.517,{ic:.021}],120370:[.455,.194,.517,{ic:.021}],120371:[.455,0,.342,{ic:.082}],120372:[.461,.011,.383,{ic:.053}],120373:[.571,.011,.361,{ic:.049}],120374:[.444,.01,.517,{ic:.02}],120375:[.444,0,.461,{ic:.079}],120376:[.444,0,.683,{ic:.079}],120377:[.444,0,.461,{ic:.076}],120378:[.444,.205,.461,{ic:.079}],120379:[.444,0,.435,{ic:.059}],120432:[.623,0,.525],120433:[.611,0,.525],120434:[.622,.011,.525],120435:[.611,0,.525],120436:[.611,0,.525],120437:[.611,0,.525],120438:[.622,.011,.525],120439:[.611,0,.525],120440:[.611,0,.525],120441:[.611,.011,.525],120442:[.611,0,.525],120443:[.611,0,.525],120444:[.611,0,.525],120445:[.611,0,.525],120446:[.621,.01,.525],120447:[.611,0,.525],120448:[.621,.138,.525],120449:[.611,.011,.525],120450:[.622,.011,.525],120451:[.611,0,.525],120452:[.611,.011,.525],120453:[.611,.007,.525],120454:[.611,.007,.525],120455:[.611,0,.525],120456:[.611,0,.525],120457:[.611,0,.525],120458:[.439,.006,.525],120459:[.611,.006,.525],120460:[.44,.006,.525],120461:[.611,.006,.525],120462:[.44,.006,.525],120463:[.617,0,.525],120464:[.442,.229,.525],120465:[.611,0,.525],120466:[.612,0,.525],120467:[.612,.228,.525],120468:[.611,0,.525],120469:[.611,0,.525],120470:[.436,0,.525,{ic:.011}],120471:[.436,0,.525],120472:[.44,.006,.525],120473:[.437,.221,.525],120474:[.437,.221,.525,{ic:.02}],120475:[.437,0,.525],120476:[.44,.006,.525],120477:[.554,.006,.525],120478:[.431,.005,.525],120479:[.431,0,.525],120480:[.431,0,.525],120481:[.431,0,.525],120482:[.431,.228,.525],120483:[.431,0,.525],120488:[.698,0,.869],120489:[.686,0,.818],120490:[.68,0,.692],120491:[.698,0,.958],120492:[.68,0,.756],120493:[.686,0,.703],120494:[.686,0,.9],120495:[.696,.01,.894],120496:[.686,0,.436],120497:[.686,0,.901],120498:[.698,0,.806],120499:[.686,0,1.092],120500:[.686,0,.9],120501:[.675,0,.767],120502:[.696,.01,.864],120503:[.68,0,.9],120504:[.686,0,.786],120506:[.686,0,.831],120507:[.675,0,.8],120508:[.697,0,.894],120509:[.686,0,.831],120510:[.686,0,.869],120511:[.686,0,.894],120512:[.696,0,.831],120513:[.686,.024,.958],120546:[.716,0,.75,{sk:.139}],120547:[.683,0,.759,{sk:.0833}],120548:[.68,0,.615,{ic:.106,sk:.0833}],120549:[.716,0,.833,{sk:.167}],120550:[.68,0,.738,{ic:.026,sk:.0833}],120551:[.683,0,.683,{ic:.04,sk:.0833}],120552:[.683,0,.831,{ic:.057,sk:.0556}],120553:[.704,.022,.763,{sk:.0833}],120554:[.683,0,.44,{ic:.064,sk:.111}],120555:[.683,0,.849,{ic:.04,sk:.0556}],120556:[.716,0,.694,{sk:.167}],120557:[.683,0,.97,{ic:.081,sk:.0833}],120558:[.683,0,.803,{ic:.085,sk:.0833}],120559:[.677,0,.742,{ic:.035,sk:.0833}],120560:[.704,.022,.763,{sk:.0833}],120561:[.68,0,.831,{ic:.056,sk:.0556}],120562:[.683,0,.642,{ic:.109,sk:.0833}],120564:[.683,0,.78,{ic:.026,sk:.0833}],120565:[.677,0,.584,{ic:.12,sk:.0833}],120566:[.705,0,.583,{ic:.117,sk:.0556}],120567:[.683,0,.667,{sk:.0833}],120568:[.683,0,.828,{ic:.024,sk:.0833}],120569:[.683,0,.612,{ic:.08,sk:.0556}],120570:[.704,0,.772,{ic:.014,sk:.0833}],120572:[.442,.011,.64,{sk:.0278}],120573:[.705,.194,.566,{sk:.0833}],120574:[.441,.216,.518,{ic:.025}],120575:[.717,.01,.444,{sk:.0556}],120576:[.452,.022,.466,{sk:.0833}],120577:[.704,.204,.438,{ic:.033,sk:.0833}],120578:[.442,.216,.497,{sk:.0556}],120579:[.705,.01,.469,{sk:.0833}],120580:[.442,.01,.354,{sk:.0556}],120581:[.442,.011,.576],120582:[.694,.012,.583],120583:[.442,.216,.603,{sk:.0278}],120584:[.442,0,.494,{ic:.036,sk:.0278}],120585:[.704,.205,.438,{sk:.111}],120586:[.441,.011,.485,{sk:.0556}],120587:[.431,.011,.57],120588:[.442,.216,.517,{sk:.0833}],120589:[.442,.107,.363,{ic:.042,sk:.0833}],120590:[.431,.011,.571],120591:[.431,.013,.437,{ic:.08,sk:.0278}],120592:[.443,.01,.54,{sk:.0278}],120593:[.442,.218,.654,{sk:.0833}],120594:[.442,.204,.626,{sk:.0556}],120595:[.694,.205,.651,{sk:.111}],120596:[.443,.011,.622],120597:[.715,.022,.531,{ic:.035,sk:.0833}],120598:[.431,.011,.406,{sk:.0556}],120599:[.705,.011,.591,{sk:.0833}],120600:[.434,.006,.667,{ic:.067}],120601:[.694,.205,.596,{sk:.0833}],120602:[.442,.194,.517,{sk:.0833}],120603:[.431,.01,.828],120604:[.711,0,.869,{sk:.16}],120605:[.686,0,.866,{sk:.0958}],120606:[.68,0,.657,{ic:.12,sk:.0958}],120607:[.711,0,.958,{sk:.192}],120608:[.68,0,.81,{ic:.015,sk:.0958}],120609:[.686,0,.773,{ic:.032,sk:.0958}],120610:[.686,0,.982,{ic:.045,sk:.0639}],120611:[.702,.017,.867,{sk:.0958}],120612:[.686,0,.511,{ic:.062,sk:.128}],120613:[.686,0,.971,{ic:.032,sk:.0639}],120614:[.711,0,.806,{sk:.192}],120615:[.686,0,1.142,{ic:.077,sk:.0958}],120616:[.686,0,.95,{ic:.077,sk:.0958}],120617:[.675,0,.841,{ic:.026,sk:.0958}],120618:[.703,.017,.837,{sk:.0958}],120619:[.68,0,.982,{ic:.044,sk:.0639}],120620:[.686,0,.723,{ic:.124,sk:.0958}],120622:[.686,0,.885,{ic:.017,sk:.0958}],120623:[.675,0,.637,{ic:.135,sk:.0958}],120624:[.703,0,.671,{ic:.131,sk:.0639}],120625:[.686,0,.767,{sk:.0958}],120626:[.686,0,.947,{sk:.0958}],120627:[.686,0,.714,{ic:.076,sk:.0639}],120628:[.703,0,.879,{sk:.0958}],120630:[.452,.008,.761,{sk:.0319}],120631:[.701,.194,.66,{sk:.0958}],120632:[.451,.211,.59,{ic:.027}],120633:[.725,.008,.522,{sk:.0639}],120634:[.461,.017,.529,{sk:.0958}],120635:[.711,.202,.508,{ic:.013,sk:.0958}],120636:[.452,.211,.6,{sk:.0639}],120637:[.702,.008,.562,{sk:.0958}],120638:[.452,.008,.412,{sk:.0639}],120639:[.452,.008,.668],120640:[.694,.013,.671],120641:[.452,.211,.708,{sk:.0319}],120642:[.452,0,.577,{ic:.031,sk:.0319}],120643:[.711,.201,.508,{sk:.128}],120644:[.452,.008,.585,{sk:.0639}],120645:[.444,.008,.682],120646:[.451,.211,.612,{sk:.0958}],120647:[.451,.105,.424,{ic:.033,sk:.0958}],120648:[.444,.008,.686],120649:[.444,.013,.521,{ic:.089,sk:.0319}],120650:[.453,.008,.631,{sk:.0319}],120651:[.452,.216,.747,{sk:.0958}],120652:[.452,.201,.718,{sk:.0639}],120653:[.694,.202,.758,{sk:.128}],120654:[.453,.008,.718],120655:[.71,.017,.628,{ic:.029,sk:.0958}],120656:[.444,.007,.483,{sk:.0639}],120657:[.701,.008,.692,{sk:.0958}],120658:[.434,.006,.667,{ic:.067}],120659:[.694,.202,.712,{sk:.0958}],120660:[.451,.194,.612,{sk:.0958}],120661:[.444,.008,.975],120662:[.694,0,.733],120663:[.694,0,.733],120664:[.691,0,.581],120665:[.694,0,.917],120666:[.691,0,.642],120667:[.694,0,.672],120668:[.694,0,.794],120669:[.716,.022,.856],120670:[.694,0,.331],120671:[.694,0,.764],120672:[.694,0,.672],120673:[.694,0,.978],120674:[.694,0,.794],120675:[.688,0,.733],120676:[.716,.022,.794],120677:[.691,0,.794],120678:[.694,0,.703],120680:[.694,0,.794],120681:[.688,0,.733],120682:[.715,0,.856],120683:[.694,0,.794],120684:[.694,0,.733],120685:[.694,0,.856],120686:[.716,0,.794],120782:[.654,.01,.575],120783:[.655,0,.575],120784:[.654,0,.575],120785:[.655,.011,.575],120786:[.656,0,.575],120787:[.655,.011,.575],120788:[.655,.011,.575],120789:[.676,.011,.575],120790:[.654,.011,.575],120791:[.654,.011,.575],120802:[.678,.022,.5],120803:[.678,0,.5],120804:[.677,0,.5],120805:[.678,.022,.5],120806:[.656,0,.5],120807:[.656,.021,.5],120808:[.677,.022,.5],120809:[.656,.011,.5],120810:[.678,.022,.5],120811:[.677,.022,.5],120812:[.715,.022,.55],120813:[.716,0,.55],120814:[.716,0,.55],120815:[.716,.022,.55],120816:[.694,0,.55],120817:[.694,.022,.55],120818:[.716,.022,.55],120819:[.695,.011,.55],120820:[.715,.022,.55],120821:[.716,.022,.55],120822:[.621,.01,.525],120823:[.622,0,.525],120824:[.622,0,.525],120825:[.622,.011,.525],120826:[.624,0,.525],120827:[.611,.01,.525],120828:[.622,.011,.525],120829:[.627,.01,.525],120830:[.621,.01,.525],120831:[.622,.011,.525]}})),Lr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.normal=void 0;var t=$(),n=Ir();e.normal=(0,t.AddCSS)(n.normal,{163:{f:`MI`},165:{f:`A`},174:{f:`A`},183:{c:`\\22C5`},240:{f:`A`},697:{c:`\\2032`},913:{c:`A`},914:{c:`B`},917:{c:`E`},918:{c:`Z`},919:{c:`H`},921:{c:`I`},922:{c:`K`},924:{c:`M`},925:{c:`N`},927:{c:`O`},929:{c:`P`},932:{c:`T`},935:{c:`X`},8192:{c:``},8193:{c:``},8194:{c:``},8195:{c:``},8196:{c:``},8197:{c:``},8198:{c:``},8201:{c:``},8202:{c:``},8203:{c:``},8204:{c:``},8213:{c:`\\2014`},8214:{c:`\\2225`},8215:{c:`_`},8226:{c:`\\2219`},8243:{c:`\\2032\\2032`},8244:{c:`\\2032\\2032\\2032`},8245:{f:`A`},8246:{c:`\\2035\\2035`,f:`A`},8247:{c:`\\2035\\2035\\2035`,f:`A`},8254:{c:`\\2C9`},8260:{c:`/`},8279:{c:`\\2032\\2032\\2032\\2032`},8288:{c:``},8289:{c:``},8290:{c:``},8291:{c:``},8292:{c:``},8407:{c:`\\2192`,f:`V`},8450:{c:`C`,f:`A`},8459:{c:`H`,f:`SC`},8460:{c:`H`,f:`FR`},8461:{c:`H`,f:`A`},8462:{c:`h`,f:`I`},8463:{f:`A`},8464:{c:`I`,f:`SC`},8465:{c:`I`,f:`FR`},8466:{c:`L`,f:`SC`},8469:{c:`N`,f:`A`},8473:{c:`P`,f:`A`},8474:{c:`Q`,f:`A`},8475:{c:`R`,f:`SC`},8476:{c:`R`,f:`FR`},8477:{c:`R`,f:`A`},8484:{c:`Z`,f:`A`},8486:{c:`\\3A9`},8487:{f:`A`},8488:{c:`Z`,f:`FR`},8492:{c:`B`,f:`SC`},8493:{c:`C`,f:`FR`},8496:{c:`E`,f:`SC`},8497:{c:`F`,f:`SC`},8498:{f:`A`},8499:{c:`M`,f:`SC`},8502:{f:`A`},8503:{f:`A`},8504:{f:`A`},8513:{f:`A`},8602:{f:`A`},8603:{f:`A`},8606:{f:`A`},8608:{f:`A`},8610:{f:`A`},8611:{f:`A`},8619:{f:`A`},8620:{f:`A`},8621:{f:`A`},8622:{f:`A`},8624:{f:`A`},8625:{f:`A`},8630:{f:`A`},8631:{f:`A`},8634:{f:`A`},8635:{f:`A`},8638:{f:`A`},8639:{f:`A`},8642:{f:`A`},8643:{f:`A`},8644:{f:`A`},8646:{f:`A`},8647:{f:`A`},8648:{f:`A`},8649:{f:`A`},8650:{f:`A`},8651:{f:`A`},8653:{f:`A`},8654:{f:`A`},8655:{f:`A`},8666:{f:`A`},8667:{f:`A`},8669:{f:`A`},8672:{f:`A`},8674:{f:`A`},8705:{f:`A`},8708:{c:`\\2203\\338`},8710:{c:`\\394`},8716:{c:`\\220B\\338`},8717:{f:`A`},8719:{f:`S1`},8720:{f:`S1`},8721:{f:`S1`},8724:{f:`A`},8737:{f:`A`},8738:{f:`A`},8740:{f:`A`},8742:{f:`A`},8748:{f:`S1`},8749:{f:`S1`},8750:{f:`S1`},8756:{f:`A`},8757:{f:`A`},8765:{f:`A`},8769:{f:`A`},8770:{f:`A`},8772:{c:`\\2243\\338`},8775:{c:`\\2246`,f:`A`},8777:{c:`\\2248\\338`},8778:{f:`A`},8782:{f:`A`},8783:{f:`A`},8785:{f:`A`},8786:{f:`A`},8787:{f:`A`},8790:{f:`A`},8791:{f:`A`},8796:{f:`A`},8802:{c:`\\2261\\338`},8806:{f:`A`},8807:{f:`A`},8808:{f:`A`},8809:{f:`A`},8812:{f:`A`},8813:{c:`\\224D\\338`},8814:{f:`A`},8815:{f:`A`},8816:{f:`A`},8817:{f:`A`},8818:{f:`A`},8819:{f:`A`},8820:{c:`\\2272\\338`},8821:{c:`\\2273\\338`},8822:{f:`A`},8823:{f:`A`},8824:{c:`\\2276\\338`},8825:{c:`\\2277\\338`},8828:{f:`A`},8829:{f:`A`},8830:{f:`A`},8831:{f:`A`},8832:{f:`A`},8833:{f:`A`},8836:{c:`\\2282\\338`},8837:{c:`\\2283\\338`},8840:{f:`A`},8841:{f:`A`},8842:{f:`A`},8843:{f:`A`},8847:{f:`A`},8848:{f:`A`},8858:{f:`A`},8859:{f:`A`},8861:{f:`A`},8862:{f:`A`},8863:{f:`A`},8864:{f:`A`},8865:{f:`A`},8873:{f:`A`},8874:{f:`A`},8876:{f:`A`},8877:{f:`A`},8878:{f:`A`},8879:{f:`A`},8882:{f:`A`},8883:{f:`A`},8884:{f:`A`},8885:{f:`A`},8888:{f:`A`},8890:{f:`A`},8891:{f:`A`},8892:{f:`A`},8896:{f:`S1`},8897:{f:`S1`},8898:{f:`S1`},8899:{f:`S1`},8903:{f:`A`},8905:{f:`A`},8906:{f:`A`},8907:{f:`A`},8908:{f:`A`},8909:{f:`A`},8910:{f:`A`},8911:{f:`A`},8912:{f:`A`},8913:{f:`A`},8914:{f:`A`},8915:{f:`A`},8916:{f:`A`},8918:{f:`A`},8919:{f:`A`},8920:{f:`A`},8921:{f:`A`},8922:{f:`A`},8923:{f:`A`},8926:{f:`A`},8927:{f:`A`},8928:{f:`A`},8929:{f:`A`},8930:{c:`\\2291\\338`},8931:{c:`\\2292\\338`},8934:{f:`A`},8935:{f:`A`},8936:{f:`A`},8937:{f:`A`},8938:{f:`A`},8939:{f:`A`},8940:{f:`A`},8941:{f:`A`},8965:{c:`\\22BC`,f:`A`},8966:{c:`\\2A5E`,f:`A`},8988:{c:`\\250C`,f:`A`},8989:{c:`\\2510`,f:`A`},8990:{c:`\\2514`,f:`A`},8991:{c:`\\2518`,f:`A`},9001:{c:`\\27E8`},9002:{c:`\\27E9`},9168:{f:`S1`},9416:{f:`A`},9484:{f:`A`},9488:{f:`A`},9492:{f:`A`},9496:{f:`A`},9585:{f:`A`},9586:{f:`A`},9632:{f:`A`},9633:{f:`A`},9642:{c:`\\25A0`,f:`A`},9650:{f:`A`},9652:{c:`\\25B2`,f:`A`},9653:{c:`\\25B3`},9654:{f:`A`},9656:{c:`\\25B6`,f:`A`},9660:{f:`A`},9662:{c:`\\25BC`,f:`A`},9663:{c:`\\25BD`},9664:{f:`A`},9666:{c:`\\25C0`,f:`A`},9674:{f:`A`},9723:{c:`\\25A1`,f:`A`},9724:{c:`\\25A0`,f:`A`},9733:{f:`A`},10003:{f:`A`},10016:{f:`A`},10072:{c:`\\2223`},10731:{f:`A`},10744:{c:`/`,f:`I`},10752:{f:`S1`},10753:{f:`S1`},10754:{f:`S1`},10756:{f:`S1`},10758:{f:`S1`},10764:{c:`\\222C\\222C`,f:`S1`},10799:{c:`\\D7`},10846:{f:`A`},10877:{f:`A`},10878:{f:`A`},10885:{f:`A`},10886:{f:`A`},10887:{f:`A`},10888:{f:`A`},10889:{f:`A`},10890:{f:`A`},10891:{f:`A`},10892:{f:`A`},10901:{f:`A`},10902:{f:`A`},10933:{f:`A`},10934:{f:`A`},10935:{f:`A`},10936:{f:`A`},10937:{f:`A`},10938:{f:`A`},10949:{f:`A`},10950:{f:`A`},10955:{f:`A`},10956:{f:`A`},12296:{c:`\\27E8`},12297:{c:`\\27E9`},57350:{f:`A`},57351:{f:`A`},57352:{f:`A`},57353:{f:`A`},57356:{f:`A`},57357:{f:`A`},57358:{f:`A`},57359:{f:`A`},57360:{f:`A`},57361:{f:`A`},57366:{f:`A`},57367:{f:`A`},57368:{f:`A`},57369:{f:`A`},57370:{f:`A`},57371:{f:`A`},119808:{c:`A`,f:`B`},119809:{c:`B`,f:`B`},119810:{c:`C`,f:`B`},119811:{c:`D`,f:`B`},119812:{c:`E`,f:`B`},119813:{c:`F`,f:`B`},119814:{c:`G`,f:`B`},119815:{c:`H`,f:`B`},119816:{c:`I`,f:`B`},119817:{c:`J`,f:`B`},119818:{c:`K`,f:`B`},119819:{c:`L`,f:`B`},119820:{c:`M`,f:`B`},119821:{c:`N`,f:`B`},119822:{c:`O`,f:`B`},119823:{c:`P`,f:`B`},119824:{c:`Q`,f:`B`},119825:{c:`R`,f:`B`},119826:{c:`S`,f:`B`},119827:{c:`T`,f:`B`},119828:{c:`U`,f:`B`},119829:{c:`V`,f:`B`},119830:{c:`W`,f:`B`},119831:{c:`X`,f:`B`},119832:{c:`Y`,f:`B`},119833:{c:`Z`,f:`B`},119834:{c:`a`,f:`B`},119835:{c:`b`,f:`B`},119836:{c:`c`,f:`B`},119837:{c:`d`,f:`B`},119838:{c:`e`,f:`B`},119839:{c:`f`,f:`B`},119840:{c:`g`,f:`B`},119841:{c:`h`,f:`B`},119842:{c:`i`,f:`B`},119843:{c:`j`,f:`B`},119844:{c:`k`,f:`B`},119845:{c:`l`,f:`B`},119846:{c:`m`,f:`B`},119847:{c:`n`,f:`B`},119848:{c:`o`,f:`B`},119849:{c:`p`,f:`B`},119850:{c:`q`,f:`B`},119851:{c:`r`,f:`B`},119852:{c:`s`,f:`B`},119853:{c:`t`,f:`B`},119854:{c:`u`,f:`B`},119855:{c:`v`,f:`B`},119856:{c:`w`,f:`B`},119857:{c:`x`,f:`B`},119858:{c:`y`,f:`B`},119859:{c:`z`,f:`B`},119860:{c:`A`,f:`I`},119861:{c:`B`,f:`I`},119862:{c:`C`,f:`I`},119863:{c:`D`,f:`I`},119864:{c:`E`,f:`I`},119865:{c:`F`,f:`I`},119866:{c:`G`,f:`I`},119867:{c:`H`,f:`I`},119868:{c:`I`,f:`I`},119869:{c:`J`,f:`I`},119870:{c:`K`,f:`I`},119871:{c:`L`,f:`I`},119872:{c:`M`,f:`I`},119873:{c:`N`,f:`I`},119874:{c:`O`,f:`I`},119875:{c:`P`,f:`I`},119876:{c:`Q`,f:`I`},119877:{c:`R`,f:`I`},119878:{c:`S`,f:`I`},119879:{c:`T`,f:`I`},119880:{c:`U`,f:`I`},119881:{c:`V`,f:`I`},119882:{c:`W`,f:`I`},119883:{c:`X`,f:`I`},119884:{c:`Y`,f:`I`},119885:{c:`Z`,f:`I`},119886:{c:`a`,f:`I`},119887:{c:`b`,f:`I`},119888:{c:`c`,f:`I`},119889:{c:`d`,f:`I`},119890:{c:`e`,f:`I`},119891:{c:`f`,f:`I`},119892:{c:`g`,f:`I`},119894:{c:`i`,f:`I`},119895:{c:`j`,f:`I`},119896:{c:`k`,f:`I`},119897:{c:`l`,f:`I`},119898:{c:`m`,f:`I`},119899:{c:`n`,f:`I`},119900:{c:`o`,f:`I`},119901:{c:`p`,f:`I`},119902:{c:`q`,f:`I`},119903:{c:`r`,f:`I`},119904:{c:`s`,f:`I`},119905:{c:`t`,f:`I`},119906:{c:`u`,f:`I`},119907:{c:`v`,f:`I`},119908:{c:`w`,f:`I`},119909:{c:`x`,f:`I`},119910:{c:`y`,f:`I`},119911:{c:`z`,f:`I`},119912:{c:`A`,f:`BI`},119913:{c:`B`,f:`BI`},119914:{c:`C`,f:`BI`},119915:{c:`D`,f:`BI`},119916:{c:`E`,f:`BI`},119917:{c:`F`,f:`BI`},119918:{c:`G`,f:`BI`},119919:{c:`H`,f:`BI`},119920:{c:`I`,f:`BI`},119921:{c:`J`,f:`BI`},119922:{c:`K`,f:`BI`},119923:{c:`L`,f:`BI`},119924:{c:`M`,f:`BI`},119925:{c:`N`,f:`BI`},119926:{c:`O`,f:`BI`},119927:{c:`P`,f:`BI`},119928:{c:`Q`,f:`BI`},119929:{c:`R`,f:`BI`},119930:{c:`S`,f:`BI`},119931:{c:`T`,f:`BI`},119932:{c:`U`,f:`BI`},119933:{c:`V`,f:`BI`},119934:{c:`W`,f:`BI`},119935:{c:`X`,f:`BI`},119936:{c:`Y`,f:`BI`},119937:{c:`Z`,f:`BI`},119938:{c:`a`,f:`BI`},119939:{c:`b`,f:`BI`},119940:{c:`c`,f:`BI`},119941:{c:`d`,f:`BI`},119942:{c:`e`,f:`BI`},119943:{c:`f`,f:`BI`},119944:{c:`g`,f:`BI`},119945:{c:`h`,f:`BI`},119946:{c:`i`,f:`BI`},119947:{c:`j`,f:`BI`},119948:{c:`k`,f:`BI`},119949:{c:`l`,f:`BI`},119950:{c:`m`,f:`BI`},119951:{c:`n`,f:`BI`},119952:{c:`o`,f:`BI`},119953:{c:`p`,f:`BI`},119954:{c:`q`,f:`BI`},119955:{c:`r`,f:`BI`},119956:{c:`s`,f:`BI`},119957:{c:`t`,f:`BI`},119958:{c:`u`,f:`BI`},119959:{c:`v`,f:`BI`},119960:{c:`w`,f:`BI`},119961:{c:`x`,f:`BI`},119962:{c:`y`,f:`BI`},119963:{c:`z`,f:`BI`},119964:{c:`A`,f:`SC`},119966:{c:`C`,f:`SC`},119967:{c:`D`,f:`SC`},119970:{c:`G`,f:`SC`},119973:{c:`J`,f:`SC`},119974:{c:`K`,f:`SC`},119977:{c:`N`,f:`SC`},119978:{c:`O`,f:`SC`},119979:{c:`P`,f:`SC`},119980:{c:`Q`,f:`SC`},119982:{c:`S`,f:`SC`},119983:{c:`T`,f:`SC`},119984:{c:`U`,f:`SC`},119985:{c:`V`,f:`SC`},119986:{c:`W`,f:`SC`},119987:{c:`X`,f:`SC`},119988:{c:`Y`,f:`SC`},119989:{c:`Z`,f:`SC`},120068:{c:`A`,f:`FR`},120069:{c:`B`,f:`FR`},120071:{c:`D`,f:`FR`},120072:{c:`E`,f:`FR`},120073:{c:`F`,f:`FR`},120074:{c:`G`,f:`FR`},120077:{c:`J`,f:`FR`},120078:{c:`K`,f:`FR`},120079:{c:`L`,f:`FR`},120080:{c:`M`,f:`FR`},120081:{c:`N`,f:`FR`},120082:{c:`O`,f:`FR`},120083:{c:`P`,f:`FR`},120084:{c:`Q`,f:`FR`},120086:{c:`S`,f:`FR`},120087:{c:`T`,f:`FR`},120088:{c:`U`,f:`FR`},120089:{c:`V`,f:`FR`},120090:{c:`W`,f:`FR`},120091:{c:`X`,f:`FR`},120092:{c:`Y`,f:`FR`},120094:{c:`a`,f:`FR`},120095:{c:`b`,f:`FR`},120096:{c:`c`,f:`FR`},120097:{c:`d`,f:`FR`},120098:{c:`e`,f:`FR`},120099:{c:`f`,f:`FR`},120100:{c:`g`,f:`FR`},120101:{c:`h`,f:`FR`},120102:{c:`i`,f:`FR`},120103:{c:`j`,f:`FR`},120104:{c:`k`,f:`FR`},120105:{c:`l`,f:`FR`},120106:{c:`m`,f:`FR`},120107:{c:`n`,f:`FR`},120108:{c:`o`,f:`FR`},120109:{c:`p`,f:`FR`},120110:{c:`q`,f:`FR`},120111:{c:`r`,f:`FR`},120112:{c:`s`,f:`FR`},120113:{c:`t`,f:`FR`},120114:{c:`u`,f:`FR`},120115:{c:`v`,f:`FR`},120116:{c:`w`,f:`FR`},120117:{c:`x`,f:`FR`},120118:{c:`y`,f:`FR`},120119:{c:`z`,f:`FR`},120120:{c:`A`,f:`A`},120121:{c:`B`,f:`A`},120123:{c:`D`,f:`A`},120124:{c:`E`,f:`A`},120125:{c:`F`,f:`A`},120126:{c:`G`,f:`A`},120128:{c:`I`,f:`A`},120129:{c:`J`,f:`A`},120130:{c:`K`,f:`A`},120131:{c:`L`,f:`A`},120132:{c:`M`,f:`A`},120134:{c:`O`,f:`A`},120138:{c:`S`,f:`A`},120139:{c:`T`,f:`A`},120140:{c:`U`,f:`A`},120141:{c:`V`,f:`A`},120142:{c:`W`,f:`A`},120143:{c:`X`,f:`A`},120144:{c:`Y`,f:`A`},120172:{c:`A`,f:`FRB`},120173:{c:`B`,f:`FRB`},120174:{c:`C`,f:`FRB`},120175:{c:`D`,f:`FRB`},120176:{c:`E`,f:`FRB`},120177:{c:`F`,f:`FRB`},120178:{c:`G`,f:`FRB`},120179:{c:`H`,f:`FRB`},120180:{c:`I`,f:`FRB`},120181:{c:`J`,f:`FRB`},120182:{c:`K`,f:`FRB`},120183:{c:`L`,f:`FRB`},120184:{c:`M`,f:`FRB`},120185:{c:`N`,f:`FRB`},120186:{c:`O`,f:`FRB`},120187:{c:`P`,f:`FRB`},120188:{c:`Q`,f:`FRB`},120189:{c:`R`,f:`FRB`},120190:{c:`S`,f:`FRB`},120191:{c:`T`,f:`FRB`},120192:{c:`U`,f:`FRB`},120193:{c:`V`,f:`FRB`},120194:{c:`W`,f:`FRB`},120195:{c:`X`,f:`FRB`},120196:{c:`Y`,f:`FRB`},120197:{c:`Z`,f:`FRB`},120198:{c:`a`,f:`FRB`},120199:{c:`b`,f:`FRB`},120200:{c:`c`,f:`FRB`},120201:{c:`d`,f:`FRB`},120202:{c:`e`,f:`FRB`},120203:{c:`f`,f:`FRB`},120204:{c:`g`,f:`FRB`},120205:{c:`h`,f:`FRB`},120206:{c:`i`,f:`FRB`},120207:{c:`j`,f:`FRB`},120208:{c:`k`,f:`FRB`},120209:{c:`l`,f:`FRB`},120210:{c:`m`,f:`FRB`},120211:{c:`n`,f:`FRB`},120212:{c:`o`,f:`FRB`},120213:{c:`p`,f:`FRB`},120214:{c:`q`,f:`FRB`},120215:{c:`r`,f:`FRB`},120216:{c:`s`,f:`FRB`},120217:{c:`t`,f:`FRB`},120218:{c:`u`,f:`FRB`},120219:{c:`v`,f:`FRB`},120220:{c:`w`,f:`FRB`},120221:{c:`x`,f:`FRB`},120222:{c:`y`,f:`FRB`},120223:{c:`z`,f:`FRB`},120224:{c:`A`,f:`SS`},120225:{c:`B`,f:`SS`},120226:{c:`C`,f:`SS`},120227:{c:`D`,f:`SS`},120228:{c:`E`,f:`SS`},120229:{c:`F`,f:`SS`},120230:{c:`G`,f:`SS`},120231:{c:`H`,f:`SS`},120232:{c:`I`,f:`SS`},120233:{c:`J`,f:`SS`},120234:{c:`K`,f:`SS`},120235:{c:`L`,f:`SS`},120236:{c:`M`,f:`SS`},120237:{c:`N`,f:`SS`},120238:{c:`O`,f:`SS`},120239:{c:`P`,f:`SS`},120240:{c:`Q`,f:`SS`},120241:{c:`R`,f:`SS`},120242:{c:`S`,f:`SS`},120243:{c:`T`,f:`SS`},120244:{c:`U`,f:`SS`},120245:{c:`V`,f:`SS`},120246:{c:`W`,f:`SS`},120247:{c:`X`,f:`SS`},120248:{c:`Y`,f:`SS`},120249:{c:`Z`,f:`SS`},120250:{c:`a`,f:`SS`},120251:{c:`b`,f:`SS`},120252:{c:`c`,f:`SS`},120253:{c:`d`,f:`SS`},120254:{c:`e`,f:`SS`},120255:{c:`f`,f:`SS`},120256:{c:`g`,f:`SS`},120257:{c:`h`,f:`SS`},120258:{c:`i`,f:`SS`},120259:{c:`j`,f:`SS`},120260:{c:`k`,f:`SS`},120261:{c:`l`,f:`SS`},120262:{c:`m`,f:`SS`},120263:{c:`n`,f:`SS`},120264:{c:`o`,f:`SS`},120265:{c:`p`,f:`SS`},120266:{c:`q`,f:`SS`},120267:{c:`r`,f:`SS`},120268:{c:`s`,f:`SS`},120269:{c:`t`,f:`SS`},120270:{c:`u`,f:`SS`},120271:{c:`v`,f:`SS`},120272:{c:`w`,f:`SS`},120273:{c:`x`,f:`SS`},120274:{c:`y`,f:`SS`},120275:{c:`z`,f:`SS`},120276:{c:`A`,f:`SSB`},120277:{c:`B`,f:`SSB`},120278:{c:`C`,f:`SSB`},120279:{c:`D`,f:`SSB`},120280:{c:`E`,f:`SSB`},120281:{c:`F`,f:`SSB`},120282:{c:`G`,f:`SSB`},120283:{c:`H`,f:`SSB`},120284:{c:`I`,f:`SSB`},120285:{c:`J`,f:`SSB`},120286:{c:`K`,f:`SSB`},120287:{c:`L`,f:`SSB`},120288:{c:`M`,f:`SSB`},120289:{c:`N`,f:`SSB`},120290:{c:`O`,f:`SSB`},120291:{c:`P`,f:`SSB`},120292:{c:`Q`,f:`SSB`},120293:{c:`R`,f:`SSB`},120294:{c:`S`,f:`SSB`},120295:{c:`T`,f:`SSB`},120296:{c:`U`,f:`SSB`},120297:{c:`V`,f:`SSB`},120298:{c:`W`,f:`SSB`},120299:{c:`X`,f:`SSB`},120300:{c:`Y`,f:`SSB`},120301:{c:`Z`,f:`SSB`},120302:{c:`a`,f:`SSB`},120303:{c:`b`,f:`SSB`},120304:{c:`c`,f:`SSB`},120305:{c:`d`,f:`SSB`},120306:{c:`e`,f:`SSB`},120307:{c:`f`,f:`SSB`},120308:{c:`g`,f:`SSB`},120309:{c:`h`,f:`SSB`},120310:{c:`i`,f:`SSB`},120311:{c:`j`,f:`SSB`},120312:{c:`k`,f:`SSB`},120313:{c:`l`,f:`SSB`},120314:{c:`m`,f:`SSB`},120315:{c:`n`,f:`SSB`},120316:{c:`o`,f:`SSB`},120317:{c:`p`,f:`SSB`},120318:{c:`q`,f:`SSB`},120319:{c:`r`,f:`SSB`},120320:{c:`s`,f:`SSB`},120321:{c:`t`,f:`SSB`},120322:{c:`u`,f:`SSB`},120323:{c:`v`,f:`SSB`},120324:{c:`w`,f:`SSB`},120325:{c:`x`,f:`SSB`},120326:{c:`y`,f:`SSB`},120327:{c:`z`,f:`SSB`},120328:{c:`A`,f:`SSI`},120329:{c:`B`,f:`SSI`},120330:{c:`C`,f:`SSI`},120331:{c:`D`,f:`SSI`},120332:{c:`E`,f:`SSI`},120333:{c:`F`,f:`SSI`},120334:{c:`G`,f:`SSI`},120335:{c:`H`,f:`SSI`},120336:{c:`I`,f:`SSI`},120337:{c:`J`,f:`SSI`},120338:{c:`K`,f:`SSI`},120339:{c:`L`,f:`SSI`},120340:{c:`M`,f:`SSI`},120341:{c:`N`,f:`SSI`},120342:{c:`O`,f:`SSI`},120343:{c:`P`,f:`SSI`},120344:{c:`Q`,f:`SSI`},120345:{c:`R`,f:`SSI`},120346:{c:`S`,f:`SSI`},120347:{c:`T`,f:`SSI`},120348:{c:`U`,f:`SSI`},120349:{c:`V`,f:`SSI`},120350:{c:`W`,f:`SSI`},120351:{c:`X`,f:`SSI`},120352:{c:`Y`,f:`SSI`},120353:{c:`Z`,f:`SSI`},120354:{c:`a`,f:`SSI`},120355:{c:`b`,f:`SSI`},120356:{c:`c`,f:`SSI`},120357:{c:`d`,f:`SSI`},120358:{c:`e`,f:`SSI`},120359:{c:`f`,f:`SSI`},120360:{c:`g`,f:`SSI`},120361:{c:`h`,f:`SSI`},120362:{c:`i`,f:`SSI`},120363:{c:`j`,f:`SSI`},120364:{c:`k`,f:`SSI`},120365:{c:`l`,f:`SSI`},120366:{c:`m`,f:`SSI`},120367:{c:`n`,f:`SSI`},120368:{c:`o`,f:`SSI`},120369:{c:`p`,f:`SSI`},120370:{c:`q`,f:`SSI`},120371:{c:`r`,f:`SSI`},120372:{c:`s`,f:`SSI`},120373:{c:`t`,f:`SSI`},120374:{c:`u`,f:`SSI`},120375:{c:`v`,f:`SSI`},120376:{c:`w`,f:`SSI`},120377:{c:`x`,f:`SSI`},120378:{c:`y`,f:`SSI`},120379:{c:`z`,f:`SSI`},120432:{c:`A`,f:`T`},120433:{c:`B`,f:`T`},120434:{c:`C`,f:`T`},120435:{c:`D`,f:`T`},120436:{c:`E`,f:`T`},120437:{c:`F`,f:`T`},120438:{c:`G`,f:`T`},120439:{c:`H`,f:`T`},120440:{c:`I`,f:`T`},120441:{c:`J`,f:`T`},120442:{c:`K`,f:`T`},120443:{c:`L`,f:`T`},120444:{c:`M`,f:`T`},120445:{c:`N`,f:`T`},120446:{c:`O`,f:`T`},120447:{c:`P`,f:`T`},120448:{c:`Q`,f:`T`},120449:{c:`R`,f:`T`},120450:{c:`S`,f:`T`},120451:{c:`T`,f:`T`},120452:{c:`U`,f:`T`},120453:{c:`V`,f:`T`},120454:{c:`W`,f:`T`},120455:{c:`X`,f:`T`},120456:{c:`Y`,f:`T`},120457:{c:`Z`,f:`T`},120458:{c:`a`,f:`T`},120459:{c:`b`,f:`T`},120460:{c:`c`,f:`T`},120461:{c:`d`,f:`T`},120462:{c:`e`,f:`T`},120463:{c:`f`,f:`T`},120464:{c:`g`,f:`T`},120465:{c:`h`,f:`T`},120466:{c:`i`,f:`T`},120467:{c:`j`,f:`T`},120468:{c:`k`,f:`T`},120469:{c:`l`,f:`T`},120470:{c:`m`,f:`T`},120471:{c:`n`,f:`T`},120472:{c:`o`,f:`T`},120473:{c:`p`,f:`T`},120474:{c:`q`,f:`T`},120475:{c:`r`,f:`T`},120476:{c:`s`,f:`T`},120477:{c:`t`,f:`T`},120478:{c:`u`,f:`T`},120479:{c:`v`,f:`T`},120480:{c:`w`,f:`T`},120481:{c:`x`,f:`T`},120482:{c:`y`,f:`T`},120483:{c:`z`,f:`T`},120488:{c:`A`,f:`B`},120489:{c:`B`,f:`B`},120490:{c:`\\393`,f:`B`},120491:{c:`\\394`,f:`B`},120492:{c:`E`,f:`B`},120493:{c:`Z`,f:`B`},120494:{c:`H`,f:`B`},120495:{c:`\\398`,f:`B`},120496:{c:`I`,f:`B`},120497:{c:`K`,f:`B`},120498:{c:`\\39B`,f:`B`},120499:{c:`M`,f:`B`},120500:{c:`N`,f:`B`},120501:{c:`\\39E`,f:`B`},120502:{c:`O`,f:`B`},120503:{c:`\\3A0`,f:`B`},120504:{c:`P`,f:`B`},120506:{c:`\\3A3`,f:`B`},120507:{c:`T`,f:`B`},120508:{c:`\\3A5`,f:`B`},120509:{c:`\\3A6`,f:`B`},120510:{c:`X`,f:`B`},120511:{c:`\\3A8`,f:`B`},120512:{c:`\\3A9`,f:`B`},120513:{c:`\\2207`,f:`B`},120546:{c:`A`,f:`I`},120547:{c:`B`,f:`I`},120548:{c:`\\393`,f:`I`},120549:{c:`\\394`,f:`I`},120550:{c:`E`,f:`I`},120551:{c:`Z`,f:`I`},120552:{c:`H`,f:`I`},120553:{c:`\\398`,f:`I`},120554:{c:`I`,f:`I`},120555:{c:`K`,f:`I`},120556:{c:`\\39B`,f:`I`},120557:{c:`M`,f:`I`},120558:{c:`N`,f:`I`},120559:{c:`\\39E`,f:`I`},120560:{c:`O`,f:`I`},120561:{c:`\\3A0`,f:`I`},120562:{c:`P`,f:`I`},120564:{c:`\\3A3`,f:`I`},120565:{c:`T`,f:`I`},120566:{c:`\\3A5`,f:`I`},120567:{c:`\\3A6`,f:`I`},120568:{c:`X`,f:`I`},120569:{c:`\\3A8`,f:`I`},120570:{c:`\\3A9`,f:`I`},120572:{c:`\\3B1`,f:`I`},120573:{c:`\\3B2`,f:`I`},120574:{c:`\\3B3`,f:`I`},120575:{c:`\\3B4`,f:`I`},120576:{c:`\\3B5`,f:`I`},120577:{c:`\\3B6`,f:`I`},120578:{c:`\\3B7`,f:`I`},120579:{c:`\\3B8`,f:`I`},120580:{c:`\\3B9`,f:`I`},120581:{c:`\\3BA`,f:`I`},120582:{c:`\\3BB`,f:`I`},120583:{c:`\\3BC`,f:`I`},120584:{c:`\\3BD`,f:`I`},120585:{c:`\\3BE`,f:`I`},120586:{c:`\\3BF`,f:`I`},120587:{c:`\\3C0`,f:`I`},120588:{c:`\\3C1`,f:`I`},120589:{c:`\\3C2`,f:`I`},120590:{c:`\\3C3`,f:`I`},120591:{c:`\\3C4`,f:`I`},120592:{c:`\\3C5`,f:`I`},120593:{c:`\\3C6`,f:`I`},120594:{c:`\\3C7`,f:`I`},120595:{c:`\\3C8`,f:`I`},120596:{c:`\\3C9`,f:`I`},120597:{c:`\\2202`},120598:{c:`\\3F5`,f:`I`},120599:{c:`\\3D1`,f:`I`},120600:{c:`\\E009`,f:`A`},120601:{c:`\\3D5`,f:`I`},120602:{c:`\\3F1`,f:`I`},120603:{c:`\\3D6`,f:`I`},120604:{c:`A`,f:`BI`},120605:{c:`B`,f:`BI`},120606:{c:`\\393`,f:`BI`},120607:{c:`\\394`,f:`BI`},120608:{c:`E`,f:`BI`},120609:{c:`Z`,f:`BI`},120610:{c:`H`,f:`BI`},120611:{c:`\\398`,f:`BI`},120612:{c:`I`,f:`BI`},120613:{c:`K`,f:`BI`},120614:{c:`\\39B`,f:`BI`},120615:{c:`M`,f:`BI`},120616:{c:`N`,f:`BI`},120617:{c:`\\39E`,f:`BI`},120618:{c:`O`,f:`BI`},120619:{c:`\\3A0`,f:`BI`},120620:{c:`P`,f:`BI`},120622:{c:`\\3A3`,f:`BI`},120623:{c:`T`,f:`BI`},120624:{c:`\\3A5`,f:`BI`},120625:{c:`\\3A6`,f:`BI`},120626:{c:`X`,f:`BI`},120627:{c:`\\3A8`,f:`BI`},120628:{c:`\\3A9`,f:`BI`},120630:{c:`\\3B1`,f:`BI`},120631:{c:`\\3B2`,f:`BI`},120632:{c:`\\3B3`,f:`BI`},120633:{c:`\\3B4`,f:`BI`},120634:{c:`\\3B5`,f:`BI`},120635:{c:`\\3B6`,f:`BI`},120636:{c:`\\3B7`,f:`BI`},120637:{c:`\\3B8`,f:`BI`},120638:{c:`\\3B9`,f:`BI`},120639:{c:`\\3BA`,f:`BI`},120640:{c:`\\3BB`,f:`BI`},120641:{c:`\\3BC`,f:`BI`},120642:{c:`\\3BD`,f:`BI`},120643:{c:`\\3BE`,f:`BI`},120644:{c:`\\3BF`,f:`BI`},120645:{c:`\\3C0`,f:`BI`},120646:{c:`\\3C1`,f:`BI`},120647:{c:`\\3C2`,f:`BI`},120648:{c:`\\3C3`,f:`BI`},120649:{c:`\\3C4`,f:`BI`},120650:{c:`\\3C5`,f:`BI`},120651:{c:`\\3C6`,f:`BI`},120652:{c:`\\3C7`,f:`BI`},120653:{c:`\\3C8`,f:`BI`},120654:{c:`\\3C9`,f:`BI`},120655:{c:`\\2202`,f:`B`},120656:{c:`\\3F5`,f:`BI`},120657:{c:`\\3D1`,f:`BI`},120658:{c:`\\E009`,f:`A`},120659:{c:`\\3D5`,f:`BI`},120660:{c:`\\3F1`,f:`BI`},120661:{c:`\\3D6`,f:`BI`},120662:{c:`A`,f:`SSB`},120663:{c:`B`,f:`SSB`},120664:{c:`\\393`,f:`SSB`},120665:{c:`\\394`,f:`SSB`},120666:{c:`E`,f:`SSB`},120667:{c:`Z`,f:`SSB`},120668:{c:`H`,f:`SSB`},120669:{c:`\\398`,f:`SSB`},120670:{c:`I`,f:`SSB`},120671:{c:`K`,f:`SSB`},120672:{c:`\\39B`,f:`SSB`},120673:{c:`M`,f:`SSB`},120674:{c:`N`,f:`SSB`},120675:{c:`\\39E`,f:`SSB`},120676:{c:`O`,f:`SSB`},120677:{c:`\\3A0`,f:`SSB`},120678:{c:`P`,f:`SSB`},120680:{c:`\\3A3`,f:`SSB`},120681:{c:`T`,f:`SSB`},120682:{c:`\\3A5`,f:`SSB`},120683:{c:`\\3A6`,f:`SSB`},120684:{c:`X`,f:`SSB`},120685:{c:`\\3A8`,f:`SSB`},120686:{c:`\\3A9`,f:`SSB`},120782:{c:`0`,f:`B`},120783:{c:`1`,f:`B`},120784:{c:`2`,f:`B`},120785:{c:`3`,f:`B`},120786:{c:`4`,f:`B`},120787:{c:`5`,f:`B`},120788:{c:`6`,f:`B`},120789:{c:`7`,f:`B`},120790:{c:`8`,f:`B`},120791:{c:`9`,f:`B`},120802:{c:`0`,f:`SS`},120803:{c:`1`,f:`SS`},120804:{c:`2`,f:`SS`},120805:{c:`3`,f:`SS`},120806:{c:`4`,f:`SS`},120807:{c:`5`,f:`SS`},120808:{c:`6`,f:`SS`},120809:{c:`7`,f:`SS`},120810:{c:`8`,f:`SS`},120811:{c:`9`,f:`SS`},120812:{c:`0`,f:`SSB`},120813:{c:`1`,f:`SSB`},120814:{c:`2`,f:`SSB`},120815:{c:`3`,f:`SSB`},120816:{c:`4`,f:`SSB`},120817:{c:`5`,f:`SSB`},120818:{c:`6`,f:`SSB`},120819:{c:`7`,f:`SSB`},120820:{c:`8`,f:`SSB`},120821:{c:`9`,f:`SSB`},120822:{c:`0`,f:`T`},120823:{c:`1`,f:`T`},120824:{c:`2`,f:`T`},120825:{c:`3`,f:`T`},120826:{c:`4`,f:`T`},120827:{c:`5`,f:`T`},120828:{c:`6`,f:`T`},120829:{c:`7`,f:`T`},120830:{c:`8`,f:`T`},120831:{c:`9`,f:`T`}})})),Rr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifBoldItalic=void 0,e.sansSerifBoldItalic={305:[.458,0,.256],567:[.458,.205,.286]}})),zr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifBoldItalic=void 0;var t=$(),n=Rr();e.sansSerifBoldItalic=(0,t.AddCSS)(n.sansSerifBoldItalic,{305:{f:`SSB`},567:{f:`SSB`}})})),Br=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifBold=void 0,e.sansSerifBold={33:[.694,0,.367],34:[.694,-.442,.558],35:[.694,.193,.917],36:[.75,.056,.55],37:[.75,.056,1.029],38:[.716,.022,.831],39:[.694,-.442,.306],40:[.75,.249,.428],41:[.75,.25,.428],42:[.75,-.293,.55],43:[.617,.116,.856],44:[.146,.106,.306],45:[.273,-.186,.367],46:[.146,0,.306],47:[.75,.249,.55],58:[.458,0,.306],59:[.458,.106,.306],61:[.407,-.094,.856],63:[.705,0,.519],64:[.704,.011,.733],91:[.75,.25,.343],93:[.75,.25,.343],94:[.694,-.537,.55],95:[-.023,.11,.55],126:[.344,-.198,.55],305:[.458,0,.256],567:[.458,.205,.286],768:[.694,-.537,0],769:[.694,-.537,0],770:[.694,-.537,0],771:[.694,-.548,0],772:[.66,-.56,0],774:[.694,-.552,0],775:[.695,-.596,0],776:[.695,-.595,0],778:[.694,-.538,0],779:[.694,-.537,0],780:[.657,-.5,0],8211:[.327,-.24,.55],8212:[.327,-.24,1.1],8213:[.327,-.24,1.1],8215:[-.023,.11,.55],8216:[.694,-.443,.306],8217:[.694,-.442,.306],8220:[.694,-.443,.558],8221:[.694,-.442,.558],8260:[.75,.249,.55],8710:[.694,0,.917]}})),Vr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifBold=void 0;var t=$(),n=Br();e.sansSerifBold=(0,t.AddCSS)(n.sansSerifBold,{8213:{c:`\\2014`},8215:{c:`_`},8260:{c:`/`},8710:{c:`\\394`}})})),Hr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifItalic=void 0,e.sansSerifItalic={33:[.694,0,.319,{ic:.036}],34:[.694,-.471,.5],35:[.694,.194,.833,{ic:.018}],36:[.75,.056,.5,{ic:.065}],37:[.75,.056,.833],38:[.716,.022,.758],39:[.694,-.471,.278,{ic:.057}],40:[.75,.25,.389,{ic:.102}],41:[.75,.25,.389],42:[.75,-.306,.5,{ic:.068}],43:[.583,.083,.778],44:[.098,.125,.278],45:[.259,-.186,.333],46:[.098,0,.278],47:[.75,.25,.5,{ic:.1}],48:[.678,.022,.5,{ic:.049}],49:[.678,0,.5],50:[.678,0,.5,{ic:.051}],51:[.678,.022,.5,{ic:.044}],52:[.656,0,.5,{ic:.021}],53:[.656,.022,.5,{ic:.055}],54:[.678,.022,.5,{ic:.048}],55:[.656,.011,.5,{ic:.096}],56:[.678,.022,.5,{ic:.054}],57:[.677,.022,.5,{ic:.045}],58:[.444,0,.278],59:[.444,.125,.278],61:[.37,-.13,.778,{ic:.018}],63:[.704,0,.472,{ic:.064}],64:[.705,.01,.667,{ic:.04}],91:[.75,.25,.289,{ic:.136}],93:[.75,.25,.289,{ic:.064}],94:[.694,-.527,.5,{ic:.033}],95:[-.038,.114,.5,{ic:.065}],126:[.327,-.193,.5,{ic:.06}],305:[.444,0,.239,{ic:.019}],567:[.444,.204,.267,{ic:.019}],768:[.694,-.527,0],769:[.694,-.527,0,{ic:.063}],770:[.694,-.527,0,{ic:.033}],771:[.677,-.543,0,{ic:.06}],772:[.631,-.552,0,{ic:.064}],774:[.694,-.508,0,{ic:.073}],775:[.68,-.576,0],776:[.68,-.582,0,{ic:.04}],778:[.693,-.527,0],779:[.694,-.527,0,{ic:.063}],780:[.654,-.487,0,{ic:.06}],913:[.694,0,.667],914:[.694,0,.667,{ic:.029}],915:[.691,0,.542,{ic:.104}],916:[.694,0,.833],917:[.691,0,.597,{ic:.091}],918:[.694,0,.611,{ic:.091}],919:[.694,0,.708,{ic:.06}],920:[.715,.022,.778,{ic:.026}],921:[.694,0,.278,{ic:.06}],922:[.694,0,.694,{ic:.091}],923:[.694,0,.611],924:[.694,0,.875,{ic:.054}],925:[.694,0,.708,{ic:.058}],926:[.688,0,.667,{ic:.098}],927:[.716,.022,.736,{ic:.027}],928:[.691,0,.708,{ic:.06}],929:[.694,0,.639,{ic:.051}],931:[.694,0,.722,{ic:.091}],932:[.688,0,.681,{ic:.109}],933:[.716,0,.778,{ic:.065}],934:[.694,0,.722,{ic:.021}],935:[.694,0,.667,{ic:.091}],936:[.694,0,.778,{ic:.076}],937:[.716,0,.722,{ic:.047}],8211:[.312,-.236,.5,{ic:.065}],8212:[.312,-.236,1,{ic:.065}],8213:[.312,-.236,1,{ic:.065}],8215:[-.038,.114,.5,{ic:.065}],8216:[.694,-.471,.278,{ic:.058}],8217:[.694,-.471,.278,{ic:.057}],8220:[.694,-.471,.5,{ic:.114}],8221:[.694,-.471,.5],8260:[.75,.25,.5,{ic:.1}],8710:[.694,0,.833]}})),Ur=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifItalic=void 0;var t=$(),n=Hr();e.sansSerifItalic=(0,t.AddCSS)(n.sansSerifItalic,{913:{c:`A`},914:{c:`B`},917:{c:`E`},918:{c:`Z`},919:{c:`H`},921:{c:`I`},922:{c:`K`},924:{c:`M`},925:{c:`N`},927:{c:`O`},929:{c:`P`},932:{c:`T`},935:{c:`X`},8213:{c:`\\2014`},8215:{c:`_`},8260:{c:`/`},8710:{c:`\\394`}})})),Wr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerif=void 0,e.sansSerif={33:[.694,0,.319],34:[.694,-.471,.5],35:[.694,.194,.833],36:[.75,.056,.5],37:[.75,.056,.833],38:[.716,.022,.758],39:[.694,-.471,.278],40:[.75,.25,.389],41:[.75,.25,.389],42:[.75,-.306,.5],43:[.583,.082,.778],44:[.098,.125,.278],45:[.259,-.186,.333],46:[.098,0,.278],47:[.75,.25,.5],58:[.444,0,.278],59:[.444,.125,.278],61:[.37,-.13,.778],63:[.704,0,.472],64:[.704,.011,.667],91:[.75,.25,.289],93:[.75,.25,.289],94:[.694,-.527,.5],95:[-.038,.114,.5],126:[.327,-.193,.5],305:[.444,0,.239],567:[.444,.205,.267],768:[.694,-.527,0],769:[.694,-.527,0],770:[.694,-.527,0],771:[.677,-.543,0],772:[.631,-.552,0],774:[.694,-.508,0],775:[.68,-.576,0],776:[.68,-.582,0],778:[.694,-.527,0],779:[.694,-.527,0],780:[.654,-.487,0],913:[.694,0,.667],914:[.694,0,.667],915:[.691,0,.542],916:[.694,0,.833],917:[.691,0,.597],918:[.694,0,.611],919:[.694,0,.708],920:[.716,.021,.778],921:[.694,0,.278],922:[.694,0,.694],923:[.694,0,.611],924:[.694,0,.875],925:[.694,0,.708],926:[.688,0,.667],927:[.715,.022,.736],928:[.691,0,.708],929:[.694,0,.639],931:[.694,0,.722],932:[.688,0,.681],933:[.716,0,.778],934:[.694,0,.722],935:[.694,0,.667],936:[.694,0,.778],937:[.716,0,.722],8211:[.312,-.236,.5],8212:[.312,-.236,1],8213:[.312,-.236,1],8215:[-.038,.114,.5],8216:[.694,-.471,.278],8217:[.694,-.471,.278],8220:[.694,-.471,.5],8221:[.694,-.471,.5],8260:[.75,.25,.5],8710:[.694,0,.833]}})),Gr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerif=void 0;var t=$(),n=Wr();e.sansSerif=(0,t.AddCSS)(n.sansSerif,{913:{c:`A`},914:{c:`B`},917:{c:`E`},918:{c:`Z`},919:{c:`H`},921:{c:`I`},922:{c:`K`},924:{c:`M`},925:{c:`N`},927:{c:`O`},929:{c:`P`},932:{c:`T`},935:{c:`X`},8213:{c:`\\2014`},8215:{c:`_`},8260:{c:`/`},8710:{c:`\\394`}})})),Kr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.scriptBold=void 0,e.scriptBold={}})),qr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.scriptBold=void 0;var t=Kr();Object.defineProperty(e,"scriptBold",{enumerable:!0,get:function(){return t.scriptBold}})})),Jr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.script=void 0,e.script={}})),Yr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.script=void 0;var t=Jr();Object.defineProperty(e,"script",{enumerable:!0,get:function(){return t.script}})})),Xr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.smallop=void 0,e.smallop={40:[.85,.349,.458],41:[.85,.349,.458],47:[.85,.349,.578],91:[.85,.349,.417],92:[.85,.349,.578],93:[.85,.349,.417],123:[.85,.349,.583],125:[.85,.349,.583],710:[.744,-.551,.556],732:[.722,-.597,.556],770:[.744,-.551,0],771:[.722,-.597,0],8214:[.602,0,.778],8260:[.85,.349,.578],8593:[.6,0,.667],8595:[.6,0,.667],8657:[.599,0,.778],8659:[.6,0,.778],8719:[.75,.25,.944],8720:[.75,.25,.944],8721:[.75,.25,1.056],8730:[.85,.35,1,{ic:.02}],8739:[.627,.015,.333],8741:[.627,.015,.556],8747:[.805,.306,.472,{ic:.138}],8748:[.805,.306,.819,{ic:.138}],8749:[.805,.306,1.166,{ic:.138}],8750:[.805,.306,.472,{ic:.138}],8896:[.75,.249,.833],8897:[.75,.249,.833],8898:[.75,.249,.833],8899:[.75,.249,.833],8968:[.85,.349,.472],8969:[.85,.349,.472],8970:[.85,.349,.472],8971:[.85,.349,.472],9001:[.85,.35,.472],9002:[.85,.35,.472],9168:[.602,0,.667],10072:[.627,.015,.333],10216:[.85,.35,.472],10217:[.85,.35,.472],10752:[.75,.25,1.111],10753:[.75,.25,1.111],10754:[.75,.25,1.111],10756:[.75,.249,.833],10758:[.75,.249,.833],10764:[.805,.306,1.638,{ic:.138}],12296:[.85,.35,.472],12297:[.85,.35,.472]}})),Zr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.smallop=void 0;var t=$(),n=Xr();e.smallop=(0,t.AddCSS)(n.smallop,{8260:{c:`/`},9001:{c:`\\27E8`},9002:{c:`\\27E9`},10072:{c:`\\2223`},10764:{c:`\\222C\\222C`},12296:{c:`\\27E8`},12297:{c:`\\27E9`}})})),Qr=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.texCalligraphicBold=void 0,e.texCalligraphicBold={65:[.751,.049,.921,{ic:.068,sk:.224}],66:[.705,.017,.748,{sk:.16}],67:[.703,.02,.613,{sk:.16}],68:[.686,0,.892,{sk:.0958}],69:[.703,.016,.607,{ic:.02,sk:.128}],70:[.686,.03,.814,{ic:.116,sk:.128}],71:[.703,.113,.682,{sk:.128}],72:[.686,.048,.987,{sk:.128}],73:[.686,0,.642,{ic:.104,sk:.0319}],74:[.686,.114,.779,{ic:.158,sk:.192}],75:[.703,.017,.871,{sk:.0639}],76:[.703,.017,.788,{sk:.16}],77:[.703,.049,1.378,{sk:.16}],78:[.84,.049,.937,{ic:.168,sk:.0958}],79:[.703,.017,.906,{sk:.128}],80:[.686,.067,.81,{ic:.036,sk:.0958}],81:[.703,.146,.939,{sk:.128}],82:[.686,.017,.99,{sk:.0958}],83:[.703,.016,.696,{ic:.025,sk:.16}],84:[.72,.069,.644,{ic:.303,sk:.0319}],85:[.686,.024,.715,{ic:.056,sk:.0958}],86:[.686,.077,.737,{ic:.037,sk:.0319}],87:[.686,.077,1.169,{ic:.037,sk:.0958}],88:[.686,0,.817,{ic:.089,sk:.16}],89:[.686,.164,.759,{ic:.038,sk:.0958}],90:[.686,0,.818,{ic:.035,sk:.16}],305:[.452,.008,.394,{sk:.0319}],567:[.451,.201,.439,{sk:.0958}]}})),$r=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.texCalligraphicBold=void 0;var t=$(),n=Qr();e.texCalligraphicBold=(0,t.AddCSS)(n.texCalligraphicBold,{305:{f:`B`},567:{f:`B`}})})),ei=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.texCalligraphic=void 0,e.texCalligraphic={65:[.728,.05,.798,{ic:.021,sk:.194}],66:[.705,.022,.657,{sk:.139}],67:[.705,.025,.527,{sk:.139}],68:[.683,0,.771,{sk:.0833}],69:[.705,.022,.528,{ic:.036,sk:.111}],70:[.683,.032,.719,{ic:.11,sk:.111}],71:[.704,.119,.595,{sk:.111}],72:[.683,.048,.845,{sk:.111}],73:[.683,0,.545,{ic:.097,sk:.0278}],74:[.683,.119,.678,{ic:.161,sk:.167}],75:[.705,.022,.762,{sk:.0556}],76:[.705,.022,.69,{sk:.139}],77:[.705,.05,1.201,{sk:.139}],78:[.789,.05,.82,{ic:.159,sk:.0833}],79:[.705,.022,.796,{sk:.111}],80:[.683,.057,.696,{ic:.037,sk:.0833}],81:[.705,.131,.817,{sk:.111}],82:[.682,.022,.848,{sk:.0833}],83:[.705,.022,.606,{ic:.036,sk:.139}],84:[.717,.068,.545,{ic:.288,sk:.0278}],85:[.683,.028,.626,{ic:.061,sk:.0833}],86:[.683,.052,.613,{ic:.045,sk:.0278}],87:[.683,.053,.988,{ic:.046,sk:.0833}],88:[.683,0,.713,{ic:.094,sk:.139}],89:[.683,.143,.668,{ic:.046,sk:.0833}],90:[.683,0,.725,{ic:.042,sk:.139}]}})),ti=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.texCalligraphic=void 0;var t=ei();Object.defineProperty(e,"texCalligraphic",{enumerable:!0,get:function(){return t.texCalligraphic}})})),ni=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.texMathit=void 0,e.texMathit={65:[.716,0,.743],66:[.683,0,.704],67:[.705,.021,.716],68:[.683,0,.755],69:[.68,0,.678],70:[.68,0,.653],71:[.705,.022,.774],72:[.683,0,.743],73:[.683,0,.386],74:[.683,.021,.525],75:[.683,0,.769],76:[.683,0,.627],77:[.683,0,.897],78:[.683,0,.743],79:[.704,.022,.767],80:[.683,0,.678],81:[.704,.194,.767],82:[.683,.022,.729],83:[.705,.022,.562],84:[.677,0,.716],85:[.683,.022,.743],86:[.683,.022,.743],87:[.683,.022,.999],88:[.683,0,.743],89:[.683,0,.743],90:[.683,0,.613],97:[.442,.011,.511],98:[.694,.011,.46],99:[.441,.01,.46],100:[.694,.011,.511],101:[.442,.01,.46],102:[.705,.204,.307],103:[.442,.205,.46],104:[.694,.011,.511],105:[.656,.01,.307],106:[.656,.204,.307],107:[.694,.011,.46],108:[.694,.011,.256],109:[.442,.011,.818],110:[.442,.011,.562],111:[.442,.011,.511],112:[.442,.194,.511],113:[.442,.194,.46],114:[.442,.011,.422],115:[.442,.011,.409],116:[.626,.011,.332],117:[.441,.011,.537],118:[.443,.01,.46],119:[.443,.011,.664],120:[.442,.011,.464],121:[.441,.205,.486],122:[.442,.011,.409]}})),ri=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.texMathit=void 0;var t=ni();Object.defineProperty(e,"texMathit",{enumerable:!0,get:function(){return t.texMathit}})})),ii=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.texOldstyleBold=void 0,e.texOldstyleBold={48:[.46,.017,.575],49:[.461,0,.575],50:[.46,0,.575],51:[.461,.211,.575],52:[.469,.194,.575],53:[.461,.211,.575],54:[.66,.017,.575],55:[.476,.211,.575],56:[.661,.017,.575],57:[.461,.21,.575],65:[.751,.049,.921,{ic:.068,sk:.224}],66:[.705,.017,.748,{sk:.16}],67:[.703,.02,.613,{sk:.16}],68:[.686,0,.892,{sk:.0958}],69:[.703,.016,.607,{ic:.02,sk:.128}],70:[.686,.03,.814,{ic:.116,sk:.128}],71:[.703,.113,.682,{sk:.128}],72:[.686,.048,.987,{sk:.128}],73:[.686,0,.642,{ic:.104,sk:.0319}],74:[.686,.114,.779,{ic:.158,sk:.192}],75:[.703,.017,.871,{sk:.0639}],76:[.703,.017,.788,{sk:.16}],77:[.703,.049,1.378,{sk:.16}],78:[.84,.049,.937,{ic:.168,sk:.0958}],79:[.703,.017,.906,{sk:.128}],80:[.686,.067,.81,{ic:.036,sk:.0958}],81:[.703,.146,.939,{sk:.128}],82:[.686,.017,.99,{sk:.0958}],83:[.703,.016,.696,{ic:.025,sk:.16}],84:[.72,.069,.644,{ic:.303,sk:.0319}],85:[.686,.024,.715,{ic:.056,sk:.0958}],86:[.686,.077,.737,{ic:.037,sk:.0319}],87:[.686,.077,1.169,{ic:.037,sk:.0958}],88:[.686,0,.817,{ic:.089,sk:.16}],89:[.686,.164,.759,{ic:.038,sk:.0958}],90:[.686,0,.818,{ic:.035,sk:.16}]}})),ai=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.texOldstyleBold=void 0;var t=ii();Object.defineProperty(e,"texOldstyleBold",{enumerable:!0,get:function(){return t.texOldstyleBold}})})),oi=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.texOldstyle=void 0,e.texOldstyle={48:[.452,.022,.5],49:[.453,0,.5],50:[.453,0,.5],51:[.452,.216,.5],52:[.464,.194,.5],53:[.453,.216,.5],54:[.665,.022,.5],55:[.463,.216,.5],56:[.666,.021,.5],57:[.453,.216,.5],65:[.728,.05,.798,{ic:.021,sk:.194}],66:[.705,.022,.657,{sk:.139}],67:[.705,.025,.527,{sk:.139}],68:[.683,0,.771,{sk:.0833}],69:[.705,.022,.528,{ic:.036,sk:.111}],70:[.683,.032,.719,{ic:.11,sk:.111}],71:[.704,.119,.595,{sk:.111}],72:[.683,.048,.845,{sk:.111}],73:[.683,0,.545,{ic:.097,sk:.0278}],74:[.683,.119,.678,{ic:.161,sk:.167}],75:[.705,.022,.762,{sk:.0556}],76:[.705,.022,.69,{sk:.139}],77:[.705,.05,1.201,{sk:.139}],78:[.789,.05,.82,{ic:.159,sk:.0833}],79:[.705,.022,.796,{sk:.111}],80:[.683,.057,.696,{ic:.037,sk:.0833}],81:[.705,.131,.817,{sk:.111}],82:[.682,.022,.848,{sk:.0833}],83:[.705,.022,.606,{ic:.036,sk:.139}],84:[.717,.068,.545,{ic:.288,sk:.0278}],85:[.683,.028,.626,{ic:.061,sk:.0833}],86:[.683,.052,.613,{ic:.045,sk:.0278}],87:[.683,.053,.988,{ic:.046,sk:.0833}],88:[.683,0,.713,{ic:.094,sk:.139}],89:[.683,.143,.668,{ic:.046,sk:.0833}],90:[.683,0,.725,{ic:.042,sk:.139}]}})),si=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.texOldstyle=void 0;var t=oi();Object.defineProperty(e,"texOldstyle",{enumerable:!0,get:function(){return t.texOldstyle}})})),ci=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.texSize3=void 0,e.texSize3={40:[1.45,.949,.736],41:[1.45,.949,.736],47:[1.45,.949,1.044],91:[1.45,.949,.528],92:[1.45,.949,1.044],93:[1.45,.949,.528],123:[1.45,.949,.75],125:[1.45,.949,.75],710:[.772,-.564,1.444],732:[.749,-.61,1.444],770:[.772,-.564,0],771:[.749,-.61,0],8260:[1.45,.949,1.044],8730:[1.45,.95,1,{ic:.02}],8968:[1.45,.949,.583],8969:[1.45,.949,.583],8970:[1.45,.949,.583],8971:[1.45,.949,.583],9001:[1.45,.95,.75],9002:[1.45,.949,.75],10216:[1.45,.95,.75],10217:[1.45,.949,.75],12296:[1.45,.95,.75],12297:[1.45,.949,.75]}})),li=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.texSize3=void 0;var t=$(),n=ci();e.texSize3=(0,t.AddCSS)(n.texSize3,{8260:{c:`/`},9001:{c:`\\27E8`},9002:{c:`\\27E9`},12296:{c:`\\27E8`},12297:{c:`\\27E9`}})})),ui=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.texSize4=void 0,e.texSize4={40:[1.75,1.249,.792],41:[1.75,1.249,.792],47:[1.75,1.249,1.278],91:[1.75,1.249,.583],92:[1.75,1.249,1.278],93:[1.75,1.249,.583],123:[1.75,1.249,.806],125:[1.75,1.249,.806],710:[.845,-.561,1.889,{ic:.013}],732:[.823,-.583,1.889],770:[.845,-.561,0,{ic:.013}],771:[.823,-.583,0],8260:[1.75,1.249,1.278],8730:[1.75,1.25,1,{ic:.02}],8968:[1.75,1.249,.639],8969:[1.75,1.249,.639],8970:[1.75,1.249,.639],8971:[1.75,1.249,.639],9001:[1.75,1.248,.806],9002:[1.75,1.248,.806],9115:[1.154,.655,.875],9116:[.61,.01,.875],9117:[1.165,.644,.875],9118:[1.154,.655,.875],9119:[.61,.01,.875],9120:[1.165,.644,.875],9121:[1.154,.645,.667],9122:[.602,0,.667],9123:[1.155,.644,.667],9124:[1.154,.645,.667],9125:[.602,0,.667],9126:[1.155,.644,.667],9127:[.899,.01,.889],9128:[1.16,.66,.889],9129:[.01,.899,.889],9130:[.29,.015,.889],9131:[.899,.01,.889],9132:[1.16,.66,.889],9133:[.01,.899,.889],9143:[.935,.885,1.056],10216:[1.75,1.248,.806],10217:[1.75,1.248,.806],12296:[1.75,1.248,.806],12297:[1.75,1.248,.806],57344:[.625,.014,1.056],57345:[.605,.014,1.056,{ic:.02}],57680:[.12,.213,.45,{ic:.01}],57681:[.12,.213,.45,{ic:.024}],57682:[.333,0,.45,{ic:.01}],57683:[.333,0,.45,{ic:.024}],57684:[.32,.2,.4,{ic:.01}],57685:[.333,0,.9,{ic:.01}],57686:[.12,.213,.9,{ic:.01}]}})),di=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.texSize4=void 0;var t=$(),n=ui();e.texSize4=(0,t.AddCSS)(n.texSize4,{8260:{c:`/`},9001:{c:`\\27E8`},9002:{c:`\\27E9`},12296:{c:`\\27E8`},12297:{c:`\\27E9`},57685:{c:`\\E153\\E152`},57686:{c:`\\E151\\E150`}})})),fi=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.texVariant=void 0,e.texVariant={710:[.845,-.561,2.333,{ic:.013}],732:[.899,-.628,2.333],770:[.845,-.561,0,{ic:.013}],771:[.899,-.628,0],1008:[.434,.006,.667,{ic:.067}],8463:[.695,.013,.54,{ic:.022}],8592:[.437,-.064,.5],8594:[.437,-.064,.5],8652:[.514,.014,1],8708:[.86,.166,.556],8709:[.587,0,.778],8722:[.27,-.23,.5],8726:[.43,.023,.778],8733:[.472,-.028,.778],8739:[.43,.023,.222],8740:[.43,.023,.222,{ic:.018}],8741:[.431,.023,.389],8742:[.431,.024,.389,{ic:.018}],8764:[.365,-.132,.778],8776:[.481,-.05,.778],8808:[.752,.284,.778],8809:[.752,.284,.778],8816:[.919,.421,.778],8817:[.919,.421,.778],8840:[.828,.33,.778],8841:[.828,.33,.778],8842:[.634,.255,.778],8843:[.634,.254,.778],8872:[.694,0,.611],8901:[.189,0,.278],8994:[.378,-.122,.778],8995:[.378,-.143,.778],9651:[.575,.02,.722],9661:[.576,.019,.722],10887:[.801,.303,.778],10888:[.801,.303,.778],10955:[.752,.332,.778],10956:[.752,.333,.778]}})),pi=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.texVariant=void 0;var t=$(),n=fi();e.texVariant=(0,t.AddCSS)(n.texVariant,{1008:{c:`\\E009`},8463:{f:``},8740:{c:`\\E006`},8742:{c:`\\E007`},8808:{c:`\\E00C`},8809:{c:`\\E00D`},8816:{c:`\\E011`},8817:{c:`\\E00E`},8840:{c:`\\E016`},8841:{c:`\\E018`},8842:{c:`\\E01A`},8843:{c:`\\E01B`},10887:{c:`\\E010`},10888:{c:`\\E00F`},10955:{c:`\\E017`},10956:{c:`\\E019`}})})),mi=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.delimiters=e.VSIZES=e.HDW3=e.HDW2=e.HDW1=void 0;var t=pn();e.HDW1=[.75,.25,.875],e.HDW2=[.85,.349,.667],e.HDW3=[.583,.082,.5],e.VSIZES=[1,1.2,1.8,2.4,3];var n={c:47,dir:t.V,sizes:e.VSIZES},r={c:175,dir:t.H,sizes:[.5],stretch:[0,175],HDW:[.59,-.544,.5]},i={c:710,dir:t.H,sizes:[.5,.556,1,1.444,1.889]},a={c:732,dir:t.H,sizes:[.5,.556,1,1.444,1.889]},o={c:8211,dir:t.H,sizes:[.5],stretch:[0,8211],HDW:[.285,-.248,.5]},s={c:8592,dir:t.H,sizes:[1],stretch:[8592,8722],HDW:e.HDW3},c={c:8594,dir:t.H,sizes:[1],stretch:[0,8722,8594],HDW:e.HDW3},l={c:8596,dir:t.H,sizes:[1],stretch:[8592,8722,8594],HDW:e.HDW3},u={c:8612,dir:t.H,stretch:[8592,8722,8739],HDW:e.HDW3,min:1.278},d={c:8614,dir:t.H,sizes:[1],stretch:[8739,8722,8594],HDW:e.HDW3},f={c:8656,dir:t.H,sizes:[1],stretch:[8656,61],HDW:e.HDW3},p={c:8658,dir:t.H,sizes:[1],stretch:[0,61,8658],HDW:e.HDW3},m={c:8660,dir:t.H,sizes:[1],stretch:[8656,61,8658],HDW:e.HDW3},h={c:8722,dir:t.H,sizes:[.778],stretch:[0,8722],HDW:e.HDW3},g={c:8739,dir:t.V,sizes:[1],stretch:[0,8739],HDW:[.627,.015,.333]},_={c:9180,dir:t.H,sizes:[.778,1],schar:[8994,8994],variants:[5,0],stretch:[57680,57684,57681],HDW:[.32,.2,.5]},v={c:9181,dir:t.H,sizes:[.778,1],schar:[8995,8995],variants:[5,0],stretch:[57682,57684,57683],HDW:[.32,.2,.5]},y={c:9182,dir:t.H,stretch:[57680,57684,57681,57685],HDW:[.32,.2,.5],min:1.8},b={c:9183,dir:t.H,stretch:[57682,57684,57683,57686],HDW:[.32,.2,.5],min:1.8},x={c:10216,dir:t.V,sizes:e.VSIZES},S={c:10217,dir:t.V,sizes:e.VSIZES},C={c:10502,dir:t.H,stretch:[8656,61,8739],HDW:e.HDW3,min:1.278},w={c:10503,dir:t.H,stretch:[8872,61,8658],HDW:e.HDW3,min:1.278};e.delimiters={40:{dir:t.V,sizes:e.VSIZES,stretch:[9115,9116,9117],HDW:[.85,.349,.875]},41:{dir:t.V,sizes:e.VSIZES,stretch:[9118,9119,9120],HDW:[.85,.349,.875]},45:h,47:n,61:{dir:t.H,sizes:[.778],stretch:[0,61],HDW:e.HDW3},91:{dir:t.V,sizes:e.VSIZES,stretch:[9121,9122,9123],HDW:e.HDW2},92:{dir:t.V,sizes:e.VSIZES},93:{dir:t.V,sizes:e.VSIZES,stretch:[9124,9125,9126],HDW:e.HDW2},94:i,95:o,123:{dir:t.V,sizes:e.VSIZES,stretch:[9127,9130,9129,9128],HDW:[.85,.349,.889]},124:{dir:t.V,sizes:[1],stretch:[0,8739],HDW:[.75,.25,.333]},125:{dir:t.V,sizes:e.VSIZES,stretch:[9131,9130,9133,9132],HDW:[.85,.349,.889]},126:a,175:r,710:i,713:r,732:a,770:i,771:a,818:o,8211:o,8212:o,8213:o,8214:{dir:t.V,sizes:[.602,1],schar:[0,8741],variants:[1,0],stretch:[0,8741],HDW:[.602,0,.556]},8215:o,8254:r,8407:c,8592:s,8593:{dir:t.V,sizes:[.888],stretch:[8593,9168],HDW:[.6,0,.667]},8594:c,8595:{dir:t.V,sizes:[.888],stretch:[0,9168,8595],HDW:[.6,0,.667]},8596:l,8597:{dir:t.V,sizes:[1.044],stretch:[8593,9168,8595],HDW:e.HDW1},8606:{dir:t.H,sizes:[1],stretch:[8606,8722],HDW:e.HDW3},8608:{dir:t.H,sizes:[1],stretch:[0,8722,8608],HDW:e.HDW3},8612:u,8613:{dir:t.V,stretch:[8593,9168,8869],HDW:e.HDW1,min:1.555},8614:d,8615:{dir:t.V,stretch:[8868,9168,8595],HDW:e.HDW1,min:1.555},8624:{dir:t.V,sizes:[.722],stretch:[8624,9168],HDW:e.HDW1},8625:{dir:t.V,sizes:[.722],stretch:[8625,9168],HDW:e.HDW1},8636:{dir:t.H,sizes:[1],stretch:[8636,8722],HDW:e.HDW3},8637:{dir:t.H,sizes:[1],stretch:[8637,8722],HDW:e.HDW3},8638:{dir:t.V,sizes:[.888],stretch:[8638,9168],HDW:e.HDW1},8639:{dir:t.V,sizes:[.888],stretch:[8639,9168],HDW:e.HDW1},8640:{dir:t.H,sizes:[1],stretch:[0,8722,8640],HDW:e.HDW3},8641:{dir:t.H,sizes:[1],stretch:[0,8722,8641],HDW:e.HDW3},8642:{dir:t.V,sizes:[.888],stretch:[0,9168,8642],HDW:e.HDW1},8643:{dir:t.V,sizes:[.888],stretch:[0,9168,8643],HDW:e.HDW1},8656:f,8657:{dir:t.V,sizes:[.888],stretch:[8657,8214],HDW:[.599,0,.778]},8658:p,8659:{dir:t.V,sizes:[.888],stretch:[0,8214,8659],HDW:[.6,0,.778]},8660:m,8661:{dir:t.V,sizes:[1.044],stretch:[8657,8214,8659],HDW:[.75,.25,.778]},8666:{dir:t.H,sizes:[1],stretch:[8666,8801],HDW:[.464,-.036,.5]},8667:{dir:t.H,sizes:[1],stretch:[0,8801,8667],HDW:[.464,-.036,.5]},8722:h,8725:n,8730:{dir:t.V,sizes:e.VSIZES,stretch:[57345,57344,9143],fullExt:[.65,2.3],HDW:[.85,.35,1.056]},8739:g,8741:{dir:t.V,sizes:[1],stretch:[0,8741],HDW:[.627,.015,.556]},8968:{dir:t.V,sizes:e.VSIZES,stretch:[9121,9122],HDW:e.HDW2},8969:{dir:t.V,sizes:e.VSIZES,stretch:[9124,9125],HDW:e.HDW2},8970:{dir:t.V,sizes:e.VSIZES,stretch:[0,9122,9123],HDW:e.HDW2},8971:{dir:t.V,sizes:e.VSIZES,stretch:[0,9125,9126],HDW:e.HDW2},8978:_,8994:_,8995:v,9001:x,9002:S,9130:{dir:t.V,sizes:[.32],stretch:[9130,9130,9130],HDW:[.29,.015,.889]},9135:o,9136:{dir:t.V,sizes:[.989],stretch:[9127,9130,9133],HDW:[.75,.25,.889]},9137:{dir:t.V,sizes:[.989],stretch:[9131,9130,9129],HDW:[.75,.25,.889]},9140:{dir:t.H,stretch:[9484,8722,9488],HDW:e.HDW3,min:1},9141:{dir:t.H,stretch:[9492,8722,9496],HDW:e.HDW3,min:1},9168:{dir:t.V,sizes:[.602,1],schar:[0,8739],variants:[1,0],stretch:[0,8739],HDW:[.602,0,.333]},9180:_,9181:v,9182:y,9183:b,9184:{dir:t.H,stretch:[714,713,715],HDW:[.59,-.544,.5],min:1},9185:{dir:t.H,stretch:[715,713,714],HDW:[.59,-.544,.5],min:1},9472:o,10072:g,10216:x,10217:S,10222:{dir:t.V,sizes:[.989],stretch:[9127,9130,9129],HDW:[.75,.25,.889]},10223:{dir:t.V,sizes:[.989],stretch:[9131,9130,9133],HDW:[.75,.25,.889]},10229:s,10230:c,10231:l,10232:f,10233:p,10234:m,10235:u,10236:d,10237:C,10238:w,10502:C,10503:w,10574:{dir:t.H,stretch:[8636,8722,8640],HDW:e.HDW3,min:2},10575:{dir:t.V,stretch:[8638,9168,8642],HDW:e.HDW1,min:1.776},10576:{dir:t.H,stretch:[8637,8722,8641],HDW:e.HDW3,min:2},10577:{dir:t.V,stretch:[8639,9168,8643],HDW:e.HDW1,min:.5},10586:{dir:t.H,stretch:[8636,8722,8739],HDW:e.HDW3,min:1.278},10587:{dir:t.H,stretch:[8739,8722,8640],HDW:e.HDW3,min:1.278},10588:{dir:t.V,stretch:[8638,9168,8869],HDW:e.HDW1,min:1.556},10589:{dir:t.V,stretch:[8868,9168,8642],HDW:e.HDW1,min:1.556},10590:{dir:t.H,stretch:[8637,8722,8739],HDW:e.HDW3,min:1.278},10591:{dir:t.H,stretch:[8739,8722,8641],HDW:e.HDW3,min:1.278},10592:{dir:t.V,stretch:[8639,9168,8869],HDW:e.HDW1,min:1.776},10593:{dir:t.V,stretch:[8868,9168,8643],HDW:e.HDW1,min:1.776},12296:x,12297:S,65079:y,65080:b}})),hi=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.TeXFont=void 0;var r=$(),i=yr(),a=xr(),o=Cr(),s=Tr(),c=Dr(),l=kr(),u=jr(),d=Nr(),f=Fr(),p=Lr(),m=zr(),h=Vr(),g=Ur(),_=Gr(),v=qr(),y=Yr(),b=Zr(),x=$r(),S=ti(),C=ri(),w=ai(),T=si(),E=li(),D=di(),O=pi(),k=mi();e.TeXFont=function(e){t(i,e);function i(){return e!==null&&e.apply(this,arguments)||this}return i.defaultCssFamilyPrefix=`MJXZERO`,i.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`},i.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`},i.defaultDelimiters=k.delimiters,i.defaultChars={normal:p.normal,bold:o.bold,italic:u.italic,"bold-italic":a.boldItalic,"double-struck":s.doubleStruck,fraktur:l.fraktur,"bold-fraktur":c.frakturBold,script:y.script,"bold-script":v.scriptBold,"sans-serif":_.sansSerif,"bold-sans-serif":h.sansSerifBold,"sans-serif-italic":g.sansSerifItalic,"sans-serif-bold-italic":m.sansSerifBoldItalic,monospace:f.monospace,"-smallop":b.smallop,"-largeop":d.largeop,"-size3":E.texSize3,"-size4":D.texSize4,"-tex-calligraphic":S.texCalligraphic,"-tex-bold-calligraphic":x.texCalligraphicBold,"-tex-mathit":C.texMathit,"-tex-oldstyle":T.texOldstyle,"-tex-bold-oldstyle":w.texOldstyleBold,"-tex-variant":O.texVariant},i.defaultStyles=n(n({},r.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`}}),i.defaultFonts=n(n({},r.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")`}}),i}((0,i.CommonTeXFontMixin)(r.CHTMLFontData))})),gi=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},o=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.CHTML=void 0;var s=ln(),c=cn(),l=_r(),u=vr(),d=hi(),f=a(q()),p=P();e.CHTML=function(e){t(r,e);function r(t){t===void 0&&(t=null);var n=e.call(this,t,l.CHTMLWrapperFactory,d.TeXFont)||this;return n.chtmlStyles=null,n.font.adaptiveCSS(n.options.adaptiveCSS),n.wrapperUsage=new u.Usage,n}return r.prototype.escaped=function(e,t){return this.setDocument(t),this.html(`span`,{},[this.text(e.math)])},r.prototype.styleSheet=function(t){if(this.chtmlStyles){if(this.options.adaptiveCSS){var n=new c.CssStyles;this.addWrapperStyles(n),this.updateFontStyles(n),this.adaptor.insertRules(this.chtmlStyles,n.getStyleRules())}return this.chtmlStyles}var i=this.chtmlStyles=e.prototype.styleSheet.call(this,t);return this.adaptor.setAttribute(i,`id`,r.STYLESHEETID),this.wrapperUsage.update(),i},r.prototype.updateFontStyles=function(e){e.addStyles(this.font.updateStyles({}))},r.prototype.addWrapperStyles=function(t){var n,r;if(!this.options.adaptiveCSS){e.prototype.addWrapperStyles.call(this,t);return}try{for(var i=o(this.wrapperUsage.update()),a=i.next();!a.done;a=i.next()){var s=a.value,c=this.factory.getNodeClass(s);c&&this.addClassStyles(c,t)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},r.prototype.addClassStyles=function(t,n){var r,i=t;i.autoStyle&&i.kind!==`unknown`&&n.addStyles((r={},r[`mjx-`+i.kind]={display:`inline-block`,"text-align":`left`},r)),this.wrapperUsage.add(i.kind),e.prototype.addClassStyles.call(this,t,n)},r.prototype.processMath=function(e,t){this.factory.wrap(e).toCHTML(t)},r.prototype.clearCache=function(){this.cssStyles.clear(),this.font.clearCache(),this.wrapperUsage.clear(),this.chtmlStyles=null},r.prototype.reset=function(){this.clearCache()},r.prototype.unknownText=function(e,t,n){n===void 0&&(n=null);var r={},i=100/this.math.metrics.scale;if(i!==100&&(r[`font-size`]=this.fixed(i,1)+`%`,r.padding=f.em(75/i)+` 0 `+f.em(20/i)+` 0`),t!==`-explicitFont`){var a=(0,p.unicodeChars)(e);(a.length!==1||a[0]<119808||a[0]>120831)&&this.cssFontStyles(this.font.getCssFont(t),r)}if(n!==null){var o=this.math.metrics;r.width=Math.round(n*o.em*o.scale)+`px`}return this.html(`mjx-utext`,{variant:t,style:r},[this.text(e)])},r.prototype.measureTextNode=function(e){var t=this.adaptor,n=t.clone(e);t.setStyle(n,`font-family`,t.getStyle(n,`font-family`).replace(/MJXZERO, /g,``));var r=this.html(`mjx-measure-text`,{style:{position:`absolute`,"white-space":`nowrap`}},[n]);t.append(t.parent(this.math.start.node),this.container),t.append(this.container,r);var i=t.nodeSize(n,this.math.metrics.em)[0]/this.math.metrics.scale;return t.remove(this.container),t.remove(r),{w:i,h:.75,d:.2}},r.NAME=`CHTML`,r.OPTIONS=n(n({},s.CommonOutputJax.OPTIONS),{adaptiveCSS:!0,matchFontHeight:!0}),r.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`},"_::-webkit-full-page-media, _:future, :root mjx-container":{"will-change":`opacity`}},r.STYLESHEETID=`MJX-CHTML-styles`,r}(s.CommonOutputJax)})),_i=n(),vi=y(),yi=Le(),bi=Je(),xi=sn(),Si=p(),Ci=gi(),wi=(0,vi.liteAdaptor)();(0,yi.RegisterHTMLHandler)(wi);var Ti=new bi.TeX({packages:xi.AllPackages,maxMacros:1e3}),Ei=new Ci.CHTML({fontURL:t(`mathjax/fonts`),adaptiveCSS:!1}),Di=Si.mathjax.document(``,{InputJax:Ti,OutputJax:Ei});function Oi(e,t){if(!(e instanceof _i.LiteElement))throw TypeError(`MathJax ${t} did not produce an element`);return e}function ki(e,t){let n=Oi(Di.convert(e,{display:t}),`conversion`),r=wi.outerHTML(n);return wi.remove(n),r}function Ai(){let e=Di.outputJax.styleSheet(Di);return wi.textContent(Oi(e,`stylesheet`))}export{ki as convertLatex,Ai as mathJaxStyles};