writefreely/static/js/mathjax/output/svg.js

1 line
172 KiB
JavaScript

!function(r){var o={};function n(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}n.m=r,n.c=o,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=73)}([function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),b=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},g=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s};Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(19),a=r(13),l=(i=s.CommonWrapper,n(h,i),h.prototype.toSVG=function(t){this.addChildren(this.standardSVGnode(t))},h.prototype.addChildren=function(t){var e,r,o=0;try{for(var n=b(this.childNodes),i=n.next();!i.done;i=n.next()){var s=i.value;s.toSVG(t),s.element&&s.place(o+s.bbox.L*s.bbox.rscale,0),o+=(s.bbox.L+s.bbox.w+s.bbox.R)*s.bbox.rscale}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},h.prototype.standardSVGnode=function(t){var e=this.createSVGnode(t);return this.handleStyles(),this.handleScale(),this.handleColor(),this.handleAttributes(),e},h.prototype.createSVGnode=function(t){var e=this.node.attributes.get("href");if(e){t=this.adaptor.append(t,this.svg("a",{href:e}));var r=this.getBBox(),o=r.h,n=r.d,i=r.w;this.adaptor.append(t,this.svg("rect",{"data-hitbox":!0,fill:"none",stroke:"none","pointer-events":"all",width:this.fixed(i),height:this.fixed(o+n),y:this.fixed(-n)}))}return this.element=this.adaptor.append(t,this.svg("g",{"data-mml-node":this.node.kind})),this.element},h.prototype.handleStyles=function(){if(this.styles){var t=this.styles.cssText;t&&this.adaptor.setAttribute(this.element,"style",t)}},h.prototype.handleScale=function(){if(1!==this.bbox.rscale){var t="scale("+this.fixed(this.bbox.rscale/1e3,3)+")";this.adaptor.setAttribute(this.element,"transform",t)}},h.prototype.handleColor=function(){var t=this.adaptor,e=this.node.attributes,r=e.getExplicit("mathcolor"),o=e.getExplicit("color"),n=e.getExplicit("mathbackground"),i=e.getExplicit("background");if((r||o)&&(t.setAttribute(this.element,"fill",r||o),t.setAttribute(this.element,"stroke",r||o)),n||i){var s=this.getBBox(),a=s.h,l=s.d,h=s.w,c=this.svg("rect",{fill:n||i,x:0,y:this.fixed(-l),width:this.fixed(h),height:this.fixed(a+l),"data-bgcolor":!0}),u=t.firstChild(this.element);u?t.insert(c,u):t.append(this.element,c)}},h.prototype.handleAttributes=function(){var e,t,r=this.node.attributes,o=r.getAllDefaults(),n=h.skipAttributes;try{for(var i=b(r.getExplicitNames()),s=i.next();!s.done;s=i.next()){var a=s.value;!1!==n[a]&&(a in o||n[a]||this.adaptor.hasAttribute(this.element,a))||this.adaptor.setAttribute(this.element,a,r.getExplicit(a))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}r.get("class")&&this.adaptor.addClass(this.element,r.get("class"))},h.prototype.place=function(t,e,r){if(void 0===r&&(r=null),t||e){r=r||this.element;var o=this.adaptor.getAttribute(r,"transform")||"";o="translate("+this.fixed(t)+", "+this.fixed(e)+")"+(o?" "+o:""),this.adaptor.setAttribute(r,"transform",o)}},h.prototype.placeChar=function(t,e,r,o,n){var i,s;void 0===n&&(n=null),null===n&&(n=this.variant);var a=t.toString(16).toUpperCase(),l=g(this.getVariantChar(n,t),4),h=(l[0],l[1],l[2]),c=l[3];if("p"in c){var u=c.p?"M"+c.p+"Z":"";this.place(e,r,this.adaptor.append(o,this.charNode(n,a,u)))}else if("c"in c){var p=this.adaptor.append(o,this.svg("g",{"data-c":a}));this.place(e,r,p),e=0;try{for(var d=b(this.unicodeChars(c.c)),f=d.next();!f.done;f=d.next()){var y=f.value;e+=this.placeChar(y,e,r,p,n)}}catch(t){i={error:t}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}}else if(c.unknown){var m=String.fromCharCode(t),v=this.adaptor.append(o,this.jax.unknownText(m,n));return this.place(e,r,v),this.jax.measureTextNodeWithCache(v,m,n).w}return h},h.prototype.charNode=function(t,e,r){return"none"!==this.jax.options.fontCache?this.useNode(t,e,r):this.pathNode(e,r)},h.prototype.pathNode=function(t,e){return this.svg("path",{"data-c":t,d:e})},h.prototype.useNode=function(t,e,r){var o=this.svg("use"),n="#"+this.jax.fontCache.cachePath(t,e,r);return this.adaptor.setAttribute(o,"xlink:href",n,a.XLINKNS),o},h.prototype.drawBBox=function(){var t=this.getBBox(),e=t.w,r=t.h,o=t.d,n=this.svg("g",{style:{opacity:.25}},[this.svg("rect",{fill:"red",height:this.fixed(r),width:this.fixed(e)}),this.svg("rect",{fill:"green",height:this.fixed(o),width:this.fixed(e),y:this.fixed(-o)})]),i=this.element||this.parent.element;this.adaptor.append(i,n)},h.prototype.html=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r=[]),this.jax.html(t,e,r)},h.prototype.svg=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r=[]),this.jax.svg(t,e,r)},h.prototype.text=function(t){return this.jax.text(t)},h.prototype.createMo=function(t){return i.prototype.createMo.call(this,t)},h.prototype.coreMO=function(){return i.prototype.coreMO.call(this)},h.prototype.fixed=function(t,e){return void 0===e&&(e=1),this.jax.fixed(1e3*t,e)},h.kind="unknown",h);function h(){var t=null!==i&&i.apply(this,arguments)||this;return t.element=null,t}e.SVGWrapper=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(9);e.BBoxStyleAdjust=[["borderTopWidth","h"],["borderRightWidth","w"],["borderBottomWidth","d"],["borderLeftWidth","w",0],["paddingTop","h"],["paddingRight","w"],["paddingBottom","d"],["paddingLeft","w",0]];var n=(i.zero=function(){return new i({h:0,d:0,w:0})},i.empty=function(){return new i},i.prototype.empty=function(){return this.w=0,this.h=this.d=-o.BIGDIMEN,this},i.prototype.clean=function(){this.w===-o.BIGDIMEN&&(this.w=0),this.h===-o.BIGDIMEN&&(this.h=0),this.d===-o.BIGDIMEN&&(this.d=0)},i.prototype.rescale=function(t){this.w*=t,this.h*=t,this.d*=t},i.prototype.combine=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0);var o=t.rscale,n=e+o*(t.w+t.L+t.R),i=r+o*t.h,s=o*t.d-r;n>this.w&&(this.w=n),i>this.h&&(this.h=i),s>this.d&&(this.d=s)},i.prototype.append=function(t){var e=t.rscale;this.w+=e*(t.w+t.L+t.R),e*t.h>this.h&&(this.h=e*t.h),e*t.d>this.d&&(this.d=e*t.d)},i.prototype.updateFrom=function(t){this.h=t.h,this.d=t.d,this.w=t.w,t.pwidth&&(this.pwidth=t.pwidth)},i.fullWidth="100%",i);function i(t){void 0===t&&(t={w:0,h:-o.BIGDIMEN,d:-o.BIGDIMEN}),this.w=t.w||0,this.h="h"in t?t.h:-o.BIGDIMEN,this.d="d"in t?t.d:-o.BIGDIMEN,this.L=this.R=this.ic=this.sk=0,this.scale=this.rscale=1,this.pwidth=""}e.BBox=n},function(t,e,r){"use strict";var s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},a=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t},l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.V=1,e.H=2,e.NOSTRETCH={dir:0};var n=(i.charOptions=function(t,e){var r=t[e];return 3===r.length&&(r[3]={}),r[3]},i.prototype.createVariant=function(t,e,r){void 0===e&&(e=null),void 0===r&&(r=null);var o={linked:[],chars:e?Object.create(this.variant[e].chars):{}};r&&this.variant[r]&&(Object.assign(o.chars,this.variant[r].chars),this.variant[r].linked.push(o.chars),o.chars=Object.create(o.chars)),this.variant[t]=o},i.prototype.createVariants=function(t){var e,r;try{for(var o=l(t),n=o.next();!n.done;n=o.next()){var i=n.value;this.createVariant(i[0],i[1],i[2])}}catch(t){e={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},i.prototype.defineChars=function(t,e){var r,o,n=this.variant[t];Object.assign(n.chars,e);try{for(var i=l(n.linked),s=i.next();!s.done;s=i.next()){var a=s.value;Object.assign(a,e)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},i.prototype.defineDelimiters=function(t){Object.assign(this.delimiters,t)},i.prototype.defineRemap=function(t,e){this.remapChars.hasOwnProperty(t)||(this.remapChars[t]={}),Object.assign(this.remapChars[t],e)},i.prototype.getDelimiter=function(t){return this.delimiters[t]},i.prototype.getSizeVariant=function(t,e){return this.delimiters[t].variants&&(e=this.delimiters[t].variants[e]),this.sizeVariants[e]},i.prototype.getChar=function(t,e){return this.variant[t].chars[e]},i.prototype.getVariant=function(t){return this.variant[t]},i.prototype.getCssFont=function(t){return this.cssFontMap[t]||["serif",!1,!1]},i.prototype.getRemappedChar=function(t,e){return(this.remapChars[t]||{})[e]},i.OPTIONS={},i.defaultVariants=[["normal"],["bold","normal"],["italic","normal"],["bold-italic","italic","bold"],["double-struck","bold"],["fraktur","normal"],["bold-fraktur","bold","fraktur"],["script","normal"],["bold-script","bold","script"],["sans-serif","normal"],["bold-sans-serif","bold","sans-serif"],["sans-serif-italic","italic","sans-serif"],["bold-sans-serif-italic","bold-italic","sans-serif"],["monospace","normal"]],i.defaultCssFonts={normal:["serif",!1,!1],bold:["serif",!1,!0],italic:["serif",!0,!1],"bold-italic":["serif",!0,!0],"double-struck":["serif",!1,!0],fraktur:["serif",!1,!1],"bold-fraktur":["serif",!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],"bold-sans-serif-italic":["sans-serif",!0,!0],monospace:["monospace",!1,!1]},i.defaultAccentMap={768:"\u02cb",769:"\u02ca",770:"\u02c6",771:"\u02dc",772:"\u02c9",774:"\u02d8",775:"\u02d9",776:"\xa8",778:"\u02da",780:"\u02c7",8594:"\u20d7",8242:"'",8243:"''",8244:"'''",8245:"`",8246:"``",8247:"```",8279:"''''",8400:"\u21bc",8401:"\u21c0",8406:"\u2190",8417:"\u2194",8432:"*",8411:"...",8412:"....",8428:"\u21c1",8429:"\u21bd",8430:"\u2190",8431:"\u2192"},i.defaultMoMap={45:"\u2212"},i.defaultMnMap={45:"\u2212"},i.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},i.defaultDelimiters={},i.defaultChars={},i.defaultSizeVariants=[],i);function i(){var e,t;this.variant={},this.delimiters={},this.cssFontMap={},this.remapChars={};var r=this.constructor;this.params=s({},r.defaultParams),this.sizeVariants=a(r.defaultSizeVariants),this.cssFontMap=s({},r.defaultCssFonts),this.createVariants(r.defaultVariants),this.defineDelimiters(r.defaultDelimiters);try{for(var o=l(Object.keys(r.defaultChars)),n=o.next();!n.done;n=o.next()){var i=n.value;this.defineChars(i,r.defaultChars[i])}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this.defineRemap("accent",r.defaultAccentMap),this.defineRemap("mo",r.defaultMoMap),this.defineRemap("mn",r.defaultMnMap)}e.FontData=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TEXCLASS=MathJax._.core.MmlTree.MmlNode.TEXCLASS,e.TEXCLASSNAMES=MathJax._.core.MmlTree.MmlNode.TEXCLASSNAMES,e.indentAttributes=MathJax._.core.MmlTree.MmlNode.indentAttributes,e.AbstractMmlNode=MathJax._.core.MmlTree.MmlNode.AbstractMmlNode,e.AbstractMmlTokenNode=MathJax._.core.MmlTree.MmlNode.AbstractMmlTokenNode,e.AbstractMmlLayoutNode=MathJax._.core.MmlTree.MmlNode.AbstractMmlLayoutNode,e.AbstractMmlBaseNode=MathJax._.core.MmlTree.MmlNode.AbstractMmlBaseNode,e.AbstractMmlEmptyNode=MathJax._.core.MmlTree.MmlNode.AbstractMmlEmptyNode,e.TextNode=MathJax._.core.MmlTree.MmlNode.TextNode,e.XMLNode=MathJax._.core.MmlTree.MmlNode.XMLNode},function(t,d,e){"use strict";var f=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s};Object.defineProperty(d,"__esModule",{value:!0}),d.ARROWX=4,d.ARROWDX=1,d.ARROWY=2,d.THICKNESS=.067,d.PADDING=.2,d.SOLID=d.THICKNESS+"em solid",d.sideIndex={top:0,right:1,bottom:2,left:3},d.sideNames=Object.keys(d.sideIndex),d.fullBBox=function(t){return new Array(4).fill(t.thickness+t.padding)},d.fullPadding=function(t){return new Array(4).fill(t.padding)},d.fullBorder=function(t){return new Array(4).fill(t.thickness)},d.arrowHead=function(t){return Math.max(t.padding,t.thickness*(t.arrowhead.x+t.arrowhead.dx+1))},d.arrowBBoxHD=function(t,e){if(t.childNodes[0]){var r=t.childNodes[0].getBBox(),o=r.h,n=r.d;e[0]=e[2]=Math.max(0,t.thickness*t.arrowhead.y-(o+n)/2)}return e},d.arrowBBoxW=function(t,e){if(t.childNodes[0]){var r=t.childNodes[0].getBBox().w;e[1]=e[3]=Math.max(0,t.thickness*t.arrowhead.y-r/2)}return e},d.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"]},d.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"]},d.arrowBBox={up:function(t){return d.arrowBBoxW(t,[d.arrowHead(t),0,t.padding,0])},down:function(t){return d.arrowBBoxW(t,[t.padding,0,d.arrowHead(t),0])},right:function(t){return d.arrowBBoxHD(t,[0,d.arrowHead(t),0,t.padding])},left:function(t){return d.arrowBBoxHD(t,[0,t.padding,0,d.arrowHead(t)])},updown:function(t){return d.arrowBBoxW(t,[d.arrowHead(t),0,d.arrowHead(t),0])},leftright:function(t){return d.arrowBBoxHD(t,[0,d.arrowHead(t),0,d.arrowHead(t)])}},d.CommonBorder=function(e){return function(t){var r=d.sideIndex[t];return[t,{renderer:e,bbox:function(t){var e=[0,0,0,0];return e[r]=t.thickness+t.padding,e},border:function(t){var e=[0,0,0,0];return e[r]=t.thickness,e}}]}},d.CommonBorder2=function(i){return function(t,e,r){var o=d.sideIndex[e],n=d.sideIndex[r];return[t,{renderer:i,bbox:function(t){var e=t.thickness+t.padding,r=[0,0,0,0];return r[o]=r[n]=e,r},border:function(t){var e=[0,0,0,0];return e[o]=e[n]=t.thickness,e},remove:e+" "+r}]}},d.CommonDiagonalStrike=function(r){return function(t){var e="mjx-"+t.charAt(0)+"strike";return[t+"diagonalstrike",{renderer:r(e),bbox:d.fullBBox}]}},d.CommonDiagonalArrow=function(h){return function(t){var e=f(d.diagonalArrowDef[t],4),s=e[0],a=e[1],l=e[2];return[t+"arrow",{renderer:function(t,e){var r=t.arrowData(),o=r.a,n=r.W,i=t.arrow(n,s*(o-a),l);h(t,i)},bbox:function(t){var e=t.arrowData(),r=e.a,o=e.x,n=e.y,i=f([t.arrowhead.x,t.arrowhead.y,t.arrowhead.dx],3),s=i[0],a=i[1],l=i[2],h=f(t.getArgMod(s+l,a),2),c=h[0],u=h[1],p=n+(r<c?t.thickness*u*Math.sin(c-r):0),d=o+(c>Math.PI/2-r?t.thickness*u*Math.sin(c+r-Math.PI/2):0);return[p,d,p,d]},remove:e[3]}]}},d.CommonArrow=function(p){return function(t){var e=f(d.arrowDef[t],4),h=e[0],c=e[1],u=e[2],r=e[3];return[t+"arrow",{renderer:function(t,e){var r=t.getBBox(),o=r.w,n=r.h,i=r.d,s=f(u?[n+i,o]:[o,n+i],2),a=s[0],l=(s[1],t.arrow(a,h,c));p(t,l)},bbox:d.arrowBBox[t],remove:r}]}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sortLength=MathJax._.util.string.sortLength,e.quotePattern=MathJax._.util.string.quotePattern,e.unicodeChars=MathJax._.util.string.unicodeChars,e.isPercent=MathJax._.util.string.isPercent,e.split=MathJax._.util.string.split},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMsubMixin=function(t){return n(e,r=t),Object.defineProperty(e.prototype,"script",{get:function(){return this.childNodes[this.node.sub]},enumerable:!0,configurable:!0}),e.prototype.getOffset=function(t,e){return[0,-this.getV(t,e)]},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r},e.CommonMsupMixin=function(t){return n(e,r=t),Object.defineProperty(e.prototype,"script",{get:function(){return this.childNodes[this.node.sup]},enumerable:!0,configurable:!0}),e.prototype.getOffset=function(t,e){return[this.baseCore.bbox.ic?.2*this.baseCore.bbox.ic+.05:0,this.getU(t,e)]},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r},e.CommonMsubsupMixin=function(t){return n(e,r=t),Object.defineProperty(e.prototype,"subChild",{get:function(){return this.childNodes[this.node.sub]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"supChild",{get:function(){return this.childNodes[this.node.sup]},enumerable:!0,configurable:!0}),e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=this.baseChild.getBBox(),o=this.subChild.getBBox(),n=this.supChild.getBBox();t.empty(),t.append(r);var i=t.w,s=p(this.getUVQ(r,o,n),3),a=s[0],l=s[1];s[2],t.combine(o,i,l),t.combine(n,i+this.coreIC(),a),t.w+=this.font.params.scriptspace,t.clean(),this.setChildPWidths(e)},e.prototype.getUVQ=function(t,e,r){if(this.UVQ)return this.UVQ;var o=this.font.params,n=3*o.rule_thickness,i=this.length2em(this.node.attributes.get("subscriptshift"),o.sub2),s=this.isCharBase()?0:t.d+o.sub_drop*e.rscale,a=p([this.getU(t,r),Math.max(s,i)],2),l=a[0],h=a[1],c=l-r.d*r.rscale-(e.h*e.rscale-h);if(c<n){h+=n-c;var u=.8*o.x_height-(l-r.d*r.rscale);0<u&&(l+=u,h-=u)}return l=Math.max(this.length2em(this.node.attributes.get("superscriptshift"),l),l),h=Math.max(this.length2em(this.node.attributes.get("subscriptshift"),h),h),c=l-r.d*r.rscale-(e.h*e.rscale-h),this.UVQ=[l,-h,c],this.UVQ},e;function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.UVQ=null,t}var r}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),y=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},i=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(y(arguments[e]));return t};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMunderMixin=function(t){return n(e,c=t),Object.defineProperty(e.prototype,"script",{get:function(){return this.childNodes[this.node.under]},enumerable:!0,configurable:!0}),e.prototype.computeBBox=function(t,e){if(void 0===e&&(e=!1),this.hasMovableLimits())c.prototype.computeBBox.call(this,t,e);else{t.empty();var r=this.baseChild.getBBox(),o=this.script.getBBox(),n=y(this.getUnderKV(r,o),2),i=(n[0],n[1]),s=this.getDelta(!0),a=y(this.getDeltaW([r,o],[0,-s]),2),l=a[0],h=a[1];t.combine(r,l,0),t.combine(o,h,i),t.d+=this.font.params.big_op_spacing5,t.ic=-this.baseCore.bbox.ic,t.clean(),this.setChildPWidths(e)}},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=c.apply(this,i(t))||this;return r.stretchChildren(),r}var c},e.CommonMoverMixin=function(t){return n(e,h=t),Object.defineProperty(e.prototype,"script",{get:function(){return this.childNodes[this.node.over]},enumerable:!0,configurable:!0}),e.prototype.computeBBox=function(t){if(this.hasMovableLimits())h.prototype.computeBBox.call(this,t);else{t.empty();var e=this.baseChild.getBBox(),r=this.script.getBBox(),o=y(this.getOverKU(e,r),2),n=(o[0],o[1]),i=this.getDelta(),s=y(this.getDeltaW([e,r],[0,i]),2),a=s[0],l=s[1];t.combine(e,a,0),t.combine(r,l,n),t.h+=this.font.params.big_op_spacing5,t.ic=-this.baseCore.bbox.ic,t.clean()}},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=h.apply(this,i(t))||this;return r.stretchChildren(),r}var h},e.CommonMunderoverMixin=function(t){return n(e,f=t),Object.defineProperty(e.prototype,"underChild",{get:function(){return this.childNodes[this.node.under]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overChild",{get:function(){return this.childNodes[this.node.over]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subChild",{get:function(){return this.underChild},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"supChild",{get:function(){return this.overChild},enumerable:!0,configurable:!0}),e.prototype.computeBBox=function(t){if(this.hasMovableLimits())f.prototype.computeBBox.call(this,t);else{t.empty();var e=this.overChild.getBBox(),r=this.baseChild.getBBox(),o=this.underChild.getBBox(),n=y(this.getOverKU(r,e),2),i=(n[0],n[1]),s=y(this.getUnderKV(r,o),2),a=(s[0],s[1]),l=this.getDelta(),h=y(this.getDeltaW([r,o,e],[0,-l,l]),3),c=h[0],u=h[1],p=h[2];t.combine(r,c,0),t.combine(e,p,i),t.combine(o,u,a);var d=this.font.params.big_op_spacing5;t.h+=d,t.d+=d,t.ic=-this.baseCore.bbox.ic,t.clean()}},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=f.apply(this,i(t))||this;return r.stretchChildren(),r}var f}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s};Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(58),a=r(6),l=r(6),h=r(6),u=r(96),p=(i=a.CommonMsubMixin(s.SVGscriptbase),n(d,i),d.kind=u.MmlMsub.prototype.kind,d.useIC=!1,d);function d(){return null!==i&&i.apply(this,arguments)||this}e.SVGmsub=p;var f,y=(f=l.CommonMsupMixin(s.SVGscriptbase),n(m,f),m.kind=u.MmlMsup.prototype.kind,m.useIC=!0,m);function m(){return null!==f&&f.apply(this,arguments)||this}e.SVGmsup=y;var v,b=(v=h.CommonMsubsupMixin(s.SVGscriptbase),n(g,v),g.prototype.toSVG=function(t){var e=this.standardSVGnode(t),r=c([this.baseChild,this.supChild,this.subChild],3),o=r[0],n=r[1],i=r[2],s=o.getBBox(),a=(this.baseCore.bbox,c(this.getUVQ(s,i.getBBox(),n.getBBox()),2)),l=a[0],h=a[1];o.toSVG(e),n.toSVG(e),i.toSVG(e),i.place(s.w,h),n.place(s.w+this.coreIC(),l)},g.kind=u.MmlMsubsup.prototype.kind,g.useIC=!1,g);function g(){return null!==v&&v.apply(this,arguments)||this}e.SVGmsubsup=b},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BIGDIMEN=MathJax._.util.lengths.BIGDIMEN,e.UNITS=MathJax._.util.lengths.UNITS,e.RELUNITS=MathJax._.util.lengths.RELUNITS,e.MATHSPACE=MathJax._.util.lengths.MATHSPACE,e.length2em=MathJax._.util.lengths.length2em,e.percent=MathJax._.util.lengths.percent,e.em=MathJax._.util.lengths.em,e.emRounded=MathJax._.util.lengths.emRounded,e.px=MathJax._.util.lengths.px},function(t,n,e){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),h=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},c=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t};Object.defineProperty(n,"__esModule",{value:!0});var i=e(5);n.TooltipData={dx:".2em",dy:".1em",postDelay:600,clearDelay:100,hoverTimer:new Map,clearTimer:new Map,stopTimers:function(t,e){e.clearTimer.has(t)&&(clearTimeout(e.clearTimer.get(t)),e.clearTimer.delete(t)),e.hoverTimer.has(t)&&(clearTimeout(e.hoverTimer.get(t)),e.hoverTimer.delete(t))}},n.CommonMactionMixin=function(t){return r(e,l=t),Object.defineProperty(e.prototype,"selected",{get:function(){var t=this.node.attributes.get("selection"),e=Math.max(1,Math.min(this.childNodes.length,t))-1;return this.childNodes[e]||this.wrap(this.node.selected)},enumerable:!0,configurable:!0}),e.prototype.getParameters=function(){var t=this.node.attributes.get("data-offsets"),e=h(i.split(t||""),2),r=e[0],o=e[1];this.dx=this.length2em(r||n.TooltipData.dx),this.dy=this.length2em(o||n.TooltipData.dy)},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),t.updateFrom(this.selected.getBBox()),this.selected.setChildPWidths(e)},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=l.apply(this,c(t))||this,o=r.constructor.actions,n=r.node.attributes.get("actiontype"),i=h(o.get(n)||[function(t,e){},{}],2),s=i[0],a=i[1];return r.action=s,r.data=a,r.getParameters(),r}var l}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},l=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t},w=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var h=r(1);e.CommonMrowMixin=function(t){return n(e,a=t),Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!0,configurable:!0}),e.prototype.stretchChildren=function(){var e,t,r,o,n,i,s=[];try{for(var a=w(this.childNodes),l=a.next();!l.done;l=a.next())(M=l.value).canStretch(1)&&s.push(M)}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}var h=s.length,c=this.childNodes.length;if(h&&1<c){var u=0,p=0,d=1<h&&h===c;try{for(var f=w(this.childNodes),y=f.next();!y.done;y=f.next()){var m=0===(M=y.value).stretch.dir;if(d||m){var v=M.getBBox(m),b=v.h,g=v.d;u<b&&(u=b),p<g&&(p=g)}}}catch(t){r={error:t}}finally{try{y&&!y.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}try{for(var x=w(s),_=x.next();!_.done;_=x.next()){var M;(M=_.value).coreMO().getStretchedVariant([u,p])}}catch(t){n={error:t}}finally{try{_&&!_.done&&(i=x.return)&&i.call(x)}finally{if(n)throw n.error}}}},e;function e(){for(var e,t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=a.apply(this,l(r))||this;n.stretchChildren();try{for(var i=w(n.childNodes),s=i.next();!s.done;s=i.next()){if(s.value.bbox.pwidth){n.bbox.pwidth=h.BBox.fullWidth;break}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n}var a},e.CommonInferredMrowMixin=function(t){return n(e,r=t),e.prototype.getScale=function(){this.bbox.scale=this.parent.bbox.scale,this.bbox.rscale=1},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),O=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMtrMixin=function(t){return n(e,r=t),Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numCells",{get:function(){return this.childNodes.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labeled",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tableCells",{get:function(){return this.childNodes},enumerable:!0,configurable:!0}),e.prototype.getChild=function(t){return this.childNodes[t]},e.prototype.getChildBBoxes=function(){return this.childNodes.map(function(t){return t.getBBox()})},e.prototype.stretchChildren=function(t){var e,r,o,n,i,s;void 0===t&&(t=null);var a=[],l=this.labeled?this.childNodes.slice(1):this.childNodes;try{for(var h=O(l),c=h.next();!c.done;c=h.next())(S=c.value.childNodes[0]).canStretch(1)&&a.push(S)}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=h.return)&&r.call(h)}finally{if(e)throw e.error}}var u=a.length,p=this.childNodes.length;if(u&&1<p){if(null===t){var d=0,f=0,y=1<u&&u===p;try{for(var m=O(l),v=m.next();!v.done;v=m.next()){var b=0===(S=v.value.childNodes[0]).stretch.dir;if(y||b){var g=S.getBBox(b),x=g.h,_=g.d;d<x&&(d=x),f<_&&(f=_)}}}catch(t){o={error:t}}finally{try{v&&!v.done&&(n=m.return)&&n.call(m)}finally{if(o)throw o.error}}t=[d,f]}try{for(var M=O(a),w=M.next();!w.done;w=M.next()){var S;(S=w.value).coreMO().getStretchedVariant(t)}}catch(t){i={error:t}}finally{try{w&&!w.done&&(s=M.return)&&s.call(M)}finally{if(i)throw i.error}}}},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r},e.CommonMlabeledtrMixin=function(t){return n(e,r=t),Object.defineProperty(e.prototype,"numCells",{get:function(){return Math.max(0,this.childNodes.length-1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labeled",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tableCells",{get:function(){return this.childNodes.slice(1)},enumerable:!0,configurable:!0}),e.prototype.getChild=function(t){return this.childNodes[t+1]},e.prototype.getChildBBoxes=function(){return this.childNodes.slice(1).map(function(t){return t.getBBox()})},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}},function(t,u,e){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},c=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s};Object.defineProperty(u,"__esModule",{value:!0});var i=e(17),s=e(42),a=e(107),l=e(72);u.SVGNS="http://www.w3.org/2000/svg",u.XLINKNS="http://www.w3.org/1999/xlink";var h,p=(h=i.CommonOutputJax,r(d,h),d.prototype.initialize=function(){"global"===this.options.fontCache&&this.fontCache.clearCache()},d.prototype.clearFontCache=function(){this.fontCache.clearCache()},d.prototype.setScale=function(t){},d.prototype.escaped=function(t,e){return this.setDocument(e),this.html("span",{},[this.text(t.math)])},d.prototype.styleSheet=function(t){var e=h.prototype.styleSheet.call(this,t);return this.adaptor.setAttribute(e,"id",d.STYLESHEETID),e},d.prototype.pageElements=function(t){return"global"!==this.options.fontCache||this.findCache(t)?null:this.svg("svg",{id:d.FONTCACHEID,style:{display:"none"}},[this.fontCache.getCache()])},d.prototype.findCache=function(t){for(var e=this.adaptor,r=e.tags(e.body(t.document),"svg"),o=r.length-1;0<=o;o--)if(this.adaptor.getAttribute(r[o],"id")===d.FONTCACHEID)return!0;return!1},d.prototype.processMath=function(t,e){var r=this.container;this.container=e;var o=this.factory.wrap(t),n=c(this.createRoot(o),2),i=n[0],s=n[1];this.typesetSVG(o,i,s),this.container=r},d.prototype.createRoot=function(t){var e=t.getBBox(),r=e.w,o=e.h,n=e.d,i=e.pwidth,s=Math.max(r,.001),a=this.svg("g",{stroke:"currentColor",fill:"currentColor","stroke-width":0,transform:"matrix(1 0 0 -1 0 0)"}),l=this.adaptor,h=l.append(this.container,this.svg("svg",{xmlns:u.SVGNS,width:this.ex(s),height:this.ex(o+n),role:"img",focusable:!1,style:{"vertical-align":this.ex(-n)},viewBox:[0,this.fixed(1e3*-o,1),this.fixed(1e3*s,1),this.fixed(1e3*(o+n),1)].join(" ")},[a]));if(.001===s&&(l.setAttribute(h,"preserveAspectRatio","xMidYMid slice"),r<0&&l.setStyle(this.container,"margin-right",this.ex(r))),i){l.setAttribute(h,"width",i),l.removeAttribute(h,"viewBox");var c=t.metrics.ex/(1e3*this.font.params.x_height);l.setAttribute(a,"transform","matrix(1 0 0 -1 0 0) scale("+this.fixed(c,6)+") translate(0, "+this.fixed(1e3*-o,1)+")")}return"none"!==this.options.fontCache&&l.setAttribute(h,"xmlns:xlink",u.XLINKNS),[h,a]},d.prototype.typesetSVG=function(t,e,r){var o=this.adaptor;if(this.minwidth=this.shift=0,"local"===this.options.fontCache&&(this.fontCache.clearCache(),this.fontCache.useLocalID(this.options.localID),o.insert(this.fontCache.getCache(),r)),t.toSVG(r),this.fontCache.clearLocalID(),this.minwidth)o.setStyle(e,"minWidth",this.ex(this.minwidth));else if(this.shift){var n=o.getAttribute(this.container,"justify")||"center";this.setIndent(e,n,this.shift)}},d.prototype.setIndent=function(t,e,r){"center"!==e&&"left"!==e||this.adaptor.setStyle(t,"margin-left",this.ex(r)),"center"!==e&&"right"!==e||this.adaptor.setStyle(t,"margin-right",this.ex(-r))},d.prototype.ex=function(t){return t/=this.font.params.x_height,Math.abs(t)<.001?"0":t.toFixed(3).replace(/\.?0+$/,"")+"ex"},d.prototype.svg=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r=[]),this.html(t,e,r,u.SVGNS)},d.prototype.unknownText=function(t,e){var r=this.math.metrics,o=this.font.params.x_height/r.ex*r.em*1e3,n=this.svg("text",{"data-variant":e,transform:"matrix(1 0 0 -1 0 0)","font-size":this.fixed(o,1)+"px"},[this.text(t)]),i=this.adaptor;if("-explicitFont"!==e){var s=c(this.font.getCssFont(e),3),a=s[0],l=s[1],h=s[2];i.setAttribute(n,"font-family",a),l&&i.setAttribute(n,"font-style","italic"),h&&i.setAttribute(n,"font-weight","bold")}return n},d.prototype.measureTextNode=function(t){var e=this.adaptor;t=e.clone(t),e.removeAttribute(t,"transform");var r=this.fixed(1e3*this.font.params.x_height,1),o=this.svg("svg",{position:"absolute",visibility:"hidden",width:"1ex",height:"1ex",viewBox:[0,0,r,r].join(" ")},[t]);e.append(e.body(e.document),o);var n=e.nodeSize(t,1e3,!0)[0];return e.remove(o),{w:n,h:.75,d:.25}},d.NAME="SVG",d.OPTIONS=n(n({},i.CommonOutputJax.OPTIONS),{internalSpeechTitles:!0,titleID:0,fontCache:"local",localID:null}),d.commonStyles={'mjx-container[jax="SVG"] > svg':{overflow:"visible"},'mjx-container[jax="SVG"] > svg a':{fill:"blue",stroke:"blue"}},d.FONTCACHEID="MJX-SVG-global-cache",d.STYLESHEETID="MJX-SVG-styles",d);function d(t){void 0===t&&(t=null);var e=h.call(this,t,s.SVGWrapperFactory,a.TeXFont)||this;return e.minwidth=0,e.shift=0,e.fontCache=new l.FontCache(e),e}u.SVG=p},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(36),l=r(93),h=(i=a.CommonMsqrtMixin(s.SVGWrapper),n(c,i),c.prototype.toSVG=function(t){var e=this.childNodes[this.surd],r=this.childNodes[this.base],o=this.root?this.childNodes[this.root]:null,n=this.getBBox(),i=e.getBBox(),s=r.getBBox(),a=this.font.params.rule_thickness*this.bbox.scale,l=this.standardSVGnode(t),h=this.adaptor.append(l,this.svg("g"));this.addRoot(l,o,i),e.toSVG(l),e.place(this.dx,n.h-i.h-a),r.toSVG(h),r.place(this.dx+i.w,0),this.adaptor.append(l,this.svg("rect",{width:this.fixed(s.w),height:this.fixed(a),x:this.fixed(this.dx+i.w),y:this.fixed(n.h-2*a)}))},c.prototype.addRoot=function(t,e,r){},c.kind=l.MmlMsqrt.prototype.kind,c);function c(){var t=null!==i&&i.apply(this,arguments)||this;return t.dx=0,t}e.SVGmsqrt=h},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.combineConfig=MathJax._.components.global.combineConfig,e.combineDefaults=MathJax._.components.global.combineDefaults,e.combineWithMathJax=MathJax._.components.global.combineWithMathJax,e.MathJax=MathJax._.components.global.MathJax},function(t,e,r){"use strict";var h=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var o=(Object.defineProperty(n.prototype,"cssText",{get:function(){return this.getStyleString()},enumerable:!0,configurable:!0}),n.prototype.addStyles=function(t){var e,r;if(t)try{for(var o=h(Object.keys(t)),n=o.next();!n.done;n=o.next()){var i=n.value;this.styles[i]||(this.styles[i]={}),Object.assign(this.styles[i],t[i])}}catch(t){e={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},n.prototype.removeStyles=function(){for(var e,t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];try{for(var n=h(r),i=n.next();!i.done;i=n.next()){var s=i.value;delete this.styles[s]}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},n.prototype.clear=function(){this.styles={}},n.prototype.getStyleString=function(){var e,t,r=Object.keys(this.styles),o=new Array(r.length),n=0;try{for(var i=h(r),s=i.next();!s.done;s=i.next()){var a=s.value;o[n++]=a+" {\n"+this.getStyleDefString(this.styles[a])+"\n}"}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return o.join("\n\n")},n.prototype.getStyleDefString=function(t){var e,r,o=Object.keys(t),n=new Array(o.length),i=0;try{for(var s=h(o),a=s.next();!a.done;a=s.next()){var l=a.value;n[i++]=" "+l+": "+t[l]+";"}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return n.join("\n")},n);function n(t){void 0===t&&(t=null),this.styles={},this.addStyles(t)}e.CssStyles=o},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},j=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var l,s=r(75),h=r(76),c=r(16),u=r(9),p=r(18),d=(l=s.AbstractOutputJax,n(f,l),f.prototype.typeset=function(t,e){this.setDocument(e);var r=this.createNode();return this.toDOM(t,r,e),r},f.prototype.createNode=function(){var t=this.constructor.NAME;return this.html("mjx-container",{class:"MathJax",jax:t})},f.prototype.setScale=function(t){var e=this.math.metrics.scale*this.options.scale;1!=e&&this.adaptor.setStyle(t,"fontSize",u.percent(e))},f.prototype.toDOM=function(t,e,r){void 0===r&&(r=null),this.setDocument(r),this.math=t,this.pxPerEm=t.metrics.ex/this.font.params.x_height,t.root.setTeXclass(null),this.setScale(e),this.nodeMap=new Map,this.container=e,this.processMath(t.root,e),this.nodeMap=null,this.executeFilters(this.postFilters,t,r,e)},f.prototype.getBBox=function(t,e){this.setDocument(e),(this.math=t).root.setTeXclass(null),this.nodeMap=new Map;var r=this.factory.wrap(t.root).getBBox();return this.nodeMap=null,r},f.prototype.getMetrics=function(t){var e,r;this.setDocument(t);var o=this.adaptor,n=this.getMetricMaps(t);try{for(var i=j(t.math),s=i.next();!s.done;s=i.next()){var a=s.value,l=n[a.display?1:0].get(o.parent(a.start.node)),h=l.em,c=l.ex,u=l.containerWidth,p=l.lineWidth,d=l.scale;a.setMetrics(h,c,u,p,d)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}},f.prototype.getMetricsFor=function(t,e){var r=this.getTestElement(t,e),o=this.measureMetrics(r);return this.adaptor.remove(r),o},f.prototype.getMetricMaps=function(t){var e,r,o,n,i,s,a,l,h,c,u=this.adaptor,p=[new Map,new Map];try{for(var d=j(t.math),f=d.next();!f.done;f=d.next()){var y=f.value,m=u.parent(y.start.node),v=p[y.display?1:0];v.has(m)||v.set(m,this.getTestElement(m,y.display))}}catch(t){e={error:t}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(e)throw e.error}}var b=[new Map,new Map];try{for(var g=j(b.keys()),x=g.next();!x.done;x=g.next()){var _=x.value;try{for(var M=(i=void 0,j(p[_].keys())),w=M.next();!w.done;w=M.next())m=w.value,b[_].set(m,this.measureMetrics(p[_].get(m)))}catch(t){i={error:t}}finally{try{w&&!w.done&&(s=M.return)&&s.call(M)}finally{if(i)throw i.error}}}}catch(t){o={error:t}}finally{try{x&&!x.done&&(n=g.return)&&n.call(g)}finally{if(o)throw o.error}}try{for(var S=j(b.keys()),O=S.next();!O.done;O=S.next()){_=O.value;try{for(var B=(h=void 0,j(p[_].values())),C=B.next();!C.done;C=B.next())m=C.value,u.remove(m)}catch(t){h={error:t}}finally{try{C&&!C.done&&(c=B.return)&&c.call(B)}finally{if(h)throw h.error}}}}catch(t){a={error:t}}finally{try{O&&!O.done&&(l=S.return)&&l.call(S)}finally{if(a)throw a.error}}return b},f.prototype.getTestElement=function(t,e){var r=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=r.clone(this.testInline),r.setStyle(this.testDisplay,"display","table"),r.setStyle(this.testDisplay,"margin-right",""),r.setStyle(r.firstChild(this.testDisplay),"display","none");var o=r.lastChild(this.testDisplay);r.setStyle(o,"display","table-cell"),r.setStyle(o,"width","10000em"),r.setStyle(o,"float","")}return r.append(t,r.clone(e?this.testDisplay:this.testInline))},f.prototype.measureMetrics=function(t){var e=this.adaptor,r=e.fontSize(t),o=e.nodeSize(e.childNode(t,1))[1]/60||r*this.options.exFactor;return{em:r,ex:o,containerWidth:"table"===e.getStyle(t,"display")?e.nodeSize(e.lastChild(t))[0]-1:e.nodeBBox(e.lastChild(t)).left-e.nodeBBox(e.firstChild(t)).left-2,lineWidth:1e6,scale:Math.max(this.options.minScale,this.options.matchFontHeight?o/this.font.params.x_height/r:1)}},f.prototype.styleSheet=function(t){var e,r;this.setDocument(t),this.cssStyles.clear(),this.cssStyles.addStyles(this.constructor.commonStyles);try{for(var o=j(this.factory.getKinds()),n=o.next();!n.done;n=o.next()){var i=n.value;this.addClassStyles(this.factory.getNodeClass(i))}}catch(t){e={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return this.cssStyles.addStyles(this.font.styles),this.html("style",{id:"MJX-styles"},[this.text("\n"+this.cssStyles.cssText+"\n")])},f.prototype.addClassStyles=function(t){this.cssStyles.addStyles(t.styles)},f.prototype.setDocument=function(t){t&&(this.document=t,this.adaptor.document=t.document)},f.prototype.html=function(t,e,r,o){return void 0===e&&(e={}),void 0===r&&(r=[]),this.adaptor.node(t,e,r,o)},f.prototype.text=function(t){return this.adaptor.text(t)},f.prototype.fixed=function(t,e){return void 0===e&&(e=3),Math.abs(t)<6e-4?"0":t.toFixed(e).replace(/\.?0+$/,"")},f.prototype.measureText=function(t,e,r){void 0===r&&(r=["",!1,!1]);var o=this.unknownText(t,e);if("-explicitFont"===e){var n=this.cssFontStyles(r);this.adaptor.setAttributes(o,{style:n})}return this.measureTextNodeWithCache(o,t,e,r)},f.prototype.measureTextNodeWithCache=function(t,e,r,o){void 0===o&&(o=["",!1,!1]),"-explicitFont"===r&&(r=[o[0],o[1]?"T":"F",o[2]?"T":"F",""].join("-")),this.unknownCache.has(r)||this.unknownCache.set(r,new Map);var n=this.unknownCache.get(r),i=n.get(e);if(i)return i;var s=this.measureTextNode(t);return n.set(e,s),s},f.prototype.cssFontStyles=function(t,e){void 0===e&&(e={});var r=a(t,3),o=r[0],n=r[1],i=r[2];return e["font-family"]=o,n&&(e["font-style"]="italic"),i&&(e["font-weight"]="bold"),e},f.prototype.getFontData=function(t){return[(t=t||new p.Styles).get("font-family"),"italic"===t.get("font-style"),"bold"===t.get("font-weight")]},f.NAME="Common",f.OPTIONS=i(i({},s.AbstractOutputJax.OPTIONS),{scale:1,minScale:.5,matchFontHeight:!0,mtextInheritFont:!1,merrorInheritFont:!0,mathmlSpacing:!1,skipAttributes:{},exFactor:.5,displayAlign:"center",displayIndent:"0",wrapperFactory:null,font:null,cssStyles:null}),f.commonStyles={},f);function f(t,e,r){void 0===t&&(t=null),void 0===e&&(e=null),void 0===r&&(r=null);var o=this,n=a(h.separateOptions(t,r.OPTIONS),2),i=n[0],s=n[1];return(o=l.call(this,i)||this).factory=o.options.wrapperFactory||new e,(o.factory.jax=o).cssStyles=o.options.cssStyles||new c.CssStyles,o.font=o.options.font||new r(s),o.unknownCache=new Map,o}e.CommonOutputJax=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Styles=MathJax._.util.Styles.Styles},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},s=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t};Object.defineProperty(e,"__esModule",{value:!0});var a=r(77),l=r(3),h=r(5),u=r(9),p=r(18),d=r(1),f=r(2),y=2/18;function m(t,e){return t?e<y?0:y:e}var v,b=(v=a.AbstractWrapper,n(g,v),Object.defineProperty(g.prototype,"jax",{get:function(){return this.factory.jax},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"adaptor",{get:function(){return this.factory.jax.adaptor},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"metrics",{get:function(){return this.factory.jax.math.metrics},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"fixesPWidth",{get:function(){return!this.node.notParent&&!this.node.isToken},enumerable:!0,configurable:!0}),g.prototype.wrap=function(t,e){void 0===e&&(e=null);var r=this.factory.wrap(t,e||this);return e&&e.childNodes.push(r),this.jax.nodeMap.set(t,r),r},g.prototype.getBBox=function(t){if(void 0===t&&(t=!0),this.bboxComputed)return this.bbox;var e=t?this.bbox:d.BBox.zero();return this.computeBBox(e),this.bboxComputed=t,e},g.prototype.computeBBox=function(t,e){var r,o;void 0===e&&(e=!1),t.empty();try{for(var n=c(this.childNodes),i=n.next();!i.done;i=n.next()){var s=i.value;t.append(s.getBBox())}}catch(t){r={error:t}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}t.clean(),this.fixesPWidth&&this.setChildPWidths(e)&&this.computeBBox(t,!0)},g.prototype.setChildPWidths=function(t,e,r){var o,n;if(void 0===e&&(e=null),void 0===r&&(r=!0),t)return!1;r&&(this.bbox.pwidth="");var i=!1;try{for(var s=c(this.childNodes),a=s.next();!a.done;a=s.next()){var l=a.value,h=l.getBBox();h.pwidth&&l.setChildPWidths(t,null===e?h.w:e,r)&&(i=!0)}}catch(t){o={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return i},g.prototype.invalidateBBox=function(){this.bboxComputed&&(this.bboxComputed=!1,this.parent&&this.parent.invalidateBBox())},g.prototype.copySkewIC=function(t){var e=this.childNodes[0];e&&e.bbox.sk&&(t.sk=e.bbox.sk);var r=this.childNodes[this.childNodes.length-1];r&&r.bbox.ic&&(t.ic=r.bbox.ic,t.w+=t.ic)},g.prototype.getStyles=function(){var t=this.node.attributes.getExplicit("style");if(t)for(var e=this.styles=new p.Styles(t),r=0,o=g.removeStyles.length;r<o;r++){var n=g.removeStyles[r];e.get(n)&&(this.removedStyles||(this.removedStyles={}),this.removedStyles[n]=e.get(n),e.set(n,""))}},g.prototype.getVariant=function(){if(this.node.isToken){var t=this.node.attributes,e=t.get("mathvariant");if(!t.getExplicit("mathvariant")){var r=t.getList("fontfamily","fontweight","fontstyle");if(this.removedStyles){var o=this.removedStyles;o.fontFamily&&(r.family=o.fontFamily),o.fontWeight&&(r.weight=o.fontWeight),o.fontStyle&&(r.style=o.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=600<parseInt(r.weight)?"bold":"normal"),e=r.family?this.explicitVariant(r.family,r.weight,r.style):(this.node.getProperty("variantForm")&&(e="-tex-variant"),e=(g.BOLDVARIANTS[r.weight]||{})[e]||e,(g.ITALICVARIANTS[r.style]||{})[e]||e)}this.variant=e}},g.prototype.explicitVariant=function(t,e,r){var o=this.styles;return(o=o||(this.styles=new p.Styles)).set("fontFamily",t),e&&o.set("fontWeight",e),r&&o.set("fontStyle",r),"-explicitFont"},g.prototype.getScale=function(){var t=1,e=this.parent,r=e?e.bbox.scale:1,o=this.node.attributes,n=Math.min(o.get("scriptlevel"),2),i=o.get("fontsize"),s=this.node.isToken||this.node.isKind("mstyle")?o.get("mathsize"):o.getInherited("mathsize");if(0!==n){t=Math.pow(o.get("scriptsizemultiplier"),n);var a=this.length2em(o.get("scriptminsize"),.8,1);t<a&&(t=a)}this.removedStyles&&this.removedStyles.fontSize&&!i&&(i=this.removedStyles.fontSize),i&&!s&&(s=i),"1"!==s&&(t*=this.length2em(s,1,1)),this.bbox.scale=t,this.bbox.rscale=t/r},g.prototype.getSpace=function(){var t=this.isTopEmbellished(),e=this.node.hasSpacingAttributes();this.jax.options.mathmlSpacing||e?t&&this.getMathMLSpacing():this.getTeXSpacing(t,e)},g.prototype.getMathMLSpacing=function(){var t=this.node.coreMO(),e=t.attributes,r=(this.jax.nodeMap.get(t.coreParent()),0<e.get("scriptlevel"));this.bbox.L=e.isSet("lspace")?Math.max(0,this.length2em(e.get("lspace"))):m(r,t.lspace),this.bbox.R=e.isSet("rspace")?Math.max(0,this.length2em(e.get("rspace"))):m(r,t.rspace)},g.prototype.getTeXSpacing=function(t,e){if(!e){var r=this.node.texSpacing();r&&(this.bbox.L=this.length2em(r))}if(t||e){var o=this.node.coreMO().attributes;o.isSet("lspace")&&(this.bbox.L=Math.max(0,this.length2em(o.get("lspace")))),o.isSet("rspace")&&(this.bbox.R=Math.max(0,this.length2em(o.get("rspace"))))}},g.prototype.isTopEmbellished=function(){return this.node.isEmbellished&&!(this.node.Parent&&this.node.Parent.isEmbellished)},g.prototype.core=function(){return this.jax.nodeMap.get(this.node.core())},g.prototype.coreMO=function(){return this.jax.nodeMap.get(this.node.coreMO())},g.prototype.getText=function(){var e,t,r="";if(this.node.isToken)try{for(var o=c(this.node.childNodes),n=o.next();!n.done;n=o.next()){var i=n.value;i instanceof l.TextNode&&(r+=i.getText())}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return r},g.prototype.canStretch=function(t){if(this.stretch=f.NOSTRETCH,this.node.isEmbellished){var e=this.core();e&&e.node!==this.node&&e.canStretch(t)&&(this.stretch=e.stretch)}return 0!==this.stretch.dir},g.prototype.getAlignShift=function(){var t,e=(t=this.node.attributes).getList.apply(t,s(l.indentAttributes)),r=e.indentalign,o=e.indentshift,n=e.indentalignfirst,i=e.indentshiftfirst;return"indentalign"!==n&&(r=n),"auto"===r&&(r=this.jax.options.displayAlign),"indentshift"!==i&&(o=i),"auto"===o&&(o=this.jax.options.displayIndent,"right"!==r||o.match(/^\s*0[a-z]*\s*$/)||(o=("-"+o.trim()).replace(/^--/,""))),[r,this.length2em(o,this.metrics.containerWidth)]},g.prototype.getAlignX=function(t,e,r){return"right"===r?t-(e.w+e.R)*e.rscale:"left"===r?e.L*e.rscale:(t-e.w*e.rscale)/2},g.prototype.getAlignY=function(t,e,r,o,n){return"top"===n?t-r:"bottom"===n?o-e:"middle"===n?(t-r-(e-o))/2:0},g.prototype.getWrapWidth=function(t){return this.childNodes[t].getBBox().w},g.prototype.getChildAlign=function(t){return"left"},g.prototype.percent=function(t){return u.percent(t)},g.prototype.em=function(t){return u.em(t)},g.prototype.px=function(t,e){return void 0===e&&(e=-u.BIGDIMEN),u.px(t,e,this.metrics.em)},g.prototype.length2em=function(t,e,r){return void 0===e&&(e=1),void 0===r&&(r=null),null===r&&(r=this.bbox.scale),u.length2em(t,e,r,this.jax.pxPerEm)},g.prototype.unicodeChars=function(t){return h.unicodeChars(t)},g.prototype.remapChars=function(t){return t},g.prototype.mmlText=function(t){return this.node.factory.create("text").setText(t)},g.prototype.mmlNode=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r=[]),this.node.factory.create(t,e,r)},g.prototype.createMo=function(t){var e=this.node.factory,r=e.create("text").setText(t),o=e.create("mo",{stretchy:!0},[r]);o.inheritAttributesFrom(this.node);var n=this.wrap(o);return n.parent=this,n},g.prototype.getVariantChar=function(t,e){var r=this.font.getChar(t,e)||[0,0,0,{unknown:!0}];return 3===r.length&&(r[3]={}),r},g.kind="unknown",g.styles={},g.removeStyles=["fontSize","fontFamily","fontWeight","fontStyle","fontVariant","font"],g.skipAttributes={fontfamily:!0,fontsize:!0,fontweight:!0,fontstyle:!0,color:!0,background:!0,class:!0,href:!0,style:!0,xmlns:!0},g.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"}},g.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"}},g);function g(t,r,e){void 0===e&&(e=null);var o=v.call(this,t,r)||this;return o.parent=null,o.removedStyles=null,o.styles=null,o.variant="",o.bboxComputed=!1,o.stretch=f.NOSTRETCH,o.font=null,o.parent=e,o.font=t.jax.font,o.bbox=d.BBox.zero(),o.getStyles(),o.getVariant(),o.getScale(),o.getSpace(),o.childNodes=r.childNodes.map(function(t){var e=o.wrap(t);return e.bbox.pwidth&&(r.notParent||r.isKind("math"))&&(o.bbox.pwidth=d.BBox.fullWidth),e}),o}e.CommonWrapper=b},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(78),a=(i=s.AbstractWrapperFactory,n(l,i),Object.defineProperty(l.prototype,"Wrappers",{get:function(){return this.node},enumerable:!0,configurable:!0}),l.defaultNodes={},l);function l(){var t=null!==i&&i.apply(this,arguments)||this;return t.jax=null,t}e.CommonWrapperFactory=a},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var s=r(3);e.CommonTeXAtomMixin=function(t){return i(e,n=t),e.prototype.computeBBox=function(t,e){if(void 0===e&&(e=!1),n.prototype.computeBBox.call(this,t,e),this.childNodes[0]&&this.childNodes[0].bbox.ic&&(t.ic=this.childNodes[0].bbox.ic),this.node.texClass===s.TEXCLASS.VCENTER){var r=t.h,o=(r+t.d)/2+this.font.params.axis_height-r;t.h+=o,t.d-=o}},e;function e(){return null!==n&&n.apply(this,arguments)||this}var n}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),g=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},x=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTextNodeMixin=function(t){return n(e,r=t),e.prototype.computeBBox=function(t,e){var r,o;void 0===e&&(e=!1);var n=this.parent.variant,i=this.node.getText();if("-explicitFont"===n){var s=this.jax.getFontData(this.parent.styles),a=this.jax.measureText(i,n,s),l=a.w,h=a.h,c=a.d;t.h=h,t.d=c,t.w=l}else{var u=this.parent.stretch.c,p=this.parent.remapChars(u?[u]:this.unicodeChars(i));t.empty();try{for(var d=g(p),f=d.next();!f.done;f=d.next()){var y=f.value,m=x(this.getVariantChar(n,y),4),v=(h=m[0],c=m[1],l=m[2],m[3]);if(v.unknown){var b=this.jax.measureText(String.fromCharCode(y),n);l=b.w,h=b.h,c=b.d}t.w+=l,h>t.h&&(t.h=h),c>t.d&&(t.d=c),t.ic=v.ic||0,t.sk=v.sk||0}}catch(t){r={error:t}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}1<p.length&&(t.sk=0),t.clean()}},e.prototype.getStyles=function(){},e.prototype.getVariant=function(){},e.prototype.getScale=function(){},e.prototype.getSpace=function(){},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMathMixin=function(t){return n(e,r=t),e.prototype.getWrapWidth=function(t){return this.parent?this.getBBox().w:this.metrics.containerWidth/this.jax.pxPerEm},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},i=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t},u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var l=r(4),h=r(5);e.CommonMencloseMixin=function(t){return n(e,o=t),e.prototype.getParameters=function(){var t=this.node.attributes,e=t.get("data-padding");void 0!==e&&(this.padding=this.length2em(e,l.PADDING));var r=t.get("data-thickness");void 0!==r&&(this.thickness=this.length2em(r,l.THICKNESS));var o=t.get("data-arrowhead");if(void 0!==o){var n=p(h.split(o),3),i=n[0],s=n[1],a=n[2];this.arrowhead={x:i?parseFloat(i):l.ARROWX,y:s?parseFloat(s):l.ARROWY,dx:a?parseFloat(a):l.ARROWDX}}},e.prototype.getNotations=function(){var e,t,r=this.constructor.notations;try{for(var o=u(h.split(this.node.attributes.get("notation"))),n=o.next();!n.done;n=o.next()){var i=n.value,s=r.get(i);s&&(this.notations[i]=s).renderChild&&(this.renderChild=s.renderer)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},e.prototype.removeRedundantNotations=function(){var e,t,r,o;try{for(var n=u(Object.keys(this.notations)),i=n.next();!i.done;i=n.next()){var s=i.value;if(this.notations[s]){var a=this.notations[s].remove||"";try{for(var l=(r=void 0,u(a.split(/ /))),h=l.next();!h.done;h=l.next()){var c=h.value;delete this.notations[c]}}catch(t){r={error:t}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},e.prototype.initializeNotations=function(){var e,t;try{for(var r=u(Object.keys(this.notations)),o=r.next();!o.done;o=r.next()){var n=o.value,i=this.notations[n].init;i&&i(this)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=p(this.getBBoxExtenders(),4),o=r[0],n=r[1],i=r[2],s=r[3],a=this.childNodes[0].getBBox();t.combine(a,s,0),t.h+=o,t.d+=i,t.w+=n,this.setChildPWidths(e)},e.prototype.getBBoxExtenders=function(){var e,t,r=[0,0,0,0];try{for(var o=u(Object.keys(this.notations)),n=o.next();!n.done;n=o.next()){var i=n.value;this.maximizeEntries(r,this.notations[i].bbox(this))}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return r},e.prototype.getPadding=function(){var e,t,r=[0,0,0,0],o=[0,0,0,0];try{for(var n=u(Object.keys(this.notations)),i=n.next();!i.done;i=n.next()){var s=i.value;this.maximizeEntries(r,this.notations[s].bbox(this));var a=this.notations[s].border;a&&this.maximizeEntries(o,a(this))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return[0,1,2,3].map(function(t){return r[t]-o[t]})},e.prototype.maximizeEntries=function(t,e){for(var r=0;r<t.length;r++)t[r]<e[r]&&(t[r]=e[r])},e.prototype.getArgMod=function(t,e){return[Math.atan2(e,t),Math.sqrt(t*t+e*e)]},e.prototype.arrow=function(t,e,r){return void 0===r&&(r=!1),null},e.prototype.arrowData=function(){var t=p([this.padding,this.thickness],2),e=t[0],r=t[1]*(this.arrowhead.x+Math.max(1,this.arrowhead.dx)),o=this.childNodes[0].getBBox(),n=o.h,i=o.d,s=o.w,a=n+i,l=Math.sqrt(a*a+s*s),h=Math.max(e,r*s/l),c=Math.max(e,r*a/l),u=p(this.getArgMod(s+2*h,a+2*c),2);return{a:u[0],W:u[1],x:h,y:c}},e.prototype.createMsqrt=function(t){var e=this.node.factory.create("msqrt");e.inheritAttributesFrom(this.node),e.childNodes[0]=t.node;var r=this.wrap(e);return r.parent=this,r},e.prototype.sqrtTRBL=function(){var t=this.msqrt.getBBox(),e=this.msqrt.childNodes[0].getBBox();return[t.h-e.h,0,t.d-e.d,t.w-e.w]},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=o.apply(this,i(t))||this;return r.notations={},r.renderChild=null,r.msqrt=null,r.padding=l.PADDING,r.thickness=l.THICKNESS,r.arrowhead={x:l.ARROWX,y:l.ARROWY,dx:l.ARROWDX},r.getParameters(),r.getNotations(),r.removeRedundantNotations(),r.initializeNotations(),r}var o}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},s=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t},l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMfencedMixin=function(t){return n(e,o=t),e.prototype.createMrow=function(){var t=this.node.factory.create("inferredMrow");t.inheritAttributesFrom(this.node),this.mrow=this.wrap(t),this.mrow.parent=this},e.prototype.addMrowChildren=function(){var e,t,r=this.node,o=this.mrow;this.addMo(r.open),this.childNodes.length&&o.childNodes.push(this.childNodes[0]);var n=0;try{for(var i=l(this.childNodes.slice(1)),s=i.next();!s.done;s=i.next()){var a=s.value;this.addMo(r.separators[n++]),o.childNodes.push(a)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.addMo(r.close),o.stretchChildren()},e.prototype.addMo=function(t){if(t){var e=this.wrap(t);this.mrow.childNodes.push(e),e.parent=this.mrow}},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),t.updateFrom(this.mrow.getBBox()),this.setChildPWidths(e)},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=o.apply(this,s(t))||this;return r.mrow=null,r.createMrow(),r.addMrowChildren(),r}var o}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),h=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},s=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMfracMixin=function(t){return n(e,i=t),e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),t.empty();var r=this.node.attributes.getList("linethickness","bevelled"),o=r.linethickness,n=r.bevelled,i=this.isDisplay(),s=null;if(n)this.getBevelledBBox(t,i);else{var a=this.length2em(String(o));s=-2*this.pad,0===a?this.getAtopBBox(t,i):(this.getFractionBBox(t,i,a),s-=.2),s+=t.w}t.clean(),this.setChildPWidths(e,s)},e.prototype.getFractionBBox=function(t,e,r){var o=this.childNodes[0].getBBox(),n=this.childNodes[1].getBBox(),i=this.font.params.axis_height,s=this.getTUV(e,r),a=s.T,l=s.u,h=s.v;t.combine(o,0,i+a+Math.max(o.d*o.rscale,l)),t.combine(n,0,i-a-Math.max(n.h*n.rscale,h)),t.w+=2*this.pad+.2},e.prototype.getTUV=function(t,e){var r=this.font.params,o=r.axis_height,n=(t?3.5:1.5)*e;return{T:(t?3.5:1.5)*e,u:(t?r.num1:r.num2)-o-n,v:(t?r.denom1:r.denom2)+o-n}},e.prototype.getAtopBBox=function(t,e){this.font.params;var r=this.getUVQ(e),o=r.u,n=r.v,i=r.nbox,s=r.dbox;t.combine(i,0,o),t.combine(s,0,-n),t.w+=2*this.pad},e.prototype.getUVQ=function(t){var e=this.childNodes[0].getBBox(),r=this.childNodes[1].getBBox(),o=this.font.params,n=h(t?[o.num1,o.denom1]:[o.num3,o.denom2],2),i=n[0],s=n[1],a=(t?7:3)*o.rule_thickness,l=i-e.d*e.scale-(r.h*r.scale-s);return l<a&&(i+=(a-l)/2,s+=(a-l)/2,l=a),{u:i,v:s,q:l,nbox:e,dbox:r}},e.prototype.getBevelledBBox=function(t,e){var r=this.getBevelData(e),o=r.u,n=r.v,i=r.delta,s=r.nbox,a=r.dbox,l=this.bevel.getBBox();t.combine(s,0,o),t.combine(l,t.w-i/2,0),t.combine(a,t.w-i/2,n)},e.prototype.getBevelData=function(t){var e=this.childNodes[0].getBBox(),r=this.childNodes[1].getBBox(),o=t?.4:.15,n=Math.max(e.scale*(e.h+e.d),r.scale*(r.h+r.d))+2*o,i=this.font.params.axis_height;return{H:n,delta:o,u:e.scale*(e.d-e.h)/2+i+o,v:r.scale*(r.d-r.h)/2+i-o,nbox:e,dbox:r}},e.prototype.canStretch=function(t){return!1},e.prototype.isDisplay=function(){var t=this.node.attributes.getList("displaystyle","scriptlevel"),e=t.displaystyle,r=t.scriptlevel;return e&&0===r},e.prototype.getWrapWidth=function(t){var e=this.node.attributes;return e.get("bevelled")?this.childNodes[t].getBBox().w:this.getBBox().w-(this.length2em(e.get("linethickness"))?.2:0)-2*this.pad},e.prototype.getChildAlign=function(t){var e=this.node.attributes;return e.get("bevelled")?"left":e.get(["numalign","denomalign"][t])},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=i.apply(this,s(t))||this;if(r.bevel=null,r.pad=r.node.getProperty("withDelims")?0:r.font.params.nulldelimiterspace,r.node.attributes.get("bevelled")){var o=r.getBevelData(r.isDisplay()).H,n=r.bevel=r.createMo("/");n.canStretch(1),n.getStretchedVariant([o],!0)}return r}var i}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},s=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMglyphMixin=function(t){return n(e,o=t),e.prototype.getParameters=function(){var t=this.node.attributes.getList("width","height","voffset"),e=t.width,r=t.height,o=t.voffset;this.width="auto"===e?1:this.length2em(e),this.height="auto"===r?1:this.length2em(r),this.voffset=this.length2em(o||"0")},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),t.w=this.width,t.h=this.height-this.voffset,t.d=this.voffset},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=o.apply(this,s(t))||this;return r.getParameters(),r}var o}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMiMixin=function(t){return n(e,r=t),e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),r.prototype.computeBBox.call(this,t),this.copySkewIC(t),this.noIC&&(t.w-=t.ic)},e;function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.noIC=!1,t}var r}},function(t,a,e){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),f=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},h=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(a,"__esModule",{value:!0});var n=e(1);a.NextScript={base:"subList",subList:"supList",supList:"subList",psubList:"psupList",psupList:"psubList"},a.ScriptNames=["sup","sup","psup","psub"],a.CommonMmultiscriptsMixin=function(t){return r(e,l=t),e.prototype.combinePrePost=function(t,e){var r=new n.BBox(t);return r.combine(e,0,0),r},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=this.font.params.scriptspace,o=this.getScriptData(),n=this.combinePrePost(o.sub,o.psub),i=this.combinePrePost(o.sup,o.psup),s=f(this.getUVQ(o.base,n,i),2),a=s[0],l=s[1];if(t.empty(),o.numPrescripts&&(t.combine(o.psup,r,a),t.combine(o.psub,r,l)),t.append(o.base),o.numScripts){var h=t.w;t.combine(o.sup,h,a),t.combine(o.sub,h,l),t.w+=r}t.clean(),this.setChildPWidths(e)},e.prototype.getScriptData=function(){if(this.scriptData)return this.scriptData;var t=this.scriptData={base:null,sub:n.BBox.empty(),sup:n.BBox.empty(),psub:n.BBox.empty(),psup:n.BBox.empty(),numPrescripts:0,numScripts:0},e=this.getScriptBBoxLists();return this.combineBBoxLists(t.sub,t.sup,e.subList,e.supList),this.combineBBoxLists(t.psub,t.psup,e.psubList,e.psupList),this.scriptData.base=e.base[0],this.scriptData.numPrescripts=e.psubList.length,this.scriptData.numScripts=e.subList.length,this.scriptData},e.prototype.getScriptBBoxLists=function(){var e,t,r={base:[],subList:[],supList:[],psubList:[],psupList:[]},o="base";try{for(var n=h(this.childNodes),i=n.next();!i.done;i=n.next()){var s=i.value;o=s.node.isKind("mprescripts")?"psubList":(r[o].push(s.getBBox()),a.NextScript[o])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return this.firstPrescript=r.subList.length+r.supList.length+2,this.padLists(r.subList,r.supList),this.padLists(r.psubList,r.psupList),r},e.prototype.padLists=function(t,e){t.length>e.length&&e.push(n.BBox.empty())},e.prototype.combineBBoxLists=function(t,e,r,o){for(var n=0;n<r.length;n++){var i=f(this.getScaledWHD(r[n]),3),s=i[0],a=i[1],l=i[2],h=f(this.getScaledWHD(o[n]),3),c=h[0],u=h[1],p=h[2],d=Math.max(s,c);t.w+=d,e.w+=d,a>t.h&&(t.h=a),l>t.d&&(t.d=l),u>e.h&&(e.h=u),p>e.d&&(e.d=p)}},e.prototype.getScaledWHD=function(t){var e=t.w,r=t.h,o=t.d,n=t.rscale;return[e*n,r*n,o*n]},e.prototype.getUVQ=function(t,e,r){var o;if(!this.UVQ){var n=f([0,0,0],3),i=n[0],s=n[1],a=n[2];0===e.h&&0===e.d?i=this.getU(t,r):0===r.h&&0===r.d?i=-this.getV(t,e):(i=(o=f(l.prototype.getUVQ.call(this,t,e,r),3))[0],s=o[1],a=o[2]),this.UVQ=[i,s,a]}return this.UVQ},e;function e(){var t=null!==l&&l.apply(this,arguments)||this;return t.scriptData=null,t.firstPrescript=0,t}var l}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMnMixin=function(t){return n(e,r=t),e.prototype.remapChars=function(t){if(t.length){var e=this.font.getRemappedChar("mn",t[0]);if(e){var r=this.unicodeChars(e);1===r.length?t[0]=r[0]:t=r.concat(t.slice(1))}}return t},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}},function(t,e,r){"use strict";var o,n,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),y=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},s=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(y(arguments[e]));return t},d=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var a=r(2);e.DirectionVH=((n={})[1]="v",n[2]="h",n),e.CommonMoMixin=function(t){return i(e,n=t),e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=0!==this.stretch.dir;if(r&&null===this.size&&this.getStretchedVariant([0]),!(r&&this.size<0)&&(n.prototype.computeBBox.call(this,t),this.copySkewIC(t),this.noIC&&(t.w-=t.ic),this.node.attributes.get("symmetric")&&2!==this.stretch.dir)){var o=(t.h+t.d)/2+this.font.params.axis_height-t.h;t.h+=o,t.d-=o}},e.prototype.getVariant=function(){this.node.attributes.get("largeop")?this.variant=this.node.attributes.get("displaystyle")?"-largeop":"-smallop":n.prototype.getVariant.call(this)},e.prototype.canStretch=function(t){if(0!==this.stretch.dir)return this.stretch.dir===t;if(!this.node.attributes.get("stretchy"))return!1;var e=this.getText();if(1!==e.length)return!1;var r=this.font.getDelimiter(e.charCodeAt(0));return this.stretch=r&&r.dir===t?r:a.NOSTRETCH,0!==this.stretch.dir},e.prototype.getStretchedVariant=function(t,e){var r,o;if(void 0===e&&(e=!1),0!==this.stretch.dir){var n=this.getWH(t),i=this.getSize("minsize",0),s=this.getSize("maxsize",1/0);n=Math.max(i,Math.min(s,n));var a=i||e?n:Math.max(n*this.font.params.delimiterfactor/1e3,n-this.font.params.delimitershortfall),l=this.stretch,h=l.c||this.getText().charCodeAt(0),c=0;if(l.sizes)try{for(var u=d(l.sizes),p=u.next();!p.done;p=u.next()){if(a<=p.value)return this.variant=this.font.getSizeVariant(h,c),void(this.size=c);c++}}catch(t){r={error:t}}finally{try{p&&!p.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}l.stretch?(this.size=-1,this.invalidateBBox(),this.getStretchBBox(t,n,l)):(this.variant=this.font.getSizeVariant(h,c-1),this.size=c-1)}},e.prototype.getSize=function(t,e){var r=this.node.attributes;return r.isSet(t)&&(e=this.length2em(r.get(t),1,1)),e},e.prototype.getWH=function(t){if(0===t.length)return 0;if(1===t.length)return t[0];var e=y(t,2),r=e[0],o=e[1],n=this.font.params.axis_height;return this.node.attributes.get("symmetric")?2*Math.max(r-n,o+n):r+o},e.prototype.getStretchBBox=function(t,e,r){var o;r.hasOwnProperty("min")&&r.min>e&&(e=r.min);var n=y(r.HDW,3),i=n[0],s=n[1],a=n[2];1===this.stretch.dir?(i=(o=y(this.getBaseline(t,e,r),2))[0],s=o[1]):a=e,this.bbox.h=i,this.bbox.d=s,this.bbox.w=a},e.prototype.getBaseline=function(t,e,r){var o=2===t.length&&t[0]+t[1]===e,n=this.node.attributes.get("symmetric"),i=y(o?t:[e,0],2),s=i[0],a=i[1],l=y([s+a,0],2),h=l[0],c=l[1];if(n){var u=this.font.params.axis_height;o&&(h=2*Math.max(s-u,a+u)),c=h/2-u}else if(o)c=a;else{var p=y(r.HDW||[.75,.25],2),d=p[0],f=p[1];c=f*(h/(d+f))}return[h-c,c]},e.prototype.remapChars=function(t){if(1==t.length){var e=this.node.parent,r=this.isAccent&&(e===this.node.coreParent()||e.isEmbellished)?"accent":"mo",o=this.font.getRemappedChar(r,t[0]);o&&(t=this.unicodeChars(o))}return t},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=n.apply(this,s(t))||this;return r.noIC=!1,r.size=null,r.isAccent=r.node.isAccent,r}var n}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),h=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMpaddedMixin=function(t){return n(e,r=t),e.prototype.getDimens=function(){var t=this.node.attributes.getList("width","height","depth","lspace","voffset"),e=this.childNodes[0].getBBox(),r=e.w,o=e.h,n=e.d,i=r,s=o,a=n,l=0,h=0,c=0;""!==t.width&&(r=this.dimen(t.width,e,"w",0)),""!==t.height&&(o=this.dimen(t.height,e,"h",0)),""!==t.depth&&(n=this.dimen(t.depth,e,"d",0)),""!==t.voffset&&(h=this.dimen(t.voffset,e)),""!==t.lspace&&(l=this.dimen(t.lspace,e));var u=this.node.attributes.get("data-align");return u&&(c=this.getAlignX(r,e,u)),[s,a,i,o-s,n-a,r-i,l,h,c]},e.prototype.dimen=function(t,e,r,o){void 0===r&&(r=""),void 0===o&&(o=null);var n=(t=String(t)).match(/width|height|depth/),i=n?e[n[0].charAt(0)]:r?e[r]:0,s=this.length2em(t,i)||0;return t.match(/^[-+]/)&&r&&(s+=i),null!=o&&(s=Math.max(o,s)),s},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=h(this.getDimens(),8),o=r[0],n=r[1],i=r[2],s=r[3],a=r[4],l=r[5];r[6],r[7],t.w=i+l,t.h=o+s,t.d=n+a,this.setChildPWidths(e,t.w)},e.prototype.getWrapWidth=function(t){return this.getBBox().w},e.prototype.getChildAlign=function(t){return this.node.attributes.get("data-align")||"left"},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMrootMixin=function(t){return n(e,r=t),Object.defineProperty(e.prototype,"surd",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return 1},enumerable:!0,configurable:!0}),e.prototype.combineRootBBox=function(t,e){var r=this.childNodes[this.root].getBBox(),o=i(this.getRootDimens(e),2),n=(o[0],o[1]);t.combine(r,0,n)},e.prototype.getRootDimens=function(t){var e=this.childNodes[this.surd],r=this.childNodes[this.root].getBBox(),o=(e.size<0?.5:.6)*t.w,n=r.w,i=r.rscale,s=Math.max(n,o/i),a=Math.max(0,s-n);return[s*i-o,this.rootHeight(r,t,e.size),a]},e.prototype.rootHeight=function(t,e,r){var o=e.h+e.d;return(r<0?2+.3*(o-4):.55*o)-e.d+Math.max(0,t.d*t.rscale)},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},s=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMsMixin=function(t){return n(e,i=t),e.prototype.createText=function(t){var e=this.wrap(this.mmlText(t));return e.parent=this,e},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=i.apply(this,s(t))||this,o=r.node.attributes,n=o.getList("lquote","rquote");return"monospace"!==r.variant&&(o.isSet("lquote")||'"'!==n.lquote||(n.lquote="\u201c"),o.isSet("rquote")||'"'!==n.rquote||(n.rquote="\u201d")),r.childNodes.unshift(r.createText(n.lquote)),r.childNodes.push(r.createText(n.rquote)),r}var i}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMspaceMixin=function(t){return n(e,r=t),e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=this.node.attributes;t.w=this.length2em(r.get("width"),0),t.h=this.length2em(r.get("height"),0),t.d=this.length2em(r.get("depth"),0)},e.prototype.handleVariant=function(){},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},u=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c(arguments[e]));return t};Object.defineProperty(e,"__esModule",{value:!0});var p=r(1);e.CommonMsqrtMixin=function(t){return n(e,h=t),Object.defineProperty(e.prototype,"base",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"surd",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.createMo=function(t){var e=h.prototype.createMo.call(this,t);return this.childNodes.push(e),e},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=this.childNodes[this.surd].getBBox(),o=new p.BBox(this.childNodes[this.base].getBBox()),n=c(this.getPQ(r),2),i=(n[0],n[1]),s=c(this.getRootDimens(r),1)[0],a=this.font.params.rule_thickness,l=o.h+i+a;t.h=l+a,this.combineRootBBox(t,r),t.combine(r,s,l-r.h),t.combine(o,s+r.w,0),t.clean(),this.setChildPWidths(e)},e.prototype.combineRootBBox=function(t,e){},e.prototype.getPQ=function(t){var e=this.font.params.rule_thickness,r=this.node.attributes.get("displaystyle")?this.font.params.x_height:e;return[r,t.h+t.d>this.surdH?(t.h+t.d-(this.surdH-e))/2:e+r/4]},e.prototype.getRootDimens=function(t){return[0,0,0,0]},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=h.apply(this,u(t))||this,o=r.createMo("\u221a");o.canStretch(1);var n=r.childNodes[r.base].getBBox(),i=n.h,s=n.d,a=r.font.params.rule_thickness,l=r.node.attributes.get("displaystyle")?r.font.params.x_height:a;return r.surdH=i+s+2*a+l/4,o.getStretchedVariant([r.surdH-s,s],!0),r}var h}},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),m=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},s=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t},M=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),v=r(5),b=r(79);e.CommonMtableMixin=function(t){return i(e,n=t),Object.defineProperty(e.prototype,"tableRows",{get:function(){return this.childNodes},enumerable:!0,configurable:!0}),e.prototype.findContainer=function(){for(var t=this,e=t.parent;e&&(e.node.notParent||e.node.isKind("mrow"));)e=(t=e).parent;this.container=e,this.containerI=t.node.childPosition()},e.prototype.getPercentageWidth=function(){if(this.hasLabels)this.bbox.pwidth=a.BBox.fullWidth;else{var t=this.node.attributes.get("width");v.isPercent(t)&&(this.bbox.pwidth=t)}},e.prototype.stretchRows=function(){for(var t=this.node.attributes.get("equalrows"),e=t?this.getEqualRowHeight():0,r=t?this.getTableData():{H:[0],D:[0]},o=r.H,n=r.D,i=this.tableRows,s=0;s<this.numRows;s++){var a=t?[(e+o[s]-n[s])/2,(e-o[s]+n[s])/2]:null;i[s].stretchChildren(a)}},e.prototype.stretchColumns=function(){for(var t=0;t<this.numCols;t++){var e="number"==typeof this.cWidths[t]?this.cWidths[t]:null;this.stretchColumn(t,e)}},e.prototype.stretchColumn=function(t,e){var r,o,n,i,s,a,l=[];try{for(var h=M(this.tableRows),c=h.next();!c.done;c=h.next())(m=c.value.getChild(t))&&0===(_=m.childNodes[0]).stretch.dir&&_.canStretch(2)&&l.push(_)}catch(t){r={error:t}}finally{try{c&&!c.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}var u=l.length,p=this.childNodes.length;if(u&&1<p){if(null===e){e=0;var d=1<u&&u===p;try{for(var f=M(this.tableRows),y=f.next();!y.done;y=f.next()){var m;if(m=y.value.getChild(t)){var v=0===(_=m.childNodes[0]).stretch.dir;if(d||v){var b=_.getBBox(v).w;e<b&&(e=b)}}}}catch(t){n={error:t}}finally{try{y&&!y.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}try{for(var g=M(l),x=g.next();!x.done;x=g.next()){var _;(_=x.value).coreMO().getStretchedVariant([e])}}catch(t){s={error:t}}finally{try{x&&!x.done&&(a=g.return)&&a.call(g)}finally{if(s)throw s.error}}}},e.prototype.getTableData=function(){if(this.data)return this.data;for(var t=new Array(this.numRows).fill(0),e=new Array(this.numRows).fill(0),r=new Array(this.numCols).fill(0),o=new Array(this.numRows),n=new Array(this.numRows),i=[0],s=this.tableRows,a=0;a<s.length;a++){for(var l=s[a],h=0;h<l.numCells;h++){var c=l.getChild(h);this.updateHDW(c,h,a,t,e,r),this.recordPWidthCell(c,h)}o[a]=t[a],n[a]=e[a],l.labeled&&this.updateHDW(l.childNodes[0],0,a,t,e,i)}this.node.attributes.get("width");var u=i[0];return this.data={H:t,D:e,W:r,NH:o,ND:n,L:u},this.data},e.prototype.updateHDW=function(t,e,r,o,n,i){void 0===i&&(i=null);var s=t.getBBox(),a=s.h,l=s.d,h=s.w;s.pwidth,a<.75&&(a=.75),l<.25&&(l=.25),a>o[r]&&(o[r]=a),l>n[r]&&(n[r]=l),i&&h>i[e]&&(i[e]=h)},e.prototype.recordPWidthCell=function(t,e){t.childNodes[0]&&t.childNodes[0].getBBox().pwidth&&this.pwidthCells.push([t,e])},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r,o,n=this.getTableData(),i=n.H,s=n.D;if(this.node.attributes.get("equalrows")){var a=this.getEqualRowHeight();r=b.sum([].concat(this.rLines,this.rSpace))+a*this.numRows}else r=b.sum(i.concat(s,this.rLines,this.rSpace));r+=2*(this.fLine+this.fSpace[1]);var l=this.getComputedWidths();o=b.sum(l.concat(this.cLines,this.cSpace))+2*(this.fLine+this.fSpace[0]);var h=this.node.attributes.get("width");"auto"!==h&&(o=Math.max(this.length2em(h,0)+2*this.fLine,o));var c=m(this.getBBoxHD(r),2),u=c[0],p=c[1];t.h=u,t.d=p,t.w=o;var d=m(this.getBBoxLR(),2),f=d[0],y=d[1];t.L=f,t.R=y,v.isPercent(h)||this.setColumnPWidths()},e.prototype.setChildPWidths=function(t,e,r){var o=this.node.attributes.get("width");if(v.isPercent(o)){this.hasLabels||(this.bbox.pwidth="",this.container.bbox.pwidth="");var n=this.bbox,i=n.w,s=n.L,a=n.R,l=Math.max(i,this.length2em(o,Math.max(e,s+i+a))),h=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(h,l);var c=this.getComputedWidths();return this.pWidth=b.sum(c.concat(this.cLines,this.cSpace))+2*(this.fLine+this.fSpace[0]),this.isTop&&(this.bbox.w=this.pWidth),this.setColumnPWidths(),this.pWidth!==i&&this.parent.invalidateBBox(),this.pWidth!==i}},e.prototype.setColumnPWidths=function(){var e,t,r=this.cWidths;try{for(var o=M(this.pwidthCells),n=o.next();!n.done;n=o.next()){var i=m(n.value,2),s=i[0],a=i[1];s.setChildPWidths(!1,r[a])&&(s.invalidateBBox(),s.getBBox())}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},e.prototype.getBBoxHD=function(t){var e=m(this.getAlignmentRow(),2),r=e[0],o=e[1];if(null===o){var n=this.font.params.axis_height,i=t/2;return{top:[0,t],center:[i,i],bottom:[t,0],baseline:[i,i],axis:[i+n,i-n]}[r]||[i,i]}var s=this.getVerticalPosition(o,r);return[s,t-s]},e.prototype.getBBoxLR=function(){if(this.hasLabels){var t=this.node.attributes.get("side"),e=m(this.getPadAlignShift(t),3),r=e[0],o=e[1];return e[2],"center"===o?[r,r]:"left"===t?[r,0]:[0,r]}return[0,0]},e.prototype.getPadAlignShift=function(t){var e=this.getTableData().L+this.length2em(this.node.attributes.get("minlabelspacing")),r=m(null==this.styles?["",""]:[this.styles.get("padding-left"),this.styles.get("padding-right")],2),o=r[0],n=r[1];(o||n)&&(e=Math.max(e,this.length2em(o||"0"),this.length2em(n||"0")));var i=m(this.getAlignShift(),2),s=i[0],a=i[1];return s===t&&(a="left"===t?Math.max(e,a)-e:Math.min(-e,a)+e),[e,s,a]},e.prototype.getAlignShift=function(){return this.isTop?n.prototype.getAlignShift.call(this):[this.container.getChildAlign(this.containerI),0]},e.prototype.getWidth=function(){return this.pWidth||this.getBBox().w},e.prototype.getEqualRowHeight=function(){var t=this.getTableData(),e=t.H,r=t.D,o=Array.from(e.keys()).map(function(t){return e[t]+r[t]});return Math.max.apply(Math,o)},e.prototype.getComputedWidths=function(){var e=this,r=this.getTableData().W,t=Array.from(r.keys()).map(function(t){return"number"==typeof e.cWidths[t]?e.cWidths[t]:r[t]});return this.node.attributes.get("equalcolumns")&&(t=Array(t.length).fill(b.max(t))),t},e.prototype.getColumnWidths=function(){var t=this.node.attributes.get("width");if(this.node.attributes.get("equalcolumns"))return this.getEqualColumns(t);var e=this.getColumnAttributes("columnwidth",0);return"auto"===t?this.getColumnWidthsAuto(e):v.isPercent(t)?this.getColumnWidthsPercent(e,t):this.getColumnWidthsFixed(e,this.length2em(t))},e.prototype.getEqualColumns=function(t){var e,r=Math.max(1,this.numCols);if("auto"===t){var o=this.getTableData().W;e=b.max(o)}else if(v.isPercent(t))e=this.percent(1/r);else{var n=b.sum([].concat(this.cLines,this.cSpace))+2*this.fSpace[0];e=Math.max(0,this.length2em(t)-n)/r}return Array(this.numCols).fill(e)},e.prototype.getColumnWidthsAuto=function(t){var e=this;return t.map(function(t){return"auto"===t||"fit"===t?null:v.isPercent(t)?t:e.length2em(t)})},e.prototype.getColumnWidthsPercent=function(r,t){var o=this,n=0<=r.indexOf("fit"),i=(n?this.getTableData():{W:null}).W;return Array.from(r.keys()).map(function(t){var e=r[t];return"fit"===e?null:"auto"===e?n?i[t]:null:v.isPercent(e)?e:o.length2em(e)})},e.prototype.getColumnWidthsFixed=function(r,o){var n=this,t=Array.from(r.keys()),i=t.filter(function(t){return"fit"===r[t]}),e=t.filter(function(t){return"auto"===r[t]}),s=i.length||e.length,a=(s?this.getTableData():{W:null}).W,l=o-b.sum([].concat(this.cLines,this.cSpace))-2*this.fSpace[0],h=l;t.forEach(function(t){var e=r[t];h-="fit"===e||"auto"===e?a[t]:n.length2em(e,o)});var c=s&&0<h?h/s:0;return t.map(function(t){var e=r[t];return"fit"===e?a[t]+c:"auto"===e?a[t]+(0===i.length?c:0):n.length2em(e,l)})},e.prototype.getVerticalPosition=function(t,e){for(var r=this.node.attributes.get("equalrows"),o=this.getTableData(),n=o.H,i=o.D,s=r?this.getEqualRowHeight():0,a=this.getRowHalfSpacing(),l=this.fLine,h=0;h<t;h++)l+=a[h]+(r?s:n[h]+i[h])+a[h+1]+this.rLines[h];var c=m(r?[(s+n[t]-i[t])/2,(s-n[t]+i[t])/2]:[n[t],i[t]],2),u=c[0],p=c[1];return l+={top:0,center:a[t]+(u+p)/2,bottom:a[t]+u+p+a[t+1],baseline:a[t]+u,axis:a[t]+u-.25}[e]||0},e.prototype.getEmHalfSpacing=function(t,e){var r=this.em(t),o=this.addEm(e,2);return o.unshift(r),o.push(r),o},e.prototype.getRowHalfSpacing=function(){var t=this.rSpace.map(function(t){return t/2});return t.unshift(this.fSpace[1]),t.push(this.fSpace[1]),t},e.prototype.getColumnHalfSpacing=function(){var t=this.cSpace.map(function(t){return t/2});return t.unshift(this.fSpace[0]),t.push(this.fSpace[0]),t},e.prototype.getAlignmentRow=function(){var t=m(v.split(this.node.attributes.get("align")),2),e=t[0],r=t[1];if(null==r)return[e,null];var o=parseInt(r);return o<0&&(o+=this.numRows),[e,o<1||o>this.numRows?null:o-1]},e.prototype.getColumnAttributes=function(t,e){void 0===e&&(e=1);var r=this.numCols-e,o=this.getAttributeArray(t);if(0!==o.length){for(;o.length<r;)o.push(o[o.length-1]);return o.length>r&&o.splice(r),o}},e.prototype.getRowAttributes=function(t,e){void 0===e&&(e=1);var r=this.numRows-e,o=this.getAttributeArray(t);if(0!==o.length){for(;o.length<r;)o.push(o[o.length-1]);return o.length>r&&o.splice(r),o}},e.prototype.getAttributeArray=function(t){var e=this.node.attributes.get(t);return e?v.split(e):[this.node.attributes.getDefault(t)]},e.prototype.addEm=function(t,e){var r=this;if(void 0===e&&(e=1),t)return t.map(function(t){return r.em(t/e)})},e.prototype.convertLengths=function(t){var e=this;if(t)return t.map(function(t){return e.length2em(t)})},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=n.apply(this,s(t))||this;r.numCols=0,r.numRows=0,r.data=null,r.pwidthCells=[],r.pWidth=0,r.numCols=b.max(r.tableRows.map(function(t){return t.numCells})),r.numRows=r.childNodes.length,r.hasLabels=r.childNodes.reduce(function(t,e){return t||e.node.isKind("mlabeledtr")},!1),r.findContainer(),r.isTop=!r.container||r.container.node.isKind("math")&&!r.container.parent,r.getPercentageWidth();var o=r.node.attributes;return r.frame="none"!==o.get("frame"),r.fLine=r.frame?.07:0,r.fSpace=r.frame?r.convertLengths(r.getAttributeArray("framespacing")):[0,0],r.cSpace=r.convertLengths(r.getColumnAttributes("columnspacing")),r.rSpace=r.convertLengths(r.getRowAttributes("rowspacing")),r.cLines=r.getColumnAttributes("columnlines").map(function(t){return"none"===t?0:.07}),r.rLines=r.getRowAttributes("rowlines").map(function(t){return"none"===t?0:.07}),r.cWidths=r.getColumnWidths(),r.stretchRows(),r.stretchColumns(),r}var n}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMtdMixin=function(t){return n(e,r=t),Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!0,configurable:!0}),e.prototype.invalidateBBox=function(){this.bboxComputed=!1},e.prototype.getWrapWidth=function(t){var e=this.parent.parent,r=this.parent,o=this.node.childPosition()-(r.labeled?1:0);return"number"==typeof e.cWidths[o]?e.cWidths[o]:e.getTableData().W[o]},e.prototype.getChildAlign=function(t){return this.node.attributes.get("columnalign")},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},s=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMtextMixin=function(t){var e,o;return n(r,o=t),r.prototype.getVariant=function(){var t=this.jax.options;if(t.mtextInheritFont||t.merrorInheritFont&&this.node.Parent.isKind("merror")){var e=this.node.attributes.get("mathvariant"),r=this.constructor.INHERITFONTS[e];if(r)return void(this.variant=this.explicitVariant.apply(this,s(r)))}o.prototype.getVariant.call(this)},(e=r).INHERITFONTS={normal:["","",""],bold:["","bold",""],italic:["","","italic"],"bold-italic":["","bold","italic"],script:["cursive","",""],"bold-script":["cursive","bold",""],"sans-serif":["sans-serif","",""],"bold-sans-serif":["sans-serif","bold",""],"sans-serif-italic":["sans-serif","","italic"],"bold-sans-serif-italic":["sans-serif","bold","italic"],monospace:["monospace","",""]},e;function r(){return null!==o&&o.apply(this,arguments)||this}}},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},m=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t},M=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var s=1.5;e.CommonScriptbaseMixin=function(t){var e,n;return i(r,n=t),Object.defineProperty(r.prototype,"baseChild",{get:function(){return this.childNodes[this.node.base]},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"script",{get:function(){return this.childNodes[1]},enumerable:!0,configurable:!0}),r.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=this.baseChild.getBBox(),o=this.script.getBBox(),n=a(this.getOffset(r,o),2),i=n[0],s=n[1];t.append(r),t.combine(o,t.w+i,s),t.w+=this.font.params.scriptspace,t.clean(),this.setChildPWidths(e)},r.prototype.coreIC=function(){var t=this.baseCore.getBBox();return t.ic?1.2*t.ic+.05:0},r.prototype.isCharBase=function(){var t=this.baseChild;return(t.node.isKind("mstyle")||t.node.isKind("mrow"))&&1===t.childNodes.length&&(t=t.childNodes[0]),(t.node.isKind("mo")||t.node.isKind("mi")||t.node.isKind("mn"))&&1===t.bbox.rscale&&1===t.getText().length&&!t.node.attributes.get("largeop")},r.prototype.getOffset=function(t,e){return[0,0]},r.prototype.getV=function(t,e){var r=this.font.params,o=this.length2em(this.node.attributes.get("subscriptshift"),r.sub1);return Math.max(this.isCharBase()?0:t.d+r.sub_drop*e.rscale,o,e.h*e.rscale-.8*r.x_height)},r.prototype.getU=function(t,e){var r=this.font.params,o=this.node.attributes.getList("displaystyle","texprimestyle","superscriptshift"),n=o.displaystyle?r.sup1:o.texprimestyle?r.sup3:r.sup2,i=this.length2em(o.superscriptshift,n);return Math.max(this.isCharBase()?0:t.h-r.sup_drop*e.rscale,i,e.d*e.rscale+.25*r.x_height)},r.prototype.hasMovableLimits=function(){return!this.node.attributes.get("displaystyle")&&(this.node.getProperty("movablelimits")||this.node.attributes.get("movablelimits")||this.baseChild.coreMO().node.attributes.get("movablelimits"))},r.prototype.getOverKU=function(t,e){var r=this.node.attributes.get("accent"),o=this.font.params,n=e.d*e.rscale,i=(r?o.rule_thickness:Math.max(o.big_op_spacing1,o.big_op_spacing3-Math.max(0,n)))-(this.baseChild.node.isKind("munderover")?.1:0);return[i,t.h*t.rscale+i+n]},r.prototype.getUnderKV=function(t,e){var r=this.node.attributes.get("accentunder"),o=this.font.params,n=e.h*e.rscale,i=(r?o.rule_thickness:Math.max(o.big_op_spacing2,o.big_op_spacing4-n))-(this.baseChild.node.isKind("munderover")?.1:0);return[i,-(t.d*t.rscale+i+n)]},r.prototype.getDeltaW=function(t,e){var r,o,n,i;void 0===e&&(e=[0,0,0]);var s=this.node.attributes.get("align"),a=t.map(function(t){return t.w*t.rscale}),l=Math.max.apply(Math,m(a)),h=[],c=0;try{for(var u=M(a.keys()),p=u.next();!p.done;p=u.next())h[y=p.value]=("center"===s?(l-a[y])/2:"right"===s?l-a[y]:0)+e[y],h[y]<c&&(c=-h[y])}catch(t){r={error:t}}finally{try{p&&!p.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}if(c)try{for(var d=M(h.keys()),f=d.next();!f.done;f=d.next()){var y;h[y=f.value]+=c}}catch(t){n={error:t}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}return h},r.prototype.getDelta=function(t){void 0===t&&(t=!1);var e=this.node.attributes.get("accent")&&!t?this.baseChild.coreMO().bbox.sk:0;return s*this.baseCore.bbox.ic/2+e},r.prototype.stretchChildren=function(){var e,t,r,o,n,i,s=[];try{for(var a=M(this.childNodes),l=a.next();!l.done;l=a.next())(_=l.value).canStretch(2)&&s.push(_)}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}var h=s.length,c=this.childNodes.length;if(h&&1<c){var u=0,p=1<h&&h===c;try{for(var d=M(this.childNodes),f=d.next();!f.done;f=d.next()){var y=0===(_=f.value).stretch.dir;if(p||y){var m=_.getBBox(y),v=m.w,b=m.rscale;u<v*b&&(u=v*b)}}}catch(t){r={error:t}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}try{for(var g=M(s),x=g.next();!x.done;x=g.next()){var _;(_=x.value).coreMO().getStretchedVariant([u/_.bbox.rscale])}}catch(t){n={error:t}}finally{try{x&&!x.done&&(i=g.return)&&i.call(g)}finally{if(n)throw n.error}}}},(e=r).useIC=!1,e;function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=n.apply(this,m(t))||this,o=r.baseCore=r.childNodes[0];if(!o)return r;for(;1===o.childNodes.length&&(o.node.isKind("mrow")||o.node.isKind("TeXAtom")||o.node.isKind("mstyle")||o.node.isKind("mpadded")||o.node.isKind("mphantom")||o.node.isKind("semantics"));)if(!(o=o.childNodes[0]))return r;return"noIC"in o&&(r.baseCore=o,r.constructor.useIC||(o.noIC=!0)),r}}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonSemanticsMixin=function(t){return n(e,r=t),e.prototype.computeBBox=function(t,e){if(void 0===e&&(e=!1),this.childNodes.length){var r=this.childNodes[0].getBBox(),o=r.w,n=r.h,i=r.d;t.w=o,t.h=n,t.d=i}},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(20),a=r(43),l=(i=s.CommonWrapperFactory,n(h,i),h.defaultNodes=a.SVGWrappers,h);function h(){var t=null!==i&&i.apply(this,arguments)||this;return t.jax=null,t}e.SVGWrapperFactory=l},function(t,e,r){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(44),s=r(45),a=r(46),l=r(47),h=r(48),c=r(49),u=r(50),p=r(51),d=r(52),f=r(53),y=r(54),m=r(55),v=r(14),b=r(56),g=r(57),x=r(8),_=r(59),M=r(60),w=r(61),S=r(62),O=r(63),B=r(64),C=r(65),j=r(67),P=r(68),V=r(69),A=r(70);e.SVGWrappers=((o={})[i.SVGmath.kind]=i.SVGmath,o[s.SVGmrow.kind]=s.SVGmrow,o[s.SVGinferredMrow.kind]=s.SVGinferredMrow,o[a.SVGmi.kind]=a.SVGmi,o[l.SVGmo.kind]=l.SVGmo,o[h.SVGmn.kind]=h.SVGmn,o[c.SVGms.kind]=c.SVGms,o[u.SVGmtext.kind]=u.SVGmtext,o[p.SVGmerror.kind]=p.SVGmerror,o[d.SVGmspace.kind]=d.SVGmspace,o[f.SVGmpadded.kind]=f.SVGmpadded,o[y.SVGmphantom.kind]=y.SVGmphantom,o[m.SVGmfrac.kind]=m.SVGmfrac,o[v.SVGmsqrt.kind]=v.SVGmsqrt,o[b.SVGmroot.kind]=b.SVGmroot,o[g.SVGmfenced.kind]=g.SVGmfenced,o[x.SVGmsub.kind]=x.SVGmsub,o[x.SVGmsup.kind]=x.SVGmsup,o[x.SVGmsubsup.kind]=x.SVGmsubsup,o[_.SVGmunder.kind]=_.SVGmunder,o[_.SVGmover.kind]=_.SVGmover,o[_.SVGmunderover.kind]=_.SVGmunderover,o[M.SVGmmultiscripts.kind]=M.SVGmmultiscripts,o[w.SVGmtable.kind]=w.SVGmtable,o[S.SVGmtr.kind]=S.SVGmtr,o[S.SVGmlabeledtr.kind]=S.SVGmlabeledtr,o[O.SVGmtd.kind]=O.SVGmtd,o[B.SVGmaction.kind]=B.SVGmaction,o[C.SVGmenclose.kind]=C.SVGmenclose,o[j.SVGsemantics.kind]=j.SVGsemantics,o[j.SVGannotation.kind]=j.SVGannotation,o[j.SVGannotationXML.kind]=j.SVGannotationXML,o[j.SVGxml.kind]=j.SVGxml,o[P.SVGmglyph.kind]=P.SVGmglyph,o[V.SVGTeXAtom.kind]=V.SVGTeXAtom,o[A.SVGTextNode.kind]=A.SVGTextNode,o[n.SVGWrapper.kind]=n.SVGWrapper,o)},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),y=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},m=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var v,i=r(0),s=r(23),a=r(80),l=(v=s.CommonMathMixin(i.SVGWrapper),n(h,v),h.prototype.toSVG=function(t){var e,r;v.prototype.toSVG.call(this,t);var o=this.adaptor,n="block"===this.node.attributes.get("display");n&&o.setAttribute(this.jax.container,"display","true");var i=y(this.getAlignShift(),2),s=i[0],a=i[1];if("center"!==s&&o.setAttribute(this.jax.container,"justify",s),n&&a&&(this.jax.shift=a),this.jax.document.options.internalSpeechTitles){var l=this.node.attributes,h=l.get("aria-label")||l.get("data-semantic-speech");if(h){var c=this.getTitleID(),u=this.svg("title",{id:c},[this.text(h)]);o.insert(u,o.firstChild(this.element)),o.setAttribute(this.element,"aria-labeledby",c),o.removeAttribute(this.element,"aria-label");try{for(var p=m(this.childNodes[0].childNodes),d=p.next();!d.done;d=p.next()){var f=d.value;o.setAttribute(f.element,"aria-hidden","true")}}catch(t){e={error:t}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(e)throw e.error}}}}},h.prototype.getTitleID=function(){return"mjx-svg-title-"+String(this.jax.options.titleID++)},h.prototype.setChildPWidths=function(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=!0),v.prototype.setChildPWidths.call(this,t,this.parent?e:this.metrics.containerWidth/this.jax.pxPerEm,!1)},h.kind=a.MmlMath.prototype.kind,h.styles={'mjx-container[jax="SVG"][display="true"]':{display:"block","text-align":"center",margin:"1em 0"},'mjx-container[jax="SVG"][justify="left"]':{"text-align":"left"},'mjx-container[jax="SVG"][justify="right"]':{"text-align":"right"}},h);function h(){return null!==v&&v.apply(this,arguments)||this}e.SVGmath=l},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(11),l=r(11),h=r(81),c=(i=a.CommonMrowMixin(s.SVGWrapper),n(u,i),u.prototype.toSVG=function(t){var e=this.node.isInferred?this.element=t:this.standardSVGnode(t);this.addChildren(e)},u.kind=h.MmlMrow.prototype.kind,u);function u(){return null!==i&&i.apply(this,arguments)||this}e.SVGmrow=c;var p,d=(p=l.CommonInferredMrowMixin(c),n(f,p),f.kind=h.MmlInferredMrow.prototype.kind,f);function f(){return null!==p&&p.apply(this,arguments)||this}e.SVGinferredMrow=d},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(28),l=r(82),h=(i=a.CommonMiMixin(s.SVGWrapper),n(c,i),c.kind=l.MmlMi.prototype.kind,c);function c(){return null!==i&&i.apply(this,arguments)||this}e.SVGmi=h},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),v=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s};Object.defineProperty(e,"__esModule",{value:!0});var a,i=r(0),s=r(31),l=r(83),h=r(84),c=(a=s.CommonMoMixin(i.SVGWrapper),n(u,a),u.prototype.toSVG=function(t){var e=this.node.attributes,r=e.get("symmetric")&&2!==this.stretch.dir,o=0!==this.stretch.dir;o&&null===this.size&&this.getStretchedVariant([]);var n=this.standardSVGnode(t);if(o&&this.size<0)this.stretchSVG(n,r);else{if(r||e.get("largeop")){var i=h.BBox.empty();a.prototype.computeBBox.call(this,i);var s=this.fixed((i.d-i.h)/2+this.font.params.axis_height);"0"!==s&&this.adaptor.setAttribute(n,"transform","translate(0 "+s+")")}this.addChildren(n)}},u.prototype.stretchSVG=function(t,e){var r=this.stretch.stretch,o=this.getBBox();1===this.stretch.dir?this.stretchVertical(r,o):this.stretchHorizontal(r,o)},u.prototype.stretchVertical=function(t,e){var r=e.h,o=e.d,n=e.w,i=this.addTop(t[0],r,n),s=this.addBot(t[2],o,n);if(4===t.length){var a=v(this.addMidV(t[3],n),2),l=a[0],h=a[1];this.addExtV(t[1],r,0,i,l,n),this.addExtV(t[1],0,o,h,s,n)}else this.addExtV(t[1],r,o,i,s,n)},u.prototype.stretchHorizontal=function(t,e){e.h,e.d;var r=e.w,o=this.addLeft(t[0]),n=this.addRight(t[2],r);if(4===t.length){var i=v(this.addMidH(t[3],r),2),s=i[0],a=i[1],l=r/2;this.addExtH(t[1],l,o,l-s),this.addExtH(t[1],l,a-l,n,l)}else this.addExtH(t[1],r,o,n)},u.prototype.getChar=function(t){var e=this.font.getChar("-size4",t)||[0,0,0,null];return[e[0],e[1],e[2],e[3]||{}]},u.prototype.addGlyph=function(t,e,r,o){return void 0===o&&(o=null),this.placeChar(t,e,r,o||this.element,"-size4")},u.prototype.addTop=function(t,e,r){if(!t)return 0;var o=v(this.getChar(t),3),n=o[0],i=o[1],s=o[2];return this.addGlyph(t,(r-s)/2,e-n),n+i},u.prototype.addExtV=function(t,e,r,o,n,i){var s=this;if(t){o=Math.max(0,o-.1),n=Math.max(0,n-.1);var a=this.adaptor,l=v(this.getChar(t),3),h=l[0],c=l[1],u=l[2],p=e+r-o-n,d=1.5*p/(h+c),f=(d*(h-c)-p)/2,y=this.svg("svg",{width:this.fixed(u),height:this.fixed(p),y:this.fixed(n-r),x:this.fixed((i-u)/2),viewBox:[0,f,u,p].map(function(t){return s.fixed(t)}).join(" ")});this.addGlyph(t,0,0,y);var m=a.lastChild(y);a.setAttribute(m,"transform","scale(1, "+this.jax.fixed(d)+")"),a.append(this.element,y)}},u.prototype.addBot=function(t,e,r){if(!t)return 0;var o=v(this.getChar(t),3),n=o[0],i=o[1],s=o[2];return this.addGlyph(t,(r-s)/2,i-e),n+i},u.prototype.addMidV=function(t,e){if(!t)return[0,0];var r=v(this.getChar(t),3),o=r[0],n=r[1],i=r[2],s=(n-o)/2+this.font.params.axis_height;return this.addGlyph(t,(e-i)/2,s),[o+s,n-s]},u.prototype.addLeft=function(t){return t?this.addGlyph(t,0,0):0},u.prototype.addExtH=function(t,e,r,o,n){var i=this;if(void 0===n&&(n=0),t){o=Math.max(0,o-.1),r=Math.max(0,r-.1),this.adaptor;var s=v(this.getChar(t),3),a=s[0],l=s[1],h=s[2],c=e-r-o,u=a+l+.2,p=c/h*1.5,d=-(l+.1),f=this.svg("svg",{width:this.fixed(c),height:this.fixed(u),x:this.fixed(n+r),y:this.fixed(d),viewBox:[(p*h-c)/2,d,c,u].map(function(t){return i.fixed(t)}).join(" ")});this.addGlyph(t,0,0,f);var y=this.adaptor.lastChild(f);this.adaptor.setAttribute(y,"transform","scale("+this.jax.fixed(p)+", 1)"),this.adaptor.append(this.element,f)}},u.prototype.addRight=function(t,e){if(!t)return 0;var r=v(this.getChar(t),3),o=(r[0],r[1],r[2]);return this.addGlyph(t,e-o,0)},u.prototype.addMidH=function(t,e){if(!t)return[0,0];var r=v(this.getChar(t),3),o=(r[0],r[1],r[2]);return this.addGlyph(t,(e-o)/2,0),[(e-o)/2,(e+o)/2]},u.kind=l.MmlMo.prototype.kind,u);function u(){return null!==a&&a.apply(this,arguments)||this}e.SVGmo=c},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(30),l=r(85),h=(i=a.CommonMnMixin(s.SVGWrapper),n(c,i),c.kind=l.MmlMn.prototype.kind,c);function c(){return null!==i&&i.apply(this,arguments)||this}e.SVGmn=h},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(34),l=r(86),h=(i=a.CommonMsMixin(s.SVGWrapper),n(c,i),c.kind=l.MmlMs.prototype.kind,c);function c(){return null!==i&&i.apply(this,arguments)||this}e.SVGms=h},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(39),l=r(87),h=(i=a.CommonMtextMixin(s.SVGWrapper),n(c,i),c.kind=l.MmlMtext.prototype.kind,c);function c(){return null!==i&&i.apply(this,arguments)||this}e.SVGmtext=h},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(88),l=(i=s.SVGWrapper,n(h,i),h.prototype.toSVG=function(t){var e=this.standardSVGnode(t),r=this.getBBox(),o=r.h,n=r.d,i=r.w;this.adaptor.append(this.element,this.svg("rect",{"data-background":!0,width:this.fixed(i),height:this.fixed(o+n),y:this.fixed(-n)})),this.addChildren(e)},h.kind=a.MmlMerror.prototype.kind,h.styles={'g[data-mml-node="merror"] > g':{fill:"red",stroke:"red"},'g[data-mml-node="merror"] > rect[data-background]':{fill:"yellow",stroke:"none"}},h);function h(){return null!==i&&i.apply(this,arguments)||this}e.SVGmerror=l},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(35),l=r(89),h=(i=a.CommonMspaceMixin(s.SVGWrapper),n(c,i),c.kind=l.MmlMspace.prototype.kind,c);function c(){return null!==i&&i.apply(this,arguments)||this}e.SVGmspace=h},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),h=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s};Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(32),l=r(90),c=(i=a.CommonMpaddedMixin(s.SVGWrapper),n(u,i),u.prototype.toSVG=function(t){var e=this.standardSVGnode(t),r=h(this.getDimens(),9),o=(r[0],r[1],r[2],r[3],r[4],r[5]),n=r[6],i=r[7],s=r[8],a=this.node.attributes.get("data-align")||"left",l=n+s-(o<0&&"left"!==a?"center"===a?o/2:o:0);(l||i)&&(e=this.adaptor.append(e,this.svg("g")),this.place(l,i,e)),this.addChildren(e)},u.kind=l.MmlMpadded.prototype.kind,u);function u(){return null!==i&&i.apply(this,arguments)||this}e.SVGmpadded=c},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(91),l=(i=s.SVGWrapper,n(h,i),h.prototype.toSVG=function(t){this.standardSVGnode(t)},h.kind=a.MmlMphantom.prototype.kind,h);function h(){return null!==i&&i.apply(this,arguments)||this}e.SVGmphantom=l},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),_=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s};Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(26),l=r(92),h=(i=a.CommonMfracMixin(s.SVGWrapper),n(c,i),c.prototype.toSVG=function(t){this.standardSVGnode(t);var e=this.node.attributes.getList("linethickness","bevelled"),r=e.linethickness,o=e.bevelled,n=this.isDisplay();if(o)this.makeBevelled(n);else{var i=this.length2em(String(r));0===i?this.makeAtop(n):this.makeFraction(n,i)}},c.prototype.makeFraction=function(t,e){var r=this.element,o=this.node.attributes.getList("numalign","denomalign"),n=o.numalign,i=o.denomalign,s=_(this.childNodes,2),a=s[0],l=s[1],h=a.getBBox(),c=l.getBBox(),u=this.font.params,p=u.axis_height,d=this.node.getProperty("withDelims")?0:u.nulldelimiterspace,f=Math.max((h.L+h.w+h.R)*h.rscale,(c.L+c.w+c.R)*c.rscale),y=this.getAlignX(f,h,n)+.1+d,m=this.getAlignX(f,c,i)+.1+d,v=this.getTUV(t,e),b=v.T,g=v.u,x=v.v;a.toSVG(r),a.place(y,p+b+Math.max(h.d*h.rscale,g)),l.toSVG(r),l.place(m,p-b-Math.max(c.h*c.rscale,x)),this.adaptor.append(r,this.svg("rect",{width:this.fixed(f+.2),height:this.fixed(e),x:this.fixed(d),y:this.fixed(p-e/2)}))},c.prototype.makeAtop=function(t){var e=this.element,r=this.node.attributes.getList("numalign","denomalign"),o=r.numalign,n=r.denomalign,i=_(this.childNodes,2),s=i[0],a=i[1],l=s.getBBox(),h=a.getBBox(),c=this.font.params,u=this.node.getProperty("withDelims")?0:c.nulldelimiterspace,p=Math.max((l.L+l.w+l.R)*l.rscale,(h.L+h.w+h.R)*h.rscale),d=this.getAlignX(p,l,o)+u,f=this.getAlignX(p,h,n)+u,y=this.getUVQ(t),m=y.u,v=y.v;s.toSVG(e),s.place(d,m),a.toSVG(e),a.place(f,-v)},c.prototype.makeBevelled=function(t){var e=this.element,r=_(this.childNodes,2),o=r[0],n=r[1],i=this.getBevelData(t),s=i.u,a=i.v,l=i.delta,h=i.nbox,c=i.dbox,u=(h.L+h.w+h.R)*h.rscale;o.toSVG(e),this.bevel.toSVG(e),n.toSVG(e),o.place(h.L*h.rscale,s),this.bevel.place(u-l/2,0),n.place(u+this.bevel.getBBox().w+c.L*c.rscale-l,a)},c.kind=l.MmlMfrac.prototype.kind,c);function c(){return null!==i&&i.apply(this,arguments)||this}e.SVGmfrac=h},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),l=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s};Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(14),a=r(33),h=r(94),c=(i=a.CommonMrootMixin(s.SVGmsqrt),n(u,i),u.prototype.addRoot=function(t,e,r){e.toSVG(t);var o=l(this.getRootDimens(r),3),n=o[0],i=o[1],s=o[2],a=e.getBBox();e.place(s*a.rscale,i),this.dx=n},u.kind=h.MmlMroot.prototype.kind,u);function u(){return null!==i&&i.apply(this,arguments)||this}e.SVGmroot=c},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var s,a=r(0),l=r(25),h=r(95),c=(s=l.CommonMfencedMixin(a.SVGWrapper),n(u,s),u.prototype.toSVG=function(t){var e=this.standardSVGnode(t);this.setChildrenParent(this.mrow),this.mrow.toSVG(e),this.setChildrenParent(this)},u.prototype.setChildrenParent=function(t){var e,r;try{for(var o=i(this.childNodes),n=o.next();!n.done;n=o.next())n.value.parent=t}catch(t){e={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},u.kind=h.MmlMfenced.prototype.kind,u);function u(){return null!==s&&s.apply(this,arguments)||this}e.SVGmfenced=c},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s};Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),l=r(40),h=(i=l.CommonScriptbaseMixin(s.SVGWrapper),n(c,i),c.prototype.toSVG=function(t){var e=this.standardSVGnode(t),r=this.baseChild.getBBox(),o=this.script.getBBox(),n=a(this.getOffset(r,o),2),i=n[0],s=n[1];this.baseChild.toSVG(e),this.script.toSVG(e),this.script.place(r.w+i,s)},c.kind="scriptbase",c.useIC=!1,c);function c(){return null!==i&&i.apply(this,arguments)||this}e.SVGscriptbase=h},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),g=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s};Object.defineProperty(e,"__esModule",{value:!0});var f,i=r(8),s=r(7),a=r(7),l=r(7),h=r(97),c=(f=s.CommonMunderMixin(i.SVGmsub),n(u,f),u.prototype.toSVG=function(t){if(this.hasMovableLimits())f.prototype.toSVG.call(this,t);else{var e=this.standardSVGnode(t),r=g([this.baseChild,this.script],2),o=r[0],n=r[1],i=g([o.getBBox(),n.getBBox()],2),s=i[0],a=i[1];o.toSVG(e),n.toSVG(e);var l=this.getDelta(!0),h=g(this.getUnderKV(s,a),2),c=(h[0],h[1]),u=g(this.getDeltaW([s,a],[0,-l]),2),p=u[0],d=u[1];o.place(p,0),n.place(d,c)}},u.kind=h.MmlMunder.prototype.kind,u.useIC=!0,u);function u(){return null!==f&&f.apply(this,arguments)||this}e.SVGmunder=c;var y,p=(y=a.CommonMoverMixin(i.SVGmsup),n(d,y),d.prototype.toSVG=function(t){if(this.hasMovableLimits())y.prototype.toSVG.call(this,t);else{var e=this.standardSVGnode(t),r=g([this.baseChild,this.script],2),o=r[0],n=r[1],i=g([o.getBBox(),n.getBBox()],2),s=i[0],a=i[1];o.toSVG(e),n.toSVG(e);var l=this.getDelta(),h=g(this.getOverKU(s,a),2),c=(h[0],h[1]),u=g(this.getDeltaW([s,a],[0,l]),2),p=u[0],d=u[1];o.place(p,0),n.place(d,c)}},d.kind=h.MmlMover.prototype.kind,d.useIC=!0,d);function d(){return null!==y&&y.apply(this,arguments)||this}e.SVGmover=p;var x,m=(x=l.CommonMunderoverMixin(i.SVGmsubsup),n(v,x),v.prototype.toSVG=function(t){if(this.hasMovableLimits())x.prototype.toSVG.call(this,t);else{var e=this.standardSVGnode(t),r=g([this.baseChild,this.overChild,this.underChild],3),o=r[0],n=r[1],i=r[2],s=g([o.getBBox(),n.getBBox(),i.getBBox()],3),a=s[0],l=s[1],h=s[2];o.toSVG(e),i.toSVG(e),n.toSVG(e);var c=this.getDelta(),u=g(this.getOverKU(a,l),2),p=(u[0],u[1]),d=g(this.getUnderKV(a,h),2),f=(d[0],d[1]),y=g(this.getDeltaW([a,h,l],[0,-c,c]),3),m=y[0],v=y[1],b=y[2];o.place(m,0),i.place(v,f),n.place(b,p)}},v.kind=h.MmlMunderover.prototype.kind,v.useIC=!0,v);function v(){return null!==x&&x.apply(this,arguments)||this}e.SVGmunderover=m},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),_=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s};Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(8),a=r(29),l=r(98),h=(i=a.CommonMmultiscriptsMixin(s.SVGmsubsup),n(c,i),c.prototype.toSVG=function(t){var e=this.standardSVGnode(t),r=this.getScriptData(),o=this.combinePrePost(r.sub,r.psub),n=this.combinePrePost(r.sup,r.psup),i=_(this.getUVQ(r.base,o,n),3),s=i[0],a=i[1],l=(i[2],0);r.numPrescripts&&(l=this.addScripts(.05,s,a,!0,this.firstPrescript,r.numPrescripts));var h=this.baseChild;h.toSVG(e),h.place(l,0),l+=h.getBBox().w,r.numScripts&&this.addScripts(l,s,a,!1,1,r.numScripts)},c.prototype.addScripts=function(t,e,r,o,n,i){var s=this.adaptor,a=s.append(this.element,this.svg("g")),l=s.append(this.element,this.svg("g"));this.place(t,e,a),this.place(t,r,l);for(var h=n+2*i,c=0;n<h;){var u=_([this.childNodes[n++],this.childNodes[n++]],2),p=u[0],d=u[1],f=_([p.getBBox(),d.getBBox()],2),y=f[0],m=f[1],v=_([y.rscale,m.rscale],2),b=v[0],g=v[1],x=Math.max(y.w*b,m.w*g);p.toSVG(l),d.toSVG(a),p.place(c+(o?x-y.w*b:0),0),d.place(c+(o?x-m.w*g:0),0),c+=x}return t+c},c.kind=l.MmlMmultiscripts.prototype.kind,c);function c(){return null!==i&&i.apply(this,arguments)||this}e.SVGmmultiscripts=h},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),g=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},f=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t};Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(37),l=r(99),h=(i=a.CommonMtableMixin(s.SVGWrapper),n(c,i),c.prototype.toSVG=function(t){var e=this.standardSVGnode(t);this.placeRows(e),this.handleColumnLines(e),this.handleRowLines(e),this.handleFrame(e);var r=this.handlePWidth(e);this.handleLabels(e,t,r)},c.prototype.placeRows=function(t){for(var e,r,o,n=this.node.attributes.get("equalrows"),i=this.getTableData(),s=i.H,a=i.D,l=this.getEqualRowHeight(),h=this.getRowHalfSpacing(),c=f([this.fLine],this.rLines,[this.fLine]),u=this.getBBox().h-c[0],p=0;p<this.numRows;p++){var d=this.childNodes[p];e=g(this.getRowHD(n,l,s[p],a[p]),2),d.H=e[0],d.D=e[1],r=g([h[p],h[p+1]],2),d.tSpace=r[0],d.bSpace=r[1],o=g([c[p],c[p+1]],2),d.tLine=o[0],d.bLine=o[1],d.toSVG(t),d.place(0,u-h[p]-d.H),u-=h[p]+d.H+d.D+h[p+1]+c[p+1]}},c.prototype.getRowHD=function(t,e,r,o){return t?[(e+r-o)/2,(e-r+o)/2]:[r,o]},c.prototype.handleColor=function(){i.prototype.handleColor.call(this);var t=this.adaptor.firstChild(this.element);t&&this.adaptor.setAttribute(t,"width",this.fixed(this.getWidth()))},c.prototype.handleColumnLines=function(t){if("none"!==this.node.attributes.get("columnlines")){var e=this.getColumnAttributes("columnlines");if(e)for(var r=this.getColumnHalfSpacing(),o=this.cLines,n=this.getComputedWidths(),i=this.fLine,s=0;s<e.length;s++)i+=r[s]+n[s]+r[s+1],"none"!==e[s]&&this.adaptor.append(t,this.makeVLine(i,e[s],o[s])),i+=o[s]}},c.prototype.handleRowLines=function(t){if("none"!==this.node.attributes.get("rowlines")){var e=this.getRowAttributes("rowlines");if(e)for(var r=this.node.attributes.get("equalrows"),o=this.getTableData(),n=o.H,i=o.D,s=this.getEqualRowHeight(),a=this.getRowHalfSpacing(),l=this.rLines,h=this.getBBox().h-this.fLine,c=0;c<e.length;c++){var u=g(this.getRowHD(r,s,n[c],i[c]),2),p=u[0],d=u[1];h-=a[c]+p+d+a[c+1],"none"!==e[c]&&this.adaptor.append(t,this.makeHLine(h,e[c],l[c])),h-=l[c]}}},c.prototype.handleFrame=function(t){if(this.frame){var e=this.getBBox(),r=e.h,o=e.d,n=e.w,i=this.node.attributes.get("frame");this.adaptor.append(t,this.makeFrame(n,r,o,i))}},c.prototype.handlePWidth=function(t){if(!this.pWidth)return 0;var e=this.getBBox(),r=e.w,o=e.L,n=e.R,i=o+this.pWidth+n,s=g(this.getAlignShift(),2),a=s[0],l=(s[1],Math.max(this.isTop?i:0,this.container.getWrapWidth(this.containerI))-o-n),h=r-(this.pWidth>l?l:this.pWidth),c="left"===a?0:"right"===a?h:h/2;if(c){var u=this.svg("g",{},this.adaptor.childNodes(t));this.place(c,0,u),this.adaptor.append(t,u)}return c},c.prototype.lineClass=function(t){return"mjx-"+t},c.prototype.makeFrame=function(t,e,r,o){var n=this.fLine;return this.svg("rect",this.setLineThickness(n,o,{"data-frame":!0,class:this.lineClass(o),width:this.fixed(t-n),height:this.fixed(e+r-n),x:this.fixed(n/2),y:this.fixed(n/2-r)}))},c.prototype.makeVLine=function(t,e,r){var o=this.getBBox(),n=o.h,i=o.d,s="dotted"===e?r/2:0,a=this.fixed(t+r/2);return this.svg("line",this.setLineThickness(r,e,{"data-line":"v",class:this.lineClass(e),x1:a,y1:this.fixed(s-i),x2:a,y2:this.fixed(n-s)}))},c.prototype.makeHLine=function(t,e,r){var o=this.getBBox().w,n="dotted"===e?r/2:0,i=this.fixed(t-r/2);return this.svg("line",this.setLineThickness(r,e,{"data-line":"h",class:this.lineClass(e),x1:this.fixed(n),y1:i,x2:this.fixed(o-n),y2:i}))},c.prototype.setLineThickness=function(t,e,r){return.07!==t&&(r["stroke-thickness"]=this.fixed(t),"solid"!==e&&(r["stroke-dasharray"]=("dotted"===e?"0,":"")+this.fixed(2*t))),r},c.prototype.handleLabels=function(t,e,r){if(this.hasLabels){var o=this.labels,n=this.node.attributes,i=(this.adaptor,n.get("side"));this.spaceLabels(),this.isTop?this.topTable(t,o,i):this.subTable(t,o,i,r)}},c.prototype.spaceLabels=function(){for(var t=this.adaptor,e=(this.node.attributes.get("equalrows"),this.getBBox()),r=e.h,o=(e.d,this.getTableData().L),n=this.getRowHalfSpacing(),i=r-this.fLine,s=t.firstChild(this.labels),a=0;a<this.numRows;a++){var l=this.childNodes[a];if(l.node.isKind("mlabeledtr")){var h=l.childNodes[0];i-=n[a]+l.H,l.placeCell(h,{x:0,y:i,w:o,lSpace:0,rSpace:0,lLine:0,rLine:0}),i-=l.D+n[a+1]+this.rLines[a],s=t.next(s)}else i-=n[a]+l.H+l.D+n[a+1]+this.rLines[a]}},c.prototype.topTable=function(t,e,r){var o=this.adaptor,n=this.getBBox(),i=n.h,s=n.d,a=n.w,l=n.L,h=n.R,c=l+(this.pWidth||a)+h,u=this.getTableData().L,p=g(this.getPadAlignShift(r),3),d=(p[0],p[1]),f=p[2],y=f?" translate("+this.fixed(f)+" 0)":"",m="scale("+this.jax.fixed(1e3*this.font.params.x_height/this.metrics.ex,2)+")",v="translate(0, "+this.fixed(i)+") matrix(1 0 0 -1 0 0) "+m,b=this.svg("svg",{"data-table":!0,preserveAspectRatio:"left"===d?"xMinYMid":"right"===d?"xMaxYMid":"xMidYMid",viewBox:[this.fixed(-l),this.fixed(-i),this.fixed(c),this.fixed(i+s)].join(" ")},[this.svg("g",{transform:"matrix(1 0 0 -1 0 0)"+y},o.childNodes(t))]);e=this.svg("svg",{"data-labels":!0,preserveAspectRatio:"left"===r?"xMinYMid":"xMaxYMid",viewBox:[0,this.fixed(-i),this.fixed(u),this.fixed(i+s)].join(" ")},[e]),o.append(t,this.svg("g",{transform:v},[b,e])),this.place(-l,0,t)},c.prototype.subTable=function(t,e,r,o){var n=this.adaptor,i=this.getBBox(),s=i.w,a=i.L,l=i.R,h=a+(this.pWidth||s)+l,c=this.getTableData().L,u=g(this.getAlignShift(),2),p=u[0],d=(u[1],Math.max(h,this.container.getWrapWidth(this.containerI)));this.place("left"===r?("left"===p?0:"right"===p?h-d+o:(h-d)/2+o)-a:("left"===p?d:"right"===p?h+o:(d+h)/2+o)-a-c,0,e),n.append(t,e)},c.kind=l.MmlMtable.prototype.kind,c.styles={'g[data-mml-node="mtable"] > line[data-line]':{"stroke-width":"70px",fill:"none"},'g[data-mml-node="mtable"] > rect[data-frame]':{"stroke-width":"70px",fill:"none"},'g[data-mml-node="mtable"] > .mjx-dashed':{"stroke-dasharray":"140"},'g[data-mml-node="mtable"] > .mjx-dotted':{"stroke-linecap":"round","stroke-dasharray":"0,140"},'g[data-mml-node="mtable"] > svg':{overflow:"visible"}},c);function c(t,e,r){void 0===r&&(r=null);var o=i.call(this,t,e,r)||this,n={"data-labels":!0};return o.isTop&&(n.transform="matrix(1 0 0 -1 0 0)"),o.labels=o.svg("g",n),o}e.SVGmtable=h},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),m=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s},l=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t};Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(12),h=r(12),c=r(100),u=(i=a.CommonMtrMixin(s.SVGWrapper),n(p,i),p.prototype.toSVG=function(t){var e=this.standardSVGnode(t);this.placeCells(e),this.placeColor(e)},p.prototype.placeCells=function(t){for(var e=this.parent.getColumnHalfSpacing(),r=l([this.parent.fLine],this.parent.cLines,[this.parent.fLine]),o=this.parent.getComputedWidths(),n=m([this.tLine/2,this.bLine/2],2),i=(n[0],n[1],r[0]),s=0;s<this.numCells;s++){var a=this.getChild(s);a.toSVG(t),i+=this.placeCell(a,{x:i,y:0,lSpace:e[s],rSpace:e[s+1],w:o[s],lLine:r[s],rLine:r[s+1]})}},p.prototype.placeCell=function(t,e){var r=e.x,o=e.y,n=e.lSpace,i=e.w,s=e.rSpace,a=e.lLine,l=e.rLine,h=m(t.placeCell(r+n,o,i,this.H,this.D),2),c=h[0],u=h[1],p=n+i+s,d=m([this.H+this.tSpace,this.D+this.bSpace],2),f=d[0],y=d[1];return t.placeColor(-(c+n+a/2),-(y+this.bLine/2+u),p+(a+l)/2,f+y+(this.tLine+this.bLine)/2),p+l},p.prototype.placeColor=function(t){var e=this.adaptor,r=e.firstChild(this.element);if(r&&"rect"===e.kind(r)&&e.getAttribute(r,"data-bgcolor")){var o=m([this.tLine/2,this.bLine/2],2),n=o[0],i=o[1],s=m([this.tSpace,this.bSpace],2),a=s[0],l=s[1],h=m([this.H,this.D],2),c=h[0],u=h[1];e.setAttribute(r,"y",this.fixed(-(u+l+i))),e.setAttribute(r,"width",this.fixed(this.parent.getWidth())),e.setAttribute(r,"height",this.fixed(n+a+c+u+l+i))}},p.kind=c.MmlMtr.prototype.kind,p);function p(){return null!==i&&i.apply(this,arguments)||this}e.SVGmtr=u;var d,f=(d=h.CommonMlabeledtrMixin(u),n(y,d),y.prototype.toSVG=function(t){d.prototype.toSVG.call(this,t);var e=this.childNodes[0];e&&e.toSVG(this.parent.labels)},y.kind=c.MmlMlabeledtr.prototype.kind,y);function y(){return null!==d&&d.apply(this,arguments)||this}e.SVGmlabeledtr=f},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(38),l=r(101),h=(i=a.CommonMtdMixin(s.SVGWrapper),n(c,i),c.prototype.placeCell=function(t,e,r,o,n){var i=this.getBBox(),s=Math.max(i.h,.75),a=Math.max(i.d,.25),l=this.node.attributes.get("columnalign"),h=this.node.attributes.get("rowalign"),c=this.getAlignX(r,i,l),u=this.getAlignY(o,n,s,a,h);return this.place(t+c,e+u),[c,u]},c.prototype.placeColor=function(t,e,r,o){var n=this.adaptor,i=n.firstChild(this.element);i&&"rect"===n.kind(i)&&n.getAttribute(i,"data-bgcolor")&&(n.setAttribute(i,"x",this.fixed(t)),n.setAttribute(i,"y",this.fixed(e)),n.setAttribute(i,"width",this.fixed(r)),n.setAttribute(i,"height",this.fixed(o)))},c.kind=l.MmlMtd.prototype.kind,c);function c(){return null!==i&&i.apply(this,arguments)||this}e.SVGmtd=h},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(10),l=r(10),h=r(102),c=(i=a.CommonMactionMixin(s.SVGWrapper),n(u,i),u.prototype.toSVG=function(t){var e=this.standardSVGnode(t),r=this.selected,o=r.getBBox(),n=o.h,i=o.d,s=o.w;this.adaptor.append(this.element,this.svg("rect",{width:this.fixed(s),height:this.fixed(n+i),y:this.fixed(-i),fill:"none","pointer-events":"all"})),r.toSVG(e),this.action(this,this.data)},u.prototype.setEventHandler=function(t,e){this.element.addEventListener(t,e)},u.kind=h.MmlMaction.prototype.kind,u.styles={'[jax="SVG"] mjx-tool':{display:"inline-block",position:"relative",width:0,height:0},'[jax="SVG"] mjx-tool > mjx-tip':{position:"absolute",top:0,left:0},"mjx-tool > mjx-tip":{display:"inline-block",padding:".2em",border:"1px solid #888","font-size":"70%","background-color":"#F8F8F8",color:"black","box-shadow":"2px 2px 5px #AAAAAA"},'g[data-mml-node="maction"][data-toggle]':{cursor:"pointer"},"mjx-status":{display:"block",position:"fixed",left:"1em",bottom:"1em","min-width":"25%",padding:".2em .4em",border:"1px solid #888","font-size":"90%","background-color":"#F8F8F8",color:"black"}},u.actions=new Map([["toggle",[function(t,e){t.adaptor.setAttribute(t.element,"data-toggle",t.node.attributes.get("selection"));var r=t.factory.jax.math,o=t.factory.jax.document,n=t.node;t.setEventHandler("click",function(t){r.start.node||(r.start.node=r.end.node=r.typesetRoot,r.start.n=r.end.n=0),n.nextToggleSelection(),r.rerender(o),t.stopPropagation()})},{}]],["tooltip",[function(n,r){var t=n.childNodes[1];if(t){var e=n.adaptor.firstChild(n.element);if(t.node.isKind("mtext")){var o=t.node.getText();n.adaptor.insert(n.svg("title",{},[n.text(o)]),e)}else{var i=n.adaptor,s=n.jax.container,a=n.node.factory.create("math",{},[n.childNodes[1].node]),l=n.html("mjx-tool",{},[n.html("mjx-tip")]),h=i.append(e,n.svg("foreignObject",{style:{display:"none"}},[l]));n.jax.processMath(a,i.firstChild(l)),n.childNodes[1].node.parent=n.node,n.setEventHandler("mouseover",function(t){r.stopTimers(n,r),r.hoverTimer.set(n,setTimeout(function(){i.setStyle(l,"left","0"),i.setStyle(l,"top","0"),i.append(s,l);var t=i.nodeBBox(l),e=i.nodeBBox(n.element),r=(e.right-t.left)/n.metrics.em+n.dx,o=(e.bottom-t.bottom)/n.metrics.em+n.dy;i.setStyle(l,"left",n.px(r)),i.setStyle(l,"top",n.px(o))},r.postDelay)),t.stopPropagation()}),n.setEventHandler("mouseout",function(t){r.stopTimers(n,r);var e=setTimeout(function(){return i.append(h,l)},r.clearDelay);r.clearTimer.set(n,e),t.stopPropagation()})}}},l.TooltipData]],["statusline",[function(r,o){var t=r.childNodes[1];if(t&&t.node.isKind("mtext")){var n=r.adaptor,i=t.node.getText();n.setAttribute(r.element,"data-statusline",i),r.setEventHandler("mouseover",function(t){if(null===o.status){var e=n.body(n.document);o.status=n.append(e,r.html("mjx-status",{},[r.text(i)]))}t.stopPropagation()}),r.setEventHandler("mouseout",function(t){o.status&&(n.remove(o.status),o.status=null),t.stopPropagation()})}},{status:null}]]]),u);function u(){return null!==i&&i.apply(this,arguments)||this}e.SVGmaction=c},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},y=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,n,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s};Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(24),l=r(66),h=r(103),c=(i=a.CommonMencloseMixin(s.SVGWrapper),n(p,i),p.prototype.toSVG=function(t){var e,r,o=this.standardSVGnode(t),n=this.getBBoxExtenders()[3],i={};0<n&&(i.transform="translate("+this.fixed(n)+", 0)");var s=this.adaptor.append(o,this.svg("g",i));this.renderChild?this.renderChild(this,s):this.childNodes[0].toSVG(s);try{for(var a=u(Object.keys(this.notations)),l=a.next();!l.done;l=a.next()){var h=l.value,c=this.notations[h];c.renderChild||c.renderer(this,o)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}},p.prototype.arrow=function(t,e,r){void 0===r&&(r=!1);var o=this.getBBox(),n=o.w,i=(t-n)/2,s=(o.h-o.d)/2,a=this.thickness,l=a/2,h=y([a*this.arrowhead.x,a*this.arrowhead.y,a*this.arrowhead.dx],3),c=h[0],u=h[1],p=h[2],d=r?this.fill("M",n+i,s,"l",-(c+p),u,"l",p,l-u,"L",c-i,s+l,"l",p,u-l,"l",-(c+p),-u,"l",c+p,-u,"l",-p,u-l,"L",n+i-c,s-l,"l",-p,l-u,"Z"):this.fill("M",n+i,s,"l",-(c+p),u,"l",p,l-u,"L",-i,s+l,"l",0,-a,"L",n+i-c,s-l,"l",-p,l-u,"Z");if(e){var f=this.jax.fixed(180*-e/Math.PI);this.adaptor.setAttribute(d,"transform","rotate("+[f,this.fixed(n/2),this.fixed(s)].join(" ")+")")}return d},p.prototype.line=function(t){var e=y(t,4),r=e[0],o=e[1],n=e[2],i=e[3];return this.svg("line",{x1:this.fixed(r),y1:this.fixed(o),x2:this.fixed(n),y2:this.fixed(i),"stroke-width":this.fixed(this.thickness)})},p.prototype.box=function(t,e,r,o){void 0===o&&(o=0);var n=this.thickness,i={x:this.fixed(n/2),y:this.fixed(n/2-r),width:this.fixed(t-n),height:this.fixed(e+r-n),fill:"none","stroke-width":this.fixed(n)};return o&&(i.rx=this.fixed(o)),this.svg("rect",i)},p.prototype.ellipse=function(t,e,r){var o=this.thickness;return this.svg("ellipse",{rx:this.fixed((t-o)/2),ry:this.fixed((e+r-o)/2),cx:this.fixed(t/2),cy:this.fixed((e-r)/2),fill:"none","stroke-width":this.fixed(o)})},p.prototype.path=function(t){for(var e=this,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];return this.svg("path",{d:r.map(function(t){return"string"==typeof t?t:e.fixed(t)}).join(" "),style:{"stroke-width":this.fixed(this.thickness)},"stroke-linecap":"round","stroke-linejoin":t,fill:"none"})},p.prototype.fill=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return this.svg("path",{d:t.map(function(t){return"string"==typeof t?t:e.fixed(t)}).join(" ")})},p.kind=h.MmlMenclose.prototype.kind,p.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"),l.DiagonalStrike("down"),["horizontalstrike",{renderer:l.RenderLine("horizontal"),bbox:function(t){return[0,t.padding,0,t.padding]}}],["verticalstrike",{renderer:l.RenderLine("vertical"),bbox:function(t){return[t.padding,0,t.padding,0]}}],["box",{renderer:function(t,e){var r=t.getBBox(),o=r.w,n=r.h,i=r.d;t.adaptor.append(t.element,t.box(o,n,i))},bbox:l.fullBBox,border:l.fullBorder,remove:"left right top bottom"}],["roundedbox",{renderer:function(t,e){var r=t.getBBox(),o=r.w,n=r.h,i=r.d,s=t.thickness+t.padding;t.adaptor.append(t.element,t.box(o,n,i,s))},bbox:l.fullBBox}],["circle",{renderer:function(t,e){var r=t.getBBox(),o=r.w,n=r.h,i=r.d;t.adaptor.append(t.element,t.ellipse(o,n,i))},bbox:l.fullBBox}],["phasorangle",{renderer:function(t,e){var r=t.getBBox(),o=r.w,n=r.h,i=r.d,s=y(t.getArgMod(1.75*t.padding,n+i),2),a=s[0],l=(s[1],t.thickness/2),h=n+i,c=Math.cos(a);t.adaptor.append(t.element,t.path("mitre","M",o,l-i,"L",l+c*l,l-i,"L",c*h+l,h-i-l))},bbox:function(t){var e=t.padding/2,r=t.thickness;return[2*e,e,e+r,3*e+r]},border:function(t){return[0,0,t.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(t,e){var r=t.getBBox(),o=r.w,n=r.h,i=r.d,s=t.thickness/2,a=t.padding;t.adaptor.append(t.element,t.path("round","M",s,s-i,"a",a-s/2,(n+i)/2-4*s,0,"0,1",0,n+i-2*s,"L",o-s,n-s))},bbox:function(t){var e=t.padding,r=t.thickness;return[e+r,e,e,2*e+r/2]}}],["radical",{renderer:function(t,e){t.msqrt.toSVG(e);var r=t.sqrtTRBL()[3];t.place(-r,0,e)},init:function(t){t.msqrt=t.createMsqrt(t.childNodes[0])},bbox:function(t){return t.sqrtTRBL()},renderChild:!0}]]),p);function p(){return null!==i&&i.apply(this,arguments)||this}e.SVGmenclose=c},function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e(4);!function(t){for(var e in t)a.hasOwnProperty(e)||(a[e]=t[e])}(e(4)),a.computeLineData={top:function(t,e,r,o){return[0,t-o,r,t-o]},right:function(t,e,r,o){return[r-o,-e,r-o,t]},bottom:function(t,e,r,o){return[0,o-e,r,o-e]},left:function(t,e,r,o){return[o,-e,o,t]},vertical:function(t,e,r,o){return[r/2-o,t,r/2-o,-e]},horizontal:function(t,e,r,o){return[0,(t-e)/2-o,r,(t-e)/2-o]},up:function(t,e,r,o){return[o,o-e,r-o,t-o]},down:function(t,e,r,o){return[o,t-o,r-o,o-e]}},a.lineData=function(t,e){var r=t.getBBox(),o=r.h,n=r.d,i=r.w,s=t.thickness/2;return a.computeLineData[e](o,n,i,s)},a.RenderLine=function(r){return function(t,e){t.adaptor.append(t.element,t.line(a.lineData(t,r)))}},a.Border=function(r){return n.CommonBorder(function(t,e){t.adaptor.append(t.element,t.line(a.lineData(t,r)))})(r)},a.Border2=function(t,r,o){return n.CommonBorder2(function(t,e){t.adaptor.append(t.element,t.line(a.lineData(t,r))),t.adaptor.append(t.element,t.line(a.lineData(t,o)))})(t,r,o)},a.DiagonalStrike=function(r){return n.CommonDiagonalStrike(function(t){return function(t,e){t.adaptor.append(t.element,t.line(a.lineData(t,r)))}})(r)},a.DiagonalArrow=function(t){return n.CommonDiagonalArrow(function(t,e){t.adaptor.append(t.element,e)})(t)},a.Arrow=function(t){return n.CommonArrow(function(t,e){t.adaptor.append(t.element,e)})(t)}},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(41),l=r(104),h=r(3),c=(i=a.CommonSemanticsMixin(s.SVGWrapper),n(u,i),u.prototype.toSVG=function(t){var e=this.standardSVGnode(t);this.childNodes.length&&this.childNodes[0].toSVG(e)},u.kind=l.MmlSemantics.prototype.kind,u);function u(){return null!==i&&i.apply(this,arguments)||this}e.SVGsemantics=c;var p,d=(p=s.SVGWrapper,n(f,p),f.prototype.toSVG=function(t){p.prototype.toSVG.call(this,t)},f.prototype.computeBBox=function(){return this.bbox},f.kind=l.MmlAnnotation.prototype.kind,f);function f(){return null!==p&&p.apply(this,arguments)||this}e.SVGannotation=d;var y,m=(y=s.SVGWrapper,n(v,y),v.kind=l.MmlAnnotationXML.prototype.kind,v);function v(){return null!==y&&y.apply(this,arguments)||this}e.SVGannotationXML=m;var b,g=(b=s.SVGWrapper,n(x,b),x.prototype.toSVG=function(t){var e=this.adaptor.clone(this.node.getXML());this.adaptor.append(t,this.svg("foreignObject",{},[e]))},x.prototype.computeBBox=function(){return this.bbox},x.prototype.getStyles=function(){},x.prototype.getScale=function(){},x.prototype.getVariant=function(){},x.kind=h.XMLNode.prototype.kind,x.autoStyle=!1,x);function x(){return null!==b&&b.apply(this,arguments)||this}e.SVGxml=g},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(27),l=r(105),h=(i=a.CommonMglyphMixin(s.SVGWrapper),n(c,i),c.prototype.toSVG=function(t){var e=this.standardSVGnode(t),r=this.node.attributes.getList("src","alt"),o=r.src,n=r.alt,i=this.fixed(this.height),s={width:this.fixed(this.width),height:i,transform:"translate(0 "+i+") matrix(1 0 0 -1 0 0)",preserveAspectRatio:"none",alt:n,title:n,href:o};this.voffset&&(s.verticalAlign=this.fixed(-this.voffset));var a=this.svg("image",s);this.adaptor.append(e,a)},c.kind=l.MmlMglyph.prototype.kind,c);function c(){return null!==i&&i.apply(this,arguments)||this}e.SVGmglyph=h},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(0),a=r(21),l=r(106),h=r(3),c=(i=a.CommonTeXAtomMixin(s.SVGWrapper),n(u,i),u.prototype.toSVG=function(t){if(i.prototype.toSVG.call(this,t),this.node.texClass===h.TEXCLASS.VCENTER){var e=this.childNodes[0].getBBox(),r=e.h,o=(r+e.d)/2+this.font.params.axis_height-r,n="translate(0 "+this.fixed(o)+")";this.adaptor.setAttribute(this.element,"transform",n)}},u.kind=l.TeXAtom.prototype.kind,u);function u(){return null!==i&&i.apply(this,arguments)||this}e.SVGTeXAtom=c},function(t,e,r){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var i,s=r(3),a=r(0),l=r(22),h=(i=l.CommonTextNodeMixin(a.SVGWrapper),n(u,i),u.prototype.toSVG=function(t){var e,r,o=this.node.getText();if("-explicitFont"===this.parent.variant)this.adaptor.append(t,this.jax.unknownText(o,this.parent.variant));else{var n=this.parent.stretch.c,i=this.parent.remapChars(n?[n]:this.unicodeChars(o)),s=0;try{for(var a=c(i),l=a.next();!l.done;l=a.next()){var h=l.value;s+=this.placeChar(h,s,0,t,this.parent.variant)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}}this.element=this.adaptor.lastChild(t)},u.kind=s.TextNode.prototype.kind,u.styles={".MathJax path":{"stroke-width":3}},u);function u(){return null!==i&&i.apply(this,arguments)||this}e.SVGTextNode=h},function(t,r,e){"use strict";var o,n=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),d=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0});var i=e(2);!function(t){for(var e in t)r.hasOwnProperty(e)||(r[e]=t[e])}(e(2));var s,f=(s=i.FontData,n(a,s),a.charOptions=function(t,e){return s.charOptions.call(this,t,e)},a);function a(){return null!==s&&s.apply(this,arguments)||this}r.SVGFontData=f,r.AddPaths=function(t,e,r){var o,n,i,s;try{for(var a=d(Object.keys(e)),l=a.next();!l.done;l=a.next()){var h=l.value,c=parseInt(h);f.charOptions(t,c).p=e[c]}}catch(t){o={error:t}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}try{for(var u=d(Object.keys(r)),p=u.next();!p.done;p=u.next()){h=p.value,c=parseInt(h);f.charOptions(t,c).c=r[c]}}catch(t){i={error:t}}finally{try{p&&!p.done&&(s=u.return)&&s.call(u)}finally{if(i)throw i.error}}return t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=(n.prototype.cachePath=function(t,e,r){var o="MJX-"+this.localID+(this.jax.font.getVariant(t).cacheID||"")+"-"+e;return this.cache.has(o)||(this.cache.set(o,r),this.jax.adaptor.append(this.defs,this.jax.svg("path",{id:o,d:r}))),o},n.prototype.clearLocalID=function(){this.localID=""},n.prototype.useLocalID=function(t){void 0===t&&(t=null),this.localID=(null==t?++this.nextID:t)+(""===t?"":"-")},n.prototype.clearCache=function(){this.cache=new Map,this.defs=this.jax.svg("defs")},n.prototype.getCache=function(){return this.defs},n);function n(t){this.cache=new Map,this.defs=null,this.localID="",this.nextID=0,this.jax=t}e.FontCache=o},function(t,e,r){"use strict";r(74);var o=r(15),n=r(13);MathJax.loader&&(0,o.combineDefaults)(MathJax.config.loader,"output/svg",{checkReady:function(){return MathJax.loader.load("output/svg/fonts/tex")}}),MathJax.startup&&(MathJax.startup.registerConstructor("svg",n.SVG),MathJax.startup.useOutput("svg"))},function(t,e,r){"use strict";var o=r(15),n=bt(r(1)),i=bt(r(16)),s=bt(r(2)),a=bt(r(4)),l=bt(r(17)),h=bt(r(19)),c=bt(r(20)),u=bt(r(21)),p=bt(r(22)),d=bt(r(10)),f=bt(r(23)),y=bt(r(24)),m=bt(r(25)),v=bt(r(26)),b=bt(r(27)),g=bt(r(28)),x=bt(r(29)),_=bt(r(30)),M=bt(r(31)),w=bt(r(32)),S=bt(r(33)),O=bt(r(11)),B=bt(r(34)),C=bt(r(35)),j=bt(r(36)),P=bt(r(6)),V=bt(r(37)),A=bt(r(38)),k=bt(r(39)),G=bt(r(12)),N=bt(r(7)),T=bt(r(40)),D=bt(r(41)),L=bt(r(13)),W=bt(r(72)),I=bt(r(71)),R=bt(r(66)),E=bt(r(0)),J=bt(r(42)),H=bt(r(43)),F=bt(r(69)),z=bt(r(70)),q=bt(r(64)),X=bt(r(44)),K=bt(r(65)),U=bt(r(51)),Q=bt(r(57)),Y=bt(r(55)),$=bt(r(68)),Z=bt(r(46)),tt=bt(r(60)),et=bt(r(48)),rt=bt(r(47)),ot=bt(r(53)),nt=bt(r(54)),it=bt(r(56)),st=bt(r(45)),at=bt(r(49)),lt=bt(r(52)),ht=bt(r(14)),ct=bt(r(8)),ut=bt(r(61)),pt=bt(r(63)),dt=bt(r(50)),ft=bt(r(62)),yt=bt(r(59)),mt=bt(r(58)),vt=bt(r(67));function bt(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(0,o.combineWithMathJax)({_:{output:{common:{BBox:n,CssStyles:i,FontData:s,Notation:a,OutputJax:l,Wrapper:h,WrapperFactory:c,Wrappers:{TeXAtom:u,TextNode:p,maction:d,math:f,menclose:y,mfenced:m,mfrac:v,mglyph:b,mi:g,mmultiscripts:x,mn:_,mo:M,mpadded:w,mroot:S,mrow:O,ms:B,mspace:C,msqrt:j,msubsup:P,mtable:V,mtd:A,mtext:k,mtr:G,munderover:N,scriptbase:T,semantics:D}},svg_ts:L,svg:{FontCache:W,FontData:I,Notation:R,Wrapper:E,WrapperFactory:J,Wrappers_ts:H,Wrappers:{TeXAtom:F,TextNode:z,maction:q,math:X,menclose:K,merror:U,mfenced:Q,mfrac:Y,mglyph:$,mi:Z,mmultiscripts:tt,mn:et,mo:rt,mpadded:ot,mphantom:nt,mroot:it,mrow:st,ms:at,mspace:lt,msqrt:ht,msubsup:ct,mtable:ut,mtd:pt,mtext:dt,mtr:ft,munderover:yt,scriptbase:mt,semantics:vt}}}}})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractOutputJax=MathJax._.core.OutputJax.AbstractOutputJax},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.APPEND=MathJax._.util.Options.APPEND,e.REMOVE=MathJax._.util.Options.REMOVE,e.Expandable=MathJax._.util.Options.Expandable,e.expandable=MathJax._.util.Options.expandable,e.makeArray=MathJax._.util.Options.makeArray,e.keys=MathJax._.util.Options.keys,e.copy=MathJax._.util.Options.copy,e.insert=MathJax._.util.Options.insert,e.defaultOptions=MathJax._.util.Options.defaultOptions,e.userOptions=MathJax._.util.Options.userOptions,e.selectOptions=MathJax._.util.Options.selectOptions,e.selectOptionsFromKeys=MathJax._.util.Options.selectOptionsFromKeys,e.separateOptions=MathJax._.util.Options.separateOptions},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractWrapper=MathJax._.core.Tree.Wrapper.AbstractWrapper},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractWrapperFactory=MathJax._.core.Tree.WrapperFactory.AbstractWrapperFactory},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sum=MathJax._.util.numeric.sum,e.max=MathJax._.util.numeric.max},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMath=MathJax._.core.MmlTree.MmlNodes.math.MmlMath},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMrow=MathJax._.core.MmlTree.MmlNodes.mrow.MmlMrow,e.MmlInferredMrow=MathJax._.core.MmlTree.MmlNodes.mrow.MmlInferredMrow},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMi=MathJax._.core.MmlTree.MmlNodes.mi.MmlMi},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMo=MathJax._.core.MmlTree.MmlNodes.mo.MmlMo},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(1);e.BBox=o.BBox,e.BBoxStyleAdjust=o.BBoxStyleAdjust},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMn=MathJax._.core.MmlTree.MmlNodes.mn.MmlMn},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMs=MathJax._.core.MmlTree.MmlNodes.ms.MmlMs},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtext=MathJax._.core.MmlTree.MmlNodes.mtext.MmlMtext},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMerror=MathJax._.core.MmlTree.MmlNodes.merror.MmlMerror},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMspace=MathJax._.core.MmlTree.MmlNodes.mspace.MmlMspace},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMpadded=MathJax._.core.MmlTree.MmlNodes.mpadded.MmlMpadded},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMphantom=MathJax._.core.MmlTree.MmlNodes.mphantom.MmlMphantom},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMfrac=MathJax._.core.MmlTree.MmlNodes.mfrac.MmlMfrac},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMsqrt=MathJax._.core.MmlTree.MmlNodes.msqrt.MmlMsqrt},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMroot=MathJax._.core.MmlTree.MmlNodes.mroot.MmlMroot},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMfenced=MathJax._.core.MmlTree.MmlNodes.mfenced.MmlMfenced},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMsubsup=MathJax._.core.MmlTree.MmlNodes.msubsup.MmlMsubsup,e.MmlMsub=MathJax._.core.MmlTree.MmlNodes.msubsup.MmlMsub,e.MmlMsup=MathJax._.core.MmlTree.MmlNodes.msubsup.MmlMsup},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMunderover=MathJax._.core.MmlTree.MmlNodes.munderover.MmlMunderover,e.MmlMunder=MathJax._.core.MmlTree.MmlNodes.munderover.MmlMunder,e.MmlMover=MathJax._.core.MmlTree.MmlNodes.munderover.MmlMover},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMmultiscripts=MathJax._.core.MmlTree.MmlNodes.mmultiscripts.MmlMmultiscripts,e.MmlMprescripts=MathJax._.core.MmlTree.MmlNodes.mmultiscripts.MmlMprescripts,e.MmlNone=MathJax._.core.MmlTree.MmlNodes.mmultiscripts.MmlNone},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtable=MathJax._.core.MmlTree.MmlNodes.mtable.MmlMtable},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtr=MathJax._.core.MmlTree.MmlNodes.mtr.MmlMtr,e.MmlMlabeledtr=MathJax._.core.MmlTree.MmlNodes.mtr.MmlMlabeledtr},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtd=MathJax._.core.MmlTree.MmlNodes.mtd.MmlMtd},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMaction=MathJax._.core.MmlTree.MmlNodes.maction.MmlMaction},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMenclose=MathJax._.core.MmlTree.MmlNodes.menclose.MmlMenclose},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlSemantics=MathJax._.core.MmlTree.MmlNodes.semantics.MmlSemantics,e.MmlAnnotationXML=MathJax._.core.MmlTree.MmlNodes.semantics.MmlAnnotationXML,e.MmlAnnotation=MathJax._.core.MmlTree.MmlNodes.semantics.MmlAnnotation},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMglyph=MathJax._.core.MmlTree.MmlNodes.mglyph.MmlMglyph},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TeXAtom=MathJax._.core.MmlTree.MmlNodes.TeXAtom.TeXAtom},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TeXFont=void 0;var o=r(71);function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}(e.TeXFont=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,o.FontData),n)).OPTIONS={fontURL:"."}}]);